]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoPrefer I-units and M-units for nop instructions. This works around
marcel [Mon, 22 Feb 2010 01:23:41 +0000 (01:23 +0000)]
Prefer I-units and M-units for nop instructions. This works around
McKinley flaws. It also avoids using the F-unit in the kernel for
no reason.

14 years agoNormalize nop instructions: Only use 0 for the immediate operand.
marcel [Sun, 21 Feb 2010 23:41:59 +0000 (23:41 +0000)]
Normalize nop instructions: Only use 0 for the immediate operand.

14 years agoRemove pm_active from struct pmap as it serves no purpose.
marcel [Sun, 21 Feb 2010 23:10:13 +0000 (23:10 +0000)]
Remove pm_active from struct pmap as it serves no purpose.

MFC after: 1 week

14 years agoAlign the start of the clean submap to a superpage boundary. Although
alc [Sun, 21 Feb 2010 22:23:13 +0000 (22:23 +0000)]
Align the start of the clean submap to a superpage boundary.  Although
no superpage mappings are created within the clean submap, aligning the
start of the clean submap helps to prevent interference with kmem_alloc()'s
use of superpages.

14 years agoAdd a simple fan management callout to the SMU driver. This is designed
nwhitehorn [Sun, 21 Feb 2010 22:13:57 +0000 (22:13 +0000)]
Add a simple fan management callout to the SMU driver. This is designed
such that a fancier thermal management algorithm can be run from user
space, but the kernel will at least ensure your machine does not either
sound like a wind tunnel or catch fire.

14 years agoFix several mistakes in this file, in order to allow individual fan speeds
nwhitehorn [Sun, 21 Feb 2010 21:03:37 +0000 (21:03 +0000)]
Fix several mistakes in this file, in order to allow individual fan speeds
to be read and set correctly.

14 years agoPrefer exit(0) from main over return(0).
uqs [Sun, 21 Feb 2010 21:03:15 +0000 (21:03 +0000)]
Prefer exit(0) from main over return(0).

Although not explicitly mentioned in style(9), it allows for easier
grepping of exit points. This reverts part of r203926.

Requested by: des
Approved by: philip (mentor)

14 years agoChanging proto_socketpair.c compilation and linking order revealed
pjd [Sun, 21 Feb 2010 19:56:47 +0000 (19:56 +0000)]
Changing proto_socketpair.c compilation and linking order revealed
a problem - we should simply ignore proto_server() if address
doesn't start with socketpair://, and not abort.

14 years agoDecompose the most lousy named file in sys/kern; kern_subr.c.
ed [Sun, 21 Feb 2010 19:53:33 +0000 (19:53 +0000)]
Decompose the most lousy named file in sys/kern; kern_subr.c.

Although this file has historically been used as a dumping ground for
random functions, nowadays it only contains functions related to copying
bits {from,to} userspace and hash table utility functions.

Behold, subr_uio.c and subr_hash.c.

14 years agoFix another fo-pa of mine... duplicate patches should
rrs [Sun, 21 Feb 2010 17:27:20 +0000 (17:27 +0000)]
Fix another fo-pa of mine... duplicate patches should
not be applied and randy needs coffee in the morning
when working to help keep things sorted out... obviously :-)

14 years agoAdds the missing mips gdb files that I
rrs [Sun, 21 Feb 2010 17:25:00 +0000 (17:25 +0000)]
Adds the missing mips gdb files that I
foobar'd on my last commit.. Sorry about
that JC.. my fault.

Obtained from: JC

14 years agoifconfig(8) expects interface fooX to be supported by the module if_foo,
rwatson [Sun, 21 Feb 2010 15:25:47 +0000 (15:25 +0000)]
ifconfig(8) expects interface fooX to be supported by the module if_foo,
and will try to load it if it's not present.  To better meet these
expectations, change the module name for the loopback interface from
'loop' to 'if_lo'.  The loopback interface is always compiled into the
base kernel, so there are no resulting changes in kld files, etc.

Discussed with: brooks (ages ago)
MFC after: 1 week

14 years agoWhile there, trim some trailing whitespace.
ed [Sun, 21 Feb 2010 14:58:01 +0000 (14:58 +0000)]
While there, trim some trailing whitespace.

