]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoAcknowledge Edwin Groothuis for the major rewrite he
rodrigc [Fri, 24 Jun 2011 05:41:38 +0000 (05:41 +0000)]
Acknowledge Edwin Groothuis for the major rewrite he
did of the tftpd and tftp code to support TFTP blocksize.

13 years ago- Make sure we don't match the wrong device by adding
hselasky [Fri, 24 Jun 2011 04:35:58 +0000 (04:35 +0000)]
- Make sure we don't match the wrong device by adding
a match for the bus the device belongs to.

PR: misc/157903
MFC after: 14 days

13 years ago- Add additional information to the PnP info of USB HUBs children which
hselasky [Fri, 24 Jun 2011 04:16:06 +0000 (04:16 +0000)]
- Add additional information to the PnP info of USB HUBs children which
  is now required by bus_autoconf.
- Allow interface class matching even if device class is vendor specific.
- Update bus_autoconf tool to not generate system and subsystem match lines
  for the nomatch event.

PR: misc/157903
MFC after: 14 days

13 years agoFixes to newer tftp code in libstand:
rodrigc [Fri, 24 Jun 2011 03:50:54 +0000 (03:50 +0000)]
Fixes to newer tftp code in libstand:
 (1) Coding style changes.
 (2) If the server does not acknowledge any blocksize option,
     revert to the default blocksize of 512 bytes.
 (3) Send ACK if the first packet happens to be the last packet.
 (4) Do not accept blocksize greater than what was requested.
 (5) Drop any unwanted OACK received if a tftp transfer is already
     in progress.
 (6) Terminate incomplete transfers with a special no-error ERROR packet.
     Otherwise we rely on the tftp server to time out, which it does
     eventually, after re-sending the last packet several times and spamming
     the system log about it every time.  This idea is borrowed from the
     PXE client, which does exactly that.

Submitted by:  Alexander Kabaev <kan@FreeBSD.org>
Reviewed and Tested by: Santhanakrishnan Balraj <sbalraj at juniper dot net>

13 years agoBring back synchnet() implementation from older
rodrigc [Fri, 24 Jun 2011 02:56:24 +0000 (02:56 +0000)]
Bring back synchnet() implementation from older
tftp implementation.  The synchnet() function
was converted to a no-op when the new TFTP implementation
was committed to FreeBSD.  However, this function, as it was
in the older code, is needed
in order to synchronize between the tftpd server and tftp clients,
which may be buggy.

Specifically, we had a buggy TFTP client which would send
TFTP ACK packets for non-TFTP packets, which would cause
the count of packets to get out of whack, causing transfers
to fail with the new TFTPD implementation.

Obtained from:  Juniper Networks
Submitted by: Santhanakrishnan Balraj <sbalraj at juniper dot net>

13 years ago- Move all USB device ID arrays into so-called sections,
hselasky [Fri, 24 Jun 2011 02:30:02 +0000 (02:30 +0000)]
- Move all USB device ID arrays into so-called sections,
  sorted according to the mode which they support:
host, device or dual mode
- Add generic tool to extract these data:
tools/bus_autoconf

Discussed with: imp
Suggested by: Robert Millan <rmh@debian.org>
PR: misc/157903
MFC after: 14 days

13 years agoUse the ABI-mandated thread pointer register (r2 for ppc32, r13 for ppc64)
nwhitehorn [Thu, 23 Jun 2011 22:21:28 +0000 (22:21 +0000)]
Use the ABI-mandated thread pointer register (r2 for ppc32, r13 for ppc64)
instead of a PCPU field for curthread. This averts a race on SMP systems
with a high interrupt rate where the thread looking up the value of
curthread could be preempted and migrated between obtaining the PCPU
pointer and reading the value of pc_curthread, resulting in curthread being
observed to be the current thread on the thread's original CPU. This played
merry havoc with the system, in particular with mutexes. Many thanks to
jhb for helping me work this one out.

Note that Book-E is in principle susceptible to the same problem, but has
not been modified yet due to lack of Book-E hardware.

MFC after: 2 weeks

13 years agoMake GNU as recognize the ARM 'rrx' mnemonic, which can be generated by
dim [Thu, 23 Jun 2011 20:54:44 +0000 (20:54 +0000)]
Make GNU as recognize the ARM 'rrx' mnemonic, which can be generated by
clang for certain expressions.  Code taken from Apple cctools (GPLv2).

Submitted by: damjan.marion@gmail.com

