]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC: revision 201391
nyan [Mon, 18 Jan 2010 10:53:03 +0000 (10:53 +0000)]
MFC: revision 201391

  Do kgzip to the loader on pc98, too.  Now pc98's boot2 works for ELF.

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

14 years agoMFC r201532:
ed [Mon, 18 Jan 2010 09:04:53 +0000 (09:04 +0000)]
MFC r201532:

  Make TIOCSTI work again.

  It looks like I didn't implement this when I imported MPSAFE TTY.
  Applications like mail(1) still use this. I think it's conceptually bad.

  Tested by:    Pete French <petefrench ticketswitch com>

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

14 years agoMFC r202129:
delphij [Mon, 18 Jan 2010 05:03:40 +0000 (05:03 +0000)]
MFC r202129:

Report ZFS filesystem version instead of the zpool version when we say it.

Reported by: Yuri Pankov (on -fs@)
Submitted by: delphij

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

14 years agoMFC r210520:
delphij [Mon, 18 Jan 2010 04:58:14 +0000 (04:58 +0000)]
MFC r210520:

Test index value is within the range before using it to reference
array member.

PR: bin/141838
Submitted by: Henning Petersen <henning.petersen@t-online.de>

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

14 years agoMFC r202019:
imp [Mon, 18 Jan 2010 00:53:21 +0000 (00:53 +0000)]
MFC r202019:
  Add INCLUDE_CONFIG_FILE in GENERIC on all non-embedded platforms.
  # This is the resolution of removing it from DEFAULTS...

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

14 years agoMFC: r201442
rmacklem [Sun, 17 Jan 2010 20:49:34 +0000 (20:49 +0000)]
MFC: r201442
The test for "same client" for the experimental nfs server over NFSv4
was broken w.r.t. byte range lock conflicts when it was the same client
and the request used the open_to_lock_owner4 case, since lckstp->ls_clp
was not set. This patch fixes it by using "clp" instead of "lckstp->ls_clp".

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

14 years agoMFC: r201439
rmacklem [Sun, 17 Jan 2010 20:18:59 +0000 (20:18 +0000)]
MFC: r201439
Fix three related problems in the experimental nfs client when
checking for conflicts w.r.t. byte range locks for NFSv4.
1 - Return 0 instead of EACCES when a conflict is found, for F_GETLK.
2 - Check for "same file" when checking for a conflict.
3 - Don't check for a conflict for the F_UNLCK case.

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

14 years agoHook up uhso to the build.
thompsa [Sun, 17 Jan 2010 18:37:36 +0000 (18:37 +0000)]
Hook up uhso to the build.

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

14 years agoMFC r202054
thompsa [Sun, 17 Jan 2010 18:36:22 +0000 (18:36 +0000)]
MFC r202054

 Add the Globetrotter GE40x.

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

14 years agoMFC r201766
thompsa [Sun, 17 Jan 2010 18:33:47 +0000 (18:33 +0000)]
MFC r201766

 Remove unneeded includes.

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

14 years agoMFC r201714
thompsa [Sun, 17 Jan 2010 18:33:05 +0000 (18:33 +0000)]
MFC r201714

 Fix debug printf on 64bit arches.

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

14 years agoMFC r201701
thompsa [Sun, 17 Jan 2010 18:32:20 +0000 (18:32 +0000)]
MFC r201701

 Add new umass quirks for Western Digital MYBook and JMicron JM20337.

PR: usb/142225, usb/142228
Submitted by: Thomas Ward, Yoshikazu GOTO

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

14 years agoMFC r201681
thompsa [Sun, 17 Jan 2010 18:31:27 +0000 (18:31 +0000)]
MFC r201681

 Improve u3g device ejecting by providing additional methods for the eject
 command in the usb_msctest routines, as well as a general tidyup.

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

14 years agoMFC r201680
thompsa [Sun, 17 Jan 2010 18:30:37 +0000 (18:30 +0000)]
MFC r201680

 scratch_size was incorrectly passed as language ID when retrieving the language
 ID table, this broke string retrieval on some devices.

Submitted by: Hans Petter Selasky
Reported by: Renato Botelho

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

14 years agoMFC r201318
thompsa [Sun, 17 Jan 2010 18:29:30 +0000 (18:29 +0000)]
MFC r201318

 Add new device ID to uipaq driver

PR: usb/141936
Submitted by: HASHI Hiroaki

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

14 years agoMFC r202026
thompsa [Sun, 17 Jan 2010 18:27:53 +0000 (18:27 +0000)]
MFC r202026

 Print error messages to stderr.

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

14 years agoMFC r201922
thompsa [Sun, 17 Jan 2010 18:27:13 +0000 (18:27 +0000)]
MFC r201922

 Add missing library dependency.

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

14 years agoMFC r201705
thompsa [Sun, 17 Jan 2010 18:26:21 +0000 (18:26 +0000)]
MFC r201705

 Sync to p4
  - Add new quirks commands and the '-d' option optionally to specify the ugen device.

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

14 years agoMFC r202025
thompsa [Sun, 17 Jan 2010 18:24:40 +0000 (18:24 +0000)]
MFC r202025

 Reset variable fields in case the transfer is opened again

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

14 years agoMFC r202181,202243,202270
thompsa [Sun, 17 Jan 2010 18:22:42 +0000 (18:22 +0000)]
MFC r202181,202243,202270

 Add a driver by Fredrik Lindberg for Option HSDPA USB devices. These differ
 from standard 3G wireless units by supplying a raw IP/IPv6 endpoint rather than
 using PPP over serial. uhsoctl(1) is used to initiate and close the WAN
 connection.