14 years ago- Remove GNU bc/dc bits. There has not been any regressions seen after
gabor [Sun, 21 Feb 2010 14:28:03 +0000 (14:28 +0000)]
- Remove GNU bc/dc bits. There has not been any regressions seen after
  BSD bc/dc import. It has been tested with make universe that this code
  is not used by anything any more.

Approved by: delphij (mentor)

14 years agoAdd proper const keywords to sysctl(3) parameters.
ed [Sun, 21 Feb 2010 13:57:02 +0000 (13:57 +0000)]
Add proper const keywords to sysctl(3) parameters.

The `name' and `newp' arguments can be marked const, because the buffers
they refer to are never changed. While there, perform some other
cleanups:

- Remove K&R from sysctl.c.
- Implement sysctlbyname() using sysctlnametomib() to prevent
  duplication of an undocumented kernel interface.
- Fix some whitespace nits.

It seems the prototypes are now in sync with NetBSD as well.

14 years agoDocument the interaction between /etc/devfs.conf and
gavin [Sun, 21 Feb 2010 10:29:45 +0000 (10:29 +0000)]
Document the interaction between /etc/devfs.conf and
/etc/defaults/devfs.conf

PR: docs/117308
Submitted by: Mel <mel.xyzzy rachie.is-a-geek.net> (partially)
MFC after: 1 week

14 years agoAdd a "-x" option to chown(8)/chgrp(1) similar to the same option in
gavin [Sun, 21 Feb 2010 10:14:06 +0000 (10:14 +0000)]
Add a "-x" option to chown(8)/chgrp(1) similar to the same option in
du(1), cp(1) etc, to prevent the crossing of mountpoints whilst using the
commands recursively.

PR: bin/130855
Submitted by: keramida
MFC after: 1 month

14 years agoSome machines can not only consist of CPUs running at different speeds
marius [Sun, 21 Feb 2010 09:25:53 +0000 (09:25 +0000)]
Some machines can not only consist of CPUs running at different speeds
but also of different types, f.e. Sun Fire V890 can be equipped with a
mix of UltraSPARC IV and IV+ CPUs, requiring different MMU initialization
and different workarounds for model specific errata. Therefore move the
CPU implementation number from a global variable to the per-CPU data.
Functions which are called before the latter is available are passed the
implementation number as a parameter now.

This file was missed in r204152.

14 years agoSince create_pagetables() zeroes the page tables, pmap_bootstrap() needn't
alc [Sun, 21 Feb 2010 03:49:39 +0000 (03:49 +0000)]
Since create_pagetables() zeroes the page tables, pmap_bootstrap() needn't
zero *CMAP1.

14 years ago- fix bootstrap for variable KVA_PAGES
kmacy [Sun, 21 Feb 2010 01:13:34 +0000 (01:13 +0000)]
- fix bootstrap for variable KVA_PAGES
- remove unused CADDR1
- hold lock across page table update

MFC after: 3 days

14 years agodon't hold spin lock across free
kmacy [Sun, 21 Feb 2010 01:12:18 +0000 (01:12 +0000)]
don't hold spin lock across free

14 years ago- make printf conditional
kmacy [Sun, 21 Feb 2010 01:11:39 +0000 (01:11 +0000)]
- make printf conditional
- fix witness warnings by making configuration lock a mutex

14 years agoremove atkbd from default config to avoid pulling in real-mode bios emulation
kmacy [Sun, 21 Feb 2010 01:06:07 +0000 (01:06 +0000)]
remove atkbd from default config to avoid pulling in real-mode bios emulation

14 years agoAdd __FBSDID.
yongari [Sun, 21 Feb 2010 00:07:45 +0000 (00:07 +0000)]
Add __FBSDID.

Reviewed by: sam

14 years agoIncrease PCIe maximuim read request size to 2048. Because re(4) uses
yongari [Sun, 21 Feb 2010 00:00:55 +0000 (00:00 +0000)]
Increase PCIe maximuim read request size to 2048. Because re(4) uses
Tx DMA burst size 2048, I beleive PCIe maximum read request size
also should match to the value of Tx DMA burst size. With this
change I can get more than 800Mbps for TCP bulk transfers.
Previously I was not able to get more than 700Mbps. If I enable TSO
it now shows 927Mbps.