13 years agoFix make buildworld -DMODULES_WITH_WORLD
uqs [Thu, 23 Jun 2011 20:31:52 +0000 (20:31 +0000)]
Fix make buildworld -DMODULES_WITH_WORLD
Sort opt_ srcs

13 years agoPut back the global for rx processing due to popular demand.
jfv [Thu, 23 Jun 2011 17:42:27 +0000 (17:42 +0000)]
Put back the global for rx processing due to popular demand.

13 years agoClear any outstanding atomic reservations when traps are taken. This fixes
nwhitehorn [Thu, 23 Jun 2011 16:34:41 +0000 (16:34 +0000)]
Clear any outstanding atomic reservations when traps are taken. This fixes
some interesting bugs (mostly on SMP systems) with atomic operations
silently failing in interrupt heavy situations, especially when using
overflow pages.

13 years agoUnblock the outgoing thread after we performed pmap_switch() to
marcel [Thu, 23 Jun 2011 16:21:43 +0000 (16:21 +0000)]
Unblock the outgoing thread after we performed pmap_switch() to
switch the region registers. pmap_switch() returns the pmap for
which the region register are currently programmed, which needs
to be re-programmed on the CPU the ougoing thread gets switched
in.  This change does not noticibly change anything or fix known
bugs, but does give me a warm fuzzy feeling by being more
correct.

