]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoThe previous commit re-introduced sade on platforms
marcel [Fri, 26 Sep 2008 18:28:54 +0000 (18:28 +0000)]
The previous commit re-introduced sade on platforms
where it doesn't work. Re-limit sade to amd64 and
i386.

15 years agoDon't forget to initialize `int error' in ttydev_open().
ed [Fri, 26 Sep 2008 18:17:04 +0000 (18:17 +0000)]
Don't forget to initialize `int error' in ttydev_open().

I've had some reports in the past that opening an already opened TTY
through, for example, /dev/tty can fail with random error codes. Looking
at ttydev_open(), I can see there is a way `error' is returned without
initialising it. Even though I haven't had any confirmation this fixes
the bug, I'll fix it anyway.

Reported by: Andrzej Tobola <ato iem pw edu pl>

15 years agoAdvertise bit 26 as sse2.
cognet [Fri, 26 Sep 2008 15:29:18 +0000 (15:29 +0000)]
Advertise bit 26 as sse2.

Spotted out by: gahr

15 years agoAdd -D_OSRELDATE_H to CFLAGS to prevent the declaration of
marcel [Fri, 26 Sep 2008 15:00:18 +0000 (15:00 +0000)]
Add -D_OSRELDATE_H to CFLAGS to prevent the declaration of
getosreldate() in assembler source files. We still get the
definition of __FreeBSD_version this way, because it's
outside the standard multiple-inclusion protection trick.

All this is specific to ia64.

15 years agoSave previous content of the td_fpop before storing the current
kib [Fri, 26 Sep 2008 14:50:49 +0000 (14:50 +0000)]
Save previous content of the td_fpop before storing the current
filedescriptor into it. Make sure that td_fpop is NULL when calling
d_mmap from dev_pager_getpages().

Change guards against td_fpop field being non-NULL with private state
for another device, and against sudden clearing the td_fpop. This
could occur when either a driver method calls another driver through
the filedescriptor operation, or a page fault happen while driver is
writing to a memory backed by another driver.

Noted by: rwatson
Tested by: rnoland
MFC after: 3 days

15 years agoRename the `minor' argument of make_dev(9) to `unit'.
ed [Fri, 26 Sep 2008 14:31:24 +0000 (14:31 +0000)]
Rename the `minor' argument of make_dev(9) to `unit'.

To prevent any further confusion about device minor and unit numbers,
we'd better just refer to device unit numbers. Many people still think
the numbers we show inside devfs have any relation to the numbers passed
to make_dev(9), which is not the case.

Discussed with: kib

15 years agoRemove unit2minor() use from kernel code.
ed [Fri, 26 Sep 2008 14:19:52 +0000 (14:19 +0000)]
Remove unit2minor() use from kernel code.

When I changed kern_conf.c three months ago I made device unit numbers
equal to (unneeded) device minor numbers. We used to require
bitshifting, because there were eight bits in the middle that were
reserved for a device major number. Not very long after I turned
dev2unit(), minor(), unit2minor() and minor2unit() into macro's.
The unit2minor() and minor2unit() macro's were no-ops.

We'd better not remove these four macro's from the kernel, because there
is a lot of (external) code that may still depend on them. For now it's
harmless to remove all invocations of unit2minor() and minor2unit().

Reviewed by: kib

15 years agoAdd support for the ITE 8213 controller.
sos [Fri, 26 Sep 2008 07:29:48 +0000 (07:29 +0000)]
Add support for the ITE 8213 controller.
Thanks goes to ITE who provided docs and feedback and made this possible.

Minor fixups to the Intel ICH code for bugs found while doing this.
(ITE8213 is very semilar to an Intel ICH)

MFC after: 1 week

15 years agomove ipi_pcpu to evtchn.c
kmacy [Fri, 26 Sep 2008 05:54:24 +0000 (05:54 +0000)]
move ipi_pcpu to evtchn.c

15 years agoRe-add getosreldate(3) function prototype in the form that I've been using
peter [Fri, 26 Sep 2008 05:50:08 +0000 (05:50 +0000)]
Re-add getosreldate(3) function prototype in the form that I've been using
for quite some time now.  While I'm not sure if it'll break IA64 again,
this way doesn't cause problems with my builds of XFree86/Xorg and the way
they #include <osreldate.h> via cpp in the imake system.