14 years agoStarting with UltraSPARC IV CPUs the CPU caches are described with different
marius [Sat, 20 Feb 2010 23:42:24 +0000 (23:42 +0000)]
Starting with UltraSPARC IV CPUs the CPU caches are described with different
OFW properties.

14 years agoSome machines can not only consist of CPUs running at different speeds
marius [Sat, 20 Feb 2010 23:24:19 +0000 (23:24 +0000)]
Some machines can not only consist of CPUs running at different speeds
but also of different types, f.e. Sun Fire V890 can be equipped with a
mix of UltraSPARC IV and IV+ CPUs, requiring different MMU initialization
and different workarounds for model specific errata. Therefore move the
CPU implementation number from a global variable to the per-CPU data.
Functions which are called before the latter is available are passed the
implementation number as a parameter now.

14 years agoAdd TSO support on VLAN. Controller requires VLAN hardware tagging
yongari [Sat, 20 Feb 2010 23:21:06 +0000 (23:21 +0000)]
Add TSO support on VLAN. Controller requires VLAN hardware tagging
to make TSO work on VLAN. So if VLAN hardware tagging is disabled
explicitly clear TSO on VLAN. While I'm here remove duplicated
VLAN_CAPABILITIES call.

14 years agoAdd TSO support on VLAN in fconfig(8).
yongari [Sat, 20 Feb 2010 23:01:09 +0000 (23:01 +0000)]
Add TSO support on VLAN in fconfig(8).

Reviewed by: thompsa

14 years agoAdd TSO support on VLANs. Intentionally separated IFCAP_VLAN_HWTSO
yongari [Sat, 20 Feb 2010 22:47:20 +0000 (22:47 +0000)]
Add TSO support on VLANs. Intentionally separated IFCAP_VLAN_HWTSO
from IFCAP_VLAN_HWTAGGING. I think some hardwares may be able to
TSO over VLAN without VLAN hardware tagging.
Driver changes and userland support will follow.

Reviewed by: thompsa

14 years agoSet curvnet earlier so that it also covers calls to sodisconnect(), which
bz [Sat, 20 Feb 2010 22:29:28 +0000 (22:29 +0000)]
Set curvnet earlier so that it also covers calls to sodisconnect(), which
before were possibly panicing the system in ULP code in the VIMAGE case.

Submitted by: Igor (igor ispsystem.com)
MFC after: 5 days

14 years agoCorrect inversed programming of ethernet hardware address on
yongari [Sat, 20 Feb 2010 22:24:24 +0000 (22:24 +0000)]
Correct inversed programming of ethernet hardware address on
big-endian architecture.

Submitted by: C. Jayachandran <c.jayachandran at gmail dot com> (initial version)

14 years agoStart to implement ifnet DDB support:
bz [Sat, 20 Feb 2010 22:09:48 +0000 (22:09 +0000)]
Start to implement ifnet DDB support:
- 'show ifnets' prints a list of ifnet *s per virtual network stack,
- 'show ifnet <struct ifnet *>' prints fields matching the given ifp.

We do not yet print the complete set of fields and might want to
factor this out to an extra if_debug.c file in case this grows
a lot[1]. We may also want to grow 'show ifnet <if_xname>' support[1].

Sponsored by: ISPsystem
Suggested by: rwatson [1]
Reviewed by: rwatson
MFC after: 5 days

14 years agoAdd support for BCM54K2 found in combination with Apple K2 GMAC.
marius [Sat, 20 Feb 2010 22:01:24 +0000 (22:01 +0000)]
Add support for BCM54K2 found in combination with Apple K2 GMAC.

Submitted by:   Andreas Tobler
Obtained from:  OpenBSD
MFC after:      1 week

14 years agoUpon virtual network stack teardown properly release the TCP syncache
bz [Sat, 20 Feb 2010 21:45:04 +0000 (21:45 +0000)]
Upon virtual network stack teardown properly release the TCP syncache
resources.

Sponsored by: ISPsystem
Reviewed by: rwatson
MFC After: 5 days

14 years agoEnhance a panic string to contain more useful debugging information.
bz [Sat, 20 Feb 2010 21:43:36 +0000 (21:43 +0000)]
Enhance a panic string to contain more useful debugging information.