13 years agoThe recent change to increase the zfsboot size to 64k made a few BIOSes
jhb [Thu, 23 Jun 2011 15:53:17 +0000 (15:53 +0000)]
The recent change to increase the zfsboot size to 64k made a few BIOSes
unhappy (probably they don't handle crossing the 64k boundary, etc.).
Fix this by changing zfsldr to use a loop reading from the disk one
sector at a time.  To avoid trashing the saved copy of the MBR which is
used for disk I/O, read zfsboot2 at address 0x9000.  This has the
advantage that BTX no longer needs to be relocated as it is read into
the correct location.  However, the loop to relocate zfsboot2.bin can
now cross a 64k boundary, so change it to use relative segments instead.
(This will need further work if zfsboot2.bin ever exceeds 64k.)

While here, stop storing a relocated copy of zfsldr at 0x700.  This was
only used by the xread hack which has recently been removed (and even
that use was dubious).  Also, include the BIOS error code as hex when
reporting read errors to aid in debugging.

Much thanks to Henri Hennebert for patiently testing various iterations
of the patch as well as fixing the zfsboot2.bin relocation to use
relative segments.

MFC after: 1 week

13 years agoFix ATAPI breakage introduced by r223443. It made SCSI commands to ATAPI
mav [Thu, 23 Jun 2011 15:10:44 +0000 (15:10 +0000)]
Fix ATAPI breakage introduced by r223443. It made SCSI commands to ATAPI
device to never complete, that caused probe process (system boot) stuck.

13 years agoadd missing #define for the non-debug case.
adrian [Thu, 23 Jun 2011 12:11:43 +0000 (12:11 +0000)]
add missing #define for the non-debug case.

13 years agoDocument that autoSrcAddr isn't re-enabled on NGM_SHUTDOWN.
glebius [Thu, 23 Jun 2011 10:43:36 +0000 (10:43 +0000)]
Document that autoSrcAddr isn't re-enabled on NGM_SHUTDOWN.

Submitted by: Vadim Goncharov <vadim_nuclight mail.ru>

13 years ago- Add some comments about the origin of some USB descriptors.
hselasky [Thu, 23 Jun 2011 10:35:45 +0000 (10:35 +0000)]
- Add some comments about the origin of some USB descriptors.

MFC after: 7 days

13 years agoFix merge typo.
andreast [Thu, 23 Jun 2011 09:46:12 +0000 (09:46 +0000)]
Fix merge typo.

13 years agoAdd leading zeros when printing the stackframe on __powerpc64__.
andreast [Thu, 23 Jun 2011 09:43:53 +0000 (09:43 +0000)]
Add leading zeros when printing the stackframe on __powerpc64__.

13 years agoBe consistent with r160968: keep autoSrcAddr flag untouched when
glebius [Thu, 23 Jun 2011 09:42:41 +0000 (09:42 +0000)]
Be consistent with r160968: keep autoSrcAddr flag untouched when
node receives NGM_SHUTDOWN.

Submitted by: pluknet

13 years ago- Add more USB templates for various USB device classes
hselasky [Thu, 23 Jun 2011 07:54:03 +0000 (07:54 +0000)]
- Add more USB templates for various USB device classes
- Add basic template support for USB 3.0
- Export definition of template sysctl numbers through usb_ioctl.h

MFC after: 7 days

13 years agoRe-introduce a global ath_hal_debug again for now, whilst I figure out what
adrian [Thu, 23 Jun 2011 06:55:29 +0000 (06:55 +0000)]
Re-introduce a global ath_hal_debug again for now, whilst I figure out what
to do about the few cases where the HAL state isn't available (regdomain)
or isn't yet setup (probe/attach.)

The global ath_hal_debug now affects all instances of the HAL.

This also restores the ability for probe/attach debugging to work; as
the sysctl tree may not be attached at that point. Users can just set
the global "hw.ath.hal.debug" to a suitable value to enable probe/attach
related debugging.

13 years agoFix indenting issues introduced by the previous commit.
adrian [Thu, 23 Jun 2011 06:53:13 +0000 (06:53 +0000)]
Fix indenting issues introduced by the previous commit.

13 years agoRevert to using the page queues lock in vm_page_clear_dirty_mask() on
alc [Thu, 23 Jun 2011 05:23:59 +0000 (05:23 +0000)]
Revert to using the page queues lock in vm_page_clear_dirty_mask() on
MIPS.  (At present, although atomic_clear_char() is defined by atomic.h
on MIPS, it is not actually implemented by support.S.)

13 years agoUse atomic operations to mask and unmask IRQs. This prevents a problem
nwhitehorn [Thu, 23 Jun 2011 04:35:45 +0000 (04:35 +0000)]
Use atomic operations to mask and unmask IRQs. This prevents a problem
(obvious in retrospect) in which interrupts on one CPU that are temporarily
masked can end up permanently masked when a handler on another CPU clobbers
the interrupt mask register with an old copy.

13 years agoUse 4 KB pages for storage bus devices, which seems to be what the HV uses
nwhitehorn [Thu, 23 Jun 2011 04:06:33 +0000 (04:06 +0000)]
Use 4 KB pages for storage bus devices, which seems to be what the HV uses
internally.

13 years agoRework the PS3 disk driver to support NCQ and do its DMA a little
nwhitehorn [Thu, 23 Jun 2011 03:37:25 +0000 (03:37 +0000)]
Rework the PS3 disk driver to support NCQ and do its DMA a little
differently.

13 years agoAdd hypervisor call error codes.
nwhitehorn [Thu, 23 Jun 2011 03:20:11 +0000 (03:20 +0000)]
Add hypervisor call error codes.

13 years agoBreak out most of the HAL related tweaks into a per-HAL instance,
adrian [Thu, 23 Jun 2011 02:38:36 +0000 (02:38 +0000)]
Break out most of the HAL related tweaks into a per-HAL instance,
rather than global variables.

This specifically allows for debugging to be enabled per-NIC, rather
than globally.

Since the ath driver doesn't know about AH_DEBUG, and to keep the ABI
consistent regardless of whether AH_DEBUG is enabled or not, enable the
debug parameter always but only conditionally compile in the debug
methods if needed.

The ALQ support is currently still global pending some brainstorming.

Submitted by: ssgriffonuser@gmail.com
Reviewed by: adrian, bschmidt

13 years agoBump &release.manpath.*;.
hrs [Thu, 23 Jun 2011 02:38:06 +0000 (02:38 +0000)]
Bump &release.manpath.*;.

13 years agoRemove links to mirrorlist.FreeBSD.org.
hrs [Thu, 23 Jun 2011 02:35:55 +0000 (02:35 +0000)]
Remove links to mirrorlist.FreeBSD.org.

Submitted by: ryusuke
Reported by: gavin, brucec

13 years agoUpdate references to RFC's that the newer TFTP implementation supports.
rodrigc [Wed, 22 Jun 2011 23:26:04 +0000 (23:26 +0000)]
Update references to RFC's that the newer TFTP implementation supports.

13 years agoUpdate references to RFC's that the newer TFTP implementation supports.
rodrigc [Wed, 22 Jun 2011 23:25:24 +0000 (23:25 +0000)]
Update references to RFC's that the newer TFTP implementation supports.

13 years agoFix build on ia64 after r223426.
jkim [Wed, 22 Jun 2011 22:56:42 +0000 (22:56 +0000)]
Fix build on ia64 after r223426.

13 years agoReturn CAM_REQ_INVALID if the SCSI XPT receives an unsupported operation
will [Wed, 22 Jun 2011 22:55:51 +0000 (22:55 +0000)]
Return CAM_REQ_INVALID if the SCSI XPT receives an unsupported operation
via the XPT_DEV_ADVINFO CCB.

Reviewed by: ken

13 years agoBump date.
rodrigc [Wed, 22 Jun 2011 22:55:51 +0000 (22:55 +0000)]
Bump date.
Document the following commands which were added in the new TFTP implementation:
blocksize, blocksize2, packetdrop, options, rollover

13 years agoUse USB_VENDOR_OVISLINK define rather than the vendor ID.
gavin [Wed, 22 Jun 2011 22:08:55 +0000 (22:08 +0000)]
Use USB_VENDOR_OVISLINK define rather than the vendor ID.

PR: usb/158142
Submitted by: Robert Millan <rmh debian.org>
MFC after: 1 week

13 years agoFix typo.
rodrigc [Wed, 22 Jun 2011 22:05:37 +0000 (22:05 +0000)]
Fix typo.

Reported by: Nick Mann <njm at njm dot me dot uk>

13 years agoClarify tftpd's -d flag in the new TFTP implementation.
rodrigc [Wed, 22 Jun 2011 21:53:45 +0000 (21:53 +0000)]
Clarify tftpd's -d flag in the new TFTP implementation.
Bump date.

13 years agoPlumb support for the device advanced information CCB in the ATA XPT.
will [Wed, 22 Jun 2011 21:43:10 +0000 (21:43 +0000)]
Plumb support for the device advanced information CCB in the ATA XPT.

This was previously done only for SCSI XPT in r223081, on which the change
in r223089 depended in order to respond to serial number requests.  As a
result of r223089, da(4) and ada(4) devices register a d_getattr for geom to
use to obtain the information.

Reported by: ache
Reviewed by: ken

13 years agoPlug an mbuf leak in the new NFS client that occurred when a
rmacklem [Wed, 22 Jun 2011 21:10:12 +0000 (21:10 +0000)]
Plug an mbuf leak in the new NFS client that occurred when a
server replied NFS3ERR_JUKEBOX/NFS4ERR_DELAY to an rpc.
This affected both NFSv3 and NFSv4. Found during testing
at the recent NFSv4 interoperability Bakeathon.

MFC after: 2 weeks

13 years agoMove {amd64,i386}/pci/pci_bus.c and {amd64,i386}/include/pci_cfgreg.h to
jhb [Wed, 22 Jun 2011 21:04:13 +0000 (21:04 +0000)]
Move {amd64,i386}/pci/pci_bus.c and {amd64,i386}/include/pci_cfgreg.h to
the x86 tree.  The $PIR code is still only enabled on i386 and not amd64.
While here, make the qpi(4) driver on conditional on 'device pci'.

13 years agoExport AddLink() function from libalias. It can be used when custom
ae [Wed, 22 Jun 2011 20:00:27 +0000 (20:00 +0000)]
Export AddLink() function from libalias.  It can be used when custom
alias address needs to be specified.
Add inbound handler to the alias_ftp module. It helps handle active
FTP transfer mode for the case with external clients and FTP server behind
NAT. Fix passive FTP transfer case for server behind NAT using redirect with
external IP address different from NAT ip address.

PR: kern/157957
Submitted by: Alexander V. Chernikov

13 years agoFix the new NFSv4 client so that it uses the same uid as
rmacklem [Wed, 22 Jun 2011 19:47:45 +0000 (19:47 +0000)]
Fix the new NFSv4 client so that it uses the same uid as
was used for doing a mount when performing system operations
on AUTH_SYS mounts.  This resolved an issue when mounting
a Linux server. Found during testing at the recent
NFSv4 interoperability Bakeathon.

MFC after: 2 weeks

13 years agoAdd LOGIN_SETCPUMASK and LOGIN_SETLOGINCLASS to the setusercontext(3)
trasz [Wed, 22 Jun 2011 19:14:49 +0000 (19:14 +0000)]
Add LOGIN_SETCPUMASK and LOGIN_SETLOGINCLASS to the setusercontext(3)
calls in ftpd(8).

13 years agoOops, missed these in 223424.
jhb [Wed, 22 Jun 2011 18:48:07 +0000 (18:48 +0000)]
Oops, missed these in 223424.

Reported by: jkim

13 years agoAdvertise growfs(8) a little better.
trasz [Wed, 22 Jun 2011 18:02:28 +0000 (18:02 +0000)]
Advertise growfs(8) a little better.

13 years agoCosmetic fixes; mostly s/file system/filesystem/g and removing weird indent
trasz [Wed, 22 Jun 2011 17:59:53 +0000 (17:59 +0000)]
Cosmetic fixes; mostly s/file system/filesystem/g and removing weird indent
from messages.

13 years agoUse uintXX_t instead of u_intXX_t.
jhb [Wed, 22 Jun 2011 17:55:16 +0000 (17:55 +0000)]
Use uintXX_t instead of u_intXX_t.

13 years agoSet negative quality to TSC timecounter when C3 state is enabled for Intel
jkim [Wed, 22 Jun 2011 16:40:45 +0000 (16:40 +0000)]
Set negative quality to TSC timecounter when C3 state is enabled for Intel
processors unless the invariant TSC bit of CPUID is set.  Intel processors
may stop incrementing TSC when DPSLP# pin is asserted, according to Intel
processor manuals, i. e., TSC timecounter is useless if the processor can
enter deep sleep state (C3/C4).  This problem was accidentally uncovered by
r222869, which increased timecounter quality of P-state invariant TSC, e.g.,
for Core2 Duo T5870 (Family 6, Model f) and Atom N270 (Family 6, Model 1c).

Reported by: Fabian Keil (freebsd-listen at fabiankeil dot de)
Ian FREISLICH (ianf at clue dot co dot za)
Tested by: Fabian Keil (freebsd-listen at fabiankeil dot de)
- Core2 Duo T5870 (C3 state available/enabled)
jkim - Xeon X5150 (C3 state unavailable)

13 years agoAdd a helper routine to conditionally modify the start address of a
jhb [Wed, 22 Jun 2011 16:15:15 +0000 (16:15 +0000)]
Add a helper routine to conditionally modify the start address of a
resource allocation from an x86 Host-PCI bridge driver so that it can be
reused by the ACPI Host-PCI bridge driver (and eventually the MPTable
Host-PCI bridge driver) instead of duplicating the same logic.  Note that
this means that hw.acpi.host_mem_start is now replaced with the
hw.pci.host_mem_start tunable that was already used in the non-ACPI case.
This also removes hw.acpi.host_mem_start on ia64 where it was not
applicable (the implementation was very x86-specific).

While here, adjust the logic to apply the new start address on any
"wildcard" allocation even if that allocation comes from a subset of
the allowable address range.

Reviewed by: imp (1)

13 years agoDocument PKT_ALIAS_SKIP_GLOBAL option.
ae [Wed, 22 Jun 2011 09:55:28 +0000 (09:55 +0000)]
Document PKT_ALIAS_SKIP_GLOBAL option.

Submitted by: Alexander V. Chernikov

13 years agoOne more braino from me.
glebius [Wed, 22 Jun 2011 08:20:01 +0000 (08:20 +0000)]
One more braino from me.

Pointy hat to: glebius
Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>

13 years agoI knew there was something funny about this line
dougb [Wed, 22 Jun 2011 06:27:32 +0000 (06:27 +0000)]
I knew there was something funny about this line

13 years agoThis is more complicated than I expected. Storage devices need the IOMMU
nwhitehorn [Wed, 22 Jun 2011 02:23:18 +0000 (02:23 +0000)]
This is more complicated than I expected. Storage devices need the IOMMU
set up, but must not use it.

13 years agoRemove link state change callback handler. There is no need to
yongari [Wed, 22 Jun 2011 02:18:45 +0000 (02:18 +0000)]
Remove link state change callback handler.  There is no need to
register both status change and link state change callbacks.
Implement checking valid link in state change callback and poll
active link state in vr_tick().  This allows immediate detection of
lost link as well as protecting driver from frequent link flips during
link renegotiation.  taskq implementation was removed because driver
now needs to poll link state in vr_tick().
While I'm here do not report current link state if interface is not
running.

Tested by: n_hibma
MFC after: 1 week

13 years agoThe IOMMU is not involved for the storage bus.
nwhitehorn [Wed, 22 Jun 2011 02:11:42 +0000 (02:11 +0000)]
The IOMMU is not involved for the storage bus.

13 years agoMinor cleanup:
imp [Tue, 21 Jun 2011 22:45:31 +0000 (22:45 +0000)]
Minor cleanup:
o Consider No CIS a normal event and stop whining about it so much
  (too many cards are like this, espeically usb/firewire cards).
o Add comments to the cis reading code.
o Made the read from config space a smidge easier to read and eliminate
  a loop that can be done mathematically.

13 years agoReally spell suppress the right way
imp [Tue, 21 Jun 2011 22:17:28 +0000 (22:17 +0000)]
Really spell suppress the right way

13 years agoMy broken 'u' key scks!
imp [Tue, 21 Jun 2011 22:16:04 +0000 (22:16 +0000)]
My broken 'u' key scks!

13 years agoFix build with ACPI_DEBUG defined.
jhb [Tue, 21 Jun 2011 21:30:20 +0000 (21:30 +0000)]
Fix build with ACPI_DEBUG defined.

Submitted by: jkim
Pointy hat to: jhb

13 years agoChange the NFSv4 nfsuserd(8) daemon so that it doesn't preload the
rmacklem [Tue, 21 Jun 2011 21:07:33 +0000 (21:07 +0000)]
Change the NFSv4 nfsuserd(8) daemon so that it doesn't preload the
uid<->username mapping cache with an entry when another entry
for that uid is already loaded. This fixes a case where the
mapping of "toor" would replace "root" when the daemon was started,
resulting in no mapping for "root" until the cache entry for "toor"
timed out.
The algorithm is inefficient, but since it is only done once when
the daemon is started up, I don't think that's an issue.

MFC after: 2 weeks

13 years agoSupress command completion failure warning when the card isn't
imp [Tue, 21 Jun 2011 20:52:55 +0000 (20:52 +0000)]
Supress command completion failure warning when the card isn't
present.  Only call the bus to check if we actually do timeout so we
don't affect the normal case (since this case needn't be optimized and
this guards against all races).

