]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC rev 200051:
marcel [Fri, 4 Dec 2009 18:29:59 +0000 (18:29 +0000)]
MFC rev 200051:
Make sure bus space accesses use unorder memory loads and stores.

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

14 years agoMFC r199843:
jh [Fri, 4 Dec 2009 11:26:52 +0000 (11:26 +0000)]
MFC r199843:

Clarify that the value of the fts_info field is different in post-order.

Approved by: trasz (mentor)

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

14 years agoMFC r199529:
jh [Fri, 4 Dec 2009 11:23:37 +0000 (11:23 +0000)]
MFC r199529:

Extend ddb(4) "show mount" command to print active string mount options.
Note that only option names are printed, not values.

Approved by: trasz (mentor)

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

14 years agoMFC: r199988
brueffer [Fri, 4 Dec 2009 07:08:15 +0000 (07:08 +0000)]
MFC: r199988

Add an .Nm for strncat.

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

14 years agoMFC r199565:
yongari [Thu, 3 Dec 2009 18:48:32 +0000 (18:48 +0000)]
MFC r199565:
  Move interface reinitialization down after disabling WOL in resume
  path.

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

14 years agoMFC r199564:
yongari [Thu, 3 Dec 2009 18:42:19 +0000 (18:42 +0000)]
MFC r199564:
  Minimize interface reinitialization by checking IFF_DRV_RUNNING
  flag. This fixes unnecessary interface UP/DOWNs during getting an
  IP address via DHCP.

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

14 years agoDisable SSL renegotiation in order to protect against a serious
cperciva [Thu, 3 Dec 2009 09:18:40 +0000 (09:18 +0000)]
Disable SSL renegotiation in order to protect against a serious
protocol flaw. [09:15]

Correctly handle failures from unsetenv resulting from a corrupt
environment in rtld-elf. [09:16]

Fix permissions in freebsd-update in order to prevent leakage of
sensitive files. [09:17]

Approved by: so (cperciva)
Security: FreeBSD-SA-09:15.ssl
Security: FreeBSD-SA-09:16.rtld
Security: FreeBSD-SA-09:17.freebsd-udpate

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

14 years agoMFC r199066 + 199339:
delphij [Wed, 2 Dec 2009 21:58:00 +0000 (21:58 +0000)]
MFC r199066 + 199339:

Apply a NetBSD fix (revision 1.12) to handle multi-session bzip2 files
as created by pbzip2.

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

14 years agoMFC 199815:
fanf [Wed, 2 Dec 2009 19:28:55 +0000 (19:28 +0000)]
MFC 199815:

Fix performance bugs in factor(6).

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

14 years agoMFC 199813, 199817, 199842, 199867:
fanf [Wed, 2 Dec 2009 15:30:53 +0000 (15:30 +0000)]
MFC 199813, 199817, 199842, 199867:

Update unifdef to latest upstream version.

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

14 years agoMFC r199644:
mav [Wed, 2 Dec 2009 12:26:26 +0000 (12:26 +0000)]
MFC r199644:

Add some missing WDMA/UDMA modes.

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

14 years agoMFC r199822:
mav [Wed, 2 Dec 2009 10:47:11 +0000 (10:47 +0000)]
MFC r199822:
Drop USB mass storage devices support from ata(4). It is out of the build as
long as I remember, and completely superseded by better maintained umass(4).
It's main idea was to optionally avoid CAM dependency for such devices, but
with move ATA to CAM, it is not actual any more.

No objections:  hselasky@, thompsa@, arch@

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

14 years agoMFC r199747, r199799, r199821:
mav [Wed, 2 Dec 2009 10:32:34 +0000 (10:32 +0000)]
MFC r199747, r199799, r199821:
- Extend XPT-SIM transfer settings control API. Now it allows to report to
SATA SIM number of tags supported by each device, implement ATA mode and
SATA revision negotiation for both SATA and PATA SIMs.
- Make ahci(4) and siis(4) to use submitted maximum tag number, when
scheduling requests. It allows to support NCQ on devices with lower tags
count then controller supports.
- Make PMP driver to report attached devices connection speeds.
- Implement ATA mode negotiation between user settings, device and
controller capabilities.
- Improve ATA mode/SATA revision control.

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