Sponsored by: ISPsystem
Reviewed by: rwatson
MFC after: 5 days

14 years agoFix handling of SHUTDOWN-ACK chunk in COOKIE_WAIT and COOKIE_ECHOED.
tuexen [Sat, 20 Feb 2010 20:30:40 +0000 (20:30 +0000)]
Fix handling of SHUTDOWN-ACK chunk in COOKIE_WAIT and COOKIE_ECHOED.

MFC after: 1 week

14 years agoSplit up ip_drain() into an outer lock and iterator part and
bz [Sat, 20 Feb 2010 19:59:52 +0000 (19:59 +0000)]
Split up ip_drain() into an outer lock and iterator part and
a "locked" version that will only handle a single network stack
instance. The latter is called directly from ip_destroy().

Hook up an ip_destroy() function to release resources from the
legacy IP network layer upon virtual network stack teardown.

Sponsored by: ISPsystem
Reviewed by: rwatson
MFC After: 5 days

14 years agoEliminate an unused declaration.
alc [Sat, 20 Feb 2010 19:30:04 +0000 (19:30 +0000)]
Eliminate an unused declaration.

14 years agoThese contain JC's patch to get gdb sort of working
rrs [Sat, 20 Feb 2010 17:29:27 +0000 (17:29 +0000)]
These contain JC's patch to get gdb sort of working
on mips. Its not fully done yet but its a start.

Obtained from: JC - c.jayachandran@gmail.com

M    gnu/usr.bin/gdb/kgdb/trgt_mips.c
M    gnu/usr.bin/gdb/arch/mips/init.c
M    gnu/usr.bin/gdb/arch/mips/Makefile
M    gnu/usr.bin/Makefile
M    contrib/gdb/gdb/mips-tdep.h

14 years agoFix for the rge driver for boards without rge6 and rge7.
rrs [Sat, 20 Feb 2010 17:24:33 +0000 (17:24 +0000)]
Fix for the rge driver for boards without rge6 and rge7.
- changes to avoid adding theses instances on specific chips
Obtained from: C. Jayachandran - JC - c.jayachandran@gmail.com

14 years agoChanges for pci and pci-e support
rrs [Sat, 20 Feb 2010 17:19:16 +0000 (17:19 +0000)]
Changes for pci and pci-e support
- add bus_space_rmi_pci.c for PCI bus space
- files.xlr update for changes in files
- pcibus.c merged into xlr_pci.c (they were small files with inter-dependencies)
- xlr_pci.c - lot of changes here with few fixes, formatting cleanup
Obtained from: C. Jayachandran (JC) - c.jayachandran@gmail.com

14 years agoOpps forgot to add this:
rrs [Sat, 20 Feb 2010 17:12:07 +0000 (17:12 +0000)]
Opps forgot to add this:
- add bus_space_rmi_pci.c for PCI bus space

Obtained from: C. Jayachandran -  <c.jayachandran@gmail.com>

14 years agoCleanups for sys/mips/rmi/bus_space_rmi.c
rrs [Sat, 20 Feb 2010 16:32:33 +0000 (16:32 +0000)]
Cleanups for sys/mips/rmi/bus_space_rmi.c
- remove pci related code from bus_space_rmi.c, we will have another
file for PCI bus space functions which will do byte-swapping.
- remove local SWAP implementation
- added TODO stub for unimplemented functions

Obtained from: C. Jayachandran - c.jayachandran@gmail.com

14 years agoSome fixes to the current RMI interrupt handling, changes in this patch are:
rrs [Sat, 20 Feb 2010 16:30:29 +0000 (16:30 +0000)]
Some fixes to the current RMI interrupt handling, changes in this patch are:
- (cleanup) remove rmi specific 'struct mips_intrhand' - this is no
longer needed since 'struct intr_event' have all the required hooks
- add xlr_cpu_establish_hardintr, which has args for pre/post ithread
and filter hooks, so that the PCI code can add the PCI controller
interrupt ack code here
- make 'cpu_establish_hardintr' use the above function.
- (fix) change type of eirr/eimr from register_t to uint64_t. These
have to be 64bit otherwise we cannot handle interrupts from 32.
- (fix) use eimr to mask eirr before checking interrupts, so that we
will not handle masked interrupts.

Obtained from:  C. Jayachandran - c.jayachandran@gmail.com