13 years agoSupress warning that command didn't complete when the parent bus
imp [Tue, 21 Jun 2011 20:51:09 +0000 (20:51 +0000)]
Supress warning that command didn't complete when the parent bus
thinks the card is gone.

13 years agoFix whitespace
marius [Tue, 21 Jun 2011 20:50:55 +0000 (20:50 +0000)]
Fix whitespace

13 years agoOn machines where we don't need to lock the kernel TSB into the dTLB and
marius [Tue, 21 Jun 2011 20:48:14 +0000 (20:48 +0000)]
On machines where we don't need to lock the kernel TSB into the dTLB and
thus may basically use the entire 64-bit kernel address space reduce
VM_KMEM_SIZE_SCALE to 1 allowing kernel to use more memory.

13 years agoOn machines where we don't need to lock the kernel TSB into the dTLB and
marius [Tue, 21 Jun 2011 20:47:03 +0000 (20:47 +0000)]
On machines where we don't need to lock the kernel TSB into the dTLB and
thus may basically use the entire 64-bit kernel address space increase
the kernel virtual memory to not be limited by VM_KMEM_SIZE_MAX.

13 years agoEliminate unneeded headers.
delphij [Tue, 21 Jun 2011 20:44:06 +0000 (20:44 +0000)]
Eliminate unneeded headers.

