]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r211046:
yongari [Mon, 30 Aug 2010 20:59:13 +0000 (20:59 +0000)]
MFC r211046:
  Marvell model number 0x06 is 88E1101 PHY.

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

13 years agoMFC r210905:
yongari [Mon, 30 Aug 2010 20:56:12 +0000 (20:56 +0000)]
MFC r210905:
  Reflect default Tx interrupt moderation timer value change(50ms -> 1ms).

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

13 years agoMFC r210904:
yongari [Mon, 30 Aug 2010 20:49:51 +0000 (20:49 +0000)]
MFC r210904:
  Reduce Tx interrupt moderation timer from 50ms to 1ms. The default
  value resulted in poor performance for UDP packets. With this
  change, UDP bulk transfer performance is more than 940Mbps.

  While I'm here fix a wrong register definition.

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

13 years agoMFC r210665:
delphij [Mon, 30 Aug 2010 18:23:48 +0000 (18:23 +0000)]
MFC r210665:

In rdmsr_safe, use zero extend (by doing a 32-bit movl over
eax to itself) instead of a sign extend.

Discussed with: stas

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

13 years agoMFC: r211823
jkim [Mon, 30 Aug 2010 17:34:59 +0000 (17:34 +0000)]
MFC: r211823

Check opcode for short jump as well.  Some option ROMs do short jumps
(e.g., some NVIDIA video cards) and we were not able to do POST while
resuming because we only honored long jump.

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

13 years agoMFC r211342:
jh [Mon, 30 Aug 2010 14:44:22 +0000 (14:44 +0000)]
MFC r211342:

- Check that strtoul(3) succeeds to convert the entire string in a few
  places.
- In getasciilabel(), set the disk type only when a valid type is given.

PR: bin/86765

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

13 years agoMFC r208752, r209590:
attilio [Mon, 30 Aug 2010 10:30:35 +0000 (10:30 +0000)]
MFC r208752, r209590:
Protect periph drivers list and rearrange things to minimize the chance of
stepping oneself during probing.
Don't blindly decrement a periph probe count.

Sponsored by: Sandvine Incorporated

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

13 years agoMFC r210181: fix typo.
maxim [Mon, 30 Aug 2010 07:11:13 +0000 (07:11 +0000)]
MFC r210181: fix typo.

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

13 years agoMFC r210000: correct path to include file.
maxim [Mon, 30 Aug 2010 07:09:40 +0000 (07:09 +0000)]
MFC r210000: correct path to include file.

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

13 years agoMFC r209972: restore missed flag in the synopsis.
maxim [Mon, 30 Aug 2010 07:06:27 +0000 (07:06 +0000)]
MFC r209972: restore missed flag in the synopsis.

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

13 years agoMFC r209926: fix typo.
maxim [Mon, 30 Aug 2010 07:04:19 +0000 (07:04 +0000)]
MFC r209926: fix typo.

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

13 years agoRecord merge info for r211960.
davidxu [Sun, 29 Aug 2010 08:19:07 +0000 (08:19 +0000)]
Record merge info for r211960.
-This line, and those below, will be ignored--
> Description of fields to fill in above:                     76 columns --|
> PR:            If a GNATS PR is affected by the change.
> Submitted by:  If someone else sent in the change.
> Reviewed by:   If someone else reviewed your modification.
> Approved by:   If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after:     N [day[s]|week[s]|month[s]].  Request a reminder email.
> Security:      Vulnerability reference (one per line) or description.
> Empty fields above will be automatically removed.

_M   libthr

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

13 years agoMFC r211833: Decrease rdlock count only when thread unlocked
davidxu [Sun, 29 Aug 2010 08:15:57 +0000 (08:15 +0000)]
MFC r211833: Decrease rdlock count only when thread unlocked
a reader lock.

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

13 years agoMFC r211335:
kib [Sun, 29 Aug 2010 08:10:34 +0000 (08:10 +0000)]
MFC r211335:
Add convenience defines for hidden and default/exported attributes.

MFC r211741:
Use preferred spelling for the __attribute__.

MFC r211868:
Use private namespace for visibility keyword.

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

13 years agoMFC r211340: Correct the return code from _dns_gethostby*()
ume [Sun, 29 Aug 2010 03:53:17 +0000 (03:53 +0000)]
MFC r211340: Correct the return code from _dns_gethostby*()
to correspond with h_errno.

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

13 years agoRecord mergeinfo for r211276.
ume [Sat, 28 Aug 2010 17:52:53 +0000 (17:52 +0000)]
Record mergeinfo for r211276.

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

13 years agoMFC r211276:
ume [Sat, 28 Aug 2010 17:06:22 +0000 (17:06 +0000)]
MFC r211276:
- When there is no room for returning the result, nss backend
  have to return ERANGE and terminate with NS_RETURN.
- When gethostbyname_r(3) and the friends end with an error,
  set errno to the value nss backend returns, and return errno
  value.