14 years agoMFC r199279, r199280, r199281:
mav [Wed, 2 Dec 2009 10:10:37 +0000 (10:10 +0000)]
MFC r199279, r199280, r199281:
- Fix several device freeze counting bugs.
- Remove code that years ago was closing race between request submission
to SIM and device/SIM freeze. That race become impossible after moving from
spl to mutex locking, while this workaround causes some unexpected effects.

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

14 years agoMFC revs 199781,199782,199784,199785,199786:
wollman [Wed, 2 Dec 2009 02:47:29 +0000 (02:47 +0000)]
MFC revs 199781,199782,199784,199785,199786:

  Eliminate dead stores.

  In __mbsconv(), if prec was zero, nconv could have been used
  uninitialized.  Initialize it to a safe value so that there's no
  chance of returning an error if stack garbage happens to be equal to
  (size_t)-1 or (size_t)-2.

  In svc_raw_reply(), don't leave stat uninitialized if the MSG_ACCEPTED
  && SUCCESS case succeeds.  The stack garbage might be zero.

  In clnt_raw_create(), avoid minor race condition initializing the
  file-scope variable clntraw_private.

Found by: Clang static analyzer

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

14 years agoMFC 198339:
fabient [Tue, 1 Dec 2009 23:23:52 +0000 (23:23 +0000)]
MFC 198339:
Fix the NO_PROXY handling.

PR: 139751

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

14 years agoMFC 199763:
fabient [Tue, 1 Dec 2009 23:06:17 +0000 (23:06 +0000)]
MFC 199763:
 - fix a LOR between process lock and pmc thread mutex
 - fix a system deadlock on process exit when the sample buffer
 is full (pmclog_loop blocked in fo_write) and pmcstat exit.

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

14 years agoMFC 198343:
fabient [Tue, 1 Dec 2009 22:59:37 +0000 (22:59 +0000)]
MFC 198343:
Handle the case where there is only one PMC in the system.

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

14 years agoMFC 199579:
jhb [Tue, 1 Dec 2009 22:38:17 +0000 (22:38 +0000)]
MFC 199579:
Always use 64-bit LBAs for disk addresses in zfsboot and gptzfsboot to
fully support booting from large volumes.

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

14 years agoMFC r199626:
netchild [Tue, 1 Dec 2009 12:35:51 +0000 (12:35 +0000)]
MFC r199626:
  Fix minor resource leak in a function.

  Reviewed by:        luigi

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

14 years agoMFC r199016: acpi: remove 'magic' ivar
avg [Tue, 1 Dec 2009 06:11:42 +0000 (06:11 +0000)]
MFC r199016: acpi: remove 'magic' ivar

Note that the ivar itself is kept in the stable branches, only its use is
dropped.

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

14 years agoMFC r199979: Fix local root vulnerability.
cperciva [Tue, 1 Dec 2009 02:59:22 +0000 (02:59 +0000)]
MFC r199979: Fix local root vulnerability.

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

14 years agoMFC: r199739, r199825
brueffer [Mon, 30 Nov 2009 07:54:22 +0000 (07:54 +0000)]
MFC: r199739, r199825

- LSI MegaRAID 9260 works, sort the hardware list while here.
- Add IBM ServeRAID-MR10i to the hardware list.

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

14 years agoMFC: r199748
brueffer [Mon, 30 Nov 2009 07:51:37 +0000 (07:51 +0000)]
MFC: r199748

Grammar and mdoc improvements.

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

14 years agoMFC r199413:
yongari [Sun, 29 Nov 2009 20:19:24 +0000 (20:19 +0000)]
MFC r199413:
  It seems generation of link state change of e1000phy(4) is not
  reliable on some Marvell PHYs. If msk(4) know it still does not
  have established link check whether msk(4) missed the link state
  change by looking into polled link state.

  Reported by: Mel Flynn < mel.flynn+fbsd.current <> mailing.thruhere dot net >,
Gleb Kurtsou <gleb.kurtsou <> gmail dot com >
  Tested by: Gleb Kurtsou <gleb.kurtsou <> gmail dot com >

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