13 years agoRemove unneeded headers.
delphij [Tue, 21 Jun 2011 20:36:10 +0000 (20:36 +0000)]
Remove unneeded headers.

MFC after: 2 weeks

13 years agoStaticify cleanup() which is not referenced in other places.
delphij [Tue, 21 Jun 2011 20:33:55 +0000 (20:33 +0000)]
Staticify cleanup() which is not referenced in other places.

MFC after: 2 weeks

13 years agoFix the new NFSv4 server so that it checks for VREAD_ACL when
rmacklem [Tue, 21 Jun 2011 19:58:29 +0000 (19:58 +0000)]
Fix the new NFSv4 server so that it checks for VREAD_ACL when
a client does a Getattr for an ACL and not VREAD_ATTRIBUTES.
This was found during the recent NFSv4 interoperability Bakeathon.

MFC after: 2 weeks

13 years agoMake ``realpath'' behave like ``realpath .''.
ru [Tue, 21 Jun 2011 19:34:57 +0000 (19:34 +0000)]
Make ``realpath'' behave like ``realpath .''.

13 years agoMinor whitespace and style fixes.
jhb [Tue, 21 Jun 2011 19:31:31 +0000 (19:31 +0000)]
Minor whitespace and style fixes.

13 years agoUse AcpiWalkResources() to parse the resource list from _CRS rather than
jhb [Tue, 21 Jun 2011 19:29:27 +0000 (19:29 +0000)]
Use AcpiWalkResources() to parse the resource list from _CRS rather than
using a home-rolled loop.  While here, add support for 64-bit address
range resources.

