]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoPut the vnode returned from namei() immediately after namei() returns in
John Baldwin [Wed, 20 May 2009 18:25:16 +0000 (18:25 +0000)]
Put the vnode returned from namei() immediately after namei() returns in
svr4_sys_resolvepath().

15 years agoRemove license clauses 3 and 4 as per rev. 1.112 of uaudio.c and rev. 1.15 of
Joel Dahl [Wed, 20 May 2009 18:15:13 +0000 (18:15 +0000)]
Remove license clauses 3 and 4 as per rev. 1.112 of uaudio.c and rev. 1.15 of
uaudioreg.h in NetBSD.

15 years agoRemove license clauses 3 and 4 as per rev. 1.12 of cs4231reg.h in NetBSD.
Joel Dahl [Wed, 20 May 2009 18:04:56 +0000 (18:04 +0000)]
Remove license clauses 3 and 4 as per rev. 1.12 of cs4231reg.h in NetBSD.

15 years agoTweak some comments.
John Baldwin [Wed, 20 May 2009 17:59:49 +0000 (17:59 +0000)]
Tweak some comments.

15 years agoWe no longer need to use d_thread_t, migrate to struct thread *.
Warner Losh [Wed, 20 May 2009 17:29:21 +0000 (17:29 +0000)]
We no longer need to use d_thread_t, migrate to struct thread *.

15 years agoFix a typo.
John Baldwin [Wed, 20 May 2009 17:19:30 +0000 (17:19 +0000)]
Fix a typo.

15 years agoUse defines for register offsets that do not change.
Andrew Thompson [Wed, 20 May 2009 17:03:12 +0000 (17:03 +0000)]
Use defines for register offsets that do not change.

Submitted by: Hans Petter Selasky

15 years agoUse struct thread instead of d_thread_t.
Warner Losh [Wed, 20 May 2009 17:01:40 +0000 (17:01 +0000)]
Use struct thread instead of d_thread_t.

15 years ago- Add new register definitions
Andrew Thompson [Wed, 20 May 2009 17:00:55 +0000 (17:00 +0000)]
- Add new register definitions
- Enable the controller and wait for the PLL to start

Submitted by: Hans Petter Selasky

15 years agoReplace d_thread_t * with struct thread *.
Warner Losh [Wed, 20 May 2009 17:00:16 +0000 (17:00 +0000)]
Replace d_thread_t * with struct thread *.

15 years agoThe register shift is not needed on this controller.
Andrew Thompson [Wed, 20 May 2009 16:58:53 +0000 (16:58 +0000)]
The register shift is not needed on this controller.

Submitted by: Hans Petter Selasky

15 years agoWe no longer need to use d_thread_t for portability here, switch to
Warner Losh [Wed, 20 May 2009 16:58:16 +0000 (16:58 +0000)]
We no longer need to use d_thread_t for portability here, switch to
struct thread *.

15 years agoWe don't need d_thread_t for cross-branch portability here anymore.
Warner Losh [Wed, 20 May 2009 16:47:40 +0000 (16:47 +0000)]
We don't need d_thread_t for cross-branch portability here anymore.
Move do struct thread * instead.

15 years agoSome minor style changes:
Warner Losh [Wed, 20 May 2009 16:29:22 +0000 (16:29 +0000)]
Some minor style changes:
o Convert K&R function definitions to ANSI
o Eliminate spaces/tabs that should have been deleted as part of the de__P
  efforts
o Use struct thread * in preference to d_thread_t *.

15 years agoDon't bother reading the initial value of the machine check banks during
John Baldwin [Wed, 20 May 2009 16:11:22 +0000 (16:11 +0000)]
Don't bother reading the initial value of the machine check banks during
startup on Pentium 4 CPUs.  This wasn't safe to do on APs during AP startup,
was of limited value, and won't be used for future processors.

15 years agoFix NULL dereference on Promise SX4 controllers, while executing commands
Alexander Motin [Wed, 20 May 2009 09:44:32 +0000 (09:44 +0000)]
Fix NULL dereference on Promise SX4 controllers, while executing commands
that do not require data transfer (FLUSHCACHE).

Tested by: Magnus Kling <klingfon@gmail.com>
MFC after: 1 week