14 years agoMFC r199013:
yongari [Sun, 29 Nov 2009 20:11:38 +0000 (20:11 +0000)]
MFC r199013:
  88E8057(Ultra 2) is now supported.

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

14 years agoMFC r198475:
yongari [Sun, 29 Nov 2009 20:06:57 +0000 (20:06 +0000)]
MFC r198475:
  - Add support for Marvell Yukon 88E8042 device.

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

14 years agoMFC r199012:
yongari [Sun, 29 Nov 2009 19:58:35 +0000 (19:58 +0000)]
MFC r199012:
  Add preliminary Yukon Ultra 2 support(88E8057). The controller
  looks very similar to Yukon EC Ultra.

  Tested by: kalin m ( kalin <> el dot net )

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

14 years agoMFC 198996-198997.
yongari [Sun, 29 Nov 2009 19:54:32 +0000 (19:54 +0000)]
MFC 198996-198997.
r198996:
  Remove unnecessary header file.

r198997:
  It's normal to see Rx FIFO overruns under high network load and
  showing the message creates other side-effects. Remove the Rx
  FIFO overrun message in interrupt handler. msk(4) should recover
  from the FIFO overruns without any user intervention. Users can
  still check the Rx FIFO overrun counter from MAC MIB statistics
  maintained in driver(dev.msk.0.stats.rx.overflows).

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

14 years agoMFC 198814.
yongari [Sun, 29 Nov 2009 19:49:21 +0000 (19:49 +0000)]
MFC 198814.
  Add a check to know whether driver is still running after
  reacquiring driver lock in Rx handler. re(4) drops a driver lock
  before passing received frame to upper stack and reacquire the
  lock. During the time window ioctl calls could be executed and if
  the ioctl was interface down request, driver will stop the
  controller and free allocated mbufs. After that when driver comes
  back to Rx handler again it does not know what was happend so it
  could access free mbufs which in turn cause panic.

  Reported by: Norbert Papke < npapk <> acm dot org >
  Tested by: Norbert Papke < npapk <> acm dot org >

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

14 years agoMFC 198813.
yongari [Sun, 29 Nov 2009 19:46:15 +0000 (19:46 +0000)]
MFC 198813.
  Add BCM5761 PHY id.

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

14 years agoMFC 197627.
yongari [Sun, 29 Nov 2009 19:29:11 +0000 (19:29 +0000)]
MFC 197627.
  Fix multicast handling. All Atheros controllers use big-endian form
  in computing multicast hash.

  PR: kern/139137

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

14 years agoMFC 197600.
yongari [Sun, 29 Nov 2009 19:25:15 +0000 (19:25 +0000)]
MFC 197600.
  For AR8132 fast ethernet controller, do not report 1000baseT
  capability to mii(4). Even though AR8132 uses the same model/
  revision number of F1 gigabit PHY, the PHY has no ability to
  establish 1000baseT link. I have no idea why Atheros use the same
  device/model id for this PHY.
  With this change atphy(4) does not report 1000baseT media
  capability and manual 1000baseT configuration is also disabled
  which is more desirable behavior for 10/100Mbps PHY.

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

14 years agoMFC 197593.
yongari [Sun, 29 Nov 2009 19:22:44 +0000 (19:22 +0000)]
MFC 197593.
  DGE-560SX is now supported.

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

14 years agoMFC 197592.
yongari [Sun, 29 Nov 2009 19:18:22 +0000 (19:18 +0000)]
MFC 197592.
  Add DGE-560SX(Yukon XL) to the supported device list. Many thanks
  to "Eugene Perevyazko <john <> dnepro dot net>" who kindly gave
  remote access to system with DGE-560SX.

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

14 years agoMFC 197591.
yongari [Sun, 29 Nov 2009 19:15:08 +0000 (19:15 +0000)]
MFC 197591.
  Add workaround for Yukon XL which has hardware bug that can't flush
  FIFO.

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

14 years agoMFC 197590.
yongari [Sun, 29 Nov 2009 19:11:03 +0000 (19:11 +0000)]
MFC 197590.
  Add hack to pass controller specific information to phy driver.
  Unlike most other PHYs there is no easy way to know which media
  type the PHY supports on Marvell PHYs. MIIF_HAVEFIBER flags is now
  passed via bus-specific instance variable of a device. While I'm
  here add 88E1112 specific work around to set SIGDET polarity low.
  Many thanks "Eugene Perevyazko <john <> dnepro dot net>" who kindly
  gave remote access to system with DGE-560SX.

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

