]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r212134
thompsa [Fri, 19 Nov 2010 01:48:47 +0000 (01:48 +0000)]
MFC r212134

 Change argument for usbd_get_dma_delay() from USB bus to USB device, some
 embedded hardware needs to know exactly which device is in question before it
 exactly can decide the required delay.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215500 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212133
thompsa [Fri, 19 Nov 2010 01:47:46 +0000 (01:47 +0000)]
MFC r212133

 Fix setting of the rx_max and tx_max variables. If the expected buffer size is
 greater than 65535 bytes then the CDC driver might not work as expected, which
 is not likely with the existing USB speeds.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212132
thompsa [Fri, 19 Nov 2010 01:47:09 +0000 (01:47 +0000)]
MFC r212132

 Fix UMS_BUTTON_MAX define name

git-svn-id: svn://svn.freebsd.org/base/stable/8@215498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212131
thompsa [Fri, 19 Nov 2010 01:46:33 +0000 (01:46 +0000)]
MFC r212131

 Fix build breakage from r212127

git-svn-id: svn://svn.freebsd.org/base/stable/8@215497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212130
thompsa [Fri, 19 Nov 2010 01:45:34 +0000 (01:45 +0000)]
MFC r212130

 Add GPIO programming for more PHY hardware.

Submitted by: yongari

git-svn-id: svn://svn.freebsd.org/base/stable/8@215496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212129
thompsa [Fri, 19 Nov 2010 01:44:13 +0000 (01:44 +0000)]
MFC r212129

 Add support for extra buttons on the Kensington Slimblade Trackball.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215495 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212128
thompsa [Fri, 19 Nov 2010 01:43:08 +0000 (01:43 +0000)]
MFC r212128

 Silence debug error by default.

PR: usb/141212

git-svn-id: svn://svn.freebsd.org/base/stable/8@215494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212127
thompsa [Fri, 19 Nov 2010 01:42:13 +0000 (01:42 +0000)]
MFC r212127

 We need to grab a node reference count to vap->iv_bss before using it as it is
 possible for the node to be replaced and freed at any time by
 ieee80211_sta_join1().

git-svn-id: svn://svn.freebsd.org/base/stable/8@215493 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212122
thompsa [Fri, 19 Nov 2010 01:41:28 +0000 (01:41 +0000)]
MFC r212122

 Add missing MODULE_VERSION() definitions, this resolves problems around
 duplicate module loads.

PR: usb/125736
Submitted by: danger, mm

git-svn-id: svn://svn.freebsd.org/base/stable/8@215492 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211104
thompsa [Fri, 19 Nov 2010 01:40:34 +0000 (01:40 +0000)]
MFC r211104

 Add entries for some devices I have locally.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211021
thompsa [Fri, 19 Nov 2010 01:39:29 +0000 (01:39 +0000)]
MFC r211021

 Sort this file a little better: the vendors are supposed to be sorted by
 vendor ID in the vendor section, and by symbolic name in the product
 section.  Products are sorted by product ID.  While here, get rid of a
 duplicate Microsoft Mouse entry, revealed by sorting.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215490 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210553
thompsa [Fri, 19 Nov 2010 01:36:40 +0000 (01:36 +0000)]
MFC r210553

 Fix the entry for the Option ICON452 where an underscore was used instead of
 whitespace.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210469
thompsa [Fri, 19 Nov 2010 01:35:57 +0000 (01:35 +0000)]
MFC r210469

 Give a name to the HTC Wizard Smartphone

PR: usb/135575

git-svn-id: svn://svn.freebsd.org/base/stable/8@215488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210018
thompsa [Fri, 19 Nov 2010 01:35:14 +0000 (01:35 +0000)]
MFC r210018

 Add a 4 and 7 port USB hub from NEC.

PR: 148189

git-svn-id: svn://svn.freebsd.org/base/stable/8@215487 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209918
thompsa [Fri, 19 Nov 2010 01:34:18 +0000 (01:34 +0000)]
MFC r209918

 Use more compact deviceid table.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215486 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209917
thompsa [Fri, 19 Nov 2010 01:32:23 +0000 (01:32 +0000)]
MFC r209917

 Update for style(9).

Submitted by: Akinori Furukoshi (author)

git-svn-id: svn://svn.freebsd.org/base/stable/8@215485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209452
thompsa [Fri, 19 Nov 2010 01:30:59 +0000 (01:30 +0000)]
MFC r209452

 - fix for USB audio devices which use the 7-byte endpoint descriptor instead of
   the 9-byte one.
 - remove sync-endpoint code, which is currently unused.