PR: kern/131623

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

13 years agoMFC r211295,211314,211546:
bschmidt [Sat, 28 Aug 2010 07:21:15 +0000 (07:21 +0000)]
MFC r211295,211314,211546:
Introduce IEEE80211_C_RATECTL, drivers which use the ratectl framework
should set this capability. Initialize ni_txrate after txparams have
been setup. Some drivers calculate various things prior to association
based on ni_txrate and rely on it being nonzero.

PR: kern/149185

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

13 years agoMFC r210624 and r210833:
delphij [Sat, 28 Aug 2010 00:48:40 +0000 (00:48 +0000)]
MFC r210624 and r210833:

Improve cputemp(4) driver wrt newer Intel processors, especially
Xeon 5500/5600 series:

 - Utilize IA32_TEMPERATURE_TARGET, a.k.a. Tj(target) in place
   of Tj(max) when a sane value is available, as documented
   in Intel whitepaper "CPU Monitoring With DTS/PECI"; (By sane
   value we mean 70C - 100C for now);
 - Print the probe results when booting verbose;
 - Replace cpu_mask with cpu_stepping;
 - Use CPUID_* macros instead of rolling our own.

Catch known CPUs before using IA32_TEMPERATURE_TARGET.
This way we would have an opportunity to hide the
Tj(target) value doesn't seem right stuff if we know
it's not working there.

Add temperature value for Core2 Duo Extreme Mobile that
I have access to.

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

13 years agoMFC of -r210382 to note that foreground fsck should be run after
mckusick [Sat, 28 Aug 2010 00:30:57 +0000 (00:30 +0000)]
MFC of -r210382 to note that foreground fsck should be run after
a filesystem related panic. Also -r210933 by joel to fix typos
and spelling mistakes.

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

13 years agoMFC of -r210382 to note that foreground fsck should be run after
mckusick [Sat, 28 Aug 2010 00:27:47 +0000 (00:27 +0000)]
MFC of -r210382 to note that foreground fsck should be run after
a filesystem related panic. Also -r210933 and -r211397 by joel
to fix typos and spelling mistakes.

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

13 years agoMFC r211451:
bz [Fri, 27 Aug 2010 21:52:05 +0000 (21:52 +0000)]
MFC r211451:

  When calculating the expected memory size for userspace, also take the
  number of syncache entries into account for the surplus we add to account
  for a possible increase of records in the re-entry window.

  Discussed with: jhb, silby

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

13 years agoMFC 210774,210935:
jhb [Fri, 27 Aug 2010 18:55:24 +0000 (18:55 +0000)]
MFC 210774,210935:
- Tweak the logic to disable CLFLUSH in virtual environments to work around
  problems with flushing the local APIC register range so that it checks
  vm_guest directly.
- Add Xen to the list of virtual vendors.  In the non PV (HVM) case this
  fixes the virtualization detection successfully disabling the CLFLUSH
  instruction.

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

13 years agoMFC 211433:
jhb [Fri, 27 Aug 2010 18:50:12 +0000 (18:50 +0000)]
MFC 211433:
Ensure a minimum "slop" of 10 extra pcb structures when providing a
memory size estimate to userland for pcb list sysctls.  The previous
behavior of a "slop" of n/8 does not work well for small values of n
(e.g. no slop at all if you have less than 8 open UDP connections).

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

13 years agoMFC r206622,207939,208593,208732,209031: mdoc cleanup
uqs [Fri, 27 Aug 2010 10:47:17 +0000 (10:47 +0000)]
MFC r206622,207939,208593,208732,209031: mdoc cleanup

- order prologue by Dd/Dt/Os
- fix prologue
- remove empty lines and other garbage
- uppercase document title

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

13 years agoMFC r211464:
andre [Fri, 27 Aug 2010 10:15:45 +0000 (10:15 +0000)]
MFC r211464:

  If a TCP connection has been idle for one retransmit timeout or more
  it must reset its congestion window back to the initial window.

  RFC3390 has increased the initial window from 1 segment to up to
  4 segments.

  The initial window increase of RFC3390 wasn't reflected into the
  restart window which remained at its original defaults of 4 segments
  for local and 1 segment for all other connections.  Both values are
  controllable through sysctl net.inet.tcp.local_slowstart_flightsize
  and net.inet.tcp.slowstart_flightsize.

  The increase helps TCP's slow start algorithm to open up the congestion
  window much faster.

  Reviewed by: lstewart
  MFC after: 1 week

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

13 years agoMFC r211462:
andre [Fri, 27 Aug 2010 09:36:02 +0000 (09:36 +0000)]
MFC r211462:

  Untangle the net.inet.tcp.log_in_vain and net.inet.tcp.log_debug
  sysctl's and remove any side effects.

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

13 years agoMFC r206615: remove .Pp where not needed
uqs [Fri, 27 Aug 2010 09:35:05 +0000 (09:35 +0000)]
MFC r206615: remove .Pp where not needed

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