15 years agoUse some casting to get the right addresses. This is likely unwise
imp [Fri, 26 Sep 2008 05:40:56 +0000 (05:40 +0000)]
Use some casting to get the right addresses.  This is likely unwise
code, but will be OK until there's a 64-bit siba...

With this change, SENTRY5 kernel now compiles for mips, the last of
the holdouts.

15 years agoCatch up to latest tty, kdb and SYSINIT changes. Modeled after the
imp [Fri, 26 Sep 2008 05:37:54 +0000 (05:37 +0000)]
Catch up to latest tty, kdb and SYSINIT changes.  Modeled after the
dev/ofw changes, since this driver appears to have used that as a
start years ago...

15 years agoUpdate xen/interface includes to the latest in mercurial
kmacy [Fri, 26 Sep 2008 05:29:39 +0000 (05:29 +0000)]
Update xen/interface includes to the latest in mercurial

MFC after: 1 month

15 years agoThe Ultra2 never had a CFE console or CFE boot loader. Kill obvious
imp [Fri, 26 Sep 2008 05:10:57 +0000 (05:10 +0000)]
The Ultra2 never had a CFE console or CFE boot loader.  Kill obvious
cut-n-paste leftover.

15 years agoRemove reference to machine/tlb.h. It no longer exists, and isn't
imp [Fri, 26 Sep 2008 04:45:56 +0000 (04:45 +0000)]
Remove reference to machine/tlb.h.  It no longer exists, and isn't
needed as this compiles fine w/o it.

15 years agoSupport for the siba bus found in many broadcom products.
imp [Fri, 26 Sep 2008 03:57:23 +0000 (03:57 +0000)]
Support for the siba bus found in many broadcom products.

Submitted by: bms@
Obtained from: p4 mips branch

15 years agoSupport for CFE boot loaders. Initially the support is for MIPS, but
imp [Fri, 26 Sep 2008 03:53:10 +0000 (03:53 +0000)]
Support for CFE boot loaders.  Initially the support is for MIPS, but
other processors will work too.

Submitted by: bms@
Obtained from: p4 mips2 branch

15 years agoGC empty directory eBones.
delphij [Thu, 25 Sep 2008 23:19:37 +0000 (23:19 +0000)]
GC empty directory eBones.

15 years agoAdd support for installing 32-bit system calls from kernel modules. This
jhb [Thu, 25 Sep 2008 20:50:21 +0000 (20:50 +0000)]
Add support for installing 32-bit system calls from kernel modules.  This
includes syscall32_{de,}register() routines as well as a module handler
and wrapper macros similar to the support for native syscalls in
<sys/sysent.h>.

MFC after: 1 month

15 years agomust do a deep copy of mcast packets as they can be modified after dispatch
sam [Thu, 25 Sep 2008 20:25:25 +0000 (20:25 +0000)]
must do a deep copy of mcast packets as they can be modified after dispatch

Submitted by: "Jared Go" <jared@hobnob.com>

15 years agoSort includes and add multiple include guards.
jhb [Thu, 25 Sep 2008 20:12:38 +0000 (20:12 +0000)]
Sort includes and add multiple include guards.

15 years agoRegen.
jhb [Thu, 25 Sep 2008 20:08:36 +0000 (20:08 +0000)]
Regen.

15 years agoTidy up a few things with syscall generation:
jhb [Thu, 25 Sep 2008 20:07:42 +0000 (20:07 +0000)]
Tidy up a few things with syscall generation:
- Instead of using a syscall slot (370) just to get a function prototype
  for lkmressys(), add an explicit function prototype to <sys/sysent.h>.
  This also removes unused special case checks for 'lkmressys' from
  makesyscalls.sh.
- Instead of having magic logic in makesyscalls.sh to only generate a
  function prototype the first time 'lkmnosys' is seen, make 'NODEF'
  always not generate a function prototype and include an explicit
  prototype for 'lkmnosys' in <sys/sysent.h>.
- As a result of the fix in (2), update the LKM syscall entries in
  the freebsd32 syscall table to use 'lkmnosys' rather than 'nosys'.
- Use NOPROTO for the __syscall() entry (198) in the native ABI.  This
  avoids the need for magic logic in makesyscalls.h to only generate
  a function prototype the first time 'nosys' is encountered.

15 years agoInitialize the DDB command list when initializing DDB so that the basic
jhb [Thu, 25 Sep 2008 19:50:14 +0000 (19:50 +0000)]
Initialize the DDB command list when initializing DDB so that the basic
commands are available from 'boot -d'.