15 years agoVerify that the username length is smaller than MAXLOGNAME when
Brian Somers [Wed, 20 May 2009 08:32:25 +0000 (08:32 +0000)]
Verify that the username length is smaller than MAXLOGNAME when
asked to verify a passwd file (pwd_mkdb -C).

Entries with oversized usernames are still permitted when building
the passwd database.

When entries are >= MAXLOGNAME in length, they are correctly stored
in passwd, pwd.db and spwd.db but are only correctly retrieved by
getpwent*() and getpwuid*().  getpwnam*() truncates to MAXLOGNAME - 1
when reading from a file (breaking at least sh, tcsh and bash)
and utilities such as su(1) check, complain and fail if the
passed name is >= MAXLOGNAME in length.

MFC after: 3 weeks

15 years agoSimplify now that we have gpart.
Marcel Moolenaar [Wed, 20 May 2009 06:01:20 +0000 (06:01 +0000)]
Simplify now that we have gpart.

15 years agoo style.Makefile(5): remove SRCS.
Maxim Konovalov [Wed, 20 May 2009 05:49:06 +0000 (05:49 +0000)]
o style.Makefile(5): remove SRCS.

15 years agotry to unsetup USB xfers before calling ieee80211_ifdetach() to fix a
Weongyo Jeong [Wed, 20 May 2009 03:49:16 +0000 (03:49 +0000)]
try to unsetup USB xfers before calling ieee80211_ifdetach() to fix a
bug referencing a destroyed lock within TX callbacks during device
detach.

Submitted by: hps (original version)
Tested by: Lucius Windschuh <lwindschuh at googlemail.com>

15 years agopci(4) handles PCIM_CMD_INTxDIS so there is no need to poke this
Pyun YongHyeon [Wed, 20 May 2009 03:33:27 +0000 (03:33 +0000)]
pci(4) handles PCIM_CMD_INTxDIS so there is no need to poke this
bit in driver.

15 years agoAdd minimal ZFS lock hierarchy
Kip Macy [Wed, 20 May 2009 02:51:48 +0000 (02:51 +0000)]
Add minimal ZFS lock hierarchy

15 years agoSince audit(4) isn't based on posix1e, remove the commented out audit.h header,
Christian Brueffer [Tue, 19 May 2009 22:28:33 +0000 (22:28 +0000)]
Since audit(4) isn't based on posix1e, remove the commented out audit.h header,
xref libbsm(3).

Submitted by: rwatson
MFC after: 3 days

15 years agoFix a few style(9) nits.
George V. Neville-Neil [Tue, 19 May 2009 20:16:18 +0000 (20:16 +0000)]
Fix a few style(9) nits.

Submitted by: danfe

15 years agoWith SMPng, DEVICE_POLLING uses its own idle threads, rather than the
Robert Watson [Tue, 19 May 2009 19:21:25 +0000 (19:21 +0000)]
With SMPng, DEVICE_POLLING uses its own idle threads, rather than the
system idle loop, to run ether_poll(), so make ether_poll() static.

MFC after: 1 week

15 years agocorrect HAL_INT_BNR comment, this bit is mapped directly the h/w now
Sam Leffler [Tue, 19 May 2009 17:54:32 +0000 (17:54 +0000)]
correct HAL_INT_BNR comment, this bit is mapped directly the h/w now

15 years agoadd TBTT interrupt support; this was added in Griffin so consumers should
Sam Leffler [Tue, 19 May 2009 17:53:53 +0000 (17:53 +0000)]
add TBTT interrupt support; this was added in Griffin so consumers should
check HAL_CAP_INTRMASK before using it

NB: didn't test 11n parts yet so supported only for 5212-class parts

15 years agominor cleanup
Sam Leffler [Tue, 19 May 2009 17:43:31 +0000 (17:43 +0000)]
minor cleanup

15 years agoAdd a new program, perror, which takes an errno as a command line argument
George V. Neville-Neil [Tue, 19 May 2009 17:40:22 +0000 (17:40 +0000)]
Add a new program, perror, which takes an errno as a command line argument
and outputs the associated textual message in the same way that
perror(3) would if called within a program.

15 years agoremove special handling for BNR; it is direct mapped to the harwdare so
Sam Leffler [Tue, 19 May 2009 17:35:15 +0000 (17:35 +0000)]
remove special handling for BNR; it is direct mapped to the harwdare so
can be added to HAL_INT_COMMON except on the 5210 where it doesn't exist