13 years agoMFC r205208:
uqs [Fri, 27 Aug 2010 09:33:26 +0000 (09:33 +0000)]
MFC r205208:

- Use `Va' for variables instead of `Dv'.
- Correctly spell negative values.
- Also fixes make manlint.

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

13 years agoMFC r211750:
kib [Fri, 27 Aug 2010 08:05:44 +0000 (08:05 +0000)]
MFC r211750:
Remove extra FreeBSD tag.

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

13 years agoMFC r204111: Fix common misspelling of hierarchy
uqs [Thu, 26 Aug 2010 20:44:12 +0000 (20:44 +0000)]
MFC r204111: Fix common misspelling of hierarchy

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

13 years agoMFC r208887, r209115-209116, r209839-209841, r211345-211347
np [Thu, 26 Aug 2010 19:55:03 +0000 (19:55 +0000)]
MFC r208887, r209115-209116, r209839-209841, r211345-211347

r208887
tunable to control mc5 partition

r209115
make format string a string literal.

r209116
Add knob to get packet timestamps from the hardware.

r209839
Fix bufsize calculation so that cxgbtool can display information for the
last I/O queue too.

r209840
Eliminate ext_intr_task.  The "slow" interrupt handler is already
running on the adapter's task queue.  Just do what the task does
instead of enqueueing it.

r209841
Improved link detection.

r211345
wakeup is required if the adapter lock is released anywhere during
init and not just for the may_sleep case.

r211346
Always reset the XGMAC's XAUI PCS on a link up.

r211347
Fix tx pause quanta and timer calculations.

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

13 years agoMFC r211704:
kib [Thu, 26 Aug 2010 11:25:09 +0000 (11:25 +0000)]
MFC r211704:
Style.

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

13 years agoMFC: r210834
rmacklem [Wed, 25 Aug 2010 22:19:52 +0000 (22:19 +0000)]
MFC: r210834
Add some mutex locking on the nfsnode to the regular NFS client.

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

13 years agoMFC r211455:
mav [Wed, 25 Aug 2010 08:49:21 +0000 (08:49 +0000)]
MFC r211455:
Remove bintime_cmp() function, unused since r200086.

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

13 years agoMFC r210447:
trasz [Tue, 24 Aug 2010 17:47:52 +0000 (17:47 +0000)]
MFC r210447:

Add P_HASTHREADS flag description.

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

13 years agoMFC r210448:
trasz [Tue, 24 Aug 2010 17:46:43 +0000 (17:46 +0000)]
MFC r210448:

Fix alignment for the 'flags' label, and make more room for 'tdev'.

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

13 years agoFor some reason, the new files which got merged from the head branch
edwin [Tue, 24 Aug 2010 07:59:39 +0000 (07:59 +0000)]
For some reason, the new files which got merged from the head branch
didn't get automatically added to the repository.

MFC of r205821 r205827 r205828 r205862 r205872 r205937 r206568
MFC of r208825 r208826 r208827 r208828 r208829 r208943

r205821:
Long awaited update to the calendar system:

- Repeating events which span multiple years (because of -A, -B or
just the three days before the end of the year).
- Support for lunar events (full moon, new moon) and solar events
(equinox and solstice, chinese new year). Because of this, the
options -U (UTC offset) and -l (longitude) are available to
compensate if reality doesn't match the calculated values.

r205828:
Use local names for calendar.dutch

r205862:
Fix DST thingies in calendar.australia

r205872:
Make licenses 3 clause instead of 4 clause

r205937:
Make the dates in the Tasmanian part of calendar.australia properly
variable.

r206568:
Typo in Allerheiligen in calendar.dutch

r208825, r208826, r208827, r208828, r208829, r208943:
Coverity Prevent related fixes.

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

13 years agoMFC of r205821 r205827 r205828 r205862 r205872 r205937 r206568
edwin [Mon, 23 Aug 2010 22:09:25 +0000 (22:09 +0000)]
MFC of r205821 r205827 r205828 r205862 r205872 r205937 r206568
MFC of r208825 r208826 r208827 r208828 r208829 r208943

r205821:
Long awaited update to the calendar system:

- Repeating events which span multiple years (because of -A, -B or
  just the three days before the end of the year).
- Support for lunar events (full moon, new moon) and solar events
  (equinox and solstice, chinese new year). Because of this, the
  options -U (UTC offset) and -l (longitude) are available to
  compensate if reality doesn't match the calculated values.

r205828:
Use local names for calendar.dutch

r205862:
Fix DST thingies in calendar.australia

r205872:
Make licenses 3 clause instead of 4 clause

r205937:
Make the dates in the Tasmanian part of calendar.australia properly
variable.

r206568:
Typo in Allerheiligen in calendar.dutch

r208825, r208826, r208827, r208828, r208829, r208943:
Coverity Prevent related fixes.

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