Reported by: Antun Matanovi
Submitted by: Hans Petter Selasky

git-svn-id: svn://svn.freebsd.org/base/stable/8@215484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209450
thompsa [Fri, 19 Nov 2010 01:30:23 +0000 (01:30 +0000)]
MFC r209450

 Reduce MIDI input buffer size to one USB packet, hence some USB devices don't
 properly short terminate their transfers. This fixes a problem where input
 appears several seconds late.

Reported by: Alexander Yerenkow
Submitted by: Hans Petter Selasky

git-svn-id: svn://svn.freebsd.org/base/stable/8@215483 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209443
thompsa [Fri, 19 Nov 2010 01:29:20 +0000 (01:29 +0000)]
MFC r209443

 Add support for LOW speed BULK transfers.  This mode is not recommended by the
 USB 2.0 standard, though some USB devices use it anyway.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215482 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209144
thompsa [Fri, 19 Nov 2010 01:28:22 +0000 (01:28 +0000)]
MFC r209144

 - Because hostapd calls iv_key_set() before if_init(), make sure key_set
   callback function will be executed, and that the key won't be deleted during
   the init process.
 - txmic and rxmic are written into the chip the same place regardless of
   opmode.
 - Make the hardware generate 802.11 sequence numbers.

Submitted by: Akinori Furukoshi

git-svn-id: svn://svn.freebsd.org/base/stable/8@215481 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206369
thompsa [Fri, 19 Nov 2010 01:27:21 +0000 (01:27 +0000)]
MFC r206369

 Remove debugging code that snuck in.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212980
thompsa [Fri, 19 Nov 2010 01:24:36 +0000 (01:24 +0000)]
MFC r212980

 Add new device ids.
  Buffalo (Melco Inc.) LUA3-U2-AGT
  Logitec LAN-GTJ/U2A(usb/119981)

PR: usb/119981

git-svn-id: svn://svn.freebsd.org/base/stable/8@215479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210275
thompsa [Fri, 19 Nov 2010 01:23:09 +0000 (01:23 +0000)]
MFC r210275

 - Support for Globetrotter iCON 452.
 - Fixed the interface probe routine to only attach to USB interfaces the driver
   actually supports.  This allows other drivers to attach to things like
   MicroSD slots etc.
 - Fixed network interface enumeration to be globally sequential instead of
   relying on the USB interface numbers.  This make sure the first network
   interface always is at uhso0 and the second at usho1 and so on.
 - Added a radio kill switch; exposed through sysctl.
 - Updated the manual page to be verbose about the number of serial ports and
   include iCON 452 in the set of tested hardware.

Submitted by: Fredrik Lindberg

git-svn-id: svn://svn.freebsd.org/base/stable/8@215478 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203815
thompsa [Fri, 19 Nov 2010 01:20:53 +0000 (01:20 +0000)]
MFC r203815

 Resort includes to match style(9) a bit more. No functional change
 is expected after this commit.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203775
thompsa [Fri, 19 Nov 2010 01:18:52 +0000 (01:18 +0000)]
MFC r203775

 Remove redundand headers and use more standard ones where necessary.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203774
thompsa [Fri, 19 Nov 2010 01:17:49 +0000 (01:17 +0000)]
MFC r203774

 Use more standard way for setting nonblocking flag for a filedescriptor.
 This makes libusb porting a bit easier.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215475 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215235:
jh [Thu, 18 Nov 2010 19:06:56 +0000 (19:06 +0000)]
MFC r215235:

Set FD_CLOEXEC for the output file only when the file has been specified
with the -o option. Setting the flag for stderr (the default) could
cause the traced process to redirect stderr to a random file.

PR: bin/152151

git-svn-id: svn://svn.freebsd.org/base/stable/8@215466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r215348
marius [Thu, 18 Nov 2010 18:03:52 +0000 (18:03 +0000)]
MFC: r215348

Return from mii_attach() after calling bus_generic_attach(9) on the device_t
of the MAC driver in order to attach miibus(4) on the first pass instead of
falling through to also calling it on the device_t of miibus(4). The latter
code flow was intended to attach the PHY drivers the same way regardless of
whether it's the first or a repeated pass, modulo the bus_generic_attach()
call in miibus_attach() which shouldn't be there. However, it turned out
that these variants cause miibus(4) to be attached twice under certain
conditions when using MAC drivers as modules.