Obtained from: Fredrik Lindberg <fli@shapeshifter.se>

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

14 years agoMFC 201523
tuexen [Sun, 17 Jan 2010 18:18:01 +0000 (18:18 +0000)]
MFC 201523

Correct usage of parenthesis.

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

14 years agoMFC: r197056 by des
brueffer [Sun, 17 Jan 2010 18:17:00 +0000 (18:17 +0000)]
MFC: r197056 by des

Fix comment about KERNFAST.

PR:             142854
Submitted by:   Nikolay Denev <ndenev@gmail.com>

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

14 years agoMFC 199459
tuexen [Sun, 17 Jan 2010 17:49:28 +0000 (17:49 +0000)]
MFC 199459

Get rid of unused fields addr_over which is never really used,
only copied around.

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

14 years agoMFC 199374
tuexen [Sun, 17 Jan 2010 17:46:48 +0000 (17:46 +0000)]
MFC 199374

Fix a bug where queued ASCONF messags are not sent out.
From Irene Ruengeler.

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

14 years agoMFC 198621
tuexen [Sun, 17 Jan 2010 17:45:09 +0000 (17:45 +0000)]
MFC 198621

Improve round robin stream scheduler and cleanup some code.

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

14 years agoMFC 197341
tuexen [Sun, 17 Jan 2010 17:41:43 +0000 (17:41 +0000)]
MFC 197341

Fix errnos.

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

14 years agoMFC: r201870, r201889
brueffer [Sun, 17 Jan 2010 17:31:53 +0000 (17:31 +0000)]
MFC: r201870, r201889

Various language fixes.  Also fixed the URL to totd, obtained from NetBSD.

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

14 years agoMFC 198499
tuexen [Sun, 17 Jan 2010 17:10:17 +0000 (17:10 +0000)]
MFC 198499

Improve the round robin stream scheduler.

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

14 years agoMFC 199437
tuexen [Sun, 17 Jan 2010 17:05:59 +0000 (17:05 +0000)]
MFC 199437

Use always LIST_EMPTY instead of sometime SCTP_LIST_EMPTY,
which is defined as LIST_EMPTY.

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

14 years agoMFC 199372
tuexen [Sun, 17 Jan 2010 17:03:40 +0000 (17:03 +0000)]
MFC 199372

Do not start the iterator when there are no associations.
This fixes a bug found by Irene Ruengeler.

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

14 years agoMFC 199369
tuexen [Sun, 17 Jan 2010 17:01:01 +0000 (17:01 +0000)]
MFC 199369

Do not hold the lock longer than necessary.

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

14 years agoMFC 198522:
tuexen [Sun, 17 Jan 2010 16:58:37 +0000 (16:58 +0000)]
MFC 198522:

Bugfix: Use formula from section 7.2.3 of RFC 4960. Reported by Martin Becke.

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

14 years agoMFC r201806:
bz [Sun, 17 Jan 2010 15:20:34 +0000 (15:20 +0000)]
MFC r201806:
  Switch traceroute over to make use of proper in-kernel source
  address selection.

  Reviewed by:  rwatson, fenner
  PR:           kern/139454
  Tested by:    Frank Steinborn (steinex nognu.de)

MFC r201897:
  Correct spelling.

  Submitted by: (pluknet gmail.com)

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

14 years agoMFC r202116:
bz [Sun, 17 Jan 2010 13:42:07 +0000 (13:42 +0000)]
MFC r202116:
  Adjust a comment to reflect reality, as we have proper source
  address selection, even for IPv4, since r183571.

  Pointed out by: Jase Thew (bazerka beardz.net)

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

14 years agoMFC r201995:
bz [Sun, 17 Jan 2010 13:38:11 +0000 (13:38 +0000)]
MFC r201995:
  Correct a typo.

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

14 years agoMFC r201898:
bz [Sun, 17 Jan 2010 13:36:13 +0000 (13:36 +0000)]
MFC r201898:
  Add comments trying to explain what bad things happen here, i.e.
  how hashed MD5/SHA are implemented, abusing Final() for padding and
  sw_octx to transport the key from the beginning to the end.

  Enlightened about what was going on here by: cperciva
  Reviewed by:  cperciva

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

14 years agoMFC r201742:
bz [Sun, 17 Jan 2010 13:28:06 +0000 (13:28 +0000)]
MFC r201742:
  After adding an SDT provider for opencrypto in r199884 we should also
  depend on opt_kdtrace.h for the module build.

  Submitted by: (Andre.Albsmeier siemens.com)

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

14 years agoMFC r201688:
bz [Sun, 17 Jan 2010 13:23:53 +0000 (13:23 +0000)]
MFC r201688:

  Correct a typo.

  Submitted by: sn_ (sn_ gmx.net) on hackers@

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

14 years agoMerge r197308 from head (originally by ed):
gavin [Sun, 17 Jan 2010 11:20:53 +0000 (11:20 +0000)]
Merge r197308 from head (originally by ed):

  Spell Israel correctly.

PR: bin/138580
Submitted by: Alexey Savartsov <asavartsov gmail com>
Approved by: ed (mentor, implicit)

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

14 years agoMerge r201440, r201445 from head:
gavin [Sun, 17 Jan 2010 11:10:24 +0000 (11:10 +0000)]
Merge r201440, r201445 from head:

  Don't complain when we encounter the "cache" source, it's valid.  Also fix
  the error message to include a line feed and not include a stray comma.

  Submitted by: Artis Caune  artis.caune gmail.com

  While here, change "> /dev/stderr" for more usual ">&2"

  Submitted by: jilles

