]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC: Allow comment in the middle of the line.
sobomax [Thu, 25 Mar 2010 02:14:04 +0000 (02:14 +0000)]
MFC: Allow comment in the middle of the line.

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

14 years agofix handling of "ipfw set N ..."
luigi [Wed, 24 Mar 2010 23:08:25 +0000 (23:08 +0000)]
fix handling of "ipfw set N ..."

Submitted by: Marcin Wisnicki

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

14 years agotypo...
luigi [Wed, 24 Mar 2010 19:20:49 +0000 (19:20 +0000)]
typo...

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

14 years agomake the module loadable
luigi [Wed, 24 Mar 2010 18:37:58 +0000 (18:37 +0000)]
make the module loadable

Submitted by: Marcin Wisnicki

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

14 years agoMFC r205161:
yongari [Wed, 24 Mar 2010 17:36:56 +0000 (17:36 +0000)]
MFC r205161:
  It seems PCI_OUR_REG_[1-5] registers are not mapped on PCI
  configuration space on Yukon Ultra(88E8056) such that accesses to
  these registers were NOPs which in turn make msk(4) instable on
  this controller. Use indirect access method to access
  PCI_OUR_REG_[1-5] registers. This should fix a long standing
  instability bug which prevented msk(4) working on Yukon Ultra.
  Special thanks to koitsu who gave me remote access to his system.

  PR: kern/114631, kern/116853

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

14 years agoMFC r204975,204978-204979,204981:
yongari [Wed, 24 Mar 2010 17:29:32 +0000 (17:29 +0000)]
MFC r204975,204978-204979,204981:
r204975:
  Enable hardware fixes for BCM5704 B0 as recommended by data sheet.
r204978:
  Set maximum read byte count to 2048 for PCI-X BCM5703/5704 devices.
  Also disable relaxed ordering as recommended by data sheet for
  PCI-X devices. For PCI-X BCM5704, set maximum outstanding split
  transactions to 0 as indicated by data sheet.
  For BCM5703 in PCI-X mode, DMA read watermark should be less than
  or equal to maximum read byte count configuration. Enforce this
  limitation in DMA read watermark configuration.
r204979:
  Fix typo in r204975.
r204981:
  Fix typo in r204978.

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

14 years agoMFC r204545:
yongari [Wed, 24 Mar 2010 17:18:44 +0000 (17:18 +0000)]
MFC r204545:
  Remove taskqueue based interrupt handling. After r204541 msk(4)
  does not generate excessive interrupts any more so we don't need
  to have two copies of interrupt handler.
  While I'm here remove two STAT_PUT_IDX register accesses in LE
  status event handler. After r204539 msk(4) always sync status LEs
  so there is no need to resort to reading STAT_PUT_IDX register to
  know the end of status LE processing. Just trust status LE's
  ownership bit.

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

14 years agoMFC r204543:
yongari [Wed, 24 Mar 2010 17:15:04 +0000 (17:15 +0000)]
MFC r204543:
  Document newly added loader tunable and sysctl variable dev.mskc.%d.int_holdoff

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

14 years agoMFC r204541:
yongari [Wed, 24 Mar 2010 17:11:01 +0000 (17:11 +0000)]
MFC r204541:
  Implement rudimentary interrupt moderation with programmable
  countdown timer register. The timer resolution may vary among
  controllers but the value would be represented by core clock
  cycles. msk(4) will automatically computes number of required clock
  cycles from given micro-seconds unit.
  The default interrupt holdoff timer value is 100us which will
  ensure less than 10k interrupts under load. The timer value can be
  changed with dev.mskc.0.int_holdoff sysctl node.

  Note, the interrupt moderation is shared resource on dual-port
  controllers so you can't use separate interrupt moderation value
  for each port. This means we can't stop interrupt moderation in
  driver stop routine. Also have msk_tick() reclaim transmitted Tx
  buffers as safety belt. With this change there is no need to check
  missing Tx completion interrupt in watchdog handler, so remove it.

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

14 years agoMFC 205602:
luigi [Wed, 24 Mar 2010 15:19:47 +0000 (15:19 +0000)]
MFC 205602:
Honor ip.fw.one_pass when a packet comes out of a pipe without being delayed.
I forgot to handle this case when i did the mtag cleanup three months ago.

I am merging immediately because this bugfix is important for
people using RELENG_8.

PR:           145004

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

14 years agoMFC r200636, list all files needed to build the ipfw module
luigi [Wed, 24 Mar 2010 15:11:10 +0000 (15:11 +0000)]
MFC r200636, list all files needed to build the ipfw module

Submitted by: Alexander Wittig

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

14 years agoMFC r204475:
kib [Wed, 24 Mar 2010 14:56:56 +0000 (14:56 +0000)]
MFC r204475:
Mark msdosfs as mpsafe.

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

14 years agoMFC r204589:
kib [Wed, 24 Mar 2010 14:53:28 +0000 (14:53 +0000)]
MFC r204589:
Do not leak vnode lock when msdosfs mount is updated and specified
device is different from the device used to the original mount.

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