14 years agoMFC 197589.
yongari [Sun, 29 Nov 2009 19:06:33 +0000 (19:06 +0000)]
MFC 197589.
  Fix MIB statistics clear routine. This should fix alignment errors on sparc64.

  Reported by: Garrett Damore < gdamore <> opensolaris dot org >

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

14 years agoMFC 197588.
yongari [Sun, 29 Nov 2009 19:03:20 +0000 (19:03 +0000)]
MFC 197588.
  Some fiber PHY(88E1112) does not seem to set resolved speed so
  always assume we've got IFM_1000_SX.

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

14 years agoMFC 197587.
yongari [Sun, 29 Nov 2009 18:59:43 +0000 (18:59 +0000)]
MFC 197587.
  Don't encode model id twice.

  Reported by: Kristof Provost <kristof <> sigsegv dot be>

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

14 years agoMFC r197585.
yongari [Sun, 29 Nov 2009 18:51:58 +0000 (18:51 +0000)]
MFC r197585.
  Remove unnecessary device reinitialization.

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

14 years agoMFC r199828:
kib [Sun, 29 Nov 2009 18:03:49 +0000 (18:03 +0000)]
MFC r199828:
Flag controlling origin expansion in DT_FLAGS is DF_ORIGIN, not DF_1_ORIGIN.

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

14 years agoMFC r199226:
nwhitehorn [Sat, 28 Nov 2009 20:02:45 +0000 (20:02 +0000)]
MFC r199226:

Provide a real fix to the too-many-translations problem when booting
from CD on 64-bit hardware to replace existing band-aids. This occurred
when the preloaded mdroot required too many mappings for the static
buffer.

Since we only use the translations buffer once, allocate a dynamic
buffer on the stack. This early in the boot process, the call chain
is quite short and we can be assured of having sufficient stack space.

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

14 years agoMFC r198212,198378,198427,198428,198723,198724,198725,198731:
nwhitehorn [Sat, 28 Nov 2009 19:37:58 +0000 (19:37 +0000)]
MFC r198212,198378,198427,198428,198723,198724,198725,198731:
SMP support for PowerPC G5 systems.

r198724:
Fix a race in casuword() exposed by csup. casuword() non-atomically
read the current value of its argument before atomically replacing it,
which could occasionally return the wrong value on an SMP system. This
resulted in user mutex operations hanging when using threaded applications.

r198723,198725,198731:
Loop on blocked threads when using ULE scheduler, removing an
XXX MP comment.

r198427:
Add some more paranoia to setting HID registers, and update the AIM
clock routines to work better with SMP.

r198378:
Add SMP support on U3-based G5 systems. While here, correct the
64-bit tlbie function to set the CPU to 64-bit mode correctly.

r198212:
Don't assume that physical addresses are identity mapped. This
allows the second processor on G5 systems to start.

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

14 years agoMFC r198400:
nwhitehorn [Sat, 28 Nov 2009 18:36:58 +0000 (18:36 +0000)]
MFC r198400:

Do not map the trap vectors into the kernel's address space. They are
only used in real mode and keeping them mapped only serves to make NULL
a valid address, which results in silent NULL pointer deferences.

Suggested by:   Patrick Kerharo
Obtained from:  projects/ppc64

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

14 years agoMFC r197961,197962:
nwhitehorn [Sat, 28 Nov 2009 18:34:35 +0000 (18:34 +0000)]
MFC r197961,197962:

Fix two typos that caused DSISR and CR not to be preserved across context
switches.

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

14 years agoMFC r199580:
raj [Fri, 27 Nov 2009 13:38:59 +0000 (13:38 +0000)]
MFC r199580:

tsec: Use IFQ_DRV macros for managing interface packet queue.

This lets tsec(4) work with ALTQ.

Submitted by: Marcin Ligenza

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