PR: bin/121671
Approved by: ed (mentor, implicit)

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

14 years agoMerge r201429:
gavin [Sun, 17 Jan 2010 10:58:59 +0000 (10:58 +0000)]
Merge r201429:
  Fix return code in the case of successful file transfer, broken in
  tftp.c 1.13

PR: bin/117452
Submitted by: Spencer Minear  minear securecomputing.com
Approved by: ed (mentor, implicit)

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

14 years agoMFC r201605: Update acpi_ibm syctl nodes on resume.
iwasaki [Sun, 17 Jan 2010 06:24:09 +0000 (06:24 +0000)]
MFC r201605: Update acpi_ibm syctl nodes on resume.

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

14 years agoMFC r200587:
gavin [Sat, 16 Jan 2010 15:00:35 +0000 (15:00 +0000)]
MFC r200587:
  ifconfig(8) is documented to take a ISO 3166-1 country code to set the
  regulatory domain with the "country" parameter, but will also take a full
  country name.  The man page warns that only the ISO code is unambiguous.
  In reality, however, the first match on either would be accepted, leading
  to "DE" being interpreted as the "DEBUG" country rather than Germany, and
  "MO" selecting Morocco rather than the correct country, Macau.

  Fix this by always checking for an ISO CC match first, and only search on
  the full country name if that fails.

PR: bin/140571
Tested by: Dirk Meyer dirk.meyer dinoex.sub.org
Reviewed by: sam
Approved by: ed (mentor, implicit)

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

14 years agoMFC: r201899
marius [Sat, 16 Jan 2010 12:18:44 +0000 (12:18 +0000)]
MFC: r201899

Some style(9) fixes

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

14 years agoMFC: r201896
marius [Sat, 16 Jan 2010 12:16:38 +0000 (12:16 +0000)]
MFC: r201896