Silence on: acpi@ (older version)

13 years agoChange sparc64 to use the initial exec TLS model, too. This avoids random
marius [Tue, 21 Jun 2011 19:15:23 +0000 (19:15 +0000)]
Change sparc64 to use the initial exec TLS model, too. This avoids random
assertion failures in _malloc_thread_cleanup().

13 years agoMinor cleanups to ulog-helper:
ed [Tue, 21 Jun 2011 17:59:51 +0000 (17:59 +0000)]
Minor cleanups to ulog-helper:

- Remove unneeded linking against libmd. libulog depends on this
  library, but the ulog-helper tool itself does not.

- Change the comment at the top to mention utmpx instead of utmp, wtmp
  and lastlog.

- Simply use user_from_uid() to translate to a username string.

- Put variable declarations together.

13 years agoUse a non-standard page size that is supported.
alc [Tue, 21 Jun 2011 12:38:40 +0000 (12:38 +0000)]
Use a non-standard page size that is supported.

13 years agoWhen user specifies the bootcode with size smaller than VTOC_BOOTCODE,
ae [Tue, 21 Jun 2011 10:35:20 +0000 (10:35 +0000)]
When user specifies the bootcode with size smaller than VTOC_BOOTCODE,
gpart_write_partcode_vtoc8 does access out of range of allocated memory.
Check size of bootcode before writing it.