14 years agoMFC r204474:
kib [Wed, 24 Mar 2010 14:50:04 +0000 (14:50 +0000)]
MFC r204474:
Fix the race between dotdot lookup and forced unmount, by using
msdosfs-specific variant of vn_vget_ino(), msdosfs_deget_dotdot().

As was done for UFS, relookup the dotdot denode after the call to
msdosfs_deget_dotdot(), because vnode lock is dropped and directory
might be moved.

MFC r204675:
When returning error from msdosfs_lookup(), make sure that *vpp is NULL.

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

14 years agoMFC r204473:
kib [Wed, 24 Mar 2010 14:45:50 +0000 (14:45 +0000)]
MFC r204473:
Use pm_fatlock to protect per-filesystem rb tree used to allocate fileno
on the large FAT volumes.

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

14 years agoMFC r204472:
kib [Wed, 24 Mar 2010 14:43:19 +0000 (14:43 +0000)]
MFC r204472:
Add assertions for FAT bitmap state.

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

14 years agoMFC r204471:
kib [Wed, 24 Mar 2010 14:37:17 +0000 (14:37 +0000)]
MFC r204471:
Use pm_fatlock to protect fat bitmap.

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

14 years agoMFC r204470:
kib [Wed, 24 Mar 2010 14:25:15 +0000 (14:25 +0000)]
MFC r204470:
Add per-mountpoint lockmgr lock for msdosfs.

MFC r204576:
Only destroy pm_fatlock on error if it was initialized.

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

14 years agoMFC r204469:
kib [Wed, 24 Mar 2010 14:18:10 +0000 (14:18 +0000)]
MFC r204469:
In msdosfs deget(), properly handle the case when the vnode is found in hash.

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

14 years agoMFC r204468:
kib [Wed, 24 Mar 2010 14:15:46 +0000 (14:15 +0000)]
MFC r204468:
In msdosfs_inactive(), reclaim the vnodes both for SLOT_DELETED and
SLOT_EMPTY deName[0] values.

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

14 years agoMFC r204467:
kib [Wed, 24 Mar 2010 14:13:27 +0000 (14:13 +0000)]
MFC r204467:
Remove seemingly unneeded unlock/relock of the dvp in msdosfs_rmdir,
causing LOR.

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

14 years agoMFC r204466:
kib [Wed, 24 Mar 2010 14:10:08 +0000 (14:10 +0000)]
MFC r204466:
Assert that the msdosfs vnode is (e)locked in several places.
Change the check and return on impossible condition into KASSERT().

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

14 years agoMFC r204465:
kib [Wed, 24 Mar 2010 14:08:01 +0000 (14:08 +0000)]
MFC r204465:
Remove unused global statistic about fat cache usage.

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

14 years agoMFC r205329 and r205335:
ed [Wed, 24 Mar 2010 12:14:59 +0000 (12:14 +0000)]
MFC r205329 and r205335:

  Don't add the atrun-line to the crontab when MK_AT is set.

  This prevents spurious calls to sendmail every 5 minutes.

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

14 years agoMFC r205296:
ed [Wed, 24 Mar 2010 12:11:59 +0000 (12:11 +0000)]
MFC r205296:

  Properly progress through the list of IPv6 addresses using in6_addr size.

  Right now if a jail has multiple IPv6 addresses, it will print them
  shifting only 4 bytes at a time. Example:

        2001:4dd0:ff41::b23f:a9
        2001:4dd0:ff41::b23f:aa

  Becomes:

        2001:4dd0:ff41::b23f:a9
        ff41::b23f:a9:2001:4dd0

  By casting to in6_addr, it uses the correct offsets.

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

14 years agoMFC r204957:
kib [Wed, 24 Mar 2010 09:45:17 +0000 (09:45 +0000)]
MFC r204957:
Fall back to wbinvd when region for CLFLUSH is >= 2MB.

MFC r205334 (by avg):
Fix a typo in a comment.

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

14 years agoMFC r205416:
kib [Wed, 24 Mar 2010 09:27:12 +0000 (09:27 +0000)]
MFC r205416:
Correct the type for uio_resid.

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

14 years agoMFC r205398: Do not create *.gmon files for PIE executables on i386.
jilles [Tue, 23 Mar 2010 23:25:17 +0000 (23:25 +0000)]
MFC r205398: Do not create *.gmon files for PIE executables on i386.

Scrt1_c.o was accidentally compiled with -DGCRT (profiling), like gcrt1_c.o.
This problem is i386-specific, the other architectures are OK.

If you have problems with PIE executables such as samba and cups leaving
behind gmon files, rebuild them after installing this change.

PR: ports/143924

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

14 years agoCollapase mergeinfo. No content change.
delphij [Tue, 23 Mar 2010 23:16:35 +0000 (23:16 +0000)]
Collapase mergeinfo.  No content change.

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

14 years agoMFC r204378:
yongari [Tue, 23 Mar 2010 22:22:26 +0000 (22:22 +0000)]
MFC r204378:
  Add TSO support on VLANs. While I'm here remove unnecessary check
  of VLAN hardware checksum offloading. vlan(4) already takes care of
  this.

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

14 years agoMFC r204377:
yongari [Tue, 23 Mar 2010 22:19:27 +0000 (22:19 +0000)]
MFC r204377:
  Add TSO support on VLANs. While I'm here remove unnecessary check
  of VLAN hardware checksum offloading. vlan(4) already takes care of
  this.

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