Suggested by: dfr

15 years agoUse existing GDB routines for parsing the section table of klds in
jhb [Thu, 25 Sep 2008 19:32:03 +0000 (19:32 +0000)]
Use existing GDB routines for parsing the section table of klds in
the 'add-kld' command instead of doing it more by hand.

MFC after: 1 week

15 years agoAs a follow-on to r183323, correct another case where ip_output() was
rwatson [Thu, 25 Sep 2008 17:26:54 +0000 (17:26 +0000)]
As a follow-on to r183323, correct another case where ip_output() was
called without an inpcb pointer despite holding the tcbinfo global
lock, which lead to a deadlock or panic when ipfw tried to further
acquire it recursively.

Reported by:    Stefan Ehmann <shoesoft at gmx dot net>
MFC after:      3 days

15 years agoUse db_printsym to lookup and print the function pointers.
thompsa [Thu, 25 Sep 2008 16:46:36 +0000 (16:46 +0000)]
Use db_printsym to lookup and print the function pointers.

15 years ago- Don't do a WITNESS_SAVE() on the interlock if it is Giant in the condition
jhb [Thu, 25 Sep 2008 13:42:19 +0000 (13:42 +0000)]
- Don't do a WITNESS_SAVE() on the interlock if it is Giant in the condition
  variable wait routines.  DROP_GIANT() already manages that state in the
  Giant interlock case.
- Assert that Giant is held when it is passed as a sleep interlock.

15 years agoSome people's 6to4 routers seem to have been blowing up because of
dwmalone [Thu, 25 Sep 2008 12:35:01 +0000 (12:35 +0000)]
Some people's 6to4 routers seem to have been blowing up because of
the unlocked route caching in if_stf. Add a mutex that protects
access to cached route. This seemed to fix problems for Pekka Savola.

Nick Sayer had similar problems, and in his case completly disabling
the route cache seemed to help. Add a sysctl net.link.stf.route_cache
that can be used to turn off route caching in if_stf.

PR: 122283
MFC after: 2 weeks
Tested by: Pekka Savola, Nick Sayer.

15 years ago- Add libbsdxml and libsbuf required by bsdlabel.
nyan [Thu, 25 Sep 2008 12:25:54 +0000 (12:25 +0000)]
- Add libbsdxml and libsbuf required by bsdlabel.
- Remove the mknod from pc98 fixit and also the ftp from pc98 small fixit
  to avoid disk full.

15 years agoTell umass to leave Huawei radio devices alone so ubsa(4) will
phk [Thu, 25 Sep 2008 12:16:18 +0000 (12:16 +0000)]
Tell umass to leave Huawei radio devices alone so ubsa(4) will
be able to kick them into shape.

15 years agoMake the ubsa(4) work with Huawei Exxx (tested with E169) 3G radio devices:
phk [Thu, 25 Sep 2008 12:00:56 +0000 (12:00 +0000)]
Make the ubsa(4) work with Huawei Exxx (tested with E169) 3G radio devices:

Kick the device into the right mode if it comes up as a flash-disk.

Set the buffers to a sensible 1024 bytes instead of a far too small
default.

Don't attempt to change speed, baud, parity and such, the device does
not understand it.

15 years agoAdd a flag, -T, that tells syslogd to always replace the timestamp on
dwmalone [Thu, 25 Sep 2008 09:28:18 +0000 (09:28 +0000)]
Add a flag, -T, that tells syslogd to always replace the timestamp on
messages from the network. We already replace malformatted timestamps
and this option lets us replace timestamps that are correctly formatted
but wrong.

PR: 120891
Submitted by: Thomas Vogt <thomas@bsdunix.ch>
MFC after: 1 week

15 years agoAdd another hardware bug workaround for Yukon II controllers that
yongari [Thu, 25 Sep 2008 07:31:45 +0000 (07:31 +0000)]
Add another hardware bug workaround for Yukon II controllers that
have hardware ram buffer. The silicon bug seem to be triggered by
pause frames if receive buffer is not aligned on FIFO word(8 bytes).
To workaround the issue, make sure to align Rx buffers on 8 bytes.
Unfortunately this workaround requires yet another Rx fixup for
strict alignment architecture machines to align IP header.

For newer hardwares that lacks ram buffer may not have this bug so
check number of available ram buffer size to see the existence of
ram buffer.