15 years agoadd HAL_CAP_INTRMASK to return the set of interrupts supported by the device
Sam Leffler [Tue, 19 May 2009 17:30:13 +0000 (17:30 +0000)]
add HAL_CAP_INTRMASK to return the set of interrupts supported by the device

15 years agoAdd Dell PowerEdge R200 and R300 to the hardware section.
Joel Dahl [Tue, 19 May 2009 17:17:53 +0000 (17:17 +0000)]
Add Dell PowerEdge R200 and R300 to the hardware section.

15 years agoAH_SUPPORT_TDMA is gone; ath now honors IEEE80211_SUPPORT_TDMA
Sam Leffler [Tue, 19 May 2009 14:51:48 +0000 (14:51 +0000)]
AH_SUPPORT_TDMA is gone; ath now honors IEEE80211_SUPPORT_TDMA

Noticed by: Jon Loeliger <jdl@jdl.com>

15 years agoSkip @pkgdep if there's no argument.
Florent Thoumie [Tue, 19 May 2009 14:26:41 +0000 (14:26 +0000)]
Skip @pkgdep if there's no argument.

Submitted by: pav
MFC after: 1 week

15 years agofind: do not silently disable -L when -delete is used
Andriy Gapon [Tue, 19 May 2009 14:23:54 +0000 (14:23 +0000)]
find: do not silently disable -L when -delete is used

First of all, current behavior is not documented and confusing,
and it can be very dangerous in the following sequence:
find -L . -type l
find -L . -type l -delete
(the second line is even suggested by find(1)).

Instead simply refuse to proceed when -L and -delete are both used.
A descriptive error message is provided.
The following command can be safely used to remove broken links:
find -L . -type l -print0 | xargs rm -0

To do: update find(1)
PR: bin/90687
Obtained from: Anatoli Klassen <anatoli@aksoft.net>
Approved by: jhb (mentor)

15 years agosysctl_rman: report shared resources to devinfo
Andriy Gapon [Tue, 19 May 2009 14:08:21 +0000 (14:08 +0000)]
sysctl_rman: report shared resources to devinfo

shared uses of a resource are recorded on a sub-list hanging off
a main resource object on a main resource list;
without this change a shared resource (e.g. irq) is reported only
once by devinfo -r/-u;
with this change the resource is reported for each driver that
allocates it (which is even more than what vmstat -i -a reports).

Approved by: jhb (mentor)

15 years agoAdd links to libgeom(3) where appropriate.
Edward Tomasz Napierala [Tue, 19 May 2009 12:10:48 +0000 (12:10 +0000)]
Add links to libgeom(3) where appropriate.

15 years agoValidate user-supplied arguments values.
Dmitry Chagin [Tue, 19 May 2009 09:10:53 +0000 (09:10 +0000)]
Validate user-supplied arguments values.
Args argument is a pointer to the structure located in user space in
which the socketcall arguments are packed. The structure must be
copied to the kernel instead of direct dereferencing.

Approved by: kib (mentor)
MFC after: 1 week

15 years agoUpdated PCI ID's from the vendor
Scott Long [Tue, 19 May 2009 01:41:11 +0000 (01:41 +0000)]
Updated PCI ID's from the vendor

15 years ago- back out direct map hack
Kip Macy [Tue, 19 May 2009 01:14:37 +0000 (01:14 +0000)]
- back out direct map hack
- it is no longer needed

15 years agoFILE has been upgraded from 4.23 to 5.03.
Xin LI [Mon, 18 May 2009 22:46:59 +0000 (22:46 +0000)]
FILE has been upgraded from 4.23 to 5.03.

15 years agoRevert the logical change of r192341.
Bjoern A. Zeeb [Mon, 18 May 2009 22:34:44 +0000 (22:34 +0000)]
Revert the logical change of r192341.

net.inet.ip.fw.one_pass is a classic ip_input.c variable and is used in
the pfil and bridge code as well. As ipfw is loadable we need to always
provide it.  That is the reason why it lives in struct vnet_inet and
not in struct vnet_ipfw.

15 years agoMerge vendor/file/dist@192348, bringing FILE 5.03 to 8-CURRENT.
Xin LI [Mon, 18 May 2009 22:34:33 +0000 (22:34 +0000)]
Merge vendor/file/dist@192348, bringing FILE 5.03 to 8-CURRENT.