13 years agoMFC 210936,210946:
jhb [Mon, 23 Aug 2010 20:53:01 +0000 (20:53 +0000)]
MFC 210936,210946:
Ethernet vlan(4) interfaces have valid Ethernet link layer addresses but
use a different interface type (IFT_L2VLAN vs IFT_ETHER).  Treat IFT_L2VLAN
interfaces like IFT_ETHER interfaces when handling link layer addresses.

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

13 years agoMove mergeinfo for sys/cam up to sys.
jhb [Mon, 23 Aug 2010 13:47:20 +0000 (13:47 +0000)]
Move mergeinfo for sys/cam up to sys.

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

13 years agoMFC r205078,208483,211401-211402,211404: mdoc cleanup
uqs [Mon, 23 Aug 2010 11:58:45 +0000 (11:58 +0000)]
MFC r205078,208483,211401-211402,211404: mdoc cleanup

- Fix typo in macro name and macro usage.
- Consistently spell our email addresses <foo@FreeBSD.org>
- Wordsmithing of bsnmpd.1; bump .Dd
- Fix two minor typos.

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

13 years agoMFC r210407: Add a -S switch to override syslogd's pidfile.
brian [Mon, 23 Aug 2010 09:52:04 +0000 (09:52 +0000)]
MFC r210407: Add a -S switch to override syslogd's pidfile.

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

13 years agoMFC: r148701
brueffer [Sun, 22 Aug 2010 20:24:24 +0000 (20:24 +0000)]
MFC: r148701

Fixed a typo.

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

13 years agoMFC: r211355
brueffer [Sun, 22 Aug 2010 20:17:28 +0000 (20:17 +0000)]
MFC: r211355

Fixed a typo and added a comma.

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

13 years agoMFC r211339:
kib [Sun, 22 Aug 2010 14:54:59 +0000 (14:54 +0000)]
MFC r211339:
Add missed dependency.

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

13 years agoMerge r211026 from head:
gavin [Sun, 22 Aug 2010 12:03:31 +0000 (12:03 +0000)]
Merge r211026 from head:
  Add a keymap for the Swiss-German Macbook keyboard.

PR: conf/139997
Submitted by: Andreas Tobler <andreast fgznet.ch>

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

13 years agoMerge r211066 from head:
gavin [Sun, 22 Aug 2010 09:05:08 +0000 (09:05 +0000)]
Merge r211066 from head:
  Add a termcap entry for rxvt-256color.

PR: conf/147726
Submitted by: Sterling (Chip) Camden <sterling camdensoftware.com>

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

13 years agoMFC r211333:
andre [Sun, 22 Aug 2010 09:01:58 +0000 (09:01 +0000)]
MFC r211333:

  Fix the interaction between 'ICMP fragmentation needed' MTU updates,
  path MTU discovery and the tcp_minmss limiter for very small MTU's.

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

13 years agoMFC r211327:
andre [Sun, 22 Aug 2010 08:47:00 +0000 (08:47 +0000)]
MFC r211327:

  Add more logging points for failures in syncache_socket() to
  report when a new socket couldn't be created because one of
  in_pcbinshash(), in6_pcbconnect() or in_pcbconnect() failed.

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

13 years agoFix a mismerge in r211581, MFC of r210427
avg [Sun, 22 Aug 2010 08:18:32 +0000 (08:18 +0000)]
Fix a mismerge in r211581, MFC of r210427

This is a direct commit.

Reported by: many
Pointyhat to: avg

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

13 years agoMFC r209950:
nwhitehorn [Sun, 22 Aug 2010 00:04:24 +0000 (00:04 +0000)]
MFC r209950:

Unify ABI-related bits of the Book-E and AIM machdep routines
(exec_setregs, etc.) in order to simplify the addition of 64-bit support,
and possible future extension of the Book-E code to handle hard floating
point and Altivec.

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

13 years agoMFC r209812:
nwhitehorn [Sat, 21 Aug 2010 22:23:22 +0000 (22:23 +0000)]
MFC r209812:

Replace the existing PowerPC busdma implementation with the one from
amd64 (with slight modifications). This provides support for bounce
buffers, which are required on systems with RAM above 4 GB.

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

13 years agoMFC r211155: sh: Fix heap-based buffer overflow in pathname generation.
jilles [Sat, 21 Aug 2010 20:48:09 +0000 (20:48 +0000)]
MFC r211155: sh: Fix heap-based buffer overflow in pathname generation.

The buffer for generated pathnames could be too small in some cases. It
happened to be always at least PATH_MAX long, so there was never an overflow
if the resulting pathnames would be usable.

This bug may be abused if a script subjects input from an untrusted source
to pathname generation, which a bad idea anyhow. Most shell scripts do not
work on untrusted data. secteam@ says no advisory is necessary.

PR: bin/148733
Reported by: Changming Sun snnn119 at gmail com

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

