]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years ago- Remove duplicate USB ID.
Hans Petter Selasky [Sat, 25 Jun 2011 15:46:24 +0000 (15:46 +0000)]
- Remove duplicate USB ID.

MFC after: 3 days

13 years ago- Move auto-load devd config file into etc/defaults folder.
Hans Petter Selasky [Sat, 25 Jun 2011 15:42:33 +0000 (15:42 +0000)]
- Move auto-load devd config file into etc/defaults folder.
- Regenerate file after bugfix in the generator.

Suggested by: Jeremy Messenger
MFC after: 14 days

13 years ago- Need to respect the module name and the USB mode when accumulating device ID's.
Hans Petter Selasky [Sat, 25 Jun 2011 15:22:44 +0000 (15:22 +0000)]
- Need to respect the module name and the USB mode when accumulating device ID's.
- Be more verbose on file seek failures. Allow a file size of zero.
- Improve the wrapper shell.

MFC after: 14 days

13 years ago- Improve bus_autoconf tool.
Hans Petter Selasky [Sat, 25 Jun 2011 13:44:05 +0000 (13:44 +0000)]
- Improve bus_autoconf tool.
- Implement simple and generic language which can
be used to describe any kind of device ID structures.
- Fix endian issues.
- Add an example format file.

Suggested by: imp @
MFC after: 14 days

13 years agoRemove redundant Capsicum sysctl.
Jonathan Anderson [Sat, 25 Jun 2011 12:37:06 +0000 (12:37 +0000)]
Remove redundant Capsicum sysctl.

Since we're now declaring FEATURE(security_capabilities), there's no need for an explicit SYSCTL_NODE.

Approved by: rwatson

13 years agoAdd missing libkvm and libutil dependencies.
Sergey Kandaurov [Sat, 25 Jun 2011 11:21:23 +0000 (11:21 +0000)]
Add missing libkvm and libutil dependencies.
Now libprocstat takes care of its own dependencies and does not
require applications to specify them.

Reviewed by: stas, jilles

13 years agounconditionally stop other cpus when entering kdb in smp system
Andriy Gapon [Sat, 25 Jun 2011 10:28:16 +0000 (10:28 +0000)]
unconditionally stop other cpus when entering kdb in smp system

... and thus retire debug.kdb.stop_cpus tunable/sysctl.
The knob was to work around CPU stopping issues, which since have been
either fixed or greatly reduced.  kdb should really operate in a special
environment with scheduler stopped and interrupts disabled to provide
deterministic debugging.

Discussed with: attilio, rwatson
X-MFC after: 2 months or never

13 years agogeneric_stop_cpus: pull timeout logic from under DIAGNOSTIC
Andriy Gapon [Sat, 25 Jun 2011 10:01:43 +0000 (10:01 +0000)]
generic_stop_cpus: pull timeout logic from under DIAGNOSTIC

... and also increase the timeout.
It's better to try to proceed somehow despite stuck CPUs than to hang
indefinitely.  Especially so during shutdown and when entering kdb or panic.

Timeout value is still an aribitrary value.
Timeout diagnostic is just a printf; the work on something more
debuggable is planned by attilio.  Need to be careful here as
stop_cpus_hard is called very early while enetering kdb and soon(-ish)
it may become called very early when entering panic.

Reviewed by: attilio
MFC after: 2 months

13 years agoReplace the original copyright notice with my own. Everything in
Marcel Moolenaar [Sat, 25 Jun 2011 03:43:58 +0000 (03:43 +0000)]
Replace the original copyright notice with my own. Everything in
this file is written by me and has no bearing on the initial or
original version.

13 years agoUpdate copyright.
Marcel Moolenaar [Sat, 25 Jun 2011 03:37:40 +0000 (03:37 +0000)]
Update copyright.

13 years agoNow that ia64 has been switched to the event timers, remove the
Marcel Moolenaar [Sat, 25 Jun 2011 02:49:47 +0000 (02:49 +0000)]
Now that ia64 has been switched to the event timers, remove the
conditional compilation work-arounds.