Security: CVE-2009-1515

15 years agoVirgin import of Christos Zoulas's FILE 5.03.
Xin LI [Mon, 18 May 2009 22:27:42 +0000 (22:27 +0000)]
Virgin import of Christos Zoulas's FILE 5.03.

Security: CVE-2009-1515

15 years ago- Add a tunable 'hw.mca.enabled' that can be used to enable/disable the
John Baldwin [Mon, 18 May 2009 21:50:06 +0000 (21:50 +0000)]
- Add a tunable 'hw.mca.enabled' that can be used to enable/disable the
  machine check code.  Disable it by default for now.
- When computing the mask of bits that determines a non-restartable event
  during a machine check exception, or-in the overflow flag rather than
  replacing the other flags.

PR: i386/134586 [2]
Submitted by: Andi Kleen  andi-fbsd firstfloor.org

15 years agoAdd a read-only sysctl hw.pci.mcfg to mirror the tunable by the same name.
John Baldwin [Mon, 18 May 2009 21:47:32 +0000 (21:47 +0000)]
Add a read-only sysctl hw.pci.mcfg to mirror the tunable by the same name.

MFC after: 1 week

15 years ago- Fix typo in description of 'net.inet.ip.fw.autoinc_step'.
John Baldwin [Mon, 18 May 2009 21:46:46 +0000 (21:46 +0000)]
- Fix typo in description of 'net.inet.ip.fw.autoinc_step'.
- Use 'vnet_ipfw' instead of 'vnet_inet' for 'net.inet.ip.fw.one_pass'.

15 years agoChange the experimental NFSv4 client so that it does not do
Rick Macklem [Mon, 18 May 2009 21:22:03 +0000 (21:22 +0000)]
Change the experimental NFSv4 client so that it does not do
the NFSv4 Close operations until ncl_inactive(). This is
necessary so that the Open StateIDs are available for doing
I/O on mmap'd files after VOP_CLOSE(). I also changed some
indentation for the nfscl_getclose() function.

Approved by: kib (mentor)

15 years agoBump CACHE_LINE_SIZE to 128 for x86. Intel's manuals explicitly recommend
John Baldwin [Mon, 18 May 2009 19:33:59 +0000 (19:33 +0000)]
Bump CACHE_LINE_SIZE to 128 for x86.  Intel's manuals explicitly recommend
using 128 byte alignment for locks.  (See IA-32 SDM Vol 3A 7.11.6.7)

15 years agoadd block ack frame id
Sam Leffler [Mon, 18 May 2009 19:02:55 +0000 (19:02 +0000)]
add block ack frame id

15 years agoRename ia64_invalidate_icache() to ia64_sync_icache(). We're
Marcel Moolenaar [Mon, 18 May 2009 18:44:54 +0000 (18:44 +0000)]
Rename ia64_invalidate_icache() to ia64_sync_icache(). We're
not invalidating anything.

15 years agoAdd cpu_flush_dcache() for use after non-DMA based I/O so that a
Marcel Moolenaar [Mon, 18 May 2009 18:37:18 +0000 (18:37 +0000)]
Add cpu_flush_dcache() for use after non-DMA based I/O so that a
possible future I-cache coherency operation can succeed. On ARM
for example the L1 cache can be (is) virtually mapped, which
means that any I/O that uses temporary mappings will not see the
I-cache made coherent. On ia64 a similar behaviour has been
observed. By flushing the D-cache, execution of binaries backed
by md(4) and/or NFS work reliably.
For Book-E (powerpc), execution over NFS exhibits SIGILL once in
a while as well, though cpu_flush_dcache() hasn't been implemented
yet.

Doing an explicit D-cache flush as part of the non-DMA based I/O
read operation eliminates the need to do it as part of the
I-cache coherency operation itself and as such avoids pessimizing
the DMA-based I/O read operations for which D-cache are already
flushed/invalidated. It also allows future optimizations whereby
the bcopy() followed by the D-cache flush can be integrated in a
single operation, which could be implemented using on-chips DMA
engines, by-passing the D-cache altogether.

15 years agofix typo
Sam Leffler [Mon, 18 May 2009 18:12:45 +0000 (18:12 +0000)]
fix typo