13 years agoMFC r209963:
nwhitehorn [Sat, 21 Aug 2010 19:31:58 +0000 (19:31 +0000)]
MFC r209963:
Add a missing architecture declaration to the machine specification
for sun4v.

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

13 years agoMFC r210425: dtrace: correctly map sections to addresses in elf object
avg [Sat, 21 Aug 2010 19:02:49 +0000 (19:02 +0000)]
MFC r210425: dtrace: correctly map sections to addresses in elf object
modules (amd64)

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

13 years agoMFC r210424: kgdb: correctly map sections to addresses in elf object
avg [Sat, 21 Aug 2010 18:54:13 +0000 (18:54 +0000)]
MFC r210424: kgdb: correctly map sections to addresses in elf object
modules (amd64)

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

13 years agoMFC r210423: completely ignore zero-sized elf sections in modules of elf
avg [Sat, 21 Aug 2010 18:48:24 +0000 (18:48 +0000)]
MFC r210423: completely ignore zero-sized elf sections in modules of elf
object type (amd64)

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

13 years agoMFC r210245: binutils/ld: fix incorrect placement of __start_SECNAME in
avg [Sat, 21 Aug 2010 18:38:56 +0000 (18:38 +0000)]
MFC r210245: binutils/ld: fix incorrect placement of __start_SECNAME in
some cases

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

13 years agoMFC r210427: zfs arc_memory_throttle: available memory is free + cache
avg [Sat, 21 Aug 2010 18:20:56 +0000 (18:20 +0000)]
MFC r210427: zfs arc_memory_throttle: available memory is free + cache

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

13 years agoMFC r210422: cpufreq: allocate long-lived buffer for handling of sysctl
avg [Sat, 21 Aug 2010 17:48:29 +0000 (17:48 +0000)]
MFC r210422: cpufreq: allocate long-lived buffer for handling of sysctl
requests

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

13 years agoMFC r210454: ichwd: correct range check for timeout value
avg [Sat, 21 Aug 2010 16:40:04 +0000 (16:40 +0000)]
MFC r210454: ichwd: correct range check for timeout value

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

13 years agoMFC r211317:
andre [Sat, 21 Aug 2010 11:10:58 +0000 (11:10 +0000)]
MFC r211317:

  Reset the internal tso flag in tcp_output() on every iteration
  of sendalot.

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

13 years agoMFC r211316:
andre [Sat, 21 Aug 2010 11:01:40 +0000 (11:01 +0000)]
MFC r211316:

  Change the messages of the ICMP bad port bandwidth limiter from
  a kernel printf to a log output with the priority of LOG_NOTICE.

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

13 years agoMFC r211315:
andre [Sat, 21 Aug 2010 10:38:50 +0000 (10:38 +0000)]
MFC r211315:

  Disable TCP inflight limiter by default.

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

13 years agoMFC r210679:
kib [Sat, 21 Aug 2010 08:49:53 +0000 (08:49 +0000)]
MFC r210679:
Report the time left for the sleep on SIGINFO.
Be stricter in the checking of interval specification.

MFC r210696:
Deal with proper format for printing time_t.

MFC r210749:
Simplify argument parser by using sscanf(); simplify usage() by not
refusing to use stdio.
Reduce nesting level in the sleep loop by returning earlier for negative
timeouts.
Limit the maximum timeout to INT_MAX seconds.

MFC r210750:
Document the new argument parser for sleep(1) and SIGINFO behaviour.
Remove higlight for the unportability notice.

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

13 years agoMFC r211115:
bz [Fri, 20 Aug 2010 15:26:09 +0000 (15:26 +0000)]
MFC r211115:

  MFp4 CH180235:

  Add proto spacers to inet6sw like we have for legacy IP. This allows us
  to dynamically pf_proto_register() for INET6 from modules, needed by
  upcoming CARP changes and SeND.
  MC and SCTP could make use of it as well in theory in the future after
  upcoming VIMAGE vnet teardown work.

  Discussed with: will, anchie

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

13 years agoMFC r208951:
jh [Thu, 19 Aug 2010 15:33:43 +0000 (15:33 +0000)]
MFC r208951:

Add a new function devfs_parent_dirent() for resolving devfs parent
directory entry. Use the new function in devfs_fqpn(), devfs_lookupx()
and devfs_vptocnp() instead of manually resolving the parent entry.

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