Pointed out by: ru
MFC after: 1 week

13 years agoGarbage collect never used global, sysctl, externs.
bz [Tue, 21 Jun 2011 07:19:03 +0000 (07:19 +0000)]
Garbage collect never used global, sysctl, externs.

MFC after: 1 week

13 years agoDo not use SET_HOST_IPLEN() macro for IPv6 packets.
ae [Tue, 21 Jun 2011 06:06:47 +0000 (06:06 +0000)]
Do not use SET_HOST_IPLEN() macro for IPv6 packets.

PR: kern/157239
MFC after: 2 weeks

13 years agoMod the offset padding by alignment. Without this change we may
delphij [Tue, 21 Jun 2011 04:46:00 +0000 (04:46 +0000)]
Mod the offset padding by alignment.  Without this change we may
pad too much when underlying GEOM object have a zero stripesize.

MFC after: 1 month

13 years agoThe "size" param needs no adjusting to stripeoffset.
ae [Tue, 21 Jun 2011 04:06:39 +0000 (04:06 +0000)]
The "size" param needs no adjusting to stripeoffset.

Reported by: Kris Moore

13 years agoWhen we see an interrupt status of 0xffffffff, check to see if the
imp [Tue, 21 Jun 2011 03:07:59 +0000 (03:07 +0000)]
When we see an interrupt status of 0xffffffff, check to see if the
child is still present.  If not, return 'handled' and don't print
anything (this is expected behavior).  We expect an interrupt on eject,
power-down and/or shutdown.

13 years agoMark the card as bad on shutdown. This means that bus_child_present
imp [Tue, 21 Jun 2011 03:05:17 +0000 (03:05 +0000)]
Mark the card as bad on shutdown.  This means that bus_child_present
will return false on shutdown and massive spewage from usb disappears
for usb cardbus adapters.

13 years agoEliminate some global tuneables in favor of adapter-specific,
jfv [Mon, 20 Jun 2011 22:59:29 +0000 (22:59 +0000)]
Eliminate some global tuneables in favor of adapter-specific,
particular flow control and dma coalesce. Also improve the
sysctl operation on those too.

Add IPv6 detection in the ioctl code, this was done for
ixgbe first, carrying that over.

Add resource ability to disable particular adapter.

Add HW TSO capability so vlans can make use of TSO

13 years agoFix the new NFSv4 server so that it only allows Lookup of
rmacklem [Mon, 20 Jun 2011 22:02:01 +0000 (22:02 +0000)]
Fix the new NFSv4 server so that it only allows Lookup of
directories and symbolic links when traversing non-exported
file systems. Found during the recent NFSv4 interoperability
Bakeathon.

MFC after: 2 weeks

13 years agoFix the new NFSv4 server so that it allows Access and Readlink
rmacklem [Mon, 20 Jun 2011 21:57:26 +0000 (21:57 +0000)]
Fix the new NFSv4 server so that it allows Access and Readlink
operations while traversing non-exported file systems. This is
required for some non-FreeBSD clients to do NFSv4 mounts. Found during
the recent NFSv4 interoperability Bakeathon.

