SVNews

NOTE: This service is experimental and subject to change! Use at your own risk!

Year:   Month: - or - Filter committers: - or -
Filter paths:
Include diffs if smaller than lines.

2010 - 09 - 03   (today)
09:34:15 - r212173
( 17 minutes ago)
by phk
Affects:  /head/tools/tools/sysbuild/sysbuild.sh
We need to copy the ports config files before we launch the prefetch
08:07:04 - r212172
(1 hour 44 minutes ago)
by avg
Affects:  /head/sys/dev/acpica/acpi.c
acpi: update stale comments about order of cpu devices probing

These comments should have been updated in r203776 when the order was
changed.

Pointyhat to:   avg
MFC after:      3 days
06:30:11 - r212171
(3 hours 21 minutes ago)
by jh
Affects: 
(7 files)
/stable/8/sys/*
MFC r209256, r209549, r209816, r209844:

- Fix compilation of the subr_unit.c user space test program.
- Use %zu for size_t in a few format strings.
- Correct a comment typo.
- Assert that low and high are >= 0 in new_unrhdr().
03:56:09 - r212170
(5 hours 55 minutes ago)
by grehan
Affects:  /head/sys/powerpc/conf/GENERIC64
/head/sys/powerpc/include/param.h
/head/sys/powerpc/powerpc/mp_machdep.c
- Bump MAXCPU to 4. Tested on a quad G5 with both 32 and 64-bit kernels.
A make buildkernel -j4 uses ~360% CPU.
- Bracket the AP spinup printf with a mutex to avoid garbled output.
- Enable SMP by default on powerpc64.

Reviewed by:    nwhitehorn
03:48:06 - r212169
(6 hours 3 minutes ago)
by imp
Affects:  /head/tools/tools/nanobsd/nanobsd.sh
Allow / in the NANO_DEVICE

PR:             149729
Submitted by:   Thomas Quinot <thomas@cuivre.fr.eu.org>
03:20:34 - r212168
(6 hours 30 minutes ago)
by jmg
Affects:  /head/games/fortune/datfiles/fortunes
fix the move so that it matches what the rest of the internet
says about this game...  This move also makes more sense...

MFC after:      1 week
00:34:45 - r212167
(9 hours 16 minutes ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
/head/sys/dev/sis/if_sisreg.h
Initial WOL support. NS DP8315 was tested but SiS900/SiS7016 was
not tested.
While I'm here, clean up SIOCSIFCAP handler.
2010 - 09 - 02   (yesterday)
22:37:14 - r212166
(11 hours 14 minutes ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
Implement initial device suspend/resume method.
22:26:49 - r212165
(11 hours 24 minutes ago)
by nwhitehorn
Affects:  /head/sys/boot/ofw/libofw/ofw_copy.c
In the case of non-sequential mappings, ofw_mapmem() could ask Open
Firmware to map a memory region with negative length, causing crashes
and Undefined Behavior. Add the appropriate check to make the behavior
defined.
21:52:43 - r212164
(11 hours 58 minutes ago)
by edwin
Affects: 
(2 files)
/stable/8/usr.bin/calendar/calendars/fr_FR.ISO8859-1/calendar.fetes
Add nameday for Monique

PR:             conf/150049
Submitted by:   Thierry Thomas <thierry@pompo.net>
21:48:35 - r212163
(12 hours 2 minutes ago)
by edwin
Affects:  /head/usr.bin/calendar/calendars/fr_FR.ISO8859-1/calendar.fetes
Adding a missing firstname (Monique)

PR:             conf/150049
Submitted by:   Thierry Thomas <thierry@pompo.net>
21:29:50 - r212162
(12 hours 21 minutes ago)
by gavin
Affects:  /head/usr.bin/split/split.1
Correct spelling mistake, int -> into

MFC after:      3 days
20:43:01 - r212161
(13 hours 8 minutes ago)
by yongari
Affects:  /head/share/man/man4/sis.4
Better wording.

Submitted by:   jkim
19:40:28 - r212160
(14 hours 10 minutes ago)
by gibbs
Affects: 
(7 files)
/head/sys/*
Correct bioq_disksort so that bioq_insert_tail() offers barrier semantic.
Add the BIO_ORDERED flag for struct bio and update bio clients to use it.

The barrier semantics of bioq_insert_tail() were broken in two ways:

 o In bioq_disksort(), an added bio could be inserted at the head of
   the queue, even when a barrier was present, if the sort key for
   the new entry was less than that of the last queued barrier bio.

 o The last_offset used to generate the sort key for newly queued bios
   did not stay at the position of the barrier until either the
   barrier was de-queued, or a new barrier (which updates last_offset)
   was queued.  When a barrier is in effect, we know that the disk
   will pass through the barrier position just before the
   "blocked bios" are released, so using the barrier's offset for
   last_offset is the optimal choice.

sys/geom/sched/subr_disk.c:
sys/kern/subr_disk.c:
        o Update last_offset in bioq_insert_tail().

        o Only update last_offset in bioq_remove() if the removed bio is
          at the head of the queue (typically due to a call via
          bioq_takefirst()) and no barrier is active.

        o In bioq_disksort(), if we have a barrier (insert_point is non-NULL),
          set prev to the barrier and cur to it's next element.  Now that
          last_offset is kept at the barrier position, this change isn't
          strictly necessary, but since we have to take a decision branch
          anyway, it does avoid one, no-op, loop iteration in the while
          loop that immediately follows.

        o In bioq_disksort(), bypass the normal sort for bios with the
          BIO_ORDERED attribute and instead insert them into the queue
          with bioq_insert_tail().  bioq_insert_tail() not only gives
          the desired command order during insertion, but also provides
          barrier semantics so that commands disksorted in the future
          cannot pass the just enqueued transaction.

sys/sys/bio.h:
        Add BIO_ORDERED as bit 4 of the bio_flags field in struct bio.

sys/cam/ata/ata_da.c:
sys/cam/scsi/scsi_da.c
        Use an ordered command for SCSI/ATA-NCQ commands issued in
        response to bios with the BIO_ORDERED flag set.

sys/cam/scsi/scsi_da.c
        Use an ordered tag when issuing a synchronize cache command.

        Wrap some lines to 80 columns.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
sys/geom/geom_io.c
        Mark bios with the BIO_FLUSH command as BIO_ORDERED.

Sponsored by:   Spectra Logic Corporation
MFC after:      1 month
18:22:06 - r212159
(15 hours 29 minutes ago)
by yongari
Affects:  /head/share/man/man4/sis.4
Document tunable dev.sis.%unit.manual_pad
While I'm here Xref vlan(4) as sis(4) supports VLAN oversized
frames.
18:12:54 - r212158
(15 hours 38 minutes ago)
by yongari
Affects:  /head/sys/sparc64/conf/GENERIC
Enable sis(4). sis(4) should work on all architectures.
18:10:11 - r212157
(15 hours 41 minutes ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
/head/sys/dev/sis/if_sisreg.h
Unlike most other controllers, NS DP83815/DP83816 controllers seem
to pad with 0xFF when it encounter short frames.  According to RFC
1042 the pad bytes should be 0x00.
Because manual padding consumes extra CPU cycles, introduce a new
tunable which controls the padding behavior. Turning this tunable
on will have driver pad manually but it's disabled by default. Users
can enable software padding by setting the following tunable to
non-zero value.

dev.sis.%d.manual_pad="1"

PR:     kern/35422 (patch not used)
17:51:41 - r212156
(15 hours 59 minutes ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
Fix the last endianness issue on handling station address which
prevented driver from working on big-endian machines. Also rewrite
station address programming to make it work on strict-alignment
architectures. With this change, sis(4) now works on sparc64 and
performance number looks good even though sis(4) have to apply
fixup code to align received frames on 2 bytes boundary on sparc64.
17:43:44 - r212155
(16 hours 7 minutes ago)
by bz
Affects: 
(4 files)
/head/sys/netinet/*
/head/sys/netinet6/*
MFp4 CH=183052 183053 183258:

  In protosw we define pr_protocol as short, while on the wire
  it is an uint8_t.  That way we can have "internal" protocols
  like DIVERT, SEND or gaps for modules (PROTO_SPACER).
  Switch ipproto_{un,}register to accept a short protocol number(*)
  and do an upfront check for valid boundries. With this we
  also consistently report EPROTONOSUPPORT for out of bounds
  protocols, as we did for proto == 0.  This allows a caller
  to not error for this case, which is especially important
  if we want to automatically call these from domain handling.

  (*) the functions have been without any in-tree consumer
  since the initial introducation, so this is considered save.

  Implement ip6proto_{un,}register() similarly to their legacy IP
  counter parts to allow modules to hook up dynamically.

Reviewed by:    philip, will
MFC after:      1 week
17:22:12 - r212154
(16 hours 29 minutes ago)
by jkim
Affects:  /head/sys/dev/fb/vesa.c
Disable video ROM shadowing by default as I originally intended.  I found
a case where video ROM for an IGP is too tightly coupled with system BIOS
to get relocated.
16:23:05 - r212153
(17 hours 28 minutes ago)
by mdf
Affects:  /head/sys/kern/sched_ule.c
Fix UP build.

MFC after:      2 weeks
16:11:12 - r212152
(17 hours 40 minutes ago)
by bz
Affects:  /head/sys/net/if_epair.c
MFp4 CH=183259:

  No reason to use if_free_type() as we don't change our type.
  Just if_free() is fine.

MFC after:      3 days
16:09:46 - r212151
(17 hours 41 minutes ago)
by nwhitehorn
Affects: 
(9 files)
/user/nwhitehorn/ps3/powerpc/*
/user/nwhitehorn/ps3/sys/smp.h
Bring up both threads on Cell in a useful way. This consists of several
changes:
- Provide a new method (based on the one on i386) to provide MD idle
  routines. These can be overridden by the hypervisor module if
  required.
- Introduce a new mechanism to the platform KOBJ to report CPU topology.
- Extend the PS3 hypervisor module to use the above.
- Add IPI support to ps3pic.
16:09:09 - r212150
(17 hours 42 minutes ago)
by bz
Affects: 
(7 files)
/stable/8/sys/*
MFC r211904:

  MFp4 CH=182972:

  Add explicit linkstate UP/DOWN for the epair.  This is needed by carp(4)
  and other things to work.
14:13:43 - r212149
(19 hours 37 minutes ago)
by des
Affects:  /head/sys/dev/iscsi/initiator/iscsi.c
/head/sys/dev/iscsi/initiator/iscsivar.h
Remove the freelist, which simply duplicates some of the zone allocator's
functionality.

Submitted by:   Daniel Braniss <danny@cs.huji.ac.il>
MFC after:      3 weeks
14:05:32 - r212148
(19 hours 45 minutes ago)
by emaste
Affects:  /head/sys/sys/copyright.h
Remove trailing whitespace.
13:34:54 - r212147
(20 hours 16 minutes ago)
by emaste
Affects: 
(7 files)
/stable/8/sys/*
MFC r199972:

  Use switch out (SWO) instead of switch in (SWI) debug log mask in
  csw_out.
12:32:29 - r212146
(21 hours 18 minutes ago)
by mav
Affects:  /head/sys/dev/ata/chipsets/ata-siliconimage.c
Add fix for SiI3114 and SiI3512 chips bug, which caused sending R_ERR in
response to DMA activate FIS under certain circumstances. This is
recommended fix from chip datasheet. If triggered, this bug most likely
cause write command timeout.

MFC after:      2 weeks
11:18:43 - r212145
(22 hours 32 minutes ago)
by mav
Affects:  /head/sys/dev/ata/ata-all.h
/head/sys/dev/ata/ata-lowlevel.c
/head/sys/dev/ata/chipsets/ata-siliconimage.c
SATA1.x SiliconImage controllers on power-on reset TFD Status register into
value 0xff. On hot-plug this value confuses ata_generic_reset() device
presence detection logic. As soon as we already know drive presence from
SATA hard reset, hint ata_generic_reset() to wait for device signature
until success or full timeout.
09:45:06 - r212144
(1 day ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
- Fix a bug where dumptid was not set
- Remove a now unuseful externalization stub
09:41:43 - r212143
(1 day ago)
by attilio
Affects:  /projects/sv/sys/kern/kern_shutdown.c
/projects/sv/sys/sys/conf.h
Make dumppcb and dumptid nomore static and remove an unuseful comment
on the dumping externalization.
09:33:48 - r212142
(1 day ago)
by attilio
Affects: 
(13 files)
/projects/sv/sys/*
Introduce a flag field for the dumpers and use it immediately for the
DIF_NET flag.
This flag is responsible for toggling a netdump and having a correct set
of dumplo in the dumping routines.
07:49:45 - r212141
(1 day 2 hours ago)
by ed
Affects: 
(2 files)
/stable/8/share/man/man9/Makefile
MFC r211633:

  Add missing mlink for insmntque1().
06:49:27 - r212140
(1 day 3 hours ago)
by ume
Affects:  /stable/8/etc/rc.d/network_ipv6
We don't have etc/rc.d/ip6fw anymore.
Since HEAD doesn't have etc/rc.d/network_ipv6,
this commit is directly into RELENG_8.

Spotted by:     takachan__at__running-dog.net
06:07:03 - r212139
(1 day 3 hours ago)
by maxim
Affects: 
(3 files)
/stable/8/sbin/kldload/kldload.8
/stable/8/sbin/kldload/kldload.c
MFC r209970,209971,211990: add -q flag to usage() and
man page synopsys.
05:07:34 - r212138
(1 day 4 hours ago)
by maxim
Affects:  /head/share/examples/etc/make.conf
o csup(1) does not have -g flag.  Remove it from the example.

PR:             conf/150214
Submitted by:   Li
MFC after:      1 week
04:56:01 - r212137
(1 day 4 hours ago)
by brian
Affects: 
(7 files)
/stable/8/sys/*
MFC r211684 & r211818; return ENOENT if we fall off the end of the directory.
04:39:45 - r212136
(1 day 5 hours ago)
by thompsa
Affects: 
(7 files)
/head/sys/dev/usb/*
Reduce the need to accesss struct usb_device by providing functions to access
the product, manufacturer and serial strings.

Submitted by:   Hans Petter Selasky
04:05:00 - r212135
(1 day 5 hours ago)
by thompsa
Affects: 
(5 files)
/head/sys/dev/usb/*
Add support for power mode filtering as some USB hardware does not support
power saving.

Submitted by:   Hans Petter Selasky
04:01:18 - r212134
(1 day 5 hours ago)
by thompsa
Affects: 
(7 files)
/head/sys/dev/usb/*
Change argument for usbd_get_dma_delay() from USB bus to USB device, some
embedded hardware needs to know exactly which device is in question before it
exactly can decide the required delay.

Submitted by:   Hans Petter Selasky
03:55:08 - r212133
(1 day 5 hours ago)
by thompsa
Affects:  /head/sys/dev/usb/net/if_cdce.c
Fix setting of the rx_max and tx_max variables. If the expected buffer size is
greater than 65535 bytes then the CDC driver might not work as expected, which
is not likely with the existing USB speeds.

Submitted by:   Hans Petter Selasky
03:52:04 - r212132
(1 day 5 hours ago)
by thompsa
Affects:  /head/sys/dev/usb/input/ums.c
Fix UMS_BUTTON_MAX define name
03:50:11 - r212131
(1 day 6 hours ago)
by thompsa
Affects:  /head/sys/dev/usb/wlan/if_upgt.c
/head/sys/dev/usb/wlan/if_urtw.c
Fix build breakage from r212127
03:47:07 - r212130
(1 day 6 hours ago)
by thompsa
Affects:  /head/sys/dev/usb/net/if_axe.c
/head/sys/dev/usb/net/if_axereg.h
Add GPIO programming for more PHY hardware.

Submitted by:   yongari
03:47:07 - r212130
(1 day 6 hours ago)
by thompsa
Affects:  /head/sys/dev/usb/net/if_axe.c
/head/sys/dev/usb/net/if_axereg.h
Add GPIO programming for more PHY hardware.

Submitted by:   yongari
03:44:56 - r212129
(1 day 6 hours ago)
by thompsa
Affects:  /head/sys/dev/usb/input/ums.c
Add support for extra buttons on the Kensington Slimblade Trackball.

Submitted by:   Lee, Chung-Yeol
03:42:26 - r212128
(1 day 6 hours ago)
by thompsa
Affects:  /head/sys/dev/usb/input/ukbd.c
Silence debug error by default.

PR:             usb/141212
Submitted by:   Hans Petter Selasky
03:28:03 - r212127
(1 day 6 hours ago)
by thompsa
Affects: 
(7 files)
/head/sys/dev/usb/wlan/*
We need to grab a node reference count to vap->iv_bss before using it as it is
possible for the node to be replaced and freed at any time by
ieee80211_sta_join1().
01:05:10 - r212126
(1 day 8 hours ago)
by rmacklem
Affects:  /head/sys/boot/i386/libi386/pxe.c
Modify pxe.c to use the version of nfs_getrootfh() that returns
the file handle's size and was recently committed to
lib/libstand/nfs.c. This allows pxeboot to use NFSv3 and work
correcty for non-FreeBSD as well as FreeBSD NFS servers.
If built with OLD_NFSV2 defined, the old
code that predated this patch will be used.

Tested by:      danny at cs.huji.ac.il
01:00:13 - r212125
(1 day 8 hours ago)
by rmacklem
Affects:  /head/lib/libstand/nfs.c
Modify lib/libstand/nfs.c to use NFSv3 instead of NFSv2.
This allows the nfs_getrootfh() function to return the
correct file handle size to pxe.c for pxeboot. It also
results in NFSv2 no longer being used by default anywhere
in FreeBSD. If built with OLD_NFSV2 defined, the old
code that predated this patch will be built and NFSv2
will be used.

Tested by:      danny at cs.huji.ac.il
MFC after:      2 weeks
00:44:05 - r212124
(1 day 9 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
Fix stupid error in r212109 which didn't swap DMA maps. This caused
IOMMU panic on sparc64 under high TX load.
2010 - 09 - 01   (2 days ago)
23:51:07 - r212123
(1 day 10 hours ago)
by rmacklem
Affects:  /head/sys/nfsclient/nfs_diskless.c
Modify nfs_diskless.c to recognize the environment variable
boot.nfsroot.nfshandlelen and set the diskless root fs to
use NFSv3 and this file handle length when it is set. If
this environment variable is not set, the diskless root fs
will use NFSv2 and the same defaults as before. This fixes
the problem where the diskless nfs root fs had to be on a
FreeBSD server for NFSv3 to work, because it did not know
the correct file handle length and assumed the size used
by FreeBSD. Until pxeboot and loader are replaced by ones
built from commits coming soon, boot.nfsroot.nfshandlelen
will not be set by them and the diskless root fs will use
NFSv2 unless the /etc/fstab entry has the "nfsv3" option
specified.

Tested by:      danny at cs.huji.ac.il
MFC after:      2 weeks
23:47:53 - r212122
(1 day 10 hours ago)
by thompsa
Affects: 
(38 files)
/head/sys/dev/if_ndis/if_ndis_usb.c
/head/sys/dev/usb/*
Add missing MODULE_VERSION() definitions, this resolves problems around
duplicate module loads.

PR:             usb/125736
Submitted by:   danger, mm
Reviewed by:    hselasky
22:50:11 - r212121
(1 day 11 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
Move sis_reset() to sis_initl(). This ensures driver starts with
known good state of controller.
22:16:25 - r212120
(1 day 11 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
Avoid controller reinitialization which could be triggered by
dhclient(8) or alias addresses are added.

PR:     kern/87506
22:08:23 - r212119
(1 day 11 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
/head/sys/dev/sis/if_sisreg.h
Do not reinitialize controller whenever promiscuous mode or
allmulti is toggled. Controller does not require reinitialization.
This removes unnecessary controller reinitialization whenever
tcpdump is used.
While I'm here remove unnecessary variable reinitialization.
21:51:29 - r212118
(1 day 11 hours ago)
by jilles
Affects: 
(4 files)
/stable/7/bin/sh/expand.c
/stable/7/tools/regression/bin/sh/expansion/pathname3.0
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
21:44:36 - r212117
(1 day 12 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
Report result of link state change to caller. Previously it always
returned success.
21:42:19 - r212116
(1 day 12 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
/head/sys/dev/sis/if_sisreg.h
Overhaul link state change handling. Previously sis(4) blindly
configured TX/RX MACs before getting a valid link. After that, when
link state change callback is called, it called device
initialization again to reconfigure TX/RX MACs depending on
resolved link state. This hack created several bad side effects and
it required more hacks to not collide with sis_tick callback as
well as disabling switching to currently selected media in device
initialization. Also it seems sis(4) was used to be a template
driver for long time so other drivers which was modeled after
sis(4) also should be changed.

TX/RX MACs are now reconfigured after getting a valid link. Fix for
short cable error is also applied after getting a link because it's
only valid when the resolved speed is 100Mbps.

While I'm here slightly reorganize interrupt handler such that
sis(4) always read SIS_ISR register to see whether the interrupt is
ours or not. This change removes another hack and make it possible
to nuke sis_stopped variable in softc.
20:32:47 - r212115
(1 day 13 hours ago)
by mdf
Affects:  /head/sys/kern/sched_ule.c
Fix a bug with sched_affinity() where it checks td_pinned of another
thread in a racy manner, which can lead to attempting to migrate a
thread that is pinned to a CPU.  Instead, have sched_switch() determine
which CPU a thread should run on if the current one is not allowed.

KASSERT in sched_bind() that the thread is not yet pinned to a CPU.

KASSERT in sched_switch() that only migratable threads or those moving
due to a sched_bind() are changing CPUs.

sched_affinity code came from jhb@.

MFC after:      2 weeks
20:25:36 - r212114
(1 day 13 hours ago)
by emaste
Affects: 
(2 files)
/stable/8/sbin/ifconfig/af_inet.c
MFC r202289:

  Reject invalid CIDR widths rather than silently stopping at the first
  non-digit character.

  Due to an issue with rc(8) in a test configuration, ifconfig was being
  invoked with the address used again as the width - for example,

    ifconfig vlan0 10.0.0.1/10.0.0.1

  Prior to this change, that address/width would be interpreted as
  10.0.0.1/10.
19:53:15 - r212113
(1 day 13 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
/head/sys/dev/sis/if_sisreg.h
s/u_intXX_t/uintXX_t/g
19:50:03 - r212112
(1 day 14 hours ago)
by mlaier
Affects: 
(6 files)
/head/share/man/man9/*
/head/sys/kern/kern_rmlock.c
/head/sys/sys/*
rmlock(9) two additions and one change/fix:
 - add rm_try_rlock().
 - add RM_SLEEPABLE to use sx(9) as the back-end lock in order to sleep while
   holding the write lock.
 - change rm_noreadtoken to a cpu bitmask to indicate which CPUs need to go
   through the lock/unlock in order to synchronize.  As a side effect, this
   also avoids IPI to CPUs without any readers during rm_wlock.

Discussed with:         ups@, rwatson@ on arch@
Sponsored by:           Isilon Systems, Inc.
19:49:24 - r212111
(1 day 14 hours ago)
by jilles
Affects: 
(2 files)
/stable/8/bin/sh/histedit.c
MFC r210736: sh: Do not enter consecutive duplicates into the history.

This simply sets a flag in libedit. It has a shortcoming in that it does not
apply to multi-line commands.

Note that a configuration option for this is not going to happen, but always
having this seems better than not having it. NetBSD has done the same.

PR:             bin/54683
Obtained from:  NetBSD
19:36:06 - r212110
(1 day 14 hours ago)
by emaste
Affects:  /stable/8/etc/rc.subr
MFC r202988, r203022

  Remove vestigial NetBSD compatibility shim.

  Convert to 2-clause license, from NetBSD rc.subr r1.70.
19:33:40 - r212109
(1 day 14 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
/head/sys/dev/sis/if_sisreg.h
bus_dma(9) cleanup.
 o Enforce TX/RX descriptor ring alignment. NS data sheet says the
   controller needs 4 bytes alignment but use 16 to cover both SiS
   and NS controllers. I don't have SiS data sheet so I'm not sure
   what is alignment restriction of SiS controller but 16 would be
   enough because it's larger than the size of a TX/RX descriptor.
   Previously sis(4) ignored the alignment restriction.
 o Enforce RX buffer alignment, 4.
   Previously sis(4) ignored RX buffer alignment restriction.
 o Limit number of TX DMA segment to be used to 16. It seems
   controller has no restriction on number of DMA segments but
   using more than 16 looks resource waste.
 o Collapse long mbuf chains with m_collapse(9) instead of calling
   expensive m_defrag(9).
 o TX/RX side bus_dmamap_load_mbuf_sg(9) support and remove
   unnecessary callbacks.
 o Initial endianness support.
 o Prefer local alignment fixup code to m_devget(9).
 o Pre-allocate TX/RX mbuf DMA maps instead of creating/destroying
   these maps in fast TX/RX path. On non-x86 architectures, this is
   very expensive operation and there is no need to do that.
 o Add missing bus_dmamap_sync(9) in TX/RX path.
 o watchdog is now unarmed only when there are no pending frames
   on controller. Previously sis(4) blindly unarmed watchdog
   without checking the number of queued frames.
 o For efficiency, loaded DMA map is reused for error frames.
 o DMA map loading failure is now gracefully handled. Previously
   sis(4) ignored any DMA map loading errors.
 o Nuke unused macros which are not appropriate for endianness
   operation.
 o Stop embedding driver maintained structures into descriptor
   rings. Because TX/RX descriptor structures are shared between
   host and controller, frequent bus_dmamap_sync(9) operations are
   required in fast path. Embedding driver structures will increase
   the size of DMA map which in turn will slow down performance.
19:27:42 - r212108
(1 day 14 hours ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
As announced earlier, just lock in non-panicking conditions.
The code could be different and require any implementation of
acquire_lock and release_lock virtual functions to skip in panicstr != NULL
case, but that would be too error prone, so just handle locally.
19:23:49 - r212107
(1 day 14 hours ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
acquire_lock() is void-return.
Fix it.
19:22:19 - r212106
(1 day 14 hours ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
/projects/sv/sys/netinet/netdump.h
The break lock happens while the system panicked but it is not an useful
operation as, at that point, the other CPUs might be already stopped.
It is more correct to just skip locking entirely for the interfaces,
as long as the asserts won't whine in panicstr != NULL conditions (to
be added asap).
The 'acquire_lock' and 'release_lock' semantic is just left for the
normal RB_DUMP reboot(2) invokation case (reboot -d, for example).

Discussed with: emaste, rstone
18:41:59 - r212105
(1 day 15 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
Nuke unnecessary return at the end of function.
18:39:35 - r212104
(1 day 15 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
style(9) - space after keywords.
18:28:08 - r212103
(1 day 15 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
/head/sys/dev/sis/if_sisreg.h
Remove leading and trailing white spaces.
No functional changes.
17:35:31 - r212102
(1 day 16 hours ago)
by jchandra
Affects: 
(4 files)
/head/sys/mips/rmi/*
Updates for the RMI MIPS platform code
- set cache_coherent_dma flag in cpuinfo for XLR, this will make sure that
  BUS_DMA_COHERENT flag is handled correctly in busdma_machdep.c
- iodi.c, call device_get_name() just once
- clear RMI specific EIRR while intializing CPUs
- remove debug print in intr_machdep.c
17:02:31 - r212101
(1 day 16 hours ago)
by nwhitehorn
Affects: 
(11 files)
/user/nwhitehorn/ps3/powerpc/*
Enable use of the high 128 MB of memory on the PS3. On PowerPC hypervisors,
only a limited subset of physical memory is typically available in real
mode. In addition, the information on what that subset is is typically
hypervisor privileged. This commit extends the platform interface to
provide a hook for querying that information, and modifies the small
amounts of the kernel that care to use it appropriately.
16:53:38 - r212100
(1 day 16 hours ago)
by emaste
Affects:  /head/sys/net/if_lagg.c
Add a sysctl knob to accept input packets on any link in a failover lagg.
16:11:26 - r212099
(1 day 17 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_pcb.c
Fix a bug which results in peer IPv4 addresses a.b.c.d with 224<=d<=239
incorrectly being detected as multicast addresses on little endian systems.

MFC after: 2 weeks
15:24:47 - r212098
(1 day 18 hours ago)
by dim
Affects:  /head/sys/boot/pc98/boot2/boot2.c
Use a cleaner expression to retrieve the memory size in pc98's boot2.c,
which also avoids NULL pointer arithmetic, as suggested by jhb.  The
available space goes from 11 bytes to 7.

Reviewed by:    nyan
Approved by:    rpaulo (mentor)
14:31:05 - r212097
(1 day 19 hours ago)
by jhb
Affects:  /stable/7/sys/dev/e1000/if_em.c
/stable/7/sys/dev/e1000/if_lem.c
Fix the build with DEVICE_POLLING enabled.  Poll handlers return void
instead of int on 7.x and earlier.

Pointy hat to:  jhb
13:47:11 - r212096
(1 day 20 hours ago)
by emaste
Affects:  /head/sys/kern/vfs_subr.c
As long as we are going to panic anyway, there's no need to hide additional
information behind DIAGNOSTIC.
13:22:55 - r212095
(1 day 20 hours ago)
by davidxu
Affects:  /head/lib/libthr/thread/thr_sig.c
Remove incorrect comments, also make sure signal is
disabled when unregistering sigaction.
12:08:54 - r212094
(1 day 21 hours ago)
by maxim
Affects:  /head/share/man/man7/hier.7
o Sync the man page with the reality: nfs/ includes
are under include/ and include/fs/.

PR:             docs/139153
Submitted by:   gjb
MFC after:      1 week
12:08:32 - r212093
(1 day 21 hours ago)
by rpaulo
Affects:  /head/sys/cddl/dev/dtrace/dtrace_load.c
Make the /dev/dtrace/helper node have the mode 0660. This allows
programs that refuse to run as root (pgsql) to install probes when their
user is part of the wheel group.

Sponsored by:   The FreeBSD Foundation
> 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    dev/dtrace/dtrace_load.c
11:27:09 - r212092
(1 day 22 hours ago)
by rpaulo
Affects:  /head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_program.c
Include <sys/sdt.h> on a generated header.

Sponsored by:   The FreeBSD Foundation
11:11:20 - r212091
(1 day 22 hours ago)
by netchild
Affects: 
(2 files)
/stable/8/etc/periodic/daily/800.scrub-zfs
MFC r211800:
  - Change the threshold from 'running next scrub the <value+1>th day after the
    last one' to 'running next scrub the <value>th day after the last one'.
  - Improve wording.

  Requested by: jhell <jhell@DataIX.net>
10:50:58 - r212090
(1 day 23 hours ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
Fix a lock-leak due to wrong movement.
10:07:40 - r212089
(1 day 23 hours ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
- Tweak some comments
- Move down the 'dumping' bump in order to match what doadump() does
09:59:45 - r212088
(1 day 23 hours ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
- Rename the too generic label 'abort' into 'trig_abort'
- Reorganize some paths in order to cleanup a bit and get rid of the
  successful label
09:53:24 - r212087
(1 day 23 hours ago)
by ed
Affects:  /head/share/man/man4/psm.4
Remove reference to device minor numbers in psm(4) man page.

The number returned by stat(2) is generated automatically, so it is not
possible to deduce whether the device is blocking or not.

MFC after:      1 week
09:51:47 - r212086
(1 day 23 hours ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
It is not necessary to disable interrupts here neither useful:
1) The code path is quite heavy and disabling indiscriminately interrupts
   for that long is not a good approach
2) The context (callers) may provide such type of protection,
   if anything, because they know more about the surrounding
09:47:56 - r212085
(2 days ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
We don't need to stop the CPUs:
- If we entered the debugger via a panic breakpoint() already did that
- If we are running a reboot(2) instance with RB_DUMP it is not due
08:32:40 - r212084
(2 days 1 hour ago)
by maxim
Affects:  /head/sbin/geom/core/geom.8
o List MOUNTVER and SCHED classes.  X-ref gsched(8).  Bump Dd.

PR:             docs/149925
Submitted by:   arundel
07:09:46 - r212083
(2 days 2 hours ago)
by davidxu
Affects:  /head/lib/libthr/thread/thr_fork.c
In function __pthread_cxa_finalize(), also make code for removing
atfork handler be async-signal safe.
06:51:42 - r212082
(2 days 2 hours ago)
by kib
Affects: 
(5 files)
/stable/8/lib/libc/locale
/stable/8/lib/libc/stdtime
/stable/8/lib/libc/sys/sigaltstack.2
MFC r211966:
Use NULL instead of 0 for pointer in example.
06:43:41 - r212081
(2 days 3 hours ago)
by mav
Affects:  /head/sys/dev/ata/chipsets/ata-ahci.c
Increase device reset timeout from 10 to 15 seconds, same as in ahci(4).
Some devices found need about 10-12 seconds to spinup.
05:39:56 - r212080
(2 days 4 hours ago)
by maxim
Affects: 
(4 files)
/stable/8/etc/defaults/rc.conf
/stable/8/etc/periodic/daily/800.scrub-zfs
MFC r211801: fix typo.
05:34:17 - r212079
(2 days 4 hours ago)
by lulf
Affects:  /head/sys/fs/ext2fs/ext2_alloc.c
- Remove duplicate comment.

PR:             kern/148820
Submitted by:   pluknet <pluknet - at - gmail.com>
03:55:10 - r212078
(2 days 5 hours ago)
by davidxu
Affects:  /head/lib/libthr/thread/thr_fork.c
pthread_atfork should acquire writer lock and protect the code
with critical region.
03:11:21 - r212077
(2 days 6 hours ago)
by davidxu
Affects: 
(6 files)
/head/lib/libthr/thread/*
Change atfork lock from mutex to rwlock, also make mutexes used by malloc()
module private type, when private type mutex is locked/unlocked, thread
critical region is entered or leaved. These changes makes fork()
async-signal safe which required by POSIX. Note that user's atfork handler
still needs to be async-signal safe, but it is not problem of libthr, it
is user's responsiblity.
02:18:33 - r212076
(2 days 7 hours ago)
by davidxu
Affects: 
(14 files)
/head/lib/libthr/thread/*
Add signal handler wrapper, the reason to add it becauses there are
some cases we want to improve:
  1) if a thread signal got a signal while in cancellation point,
     it is possible the TDP_WAKEUP may be eaten by signal handler
     if the handler called some interruptibly system calls.
  2) In signal handler, we want to disable cancellation.
  3) When thread holding some low level locks, it is better to
     disable signal, those code need not to worry reentrancy,
     sigprocmask system call is avoided because it is a bit expensive.
The signal handler wrapper works in this way:
  1) libthr installs its signal handler if user code invokes sigaction
     to install its handler, the user handler is recorded in internal
     array.
  2) when a signal is delivered, libthr's signal handler is invoke,
     libthr checks if thread holds some low level lock or is in critical
     region, if it is true, the signal is buffered, and all signals are
     masked, once the thread leaves critical region, correct signal
     mask is restored and buffered signal is processed.
  3) before user signal handler is invoked, cancellation is temporarily
     disabled, after user signal handler is returned, cancellation state
     is restored, and pending cancellation is rescheduled.
01:26:07 - r212075
(2 days 8 hours ago)
by davidxu
Affects:  /head/sys/kern/kern_sig.c
rescure comments from RELENG_4.
2010 - 08 - 31   (3 days ago)
23:14:03 - r212074
(2 days 10 hours ago)
by jamie
Affects:  /head/lib/libjail/jail.c
Whitespace and comment fixes.

MFC after:      3 days
21:50:09 - r212073
(2 days 12 hours ago)
by jamie
Affects:  /head/lib/libjail/jail.c
Don't over-allocate array values in jailparam_export.
Fix a little comment typo.

MFC after:      3 days
21:48:45 - r212072
(2 days 12 hours ago)
by jamie
Affects:  /head/lib/libjail/jail.3
Make it clear in the example that jailparam_export's return value
should be freed.

MFC after:      3 days
20:56:18 - r212071
(2 days 12 hours ago)
by yongari
Affects:  /head/sys/dev/bge/if_bge.c
Remove unnecessary atomic operation in bge_poll. bge(4) always
holds a driver lock in the function entry and
memory synchronization is handled by bus_dmamap_sync(9).
20:21:52 - r212070
(2 days 13 hours ago)
by jkim
Affects:  /head/sys/dev/fb/vesa.c
Make sure the interrupt entry point is within the video ROM range.  We must
not change interrupt vector if it is not pointing the ROM itself.  Actually,
we just fail shadowing altogether if that is the case because the shadowed
copy will be useless for sure and POST may not be relocatable or useful.
While I'm here, fix a debugging message under bootverbose, really.  r211829
fixed one case but broke another.  Mea Culpa.
19:59:18 - r212069
(2 days 13 hours ago)
by yongari
Affects:  /head/sys/dev/bge/if_bge.c
bge_txeof() already checks whether it has to free transmitted mbufs
or not by comparing reported TX consumer index with saved index. So
remove unnecessary check done after freeing transmitted mbufs.
While I'm here nuke unnecessary variable initializations.
19:26:29 - r212068
(2 days 14 hours ago)
by jhb
Affects: 
(8 files)
/stable/7/sys/cddl/contrib/opensolaris
/stable/7/sys/contrib/*
/stable/7/sys/dev/e1000/*
MFC 206429:
Sync em(4) and igb(4) drivers with 8 except for VF support:
- Remove unneeded rxtx handler, make que handler generic in igb.
- Do not allocate header mbufs in rx ring if not doing hdr split in igb.
- Release the lock in rxeof call to stack.
- Change rxeof api for poll friendliness, and eliminate unnecessary link
  tasklet use.
- Move statistics for em into sysctl tree.
- Reenable hardware checksum offload for VLAN frames in igb.
- Fix for a panic when TX checksum offload is done and a packet has only
  a header in the first mbuf in em.

Approved by:    jfv
19:01:46 - r212067
(2 days 14 hours ago)
by pjd
Affects:  /head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
Eliminate confusing while () loop. In the first version of the code it was
there to avoid gotos, but in the current version it serves no purpose.

MFC after:      2 weeks
19:01:12 - r212066
(2 days 14 hours ago)
by delphij
Affects:  /head/sys/boot/i386/efi/Makefile
/head/sys/boot/i386/loader/Makefile
/head/sys/boot/i386/zfsloader/Makefile
For consistency, change all 'i386' and MACHINE_ARCH to x86.

Reviewed by:    jhb
MFC after:      1 week
18:48:09 - r212065
(2 days 15 hours ago)
by yongari
Affects:  /head/sys/dev/bge/if_bge.c
/head/sys/dev/bge/if_bgereg.h
Handle PAE case correctly. You cannot effectively specify a 4GB
boundary in PAE case so use a 2GB boundary for PAE as suggested by
jhb.

Pointed out by: jhb
Reviewed by:    jhb
18:11:50 - r212064
(2 days 15 hours ago)
by dim
Affects:  /head/sys/boot/pc98/boot2/boot2.c
Avoid directly manipulating a NULL pointer (which could result in
undefined behaviour) in sys/boot/pc98/boot2/boot2.c.

Reviewed by:    nyan
Approved by:    rpaulo (mentor)
17:43:47 - r212063
(2 days 16 hours ago)
by mdf
Affects:  /head/sys/vm/memguard.c
Have memguard(9) crash with an easier-to-debug message on double-free.

Reviewed by:    zml
MFC after:      3 weeks
17:38:20 - r212062
(2 days 16 hours ago)
by dim
Affects:  /head/sys/boot/pc98/boot2/Makefile
Always compile pc98 boot2 with gcc instead of clang, just as with i386
boot2.  Unfortunately both still are too big when compiled with clang.

Reviewed by:    nyan
Approved by:    rpaulo (mentor)
17:33:48 - r212061
(2 days 16 hours ago)
by yongari
Affects:  /head/sys/dev/bge/if_bge.c
/head/sys/dev/bge/if_bgereg.h
Split common parent DMA tag into ring DMA tag and TX/RX mbuf DMA
tag. All controllers that are not BCM5755 or higher have 4GB
boundary DMA bug. Previously bge(4) used 32bit DMA address to
workaround the bug(r199670). However this caused the use of bounce
buffers such that it resulted in poor performance for systems which
have more than 4GB memory. Because bus_dma(9) honors boundary
restriction requirement of DMA tag for dynamic buffers, having a
separate TX/RX mbuf DMA tag will greatly reduce the possibility of
using bounce buffers. For DMA buffers allocated with
bus_dmamem_alloc(9), now bge(4) explicitly checks whether the
requested memory region crossed the boundary or not.
With this change, only the DMA buffer that crossed the boundary
will use 32bit DMA address. Other DMA buffers are not affected as
separate DMA tag is created for each DMA buffer.
Even if 32bit DMA address space is used for a buffer, the chance to
use bounce buffer is still very low as the size of buffer is small.
This change should eliminate most usage of bounce buffers on
systems that have more than 4GB memory.

More correct fix would be teaching bus_dma(9) to honor boundary
restriction for buffers created with bus_dmamem_alloc(9) but it
seems that is not easy.

While I'm here cleanup bge_dma_map_addr() and remove unnecessary
member variables in bge_dmamap_arg structure.

Tested by:      marcel
17:33:29 - r212060
(2 days 16 hours ago)
by dim
Affects:  /head/gnu/lib/libobjc/Makefile
/head/sys/boot/i386/boot2/Makefile
Use a more robust way to substitute gcc for clang, when compiling
gnu/lib/libobjc and sys/boot/i386/boot2, so it also works when using
absolute paths and/or options, as in CC="/absolute/path/clang -foo".

Approved by:    rpaulo (mentor)
17:22:57 - r212059
(2 days 16 hours ago)
by zml
Affects:  /svnadmin/conf/mentors
Release mdf@ from mentorship. He's already way more active than I am!
16:57:58 - r212058
(2 days 16 hours ago)
by mdf
Affects:  /head/sys/kern/kern_malloc.c
/head/sys/vm/memguard.c
/head/sys/vm/memguard.h
The realloc case for memguard(9) will copy too many bytes when
reallocating to a smaller-sized allocation.  Fix this issue.

Noticed by:     alc
Reviewed by:    alc
Approved by:    zml (mentor)
MFC after:      3 weeks
15:58:15 - r212057
(2 days 17 hours ago)
by nwhitehorn
Affects: 
(206 files)
/user/nwhitehorn/ps3/*
IFC @ r212055
15:52:12 - r212056
(2 days 17 hours ago)
by ume
Affects: 
(7 files)
/stable/8/sys/*
MFC r211435, r211530: Make `ping6 -I' work with
net.inet6.ip6.use_defaultzone=1.
15:49:41 - r212055
(2 days 18 hours ago)
by nwhitehorn
Affects:  /user/nwhitehorn/ps3/conf/files.powerpc
/user/nwhitehorn/ps3/conf/options.powerpc
/user/nwhitehorn/ps3/powerpc/cell
Add some non-HV Cell bits.
15:27:46 - r212054
(2 days 18 hours ago)
by nwhitehorn
Affects: 
(14 files)
/head/sys/conf/files.powerpc
/head/sys/powerpc/*
Restructure how reset and poweroff are handled on PowerPC systems, since
the existing code was very platform specific, and broken for SMP systems
trying to reboot from KDB.

- Add a new PLATFORM_RESET() method to the platform KOBJ interface, and
  migrate existing reset functions into platform modules.
- Modify the OF_reboot() routine to submit the request by hand to avoid
  the IPIs involved in the regular openfirmware() routine. This fixes
  reboot from KDB on SMP machines.
- Move non-KDB reset and poweroff functions on the Powermac platform
  into the relevant power control drivers (cuda, pmu, smu), instead of
  using them through the Open Firmware backdoor.
- Rename platform_chrp to platform_powermac since it has become
  increasingly Powermac specific. When we gain support for IBM systems,
  we will grow a new platform_chrp.
15:22:09 - r212053
(2 days 18 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/trap_subr.S
Remove some code made obsolete by the powerpc64 import.
12:05:13 - r212052
(2 days 21 hours ago)
by pjd
Affects:  /head/sbin/hastd/pjdlog.c
Include process PID in log messages.

Submitted by:   Mikolaj Golub <to.my.trociny@gmail.com>
MFC after:      2 weeks
12:03:29 - r212051
(2 days 21 hours ago)
by pjd
Affects:  /head/sbin/hastd/secondary.c
Correct error message.

Submitted by:   Mikolaj Golub <to.my.trociny@gmail.com>
MFC after:      2 weeks
10:41:53 - r212050
(2 days 23 hours ago)
by pjd
Affects:  /head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
When upgrading a pool which contain root file system, give user a hint that
he should update boot code.

MFC after:      2 weeks
09:38:43 - r212049
(3 days ago)
by pjd
Affects:  /head/sbin/hastd/event.c
/head/sbin/hastd/event.h
Forgot to add event.c and event.h in r212038.

Pointed out by: pluknet <pluknet@gmail.com>
MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
07:19:10 - r212048
(3 days 2 hours ago)
by kevlo
Affects:  /head/usr.bin/usbhidaction/usbhidaction.c
/head/usr.sbin/apmd/apmd.c
For consistency, cast result of getpid() to long
07:15:50 - r212047
(3 days 2 hours ago)
by davidxu
Affects:  /head/sys/kern/kern_sig.c
If a process is being debugged, skips job control caused by SIGSTOP/SIGCONT
signals, because it is managed by debugger, however a normal signal sent to
a interruptibly sleeping thread wakes up the thread so it will handle the
signal when the process leaves the stopped state.

PR:     150138
MFC after:      1 week
06:22:03 - r212046
(3 days 3 hours ago)
by pjd
Affects:  /head/sbin/hastd/primary.c
Mask only those signals that we want to handle.

Suggested by:   jilles
MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
04:18:47 - r212045
(3 days 5 hours ago)
by jchandra
Affects:  /head/sys/mips/rmi/board.c
Add the workaround for 4xx lite boards after it was lost in the last
board.c update.
02:07:13 - r212044
(3 days 7 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/mmu_oea64.c
Missed one place the SLB lock should be held in r211967.
01:16:45 - r212043
(3 days 8 hours ago)
by rmacklem
Affects:  /head/sys/fs/nullfs/null_vnops.c
Add a null_remove() function to nullfs, so that the v_usecount
of the lower level vnode is incremented to greater than 1 when
the upper level vnode's v_usecount is greater than one. This
is necessary for the NFS clients, so that they will do a silly
rename of the file instead of actually removing it when the
file is still in use. It is "racy", since the v_usecount is
incremented in many places in the kernel with
minimal synchronization, but an extraneous silly rename is
preferred to not doing a silly rename when it is required.
The only other file systems that currently check the value
of v_usecount in their VOP_REMOVE() functions are nwfs and
smbfs. These file systems choose to fail a remove when the
v_usecount is greater than 1 and I believe will function
more correctly with this patch, as well.

Tested by:      to.my.trociny at gmail.com
Submitted by:   to.my.trociny at gmail.com (earlier version)
Reviewed by:    kib
MFC after:      2 weeks
00:20:10 - r212042
(3 days 9 hours ago)
by yongari
Affects: 
(2 files)
/stable/7/share/man/man4/rl.4
MFC r211650,211667:
r211650:
  Document tunable dev.rl.%unit.prefer_iomap

r211667:
  Better wording and fix wrong explanation.

  Submitted by: Ben Kaduk ( minimarmot <> gmail dot com )
00:19:03 - r212041
(3 days 9 hours ago)
by yongari
Affects: 
(2 files)
/stable/8/share/man/man4/rl.4
MFC r211650,211667:
r211650:
  Document tunable dev.rl.%unit.prefer_iomap

r211667:
  Better wording and fix wrong explanation.

  Submitted by: Ben Kaduk ( minimarmot <> gmail dot com )
00:16:31 - r212040
(3 days 9 hours ago)
by yongari
Affects: 
(5 files)
/stable/7/sys/cddl/contrib/opensolaris
/stable/7/sys/contrib/*
/stable/7/sys/pci/if_rl.c
MFC r211648:
  It seems some newer RTL8139 controllers provides only memory space
  register mapping. I'm not sure whether it comes from the fact that
  controllers live behind certain PCI brdge(PLX PCI 6152 33BC) and
  the bridge has some issues in handling I/O space register mapping.
  Unfortunately it's not possible to narrow down to an exact
  controller that shows this issue because RealTek used the same PCI
  device/revision id again. In theory, it's possible to check parent
  PCI bridge device and change rl(4) to use memory space register
  mapping if the parent PCI bridge is PLX PCI 6152. But I didn't try
  to do that and we wouldn't get much benefit with added complexity.

  Blindly switching to use memory space register mapping for rl(4)
  may make most old controllers not to work. At least, I don't want
  to take potential risk from such change. So use I/O space register
  mapping by default but give users chance to override it via a
  tunable. The tunable to use memory space register mapping would be
  given by adding the following line to /boot/loader.conf file.

  dev.rl.%d.prefer_iomap="0"

  This change makes P811B quad-port work with this tunable.
00:15:20 - r212039
(3 days 9 hours ago)
by yongari
Affects: 
(7 files)
/stable/8/sys/*
MFC r211648:
  It seems some newer RTL8139 controllers provides only memory space
  register mapping. I'm not sure whether it comes from the fact that
  controllers live behind certain PCI brdge(PLX PCI 6152 33BC) and
  the bridge has some issues in handling I/O space register mapping.
  Unfortunately it's not possible to narrow down to an exact
  controller that shows this issue because RealTek used the same PCI
  device/revision id again. In theory, it's possible to check parent
  PCI bridge device and change rl(4) to use memory space register
  mapping if the parent PCI bridge is PLX PCI 6152. But I didn't try
  to do that and we wouldn't get much benefit with added complexity.

  Blindly switching to use memory space register mapping for rl(4)
  may make most old controllers not to work. At least, I don't want
  to take potential risk from such change. So use I/O space register
  mapping by default but give users chance to override it via a
  tunable. The tunable to use memory space register mapping would be
  given by adding the following line to /boot/loader.conf file.

  dev.rl.%d.prefer_iomap="0"

  This change makes P811B quad-port work with this tunable.
2010 - 08 - 30   (4 days ago)
23:26:10 - r212038
(3 days 10 hours ago)
by pjd
Affects: 
(5 files)
/head/sbin/hastd/*
Because it is very hard to make fork(2) from threaded process safe (we are
limited to async-signal safe functions in the child process), move all hooks
execution to the main (non-threaded) process.

Do it by maintaining connection (socketpair) between child and parent
and sending events from the child to parent, so it can execute the hook.

This is step in right direction for others reasons too. For example there is
one less problem to drop privs in worker processes.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
23:19:21 - r212037
(3 days 10 hours ago)
by pjd
Affects:  /head/sbin/hastd/hastd.c
We only want to know if descriptors are ready for reading.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
23:16:45 - r212036
(3 days 10 hours ago)
by pjd
Affects:  /head/sbin/hastd/proto_socketpair.c
When someone gives NULL as data, assume this is because he want to declare
connection side only.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
22:45:32 - r212035
(3 days 11 hours ago)
by edwin
Affects: 
(5 files)
/head/usr.bin/calendar/*
For calendars which don't match the solar-based Gregorian calendar,
be able to specify a year string in an entry.
22:28:04 - r212034
(3 days 11 hours ago)
by pjd
Affects:  /head/sbin/hastd/primary.c
Use pjdlog_exit() before fork().

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
22:26:42 - r212033
(3 days 11 hours ago)
by pjd
Affects: 
(4 files)
/head/sbin/hastd/*
Constify arguments we can constify.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
22:24:26 - r212032
(3 days 11 hours ago)
by edwin
Affects:  /head/usr.bin/ncal/ncal.c
Use basename(3) to determine the name of the program.

Submitted by:   Alexander Best <arundel@>
22:19:41 - r212031
(3 days 11 hours ago)
by yongari
Affects: 
(2 files)
/stable/7/share/man/man4/rl.4
MFC r184560:
  Document dev.rl.%unit.twister_enable sysctl/tunable.
22:17:06 - r212030
(3 days 11 hours ago)
by yongari
Affects: 
(6 files)
/stable/7/sys/cddl/contrib/opensolaris
/stable/7/sys/contrib/*
/stable/7/sys/pci/*
MFC r184515,184524,184559:
r184515:
  Add RL_TWISTER_ENABLE option.  This enables the magic bits to do long
  cable tuning.  This has helped in some installations for hardware
  deployed by a former employer.  Made optional because the lists aren't
  full of complaints about these cards... even when they were wildly
  popular.

r184524:
  Fix a few typos/spelling errors in my comments from the last commit,
  plus a few others that had lingered in this driver...

  Submitted by: "b." bf2006a att yahoo KIBO com

r184559:
  Make RL_TWISTER_ENABLE a tunable/sysctl.  Eliminate it as an option.
  Fix module build.
21:58:52 - r212029
(3 days 11 hours ago)
by nwhitehorn
Affects:  /head/usr.sbin/pkg_install/add/main.c
Use MACHINE_ARCH instead of MACHINE as the directory to fetch packages
from. Packages are architecture dependent, not machine dependent.
21:33:33 - r212028
(3 days 12 hours ago)
by delphij
Affects:  /head/sys/dev/twa/tw_osl_freebsd.c
Drain watchdog callouts before detaching.  This prevents a panic while
unloading the kernel module.

Submitted by:   Tom Cough
21:20:24 - r212027
(3 days 12 hours ago)
by dim
Affects:  /head/usr.bin/calendar/calendars/calendar.freebsd
Add myself to calendars.freebsd.

Approved by:    rpaulo (mentor)
21:19:42 - r212026
(3 days 12 hours ago)
by jkim
Affects:  /head/sys/amd64/amd64/cpu_switch.S
Save MSR_FSBASE, MSR_GSBASE and MSR_KGSBASE directly to PCB as we do not use
these values in the function.
21:18:59 - r212025
(3 days 12 hours ago)
by dim
Affects:  /head/share/misc/committers-src.dot
Add myself to committers-src.dot.

Approved by:    rpaulo (mentor)
21:18:57 - r212024
(3 days 12 hours ago)
by yongari
Affects: 
(2 files)
/stable/7/share/man/man4/alc.4
MFC r211106:
  Document newly added controller AR8151 and AR8152.
21:18:27 - r212023
(3 days 12 hours ago)
by yongari
Affects: 
(2 files)
/stable/8/share/man/man4/alc.4
MFC r211106:
  Document newly added controller AR8151 and AR8152.
21:17:11 - r212022
(3 days 12 hours ago)
by yongari
Affects: 
(7 files)
/stable/7/sys/cddl/contrib/opensolaris
/stable/7/sys/contrib/*
/stable/7/sys/dev/alc/*
MFC r211105:
  Add support for Atheros AR8151/AR8152 PCIe gigabit/fast ethernet
  controller. These controllers are known as L1D(AR8151) and
  L2CB/B2(AR8152). This change adds supports for the following
  controllers.
   o AR8151 v1.0(L1D) gigabit ethernet controller
   o AR8151 v2.0(L1D) gigabit ethernet controller
   o AR8152 v1.1(L2CB) fast ethernet controller
   o AR8152 v2.0(L2CB2) fast ethernet controller
  These controllers have the same feature of AR8131/AR8132 and
  support improved power saving control. The user visible change at
  this moment is reduced jumbo frame size from 9KB to 6KB. Many
  thanks to Atheros for continuing to support FreeBSD.

  HW donated by:        Atheros Communications, Inc.
21:15:40 - r212021
(3 days 12 hours ago)
by yongari
Affects: 
(9 files)
/stable/8/sys/*
MFC r211105:
  Add support for Atheros AR8151/AR8152 PCIe gigabit/fast ethernet
  controller. These controllers are known as L1D(AR8151) and
  L2CB/B2(AR8152). This change adds supports for the following
  controllers.
   o AR8151 v1.0(L1D) gigabit ethernet controller
   o AR8151 v2.0(L1D) gigabit ethernet controller
   o AR8152 v1.1(L2CB) fast ethernet controller
   o AR8152 v2.0(L2CB2) fast ethernet controller
  These controllers have the same feature of AR8131/AR8132 and
  support improved power saving control. The user visible change at
  this moment is reduced jumbo frame size from 9KB to 6KB. Many
  thanks to Atheros for continuing to support FreeBSD.

  HW donated by:        Atheros Communications, Inc.
21:13:08 - r212020
(3 days 12 hours ago)
by yongari
Affects: 
(6 files)
/stable/7/sys/cddl/contrib/opensolaris
/stable/7/sys/contrib/*
/stable/7/sys/dev/mii/*
MFC r211103:
  Add F1 PHY found on Atheros AR8151 v2.0 PCIe gigabit ethernet
  controller.
21:11:45 - r212019
(3 days 12 hours ago)
by yongari
Affects: 
(8 files)
/stable/8/sys/*
MFC r211103:
  Add F1 PHY found on Atheros AR8151 v2.0 PCIe gigabit ethernet
  controller.
21:09:37 - r212018
(3 days 12 hours ago)
by yongari
Affects: 
(6 files)
/stable/7/sys/cddl/contrib/opensolaris
/stable/7/sys/contrib/*
/stable/7/sys/dev/alc/*
MFC r211047-211048,211051-211053,211285:
r211047:
  Controller does not seem to support more than 1024 bytes DMA burst.
  Limit DMA burst size to be less than or equal to 1024 bytes.

r211048:
  Do not touch CMB TX threshold register when CMB is not used.
  Note, alc(4) does not use CMB at all due to silicon bug.

r211051:
  Always disable ASPM L0s and enable L1 before entering into WOL
  suspend state.  Also disable master clock after PHY power down,
  this is supposed to save more power. The master clock should be
  enabled if WOL is active.

r211052:
  Remove unnecessary assignment.

r211053:
  Cache PCIY_PMG and PCIY_EXPRESS capability pointer to softc and use
  it instead of calling pci_find_extcap().

r211285:
  Make sure to disable RX MAC in alc_stop_mac(). Previously there
  was a logic error which it always enabled RX MAC.
21:07:26 - r212017
(3 days 12 hours ago)
by yongari
Affects: 
(8 files)
/stable/8/sys/*
MFC r211047-211048,211051-211053,211285:
r211047:
  Controller does not seem to support more than 1024 bytes DMA burst.
  Limit DMA burst size to be less than or equal to 1024 bytes.

r211048:
  Do not touch CMB TX threshold register when CMB is not used.
  Note, alc(4) does not use CMB at all due to silicon bug.

r211051:
  Always disable ASPM L0s and enable L1 before entering into WOL
  suspend state.  Also disable master clock after PHY power down,
  this is supposed to save more power. The master clock should be
  enabled if WOL is active.

r211052:
  Remove unnecessary assignment.

r211053:
  Cache PCIY_PMG and PCIY_EXPRESS capability pointer to softc and use
  it instead of calling pci_find_extcap().

r211285:
  Make sure to disable RX MAC in alc_stop_mac(). Previously there
  was a logic error which it always enabled RX MAC.
21:00:37 - r212016
(3 days 12 hours ago)
by yongari
Affects: 
(6 files)
/stable/7/sys/cddl/contrib/opensolaris
/stable/7/sys/contrib/*
/stable/7/sys/dev/mii/*
MFC r211046:
  Marvell model number 0x06 is 88E1101 PHY.
20:59:13 - r212015
(3 days 12 hours ago)
by yongari
Affects: 
(8 files)
/stable/8/sys/*
MFC r211046:
  Marvell model number 0x06 is 88E1101 PHY.
20:56:59 - r212014
(3 days 12 hours ago)
by yongari
Affects: 
(2 files)
/stable/7/share/man/man4/alc.4
MFC r210905:
  Reflect default Tx interrupt moderation timer value change(50ms -> 1ms).
20:56:12 - r212013
(3 days 12 hours ago)
by yongari
Affects: 
(2 files)
/stable/8/share/man/man4/alc.4
MFC r210905:
  Reflect default Tx interrupt moderation timer value change(50ms -> 1ms).
20:52:28 - r212012
(3 days 12 hours ago)
by yongari
Affects: 
(5 files)
/stable/7/sys/cddl/contrib/opensolaris
/stable/7/sys/contrib/*
/stable/7/sys/dev/alc/if_alcreg.h
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.
20:49:51 - r212011
(3 days 13 hours ago)
by yongari
Affects: 
(7 files)
/stable/8/sys/*
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.
20:39:06 - r212010
(3 days 13 hours ago)
by rpaulo
Affects:  /svnadmin/conf/mentors
Add dim.
20:30:48 - r212009
(3 days 13 hours ago)
by rpaulo
Affects:  /svnadmin/conf/access
Please welcome Dimitry Andric (dim@) as a src committer. Dimitry will be
work on Clang for now.
ed@ is a co-mentor.

Approved by:    core
19:15:04 - r212008
(3 days 14 hours ago)
by delphij
Affects: 
(12 files)
/head/sys/dev/twa/*
Vendor update to version 3.80.06.003 to fix a panic with ZFS when under
heavy I/O load.

Many thanks to LSI for continuing to support FreeBSD.

PR:             kern/149968
Submitted by:   LSI (Tom Couch)
Reported by:    Kai Kockro <kkockro web de>
Tested by:      Kai Kockro, jpaetzel
MFC after:      7 days
18:53:12 - r212007
(3 days 14 hours ago)
by delphij
Affects: 
(7 files)
/stable/7/sys/*
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.
18:50:18 - r212006
(3 days 15 hours ago)
by delphij
Affects: 
(5 files)
/stable/7/sys/amd64/amd64/support.S
/stable/7/sys/cddl/contrib/opensolaris
/stable/7/sys/contrib/*
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
18:23:48 - r212005
(3 days 15 hours ago)
by delphij
Affects: 
(7 files)
/stable/8/sys/*
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
18:12:21 - r212004
(3 days 15 hours ago)
by rpaulo
Affects:  /head/sys/x86/x86/local_apic.c
When DTrace is enabled, make sure we don't overwrite the IDT_DTRACE_RET
entry with an IRQ for some hardware component.

Reviewed by:    jhb
Sponsored by:   The FreeBSD Foundation
17:34:59 - r212003
(3 days 16 hours ago)
by jkim
Affects: 
(7 files)
/stable/8/sys/*
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.
16:30:18 - r212002
(3 days 17 hours ago)
by jh
Affects: 
(5 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
/head/sys/kern/*
execve(2) has a special check for file permissions: a file must have at
least one execute bit set, otherwise execve(2) will return EACCES even
for an user with PRIV_VFS_EXEC privilege.

Add the check also to vaccess(9), vaccess_acl_nfs4(9) and
vaccess_acl_posix1e(9). This makes access(2) to better agree with
execve(2). Because ZFS doesn't use vaccess(9) for VEXEC, add the check
to zfs_freebsd_access() too. There may be other file systems which are
not using vaccess*() functions and need to be handled separately.

PR:             kern/125009
Reviewed by:    bde, trasz
Approved by:    pjd (ZFS part)
15:06:56 - r212001
(3 days 18 hours ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
Don't bump dumping too early.
14:44:22 - r212000
(3 days 19 hours ago)
by jh
Affects: 
(2 files)
/stable/8/sbin/bsdlabel/bsdlabel.c
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
14:26:02 - r211999
(3 days 19 hours ago)
by kib
Affects: 
(6 files)
/head/sys/kern/*
/head/sys/sys/*
Regen
14:24:44 - r211998
(3 days 19 hours ago)
by kib
Affects:  /head/sys/kern/syscalls.master
Make the syscalls reserved for AFS usable by OpenAFS port.

Submitted by:   Benjamin Kaduk <kaduk mit edu>
MFC after:      2 weeks
14:04:29 - r211997
(3 days 19 hours ago)
by attilio
Affects:  /projects/sv/sys/net/netdump_client.c
Use 'dumping' for discriminating against dump in progress.
13:26:07 - r211996
(3 days 20 hours ago)
by jchandra
Affects: 
(5 files)
/head/sys/mips/rmi/debug.h
/head/sys/mips/rmi/dev/*
/head/sys/mips/rmi/msgring.h
Move debug.h to the the rge driver directory. rge.c is the only user of
debug.h. Remove debug.h references from other files.
13:08:13 - r211995
(3 days 20 hours ago)
by tijl
Affects: 
(4 files)
/stable/6/sys/contrib/pf
/stable/6/sys/dev/cxgb
/stable/6/sys/i386/i386/sys_machdep.c
MFC r182959:

Remove warning about static LDT segment allocation. Applications
continue using it after ~7 years since warning was introduced, and there
is no reason to discourage them.

PR:             kern/124111
Approved by:    kib (mentor)
13:05:21 - r211994
(3 days 20 hours ago)
by jchandra
Affects: 
(21 files)
/head/sys/mips/rmi/*
Clean up header files in RMI platform code (sys/mips/rmi), and remove
unused files.

- remove clock.c and clock.h, these are not used after the new timer
  code was added.
- remove duplicated include files, fix header file ordering, remove
  some unneeded includes.
- rename mips/rmi/shared_structs.h which contains the RMI boot loader
  interface to mips/rmi/rmi_boot_info.h. Remove unused files
  mips/rmi/shared_structs_func.h and sys/mips/rmi/shared_structs_offsets.h
- merge mips/rmi/xlrconfig.h and mips/rmi/rmi_mips_exts.h, and remove
  duplicated functions.
- nlge - minor change to remove unneeded argument.
- Add FreeBSD svn keyword for headers
10:30:35 - r211993
(3 days 23 hours ago)
by attilio
Affects: 
(8 files)
/stable/8/sys/*
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
09:29:51 - r211992
(4 days ago)
by maxim
Affects:  /head/sys/netinet/ipfw/ip_fw_log.c
o Some programs could send broadcast/multicast traffic to ipfw
pseudo-interface.  This leads to a panic due to uninitialized
if_broadcastaddr address.  Initialize it and implement ip_output()
method to prevent mbuf leak later.

ipfw pseudo-interface should never send anything therefore call
panic(9) in if_start() method.

PR:             kern/149807
Submitted by:   Dmitrij Tejblum
MFC after:      2 weeks
08:23:22 - r211991
(4 days 1 hour ago)
by jchandra
Affects:  /head/sys/mips/include/pte.h
Remove misleading comment in pte.h. MIPS PTE entries are software managed
and does not need atomics.

Submitted by:   alc
07:29:27 - r211990
(4 days 2 hours ago)
by maxim
Affects:  /head/sbin/kldload/kldload.8
/head/sbin/kldload/kldload.c
Make flags in usage() and SYNOPSYS more style(9)-ish.

Suggested by:   brian
MFC after:      3 days
07:11:13 - r211989
(4 days 2 hours ago)
by maxim
Affects: 
(2 files)
/stable/8/share/man/man4/u3g.4
MFC r210181: fix typo.
07:09:40 - r211988
(4 days 2 hours ago)
by maxim
Affects: 
(2 files)
/stable/8/share/man/man4/ath.4
MFC r210000: correct path to include file.
07:06:27 - r211987
(4 days 2 hours ago)
by maxim
Affects: 
(2 files)
/stable/8/sbin/iscontrol/iscontrol.8
MFC r209972: restore missed flag in the synopsis.
07:04:19 - r211986
(4 days 2 hours ago)
by maxim
Affects: 
(2 files)
/stable/8/usr.sbin/mountd/exports.5
MFC r209926: fix typo.
06:50:33 - r211985
(4 days 3 hours ago)
by andrew
Affects: 
(4 files)
/projects/arm_eabi/contrib/binutils/*
Start to back port changed from binutils 2.16 for EABI.
Mark binaries built with the EABI to be marked correctly.
00:31:30 - r211984
(4 days 9 hours ago)
by pjd
Affects:  /head/sbin/hastd/hast.conf.5
/head/sbin/hastd/primary.c
/head/sbin/hastd/secondary.c
Execute hook when connection between the nodes is established or lost.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
00:12:10 - r211983
(4 days 9 hours ago)
by pjd
Affects:  /head/sbin/hastd/hast.conf.5
/head/sbin/hastd/primary.c
/head/sbin/hastd/secondary.c
Execute hook when split-brain is detected.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
00:06:05 - r211982
(4 days 9 hours ago)
by pjd
Affects:  /head/sbin/hastd/primary.c
Use sigtimedwait(2) for signals handling in primary process.
This fixes various races and eliminates use of pthread* API in signal handler.

Pointed out by: kib
With help from: jilles
MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010 - 08 - 29   (5 days ago)
22:55:21 - r211981
(4 days 10 hours ago)
by pjd
Affects:  /head/sbin/hastd/primary.c
- Move functionality responsible for checking one connection to separate
  function to make code more readable.
- Be sure not to reconnect too often in case of signal delivery, etc.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
22:22:15 - r211980
(4 days 11 hours ago)
by jilles
Affects:  /head/include/limits.h
Correct value for _POSIX_AIO_LISTIO_MAX in <limits.h>.

All the "Minimum Values" (POSIX.1-2008 XBD 13 Headers <limits.h>) are now
correct. These should all be exactly as they are in the specification; the
possibly higher values we support are announced differently.

PR:             standards/104743
Submitted by:   gcooper
MFC after:      2 weeks
22:17:53 - r211979
(4 days 11 hours ago)
by pjd
Affects:  /head/sbin/hastd/primary.c
Disconnect after logging errors.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
21:42:45 - r211978
(4 days 12 hours ago)
by pjd
Affects:  /head/sbin/hastd/control.c
/head/sbin/hastd/hast.conf.5
- Call hook on role change.
- Document new event.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
21:41:53 - r211977
(4 days 12 hours ago)
by pjd
Affects:  /head/sbin/hastd/hastd.c
/head/sbin/hastd/primary.c
/head/sbin/hastd/secondary.c
Allow to run hooks from the main hastd process.

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
21:39:49 - r211976
(4 days 12 hours ago)
by pjd
Affects:  /head/sbin/hastd/hooks.c
/head/sbin/hastd/hooks.h
- Add hook_fini() which should be called after fork() from the main hastd
  process, once it start to use hooks.
- Add hook_check_one() in case the caller expects different child processes
  and once it can recognize it, it will pass pid and status to hook_check_one().

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
21:37:21 - r211975
(4 days 12 hours ago)
by pjd
Affects:  /head/sbin/hastd/synch.h
Implement mtx_destroy() and rw_destroy().

MFC after:      2 weeks
Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
21:05:34 - r211974
(4 days 12 hours ago)
by nwhitehorn
Affects:  /user/nwhitehorn/ps3/powerpc/ps3/if_glc.c
Fix a horrible memory leak in glc(4) where no TX buffers were ever freed.
Performance is still bad (max 4.5 MB a second, so 40% wirespeed), but I
can live with that.
20:53:24 - r211973
(4 days 12 hours ago)
by jilles
Affects:  /head/tools/regression/bin/sh/builtins/command4.0
/head/tools/regression/bin/sh/builtins/command4.127
sh: Weaken builtins/command4 test to only require a nonzero exit status.

This matches what is in POSIX; various other shells use different exit
statuses.

Note that it is still required that there be no output.
20:25:25 - r211972
(4 days 13 hours ago)
by pjd
Affects:  /head/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
Give user a hint what to do when /usr/lib/zfs/pyzfs.py is missing.

MFC after:      2 weeks
20:21:10 - r211971
(4 days 13 hours ago)
by pjd
Affects:  /head/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
Print errors on stderr.

MFC after:      2 weeks
20:18:06 - r211970
(4 days 13 hours ago)
by pjd
Affects:  /head/cddl/contrib/opensolaris/lib/pyzfs/common/ioctl.c
Fix 'zfs allow' (maybe not only) returning:

        cannot access dataset system/usr/home: Operation not supported

by including libzfs_impl.h. What libzfs_impl.h does is to redefine ioctl() to
be compatible with OpenSolaris. More specifically OpenSolaris returns ENOMEM
when buffer is too small and sets field zc_nvlist_dst_size to the size that
will be big enough for the data. In FreeBSD case ioctl() doesn't copy data
structure back in case of a failure. We work-around it in kernel and libzfs by
returning 0 from ioctl() and always checking if zc_nvlist_dst_size hasn't
changed. For this work-around to work in pyzfs we need this compatible ioctl()
which is implemented in libzfs_impl.h.

MFC after:      2 weeks
18:50:30 - r211969
(4 days 15 hours ago)
by tuexen
Affects: 
(8 files)
/head/sys/netinet/*
/head/sys/netinet6/sctp6_usrreq.c
Fix the the SCTP_WITH_NO_CSUM option when used in combination with
interface supporting CRC offload. While at it, make use of the
feature that the loopback interface provides CRC offloading.

MFC after: 4 weeks
18:31:04 - r211968
(4 days 15 hours ago)
by nwhitehorn
Affects:  /user/nwhitehorn/ps3/powerpc/ps3/mmu_ps3.c
Fix recording of ref/change bits. Before we overwrote the entire lower
12 bits of the PVO PTE with the equivalent ones from the hardware PTE,
but these also store the page protection bits. The result was that
these would be overwritten with old values when syncing ref/changed during
a protection update, making all protection updates fail, breaking
copy-on-write as well as many other things.

With this change, my Playstation 3 now boots multiuser!
18:17:38 - r211967
(4 days 15 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/mmu_oea64.c
Avoid a race in the allocation of new segment IDs that could result in
memory corruption on heavily loaded SMP systems.

MFC after:      2 weeks
16:38:08 - r211966
(4 days 17 hours ago)
by kib
Affects:  /head/lib/libc/sys/sigaltstack.2
Use NULL instead of 0 for pointer in example.

MFC after:      3 days
12:17:16 - r211965
(4 days 21 hours ago)
by brian
Affects:  /head/bin/pax/pax.1
Touch the man page date after updating the ustar limitations.

MFC after:      3 weeks
12:14:53 - r211964
(4 days 21 hours ago)
by brian
Affects:  /head/tools/regression/bin/Makefile
/head/tools/regression/bin/pax/Makefile
Add a Makefile for tools/regression/bin and support 'all' in
pax/Makefile.

MFC after:      3 weeks
11:56:56 - r211963
(4 days 21 hours ago)
by brian
Affects: 
(5 files)
/head/bin/pax/pax.1
/head/bin/pax/tar.c
/head/tools/regression/bin/pax/*
Correct an out-by-one error when earlying out ustar filenames that
are too long.  Filenames escaping this test are caught later on,
so the bug doesn't cause any breakage.

Document the correct ustar limitations in pax.  As I have no access
to the IEEE 1003.2 spec, I can only assume that the limitations
imposed are in fact correct.

Add regression tests for the filename limitations imposed by pax.

MFC after:      3 weeks
11:32:41 - r211962
(4 days 22 hours ago)
by uqs
Affects:  /head/sbin/geom/class/sched/gsched.8
gsched(8): fix example usage, mdoc nits

- ad0 was referred to as da0
- wrong parameter -s instead of -a in example
- use double quotes consistently

PR:            docs/150082
Submitted by:  N.J. Mann <njm@njm.me.uk>
MFC after:     2 weeks
08:19:07 - r211961
(5 days 1 hour ago)
by davidxu
Affects:  /stable/8/lib/libthr
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
08:15:57 - r211960
(5 days 1 hour ago)
by davidxu
Affects:  /stable/8/lib/libthr/thread/thr_rtld.c
MFC r211833: Decrease rdlock count only when thread unlocked
a reader lock.
08:10:34 - r211959
(5 days 1 hour ago)
by kib
Affects: 
(7 files)
/stable/8/sys/*
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.
05:39:21 - r211958
(5 days 4 hours ago)
by jchandra
Affects:  /head/sys/mips/include/pmap.h
/head/sys/mips/mips/pmap.c
Apply MIPS pmap clean up patch from alc@ (with minor change to KASSERT):

  PMAP_DIAGNOSTIC was eliminated from amd64/i386, and, in fact, the
  non-MIPS parts of the kernel, several years ago.  Any of the interesting
  checks were turned into KASSERT()s.  Basically, the motivation was that
  lots of people run with INVARIANTS but no one runs with DIAGNOSTIC.

  panic strings needn't and shouldn't have a terminating newline.

  Finally, there is one functional change.  The sched_pin() in
  pmap_remove_pages() is an artifact of the way we temporarily map page
  table pages on i386.  (The mappings are processor private.  We don't do
  a system-wide shootdown.)  It isn't needed by MIPS.

Tested by: jchandra

Submitted by:   alc
03:55:39 - r211957
(5 days 5 hours ago)
by ume
Affects: 
(3 files)
/stable/7/lib/libc/net/gethostbydns.c
/stable/7/lib/libc/stdtime
MFC r211340: Correct the return code from _dns_gethostby*()
to correspond with h_errno.
03:53:17 - r211956
(5 days 5 hours ago)
by ume
Affects: 
(5 files)
/stable/8/lib/libc/*
MFC r211340: Correct the return code from _dns_gethostby*()
to correspond with h_errno.
02:51:17 - r211955
(5 days 7 hours ago)
by andrew
Affects:  /projects/arm_eabi/sys/arm/arm/trap.c
More style(9) fixes
02:42:03 - r211954
(5 days 7 hours ago)
by andrew
Affects:  /projects/arm_eabi/sys/arm/arm/exception.S
/projects/arm_eabi/sys/arm/arm/vm_machdep.c
Align the stack to an 8 byte boundary as required by the AAPCS
2010 - 08 - 28   (6 days ago)
23:50:09 - r211953
(5 days 10 hours ago)
by rmacklem
Affects:  /head/sys/fs/nfsserver/nfs_nfsdstate.c
Add acquisition of a reference count on nfsv4root_lock to the
nfsd_recalldelegation() function, since this function is called
by nfsd threads when they are handling NFSv2 or NFSv3 RPCs, where
no reference count would have been acquired.

MFC after:      2 weeks
22:14:24 - r211952
(5 days 11 hours ago)
by imp
Affects: 
(72 files)
/user/imp/tbemd/*
Merge from head at 211951
21:41:18 - r211951
(5 days 12 hours ago)
by rmacklem
Affects: 
(4 files)
/head/sys/fs/nfs/*
/head/sys/fs/nfsserver/*
The timer routine in the experimental NFS server did not acquire
the correct mutex when checking nfsv4root_lock. Although this
could be fixed by adding mutex lock/unlock calls, zack.kirsch at
isilon.com suggested a better fix that uses a non-blocking
acquisition of a reference count on nfsv4root_lock. This fix
allows the weird NFSLOCKSTATE(); NFSUNLOCKSTATE(); synchronization
to be deleted. This patch applies this fix.

Tested by:      zack.kirsch at isilon.com
MFC after:      2 weeks
21:15:00 - r211950
(5 days 12 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_output.c
Bugfix: Do not send a packet drop report in response to a received
        INIT-ACK with incorrect CRC.
21:06:13 - r211949
(5 days 12 hours ago)
by imp
Affects:  /head/share/mk/bsd.cpu.mk
Now that we default to the proper endian, we don't need these for mips
19:29:06 - r211948
(5 days 14 hours ago)
by pjd
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/rrwlock.c
Return NULL pointer instead of B_FALSE as it is done in the vendor code.

Obtained from:  //depot/user/pjd/zfs/...
19:28:12 - r211947
(5 days 14 hours ago)
by pjd
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/Makefile.files
Move ZUT_OBJS in the same place that is used in vendor code.

Obtained from:  //depot/user/pjd/zfs/...
19:02:51 - r211946
(5 days 14 hours ago)
by jchandra
Affects: 
(7 files)
/head/sys/mips/rmi/*
New driver nlge for XLR/XLS Network Accelerator. This will support the XGMAC
and XAUI 10G interfaces in addition RGMII/SGMII 1G interfaces.  This driver
is work in progress.

board.c and board.h expanded to include more info.

Only one of rge and nlge can be enabled at a time, rge will be deprecated
when nlge stabilizes.

Submitted by:   Sriram Gorti <srgorti at netlogicmicro com>
18:49:51 - r211945
(5 days 15 hours ago)
by imp
Affects: 
(224 files)
/user/imp/tbemd/*
Merge from head at 211943
17:59:51 - r211944
(5 days 15 hours ago)
by tuexen
Affects: 
(12 files)
/head/sys/netinet/*
/head/sys/netinet6/sctp6_usrreq.c
Fix the switching on/off of CMT using sysctl and socket option.
Fix the switching on/off of PF and NR-SACKs using sysctl.
Add minor improvement in handling malloc failures.
Improve the address checks when sending.

MFC after: 4 weeks
17:54:17 - r211943
(5 days 15 hours ago)
by ume
Affects: 
(2 files)
/stable/7/lib/libc/stdtime
Record mergeinfo for r211276.
17:52:53 - r211942
(5 days 15 hours ago)
by ume
Affects: 
(4 files)
/stable/8/lib/libc/locale
/stable/8/lib/libc/stdtime
/stable/8/lib/libc/sys
Record mergeinfo for r211276.
17:42:08 - r211941
(5 days 16 hours ago)
by kib
Affects:  /head/sys/kern/sys_generic.c
For some file types, select code registers two selfd structures. E.g.,
for socket, when specified POLLIN|POLLOUT in events, you would have one
selfd registered for receiving socket buffer, and one for sending. Now,
if both events are not ready to fire at the time of the initial scan,
but are simultaneously ready after the sleep, pollrescan() would iterate
over the pollfd struct twice. Since both times revents is not zero,
returned value would be off by one.

Fix this by recalculating the return value in pollout().

PR:     kern/143029
MFC after:      2 weeks
17:38:40 - r211940
(5 days 16 hours ago)
by kib
Affects:  /head/tools/regression/poll/pipepoll.c
Test the poll(2) return value.

MFC after:      2 weeks
17:12:52 - r211939
(5 days 16 hours ago)
by ume
Affects: 
(11 files)
/stable/7/lib/libc/net/*
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
17:06:22 - r211938
(5 days 16 hours ago)
by ume
Affects: 
(11 files)
/stable/8/lib/libc/net/*
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
16:57:07 - r211937
(5 days 16 hours ago)
by alc
Affects: 
(4 files)
/head/lib/libc/sys/mmap.2
/head/sys/sys/*
/head/sys/vm/vm_mmap.c
Add the MAP_PREFAULT_READ option to mmap(2).

Reviewed by:    jhb, kib
16:32:01 - r211936
(5 days 17 hours ago)
by brucec
Affects: 
(21 files)
/head/*
Fix incorrect usage of 'assure' and 'insure'.

Approved by: rrs (mentor)
15:04:53 - r211935
(5 days 18 hours ago)
by nwhitehorn
Affects: 
(5 files)
/head/usr.bin/truss/*
Fix breakage introduced in r211725 and improve functionality of truss on
64-bit powerpc by adding 32-bit compatibility features.
15:03:11 - r211934
(5 days 18 hours ago)
by nwhitehorn
Affects: 
(10 files)
/head/*
Repair some build breakage introduced in r211725 and garbage collect some
code made obsolete in the same commit.
14:15:18 - r211933
(5 days 19 hours ago)
by nwhitehorn
Affects:  /projects/ppc64
projects/ppc64 is now completely merged to HEAD and has served its purpose
well. Now it shall go to the great Attic in the sky.
09:24:11 - r211932
(6 days ago)
by mm
Affects: 
(11 files)
/head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c
/head/sys/cddl/compat/opensolaris/sys/policy.h
/head/sys/cddl/contrib/opensolaris/uts/common/*
Import changes from OpenSolaris that provide
- better ACL caching and speedup of ACL permission checks
- faster handling of stat()
- lowered mutex contention in the read/writer lock (rrwlock)
- several related bugfixes

Detailed information (OpenSolaris onnv changesets and Bug IDs):

9749:105f407a2680
6802734 Support for Access Based Enumeration (not used on FreeBSD)
6844861 inconsistent xattr readdir behavior with too-small buffer

9866:ddc5f1d8eb4e
6848431 zfs with rstchown=0 or file_chown_self privilege allows user to "take"
ownership

9981:b4907297e740
6775100 stat() performance on files on zfs should be improved
6827779 rrwlock is overly protective of its counters

10143:d2d432dfe597
6857433 memory leaks found at: zfs_acl_alloc/zfs_acl_node_alloc
6860318 truncate() on zfsroot succeeds when file has a component of its path
set without access permission

10232:f37b85f7e03e
6865875 zfs sometimes incorrectly giving search access to a dir

10250:b179ceb34b62
6867395 zpool_upgrade_007_pos testcase panic'd with BAD TRAP: type=e (#pf Page
fault)

10269:2788675568fd
6868276 zfs_rezget() can be hazardous when znode has a cached ACL

10295:f7a18a1e9610
6870564 panic in zfs_getsecattr

Approved by:    delphij (mentor)
Obtained from:  OpenSolaris (multiple Bug IDs)
MFC after:      2 weeks
08:59:55 - r211931
(6 days ago)
by mm
Affects: 
(12 files)
/head/cddl/contrib/opensolaris/cmd/zdb/zdb.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
Update ZFS metaslab code from OpenSolaris.
This provides a noticeable write speedup, especially on pools with
less than 30% of free space.

Detailed information (OpenSolaris onnv changesets and Bug IDs):

11146:7e58f40bcb1c
6826241 Sync write IOPS drops dramatically during TXG sync
6869229 zfs should switch to shiny new metaslabs more frequently

11728:59fdb3b856f6
6918420 zdb -m has issues printing metaslab statistics

12047:7c1fcc8419ca
6917066 zfs block picking can be improved

Approved by:    delphij (mentor)
Obtained from:  OpenSolaris (Bug ID 6826241, 6869229, 6918420, 6917066)
MFC after:      2 weeks
08:57:15 - r211930
(6 days ago)
by pjd
Affects:  /head/sys/kern/vfs_mount.c
/head/sys/kern/vfs_subr.c
/head/sys/sys/mount.h
There is a bug in vfs_allocate_syncvnode() failure handling in mount code.
Actually it is hard to properly handle such a failure, especially in MNT_UPDATE
case. The only reason for the vfs_allocate_syncvnode() function to fail is
getnewvnode() failure. Fortunately it is impossible for current implementation
of getnewvnode() to fail, so we can assert this and make
vfs_allocate_syncvnode() void. This in turn free us from handling its failures
in the mount code.

Reviewed by:    kib
MFC after:      1 month
08:39:37 - r211929
(6 days 1 hour ago)
by rpaulo
Affects:  /head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c
Remove debugging.

Sponsored by:   The FreeBSD Foundation
08:38:03 - r211928
(6 days 1 hour ago)
by pjd
Affects:  /head/sys/kern/subr_taskqueue.c
Run all tasks from a proper context, with proper priority, etc.

Reviewed by:    jhb
MFC after:      1 month
08:30:20 - r211927
(6 days 1 hour ago)
by pjd
Affects:  /head/sys/geom/eli/g_eli.c
/head/sys/geom/eli/g_eli.h
Correct offset conversion to little endian. It was implemented in version 2,
but because of a bug it was a no-op, so we were still using offsets in native
byte order for the host. Do it properly this time, bump version to 4 and set
the G_ELI_FLAG_NATIVE_BYTE_ORDER flag when version is under 4.

MFC after:      2 weeks
08:18:20 - r211926
(6 days 1 hour ago)
by rpaulo
Affects:  /head/sys/modules/dtrace/dtrace/Makefile
Add the path necessary to find fasttrap_isa.h to CFLAGS.

Sponsored by:   The FreeBSD Foundation
08:13:38 - r211925
(6 days 1 hour ago)
by rpaulo
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c
Replace a memory barrier with a mutex barrier.

Sponsored by:   The FreeBSD Foundation
08:03:29 - r211924
(6 days 1 hour ago)
by rpaulo
Affects: 
(6 files)
/head/sys/amd64/*
/head/sys/i386/*
Register an interrupt vector for DTrace return probes. There is some
code missing in lapic to make sure that we don't overwrite this entry,
but this will be done on a sequent commit.

Sponsored by:   The FreeBSD Foundation
07:58:10 - r211923
(6 days 1 hour ago)
by jchandra
Affects: 
(5 files)
/head/sys/mips/rmi/*
Initial code for XLR CompactFlash driver.

Submitted by:   Sreekanth M. S. <kanthms at netlogicmicro com>
07:24:45 - r211922
(6 days 2 hours ago)
by mav
Affects:  /head/sys/dev/ahci/ahci.c
MFata(4):
Add Intel Cougar Point PCH SATA Controller DeviceIDs. Correct some existing
entries for Intel Ibex Peak (5 Series/3400 Series) PCH SATA controllers.
07:21:15 - r211921
(6 days 2 hours ago)
by bschmidt
Affects: 
(20 files)
/stable/8/sys/*
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
07:10:51 - r211920
(6 days 2 hours ago)
by mav
Affects:  /head/sys/dev/ata/ata-pci.h
/head/sys/dev/ata/chipsets/ata-intel.c
Add Intel Cougar Point PCH SATA Controller DeviceIDs. Correct some existing
entries for Intel Ibex Peak (5 Series/3400 Series) PCH SATA controllers.

Submitted by:   jfv@
MFC after:      1 week
06:33:01 - r211919
(6 days 3 hours ago)
by jh
Affects: 
(3 files)
/stable/7/lib/libc/stdlib/reallocf.c
/stable/7/lib/libc/stdtime
MFC r204636:

In reallocf(3), free the memory only when size != 0. Otherwise, when the
System V compatibility option (malloc "V" flag) is in effect a zero sized
reallocf() could cause a double free.

PR:             bin/141753
06:31:15 - r211918
(6 days 3 hours ago)
by andrew
Affects:  /projects/arm_eabi/sys/conf/files.arm
/projects/arm_eabi/sys/conf/options.arm
Attach the sys/compat/arm to the build with the COMPAT_OABI option
06:28:02 - r211917
(6 days 3 hours ago)
by andrew
Affects:  /projects/arm_eabi/sys/compat/arm/freebsd_oabi_misc.c
Create the functions from syscalls.master. They'll panic to remind me to
implement them.
06:25:57 - r211916
(6 days 3 hours ago)
by andrew
Affects: 
(4 files)
/projects/arm_eabi/sys/compat/arm/*
Regen
06:25:08 - r211915
(6 days 3 hours ago)
by andrew
Affects:  /projects/arm_eabi/sys/compat/arm/syscalls.master
Use struct timespec_oabi over struct timespec
00:48:40 - r211914
(6 days 9 hours ago)
by delphij
Affects: 
(9 files)
/stable/8/sys/*
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.
00:34:22 - r211913
(6 days 9 hours ago)
by yongari
Affects: 
(10 files)
/head/sys/dev/e1000/*
/head/sys/dev/ixgb/*
/head/sys/dev/ixgbe/*
Do not allocate multicast array memory in multicast filter
configuration function. For failed memory allocations, em(4)/lem(4)
called panic(9) which is not acceptable on production box.
igb(4)/ixgb(4)/ix(4) allocated the required memory in stack which
consumed 768 bytes of stack memory which looks too big.

To address these issues, allocate multicast array memory in device
attach time and make multicast configuration success under any
conditions. This change also removes the excessive use of memory in
stack.

Reviewed by:    jfv
00:30:57 - r211912
(6 days 9 hours ago)
by mckusick
Affects:  /stable/8/sbin/fsck/fsck.8
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.
00:27:47 - r211911
(6 days 9 hours ago)
by mckusick
Affects:  /stable/8/sbin/fsck_ffs/fsck_ffs.8
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.
00:23:13 - r211910
(6 days 9 hours ago)
by jfv
Affects:  /head/sys/dev/sound/pci/hda/hdac.c
Add Intel Cougar Point PCH HD Audio Controller ID

MFC in a week
00:16:49 - r211909
(6 days 9 hours ago)
by yongari
Affects:  /head/sys/dev/e1000/if_em.c
If em(4) failed to allocate RX buffers, do not call panic(9).
Just showing some buffer allocation error is more appropriate
action for drivers. This should fix occasional panic reported on
em(4) when driver encountered resource shortage.

Reviewed by:    jfv
00:09:46 - r211908
(6 days 9 hours ago)
by jfv
Affects:  /head/sys/dev/ichwd/ichwd.c
/head/sys/dev/ichwd/ichwd.h
Add Intel Cougar Point PCH LPC Controller Device IDs
for watchdog support. Also add additional Intel Ibex
Peak (5 Series/3400 Series) PCH IDs.

MFC after a week
00:09:19 - r211907
(6 days 9 hours ago)
by yongari
Affects: 
(5 files)
/head/sys/dev/e1000/*
/head/sys/dev/ixgb/if_ixgb.c
/head/sys/dev/ixgbe/ixgbe.c
Do not call voluntary panic(9) in case of if_alloc() failure.

Reviewed by:    jfv

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 24 ms, 268 revisions printed. Current time is 2010-09-03 09:51:22. All times are in UTC/GMT.