14 years agoMFC r204376:
yongari [Tue, 23 Mar 2010 22:16:12 +0000 (22:16 +0000)]
MFC r204376:
  Disable TSO on BCM5755M controller until I understand better for
  the issue. I still have no idea why TSO does not work on this
  controller. davidch@ also confirmed there is no known TSO related
  issues for this controller.

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

14 years agoMFC r204373-204374:
yongari [Tue, 23 Mar 2010 22:11:39 +0000 (22:11 +0000)]
MFC r204373-204374:
r204373:
  Move TSO setup to new function bce_tso_setup(). Also remove VLAN
  parsing code in TSO path as the controller requires VLAN hardware
  tagging to make TSO work over VLANs.
  While parsing the mbuf in TSO patch, always perform check for
  writable mbuf as bce(4) have to reset IP length and IP checksum
  field of IP header and make sure to ensure contiguous buffer before
  accessing IP/TCP headers. While I'm here replace magic number 40 to
  more readable sizeof(struct ip) + sizeof(struct tcphdr).

r204374:
  Add TSO support on VLANs. bce(4) controllers require VLAN hardware
  tagging to make TSO work on VLANs so explicitly disable TSO on VLAN
  if VLAN hardware tagging is disabled.

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

14 years agoMFC r204368,204370-204372:
yongari [Tue, 23 Mar 2010 22:04:18 +0000 (22:04 +0000)]
MFC r204368,204370-204372:
r204368:
  Allow disabling VLAN hardware tag stripping with software work
  around. Management firmware(ASF/IPMI/UMP) requires the VLAN
  hardware tag stripping so don't actually disable VLAN hardware tag
  stripping. If VLAN hardware tag stripping was disabled, bce(4)
  manually reconstruct VLAN frame by appending stripped VLAN tag.
  Also remove unnecessary IFCAP_VLAN_MTU message.

r204370:
  Make sure to stop controller first before changing MTU. And if
  interface is not running don't initialize controller.
  While here remove unnecessary update of error variable.

r204371:
  Make toggling TSO, VLAN hardware checksum offloading work. Also fix
  TX/RX checksum handler to set/clear relavant assist bits which was
  used to cause unexpected results.
  With this change, bce(4) can be bridged with other interfaces that
  lack TSO, VLAN checksum offloading.

r204372:
  Prefer m_collapse(9) over m_defrag(9).

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

14 years agoMFC r204363,204365-204367,204539-204540:
yongari [Tue, 23 Mar 2010 21:51:31 +0000 (21:51 +0000)]
MFC r204363,204365-204367,204539-204540:
r204363:
  Optimize inserting LE for TX checksum computation. Controller does
  not require checksum LE configuration if checksum start and write
  position is the same as before. So keep track last checksum start
  and write position and insert new LE whenever the position is
  changed. This reduces number of LEs used in TX path as well as
  slightly enhance TX performance.

r204365:
  Don't hardcod register offset to set PCIe max read request size.
  The register offset is not valid on 88E8072 controller. Also don't
  blindly increase max read request size to 4096, instead, use 2048
  which seems to be more sane value and only change the value if the
  hardware default size(512) was used on that register.
  For PCIX controllers, use system defined constant rather than using
  magic value.
  While I'm here stop showing negotiated link width.

r204366:
  Allocate single MSI message. msk(4) used to allocate 2 MSI messages
  for controllers like 88E8053 which reports two MSI messages.
  Because we don't get anything useful things with 2 MSI messages,
  allocating 1 MSI message would be more sane approach.
  While I'm here, enable MSI for dual-port controllers too. Because
  status block is shared for dual-port controllers, I don't think
  msk(4) will encounter problem for using MSI on dual-port
  controllers.

r204367:
  Remove trailing white spaces.

r204539:
  Properly sync status LEs after processing.

r204540:
  Make sure to enable flow-control only if established link is
  full-duplex. Previously msk(4) used to allow flow-control on
  1000baseT half-duplex media. Also GMAC pause is enabled if link
  partner is capable of handling it.
  While I'm here use IFM_OPTIONS instead of using IFM_GMASK to check
  optional flags of link.

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

14 years agoMFC r204361-204362:
yongari [Tue, 23 Mar 2010 21:38:25 +0000 (21:38 +0000)]
MFC r204361-204362:
r204361:
  Reuse the configured LE for VLAN if new LE was created for TSO.
  Only old controllers need to create new LE for TSO. This change
  makes TSO work over VLANs.

r204362:
  Add TSO support on VLANs. Controller requires VLAN hardware tagging
  to make TSO work over VLANs.

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

14 years agoMFC r204228,204230:
yongari [Tue, 23 Mar 2010 19:41:43 +0000 (19:41 +0000)]
MFC r204228,204230:
r204228:
  Add TSO support on VLANs. Also make sure to update TSO capability
  whenever jumbo frame is configured.
  While I'm here remove unnecessary check of VLAN hardware checksum
  offloading. vlan(4) already takes care of this.

r204230:
  Remove Tx mbuf parsing code for VLAN in TSO path. Controller does
  not support TSO over VLAN if VLAN hardware tagging is disabled so
  there is no need to check VLAN here.

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