14 years agoMFC r199584:
netchild [Fri, 27 Nov 2009 10:55:28 +0000 (10:55 +0000)]
MFC r199584:
  Fix minor memory leak in a function.

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

14 years agoMFC r199582:
netchild [Fri, 27 Nov 2009 10:53:46 +0000 (10:53 +0000)]
MFC r199582:
  Fix minor resource leak in a function which was introduced by changing an
  err() to a return in r106254.

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

14 years agoMFC r199260:
attilio [Fri, 27 Nov 2009 02:47:49 +0000 (02:47 +0000)]
MFC r199260:
Add sysctls in ahd(4) in order to keep track of different classes of
errors. So far 3 different classes are present (correctable,
uncorrectable and fatal) but more can be added easilly.

Sponsored by: Sandvine Incorporated

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

14 years agoMFC r199227:
attilio [Fri, 27 Nov 2009 02:45:50 +0000 (02:45 +0000)]
MFC r199227:
Add the possibility for vfs.root.mountfrom tunable to accept a list of
items rather than a single one.
While there fix also a nit in a comment.

Sponsored by: Sandvine Incorporated

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

14 years ago8.0-RELEASE is done, shift stable/8 to -STABLE designation.
kensmith [Fri, 27 Nov 2009 00:21:17 +0000 (00:21 +0000)]
8.0-RELEASE is done, shift stable/8 to -STABLE designation.

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

14 years agoMFC r199534:
raj [Thu, 26 Nov 2009 22:35:26 +0000 (22:35 +0000)]
MFC r199534:

Provide an effective (relocated) address when building modules metadata.

This lets modules loaded dynamically in loader(8) work for U-Boot-based
platforms.

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

14 years agoMore items:
hrs [Thu, 26 Nov 2009 22:09:37 +0000 (22:09 +0000)]
More items:

- U-Boot support library for loader(8) (ARM, PowerPC)
- multiprocessor (SMP) (PowerPC)
- E500 (Book-E) embedded CPU support (PowerPC)
- Freescale PowerQUICCIII MPC85xx system-on-chip support (single-
  and dual-core) (PowerPC)
- Feroceon, Sheeva embedded CPU support
- Marvell Orion (88F5281), Kirkwood (88F6281) and Discovery
  Innovation (MV-78100) systems-on-chip support (ARM)
- DS133x and DS1553 RTC support
- tsec(4) Gigabit Ethernet driver
- mge(4) Gigabit Ethernet driver
- kernel core dump support (PowerPC)
- mini dump support (ARM)
- gdbserver(1) support for (ARM, PowerPC)

Submitted by: raj

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

14 years agoRemove newbus MPSAFE entry; it was reverted.
hrs [Thu, 26 Nov 2009 21:14:09 +0000 (21:14 +0000)]
Remove newbus MPSAFE entry; it was reverted.

Spotted by: attilio

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

14 years agoAdd entries of Release Notes for 8.0R temporarily.
hrs [Thu, 26 Nov 2009 20:55:44 +0000 (20:55 +0000)]
Add entries of Release Notes for 8.0R temporarily.

Reviewed by: thompsa, linimon, and brd.

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

14 years agoMFC r198491:
jh [Thu, 26 Nov 2009 18:14:03 +0000 (18:14 +0000)]
MFC r198491:

Fix parsing of mount options specified with -o in case an option with
value is preceded by an option without value (for example -o
option1,option2=value). Options must be separated before searching for
'='. Also compare pnextopt explicitly against NULL.

PR: bin/134069
Approved by: trasz (mentor)

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

14 years agoMFC r199043:
mav [Thu, 26 Nov 2009 15:22:42 +0000 (15:22 +0000)]
MFC r199043:
Introduce hw.hptrr.attach_generic loader tunable to deny hptrr driver
attach chips with generic Marvell (non-HighPoint) PCI identification.
These chips are also supported by ata(4). Some vendors, like Supermicro,
are using same chips without providing HPT RAID BIOS.

PR:             kern/120842, kern/136750

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

14 years agoMFC r199043:
mav [Thu, 26 Nov 2009 15:16:03 +0000 (15:16 +0000)]
MFC r199043:
Introduce hw.hptrr.attach_generic loader tunable to deny hptrr driver
attach chips with generic Marvell (non-HighPoint) PCI identification.
These chips are also supported by ata(4). Some vendors, like Supermicro,
are using same chips without providing HPT RAID BIOS.