15 years agoAdd two missing INIT_VNET_INET6(curvnet) to make VIMAGE kernels happier.
Bjoern A. Zeeb [Mon, 18 May 2009 17:48:46 +0000 (17:48 +0000)]
Add two missing INIT_VNET_INET6(curvnet) to make VIMAGE kernels happier.

15 years agoRemove empty files and do nto try to build them.
Alexander Kabaev [Mon, 18 May 2009 17:20:24 +0000 (17:20 +0000)]
Remove empty files and do nto try to build them.
Apparently, they are problematic for CTF users.

PR: 119298
Submitted by: Julian H. Stacey

15 years agoadd bpf_track eventhandler for monitoring bpf taps attached/detached
Sam Leffler [Mon, 18 May 2009 17:18:40 +0000 (17:18 +0000)]
add bpf_track eventhandler for monitoring bpf taps attached/detached

Reviewed by: csjp

15 years agoTeach btpand(8) to recognized Bluetooth device node names.
Maksim Yevmenkin [Mon, 18 May 2009 16:00:18 +0000 (16:00 +0000)]
Teach btpand(8) to recognized Bluetooth device node names.

Tested by: Daniel O'Connor <doconnor -at- gsoft -dot- com -dot- au>
MFC after: 3 days

15 years agoRemove unnecessary comments. 11A read/write is the same: its just the
Warner Losh [Mon, 18 May 2009 15:46:34 +0000 (15:46 +0000)]
Remove unnecessary comments.  11A read/write is the same: its just the
classic indirect register dance.

Submitted by: ddkprog at yahoo not com

15 years agoFix a typo from the original driver. We need to write ctrl2 into RF
Warner Losh [Mon, 18 May 2009 15:31:26 +0000 (15:31 +0000)]
Fix a typo from the original driver.  We need to write ctrl2 into RF
register 0x52, not ctrl1.  This appears to be a mistake in the bcm
reverse engineering page, and has been corrected there.  Tracing
through the code, this is more in keeping with the "documented"
register. Sephe thinks it looks interesting and may be worth
fixing. :)

Submitted by: ddkprog at yahoo com
Reviewed by: Sepherosa Ziehau

15 years agoBinding interrupts to a CPU consists of two parts: setting up CPU
Robert Watson [Mon, 18 May 2009 14:02:55 +0000 (14:02 +0000)]
Binding interrupts to a CPU consists of two parts: setting up CPU
affinity for the interrupt thread, and requesting that underlying
hardware direct interrupts to the CPU.  For software interrupt
threads, implement a no-op interrupt event binder that returns
success, so that the interrupt management code will just set the
ithread's affinity and succeed.

Reviewed by: jhb
MFC after: 1 week

15 years agoMark the clock sysctls as MPSAFE.
Ed Schouten [Mon, 18 May 2009 12:03:43 +0000 (12:03 +0000)]
Mark the clock sysctls as MPSAFE.

These sysctls don't need any form of locking. At least cp_times is used
by powerd very often, which means I get 50% less calls to non-MPSAFE
sysctls on my system. The other 50% is consumed by dev.cpu.0.freq, but
this seems to need Giant for Newbus.

15 years agoRemove license clauses 3 and 4 as per rev. 1.2 from NetBSD.
Christian Brueffer [Mon, 18 May 2009 11:23:15 +0000 (11:23 +0000)]
Remove license clauses 3 and 4 as per rev. 1.2 from NetBSD.

Also, FreeBSD 8.0 will be the first release including this driver. (1)

PR: 134093 (1)
Submitted by: gavin

15 years agoGarbage collect unused NETISR_{ATM,NETGRAPH,PPP} netisr constants.
Robert Watson [Mon, 18 May 2009 10:33:23 +0000 (10:33 +0000)]
Garbage collect unused NETISR_{ATM,NETGRAPH,PPP} netisr constants.

15 years agoRemove extra parenthesis used in macros. These macros are not used
Pyun YongHyeon [Mon, 18 May 2009 07:13:42 +0000 (07:13 +0000)]
Remove extra parenthesis used in macros. These macros are not used
in driver, though.

15 years agoConsistently use tab characters instead of spaces.
Pyun YongHyeon [Mon, 18 May 2009 07:10:48 +0000 (07:10 +0000)]
Consistently use tab characters instead of spaces.