14 years agoEnable NETIF_OPEN_CLOSE_ONCE on PowerPC OFW. This fixes netbooting on
nwhitehorn [Sat, 20 Feb 2010 16:28:37 +0000 (16:28 +0000)]
Enable NETIF_OPEN_CLOSE_ONCE on PowerPC OFW. This fixes netbooting on
PowerPC Book-S hardware, which had been broken for a very long time.

Submitted by: Andreas Tobler
MFC after: 1 week

14 years agoReduce KVA pressure on OEA64 systems running in bridge mode by mapping
nwhitehorn [Sat, 20 Feb 2010 16:23:29 +0000 (16:23 +0000)]
Reduce KVA pressure on OEA64 systems running in bridge mode by mapping
UMA segments at their physical addresses instead of into KVA. This emulates
the direct mapping behavior of OEA32 in an ad-hoc way. To make this work
properly required sharing the entire kernel PMAP with Open Firmware, so
ofw_pmap is transformed into a stub on 64-bit CPUs.

Also implement some more tweaks to get more mileage out of our limited
amount of KVA, principally by extending KVA into segment 16 until the
beginning of the first OFW mapping.

Reported by: linimon

14 years agoTurn on experimental support for DEEPNAP on the 970MP.
nwhitehorn [Sat, 20 Feb 2010 16:14:19 +0000 (16:14 +0000)]
Turn on experimental support for DEEPNAP on the 970MP.

14 years agoMerge r198724 to Book-E. casuword() non-atomically read the current value
nwhitehorn [Sat, 20 Feb 2010 16:13:43 +0000 (16:13 +0000)]
Merge r198724 to Book-E. casuword() non-atomically read the current value
of its argument before atomically replacing it, which could occasionally
return the wrong value on an SMP system. This resulted in user mutex
operations hanging when using threaded applications.

14 years agoAdd a regression test for the kthread(9) interface.
attilio [Sat, 20 Feb 2010 15:20:28 +0000 (15:20 +0000)]
Add a regression test for the kthread(9) interface.

Submitted by: Giovanni Trematerra
<giovanni dot trematerra at gmail dot com>

14 years agoShow the cpu info for fa526
kevlo [Sat, 20 Feb 2010 14:54:11 +0000 (14:54 +0000)]
Show the cpu info for fa526

Submitted by: Yohanes Nugroho <yohanes at gmail dot com>

14 years agoCorrect both FA526/FA626TE cpu ids since the cpu id is always
kevlo [Sat, 20 Feb 2010 14:52:07 +0000 (14:52 +0000)]
Correct both FA526/FA626TE cpu ids since the cpu id is always
masked with 0xfffffff0

14 years agoRemove redundant inclusion of <sys/cdefs.h>.
ed [Sat, 20 Feb 2010 14:13:47 +0000 (14:13 +0000)]
Remove redundant inclusion of <sys/cdefs.h>.

In my previous commit I should have moved the inclusion to the top,
instead of adding a second one.

14 years agoAdd <sys/cdefs.h>.
ed [Sat, 20 Feb 2010 13:33:50 +0000 (13:33 +0000)]
Add <sys/cdefs.h>.

This header file uses __packed, without including <sys/cdefs.h>. This
means it cannot be used in the way described in sysarch(3) by only
including <machine/sysarch.h>.

14 years agoFix common misspelling of hierarchy
uqs [Sat, 20 Feb 2010 10:19:19 +0000 (10:19 +0000)]
Fix common misspelling of hierarchy

Pointed out by: bf1783 at gmail
Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)

14 years ago- More style(9) fixups
gabor [Sat, 20 Feb 2010 08:19:19 +0000 (08:19 +0000)]
- More style(9) fixups

Approved by: delphij (mentor)

14 years agoFix DDB backtrace that includes a kernel exception frame.
neel [Sat, 20 Feb 2010 07:34:37 +0000 (07:34 +0000)]
Fix DDB backtrace that includes a kernel exception frame.

The backtrace code tries to look for an instruction of the form "sw ra, x(sp)"
to figure out the program counter of the calling function. When we generate
the kernel exception frame we store the 'ra' at the time of the exception
using an instruction of the same form. The problem is that the 'ra' at the
time of the exception is not the same as the 'program counter' at the time
of the exception.