PR: kern/120842, kern/136750

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

14 years agoMFC r199268, r199269, r199273:
mav [Thu, 26 Nov 2009 15:11:19 +0000 (15:11 +0000)]
MFC r199268, r199269, r199273:
Core2Duo/Core2Quad CPUs are unable to control frequency of single CPU
core, only pair of them. As result, both cores are running on highest
one of requested frequencies, and that is reported by status register.
Such behavior confuses frequency validation logic, as it runs on only
one core, as SMP is not yet launched, making EIST completely unusable.

Disable frequency validation by default, for systems with more then one
CPU, until we can implement it properly. It looks like making more harm
now then benefits. Add 'hw.est.strict' loader tunable to control it.

PR: amd64/140506

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

14 years agoMFC r199645, r199646:
mav [Thu, 26 Nov 2009 14:56:58 +0000 (14:56 +0000)]
MFC r199645, r199646:
Fix Intel PATA UDMA timings setting, affecting write performance.
Binary divider value 10 specified in datasheet is not a hex 0x10.
UDMA2 should be 33/2 instead of 66/4, which is documented as reverved,
UDMA4 should be 66/2 instead of 66/4, which is definitely wrong.
Release over-agressive WDMA0 mode timings as close to spec as chip can.

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

14 years agoMFC r199749:
mav [Thu, 26 Nov 2009 14:50:01 +0000 (14:50 +0000)]
MFC r199749:
Use only lower byte of sectors_intr IDENTIFY word as sector count.
This fixes SET_MULTI error during boot on devices supporting less then
16 sectors per interrupt.

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

14 years agoMFC r199717:
mav [Thu, 26 Nov 2009 08:29:02 +0000 (08:29 +0000)]
MFC r199717:
Do not attach JMicrons with single PCI function. They are not working as
AHCI for some reason, even when declaring so. Let atajmicron configure
them for us and provide PATA support.

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

14 years agoMFC: r198502
marius [Wed, 25 Nov 2009 18:31:34 +0000 (18:31 +0000)]
MFC: r198502

Sync with the other archs and wrap the prototype of in_cksum_skip(9)
in #ifdef _KERNEL.

Submitted by: Ulrich Spoerlein

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

14 years agoMFC r199491:
rpaulo [Wed, 25 Nov 2009 14:54:58 +0000 (14:54 +0000)]
MFC r199491:
 Add WorldB SKU.

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

14 years agoMerge rev. 199181 to 8.x-STABLE:
roam [Wed, 25 Nov 2009 11:23:44 +0000 (11:23 +0000)]
Merge rev. 199181 to 8.x-STABLE:
  Correct the information about the doceng@ team members - Murray Stokely
  stepped down some time ago, about the same time as Giorgos Keramidas
  joined the team.

  PR:           140465
  Submitted by: Denny Lin <dennylin93@cnmc32.hs.ntnu.edu.tw>

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

14 years agoMerge rev. 199180 to 8.x-STABLE, the change to isblank(3):
roam [Wed, 25 Nov 2009 10:52:07 +0000 (10:52 +0000)]
Merge rev. 199180 to 8.x-STABLE, the change to isblank(3):
Fix the grammar as in the PR, and then some.

PR:             140454
Submitted by:   Jeremy Huddleston <jeremyhu@apple.com>

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

14 years agofix UP compilation
kmacy [Wed, 25 Nov 2009 01:55:34 +0000 (01:55 +0000)]
fix UP compilation

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

14 years agoMFC xen pmap updates and eflags fixes
kmacy [Wed, 25 Nov 2009 01:52:36 +0000 (01:52 +0000)]
MFC xen pmap updates and eflags fixes

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

14 years agoremove gratuitous comment
kmacy [Wed, 25 Nov 2009 01:51:07 +0000 (01:51 +0000)]
remove gratuitous comment

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

14 years agoMFC core dump support
kmacy [Wed, 25 Nov 2009 01:50:17 +0000 (01:50 +0000)]
MFC core dump support

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