13 years agosort of MFC: r211495 was supposed to add this script from HEAD, and while
netchild [Thu, 19 Aug 2010 13:24:13 +0000 (13:24 +0000)]
sort of MFC: r211495 was supposed to add this script from HEAD, and while
the merge seems to have been successful, the script does not show up
in releng-8. This is a "svn copy head/.../800.zfs-scrub ." as retrying
the svn merge does not result in the file showing up. This may not be
the best way to fix the problem in svn, but it is the only way I'm aware of
to fix the stable branch (which is IMO more important than to use a potential
best way I'm not aware of).

Relevant commit log for this file (r209195):
  Add a periodic zfs scrub script.

  Features:
   - configurable amount of days between scrubs (default value or per pool)
   - do not scrub directly after pool creation (respects the configured
     number of days between scrubs)
   - do not scrub if a scrub is in progress
   - tells how to see the status of the scrub
   - tells how many days since the last scrub if it skips the scrubbing
   - warns if a non-existent pool is specified explicitely
     (default: no pools specified -> all currently imported pools are
     handled)
   - runs late in the periodic run to not slow down the other periodic daily
     scripts

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

13 years agoMFC
netchild [Thu, 19 Aug 2010 09:00:17 +0000 (09:00 +0000)]
MFC

r209195:
  Add a periodic zfs scrub script.

  Features:
   - configurable amount of days between scrubs (default value or per pool)
   - do not scrub directly after pool creation (respects the configured
     number of days between scrubs)
   - do not scrub if a scrub is in progress
   - tells how to see the status of the scrub
   - tells how many days since the last scrub if it skips the scrubbing
   - warns if a non-existent pool is specified explicitely
     (default: no pools specified -> all currently imported pools are
     handled)
   - runs late in the periodic run to not slow down the other periodic daily
     scripts

r209250:
  - connect the zfs scrub script
  - move the zfs status script into the MK_ZFS conditional to respect
    WITHOUT_ZFS

r209253:
  Add the ZFS periodic daily scripts to the ZFS part. (make delete-old)

Requested by: "J. Hellenthal" <jhell@DataIX.net>
PR: 149271

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

13 years agoMFC r210631:
kib [Thu, 19 Aug 2010 08:50:11 +0000 (08:50 +0000)]
MFC r210631:
Add compat32 shims for opencrypto(4).

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

13 years agoMerge r210571 from head:
gavin [Wed, 18 Aug 2010 21:44:50 +0000 (21:44 +0000)]
Merge r210571 from head:
  Add support for the Corega CG-USBRS232R to uplcom(4)

PR: usb/129173
Submitted by: SHIMAOKA Shunsuke <shimaoka.shunsuke gmail.com>

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

13 years agoMerge r210556 from head:
gavin [Wed, 18 Aug 2010 21:39:42 +0000 (21:39 +0000)]
Merge r210556 from head:
  Support the Pyramid KBS USB LCD under uftdi(4)

PR: usb/129758
Submitted by: joao lima <jlima visionware.pt>

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

13 years agoMerge r210524 from head:
gavin [Wed, 18 Aug 2010 21:17:57 +0000 (21:17 +0000)]
Merge r210524 from head:

  - Support two devices made by West Mountain Radio in uslcom(4) [1]

  - Remove duplicate SILABS CP2102 define from usbdevs

Merge r211022 from head:

  Sync the list of devices supported by uslcom(4) with NetBSD, Linux, OpenBSD
  and BeOS.  The devices supported by uslcom(4) are now in sync with:

  NetBSD  src/sys/dev/usb/uslsa.c 1.11
  OpenBSD src/sys/dev/usb/uslcom.c 1.20
  Linux   source/drivers/usb/serial/cp210x.c from kernel 2.6.35
  BeOS    usb_serial/driver.c 1.32

  Two vendor/product IDs from Linux have not been added to uslcom(4):
    SILABS SAEL - This device has special code in u3g to support it
    SILABS GSM2228 - I suspect this should also be covered by u3g(4).

PR: usb/131912 [1]
Submitted by: Jack Twilley <mathuin gmail.com> [1]

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

13 years agoMerge r211077, r211079 from head:
gavin [Wed, 18 Aug 2010 20:38:47 +0000 (20:38 +0000)]
Merge r211077, r211079 from head:

  Correct two error messages to match the failure they are reporting.

  Correct the login.conf variable name used for obtaining the login prompt.

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

13 years agoMerge 210839 from head:
gavin [Wed, 18 Aug 2010 20:23:55 +0000 (20:23 +0000)]
Merge 210839 from head:

  Do not free sc if attach failed, as it was allocated by the bus
  infrastructure, not us.  This appears to be a leftover from an older
  version of the driver.

Submitted by: avg
Tested by: Anton Shterenlikht <mexas bristol.ac.uk>

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

13 years agoMFC r208818:
mav [Wed, 18 Aug 2010 15:58:26 +0000 (15:58 +0000)]
MFC r208818:
Plug memory leak to silent Coverity. Error is still not really handled.

Found with:   Coverity Prevent(tm)
CID:          4137

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

13 years agoMFC r208817:
mav [Wed, 18 Aug 2010 15:56:09 +0000 (15:56 +0000)]
MFC r208817:
Plug memory leak to silent Coverity. Error is still not really handled.

Found with:   Coverity Prevent(tm)
CID:          4196

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

13 years agoMFC r208816:
mav [Wed, 18 Aug 2010 15:55:20 +0000 (15:55 +0000)]
MFC r208816:
Fix attach errors handling.

Found with:   Coverity Prevent(tm)
CID:          3477

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

13 years agoMFC r208907:
mav [Wed, 18 Aug 2010 15:52:38 +0000 (15:52 +0000)]
MFC r208907:
Disable NCQ and PMP support for VIA VT8251 AHCI. It was reported to be
unreliable under load. Linux does the same.

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

13 years agoMFC r208814:
mav [Wed, 18 Aug 2010 15:51:32 +0000 (15:51 +0000)]
MFC r208814:
Plug memory leak to silent Coverity. Error is still not really handled.

Found with:   Coverity Prevent(tm)
CID:          4130

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

13 years agoMFC r208813:
mav [Wed, 18 Aug 2010 15:49:44 +0000 (15:49 +0000)]
MFC r208813:
Fix attach errors handling.

Found with:   Coverity Prevent(tm)
CID:          3424

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

13 years agoMFC r203920,210755,210809,210827:
uqs [Tue, 17 Aug 2010 16:25:44 +0000 (16:25 +0000)]
MFC r203920,210755,210809,210827:

- WARNS?=6 cleanup
- fix timekeeping for user-supplied value n
- de-obfuscate the timekeeping of now/delay

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

13 years agoMFC r200633:
jh [Tue, 17 Aug 2010 15:07:23 +0000 (15:07 +0000)]
MFC r200633:

Sync getline() with comm(1):

 - Prevent overflowing of the buffer length variable in getline() by
   limiting its maximum value.
 - Exit if reallocf(3) fails in getline(). Failure was silently
   considered as end-of-file.

MFC r204803 by ache:

1) Rewrite input processing to not exit with error on the first EILSEQ found
in the input data but fallback to "binary equal" check instead.