The fix is to save the 'exception program counter' register by staging
it through the 'ra' register.

14 years agoGet rid of unused options: KERNPHYSADDR, KERNVIRTADDR, PHYSADDR, PHYS_ADDR_64BIT
neel [Sat, 20 Feb 2010 06:39:14 +0000 (06:39 +0000)]
Get rid of unused options: KERNPHYSADDR, KERNVIRTADDR, PHYSADDR, PHYS_ADDR_64BIT

Discussed with: gonzo, imp

14 years agoTreat numbers after [Ee] a positive number rather than an invalid
delphij [Sat, 20 Feb 2010 01:23:15 +0000 (01:23 +0000)]
Treat numbers after [Ee] a positive number rather than an invalid
one.

14 years agoAvoid corrupting the list or queue if _REMOVE is invoked with a
emaste [Sat, 20 Feb 2010 01:05:30 +0000 (01:05 +0000)]
Avoid corrupting the list or queue if _REMOVE is invoked with a
reference to the head.

PR: kern/119307
MFC After: 1 week

14 years agoReturn partially filled buffer for non-blocking read(2)
jkim [Sat, 20 Feb 2010 00:19:21 +0000 (00:19 +0000)]
Return partially filled buffer for non-blocking read(2)
in non-immediate mode.

PR: kern/143855

14 years agoAdd a reference to newly added seq(1) command.
delphij [Sat, 20 Feb 2010 00:16:44 +0000 (00:16 +0000)]
Add a reference to newly added seq(1) command.

Submitted by: jilles
MFC after: 3 months

14 years agoAdd seq(1), a small utility to generate sequence number.
delphij [Fri, 19 Feb 2010 23:54:12 +0000 (23:54 +0000)]
Add seq(1), a small utility to generate sequence number.

Obtained from: NetBSD
MFC after: 3 months

14 years agoHook up nfs_common missed in r203968.
marius [Fri, 19 Feb 2010 21:11:40 +0000 (21:11 +0000)]
Hook up nfs_common missed in r203968.

Submitted by: kib

14 years agoDon't set f_bsize to recordsize. It might confuse some software (like squid).
pjd [Fri, 19 Feb 2010 20:18:16 +0000 (20:18 +0000)]
Don't set f_bsize to recordsize. It might confuse some software (like squid).

Submitted by: Alexander Zagrebin <alexz@visp.ru>
MFC after: 2 weeks