15 years agostyle(9)
Pyun YongHyeon [Mon, 18 May 2009 07:04:03 +0000 (07:04 +0000)]
style(9)

15 years agos/u_int8_t/uint8_t/g
Pyun YongHyeon [Mon, 18 May 2009 06:32:38 +0000 (06:32 +0000)]
s/u_int8_t/uint8_t/g
s/u_int16_t/uint16_t/g
s/u_int32_t/uint32_t/g

15 years agostyle(9) - space after keyword.
Pyun YongHyeon [Mon, 18 May 2009 06:19:17 +0000 (06:19 +0000)]
style(9) - space after keyword.

15 years agoRemove return statement at the end of functions that return void.
Pyun YongHyeon [Mon, 18 May 2009 06:13:56 +0000 (06:13 +0000)]
Remove return statement at the end of functions that return void.

15 years agoRemove trailling whitespaces.
Pyun YongHyeon [Mon, 18 May 2009 06:09:10 +0000 (06:09 +0000)]
Remove trailling whitespaces.

15 years agoRemove register keyword.
Pyun YongHyeon [Mon, 18 May 2009 06:05:50 +0000 (06:05 +0000)]
Remove register keyword.

15 years agoUse ANSI C declarations for all functions.
Pyun YongHyeon [Mon, 18 May 2009 06:02:54 +0000 (06:02 +0000)]
Use ANSI C declarations for all functions.

15 years agoThe merge in r189699 reverted part of the work done in a previous commit
Adrian Chadd [Mon, 18 May 2009 04:56:37 +0000 (04:56 +0000)]
The merge in r189699 reverted part of the work done in a previous commit
(r188036.)

Re-revert that change so the Xen networking functions again.

15 years agoDisable some un-needed console debugging.
Adrian Chadd [Mon, 18 May 2009 04:50:31 +0000 (04:50 +0000)]
Disable some un-needed console debugging.

15 years agoImplement MSG_CMSG_CLOEXEC flag for linux_recvmsg().
Dmitry Chagin [Mon, 18 May 2009 04:07:46 +0000 (04:07 +0000)]
Implement MSG_CMSG_CLOEXEC flag for linux_recvmsg().

Approved by: kib (mentor)
MFC after: 1 month

15 years agoThis patch resolves the following issues:
Qing Li [Mon, 18 May 2009 02:25:45 +0000 (02:25 +0000)]
This patch resolves the following issues:

-- A routing socket message is not generated when an IPv6 address is
   either inserted or deleted from an interface. The missing routing
   message problem was discovered by Randall Stewart and Michael Tuxen
   during SCTP testing.

-- Previously when an IPv6 address is configured on an interface, if the
   prefix length is /128, then a host route is instaleld in the kernel
   for this address. But this host route is not deleted when that IPv6
   address is removed from the interface.

-- Routes to the link-local all-nodes multicast address and the
   interface-local all-nodes multicast address are not removed when
   the last IPv6 address is removed from an interface.

Reviewed by: bz, gnn

15 years agoDMA synchronization fixes:
Xin LI [Mon, 18 May 2009 01:51:52 +0000 (01:51 +0000)]
DMA synchronization fixes:

 - In bce_rx_intr(), use BUS_DMASYNC_POSTREAD instead of
   BUS_DMASYNC_POSTWRITE, as we want to "read" from the
   rx page chain pages.
 - Document why we need to do PREWRITE after we have updated
   the rx page chain pages.
 - In bce_intr(), use BUS_DMASYNC_POSTREAD and
   BUS_DMASYNC_PREREAD when before and after CPU "reading"
   the status block.
 - Adjust some nearby style mismatches/etc.

Pointed out by: yongari
Approved by: davidch (no objection) but bugs are mine :)

15 years agoRemove redundant whitespace
Brian Somers [Mon, 18 May 2009 01:45:52 +0000 (01:45 +0000)]
Remove redundant whitespace

15 years agoCorrect types of PHY, per http://bcm-specs.sipsolutions.net/PHYVersioning
Warner Losh [Mon, 18 May 2009 01:07:38 +0000 (01:07 +0000)]
Correct types of PHY, per http://bcm-specs.sipsolutions.net/PHYVersioning