14 years agoMFC r204225:
yongari [Tue, 23 Mar 2010 19:37:15 +0000 (19:37 +0000)]
MFC r204225:
  Add TSO support on VLANs. jme(4) controllers do not require VLAN
  hardware tagging to make TSO work over VLANs.

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

14 years agoMFC r204155,204219:
yongari [Tue, 23 Mar 2010 19:30:15 +0000 (19:30 +0000)]
MFC r204155,204219:
r204155:
  Increase PCIe maximuim read request size to 2048. Because re(4) uses
  Tx DMA burst size 2048, I beleive PCIe maximum read request size
  also should match to the value of Tx DMA burst size. With this
  change I can get more than 800Mbps for TCP bulk transfers.
  Previously I was not able to get more than 700Mbps. If I enable TSO
  it now shows 927Mbps.

r204219:
  Add TSO on VLANs. Because re(4) has a TSO limitation for jumbo
  frame, make sure to update VLAN capabilities whenever jumbo frame
  is configured.
  While I'm here rearrange interface capabilities configuration. The
  controller requires VLAN hardware tagging to make TSO work on VLANs
  so explicitly check this requirement.

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

14 years agoMFC r204151,204223:
yongari [Tue, 23 Mar 2010 19:16:35 +0000 (19:16 +0000)]
MFC r204151,204223:
r204151:
  Add TSO support on VLAN. Controller requires VLAN hardware tagging
  to make TSO work on VLAN. So if VLAN hardware tagging is disabled
  explicitly clear TSO on VLAN. While I'm here remove duplicated
  VLAN_CAPABILITIES call.

r204223:
  Remove Tx mbuf parsing code for VLAN in TSO path. Controller does
  not support TSO over VLAN if VLAN hardware tagging is disabled so
  there is no need to check VLAN here.
  While I'm here make sure to pullup IP/TCP headers in the first
  buffer.

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

14 years agoMFC r205333: vfs_mount.9: drop cross-reference to a removed manual
avg [Tue, 23 Mar 2010 17:14:50 +0000 (17:14 +0000)]
MFC r205333: vfs_mount.9: drop cross-reference to a removed manual

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

14 years agoMFC r205121:
jh [Tue, 23 Mar 2010 16:45:29 +0000 (16:45 +0000)]
MFC r205121:

Use an unique directory name instead of hardcoded /tmp/.diskless.
A malicious user could create a file named /tmp/.diskless and cause
the script to misbehave.

PR: conf/141258

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

14 years agoMFC of a large number of ipfw and dummynet fixes and enhancements
luigi [Tue, 23 Mar 2010 09:58:59 +0000 (09:58 +0000)]
MFC of a large number of ipfw and dummynet fixes and enhancements
done in CURRENT over the last 4 months.
HEAD and RELENG_8 are almost in sync now for ipfw, dummynet
the pfil hooks and related components.

Among the most noticeable changes:
- r200855 more efficient lookup of skipto rules, and remove O(N)
  blocks from critical sections in the kernel;
- r204591 large restructuring of the dummynet module, with support
  for multiple scheduling algorithms (4 available so far)
See the original commit logs for details.

Changes in the kernel/userland ABI should be harmless because the
kernel is able to understand previous requests from RELENG_8 and
RELENG_7. For this reason, this changeset would be applicable
to RELENG_7 as well, but i am not sure if it is worthwhile.

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

14 years agoMFC r205272
qingli [Mon, 22 Mar 2010 23:33:40 +0000 (23:33 +0000)]
MFC r205272

Need to set the proper flag bit when inserting ARP
entries into the kernel.

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

14 years agoMFC r204156:
yongari [Mon, 22 Mar 2010 23:23:47 +0000 (23:23 +0000)]
MFC r204156:
  Add __FBSDID.

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

14 years agoMFC r203272:
hrs [Mon, 22 Mar 2010 22:07:19 +0000 (22:07 +0000)]
MFC r203272:

- Fix a bug when adding an interface with an invalid MTU sets the
  bridge's MTU if it is the firstly-added one while the addition
  itself fails.

- Allow SIOCSIFMTU only when all members have the same MTU.

- Remove IFT_GIF check when defining the brige MTU by the
  firstly-added interface's one.  The MTU of the gif interface
  has to be the same as the bridge's one.

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

14 years agoMFC of r205475, tzdata2010f:
edwin [Mon, 22 Mar 2010 21:35:54 +0000 (21:35 +0000)]
MFC of r205475, tzdata2010f:

The Australian Antartic Division:
- Macquarie Island will stay on UTC+11 for winter and not switch back from DST.
- Casey station reverted to its normal time of UTC+8 on 5 March 2010.
- Davis station will revert to its normal time of UTC+7 at 10 March 2010
- Mawson station stays on UTC+5.

Syria will start DST on Thursday 1 April 2010 at midnight.

Correct Samao DST start date (26 Sep vs 24 Oct)

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

14 years agoMFC: r205223
jkim [Mon, 22 Mar 2010 20:36:35 +0000 (20:36 +0000)]
MFC: r205223