As nfsm_srvmtofh_xx() assumes the 4-byte alignment required by XDR
ensure the mbuf data is aligned accordingly by calling nfs_realign()
in fha_extract_info(). This fix is orthogonal to the problem solved
by r199274/r199284 (MFC'ed to stable/8 in r199733).

PR: 142102 (second part)

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

14 years agoMFC: r201888
brueffer [Sat, 16 Jan 2010 09:17:33 +0000 (09:17 +0000)]
MFC: r201888

bridge(4) acts like a switch, not like a hub.

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

14 years agoPartially revert r202428. There is no bus_describe_intr() on RELENG_8.
mav [Sat, 16 Jan 2010 07:55:46 +0000 (07:55 +0000)]
Partially revert r202428. There is no bus_describe_intr() on RELENG_8.

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

14 years agoMFC rev 201941:
marcel [Sat, 16 Jan 2010 04:34:03 +0000 (04:34 +0000)]
MFC rev 201941:
Remove file system support based on the simple file system protocol.

MFC rev 201966:
Remove debugging printf().

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

14 years agoMFC rev 201937:
marcel [Sat, 16 Jan 2010 04:24:10 +0000 (04:24 +0000)]
MFC rev 201937:
Implement the fo_readdir method.

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

14 years agoMFC r202011:
mav [Fri, 15 Jan 2010 23:58:37 +0000 (23:58 +0000)]
MFC r202011:
While AHCI specification tells that multi-vector MSI doesn't use global IS
register, nVidia chipsets have different oppinion, requiring every interrupt
to be acknowledged there.

While there, add interrupt descriptions in multi-vector MSI mode.

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

14 years agoMFC r201645:
mav [Fri, 15 Jan 2010 23:56:19 +0000 (23:56 +0000)]
MFC r201645:
Change the way in which zero stripesize is handled. Instead of reporting
zero stripeoffset in such case (as if device has no stripes), report offset
from the beginning of the media (as if device has single infinite stripe).

This gives partitioning tools information, required to guess better
partition alignment, in case if hardware doesn't report it's stripe size.
For example, it should give disklabel info about odd offset made by fdisk.

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

14 years agoMFC r201658:
mav [Fri, 15 Jan 2010 23:52:31 +0000 (23:52 +0000)]
MFC r201658:
Increase default block size from 4K to 64K. It was reduces 6 yeard ago,
when trees were big and FAST mode was enabled by default.

So small block size doesn't benefits linear I/O operations in FAST and
significantly slowdowns in ECONOMIC (default) mode. For single stream random
I/Os so small block doesn't give much benefits, as access time is usually
bigger then transfer time there. Same time it requires all heads to seek
together for every single request, reducing performance on parallel load.

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

14 years agoMFC r201890:
kib [Fri, 15 Jan 2010 22:19:51 +0000 (22:19 +0000)]
MFC r201890:
Set md_ldt after md_ldt_sd is populated.

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

14 years agoMFC: r201052, r201200, r202003, r202010, r202023
marius [Fri, 15 Jan 2010 21:45:46 +0000 (21:45 +0000)]
MFC: r201052, r201200, r202003, r202010, r202023

Add a driver for the `Fire' JBus to PCIe bridges found in at least
the Sun Fire V215/V245 and Sun Ultra 25/45 machines. This driver also
already includes all the code to support the `Oberon' Uranus to PCIe
bridges found in the Fujitsu-Siemens based Mx000 machines but due to
lack of access to such a system for testing, probing of these bridges
is currently disabled.
Unfortunately, the event queue mechanism of these bridges for MSIs/
MSI-Xs matches our current MD and MI interrupt frameworks like square
pegs fit into round holes so for now we are generous and use one event
queue per MSI, which limits us to 35 MSIs/MSI-Xs per Host-PCIe-bridge
(we use one event queue for the PCIe error messages). This seems
tolerable as long as most devices just use one MSI/MSI-X anyway.
Adding knowledge about MSIs/MSI-Xs to the MD interrupt code should
allow us to decouple the 1:1 mapping at the cost of no longer being
able to bind MSIs/MSI-Xs to specific CPUs as we currently have no
reliable way to quiesce a device during the transition of its MSIs/
MSI-Xs to another event queue. This would still require the problem
of interrupt storms generated by devices which have no one-shot
behavior or can't/don't mask interrupts while the filter/handler is
executed (like the older PCIe NICs supported by bge(4)) to be solved
though.

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

14 years agoMFC: r202159
brueffer [Fri, 15 Jan 2010 19:53:36 +0000 (19:53 +0000)]
MFC: r202159

Remove useless .TE groff macro.

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

14 years agoMFC: r201836
brueffer [Fri, 15 Jan 2010 19:42:09 +0000 (19:42 +0000)]
MFC: r201836

Remove unnecessary quoting and markup, add missing punctuation.

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

14 years agoMFC: r202006
marius [Fri, 15 Jan 2010 19:12:33 +0000 (19:12 +0000)]
MFC: r202006

Add epic(4), a driver for the front panel LEDs in Sun Fire V215/V245.
It's named after the driver doing the same job in OpenSolaris.

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

14 years agoMFC: r201932
marius [Fri, 15 Jan 2010 19:06:33 +0000 (19:06 +0000)]
MFC: r201932

- Add code allowing a network device to only be open and closed once
  by keeping it opened after the first open and closing it via the
  cleanup handler when NETIF_OPEN_CLOSE_ONCE is defined in order to
  avoid the open-close-dance on every file access which with firmware
  that for example performs an auto-negotiation on every open causes
  netbooting to take horribly long. Basically the behavior with this
  knob enabled resembles the one employed between r60506 and r177108
  (and for sparc64 also again since r182919) with the addition that
  the network device now is closed eventually before entering the
  kernel and before rebooting. Actually I think this should be the
  desired MI behavior, however the U-Boot loader actually requires
  net_close() to be called after every transaction in order for some
  local shutdown operations to be performed (and which I think thus
  will break on concurrent opens, i.e. when netdev_opens is > 1, like
  the loader does at least for disks when LOADER_GZIP_SUPPORT is
  enabled).
- Use NETIF_OPEN_CLOSE_ONCE to replace the hack, which artificially
  increased netdev_opens for sparc64 in order to keep the network
  device opened forever, as at least some firmware versions require
  the network device to be closed eventually before entering the
  kernel or otherwise will DMA received packets to stale memory.
  The powerpc OFW loader probably wants NETIF_OPEN_CLOSE_ONCE to be
  set as well for the same reasons.

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

14 years agoMFC: r201901
marius [Fri, 15 Jan 2010 16:57:49 +0000 (16:57 +0000)]
MFC: r201901

Remove clause 3 and 4 from TNF licenses (this was the only 4-clause TNF
license FreeBSD had in sys/boot).

Obtained from: NetBSD

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

14 years agoMFC: r201396, r201410
marius [Fri, 15 Jan 2010 16:54:59 +0000 (16:54 +0000)]
MFC: r201396, r201410

- Demapping unused kernel TLB slots has proven to work reliably so move
  the associated debugging under bootverbose.
- Remove freebsd4_sigreturn(); given that FreeBSD 4 didn't supported
  sparc64 this only ever served as a transition aid prior to FreeBSD
  5.0 and is unused by default since COMPAT_FREEBSD4 was removed from
  GENERIC in r143072 nearly 5 years ago.

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

14 years agoMFC: r201395
marius [Fri, 15 Jan 2010 16:46:03 +0000 (16:46 +0000)]
MFC: r201395

- Preserve the PROM IOMMU in order to allow OFW drivers to continue to
  work.
- Sanity check the parameters passed to the implementations of the
  pcib_{read,write}_config() methods. Using illegal values can cause
  no real harm but it doesn't hurt to avoid unnecessary data error
  traps requiring to flush and re-enable the level 1 caches.

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

14 years agoMFC: r201199
marius [Fri, 15 Jan 2010 16:42:39 +0000 (16:42 +0000)]
MFC: r201199

- Prefer i and j over i and n for temporary integer variables.
- Wrap/shorten too long lines.
- Remove a redundant variable and an unnecessary cast in schizo(4).

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

14 years agoMFC: r201009
marius [Fri, 15 Jan 2010 16:29:40 +0000 (16:29 +0000)]
MFC: r201009

Remove clause 3 from Izumi Tsutsui's licenses.

Obtained from: NetBSD

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

14 years agoMFC: r201008
marius [Fri, 15 Jan 2010 16:27:57 +0000 (16:27 +0000)]
MFC: r201008

Style changes

Obtained from: NetBSD (mc146818reg.h)

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

14 years agoMFC: r201007
marius [Fri, 15 Jan 2010 16:25:17 +0000 (16:25 +0000)]
MFC: r201007

Correct my e-mail address.

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

14 years agoMFC: r201007
marius [Fri, 15 Jan 2010 16:21:32 +0000 (16:21 +0000)]
MFC: r201007

Add a man page for mk48txx(4).

Requested by: n_hibma
Obtained from: NetBSD (original version)

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

14 years agoMFC: r201005, r201371
marius [Fri, 15 Jan 2010 15:47:31 +0000 (15:47 +0000)]
MFC: r201005, r201371

- Take advantage of bus_{read,write}_*(9).
- Set dow = -1 in mk48txx_gettime() because some drivers (for example
  the NetBSD and OpenBSD mk48txx(4)) don't set it correctly.

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

14 years agoMFC: r201004
marius [Fri, 15 Jan 2010 15:42:14 +0000 (15:42 +0000)]
MFC: r201004

Remove clause 3 and 4 from TNF licenses.

Obtained from: NetBSD

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

14 years agoMFC: r201003
marius [Fri, 15 Jan 2010 15:40:44 +0000 (15:40 +0000)]
MFC: r201003

Style changes

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

14 years ago- Hook up the default implementations of the MSI/MSI-X pcib_if methods
marius [Fri, 15 Jan 2010 15:38:49 +0000 (15:38 +0000)]
- Hook up the default implementations of the MSI/MSI-X pcib_if methods
  so requests may bubble up to a host-PCI bridge driver.
- Distinguish between PCI and PCIe bridges in the device description
  so it's a bit easier to follow what hangs off of what in the dmesg.
  Unfortunately we can't also tell PCI and PCI-X apart based on the
  information provided in the OFW device tree.
- Add quirk handling for the ALi M5249 found in Fire-based machines
  which are used as a PCIe-PCIe bridge there. These are obviously
  subtractive decoding as as they have a PCI-ISA bridge on their
  secondary side (and likewise don't include the ISA I/O range in
  their bridge decode) but don't indicate this via the class code.
  Given that this quirk isn't likely to apply to all ALi M5249 and
  I have no datasheet for these chips so I could implement a check
  using the chip specific bits enabling subtractive decoding this
  quirk handling is added to the MD code rather than the MI one.

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

14 years agoMFC: r200947
marius [Fri, 15 Jan 2010 15:36:12 +0000 (15:36 +0000)]
MFC: r200947

Add missing locking in intr_bind().

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

14 years agoMFC: r200946
marius [Fri, 15 Jan 2010 15:28:57 +0000 (15:28 +0000)]
MFC: r200946

Execute the cleanup handlers before jumping to the kernel just
like the other architectures do.

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

14 years agoMFC: r200945
marius [Fri, 15 Jan 2010 15:27:17 +0000 (15:27 +0000)]
MFC: r200945

- Consistently wrap debugging in NETIF_DEBUG. This basically merges
  NetBSD rev 1.19.
- Make the functions match their prototypes regarding static.

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

14 years agoMFC r200440 to stable/8:
antoine [Fri, 15 Jan 2010 14:24:32 +0000 (14:24 +0000)]
MFC r200440 to stable/8:
  Install firmware(9) examples.

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

14 years agoUpdate to a 26-Nov-2009 release.
ru [Fri, 15 Jan 2010 14:20:01 +0000 (14:20 +0000)]
Update to a 26-Nov-2009 release.

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

14 years agoMFC: revision 201342
nyan [Fri, 15 Jan 2010 12:27:46 +0000 (12:27 +0000)]
MFC: revision 201342

  Reimplement the boot2 for pc98 completely.
  It's based on the newest i386's one and has the advantage of:

   - ELF binary support.
   - UFS2 filesystem support.
   - Many FreeBSD slices support on a disk.

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

14 years agoMFC: r200944
marius [Fri, 15 Jan 2010 12:07:30 +0000 (12:07 +0000)]
MFC: r200944

Revert r183628 as with the current ata(4) ATAPI DMA with AcerLabs
M5229 appears to be once again fixed. If this happens to return
we probably should disable ATAPI DMA in ataacerlabs(4) instead
just like the Linux libATA does.

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

14 years agoMFH r201051:
marck [Fri, 15 Jan 2010 12:02:22 +0000 (12:02 +0000)]
MFH r201051:

  To remove a server, one should use double backslash, and half of them
  are eaten by shell.  Fix this.

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

14 years agoMFC: revision 201339 and 201340
nyan [Fri, 15 Jan 2010 11:26:20 +0000 (11:26 +0000)]
MFC: revision 201339 and 201340

  - Add setting machine type support to the loader.
  - Don't use 15M-16M area on pc98.  It's reserved for some devices.

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

14 years agoMFC r200416:
dougb [Fri, 15 Jan 2010 03:28:46 +0000 (03:28 +0000)]
MFC r200416:
Simplify handling of MTREEFILE relative to DESTDIR

Make the message about a missing MTREEFILE combined with -U
more informative

MFC r200425:
Over time things that used to be files/directories/links can change
to something else. So add code to detect when things don't match and
give the user choices about how to fix it.

If we're using -P and something in the above check needs to be moved
we need to have the directory there for it, so create it at the
beginning and delete empty versions of it at the end.

The case where something used to be a file or link and now is supposed
to be a directory (e.g., /etc/security) is especially dangerous, so
make failure to install a necessary directory in $DESTDIR a fatal error.

MFC r200700:
In the places where find is used that the user may see the results,
first pipe it to sort so that order of processing will be deterministic
and like things will be grouped together.

MFC r200701:
Fix an indentation issue, no functional changes

MFC r200708:
Fix a problem with how mergemaster handles the hard links for /.cshrc
and /.profile. The problem is that install(1) will unlink the old file
before it installs the new one, which means that in the best case we
have to compare the changes for the old file twice.

So, change the logic to first test to see if the link exists, then
install the file. Then if the link was there and we're using -i, just
create the link in /root and be done with it. Otherwise display the
message to the user and give them the option.

Because we are now sorting things before doing the comparison we can
know conclusively that the files in / should be the sources, and the
files in /root will be the targets, so adjust the paths accordingly.

While I'm here, split a too-long error message into two lines and
just return at the end of handling these files instead of setting
the variable that says "do nothing" and then returning at the end
of the function anyway.

MFC r201291:
Add some patches contributed by jhb:
1. Don't prompt the user for "-U but no db" error if we're using -a
2. Add an option to delete stale rc.d files automatically if the user
has DELETE_STALE_RC_FILES in their rc file. Lack of command line option
for this is not an oversight.
3. Add []'s around the terminal $ for the $FreeBSD$ test for -F

For one bug raised by jhb I did a more thorough solution:
There were a lot of things that "snuck in" between the end of the test
for -r and the start of the comparison. One of them is the creation of
the mtree db, as pointed out by jhb. Fix this problem more thoroughly
by moving the end of the test down to where it should/used to be, right
before the comparison. As a result, indent the interloping code to match.

MFC r201292:
Document the DELETE_STALE_RC_FILES option introduced in r201291. This is
an "rc file only" option by design.

While I'm here, update the comments in the example rc file to indicate
which command line options they relate to, and correct the defaults
for a couple of options.

MFC r201293:
It's not necessary to include both Op and Fl for command line options
included in the text, so use only the latter.

Clarify that using -U doesn't make sense in combination with -a

MFC r201323:
If we are using -p it does not make any sense to even create the
MTREENEW file since it will never be used.

MFC r201765:
Update copyright date

Update delete_temproot() to include the error message if it fails,
and clean up the places where it's called.

If there are no files left in temproot when the comparison is done
delete it without prompting. This should make "automated" runs of
mergemaster without -a a little easier.

Document the new behavior in the man page.

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

14 years agoMFC r201368:
dougb [Fri, 15 Jan 2010 03:04:43 +0000 (03:04 +0000)]
MFC r201368:
Update named_flags comment regarding not using it for -u and -c

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

14 years agoMFC r201367, r201370:
dougb [Fri, 15 Jan 2010 03:03:02 +0000 (03:03 +0000)]
MFC r201367, r201370:
Virtualize the location of "the configuration directory" instead of
hard-coding it to be /etc/namedb

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

14 years agoMFC r201626:
dougb [Fri, 15 Jan 2010 02:55:19 +0000 (02:55 +0000)]
MFC r201626:
- Move potentially offensive quotes I committed recently to fortunes-o.
- Reference date.
- Be more clear on context.

MFC r201764:
For the now-infamous Rumsfeld quote:

Change "there're" to "there are" which is consistent with the vast
majority of on line references.

Remove a spurious trailing "

Update the citation text with a suggestion from des.

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

14 years agoMFC r201601:
dougb [Fri, 15 Jan 2010 02:18:07 +0000 (02:18 +0000)]
MFC r201601:
Remove more duplicates
Minor reformatting on a few

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

14 years agoMFC r201769:
yongari [Thu, 14 Jan 2010 22:36:06 +0000 (22:36 +0000)]
MFC r201769:
  Enable ste(4). ste(4) should work on all architectures.

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

14 years agoMFC r200958:
yongari [Thu, 14 Jan 2010 22:33:46 +0000 (22:33 +0000)]
MFC r200958:
  Document newly added loader tunable/sysctl variable
  dev.ste.%d.int_rx_mod.
  While I'm here add .Xr vlan as ste(4) supports long frames.

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

14 years agoMFC r200950,200955,200965-200966,201767-201768
yongari [Thu, 14 Jan 2010 22:26:52 +0000 (22:26 +0000)]
MFC r200950,200955,200965-200966,201767-201768

r200950:
  Implement RX interrupt moderation using one-shot timer interrupt.
  Unlike TX interrupt, ST201 does not provide any mechanism to
  suppress RX interrupts. ste(4) can generate more than 70k RX
  interrupts under heavy RX traffics such that these excessive
  interrupts make system useless to process other useful things.
  Maybe this was the major reason why polling support code was
  introduced to ste(4).
  The STE_COUNTDOWN register provides a programmable counter that
  will generate an interrupt upon its expiration. We program
  STE_DMACTL register to use 3.2us clock rate to drive the counter
  register. Whenever ste(4) serves RX interrupt, the driver rearm
  the timer to expire after STE_IM_RX_TIMER_DEFAULT time and disables
  further generation of RX interrupts. This trick seems to work well
  and ste(4) generates less than 8k RX interrupts even under 64 bytes
  UDP torture test. Combined with TX interrupts, the total number of
  interrupts are less than 10k which looks reasonable on heavily
  loaded controller.

  The default RX interrupt moderation time is 150us. Users can change
  the value at any time with dev.ste.%d.int_rx_mod sysctl node.
  Setting it 0 effectively disables the RX interrupt moderation
  feature. Now we have both TX/RX interrupt moderation code so remove
  loop of interrupt handler which resulted in sub-optimal performance
  as well as more register accesses.

r200955:
  Add suspend/resume support as well as basic WOL.
  While I'm here simplify SIOCSIFCAP handler.

r200965:
  Update if_iqdrops in case of RX buffer allocation failure.

r200966:
  ether_ifattach sets if_mtu, remove unnecessary code.

r201767:
  Fix EEPROM access code to return data in host byte order.
  EEPROM on ST201 always returns 16bits data with little endian
  format so conversion to host order is required.
  This change fixes inversed ethernet address on sparc64.

r201768:
  Make sure to store dma address of RX buffer in little endian form.
  This fixes the last bug which keeps ste(4) from working on sparc64.

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

14 years agoMFC r200904-200908,200910-200913
yongari [Thu, 14 Jan 2010 22:15:51 +0000 (22:15 +0000)]
MFC r200904-200908,200910-200913

r200904:
  Don't reinitialize controller if driver is already running. This
  reduces number of link state UP/DOWN changes.

r200905:
  Reimplement controller reset. Datasheet says full reset takes about
  1ms. Since we switched to memory register mapping make sure to
  flush PCI posted write by reading the register again.
  While I'm here add additional delays in loop while driver waits the
  completion of the reset.

r200906:
  Overhaul RX filter programming.
   o Let RX filter handler program promiscuous/multicast filter as
     well as broadcasting.
   o Remove unnecessary register access.
   o Simplify ioctl handler and have set_rxfilter to handle
     IFF_PROMISC and IFF_ALLMULTI change instead of directly
     programming the controller.
   o Removed unnecessary error variable reinitialization in ioctl
     handler.
   o Add IFF_DRV_RUNNING check before programming multicast filter.
   o Configure maximum allowed frame length before enabling MAC.
     Datasheet didn't say the exact ordering of programming sequence
     but it looks more natural to set maximum allowed frame length
     first prior to enabling controller.

r200907:
  Don't report link status if driver is not running.

r200908:
  Report the correct result of mii_mediachg(). Previously it always
  used to return success without respect to the result.
  While I'm here use mii_mediachg() in ste_init_locked which allows
  driver to use currently configured media. ste_ifmedia_upd() is
  supposed to be called whenever user changes current media settings.

r200910:
  Implement hardware MAC statistics counter support. The counters
  could be accessed with dev.ste.0.stats sysctl node.

r200911:
  Remove unused duplicated register definition. It seems the
  definition was made to access STE_ASICCTL register as 16bits but
  ste(4) always access the register as 32bits so it was never used
  before.

r200912:
  Correct STE_COUNTDOWN register offset. The datasheet was wrong.

r200913:
  We don't need to generate DMA complete interrupt for every
  transmitted frames. So request interrupt for every 16th frames. Due
  to the limitation of hardware we can't suppress the interrupt as
  driver should have to check TX status register. The TX status
  register can store up to 31 TX status so driver can't send more
  than 31 frames without reading TX status register.
  With this change controller would not generate TX completion
  interrupt for every frame, so reclaim transmitted frames in
  ste_tick().

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

14 years agoMFC r200854,200856,200865,200873,200875,200877,200884
yongari [Thu, 14 Jan 2010 22:00:33 +0000 (22:00 +0000)]
MFC r200854,200856,200865,200873,200875,200877,200884

r200854:
  Add minimal dealy while ste(4) is waiting for the end of active DMA
  cycle.

r200856:
  Introduce sc_flags member variable and use it to keep track of
  link state and PHY related information.
  Remove ste_link and ste_one_phy variable of softc as it's not used
  anymore.
  While I'm here add IFF_DRV_RUNNING check in ste_start_locked().

r200865:
  Reimplement miibus_statchg method. Don't rely on link state change
  interrupt. If we want to use link state change interrupt ste(4)
  should also implement auto-negotiation complete handler as well as
  various PHY access handling. Now link state change is handled by
  mii(4) polling so it will automatically update link state UP/DOWN
  events which in turn make ste(4) usable with lagg(4).

  r199559 added a private timer to drive watchdog and the timer also
  used to drive MAC statistics update. Because the MAC statistics
  update is called whenever statistics counter reaches near-full, it
  drove watchdog timer too fast such that it caused false watchdog
  timeouts under heavy TX traffic conditions.
  Fix the regression by separating ste_stats_update() from driving
  watchdog timer and introduce a new function ste_tick() that handles
  periodic job such as driving watchdog, MAC statistics update and
  link state check etc.
  While I'm here clear armed watchdog timer in ste_stop().

r200873:
  Instead of relying on hard resetting of controller to stop
  receiving incoming traffics, try harder to gracefully stop active
  DMA cycles and then stop MACs. This is the way what datasheet
  recommends and seems to work reliably. Resetting controller while
  active DMAs are in progress is bad thing as we can't predict how
  DMAs touche allocated TX/RX buffers. This change ensures controller
  stop state before attempting to release allocated TX/RX buffers.
  Also update MAC statistics which could have been updated during the
  wait time of MAC stop.

  While I'm here remove unnecessary controller resets in various
  location. ste(4) no longer relies on hard controller reset to stop
  controller and resetting controller also clears all configured
  settings which makes it hard to implement WOL in near future.
  Now resetting a controller is performed in ste_init_locked().

r200875:
  Prefer memory space register mapping over io space. If memory space
  mapping fails fall back to old io space mapping.
  While I'm here use PCIR_BAR macro.

r200877:
  Prefer bus_write_{1,2,4}/bus_read_{1,2,4} to
  bus_space_write_{1,2,4}/bus_space_read_{1,2,4}.
  Remove unused ste_bhandle and ste_btag in softc.

r200884:
  Reimplement Tx status error handler as recommended by datasheet.
  If ste(4) encounter TX underrun or excessive collisions the TX MAC
  of controller is stalled so driver should wake it up again. TX
  underrun requires increasing TX threshold value to minimize
  further TX underruns. Previously ste(4) used to reset controller
  to recover from TX underrun, excessive collision and reclaiming
  error. However datasheet says only TX underrun requires resetting
  entire controller. So implement ste_restart_tx() that restarts TX
  MAC and do not perform full reset except TX underrun case.
  Now ste(4) uses CSR_READ_2 instead of CSR_READ_1 to read
  STE_TX_STATUS register. This way ste(4) will also read frame id
  value and we can write the same value back to STE_TX_FRAMEID
  register instead of overwriting it to 0. The datasheet was wrong
  in write back of STE_TX_STATUS so add some comments why we do so.
  Also always invoke ste_txeoc() after ste_txeof() in ste_poll as
  without reading TX status register can stall TX MAC.

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

14 years agoMFC r200853:
yongari [Thu, 14 Jan 2010 21:45:39 +0000 (21:45 +0000)]
MFC r200853:
  Add bus_dma(9) and endianness support to ste(4).
   o Sorted includes and added missing header files.
   o Added basic endianness support. In theory ste(4) should work on
     any architectures.
   o Remove the use of contigmalloc(9), contigfree(9) and vtophys(9).
   o Added 8 byte alignment limitation of TX/RX descriptor.
   o Added 1 byte alignment requirement for TX/RX buffers.
   o ste(4) controllers does not support DAC. Limit DMA address space
     to be within 32bit address.
   o Added spare DMA map to gracefully recover from DMA map failure.
   o Removed dead code for checking STE_RXSTAT_DMADONE bit. The bit
     was already checked in each iteration of loop so it can't be true.
   o Added second argument count to ste_rxeof(). It is used to limit
     number of iterations done in RX handler. ATM polling is the only
     consumer.
   o Removed ste_rxeoc() which was added to address RX stuck issue
     (cvs rev 1.66). Unlike TX descriptors, ST201 supports chaining
     descriptors to form a ring for RX descriptors. If RX descriptor
     chaining is not supported it's possible for controller to stop
     receiving incoming frames once controller pass the end of RX
     descriptor which in turn requires driver post new RX
     descriptors to receive more frames. For TX descriptors which
     does not support chaning, we exactly do manual chaining in
     driver by concatenating new descriptors to the end of previous
     TX chain.
     Maybe the workaround was borrowed from other drivers that does
     not support RX descriptor chaining, which is not valid for ST201
     controllers. I still have no idea how this address RX stuck
     issue and I can't reproduce the RX stuck issue on DFE-550TX
     controller.
   o Removed hw.ste_rxsyncs sysctl as the workaround was removed.
   o TX/RX side bus_dmamap_load_mbuf_sg(9) support.
   o Reimplemented optimized ste_encap().
   o Simplified TX logic of ste_start_locked().
   o Added comments for TFD/RFD requirements.
   o Increased number of RX descriptors to 128 from 64. 128 gave much
     better performance than 64 under high network loads.

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

14 years agoMFC: r202120:
gallatin [Thu, 14 Jan 2010 21:30:06 +0000 (21:30 +0000)]
MFC: r202120:
 Update mxge(4) firmware to 1.4.48b (latest available) from Myricom.

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

14 years agoMFC r202121:
gallatin [Thu, 14 Jan 2010 21:10:36 +0000 (21:10 +0000)]
MFC r202121:
 Use better default RSS hash (src + dst, rather than just src port)

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

14 years agoMFC 202119: Fix reporting of 10G Twinax media
gallatin [Thu, 14 Jan 2010 20:59:02 +0000 (20:59 +0000)]
MFC 202119: Fix reporting of 10G Twinax media

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

14 years agoMFC r200798,200801,200803-200804,200808,200810
yongari [Thu, 14 Jan 2010 20:47:49 +0000 (20:47 +0000)]
MFC r200798,200801,200803-200804,200808,200810
r200798:
  Use ANSI function definations.

r200801:
   o Remove unnecessary return statement.
   o Remove register keyword.

r200803:
  s/u_intXX_t/uintXX_t/g

r200804:
  Remove trailing white spaces.

r200808:
  style(9)

r200810:
  Sort function prototyes.

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

14 years agoPartial merge r199559:
yongari [Thu, 14 Jan 2010 20:38:40 +0000 (20:38 +0000)]
Partial merge r199559:
  - Add a private timer to drive the transmit watchdog instead of using
    if_watchdog and if_timer.
  - Fix some issues in detach for sn(4), ste(4), and ti(4).  Primarily this
    means calling ether_ifdetach() before anything else.

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

14 years agoMFC: r201345
rmacklem [Thu, 14 Jan 2010 17:35:07 +0000 (17:35 +0000)]
MFC: r201345
Fix the experimental NFS client so that it can create Unix
domain sockets on an NFSv4 mount point. It was generating
incorrect XDR in the request for this case.

Tested by: infofarmer

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

14 years agoMFC: r200938
marius [Wed, 13 Jan 2010 21:23:27 +0000 (21:23 +0000)]
MFC: r200938

- Don't check for a valid interrupt controller on every interrupt
  in intr_execute_handlers(). If we managed to get here without an
  associated interrupt controller we have way bigger problems.
  While at it predict stray vector interrupts as false as they are
  rather unlikely.
- Don't blindly call the clear function of an interrupt controller
  when adding a handler in inthand_add() as interrupt controllers
  like the one driven by upa(4) are auto-clearing and thus provide
  NULL instead.

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

14 years agoMFC: r200926
marius [Wed, 13 Jan 2010 21:21:29 +0000 (21:21 +0000)]
MFC: r200926

Recognize the NS16552 found in PCIe-based sun4u machines.

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

14 years agoMFC: r200925
marius [Wed, 13 Jan 2010 21:19:46 +0000 (21:19 +0000)]
MFC: r200925

- By re-arranging the code in OF_decode_addr() somewhat and accepting
  a bit of a detour we can just iterate through the banks array instead
  of having to calculate every offset. This change is inspired by the
  powerpc version of this function.
- Add support for the JBus to EBus bridges which hang off of nexus(4).

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

14 years agoMFC: r200924
marius [Wed, 13 Jan 2010 21:17:45 +0000 (21:17 +0000)]
MFC: r200924

Style changes.

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