# Note: The driver doesn't support either these PHY types, so this is
# effectively a nop.

Submitted by: "ddk"
Obtained from: http://paradox.lissyara.su/bwi.diff

15 years agotbr_timeout() is a timer driven function[1]. While the previous commit
Bjoern A. Zeeb [Mon, 18 May 2009 01:05:09 +0000 (01:05 +0000)]
tbr_timeout() is a timer driven function[1]. While the previous commit
made LINT happy this does the proper looping over all vnets as we are
only called `globally' and not once per vnet instance.

Reported by: zec [1]
Missed by: bz  [1] in r192264
Reviewed by: zec

15 years agoTurns out that my BCM4318 has a PCI ID of 0x4319, which lead me to
Warner Losh [Mon, 18 May 2009 01:00:11 +0000 (01:00 +0000)]
Turns out that my BCM4318 has a PCI ID of 0x4319, which lead me to
believe it was a BCM4319.  However, it is the a/b/g variation of the
BCM4318.  The chip itself is labelled BCM4318EKFBG, and the board is
BCM94318MKABG.

Paradox's patch includes the type of 802.11 wireless for each card,
but changes all the names (I don't think the latter is quite right).
Import that part of the patch, but keep the current set of BCM names
(with a minor tweak for the 4306 ones). I'll need to verify them via
some other means.

Obtained from: http://paradox.lissyara.su/bwi.diff (partially)

15 years agoSeveral changes to vfs_bio_clrbuf():
Alan Cox [Sun, 17 May 2009 23:25:53 +0000 (23:25 +0000)]
Several changes to vfs_bio_clrbuf():

Provide a more descriptive comment.

Eliminate dead code.  The page cannot possibly have PG_ZERO set.

Eliminate unnecessary blank lines.

Reviewed by: tegge

15 years agoDocument sbuf_new_auto().
Christian Brueffer [Sun, 17 May 2009 21:28:37 +0000 (21:28 +0000)]
Document sbuf_new_auto().

While here, add a missing `-' in phk's name.

MFC after: 3 days

15 years agoAdd a missing INIT_VNET_NET() to get VIMAGE closer to full LINT again.
Bjoern A. Zeeb [Sun, 17 May 2009 20:59:09 +0000 (20:59 +0000)]
Add a missing INIT_VNET_NET() to get VIMAGE closer to full LINT again.

15 years agoPut the structs under #ifndef VIMAGE_GLOBALS as some constants are not
Bjoern A. Zeeb [Sun, 17 May 2009 20:55:33 +0000 (20:55 +0000)]
Put the structs under #ifndef VIMAGE_GLOBALS as some constants are not
defined for VIMAGE_GLOBALS and thus broke the build for that option.

Reported by: csjp

15 years agoUnbreak options VIMAGE builds, in a followup to r192011 which did not
Bjoern A. Zeeb [Sun, 17 May 2009 20:53:10 +0000 (20:53 +0000)]
Unbreak options VIMAGE builds, in a followup to r192011 which did not
introduce INIT_VNET_NET() initializers necessary for accessing V_loif.

Submitted by: zec
Reviewed by: julian

15 years agoEliminate a pointless call to pmap_clear_reference() from vm_pageout_scan().
Alan Cox [Sun, 17 May 2009 20:40:41 +0000 (20:40 +0000)]
Eliminate a pointless call to pmap_clear_reference() from vm_pageout_scan().
If the page belongs to an object with a reference count of zero, then it
can't have any managed mappings on which to clear a reference bit.

15 years agoIntroduce vfs_bio_set_valid() and use it from ffs_realloccg(). This
Alan Cox [Sun, 17 May 2009 20:26:00 +0000 (20:26 +0000)]
Introduce vfs_bio_set_valid() and use it from ffs_realloccg().  This
eliminates the misuse of vfs_bio_clrbuf() by ffs_realloccg().

In collaboration with: tegge

15 years agoadd TRENDnet TEW-504UB/EU
Sam Leffler [Sun, 17 May 2009 19:51:08 +0000 (19:51 +0000)]
add TRENDnet TEW-504UB/EU

Submitted by: Lucius Windschuh <lwindschuh@googlemail.com>

15 years agofix 11a channel use; mark OFDM operation correctly
Sam Leffler [Sun, 17 May 2009 19:46:50 +0000 (19:46 +0000)]
fix 11a channel use; mark OFDM operation correctly