Reported by: Ian Freislich (ianf <at> clue dot co dot za), das
Tested by: Ian Freislich (ianf <at> clue dot co dot za)

15 years agoadd initial ipi definitions
kmacy [Thu, 25 Sep 2008 07:11:04 +0000 (07:11 +0000)]
add initial ipi definitions

MFC after: 1 month

15 years agoadd ipi mapping
kmacy [Thu, 25 Sep 2008 07:09:50 +0000 (07:09 +0000)]
add  ipi mapping

MFC after: 1 month

15 years agoadd NPGPTD_SHIFT for the nkpt calculation
kmacy [Thu, 25 Sep 2008 07:05:17 +0000 (07:05 +0000)]
add NPGPTD_SHIFT for the nkpt calculation

MFC after: 1 month

15 years agoMake nkpt dependent on the size of the initial memory allocation
kmacy [Thu, 25 Sep 2008 07:03:09 +0000 (07:03 +0000)]
Make nkpt dependent on the size of the initial memory allocation

MFC after: 1 month

15 years agoreflect header change in netfront
kmacy [Thu, 25 Sep 2008 07:02:00 +0000 (07:02 +0000)]
reflect header change in netfront

MFC after: 1 month

15 years agopartial update to interface headers to 3.2
kmacy [Thu, 25 Sep 2008 07:01:31 +0000 (07:01 +0000)]
partial update to interface headers to 3.2

MFC after: 1 month

15 years agofix insta-panic:
kmacy [Thu, 25 Sep 2008 06:46:28 +0000 (06:46 +0000)]
fix insta-panic:
- determine which ext_arg offsets to use based on the version number

Submitted by: Chelsio Inc.
MFC after: 1 day

15 years ago- Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9) etc
marius [Wed, 24 Sep 2008 21:26:46 +0000 (21:26 +0000)]
- Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9) etc
  and take advantage of rman_get_rid(9) in order to save some softc
  members.
- Provide and consume module dependency information for lebuffer(4).

15 years agoMFV "xmalloc: zero size" fix.
des [Wed, 24 Sep 2008 21:20:44 +0000 (21:20 +0000)]
MFV "xmalloc: zero size" fix.

MFC after: 1 week

15 years agoUndocument dead option.
des [Wed, 24 Sep 2008 21:07:11 +0000 (21:07 +0000)]
Undocument dead option.

MFC after: 3 days

15 years agoAdd back ar(1) which was accidentally decoupled in r183242.
marius [Wed, 24 Sep 2008 20:41:35 +0000 (20:41 +0000)]
Add back ar(1) which was accidentally decoupled in r183242.

Approved by: sam

15 years agoAdd another TTY locking migration macro: tty_getlock().
ed [Wed, 24 Sep 2008 19:43:09 +0000 (19:43 +0000)]
Add another TTY locking migration macro: tty_getlock().

Some subsystems (HPS-USB) like to lock down the TTY through a more
generic approach, namely the regular mtx(9) macro's. Allow the TTY lock
to be obtained through the new macro.

Discussed with: hps, thompsa

15 years agoEnable shared lookups on UFS. There are some remaining issues with forced
jhb [Wed, 24 Sep 2008 18:53:04 +0000 (18:53 +0000)]
Enable shared lookups on UFS.  There are some remaining issues with forced
unmounts, but those are in the VFS lookup code are not UFS specific.

Tested by: pho, kris

15 years agoPart 1 of making shared lookups more resilient with respect to forced
jhb [Wed, 24 Sep 2008 18:51:33 +0000 (18:51 +0000)]
Part 1 of making shared lookups more resilient with respect to forced
unmounts.  When we upgrade a vnode lock from shared to exclusive during
a name cache lookup, fail the lookup with EBADF if the vnode is invalidated
while we are waiting for the exclusive lock.