Fix a long standing regression of readdir(3) in fdescfs(5) introduced
in r1.48.  We were stopping at the first null pointer when multiple file
descriptors were opened and one in the middle was closed.  This restores
traditional behaviour of fdescfs.

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

14 years agoMFC: r205092
jkim [Mon, 22 Mar 2010 19:59:00 +0000 (19:59 +0000)]
MFC: r205092

Tidy up callout for select(2) and read timeout.

- Add a missing callout_drain(9) before the descriptor deallocation.[1]
- Prefer callout_init_mtx(9) over callout_init(9) and let the callout
subsystem handle the mutex for callout function.

PR: kern/144453
Submitted by: Alexander Sack (asack at niksun dot com)[1]

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

14 years agoMFC: r203943
jkim [Mon, 22 Mar 2010 19:50:57 +0000 (19:50 +0000)]
MFC: r203943

Remove COMPILATIONDATE from the default section.  This string is no longer
being substituted since r162063.

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

14 years agomfc r205179: print correctly addresses with an OR block
luigi [Mon, 22 Mar 2010 16:40:10 +0000 (16:40 +0000)]
mfc r205179: print correctly addresses with an OR block

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

14 years agoMFC 204950,205020:
jhb [Mon, 22 Mar 2010 15:52:26 +0000 (15:52 +0000)]
MFC 204950,205020:
Use thr_once() with once_t controls to initialize various thread_key_t
objects used to provide per-thread storage in the RPC code.  Almost all
of these used double-checking with a dedicated mutex (tsd_lock) to do this
before.  However, that is not always safe with more relaxed memory orders.
There were also other bugs, such as one in __rpc_createrr() that caused a
new key to be allocated each time __rpc_createrr() was invoked.

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

14 years agoMFC 204212: Update mxge to support IFCAP_VLAN_HWTSO.
gallatin [Mon, 22 Mar 2010 14:50:08 +0000 (14:50 +0000)]
MFC 204212: Update mxge to support IFCAP_VLAN_HWTSO.

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

14 years agoMFC 205255: Fix 2 bugs in mxge_attach()
gallatin [Mon, 22 Mar 2010 11:18:51 +0000 (11:18 +0000)]
MFC 205255: Fix 2 bugs in mxge_attach()

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

14 years agoMFC r200183 by luigi:
glebius [Mon, 22 Mar 2010 10:11:59 +0000 (10:11 +0000)]
MFC r200183 by luigi:

  restore setting of sin_len (was removed in 1.146 last february) as
  it seems that now it is necessary for 'forward' to work outside lo0.

Approved by: luigi

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

14 years agoMFC r204879:
kib [Mon, 22 Mar 2010 09:29:56 +0000 (09:29 +0000)]
MFC r204879:
Teach procstat(1) to display some information about signal disposition
and pending/blocked status for signals.

MFC r204880:
Add file forgotten in r204879.

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

14 years agoMFC r204211:
nwhitehorn [Sat, 20 Mar 2010 15:28:39 +0000 (15:28 +0000)]
MFC r204211:

Support the extended PLT format used when objects have more than 8192
PLT relocations on PPC32.

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

14 years agoMFC r204297:
nwhitehorn [Sat, 20 Mar 2010 15:27:01 +0000 (15:27 +0000)]
MFC r204297:

Move the OEA64 scratchpage to the end of KVA from the beginning, and set
its PVO to map physical address 0 instead of kernelstart. This fixes a
situation in which a user process could attempt to return this address
via KVM, have it fault while being modified, and then panic the kernel
because (a) it is supposed to map a valid address and (b) it lies in the
no-fault region between VM_MIN_KERNEL_ADDRESS and virtual_avail.

While here, move msgbuf and dpcpu back into regular KVA space for
consistency with other implementations.

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

14 years agoMFC r204296:
nwhitehorn [Sat, 20 Mar 2010 15:23:06 +0000 (15:23 +0000)]
MFC r204296:

Provide an implementation of pmap_dev_direct_mapped() on OEA64. This is
required in order to be able to mmap the running kernel, which is turn
required to avoid fstat returning gibberish.

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

14 years agoMFC r204269:
nwhitehorn [Sat, 20 Mar 2010 15:21:13 +0000 (15:21 +0000)]
MFC r204269:

Use dcbz instead of word stores for page zeroing, providing a factor of
3-4 speedup.

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

14 years agoMFC r204268:
nwhitehorn [Sat, 20 Mar 2010 15:19:57 +0000 (15:19 +0000)]
MFC r204268:

Close a race involving the OEA64 scratchpage. When the scratch page's
physical address is changed, there is a brief window during which its PTE
is invalid. Since moea64_set_scratchpage_pa() does not and cannot hold
the page table lock, it was possible for another CPU to insert a new PTE
into the scratch page's PTEG slot during this interval, corrupting both
mappings.

Solve this by creating a new flag, LPTE_LOCKED, such that
moea64_pte_insert will avoid claiming locked PTEG slots even if they
are invalid. This change also incorporates some additional paranoia
added to solve things I thought might be this bug.

Reported by: linimon

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

14 years agoMFC r204128:
nwhitehorn [Sat, 20 Mar 2010 15:15:54 +0000 (15:15 +0000)]
MFC r204128:

Reduce KVA pressure on OEA64 systems running in bridge mode by mapping
UMA segments at their physical addresses instead of into KVA. This emulates
the direct mapping behavior of OEA32 in an ad-hoc way. To make this work
properly required sharing the entire kernel PMAP with Open Firmware, so
ofw_pmap is transformed into a stub on 64-bit CPUs.

Also implement some more tweaks to get more mileage out of our limited
amount of KVA, principally by extending KVA into segment 16 until the
beginning of the first OFW mapping.

Reported by: linimon

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

14 years agoFix a bug where pages being removed from memory entirely no longer have
nwhitehorn [Sat, 20 Mar 2010 15:05:44 +0000 (15:05 +0000)]
Fix a bug where pages being removed from memory entirely no longer have
PVOs, and so the modified state of the page can no longer be communicated
to the VM layer, causing pages not to be flushed to swap when needed, in
turn causing memory corruption. Also make several correctness adjustments
to I-Cache synchronization and TLB invalidation for 64-bit Book-S CPUs.

Obtained from: projects/ppc64
Discussed with: grehan

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

14 years agoMFC r204903:
nwhitehorn [Sat, 20 Mar 2010 14:55:22 +0000 (14:55 +0000)]
MFC r204903:

Place interrupt handling in a critical section and remove double
counting in incrementing the interrupt nesting level. This fixes a number
of bugs in which the interrupt thread could be preempted by an IPI,
indefinitely delaying acknowledgement of the interrupt to the PIC, causing
interrupt starvation and hangs.

Reported by: linimon
Reviewed by: marcel, jhb

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

14 years agoMFC r204082,204179,204180,204218,204241,204247,204270,204692:
nwhitehorn [Sat, 20 Mar 2010 14:49:44 +0000 (14:49 +0000)]
MFC r204082,204179,204180,204218,204241,204247,204270,204692:

Provide thermal management and monitoring features in smu(4). This allows
fan control and thermal monitoring on SMU-based Apple G5 machines, as well
as an led(4) interface to control the sleep LED.

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

14 years agoMFC r205225:
kib [Fri, 19 Mar 2010 10:33:45 +0000 (10:33 +0000)]
MFC r205225:
Add missing headers. While there, arrange headers alphabetically.

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

14 years agoMFC r205224:
kib [Fri, 19 Mar 2010 10:28:49 +0000 (10:28 +0000)]
MFC r205224:
Add missing headers.

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

14 years agoMFC r204755:
kib [Fri, 19 Mar 2010 10:25:59 +0000 (10:25 +0000)]
MFC r204755:
Update the list of the process flags. Note that the lists of pending
signals for process and its threads are distinct.

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

14 years agoMFC r202717:
yongari [Fri, 19 Mar 2010 00:26:45 +0000 (00:26 +0000)]
MFC r202717:
  - Added a workaround for NC-SI management firmware that would allow
    frames to be accepted while the driver is resetting the hardware.
    This failure is generally observed when broadcast frames are received
    during driver load and will generate "Unable to write CTX memory"
    errors.
  - Small changes to driver flags display.

PR: kern/135836, kern/140684

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

14 years agoMFC r204150:
yongari [Thu, 18 Mar 2010 19:10:03 +0000 (19:10 +0000)]
MFC r204150:
  Add TSO support on VLAN in fconfig(8).

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

14 years agoMFC r204149:
yongari [Thu, 18 Mar 2010 19:04:04 +0000 (19:04 +0000)]
MFC r204149:
  Add TSO support on VLANs. Intentionally separated IFCAP_VLAN_HWTSO
  from IFCAP_VLAN_HWTAGGING. I think some hardwares may be able to
  TSO over VLAN without VLAN hardware tagging.
  Driver changes and userland support will follow.

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

14 years agoMFC r202826-202827,204146
yongari [Thu, 18 Mar 2010 18:58:24 +0000 (18:58 +0000)]
MFC r202826-202827,204146

r202826:
  s/Mhz/MHz/g

  Submitted by: N.J. Mann <njm <> njm dot me dot uk >

r202827:
  Yukon Ultra2 has 125MHz clock.

r204146:
  Correct inversed programming of ethernet hardware address on
  big-endian architecture.

  Submitted by: C. Jayachandran <c.jayachandran at gmail dot com> (initial version)

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

14 years agoMFC r203358,203716:
yongari [Thu, 18 Mar 2010 18:50:20 +0000 (18:50 +0000)]
MFC r203358,203716:

r203358:
  PCI express device status register has W1C feature. Writing 0 has
  no effect. Make sure to clear error bits by writing 1. [1]
  While I'm here use predefined value instead of hardcodig magic
  vlaue.

  Submitted by: msaitoh at NetBSD [1]

r203716:
  Move device specific flag configuration to attach routine.
  The softc obtained in device probe wouldn't be the same one used in
  device attach. Drivers should not assume any values stored in softc
  structure in probe routine will be available for its attach routine.

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

14 years agoMFC r203355:
yongari [Thu, 18 Mar 2010 18:44:08 +0000 (18:44 +0000)]
MFC r203355:
  Add more bit definitions to PCI express device control and device
  status register.

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