MFC after: 2 weeks

13 years agoAs astopgap minimize the sched_lock coverage in pmap_activate() in order
marius [Mon, 20 Jun 2011 21:36:53 +0000 (21:36 +0000)]
As astopgap minimize the sched_lock coverage in pmap_activate() in order
to reduce lock contention.

13 years ago- Remove MD usage of pc_cpumask and pc_other_cpus. [1]
marius [Mon, 20 Jun 2011 21:31:01 +0000 (21:31 +0000)]
- Remove MD usage of pc_cpumask and pc_other_cpus. [1]
- Remove CTASSERTs which no longer need to hold since r222813.

Submitted by: attilio [1]

13 years agoAdd global -d and -e options to either print device numbers
bz [Mon, 20 Jun 2011 21:28:50 +0000 (21:28 +0000)]
Add global -d and -e options to either print device numbers
(usually default) or enclosure:slot information as (Exx:Sxx)
or both.

Discussed with: jhb
Reviewed by: jhb
Sponsored by: Sandvine Incorporated
MFC after: 1 week

13 years agoRevert r214857 pursudant to 9.0-RELEASE cycle.
delphij [Mon, 20 Jun 2011 16:48:00 +0000 (16:48 +0000)]
Revert r214857 pursudant to 9.0-RELEASE cycle.

Requested by: jh

13 years agoCorrect a typo.
delphij [Mon, 20 Jun 2011 16:42:20 +0000 (16:42 +0000)]
Correct a typo.

Submitted by: Fabian Keil <fk fabiankeil de>
MFC after: 3 days

13 years agoAdd missing argument for -h in usage.
kuriyama [Mon, 20 Jun 2011 15:22:47 +0000 (15:22 +0000)]
Add missing argument for -h in usage.

13 years agoLeave an extra comment about flowtable and IPv6 support rectifying a
bz [Mon, 20 Jun 2011 12:35:12 +0000 (12:35 +0000)]
Leave an extra comment about flowtable and IPv6 support rectifying a
previous comment.

MFC after: 1 week

13 years agoChange the way how we update bootcode for BSD scheme.
ae [Mon, 20 Jun 2011 12:22:30 +0000 (12:22 +0000)]
Change the way how we update bootcode for BSD scheme.
Since the only parameter that we check is size of bootcode, then
allow only two sizes: size of boot1 and size of /boot/boot.
This partially protects users from losing ability to boot if incorrect
bootcode is specified.

Requested by: ru

13 years agoAdd a callback for ADDBA response timeouts.
adrian [Mon, 20 Jun 2011 11:46:03 +0000 (11:46 +0000)]
Add a callback for ADDBA response timeouts.

TX for the given TID needs to be paused during ADDBA requests (and unpaused
once the session is established.) Since net80211 currently doesn't implement
software aggregation, if this pause/unpause is done in the driver (as it
is in my development branch) then it will need to be unpaused both on
ADDBA response and on ADDBA timeout.

This callback allows the driver to unpause TX for the relevant TID.

Reviewed by: bschmidt

13 years agoMerge tnftp-20100108 from the vendor branch into head.
gavin [Mon, 20 Jun 2011 08:00:32 +0000 (08:00 +0000)]
Merge tnftp-20100108 from the vendor branch into head.

PR: bin/112288 bin/120256 bin/129014 bin/145528
MFC after: 1 month

13 years agoFix a KASSERT from r212803 to check the correct length also in case of
bz [Mon, 20 Jun 2011 07:07:18 +0000 (07:07 +0000)]
Fix a KASSERT from r212803 to check the correct length also in case of
IPsec being compiled in and used.  Improve reporting by adding the length
fields to the panic message, so that we would have some immediate debugging
hints.

Discussed with: jhb

13 years ago - Fix directory count rollbacks by passing the mode to the journal dep
jeff [Mon, 20 Jun 2011 03:25:09 +0000 (03:25 +0000)]
 - Fix directory count rollbacks by passing the mode to the journal dep
   earlier.
 - Add rollback/forward code for frag and cluster accounting.
 - Handle the FREEDEP case in softdep_sync_buf().  (submitted by pho)

13 years agoWork/hack around some race conditions present in the hardware/HV interface.
nwhitehorn [Mon, 20 Jun 2011 02:17:34 +0000 (02:17 +0000)]
Work/hack around some race conditions present in the hardware/HV interface.
Partially inspired by a patch from glevand (geoffrey.levand@mail.ru).