POSIX says: "The input file shall be a text file", nothing more,
so the text file with illegal sequence is valid input.
BTW, GNU sort does not fails on EILSEQ too.

2) Speedup input processing a bit in complex cases like skipping fields,
chars or ignore case.

3) Enforce the implied LINE_MAX limit (from POSIX definition of "text file"
and POSIX uniq(1) description).

MFC r204811 by ache:

Remove vestiges of old %-format which prevents build on amd64

MFC r204876 by ache:

1) Reimplement (differently) unlimited line length restricted in prev.
commit.

2) Honor missing the very last \n (if absent) on output.

MFC r204927 by ache:

Add SIZE_MAX overflow check

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

13 years agoMFC r200442:
jh [Tue, 17 Aug 2010 15:02:33 +0000 (15:02 +0000)]
MFC r200442:

Don't read the newline character to line buffer because lines are passed
to wcscoll(3). Newline characters could cause incorrect results when
comparing lines.

Also, if an input line didn't contain a newline character, it was
omitted from the output. According to my interpretation, SUSv3 requires
that the newline is always printed.

Add regression tests for the cases.

PR: bin/140976

MFC r200604:

- Prevent overflowing of the buffer length variable in getline() by
  limiting its maximum value.
- Exit if reallocf(3) fails in getline(). Failure was silently
  considered as end-of-file.

MFC r204896 by ache:

Rewrite input processing to not exit with error on the first EILSEQ found
in the input data but fallback to "binary comparison" instead.

POSIX says: "The input files shall be text files", nothing more,
so the text file with illegal sequence is valid input.
BTW, GNU sort does not fails on EILSEQ too.

MFC r204928 by ache:

Add SIZE_MAX overflow check

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

13 years agoMFC of 211422, tzdata2010l
edwin [Tue, 17 Aug 2010 12:16:06 +0000 (12:16 +0000)]
MFC of 211422, tzdata2010l

- Fix start times of DST for Egypt.
- clocks were set back one hour at 2010-08-11 00:00:00 local time
  in Gaza and the West Bank.

Obtained from:  ftp://elsie.nci.nih.gov/pub/

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

13 years agoMFC r211301:
bz [Tue, 17 Aug 2010 07:58:10 +0000 (07:58 +0000)]
MFC r211301:

  In rip6_input(), in case of multicast, we might skip the normal processing
  and go to the next iteration early if multicast filtering would decide that
  this socket shall not receive the data.
  Unlock the pcb in that case or we leak the read lock and next time trying
  to get a write lock, would hang forever.

PR: kern/149608
Submitted by: Chris Luke (chrisy flirble.org)

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

13 years agoHoist mergeinfo for sys/dev/e1000 back up to sys/.
jhb [Mon, 16 Aug 2010 20:22:06 +0000 (20:22 +0000)]
Hoist mergeinfo for sys/dev/e1000 back up to sys/.

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

13 years agoMFC r210747:
ae [Mon, 16 Aug 2010 08:51:35 +0000 (08:51 +0000)]
MFC r210747:
  Forward ioctl requests to original geom.

  PR: 148540