14 years agoMFC: r199442
marius [Tue, 24 Nov 2009 20:04:31 +0000 (20:04 +0000)]
MFC: r199442

Unroll copying of the registers in {g,s}et_mcontext() and limit it
to the set actually restored by tl0_ret() instead of using the whole
trapframe. Additionally skip %g7 as that register is used as the
userland TLS pointer.

PR: 140523

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

14 years agoMFC r199351:
netchild [Tue, 24 Nov 2009 10:46:17 +0000 (10:46 +0000)]
MFC r199351:
  Fix small resource leak (memory).

  Reviewed by:        gad

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

14 years agoMFC r199247:
mav [Tue, 24 Nov 2009 09:16:47 +0000 (09:16 +0000)]
MFC r199247:
Remove part that HDMI is not implemented. It had different meaning and
confuse users.
Extend BUGS section.
Add some supported chipsets.

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

14 years agoMFC r199532:
mav [Tue, 24 Nov 2009 09:13:15 +0000 (09:13 +0000)]
MFC r199532:
Add ada(4) man page.

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

14 years agoMFC r199535:
mav [Tue, 24 Nov 2009 09:10:43 +0000 (09:10 +0000)]
MFC r199535:
Tune CAM ATA kernel options a bit. Move PMP support from da to scbus and
add ada device option, according to man page.

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

14 years agoMFC r199274, r199284:
marcel [Tue, 24 Nov 2009 03:38:42 +0000 (03:38 +0000)]
MFC r199274, r199284:
Fix an obvious panic by not casting from a pointer that is 4-bytes
alignment to a type that needs 8-byte alignment, and thus causing
misaligned memory references.

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

14 years agoMFC r198733:
marcel [Tue, 24 Nov 2009 03:32:42 +0000 (03:32 +0000)]
MFC r198733:
Reimplement the lazy FP context switching...
...This change fixes the high FP inconsistency panics.

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

14 years agoMFC r198452:
marcel [Tue, 24 Nov 2009 03:28:35 +0000 (03:28 +0000)]
MFC r198452:
Add PRINTF_BUFR_SIZE=128, since we have SMP by default.
While here, fix tabulation.

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

14 years agoMFC r198450:
marcel [Tue, 24 Nov 2009 03:23:40 +0000 (03:23 +0000)]
MFC r198450:
Implement _umtx_op_err() for ia64.

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

14 years agoMFC r198338:
marcel [Tue, 24 Nov 2009 03:17:00 +0000 (03:17 +0000)]
MFC r198338:
o   Align function on a 32-byte boundary so that the core's front-end
    can deliver 2 bundles per cycle to the back-end.
o   Mark syscall stubs with a special unwind ABI tag so that unwind
    libraries know how to unwind.

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

14 years agoMFC r199321:
mav [Mon, 23 Nov 2009 17:54:57 +0000 (17:54 +0000)]
MFC r199321:
Disable PortMultiplier Async Notifications for time of ports reset.
They are useless at that time, but confuse Marvell AHCI.

Add quirk for SiI57XX Port Multipliers, to hide extra port.

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

14 years agoMFC: r199320
brueffer [Mon, 23 Nov 2009 09:44:08 +0000 (09:44 +0000)]
MFC: r199320

Fix grammar.

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

14 years agoMFC r199258:
mav [Mon, 23 Nov 2009 09:28:16 +0000 (09:28 +0000)]
MFC r199258:
Add more codec IDs.

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

14 years agoMFC r197611, r197640:
mav [Mon, 23 Nov 2009 09:26:30 +0000 (09:26 +0000)]
MFC r197611, r197640:
- Add some bits of HDMI/DisplayPort support from later specification updates.
It may be not enough to make them work, but at least should give some
information about these beasts.
- Add Realtek ALC887 codec ID.

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

14 years agoMFC r197018:
mav [Mon, 23 Nov 2009 09:22:38 +0000 (09:22 +0000)]
MFC r197018:
Add NVidia MCP89 HDA controller IDs.

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

14 years agoMFC r197017:
mav [Mon, 23 Nov 2009 09:21:35 +0000 (09:21 +0000)]
MFC r197017:
Add Intel 82801JD (one more ICH10) HDA controller ID.

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