Submitted by: yongari

git-svn-id: svn://svn.freebsd.org/base/stable/8@215460 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215132,215194:
yongari [Thu, 18 Nov 2010 17:44:02 +0000 (17:44 +0000)]
MFC r215132,215194:
r215132:
  Add basic WOL support for MCP ethernet controllers. It seems the
  controller does not perform automatic switching from 1000Mbps link
  to 10/100Mbps link when WOL is activated. Implement establishing
  10/100Mps link with auto-negotiation in driver. Link status change
  handler was modified to remove taskqueue based approach since driver
  now needs synchronous handling for link establishment.

  Submitted by: Yamagi Burmeister (lists <> yamagi.org ) (initial version)
  Tested by: Yamagi Burmeister (lists <> yamagi.org )

r215194:
  Fix regression introduced in r215132. Caller always holds a driver
  lock before accessing mii, so locking is not needed here.

  Reported by: Rob Farmer (rfarmer <> predatorlabs dot net)

git-svn-id: svn://svn.freebsd.org/base/stable/8@215456 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC through r214047: nc from OpenBSD 4.8.
delphij [Thu, 18 Nov 2010 01:14:18 +0000 (01:14 +0000)]
MFC through r214047: nc from OpenBSD 4.8.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215445 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215022: test: Move tests to tools/regression/bin/test.
jilles [Wed, 17 Nov 2010 23:13:02 +0000 (23:13 +0000)]
MFC r215022: test: Move tests to tools/regression/bin/test.
Convert the tests to the perl prove format.
Remove obsolete TEST.README (results of an old TEST.sh for some old Unices)
and TEST.csh (old tests without correct values, far less complete than
TEST.sh).

git-svn-id: svn://svn.freebsd.org/base/stable/8@215444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209407, r209648, r209650
alc [Wed, 17 Nov 2010 17:29:22 +0000 (17:29 +0000)]
MFC r209407, r209648, r209650
  Introduce and use vm_page_next() and vm_page_prev().  They provide both
  a simpler and faster interface for iterating over the pages of an object.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: Add /bin/rmail symlink to mailwrapper if sendmail is not being built
markm [Wed, 17 Nov 2010 17:12:41 +0000 (17:12 +0000)]
MFC: Add /bin/rmail symlink to mailwrapper if sendmail is not being built
and mailwrapper is being built. Ensure that it is not removed by
"make delete-old". Add Exim example to man page.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215186:
pluknet [Wed, 17 Nov 2010 09:48:18 +0000 (09:48 +0000)]
MFC r215186:

Add 'jid' as a possible sort order to the help screen.