14 years agoMFC r202821-202822.
yongari [Thu, 18 Mar 2010 18:35:28 +0000 (18:35 +0000)]
MFC r202821-202822.

r202821:
  Fix a long standing ASF heartbeat sending bug. The initial
  implementation of heartbeat interval was 2 but there was typo which
  caused the heartbeat is sent approximately every 5 seconds. This
  caused unintended controller reset by firmware because firmware
  thought OS was crashed.

  Submitted by: Floris Bos < info <> je-eigen-domein dot nl >
  Tested by: Andrzej Tobola < ato <> iem dot pw dot edu dot pl >

r202822:
  Use new handshake command for BCM5750 or new controllers.

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

14 years agoMFC r203834 and r205197: Make ALTQ work for drbr consumers.
mlaier [Thu, 18 Mar 2010 17:00:44 +0000 (17:00 +0000)]
MFC r203834 and r205197: Make ALTQ work for drbr consumers.

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

14 years agoMFC r205027
raj [Thu, 18 Mar 2010 11:53:32 +0000 (11:53 +0000)]
MFC r205027

Let detailed info about CPU features print on Marvell Sheeva CPU as well.

Provide missing entry in the cpu_classes[].

Reported by: Maks Verver

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

14 years agoMerge r203622 from head:
gavin [Wed, 17 Mar 2010 20:39:21 +0000 (20:39 +0000)]
Merge r203622 from head:

  Add support for a few more Sony-specific ACPI features (default display
  brightness, wired LAN power and bass gain), and update the description of
  one previously unknown feature (display contrast).  While here, expand on
  a comment and remove two defines left over from an old version of the code.

  Also update man page to document the above changes, and correct grammar.

PR: kern/127581

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

14 years agoMerge r203835 from head:
gavin [Wed, 17 Mar 2010 20:27:35 +0000 (20:27 +0000)]
Merge r203835 from head:

  When growing a UFS1 filesystem, we need to initialise all inodes in any new
  cylinder groups that are created.  When the filesystem is first created,
  newfs always initialises the first two blocks of inodes, and then in the
  UFS1 case will also initialise the remaining inode blocks.  The changes in
  growfs.c 1.23 broke the initialisation of all inodes, seemingly based on
  this implementation detail in newfs(8).  The result was that instead of
  initialising all inodes, we would actually end up initialising all but the
  first two blocks of inodes.  If the filesystem was grown into empty
  (all-zeros) space then the resulting filesystem was fine, however when
  grown onto non-zeroed space the filesystem produced would appear to have
  massive corruption on the first fsck after growing.
  A test case for this problem can be found in the PR audit trail.

  Fix this by once again initialising all inodes in the UFS1 case.

PR: bin/115174
Submitted by: "Nate Eldredge"  <nge cs.hmc.edu>
Reviewed by: mjacob

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

14 years agoMerge r203865 from head:
gavin [Wed, 17 Mar 2010 20:16:28 +0000 (20:16 +0000)]
Merge r203865 from head:

  The -newerXB option was being interpreted the same as the -newerXm option
  as a check for F_TIME2_B was missing.  Fix this.

PR: bin/138245
Submitted by: "David E. Cross"  <crossd cs.rpi.edu>

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

14 years agoMFC r205148:
kib [Wed, 17 Mar 2010 09:52:26 +0000 (09:52 +0000)]
MFC r205148:
Make it compile on LP64 arches.

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

14 years agoMFC r205145:
dougb [Wed, 17 Mar 2010 07:26:00 +0000 (07:26 +0000)]
MFC r205145:

Make it more clear in the docs that -a is not compatible with -iFU,
and enforce this in the code. Apparently a lot of users mistakenly
combine -a with these flags and are then mystified that no changes
were made.

While I'm here, fix a trailing space in mergemaster.8

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

14 years agor205170: then -> than
joerg [Tue, 16 Mar 2010 05:13:20 +0000 (05:13 +0000)]
r205170: then -> than

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

14 years agoMFC r205028
raj [Mon, 15 Mar 2010 19:59:16 +0000 (19:59 +0000)]
MFC r205028

 Fix ARM cache handling yet more.

 1) vm_machdep.c: remove the dangling allocations so they do not
    un-necessarily turn off the cache upon consecutive access.

 2) busdma_machdep.c: remove the same amount than shadow mapped.

Reported by: Maks Verver
Submitted by: Mark Tinguely
Reviewed by: Grzegorz Bernacki

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

14 years agoMFC r204764
raj [Mon, 15 Mar 2010 19:51:24 +0000 (19:51 +0000)]
MFC r204764

Provide correct TCLK value for Kirkwood A1 silicon revision.

While there improve SOC ID output accordingly.

Obtained from: Semihalf

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

14 years agoMFC: r204222
marius [Mon, 15 Mar 2010 19:13:36 +0000 (19:13 +0000)]
MFC: r204222

According to the Linux sungem driver, in case of Apple (K2) GMACs
GEM_MIF_CONFIG_MDI0 cannot be trusted when the firmware has powered
down the chip so the internal transceiver has to be hardcoded. This
is also in line with the AppleGMACEthernet driver, which just doesn't
distinguish between internal/external transceiver and MDIO/MDI1
respectively in the first place. Tested by: Andreas Tobler

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