14 years agoCorrect spelling of reseting (found while researching the "bb hang detected"
deischen [Fri, 19 Feb 2010 18:23:45 +0000 (18:23 +0000)]
Correct spelling of reseting (found while researching the "bb hang detected"
messages that are plaguing me).  While I'm here, delete trailing whitespace.

14 years ago* Fix another u_long -> uint32_t issue.
tuexen [Fri, 19 Feb 2010 18:00:38 +0000 (18:00 +0000)]
* Fix another u_long -> uint32_t issue.
* Remove an unused global variable.
* Fix an issue reported by Bruce Cran related to reusing SCTP socket which
  where connected.

MFC after: 1 week

14 years agoDefine DMA_RX_STATUS_OVERFLOW with correct value.
kan [Fri, 19 Feb 2010 17:37:46 +0000 (17:37 +0000)]
Define DMA_RX_STATUS_OVERFLOW with correct value.

The RX overflow is reported in bit 2 on real hardware and Linux driver
for the same device already has this defined correctly.
This fixes frequent interrupt storms seen on RouterStation Pro boards.

Discussed with: gonzo

14 years agoUpdate to upstream version 1.338
fanf [Fri, 19 Feb 2010 16:54:51 +0000 (16:54 +0000)]
Update to upstream version 1.338

Fix a long-standing cpp compatibility bug: The -DFOO argument
(without an explicit value) should define FOO to 1 not to the empty
string.

Add support for CRLF newlines, based on a suggestion from Mark Rushakoff.

Obtained from: http://dotat.at/prog/unifdef/

14 years agoFix mptutil's method for locating disk devices attached to a specific
jhb [Fri, 19 Feb 2010 15:16:00 +0000 (15:16 +0000)]
Fix mptutil's method for locating disk devices attached to a specific
mpt(4) controller.  Previously, the code assumed that multiple match
patterns provided to an XPT_DEV_MATCH request were ANDed together.
Instead, they are ORed.  Instead, to match peripherals for a specific bus,
one query needs to be performed to lookup the path ID of the bus.  A second
query can then be performed matching peripherals attached to that path.
This approach also makes the code a bit cleaner as the returned match
results do not mix bus and perphierals.

Reported by: several folks
MFC after: 1 week

14 years agoUse the cached value within comparison.
attilio [Fri, 19 Feb 2010 15:10:05 +0000 (15:10 +0000)]
Use the cached value within comparison.

Submitted by: jhb

14 years agoFix the grammar.
attilio [Fri, 19 Feb 2010 15:03:55 +0000 (15:03 +0000)]
Fix the grammar.

Submitted by: Brandon Gooch <bgooch at se dot edu>

14 years agoFix a race in regard of p_numthreads.
attilio [Fri, 19 Feb 2010 14:59:41 +0000 (14:59 +0000)]
Fix a race in regard of p_numthreads.

Submitted by: Giovanni Trematerra
<giovanni dot trematerra at gmail dot com>

14 years ago- Don't emit a warning in 'show adapter' if the IOC2 or IOC6 pages are not
jhb [Fri, 19 Feb 2010 14:31:01 +0000 (14:31 +0000)]
- Don't emit a warning in 'show adapter' if the IOC2 or IOC6 pages are not
  present.  mpt(4) controllers that do not support RAID do not have an IOC6
  page, for example.
- Correct a check for a missing page error in a debug function.

MFC after: 1 week

14 years agoFix a typo.
jhb [Fri, 19 Feb 2010 14:27:32 +0000 (14:27 +0000)]
Fix a typo.

Submitted by: Jakub Lach  jakub_lach of mailplus pl

14 years agoAdd missing KEYWORD line.
pjd [Fri, 19 Feb 2010 09:18:26 +0000 (09:18 +0000)]
Add missing KEYWORD line.

Pointed out by: dougb

14 years agoAllow the SMU driver to read a variety of hardware sensors (possible
nwhitehorn [Fri, 19 Feb 2010 04:37:54 +0000 (04:37 +0000)]
Allow the SMU driver to read a variety of hardware sensors (possible
questions on the thermal calibration), and to read and set fan RPMs from
software. While here, fix a number of bugs.

Calibration code from: OpenBSD
MFC after: 2 weeks

14 years agoo print msgs with length if the frame is too short to pass to net80211.
weongyo [Fri, 19 Feb 2010 03:36:02 +0000 (03:36 +0000)]
o print msgs with length if the frame is too short to pass to net80211.
o print key index for debugging if the frame is attempted to decrypt for
  WEP, AES or TKIP though currently HW decryption isn't supported.

14 years agoCreate a directory for hast's examples.
delphij [Fri, 19 Feb 2010 02:34:25 +0000 (02:34 +0000)]
Create a directory for hast's examples.

14 years agoRemove some lines left over by accident.
pjd [Thu, 18 Feb 2010 23:20:15 +0000 (23:20 +0000)]
Remove some lines left over by accident.

14 years agoPlease welcome HAST - Highly Avalable Storage.
pjd [Thu, 18 Feb 2010 23:16:19 +0000 (23:16 +0000)]
Please welcome HAST - Highly Avalable Storage.

HAST allows to transparently store data on two physically separated machines
connected over the TCP/IP network. HAST works in Primary-Secondary
(Master-Backup, Master-Slave) configuration, which means that only one of the
cluster nodes can be active at any given time. Only Primary node is able to
handle I/O requests to HAST-managed devices. Currently HAST is limited to two
cluster nodes in total.

HAST operates on block level - it provides disk-like devices in /dev/hast/
directory for use by file systems and/or applications. Working on block level
makes it transparent for file systems and applications. There in no difference
between using HAST-provided device and raw disk, partition, etc. All of them
are just regular GEOM providers in FreeBSD.

For more information please consult hastd(8), hastctl(8) and hast.conf(5)
manual pages, as well as http://wiki.FreeBSD.org/HAST.

Sponsored by: FreeBSD Foundation
Sponsored by: OMCnet Internet Service GmbH
Sponsored by: TransIP BV

14 years agoStyle nits.
pjd [Thu, 18 Feb 2010 23:04:01 +0000 (23:04 +0000)]
Style nits.

14 years agoCorrect typo in comment.
pjd [Thu, 18 Feb 2010 22:34:29 +0000 (22:34 +0000)]
Correct typo in comment.

14 years agoAdd tunable and sysctl to skip hostid check on pool import.
pjd [Thu, 18 Feb 2010 22:31:43 +0000 (22:31 +0000)]
Add tunable and sysctl to skip hostid check on pool import.

14 years agoNo need to include security/mac/mac_framework.h here.
pjd [Thu, 18 Feb 2010 22:30:37 +0000 (22:30 +0000)]
No need to include security/mac/mac_framework.h here.

14 years ago- Style fixes.
pjd [Thu, 18 Feb 2010 22:29:35 +0000 (22:29 +0000)]
- Style fixes.
- Prefer strlcpy() over strncpy().

14 years agoCorrect comment.
pjd [Thu, 18 Feb 2010 22:28:12 +0000 (22:28 +0000)]
Correct comment.

14 years agoLog attach just like we log detach.
pjd [Thu, 18 Feb 2010 22:27:38 +0000 (22:27 +0000)]
Log attach just like we log detach.

14 years agoNo need to include security/mac/mac_framework.h here.
pjd [Thu, 18 Feb 2010 22:26:01 +0000 (22:26 +0000)]
No need to include security/mac/mac_framework.h here.

14 years agoUpdate comment. We also look for GPT partitions.
pjd [Thu, 18 Feb 2010 22:23:30 +0000 (22:23 +0000)]
Update comment. We also look for GPT partitions.

14 years ago- Reduce scope of vnode lock. vfs_mount_alloc() doesn't need vnode to be
pjd [Thu, 18 Feb 2010 22:22:45 +0000 (22:22 +0000)]
- Reduce scope of vnode lock. vfs_mount_alloc() doesn't need vnode to be
  locked.
- Remove code duplication.

14 years agoUse vput() instead of VOP_UNLOCK()+vrele(). The comment here is out-dated,
pjd [Thu, 18 Feb 2010 22:14:44 +0000 (22:14 +0000)]
Use vput() instead of VOP_UNLOCK()+vrele(). The comment here is out-dated,
we no longer pass thread pointer to VOP_UNLOCK().

14 years agoUse NULL instead of 0 when setting up pointer.
pjd [Thu, 18 Feb 2010 22:12:40 +0000 (22:12 +0000)]
Use NULL instead of 0 when setting up pointer.

14 years agoSimplify code a bit.
pjd [Thu, 18 Feb 2010 22:10:55 +0000 (22:10 +0000)]
Simplify code a bit.

14 years agoAdd heads-up requests for parts of the tree I look after and which
edwin [Thu, 18 Feb 2010 21:14:29 +0000 (21:14 +0000)]
Add heads-up requests for parts of the tree I look after and which
are partly maintained by a third party:

- share/zoneinfo
- usr.sbin/zic
- lib/libc/stdtime

14 years agoUnbreak SENTRY5 build.
imp [Thu, 18 Feb 2010 20:20:34 +0000 (20:20 +0000)]
Unbreak SENTRY5 build.

14 years agoHack to make ALCHEMY compile again...
imp [Thu, 18 Feb 2010 19:41:38 +0000 (19:41 +0000)]
Hack to make ALCHEMY compile again...

14 years agoMake printfs work for both OCTEON1 and OCTEON1-32
imp [Thu, 18 Feb 2010 19:27:00 +0000 (19:27 +0000)]
Make printfs work for both OCTEON1 and OCTEON1-32

14 years agoParens around tertiary operator so that casting the result works...
imp [Thu, 18 Feb 2010 19:24:23 +0000 (19:24 +0000)]
Parens around tertiary operator so that casting the result works...

14 years agoThe correct value of DEL is 0x7f, not 0xff. This is purely a documentation
gavin [Thu, 18 Feb 2010 19:06:30 +0000 (19:06 +0000)]
The correct value of DEL is 0x7f, not 0xff.  This is purely a documentation
issue - od(1) and hexdump(1) behave as expected.

PR: docs/143869
Submitted by: gcooper
MFC after: 2 weeks