13 years agoSwitch to the event timers infrastructure. This includes:
Marcel Moolenaar [Sat, 25 Jun 2011 02:15:14 +0000 (02:15 +0000)]
Switch to the event timers infrastructure. This includes:
o   Setting td_intr_frame to the XIVs trap frame because it's referenced
    by the ET event handler.
o   Signal EOI to the CPU before calling the registered XIV handlers.
    This prevents lost ITC interrupts, which cause starvation in one-shot
    mode.
o   Adding support for IPI_HARDCLOCK with corresponding per-CPU counters.
o   Have the APs call cpu_initclocks() so as to limited the scattering of
    clock related initialization. cpu_initclocks() calls the <self>_bsp()
    or <self>_ap() version accordingly.
o   Uncomment the ET clock handling in cpu_idle().
o   Update the DDB 'show pcpu' output for the new MD fields.
o   Entirely rewritten ia64_ih_clock(). Note that we don't create as many
    clock XIVs as we have CPUs, as is done on PowerPC. It doesn't scale.
    We can only have 240 XIVs and we can have more CPUs than that. There's
    a single intrcnt index for the cumulative clock ticks and we keep per
    CPU counts in the PCPU stats structure.
o   Register the ITC by hooking SI_SUB_CONFIGURE (2nd order).

Open issues:
o   Clock interrupts can still be lost. Some tweaking is still necessary.

Thanks to: mav@ for his support, feedback and explanations.

ET stats while committing:
eris% sysctl machdep.cpu | grep nclks

machdep.cpu.0.nclks: 24007
machdep.cpu.1.nclks: 22895
machdep.cpu.2.nclks: 13523
machdep.cpu.3.nclks: 9342
machdep.cpu.4.nclks: 9103
machdep.cpu.5.nclks: 9298
machdep.cpu.6.nclks: 10039
machdep.cpu.7.nclks: 9479
eris% vmstat -i | grep clock
clock                      108599         50

13 years agoCommit missing piece from a couple days ago - re-add ath_hal_debug.
Adrian Chadd [Sat, 25 Jun 2011 00:34:40 +0000 (00:34 +0000)]
Commit missing piece from a couple days ago - re-add ath_hal_debug.

13 years agoSmall fix to bring the non-debug definitions of HALDEBUG/HALDEBUG_G in line
Adrian Chadd [Fri, 24 Jun 2011 23:59:14 +0000 (23:59 +0000)]
Small fix to bring the non-debug definitions of HALDEBUG/HALDEBUG_G in line
with the debug definitions.

13 years agoComment out AH_DEBUG, to get this kernel to compile, until AH_DEBUG is fixed.
Olivier Houchard [Fri, 24 Jun 2011 23:26:45 +0000 (23:26 +0000)]
Comment out AH_DEBUG, to get this kernel to compile, until AH_DEBUG is fixed.

13 years agosh(1): Improve documentation of shell patterns:
Jilles Tjoelker [Fri, 24 Jun 2011 22:08:26 +0000 (22:08 +0000)]
sh(1): Improve documentation of shell patterns:

* Shell patterns are also for ${var#pat} and the like.
* An '!' by itself will not trigger pathname generation so do not call it a
  meta-character, even though it has a special meaning directly after an
  '['.
* Character ranges are locale-dependent.
* A '^' will complement a character class like '!' but is non-standard.

MFC after: 1 week

13 years ago- Export more USB device ID's.
Hans Petter Selasky [Fri, 24 Jun 2011 22:01:56 +0000 (22:01 +0000)]
- Export more USB device ID's.
- Update bus_auto.conf accordingly.

MFC after: 3 days

13 years agoSplit out host_pcib_get_busno() from the generic PCI-PCI bridge driver to
John Baldwin [Fri, 24 Jun 2011 21:39:38 +0000 (21:39 +0000)]
Split out host_pcib_get_busno() from the generic PCI-PCI bridge driver to
start a new file that will hold utility APIs used by various Host-PCI
bridge drivers and drivers that provide PCI domains.

13 years ago- Add auto-load devd config file for USB kernel modules.
Hans Petter Selasky [Fri, 24 Jun 2011 21:32:03 +0000 (21:32 +0000)]
- Add auto-load devd config file for USB kernel modules.

MFC after: 14 days

13 years ago- We need to sort all USB device ID's together. Else the matching order will
Hans Petter Selasky [Fri, 24 Jun 2011 21:27:33 +0000 (21:27 +0000)]
- We need to sort all USB device ID's together. Else the matching order will
be wrong. This is required because devd only executes one entry.

MFC after: 14 days

13 years agosh(1): Document the case command better.
Jilles Tjoelker [Fri, 24 Jun 2011 20:23:50 +0000 (20:23 +0000)]
sh(1): Document the case command better.

Suggested by: netchild
Reviewed by: gjb

13 years ago- Export more USB device ID's.
Hans Petter Selasky [Fri, 24 Jun 2011 19:32:29 +0000 (19:32 +0000)]
- Export more USB device ID's.

MFC after: 3 days

13 years ago- Ensure that we get all the required nomatch devd events.
Hans Petter Selasky [Fri, 24 Jun 2011 19:02:56 +0000 (19:02 +0000)]
- Ensure that we get all the required nomatch devd events.

MFC after: 3 days

13 years ago- Move execution of event handlers into the probe and attach function so that
Hans Petter Selasky [Fri, 24 Jun 2011 18:14:43 +0000 (18:14 +0000)]
- Move execution of event handlers into the probe and attach function so that
dynamically loaded device drivers get a chance to run their event hooks.

- Decouple the USB suspend and resume lock from witness. It produces some
false warnings due to reusing the lock name among multiple devices.

MFC after: 3 days

13 years ago- Export the URIO USB device ID's.
Hans Petter Selasky [Fri, 24 Jun 2011 18:11:55 +0000 (18:11 +0000)]
- Export the URIO USB device ID's.
- Add checks for configuration and interface index.

MFC after: 3 days

13 years agoDon't die if either of INET or INET6 aren't in the running kernel.
John Baldwin [Fri, 24 Jun 2011 17:54:45 +0000 (17:54 +0000)]
Don't die if either of INET or INET6 aren't in the running kernel.
Instead, report "protocol not supported" errors at runtime if a user
attempts to use a protocol that the kernel doesn't support.

Reviewed by: bz
MFC after: 1 week

13 years agoAdd support for string values with white spaces for ifconfig(8)
Sergey Kandaurov [Fri, 24 Jun 2011 14:56:38 +0000 (14:56 +0000)]
Add support for string values with white spaces for ifconfig(8)
parameters accepting them (such as description, group).

Changes discussed on freebsd-rc.

PR: conf/156675
Reported by: "Alexander V. Chernikov" <melifaro att ipfw ru>
Suggested by: hrs
Analyzed with: Alexander V. Chernikov via IRC
MFC after: 2 weeks

13 years agoTidy up a capabilities-related comment.
Jonathan Anderson [Fri, 24 Jun 2011 14:40:22 +0000 (14:40 +0000)]
Tidy up a capabilities-related comment.

This comment refers to an #ifdef that hasn't been merged [yet?]; remove it.

Approved by: rwatson

13 years agoFix another broken HT40 channel band reference.
Adrian Chadd [Fri, 24 Jun 2011 14:31:30 +0000 (14:31 +0000)]
Fix another broken HT40 channel band reference.

13 years agoTypo.
John Baldwin [Fri, 24 Jun 2011 13:58:56 +0000 (13:58 +0000)]
Typo.

13 years agoActually, if code had followed style(9), there would be less stupid errors
Gleb Smirnoff [Fri, 24 Jun 2011 12:55:16 +0000 (12:55 +0000)]
Actually, if code had followed style(9), there would be less stupid errors
like the one fixed in r223416.

Noticed by: julian

13 years agoMore incorrect HT/40 setups in FCC.
Adrian Chadd [Fri, 24 Jun 2011 12:50:18 +0000 (12:50 +0000)]
More incorrect HT/40 setups in FCC.

Noticed-by: bschmidt@

13 years agoFix an incorrect frequency band for HT/40 in the FCC SKU.
Adrian Chadd [Fri, 24 Jun 2011 12:31:36 +0000 (12:31 +0000)]
Fix an incorrect frequency band for HT/40 in the FCC SKU.

Noticed by: bschmidt@

13 years agoImport one of the two missing US FCC DFS bands to FCC3.
Adrian Chadd [Fri, 24 Jun 2011 12:30:43 +0000 (12:30 +0000)]
Import one of the two missing US FCC DFS bands to FCC3.

The FCC opened up this band sometime in 2009 (and ath was updated);
but regdomain.xml wasn't updated.

13 years ago- Add two new API's to libusb20 which can be used to retrive information
Hans Petter Selasky [Fri, 24 Jun 2011 11:14:09 +0000 (11:14 +0000)]
- Add two new API's to libusb20 which can be used to retrive information
about the parent USB device:
  - libusb20_dev_get_parent_address
  - libusb20_dev_get_parent_port

- Rename libusb20_compat01.c into libusb01.c

MFC after: 3 days

13 years agoRemove duplicated header files
Kevin Lo [Fri, 24 Jun 2011 07:29:04 +0000 (07:29 +0000)]
Remove duplicated header files

13 years agoRemove duplicated header files
Kevin Lo [Fri, 24 Jun 2011 07:18:44 +0000 (07:18 +0000)]
Remove duplicated header files

13 years agoRemove duplicated header files
Kevin Lo [Fri, 24 Jun 2011 07:05:20 +0000 (07:05 +0000)]
Remove duplicated header files

13 years agoAcknowledge Edwin Groothuis for the major rewrite he
Craig Rodrigues [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
Hans Petter Selasky [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
Hans Petter Selasky [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:
Craig Rodrigues [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
Craig Rodrigues [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,
Hans Petter Selasky [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)
Nathan Whitehorn [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
Dimitry Andric [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
Ulrich Spörlein [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.
Jack F Vogel [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
Nathan Whitehorn [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 Moolenaar [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
John Baldwin [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
Alexander Motin [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 Chadd [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.
Gleb Smirnoff [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.
Hans Petter Selasky [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.
Andreas Tobler [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__.
Andreas Tobler [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
Gleb Smirnoff [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
Hans Petter Selasky [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 Chadd [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 Chadd [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
Alan Cox [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
Nathan Whitehorn [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
Nathan Whitehorn [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
Nathan Whitehorn [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.
Nathan Whitehorn [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 Chadd [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.*;.
Hiroki Sato [Thu, 23 Jun 2011 02:38:06 +0000 (02:38 +0000)]
Bump &release.manpath.*;.

13 years agoRemove links to mirrorlist.FreeBSD.org.
Hiroki Sato [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.
Craig Rodrigues [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.
Craig Rodrigues [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.
Jung-uk Kim [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 Andrews [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.
Craig Rodrigues [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 Atkinson [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.
Craig Rodrigues [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.
Craig Rodrigues [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 Andrews [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
Rick Macklem [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
John Baldwin [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
Andrey V. Elsukov [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
Rick Macklem [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)
Edward Tomasz Napierala [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.
John Baldwin [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.
Edward Tomasz Napierala [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
Edward Tomasz Napierala [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.
John Baldwin [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
Jung-uk Kim [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
John Baldwin [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.
Andrey V. Elsukov [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.
Gleb Smirnoff [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
Doug Barton [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
Nathan Whitehorn [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
Pyun YongHyeon [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.
Nathan Whitehorn [Wed, 22 Jun 2011 02:11:42 +0000 (02:11 +0000)]
The IOMMU is not involved for the storage bus.

13 years agoMinor cleanup:
Warner Losh [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
Warner Losh [Tue, 21 Jun 2011 22:17:28 +0000 (22:17 +0000)]
Really spell suppress the right way

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

13 years agoFix build with ACPI_DEBUG defined.
John Baldwin [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
Rick Macklem [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