14 years agoMFC r196762:
mav [Mon, 23 Nov 2009 09:20:33 +0000 (09:20 +0000)]
MFC r196762:
Improve HDA controller capabilities logging.

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

14 years agoMFC 199699:
mav [Mon, 23 Nov 2009 09:13:32 +0000 (09:13 +0000)]
MFC 199699:
Refer more recently added Marvell chips.

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

14 years agoMFC: r199317
brueffer [Mon, 23 Nov 2009 09:10:08 +0000 (09:10 +0000)]
MFC: r199317

Fix a memory leak in acl_from_text() in case the conversion succeeded.

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

14 years agoMFC r199259, r199262, r199322:
mav [Mon, 23 Nov 2009 08:56:17 +0000 (08:56 +0000)]
MFC r199259, r199262, r199322:
Change the way in which AHCI+PATA combined controllers, such as JMicron
are handled. Instead of trying to attach two different drivers to
single device, wrapping each call, make one of them (atajmicron)
attach do device solely, but create child device for AHCI driver,
passing it all required resources. It is quite easy, as none of
resources are shared, except IRQ.
Add support for AHCI SATA parts of alike SATA+PATA MArvell controllers.
Add IDs of Marvell 88SX6102, 88SX6111. 88SX6141 controllers.

As result, it:
- makes drivers operation more independent and straitforward,
- allows to use new ahci(4) driver with such devices, adding support for
new features, such as PMP and NCQ, same time keeping legacy PATA support,
- will allow to just drop old ataahci driver, when it's time come.

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

14 years agoMFC r198752:
mav [Mon, 23 Nov 2009 08:46:26 +0000 (08:46 +0000)]
MFC r198752:
Allow SATA1 SiI chips to do full-sized DMA. Specification tells that we may
release DMA constrants even more, but it require some additional handling.

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

14 years agoMFC r198717:
mav [Mon, 23 Nov 2009 08:45:17 +0000 (08:45 +0000)]
MFC r198717:
- Remove most of direct relations between ATA(4) peripherial and controller
levels. It makes logic more transparent and is a mandatory step to wrap
ATA(4) controller level into ATA-native CAM SIM.
- Tune AHCI and SATA2 SiI drivers memory allocation a bit to allow bigger
I/O transaction sizes without additional cost.

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

14 years agoMFC r199179, r199271:
ume [Sun, 22 Nov 2009 17:25:11 +0000 (17:25 +0000)]
MFC r199179, r199271:
- Add unit to the short month names for Japanese locales.
  Without unit, the output of the application like ls(1)
  is complicated.
- Since %b contains unit, %b is not suitable for c_fmt,
  now.  Use %_m instead.

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

14 years agoMFC r199242: Use ncursesw to output the date field of vmstat
ume [Sun, 22 Nov 2009 17:16:37 +0000 (17:16 +0000)]
MFC r199242: Use ncursesw to output the date field of vmstat
display with multi-byte string, correctly.

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

14 years agoMFC r199092: Add gai_strerror() catalog for ja_JP.UTF-8
ume [Sun, 22 Nov 2009 17:08:52 +0000 (17:08 +0000)]
MFC r199092: Add gai_strerror() catalog for ja_JP.UTF-8
and ja_JP.eucJP.

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

14 years agoMFC r199083: Add NLS catalogs support to gai_strerror(3).
ume [Sun, 22 Nov 2009 17:05:46 +0000 (17:05 +0000)]
MFC r199083: Add NLS catalogs support to gai_strerror(3).
Controlled by NLS define.

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

14 years agoMFC r199024:
attilio [Sun, 22 Nov 2009 16:13:16 +0000 (16:13 +0000)]
MFC r199024:
Use a safety belt for cases where corrupted narg can be passed to the
ktrsyscall().

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

14 years agoMFC r199008:
attilio [Sun, 22 Nov 2009 16:11:20 +0000 (16:11 +0000)]
MFC r199008:
Track lockmgr_disown() in the stack.

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

14 years agoMFC r199007:
attilio [Sun, 22 Nov 2009 16:09:27 +0000 (16:09 +0000)]
MFC r199007:
Fix a memory leak.

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