Submitted by: Lucius Windschuh <lwindschuh@googlemail.com>

15 years agoFix the acquisition of local locks via VOP_ADVLOCK() by the
Rick Macklem [Sun, 17 May 2009 19:33:48 +0000 (19:33 +0000)]
Fix the acquisition of local locks via VOP_ADVLOCK() by the
experimental nfsv4 server. It was setting the a_id argument
to a fixed value, but that wasn't sufficient for FreeBSD8.
Instead, set l_pid and l_sysid to 0 plus set the F_REMOTE
flag to indicate that these fields are used to check for
same lock owner. Since, for NFSv4, a lockowner is a ClientID plus
an up to 1024byte name, it can't be put in l_sysid easily.
I also renamed the p variable to td, since it's a thread ptr.

Approved by: kib (mentor)

15 years agoAdded a SYSCTL to sys/fs/nfsserver/nfs_nfsdport.c so that the value of
Rick Macklem [Sun, 17 May 2009 17:54:01 +0000 (17:54 +0000)]
Added a SYSCTL to sys/fs/nfsserver/nfs_nfsdport.c so that the value of
nfsrv_dolocallocks can be changed via sysctl. I also added some non-empty
descriptor strings and reformatted some overly long lines.

Approved by: kib (mentor)

15 years agoPrint an extra newline when not at the first column already.
Ed Schouten [Sun, 17 May 2009 16:17:48 +0000 (16:17 +0000)]
Print an extra newline when not at the first column already.

This makes siginfo output look a lot better when pressing it the first
time when in sh(1), for example:

$ load: 0.00  cmd: sh 1945 [ttyin] 3.94r 0.00u 0.00s 0% 1960k
load: 0.00  cmd: sh 1945 [ttyin] 4.19r 0.00u 0.00s 0% 1960k

will now become:

$
load: 0.00  cmd: sh 1945 [ttyin] 3.94r 0.00u 0.00s 0% 1960k
load: 0.00  cmd: sh 1945 [ttyin] 4.19r 0.00u 0.00s 0% 1960k

15 years agoSeveral cleanups to tty_info(), better known as Ctrl-T.
Ed Schouten [Sun, 17 May 2009 12:30:25 +0000 (12:30 +0000)]
Several cleanups to tty_info(), better known as Ctrl-T.

- Only pick up PROC_LOCK once, which means we can drop the PGRP_LOCK
  right after picking up PROC_LOCK for the first time.

- Print the process real time, making it consistent with tools like
  time(1).

- Use `p' and `td' to reference the process/thread we are going to
  print. Only use pick-variables inside the loops. We already did this
  for the threads, but not the processes.

15 years agoFix the example.
Edward Tomasz Napierala [Sun, 17 May 2009 12:21:11 +0000 (12:21 +0000)]
Fix the example.

15 years agoImprove the accf_dns_load description.
Christian Brueffer [Sun, 17 May 2009 10:58:50 +0000 (10:58 +0000)]
Improve the accf_dns_load description.

15 years ago- do not create and mount new file systems on top of the old ones on every
Daniel Gerzo [Sun, 17 May 2009 08:25:02 +0000 (08:25 +0000)]
- do not create and mount new file systems on top of the old ones on every
  invocation of this script once we already have one
  (in case tmpmfs="YES").

Reviewed by: dougb

15 years agoMerge r191964: Eliminate a case of unnecessary page queues locking.
Alan Cox [Sun, 17 May 2009 06:45:30 +0000 (06:45 +0000)]
Merge r191964: Eliminate a case of unnecessary page queues locking.

15 years agoadd zfs oid to bsnmpd
Kip Macy [Sun, 17 May 2009 05:54:25 +0000 (05:54 +0000)]
add zfs oid to bsnmpd

PR: bin/129360
Submitted by: Ulrich Spoerlein

15 years agoWhen finding processes, ignore ourself and our ancestors. It is almost
Brian Somers [Sun, 17 May 2009 04:34:14 +0000 (04:34 +0000)]
When finding processes, ignore ourself and our ancestors.  It is almost
always surprising when you kill a 'sh -c ...' ancestor or when you kill
yourself when using -f.

Add a -a switch for backwards compatibility.

MFC after: 3 weeks