Also, for correctness (though I'm not sure it can occur in practice),
downgrade an exclusively locked vnode if it should be share locked.

Tested by: pho

15 years agoUpdate description of witness_watch.
jhb [Wed, 24 Sep 2008 18:47:24 +0000 (18:47 +0000)]
Update description of witness_watch.

15 years agoAdd multiple include guards.
jhb [Wed, 24 Sep 2008 18:46:39 +0000 (18:46 +0000)]
Add multiple include guards.

15 years agoAllow a jail's IP alias to be created with an arbitrary netmask.
ru [Wed, 24 Sep 2008 15:18:27 +0000 (15:18 +0000)]
Allow a jail's IP alias to be created with an arbitrary netmask.

MFC after: 3 days

15 years agoFix a crash when calling tty_rel_free() while draining during closure.
ed [Wed, 24 Sep 2008 11:16:09 +0000 (11:16 +0000)]
Fix a crash when calling tty_rel_free() while draining during closure.

Yesterday I got two reports of potential crashes, related to TTY
deallocation during device closure. When a thread is in TF_OPENCLOSE,
draining its output upon closure, we should not allow calls to
tty_rel_free() to happen at the same time. This could cause the TTY to
be torn down twice.

PR: kern/127561
Reported by: KOIE Hidetaka <koie suri co jp>
Discussed with: thompsa

15 years agoWhen dropping a packet and issuing a reset during TCP segment handling,
rwatson [Wed, 24 Sep 2008 11:07:03 +0000 (11:07 +0000)]
When dropping a packet and issuing a reset during TCP segment handling,
unconditionally drop the tcbinfo lock (after all, we assert it lines
before), but call tcp_dropwithreset() under both inpcb and inpcbinfo
locks only if we pass in an tcpcb.  Otherwise, if the pointer is NULL,
firewall code may later recurse the global tcbinfo lock trying to look
up an inpcb.

This is an instance where a layering violation leads not only
potentially to code reentrace and recursion, but also to lock
recursion, and was revealed by the conversion to rwlocks because
acquiring a read lock on an rwlock already held with a write lock is
forbidden.  When these locks were mutexes, they simply recursed.

Reported by: Stefan Ehmann <shoesoft at gmx dot net>
MFC after: 3 days

15 years agoChange the static struct sysentvec and struct Elf_Brandinfo initializers
kib [Wed, 24 Sep 2008 10:14:37 +0000 (10:14 +0000)]
Change the static struct sysentvec and struct Elf_Brandinfo initializers
to the C99 style. At least, it is easier to read sysent definitions
that way, and search for the actual instances of sigcode etc.

Explicitely initialize sysentvec.sv_maxssiz that was missed in most
sysvecs.

No objection from: jhb
MFC after: 1 month

15 years ago- Remove default NIC dependency on ulp headers
kmacy [Wed, 24 Sep 2008 01:19:08 +0000 (01:19 +0000)]
- Remove default NIC dependency on ulp headers
- make toe module build dependent on kernel support

Submitted by: Chelsio Inc.
MFC after: 1 week

15 years agoFix some ifdef logic in the libc syncicache() bit that I somehow missed in the
nwhitehorn [Wed, 24 Sep 2008 01:06:11 +0000 (01:06 +0000)]
Fix some ifdef logic in the libc syncicache() bit that I somehow missed in the
last commit. Now it really can use a runtime-set cacheline size.

15 years agoAllow the cacheline size on PowerPC to be set at runtime. This is essential for
nwhitehorn [Wed, 24 Sep 2008 00:28:46 +0000 (00:28 +0000)]
Allow the cacheline size on PowerPC to be set at runtime. This is essential for
supporting 64-bit CPUs, which often have 128-byte cache lines instead of the
standard 32.

15 years agoRemove spurious duplicated defination of sock.
delphij [Wed, 24 Sep 2008 00:04:51 +0000 (00:04 +0000)]
Remove spurious duplicated defination of sock.

15 years agoImprove rev 183168, so that if /chosen/stdout is connected to the serial
sobomax [Tue, 23 Sep 2008 22:16:23 +0000 (22:16 +0000)]
Improve rev 183168, so that if /chosen/stdout is connected to the serial
port by OF the syscons won't take over console. Only attach syscons to "screen"
if /chosen/stdout is not connected, which could be the case when loader(8)
is booted directly from the OF. This fixes Marcel's Xserver.

Reported by: marcel

15 years agoIn cust_install_files() we ignore CVS directories. In a similar way now
simon [Tue, 23 Sep 2008 18:54:56 +0000 (18:54 +0000)]
In cust_install_files() we ignore CVS directories.  In a similar way now
also ignore .svn directories.

15 years ago- Change all "echo #..." into using a progress print function to make it
simon [Tue, 23 Sep 2008 18:42:35 +0000 (18:42 +0000)]
- Change all "echo #..." into using a progress print function to make it
  possible to make NanoBSD output more quite or verbose.  The default
  output should remain mostly unchanged. [1]
- Add missing shift for -i.
- Clean up usage() so it's now (mostly) sorted alphabetically.
- Make command line argument handling more consistent in the code and
  remove redundant semicolons.

Reviwed by: phk [1]

15 years agoTrack state to determine if the associated TTY device node has been used.
ed [Tue, 23 Sep 2008 17:12:25 +0000 (17:12 +0000)]
Track state to determine if the associated TTY device node has been used.

It turns out our old TTY layer (and other implementations) block when
you read() on a PTY master device of which the slave device node has not
been opened yet. Our new implementation just returned 0. This caused
applications like telnetd to die in a very subtle way (when child
processes would open the TTY later than the first call to select()).

Introduce a new flag called PTS_FINISHED, which indicates whether we
should block or bail out of a read() or write() occurs.

Reported by: Claude Buisson <clbuisson orange fr>

15 years agoregen
sam [Tue, 23 Sep 2008 16:18:15 +0000 (16:18 +0000)]
regen

15 years agoadd missing options
sam [Tue, 23 Sep 2008 16:15:42 +0000 (16:15 +0000)]
add missing options

15 years agoadd missing options
sam [Tue, 23 Sep 2008 16:11:15 +0000 (16:11 +0000)]
add missing options

15 years agoThe kernel implemented 'memcmp' is an alias for 'bcmp'. However, memcmp
obrien [Tue, 23 Sep 2008 14:45:10 +0000 (14:45 +0000)]
The kernel implemented 'memcmp' is an alias for 'bcmp'.  However, memcmp
and bcmp are not the same thing.  'man bcmp' states that the return is
"non-zero" if the two byte strings are not identical.  Where as,
'man memcmp' states that the return is the "difference between the
first two differing bytes (treated as unsigned char values" if the
two byte strings are not identical.

So provide a proper memcmp(9), but it is a C implementation not a tuned
assembly implementation.  Therefore bcmp(9) should be preferred over memcmp(9).

15 years agostyle(9)
obrien [Tue, 23 Sep 2008 14:25:56 +0000 (14:25 +0000)]
style(9)

15 years agoReverse if() logic to improve readability.
obrien [Tue, 23 Sep 2008 14:25:38 +0000 (14:25 +0000)]
Reverse if() logic to improve readability.

Reviewed by: ru

15 years agoAdd missing library dependencies.
ru [Tue, 23 Sep 2008 13:12:51 +0000 (13:12 +0000)]
Add missing library dependencies.

PR: bin/127573
Submitted by: Eygene Ryabinkin

15 years agoUpdate cxgb include paths to not require prefixing with dev/cxgb
kmacy [Tue, 23 Sep 2008 03:16:54 +0000 (03:16 +0000)]
Update cxgb include paths to not require prefixing with dev/cxgb

Submitted by: Chelsio Inc.

15 years agoUpdate to xen specific files for SMP
kmacy [Tue, 23 Sep 2008 03:13:33 +0000 (03:13 +0000)]
Update to xen specific files for SMP

MFC after: 1 month

15 years agoIn preparation for PowerPC G5 support, allow PVO objects to contain page
nwhitehorn [Tue, 23 Sep 2008 03:02:57 +0000 (03:02 +0000)]
In preparation for PowerPC G5 support, allow PVO objects to contain page
table entries for both the 32-bit and 64-bit AIM MMUs.

15 years agoAllow cxgb to be unified across versions by making newer features conditional
kmacy [Tue, 23 Sep 2008 02:22:24 +0000 (02:22 +0000)]
Allow cxgb to be unified across versions by making newer features conditional

Submitted by: Chelsio Inc
MFC after: 3 days

15 years agoChange the DBDMA API to allow DBDMA registers in a subregion of a resource. This...
nwhitehorn [Tue, 23 Sep 2008 02:12:47 +0000 (02:12 +0000)]
Change the DBDMA API to allow DBDMA registers in a subregion of a resource. This is necessary to allow future support of DMA for the various Apple on-board ATA controllers.

MFC after: 1 week

15 years ago- Fix flag check
kmacy [Tue, 23 Sep 2008 01:55:36 +0000 (01:55 +0000)]
- Fix flag check
- Fix adaptive thread sleep
- set oactive when queue is full

15 years ago- Track number of times that the transmit queue overflowed
kmacy [Tue, 23 Sep 2008 01:27:19 +0000 (01:27 +0000)]
- Track number of times that the transmit queue overflowed
- Trivial whitespace cleanup

MFC after: 3 days

15 years ago* Add USB boot support.
bms [Mon, 22 Sep 2008 23:56:36 +0000 (23:56 +0000)]
* Add USB boot support.
* Allow the image name to be renamed via NANO_IMGNAME.
* Propagate TARGET_ARCH into src top level make targets
  explicitly to support cross-building.
* Increase the default size of NanoBSD media from 488MB to
  584MB to accomodate a -CURRENT world.

Reviewed by: phk

15 years agoUse Giant for kbdmux(4) locking. This is to workaround the problem
emax [Mon, 22 Sep 2008 22:08:43 +0000 (22:08 +0000)]
Use Giant for kbdmux(4) locking. This is to workaround the problem
where interrupt handlers may race with kbdmux(4) in polling mode.

PR: kern/127446
Reported by: Eygene Ryabinkin rea-fbsd at codelabs dot ru
Tested by: Eygene Ryabinkin rea-fbsd at codelabs dot ru
MFC after: 1 week

15 years agoAdd my entry to committers-src.dot
rnoland [Mon, 22 Sep 2008 21:53:00 +0000 (21:53 +0000)]
Add my entry to committers-src.dot

Approved by: jhb(mentor)

15 years ago- Don't read the identifier string from the VPD if there's no chip
marius [Mon, 22 Sep 2008 20:55:19 +0000 (20:55 +0000)]
- Don't read the identifier string from the VPD if there's no chip
  containing an Ethernet address fitted as this is yet another thing
  that fails in that case in order to avoid the one second delay
  until pci_read_vpd_reg() times out.
- Const'ify the bge_devs array.

15 years agoClose a race between concurrent calls to ufsdirhash_recycle() and
jhb [Mon, 22 Sep 2008 20:53:22 +0000 (20:53 +0000)]
Close a race between concurrent calls to ufsdirhash_recycle() and
ufsdirhash_free() introduced in my last commit by removing the dirhash
about to be free'd in ufsdirhash_free() from the global dirhash list
before dropping the sx lock.

Tested by: kris

15 years agoMark the first slice of a NanoBSD image 'active' by default.
bms [Mon, 22 Sep 2008 20:21:39 +0000 (20:21 +0000)]
Mark the first slice of a NanoBSD image 'active' by default.
This fixes USB boot (not yet merged to HEAD) with 3 flavours
of BIOS I've seen.

Approved by: phk

15 years agoAdd ng_rmnode_flags() so the caller can pass NG_QUEUE and have the node
thompsa [Mon, 22 Sep 2008 19:28:18 +0000 (19:28 +0000)]
Add ng_rmnode_flags() so the caller can pass NG_QUEUE and have the node
destroyed asynchronously due to locking or other constraints.

Reviewed by: julian

15 years agoIntroduce a hooks layer for the MPSAFE TTY layer.
ed [Mon, 22 Sep 2008 19:25:14 +0000 (19:25 +0000)]
Introduce a hooks layer for the MPSAFE TTY layer.

One of the features that prevented us from fixing some of the TTY
consumers to work once again, was an interface that allowed consumers to
do the following:

- `Sniff' incoming data, which is used by the snp(4) driver.

- Take direct control of the input and output paths of a TTY, which is
  used by ng_tty(4), ppp(4), sl(4), etc.

There's no practical advantage in committing a hooks layer without
having any consumers. In P4 there is a preliminary port of snp(4) and
thompsa@ is busy porting ng_tty(4) to this interface. I already want to
have it in the tree, because this may stimulate others to work on the
remaining modules.

Discussed with: thompsa
Obtained from: //depot/projects/mpsafetty/...

15 years agoFix usage of mac_vnode_check_open() in linuxulator - last argument
trasz [Mon, 22 Sep 2008 18:59:24 +0000 (18:59 +0000)]
Fix usage of mac_vnode_check_open() in linuxulator - last argument
should be VREAD, not FREAD.

Approved by: rwatson (mentor)

15 years agoFix style(9) issue in TTY header files: document function argument names.
ed [Mon, 22 Sep 2008 18:44:09 +0000 (18:44 +0000)]
Fix style(9) issue in TTY header files: document function argument names.

According to style(9), function argument names should only be omitted
for prototypes that are exported to userspace. This means we should
document the function arguments in the TTY header files, because they
are only used in userspace.

While there, change the type of the buffer argument of
ttydisc_rint_bypass() to `const void *' instead of `char *'.

Requested by: attilio
Obtained from: //depot/projects/mpsafetty/...

15 years agoAdd freebsd32 compat shims for ioctl(2)
obrien [Mon, 22 Sep 2008 16:24:36 +0000 (16:24 +0000)]
Add freebsd32 compat shims for ioctl(2)
CDIOREADTOCHEADER and CDIOREADTOCENTRYS requests.

15 years agoMake the make_pseudo_driver.sh shellscript work again.
ed [Mon, 22 Sep 2008 16:10:12 +0000 (16:10 +0000)]
Make the make_pseudo_driver.sh shellscript work again.

It seems this script was broken because of the SYSINIT changes and a
rather awkward variable initialisation. For some reason the
make_device_driver.sh script is also broken, related to BUS_SETUP_INTR.
I have no experience with FreeBSD's interrupt handling, so I hope
someone else is willing to take a look at that shell script.

PR: misc/126435
MFC after: 1 month

15 years agoRegenerate for r183270.
obrien [Mon, 22 Sep 2008 16:09:43 +0000 (16:09 +0000)]
Regenerate for r183270.

15 years agoAdd freebsd32 compat shims for ioctl(2)
obrien [Mon, 22 Sep 2008 16:09:16 +0000 (16:09 +0000)]
Add freebsd32 compat shims for ioctl(2)
MDIOCATTACH, MDIOCDETACH, MDIOCQUERY, and MDIOCLIST requests.

15 years agoadd back regdomain.xml
sam [Mon, 22 Sep 2008 15:37:47 +0000 (15:37 +0000)]
add back regdomain.xml

Noticed by: jhay

15 years agoDocument changes in behaviour due to sparse CPU numbering support.
jkoshy [Mon, 22 Sep 2008 14:31:24 +0000 (14:31 +0000)]
Document changes in behaviour due to sparse CPU numbering support.

15 years agoSupport sparsely numbered CPUs.
jkoshy [Mon, 22 Sep 2008 10:37:02 +0000 (10:37 +0000)]
Support sparsely numbered CPUs.

Requested by: obrien, alfred (long ago)

15 years agoWhen invoking the udp_send() from udp6_send() due to use of a v6-mapped
rwatson [Mon, 22 Sep 2008 06:44:03 +0000 (06:44 +0000)]
When invoking the udp_send() from udp6_send() due to use of a v6-mapped
IPv4 address, first drop the udbinfo and inpcb locks, which will otherwise
be recursed.  This leads to a potential minor race, but is preferable to a
deadlock when acquiring a read lock after a write lock on the inpcb.

MFC after: 3 days
Reported by: Norbert Papke <fbsd-ml@scrapper.ca>, lioux

15 years agoAdd workaround for occasional packet loss issue of JMC250 A2
yongari [Mon, 22 Sep 2008 06:17:21 +0000 (06:17 +0000)]
Add workaround for occasional packet loss issue of JMC250 A2
when it runs on half-duplex media.
While I'm here add register definition for GPREG1. ATM the GPREG1
register is only valid for JMC250 A1/A2.

Submitted by: Ethan at JMicron

15 years agoUnbreak the build.
keramida [Mon, 22 Sep 2008 04:12:27 +0000 (04:12 +0000)]
Unbreak the build.

15 years agoUnbreak G3 support. G3 processors don't have an L3 cache, so we shouldn't try to...
nwhitehorn [Mon, 22 Sep 2008 03:21:02 +0000 (03:21 +0000)]
Unbreak G3 support. G3 processors don't have an L3 cache, so we shouldn't try to program it.

Approved by: marcel (mentor)

15 years agoMIMO power save and RIFS; while here also update per-node state/flags for ampdu
sam [Mon, 22 Sep 2008 00:30:26 +0000 (00:30 +0000)]
MIMO power save and RIFS; while here also update per-node state/flags for ampdu

15 years ago"ampdudensity -" is too subtle; use "NA" for any and accept it as a parameter
sam [Mon, 22 Sep 2008 00:24:47 +0000 (00:24 +0000)]
"ampdudensity -" is too subtle; use "NA" for any and accept it as a parameter

15 years agocleanup bss node setup; syncs w/ p4 state that's been in use for months
sam [Mon, 22 Sep 2008 00:22:09 +0000 (00:22 +0000)]
cleanup bss node setup; syncs w/ p4 state that's been in use for months