Approved by: kib (mentor)

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

13 years agoMFC r210746:
ae [Mon, 16 Aug 2010 08:48:39 +0000 (08:48 +0000)]
MFC r210746:
  Release access for consumers that are opened, but will be destroyed
  indirectly by orphan method.

  PR: 148688

MFC r210792:
  Check that table is not NULL before access, it can be NULL
  for some cases.

Approved by: kib (mentor)

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

13 years agoMFC r210271:
yongari [Sun, 15 Aug 2010 23:56:57 +0000 (23:56 +0000)]
MFC r210271:
  Specify BCE_RX_BUF_ALIGN alignment for RX buffers. All bce(4)
  controllers require RX buffers aligned on BCE_RX_BUF_ALIGN bytes.

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

13 years agoMFC r210263,210267,210269-210270:
yongari [Sun, 15 Aug 2010 23:47:04 +0000 (23:47 +0000)]
MFC r210263,210267,210269-210270:
r210263:
  Do not report current link state if interface is not UP.

r210267:
  Add KASSERT to check number of returned DMA segments.

r210269:
  Use bus_get_dma_tag() to get parent tag. Also use
  BUS_SPACE_MAXSIZE_32BIT to specify sum of all segment lengths.
  Previously it used MAXBSIZE which was wrong.

r210270:
  Specify BUS_DMA_ZERO flag to bus_dmamem_alloc(9) and remove bzero()
  calls. Also add BUS_DMA_COHERENT flag to bus_dmamem_alloc(9) to
  take advantage of efficient synchronization for architectures that
  support that feature.

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

13 years agoMFC r210257,210259-210261:
yongari [Sun, 15 Aug 2010 23:38:49 +0000 (23:38 +0000)]
MFC r210257,210259-210261:
r210257:
  When we didn't find a matching flash device, do not touch flash
  config data. While I'm here, use return code of bce_init_nvram()
  to set error instead of directly setting ENODEV.

r210259:
  Have bce_init_ctx() return error code and make caller check the
  return code. If context was not setup correctly give up
  initialization. While I'm here move variable declarations to the
  beginning of the function.

r210260:
  Don't change current media in bce_stop(). There is no need to do
  this here.

r210261:
  Correctly check the result of media selection. Previously it always
  returned success.

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

13 years agoMFC r207411:
yongari [Sun, 15 Aug 2010 23:30:53 +0000 (23:30 +0000)]
MFC r207411:
  - Enable flow control.
  - Print device details only when verbose boot is enabled.
  - Add debug output for shared memory access.
  - Add debug statistics (checksum offload & VLAN frame counters).
  - Modify TX path to update consumer index for each frame completed
    rather than updating the consumer index only once for a group of
    frames to improve small packet performance.
  - Print driver/firmware pulse messages only when verbose boot
    is enabled.
  - Add debug sysctl to clear statistics.
  - Fix more style(9) violations.

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

13 years agoMFC r207391:
yongari [Sun, 15 Aug 2010 23:26:46 +0000 (23:26 +0000)]
MFC r207391:
  - Pass flow control settings back to bce(4).

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

13 years agoMFC r210244:
yongari [Sun, 15 Aug 2010 23:11:38 +0000 (23:11 +0000)]
MFC r210244:
  Implement WOL. WOL is supported on RTL8139B or newer controllers.

  PR: kern/148013

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

13 years agoMFC r205651:
yongari [Sun, 15 Aug 2010 23:02:41 +0000 (23:02 +0000)]
MFC r205651:
  Use pci_get_max_read_req() and pci_set_max_read_req() to set maximim
  read request size.

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

13 years agoMFC r210083,210152:
yongari [Sun, 15 Aug 2010 22:57:50 +0000 (22:57 +0000)]
MFC r210083,210152:
r210083:
  Remove enabling Data FIFO protection with indirect memory access.
  r165114 added that code and that change ignored the same logic
  committed in r135772. In addition, data FIFO protection should be
  selectively enabled instead of applying to all PCIe devices.
  While I'm here add BCM5785 to devices that do not require this
  fix.

r210152:
  Use Miscellaneous Configuration Register bit definition instead of
  magic number.

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

13 years agoMFC r210011,210013-210015:
yongari [Sun, 15 Aug 2010 22:51:52 +0000 (22:51 +0000)]
MFC r210011,210013-210015:
r210011:
  Make bge_stop_fw() static.
  While I'm here use ANSI function definitions.

r210013:
  style.

r210014:
  Fix error message for jumbo buffer allocation failure.

r210015:
  Prefer PCIR_BAR macro over BGE_PCI_BAR0.

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

13 years agoMFC r209741:
yongari [Sun, 15 Aug 2010 22:44:28 +0000 (22:44 +0000)]
MFC r209741:
  Zero entire status block and add missing bus_dmamap_sync(9).

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