PR: bin/150992
Submitted by: Frederic Culot <frederic at culot dot org>
Approved by: avg (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@215421 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215018-215020:
yongari [Tue, 16 Nov 2010 20:36:52 +0000 (20:36 +0000)]
MFC r215018-215020:
r215018:
  Consistently use tab character instead of using space character.
  No functional changes.

r215019:
  Remove trailing white spaces.

r215020:
  Remove standard PCI configuration space register definitions.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215407 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215017,215025:
yongari [Tue, 16 Nov 2010 20:32:09 +0000 (20:32 +0000)]
MFC r215017,215025:
  Follow the lead of vendor's interrupt moderation mechanism.
  It seems RTL8169/RTL8168/RTL810xE has a kind of interrupt
  moderation mechanism but it is not documented at all. The magic
  value dramatically reduced number of interrupts without noticeable
  performance drops so apply it to all RTL8169/RTL8169 controllers.
  Vendor's FreeBSD driver also applies it to RTL810xE controllers but
  their Linux driver explicitly cleared the register, so do not
  enable interrupt moderation for RTL810xE controllers.

  While I'm here sort 8169 specific registers.

  Obtained from: RealTek FreeBSD driver

MFC r215025:
  Only moderate TX completion interrupts. Relying on taskqueue to
  suppress RX interrupts seems to give better RX performance than
  RX interrupt moderation.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215405 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214992:
yongari [Tue, 16 Nov 2010 20:21:53 +0000 (20:21 +0000)]
MFC r214992:
  Reduce spin wait time consumed in GMII register access routine.
  There were a couple of attempts in the past to reduce it since it
  took more than 1ms. Because mii_tick() periodically polls link
  status, waiting more than 1ms for each GMII register access was
  overkill. Unfortunately all previous attempts were failed with
  various ways on different controllers.
  This time, add additional 20us dealy at the end of GMII register
  access which seems to requirement of all RealTek controllers to
  issue next GMII register access request. This is the same way what
  Linux does.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215403 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agosync with the version in HEAD -- use ${BINMAKE} built
luigi [Tue, 16 Nov 2010 17:44:09 +0000 (17:44 +0000)]
sync with the version in HEAD -- use ${BINMAKE} built
by the toolchain and not the hosts's make

git-svn-id: svn://svn.freebsd.org/base/stable/8@215402 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206081:
netchild [Tue, 16 Nov 2010 09:01:19 +0000 (09:01 +0000)]
MFC r206081:
Fix some bogus values in linprocfs.

Submitted by: Petr Salinger <Petr.Salinger@seznam.cz>
Verified on: GNU/kFreeBSD debian 8.0-1-686 (by submitter)
PR: 144584

Reviewed by / discussed with: kib, des, jhb, submitter

Requested by: emaste
Tested by: olli

git-svn-id: svn://svn.freebsd.org/base/stable/8@215394 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215136:
brucec [Tue, 16 Nov 2010 07:55:36 +0000 (07:55 +0000)]
MFC r215136:

Bump .Dd due to additions in r214279.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215390 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214395:
brucec [Tue, 16 Nov 2010 07:53:14 +0000 (07:53 +0000)]
MFC r214395:

Fix formatting.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215389 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214073:
brucec [Tue, 16 Nov 2010 07:51:35 +0000 (07:51 +0000)]
MFC r214073:

Stop disallowing device nodes to be passed to camcontrol(8) since libcam
already allows both device names and nodes to be specified.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215388 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214022:
brucec [Tue, 16 Nov 2010 07:47:43 +0000 (07:47 +0000)]
MFC r214022:

Remove extra word, which looks like a left-over from a deleted sentence.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215387 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214021:
brucec [Tue, 16 Nov 2010 07:38:26 +0000 (07:38 +0000)]
MFC r214021:

Fix grammar.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213763:
brucec [Tue, 16 Nov 2010 07:33:53 +0000 (07:33 +0000)]
MFC r213763:

Use the RFC2606 domain example.com in examples.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215383 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214381:
brucec [Tue, 16 Nov 2010 07:30:51 +0000 (07:30 +0000)]
MFC r214381:

Add information about the values and default setting of the
kern.cam.ada.spindown_shutdown sysctl.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215382 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215239:
brucec [Tue, 16 Nov 2010 07:24:17 +0000 (07:24 +0000)]
MFC r215239:

Memory stats are reported in bytes, not pages.

PR: docs/151283
Submitted by: Bas Smeelen <b.smeelen at ose.nl>

git-svn-id: svn://svn.freebsd.org/base/stable/8@215380 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215263:
brucec [Tue, 16 Nov 2010 07:16:40 +0000 (07:16 +0000)]
MFC r215263:

Add ftp4.se.freebsd.org to the set of mirrors.

PR: bin/150552
Submitted by: Niclas Zeising <zeising at lysator.liu.se>

git-svn-id: svn://svn.freebsd.org/base/stable/8@215378 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213455
alc [Tue, 16 Nov 2010 05:46:35 +0000 (05:46 +0000)]
MFC r213455
  Initialize KPTmap in locore so that vm86.c can call vtophys() (or really
  pmap_kextract()) before pmap_bootstrap() is called.

  Document the set of pmap functions that may be called before
  pmap_bootstrap() is called.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214938
alc [Tue, 16 Nov 2010 05:06:20 +0000 (05:06 +0000)]
MFC r214938
  Eliminate a possible race between pmap_pinit() and pmap_kenter_pde() on
  superpage promotion or demotion.

  Micro-optimize pmap_kenter_pde().

git-svn-id: svn://svn.freebsd.org/base/stable/8@215372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214953
alc [Tue, 16 Nov 2010 04:40:27 +0000 (04:40 +0000)]
MFC r214953
  In case the stack size reaches its limit and its growth must be
  restricted, ensure that grow_amount is a multiple of the page size.
  Otherwise, the kernel may crash in swap_reserve_by_uid() on HEAD and
  FreeBSD 8.x, and produce a core file with a missing stack on FreeBSD
  7.x.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215369 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214968:
yongari [Tue, 16 Nov 2010 00:32:17 +0000 (00:32 +0000)]
MFC r214968:
  Use shorten model name instead of showing all controller model
  numbers. bge(4) supports too many models such that it's
  unreasonable to list all these controllers in one line description
  of name. While I'm here mention that BCM590x/BCM5779x is Fast
  Ethernet controller.
  bge(4) still lacks support for some controllers but supporting
  these controllers should be easy now and adding new controllers
  do not require touching .Nd any more.

  Obtained from: OpenBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@215362 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215154:
lstewart [Tue, 16 Nov 2010 00:06:48 +0000 (00:06 +0000)]
MFC r215154:

The first releases SIFTR will ship in will be 7.4 and 8.2.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215361 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215153:
lstewart [Tue, 16 Nov 2010 00:01:44 +0000 (00:01 +0000)]
MFC r215153:

Standardise all Swinburne related copyright/licence statements throughout the
tree in preparation for another large code import. Swinburne University is the
legal entity that owns copyright and the 2-clause BSD licence is acceptable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215359 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215152:
lstewart [Mon, 15 Nov 2010 23:51:11 +0000 (23:51 +0000)]
MFC r215152:

The university does not require that its CRICOS number be included in source
code. Remove all references from the tree.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r207554:
sobomax [Mon, 15 Nov 2010 17:48:13 +0000 (17:48 +0000)]
MFC r207554:

  Add new tunable 'net.link.ifqmaxlen' to set default send interface
  queue length. The default value for this parameter is 50, which is
  quite low for many of today's uses and the only way to modify this
  parameter right now is to edit if_var.h file. Also add read-only
  sysctl with the same name, so that it's possible to retrieve the
  current value.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215342 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215131: make it possible to actually enable hwpstate_verbose
avg [Mon, 15 Nov 2010 09:41:46 +0000 (09:41 +0000)]
MFC r215131: make it possible to actually enable hwpstate_verbose

git-svn-id: svn://svn.freebsd.org/base/stable/8@215337 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213925: sh: Use <stddef.h> rather than <sys/stddef.h>.
jilles [Sun, 14 Nov 2010 19:40:22 +0000 (19:40 +0000)]
MFC r213925: sh: Use <stddef.h> rather than <sys/stddef.h>.

<sys/stddef.h> is only for the kernel and conflicts with <stddef.h>.

Note: there is no mergeinfo as r213925 was previously "blocked" by obrien.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213775: sh: Make DEBUG traces 64-bit clean:
jilles [Sun, 14 Nov 2010 19:36:55 +0000 (19:36 +0000)]
MFC r213775: sh: Make DEBUG traces 64-bit clean:
- Use %t to print ptrdiff_t values.
- Cast a ptrdiff_t value explicitly to int for a field width specifier.

While here, sort includes.

Original commit by jhb.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215311 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRemove extra svn:mergeinfo.
nork [Sun, 14 Nov 2010 13:06:34 +0000 (13:06 +0000)]
Remove extra svn:mergeinfo.

Pointy hat to: myself
Pointed out by: hrs, ume, nyan, avg, jhb
Suggested by: jhb
Reviewd by: nyan, jhb
Approved by: imp (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@215294 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r214940
marius [Sat, 13 Nov 2010 13:46:31 +0000 (13:46 +0000)]
MFC: r214940

Add gpart and glabel to the release CD mfsroot.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215242 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC archive_file_count() utility function.
kientzle [Sat, 13 Nov 2010 06:07:39 +0000 (06:07 +0000)]
MFC archive_file_count() utility function.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215233 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203568: Refactor and simplify the SIGINFO/SIGUSR1
kientzle [Sat, 13 Nov 2010 06:00:27 +0000 (06:00 +0000)]
MFC r203568:  Refactor and simplify the SIGINFO/SIGUSR1
handling.  Switch to a custom function to format 64-bit
ints to avoid the headache of trying to guess printf
modifiers on different platforms.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215232 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: reverse an ill-advised experiment trying
kientzle [Sat, 13 Nov 2010 05:55:56 +0000 (05:55 +0000)]
MFC: reverse an ill-advised experiment trying
to emulate a "root user" on Windows.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215231 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC minor Makefile reformat.
kientzle [Sat, 13 Nov 2010 05:53:55 +0000 (05:53 +0000)]
MFC minor Makefile reformat.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215230 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: Allow -b up to 8192. Folks working with
kientzle [Sat, 13 Nov 2010 05:52:45 +0000 (05:52 +0000)]
MFC: Allow -b up to 8192.  Folks working with
modern high-speed tape drives are routinely using
block sizes of 1MB (-b 2048), allowing up to 8192
should allow a little room for future growth.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215229 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203557: Move program name into a global, eliminate
kientzle [Sat, 13 Nov 2010 05:50:49 +0000 (05:50 +0000)]
MFC r203557:  Move program name into a global, eliminate
an extra argument from the error-reporting routines.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215228 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC some Makefile tweaks.
kientzle [Sat, 13 Nov 2010 05:43:58 +0000 (05:43 +0000)]
MFC some Makefile tweaks.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215227 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214565:
bz [Sat, 13 Nov 2010 01:28:56 +0000 (01:28 +0000)]
MFC r214565:

  Announce both IPsec and UDP Encap (NAT-T) if available for
  feature_present(3) checks.

  This will help to run-time detect and conditionally handle specific
  optionas of either feature in user space (i.e. in libipsec).

  Descriptions read by: rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@215225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214844:
yongari [Sat, 13 Nov 2010 01:09:44 +0000 (01:09 +0000)]
MFC r214844:
  Add simple MAC statistics counter reading support. Unfortunately
  useful counters like rl_missed_pkts is 16 bits quantity which is
  too small to hold meaningful information happened in a second. This
  means driver should frequently read these counters in order not to
  lose accuracy and that approach is too inefficient in driver's
  view. Moreover it seems there is no way to trigger an interrupt to
  detect counter near-full or wraparound event as well as lacking
  clearing the MAC counters. Another limitation of reading the
  counters from RealTek controllers is lack of interrupt firing at
  the end of DMA cycle of MAC counter read request such that driver
  have to poll the end of the DMA which is a time consuming process
  as well as inefficient. The more severe issue of the MAC counter
  read request is it takes too long to complete the DMA. All these
  limitation made maintaining MAC counters in driver impractical. For
  now, just provide simple sysctl interface to trigger reading the
  MAC counters. These counters could be used to track down driver
  issues. Users can read MAC counters maintained in controller with
  the following command.
  #sysctl dev.re.0.stats=1

  While I'm here add check for validity of dma map and allocated
  memory before unloading/freeing them.

  Tested by: rmacklem

git-svn-id: svn://svn.freebsd.org/base/stable/8@215222 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214841-214842:
yongari [Sat, 13 Nov 2010 01:05:47 +0000 (01:05 +0000)]
MFC r214841-214842:
r214841:
  Remove extra white spaces.

r214842:
  style(9).

git-svn-id: svn://svn.freebsd.org/base/stable/8@215220 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214840:
yongari [Sat, 13 Nov 2010 01:02:09 +0000 (01:02 +0000)]
MFC r214840:
  Enable 64bit DMA addressing for RTL810xE/RTL8168/RTL8111 PCIe
  controllers. Some old PCI controllers may work with DAC but it was
  known to be buggy so 64bit DMA addressing is used only on PCIe
  controllers.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214899:
yongari [Sat, 13 Nov 2010 00:58:34 +0000 (00:58 +0000)]
MFC r214899:
  Fix a long standing bug in programming station address for Yukon
  controllers. sk(4) never reprogrammed station address for Yukon
  controllers so overriding station address with ifconfig(8) was not
  possible.
  Fix the bug by reprogramming all registers that control station
  address, flow-control and virtual station address. Virtual station
  address has no use at this moment since driver does not make use of
  fail over feature.

  Tested by: "Mikhail T." <mi+thun <> aldan.algebra.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@215216 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214898:
yongari [Sat, 13 Nov 2010 00:46:07 +0000 (00:46 +0000)]
MFC r214898:
  If we got an invalid station address, generate random address. This
  might be caused by broken BIOS.

  Reported by: "Mikhail T." <mi+thun <> aldan.algebra.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@215214 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213813. This is a direct commit because the diff is against
mdf [Fri, 12 Nov 2010 18:09:06 +0000 (18:09 +0000)]
MFC r213813.  This is a direct commit because the diff is against
several non-MFC'd changes.

Use a safer mechanism for determining if a task is currently running,
that does not rely on the lifetime of pointers being the same. This
also restores the task KBI.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215190 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214136:
pluknet [Fri, 12 Nov 2010 11:59:59 +0000 (11:59 +0000)]
MFC r214136:
Reshuffle SIOCGIFCONF32 handler.

Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@215175 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214781, r214807:
brucec [Fri, 12 Nov 2010 11:36:12 +0000 (11:36 +0000)]
MFC r214781, r214807:

Improve rounding of standby timer.
22-29 minutes can't be encoded so must be rounded up to 30.

PR: bin/151871

git-svn-id: svn://svn.freebsd.org/base/stable/8@215174 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214279:
brucec [Fri, 12 Nov 2010 11:22:59 +0000 (11:22 +0000)]
MFC r214279:

Mostly revert r203420, and add similar functionality into ada(4) since the
existing code caused problems with some SCSI controllers.

A new sysctl kern.cam.ada.spindown_shutdown has been added that controls
whether or not to spin-down disks when shutting down.
Spinning down the disks unloads/parks the heads - this is much better than
removing power when the disk is still spinning because otherwise an
Emergency Unload occurs which may cause damage to the actuator.

The FLUSH_CACHE + STANDBY_IMMEDIATE commands are issued following the
procedure documented in Fujitsu's MHW series product documentation under
section 1.10.1, "Recommended power-off sequence".

PR: kern/140752
Submitted by: olli

git-svn-id: svn://svn.freebsd.org/base/stable/8@215173 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214854:
delphij [Fri, 12 Nov 2010 01:45:29 +0000 (01:45 +0000)]
MFC r214854:

Validate whether the zfs_cmd_t submitted from userland is not smaller than
what we have.  Without the check the kernel could accessing memory that
does not belong to the request struct.

Note that we do not test if the struct equals in size at this time, which
may faciliate forward compatibility with newer binaries.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215155 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 211149,211151,211197,211518,215128:
jhb [Thu, 11 Nov 2010 19:39:38 +0000 (19:39 +0000)]
MFC 211149,211151,211197,211518,215128:
Update various places that store or manipulate CPU masks to use cpumask_t
instead of int or u_int.  Since cpumask_t is currently u_int on all
platforms this should just be a cosmetic change.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215141 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r198588:
nwhitehorn [Thu, 11 Nov 2010 14:13:56 +0000 (14:13 +0000)]
MFC r198588:
Turn off Altivec data-stream prefetching before going into power-save
mode on those CPUs that need it.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215123 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214972,r215031:
kevlo [Thu, 11 Nov 2010 02:37:50 +0000 (02:37 +0000)]
MFC r214972,r215031:
- Intel IXP425 SoC is based on the ARMv5TE architecture
- Minor cosmetic changes

git-svn-id: svn://svn.freebsd.org/base/stable/8@215106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209639 by marcel:
mav [Wed, 10 Nov 2010 19:33:13 +0000 (19:33 +0000)]
MFC r209639 by marcel:
Remove the unneeded header <machine/intr.h>.

Reviewed by: marcel

git-svn-id: svn://svn.freebsd.org/base/stable/8@215099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 211117:
jhb [Wed, 10 Nov 2010 17:33:47 +0000 (17:33 +0000)]
MFC 211117:
Simplify the logic for handling ipi_selected() and ipi_cpu() in the
amd64/i386 case.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215092 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214418: Add missing "readahead" to the nfs_opts list.
jh [Wed, 10 Nov 2010 17:17:38 +0000 (17:17 +0000)]
MFC r214418: Add missing "readahead" to the nfs_opts list.

PR: 151321

git-svn-id: svn://svn.freebsd.org/base/stable/8@215091 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix-up MFC r214446, r214516:
attilio [Wed, 10 Nov 2010 14:59:13 +0000 (14:59 +0000)]
Fix-up MFC r214446, r214516:
Use the appropriate SYSINIT() ordering between the arches.
This is intended as a fixup for r215059, so no further notes are merged.

Reported by: jhb
Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@215089 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214728:
kib [Wed, 10 Nov 2010 08:46:29 +0000 (08:46 +0000)]
MFC r214728:
If dlopen() is called for the dso that has been already loaded as a
dependency, then the dso never has its DAG initialized. Empty DAG
makes ref_dag() call in dlopen() a nop, and the dso refcount is off
by one.

Initialize the DAG on the first dlopen() call, using a boolean flag
to prevent double initialization.

MFC r214776:
Fix style.

MFC r214777:
Change init_dag() to not increment DAG refcount. Unconditionally call
both init_dag() and ref_dag() in dlopen() for the case when the object
was already loaded.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215084 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 211249
nork [Wed, 10 Nov 2010 05:22:12 +0000 (05:22 +0000)]
MFC 211249
This depends on ACPI, so only build on i386:i386, amd64:amd64 and
ia64:ia64.  It can't possibly work on pc98, or any of the embedded
platforms, since they lack ACPI.

Pointy hat: myself
Pointed out: nyan, releng_8 tinderbox
Approved by: imp (mentor, implicitly)

git-svn-id: svn://svn.freebsd.org/base/stable/8@215077 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r198454: sh: Exempt $@ and $* from set -u
jilles [Tue, 9 Nov 2010 22:32:11 +0000 (22:32 +0000)]
MFC r198454: sh: Exempt $@ and $* from set -u

This seems more useful and will likely be in the next POSIX standard.

Also document more precisely in the man page what set -u does (note that
$@, $* and $! are the only special parameters that can ever be unset, all
the others are always set, although they may be empty).

git-svn-id: svn://svn.freebsd.org/base/stable/8@215066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209154:
mav [Tue, 9 Nov 2010 22:18:20 +0000 (22:18 +0000)]
MFC r209154:
Virtualize pci_remap_msi_irq() call from general MSI code. It allows MSI
(FSB interrupts) to be used by non-PCI devices, such as HPET.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215064 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214280,214853: New tests that also work with stable/8 sh.
jilles [Tue, 9 Nov 2010 22:17:53 +0000 (22:17 +0000)]
MFC r214280,214853: New tests that also work with stable/8 sh.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215063 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208922 by jhb:
mav [Tue, 9 Nov 2010 22:03:39 +0000 (22:03 +0000)]
MFC r208922 by jhb:
Move the MD support for PCI message signalled interrupts to the x86 tree
as it is identical for i386 and amd64.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214446, r214516:
attilio [Tue, 9 Nov 2010 21:18:32 +0000 (21:18 +0000)]
MFC r214446, r214516:
Move mptable support to x86/ subtree.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@215059 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214373, r214380, r214386:
attilio [Tue, 9 Nov 2010 21:06:26 +0000 (21:06 +0000)]
MFC r214373, r214380, r214386:
Move dump_machdep.c into x86/ for amd64, i386 and pc98.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@215058 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r214873
marius [Tue, 9 Nov 2010 21:00:24 +0000 (21:00 +0000)]
MFC: r214873

- Move Sun Fire V240 to the list of known working machines.
- For the parallel stable/7 and stable/8 branches mention both releases that
  first supported a particular sparc64 machine and update the sparc64 hardware
  list regarding machines that will be supported beginning with 7.4-RELEASE.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215056 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214893:
dumbbell [Tue, 9 Nov 2010 20:44:55 +0000 (20:44 +0000)]
MFC r214893:
Fix a segmentation fault in argument processing.

The crash was caused by a command line such as this one:
# fold -b1

PR: bin/151592
Reporter by: Marcus Reid <marcus@blazingdot.com>
Tested by: Marcus Reid <marcus@blazingdot.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@215053 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 210939:
jhb [Tue, 9 Nov 2010 20:00:23 +0000 (20:00 +0000)]
MFC 210939:
Add a new ipi_cpu() function to the MI IPI API that can be used to send an
IPI to a specific CPU by its cpuid.  Replace calls to ipi_selected() that
constructed a mask for a single CPU with calls to ipi_cpu() instead.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215050 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214378:
mm [Tue, 9 Nov 2010 19:43:45 +0000 (19:43 +0000)]
MFC r214378:

Bugfix merge from OpenSolaris:

OpenSolaris onnv-revision: 10209:91f47f0e7728
6830541 zfs_get_data_trips on a verify
6696242 multiple zfs_fillpage() zfs: accessing past end of object panics
6785914 zfs fails to drop dn_struct_rwlock in recovery code path

Approved by: delphij (mentor)
Obtained from: OpenSolaris (Bug ID 683054166962426785914)

git-svn-id: svn://svn.freebsd.org/base/stable/8@215048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208452, r208479:
mav [Tue, 9 Nov 2010 19:29:29 +0000 (19:29 +0000)]
MFC r208452, r208479:
Unify local_apic.c for x86 archs,

git-svn-id: svn://svn.freebsd.org/base/stable/8@215047 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 214682:
jhb [Tue, 9 Nov 2010 18:46:09 +0000 (18:46 +0000)]
MFC 214682:
Tweak the waitchannel messages for the dead lock detection kthread.  Use
a shorter message (userland generally only sees the first 6 to 8
characters) when waiting for the allproc lock.  Use "-" when idle to match
the behavior of other kthreads.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215044 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f