14 years agoMFC: r204144
marius [Mon, 15 Mar 2010 19:04:44 +0000 (19:04 +0000)]
MFC: r204144

Add support for BCM54K2 found in combination with Apple K2 GMAC.

Submitted by:   Andreas Tobler
Obtained from:  OpenBSD

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

14 years agoMFC: r204974, r205002
marius [Mon, 15 Mar 2010 18:32:57 +0000 (18:32 +0000)]
MFC: r204974, r205002

- The OPSZ macro actually only does the right thing for int32 and int64
  operands but not for double and extended double ones. Instead of trying
  to fix the macro just nuke it and unroll the loops in the correct way
  though as extended double operands turn out to be the only special case.
- For FxTO{s,d,q} the source operand is int64 so rs2 has to be re-decoded
  after setting type accordingly as it's generally decoded using the low
  2 bits as the type, which are 0 for these three instructions.
- Similarly, in case of F{s,d,q}TOx the target is int64 so rd has to be
  re-decoded using not only the operand mask appropriate for int64 but
  also the correct register number encoding.
- Use const where appropriate.
- Wrap long lines.

Submitted by: Peter Jeremy (partly)

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

14 years agoMFC: r204235
jkim [Mon, 15 Mar 2010 18:22:19 +0000 (18:22 +0000)]
MFC: r204235

Fix FBIO_ADPINFO ioctl on amd64.

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

14 years agoand wrong place too!
luigi [Mon, 15 Mar 2010 17:54:01 +0000 (17:54 +0000)]
and wrong place too!

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

14 years agowrong name for this file...
luigi [Mon, 15 Mar 2010 17:52:55 +0000 (17:52 +0000)]
wrong name for this file...

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

14 years agoMFC r204872: Pass the correct size to memset().
jh [Mon, 15 Mar 2010 16:39:52 +0000 (16:39 +0000)]
MFC r204872: Pass the correct size to memset().

PR: bin/128094

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

14 years agoMFC r204519:
bruno [Mon, 15 Mar 2010 15:33:32 +0000 (15:33 +0000)]
MFC r204519:
Deliver siginfo when signal is generated by thr_kill(2) (SI_USER with properly
filled si_uid and si_pid).

PR: 141956

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

14 years agoMFC r204410: Include terminated threads in ps's process cpu time field.
jilles [Sun, 14 Mar 2010 13:07:40 +0000 (13:07 +0000)]
MFC r204410: Include terminated threads in ps's process cpu time field.

When a kinfo_proc is filled, first fill_kinfo_proc_only() fills in
ki_runtime using p->p_rux.rux_runtime (all cpu time used by the process
including terminated threads). If information for a specific thread is
requested, fill_kinfo_thread() then overwrites this with the thread's
td->td_runtime (good). If not, fill_kinfo_aggregate() overwrote it with
the sum of all threads' td->td_runtime which does not include terminated
threads.

This affects ps(1)'s TIME field, not its %CPU field nor anything in
top(1).

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

14 years agoMFC 204462,204463,204476: fix multicast hashes
ticso [Sat, 13 Mar 2010 16:37:17 +0000 (16:37 +0000)]
MFC 204462,204463,204476: fix multicast hashes

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

14 years agoMFC r204447:
jh [Fri, 12 Mar 2010 06:56:51 +0000 (06:56 +0000)]
MFC r204447:

In _gettemp(), check that the length of the path doesn't exceed
MAXPATHLEN. Otherwise the path name (or part of it) may not fit to
carrybuf causing a buffer overflow.

PR: bin/140228

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

14 years ago(r205011) The "number" argument is everything but optional.
joerg [Fri, 12 Mar 2010 05:16:24 +0000 (05:16 +0000)]
(r205011) The "number" argument is everything but optional.

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

14 years agoMFC r203760: Improve time precision for grdc(6):
delphij [Fri, 12 Mar 2010 00:51:13 +0000 (00:51 +0000)]
MFC r203760: Improve time precision for grdc(6):

Traditionally, grdc would obtain time through time(3) which in turn gets
only the second part of clock (CLOCK_SECOND), and sleep for 1 second after
each screen refresh.

This approach would have two problems.  First, we are not guaranteed to
be waken up at the beginning of a whole second, which will typically
exhibit as a "lag" on second number.  Second, because we sleep for whole
second, and the refresh process would take some time, the error would
accumulate from time to time, making the lag variable.

Make grdc(6) to use time(3) to get time only at the beginning, and sample
time in CLOCK_REALTIME_FAST granularity after refreshing, and use the
nanosecond part to caculate how much time we want to sleep.

PR: bin/120813

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

14 years agoMFC r203934:
bschmidt [Thu, 11 Mar 2010 17:15:40 +0000 (17:15 +0000)]
MFC r203934:
Fix for the Intel WiFi Link 1000.  The EEPROM image is in the OTPROM block
before the last block, not in the last block itself.

Approved by: rpaulo (mentor)
Obtained from: OpenBSD

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

14 years agoMFC r204213:
bschmidt [Thu, 11 Mar 2010 17:11:07 +0000 (17:11 +0000)]
MFC r204213:
Fix some typos.

Approved by: rpaulo (mentor)

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