]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoSeveral fixes to these drivers. Note that these two drivers are actually
jhb [Thu, 19 Nov 2009 19:25:47 +0000 (19:25 +0000)]
Several fixes to these drivers.  Note that these two drivers are actually
just two different attachments (EISA and PCI) to a single driver.
- Add real locking.  Previously these drivers only acquired their lock
  in their interrupt handler or in the ioctl routine (but too broadly in
  the latter).  No locking was used for the stack calling down into the
  driver via if_init() or if_start(), for device shutdown or detach.  Also,
  the interrupt handler held the driver lock while calling if_input().  All
  this stuff should be fixed in the locking changes.
- Really fix these drivers to handle if_alloc().  The front-end attachments
  were using if_initname() before the ifnet was allocated.  Fix this by
  moving some of the duplicated logic from each driver into pdq_ifattach().
  While here, make pdq_ifattach() return an error so that the driver just
  fails to attach if if_alloc() fails rather than panic'ing.  Also, defer
  freeing the ifnet until the driver has stopped using it during detach.
- Add a new private timer to drive the watchdog timer.
- Pass the softc pointer to the interrupt handlers instead of the device_t
  so we can avoid the use of device_get_softc() and to better match what
  other drivers do.

14 years ago- This driver used the if_watchdog timer both as a watchdog on transmit and
jhb [Thu, 19 Nov 2009 18:43:43 +0000 (18:43 +0000)]
- This driver used the if_watchdog timer both as a watchdog on transmit and
  auto-negotiation.  To make this simpler and easier to understand I have
  split this out into two separate timers.  One just manages the auto-neg
  side of things and one is a transmit watchdog.  Neither uses if_watchdog.
- Call ether_ifdetach() at the start of detach.

14 years ago- Use callout_init_mtx() instead of callout_init(..., CALLOUT_MPSAFE).
jhb [Thu, 19 Nov 2009 18:37:55 +0000 (18:37 +0000)]
- Use callout_init_mtx() instead of callout_init(..., CALLOUT_MPSAFE).
- Add a missing callout_drain() to detach.
- Hook into the stats timer and use that to drive the transmit watchdog
  instead of using if_watchdog.
- Run the stats timer every second to match other drivers instead of every
  other second.
- Remove dubious callout handling that stopped the timer only to start it
  again while holding the driver lock without dropping it in between the
  stop and the start.

14 years agoThis driver has two modes, a netgraph mode and an ifnet mode. In the
jhb [Thu, 19 Nov 2009 18:21:51 +0000 (18:21 +0000)]
This driver has two modes, a netgraph mode and an ifnet mode.  In the
netgraph mode it used a private timer to drive the transmit watchdog.  In
the ifnet mode it used if_watchdog.  Now it always uses the private timer.

14 years agoThese drivers only set if_timer but never set if_watchdog. Just remove
jhb [Thu, 19 Nov 2009 18:11:23 +0000 (18:11 +0000)]
These drivers only set if_timer but never set if_watchdog.  Just remove
the assignments to if_timer.

14 years agoAdd nanobsd example for the PC Engines ALIX board (serial console).
mr [Thu, 19 Nov 2009 16:27:51 +0000 (16:27 +0000)]
Add nanobsd example for the PC Engines ALIX board (serial console).

14 years agoTune CAM ATA kernel options a bit. Move PMP support from da to scbus and
mav [Thu, 19 Nov 2009 16:26:07 +0000 (16:26 +0000)]
Tune CAM ATA kernel options a bit. Move PMP support from da to scbus and
add ada device option, according to man page.

14 years agoProvide an effective (relocated) address when building modules metadata.
raj [Thu, 19 Nov 2009 16:25:41 +0000 (16:25 +0000)]
Provide an effective (relocated) address when building modules metadata.

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

MFC after: 1 week

14 years agoFix cpuid output on E500 core.
raj [Thu, 19 Nov 2009 16:21:26 +0000 (16:21 +0000)]
Fix cpuid output on E500 core.

14 years agoAdd ada(4) man page.
mav [Thu, 19 Nov 2009 16:19:05 +0000 (16:19 +0000)]
Add ada(4) man page.

14 years agoFix tinderbox build for i386 and sync amd64 with it.
jkim [Thu, 19 Nov 2009 15:45:24 +0000 (15:45 +0000)]
Fix tinderbox build for i386 and sync amd64 with it.

14 years agoExtend ddb(4) "show mount" command to print active string mount options.
jh [Thu, 19 Nov 2009 14:33:03 +0000 (14:33 +0000)]
Extend ddb(4) "show mount" command to print active string mount options.
Note that only option names are printed, not values.

Reviewed by: pjd
Approved by: trasz (mentor)
MFC after: 2 weeks

14 years agoAdapt r197136 to IPv6 stack:
bms [Thu, 19 Nov 2009 13:39:07 +0000 (13:39 +0000)]
Adapt r197136 to IPv6 stack:
  Comment some flawed assumptions in in6p_join_group() about
  mixing SSM full-state and delta-based APIs.

MFC after: 1 day

14 years agoAdapt r197135 to IPv6 stack:
bms [Thu, 19 Nov 2009 13:33:23 +0000 (13:33 +0000)]
Adapt r197135 to IPv6 stack:
  Don't allow joins w/o source on an existing group.
  This is almost always pilot error.

  We don't need to check for group filter UNDEFINED state at t1,
  because we only ever allocate filters with their groups, so we
  unconditionally reject such calls with EINVAL.
  Trying to change the active filter mode w/o going through IPV6_MSFILTER
  is also disallowed.

MFC after: 1 day

14 years agoAdapt r197132 to IPv6 stack:
bms [Thu, 19 Nov 2009 13:30:06 +0000 (13:30 +0000)]
Adapt r197132 to IPv6 stack:
  Tighten input checking in in6p_join_group():
   * Don't try to use the source address, when its family is unspecified.
   * If we get a join without a source, on an existing inclusive
     mode group, this is an error, as it would change the filter mode.

  Fix a problem with the handling of in6_mfilter for new memberships:
   * Do not rely on im6f being NULL; it is explicitly initialized to a
     non-NULL pointer when constructing a membership.
   * Explicitly initialize *im6f to EX mode when the source address
     is unspecified.

  This fixes a problem with in_mfilter slot recycling in the join path.

MFC after: 1 day

14 years agoCorrect a comment.
bms [Thu, 19 Nov 2009 13:21:37 +0000 (13:21 +0000)]
Correct a comment.

MFC after: 1 day

14 years agoAdapt r197314 to IPv6 stack:
bms [Thu, 19 Nov 2009 12:21:20 +0000 (12:21 +0000)]
Adapt r197314 to IPv6 stack:
  Return ENOBUFS consistently if user attempts to exceed
  in_mcast_maxsocksrc resource limit.

MFC after: 1 day

14 years agoAdapt r197130 to IPv6 stack:
bms [Thu, 19 Nov 2009 12:18:30 +0000 (12:18 +0000)]
Adapt r197130 to IPv6 stack:
  Fix an obvious logic error in the IPv4 multicast leave processing,
  where the filter mode vector was not updated correctly after the leave.

MFC after: 1 day

14 years agoAdapt the fix for IGMPv2 in r199287 for the IPv6 stack.
bms [Thu, 19 Nov 2009 11:55:19 +0000 (11:55 +0000)]
Adapt the fix for IGMPv2 in r199287 for the IPv6 stack.
Only multicast routing is affected by the issue.

MFC after: 1 day

14 years agofix spelling mistake
darrenr [Thu, 19 Nov 2009 08:10:24 +0000 (08:10 +0000)]
fix spelling mistake

14 years agoopt_* headers are included using the quoted form.
marcel [Thu, 19 Nov 2009 01:27:22 +0000 (01:27 +0000)]
opt_* headers are included using the quoted form.

14 years agoAdd a test case for very long BPF program.
jkim [Thu, 19 Nov 2009 00:00:31 +0000 (00:00 +0000)]
Add a test case for very long BPF program.

14 years ago- Change internal function bpf_jit_compile() to return allocated size of
jkim [Wed, 18 Nov 2009 23:40:19 +0000 (23:40 +0000)]
- Change internal function bpf_jit_compile() to return allocated size of
the generated binary and remove page size limitation for userland.
- Use contigmalloc(9)/contigfree(9) instead of malloc(9)/free(9) to make
sure the generated binary aligns properly and make it physically contiguous.

14 years ago- Make BPF JIT compiler working again in userland. We are limiting size of
jkim [Wed, 18 Nov 2009 19:26:17 +0000 (19:26 +0000)]
- Make BPF JIT compiler working again in userland.  We are limiting size of
generated native binary to page size for now.
- Update copyright date and fix some style nits.

14 years agoAdd WorldB SKU.
rpaulo [Wed, 18 Nov 2009 18:48:18 +0000 (18:48 +0000)]
Add WorldB SKU.

Reviewed by: sam
MFC after: 1 week

14 years agoSimplify both the invocation and the implementation of vm_fault() for wiring
alc [Wed, 18 Nov 2009 18:05:54 +0000 (18:05 +0000)]
Simplify both the invocation and the implementation of vm_fault() for wiring
pages.

(Note: Claims made in the comments about the handling of breakpoints in
wired pages have been false for roughly a decade.  This and another bug
involving breakpoints will be fixed in coming changes.)

Reviewed by: kib

14 years agoFix mistyped \n in makc's label.
mandree [Wed, 18 Nov 2009 14:47:47 +0000 (14:47 +0000)]
Fix mistyped \n in makc's label.

This and previous commit have been...
Approved by:    garga (mentor)

14 years agoAdd mandree@ and mentorship relations with garga/miwi.
mandree [Wed, 18 Nov 2009 14:46:46 +0000 (14:46 +0000)]
Add mandree@ and mentorship relations with garga/miwi.

14 years agoFix a bug where the system panics when a SHUTDOWN is received with an
tuexen [Wed, 18 Nov 2009 12:17:06 +0000 (12:17 +0000)]
Fix a bug where the system panics when a SHUTDOWN is received with an
illegal TSN.

Approved by: rrs (mentor)
MFC after: ASAP

14 years agoMake following functions be cancellation points:
davidxu [Wed, 18 Nov 2009 06:10:50 +0000 (06:10 +0000)]
Make following functions be cancellation points:
mq_receive
mq_send
mq_timereceive
mq_timedsend

14 years agolink libpthread because the librt really needs it to fully function.
davidxu [Wed, 18 Nov 2009 05:09:03 +0000 (05:09 +0000)]
link libpthread because the librt really needs it to fully function.

14 years agoFix compiler warnings.
davidxu [Wed, 18 Nov 2009 01:35:36 +0000 (01:35 +0000)]
Fix compiler warnings.

14 years agoAdd a missing .Ed tag.
delphij [Wed, 18 Nov 2009 01:13:15 +0000 (01:13 +0000)]
Add a missing .Ed tag.

MFC after: 2 weeks

14 years agorc.early(8) was removed as of 20090530 so remove manual page reference
delphij [Wed, 18 Nov 2009 00:56:05 +0000 (00:56 +0000)]
rc.early(8) was removed as of 20090530 so remove manual page reference
to it.

MFC after: 1 week

14 years agoGet rid of unused fields addr_over which is never really used,
tuexen [Tue, 17 Nov 2009 23:03:38 +0000 (23:03 +0000)]
Get rid of unused fields addr_over which is never really used,
only copied around.

Approved by: rrs (mentor)

14 years agoAdd pwait utility, which waits for any process to terminate.
jilles [Tue, 17 Nov 2009 22:47:20 +0000 (22:47 +0000)]
Add pwait utility, which waits for any process to terminate.

This is similar to the Solaris utility of the same name.

Some use cases:
* rc.subr's wait_for_pids
* interactive use, e.g. to shut down the computer when some task is done
  even if the task is already running

Discussed on: hackers@

14 years ago- Unbreak build with KLD_DEBUG defined
gonzo [Tue, 17 Nov 2009 21:56:12 +0000 (21:56 +0000)]
- Unbreak build with KLD_DEBUG defined
- Add debug.kld_debug sysctl to control KLD debugging level
- Print information about KLD dependencies with debug enabled

14 years agoUnroll copying of the registers in {g,s}et_mcontext() and limit it
marius [Tue, 17 Nov 2009 21:08:10 +0000 (21:08 +0000)]
Unroll copying of the registers in {g,s}et_mcontext() and limit it
to the set actually restored by tl0_ret() instead of using the whole
trapframe. Additionally skip %g7 as that register is used as the
userland TLS pointer.

PR: 140523
MFC after: 1 week

14 years agoUse always LIST_EMPTY instead of sometime SCTP_LIST_EMPTY,
tuexen [Tue, 17 Nov 2009 20:56:14 +0000 (20:56 +0000)]
Use always LIST_EMPTY instead of sometime SCTP_LIST_EMPTY,
which is defined as LIST_EMPTY.

Approved by: rrs (mentor)
MFC after: 1 month

14 years agoCatch up with r144020's /Dir_FindFile/Path_FindFile/
obrien [Tue, 17 Nov 2009 19:35:39 +0000 (19:35 +0000)]
Catch up with r144020's /Dir_FindFile/Path_FindFile/

14 years agoFix pgsignal() call after signature change in r199355.
kib [Tue, 17 Nov 2009 19:24:26 +0000 (19:24 +0000)]
Fix pgsignal() call after signature change in r199355.

Reported and tested by: bf1783 googlemail com
MFC after: 1 month

14 years ago- Update Hungarian libc catalog
gabor [Tue, 17 Nov 2009 18:57:44 +0000 (18:57 +0000)]
- Update Hungarian libc catalog

14 years agoUse the bus_*() routines rather than bus_space_*() for register operations.
jhb [Tue, 17 Nov 2009 18:22:14 +0000 (18:22 +0000)]
Use the bus_*() routines rather than bus_space_*() for register operations.

14 years agoIt seems generation of link state change of e1000phy(4) is not
yongari [Tue, 17 Nov 2009 18:19:45 +0000 (18:19 +0000)]
It seems generation of link state change of e1000phy(4) is not
reliable on some Marvell PHYs. If msk(4) know it still does not
have established link check whether msk(4) missed the link state
change by looking into polled link state.

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

14 years agoUnify fifolog_writer usage printout with fifolog_create and
jh [Tue, 17 Nov 2009 17:38:41 +0000 (17:38 +0000)]
Unify fifolog_writer usage printout with fifolog_create and
fifolog_reader.

Approved by: trasz (mentor)

14 years agoAlways use a private timer instead of if_watchdog and if_timer to drive
jhb [Tue, 17 Nov 2009 16:43:02 +0000 (16:43 +0000)]
Always use a private timer instead of if_watchdog and if_timer to drive
the transmit watchdog.  These drivers already used a private timer when
compiled to use Netgraph.  This change just makes them always use the
private timer.  Note that these drivers do not compile and are disconnected
from the build due to TTY changes.

14 years agoCatch up with r130332 which changed the default timezone from GMT to UTC.
obrien [Tue, 17 Nov 2009 16:29:39 +0000 (16:29 +0000)]
Catch up with r130332 which changed the default timezone from GMT to UTC.
Otherwise the tzload() (when called by gmtload()) fails to locate the UTC
file and loads the posixrules.

14 years agoGarbage collect some old #ifdef'ed code from 1994 that causes vi's '%'
obrien [Tue, 17 Nov 2009 16:26:45 +0000 (16:26 +0000)]
Garbage collect some old #ifdef'ed code from 1994 that causes vi's '%'
to be unable to find a match in Path_FindFile().

14 years agofixed two race conditions when inserting/removing SAs via PFKey,
vanhu [Tue, 17 Nov 2009 16:00:41 +0000 (16:00 +0000)]
fixed two race conditions when inserting/removing SAs via PFKey,
which can both lead to a kernel panic when adding/removing quickly
a lot of SAs.

Obtained from: NETASQ
MFC after: 2w (MFC on 8 before 8.0 release ???)

14 years agoRemove duplicate 'ural' entry since it was added to the MI NOTES a while
jhb [Tue, 17 Nov 2009 15:47:19 +0000 (15:47 +0000)]
Remove duplicate 'ural' entry since it was added to the MI NOTES a while
ago.

14 years agoUse a private callout timer to drive the transmit watchdog instead of using
jhb [Tue, 17 Nov 2009 14:23:09 +0000 (14:23 +0000)]
Use a private callout timer to drive the transmit watchdog instead of using
if_watchdog and if_timer.  The driver already contained an optional stats
timer that individual attachments could use to provide a 'tick' event.  The
stats timer only ran if the tick function pointer was non-NULL and the
attachment's tick routine had to call callout_reset(), etc.  Now the driver
always schedules a stat timer and manages the callout_reset() internally.
This timer is used to drive the watchdog and will also call the attachment's
'tick' handler if one is provided.

Tested by: WATANABE Kazuhiro

14 years agoUse a private timer to run the statistics timer instead of (ab)using
jhb [Tue, 17 Nov 2009 14:13:30 +0000 (14:13 +0000)]
Use a private timer to run the statistics timer instead of (ab)using
if_watchdog and if_timer.

Tested by: WATANABE Kazuhiro  CQG00620 of nifty.ne.jp

14 years agoFix a bug where queued ASCONF messags are not sent out.
tuexen [Tue, 17 Nov 2009 13:36:21 +0000 (13:36 +0000)]
Fix a bug where queued ASCONF messags are not sent out.

Approved by: rrs (mentor)
Obtained from: Irene Ruengeler
MFC after: 1 month

14 years agoFix a memory leak when destroying an SCTP stack.
tuexen [Tue, 17 Nov 2009 13:13:58 +0000 (13:13 +0000)]
Fix a memory leak when destroying an SCTP stack.
Clean up sctp_pcb_finish().
Approved by: rrs (mentor)
MFC after: 1 month

14 years agoDo not start the iterator when there are no associations.
tuexen [Tue, 17 Nov 2009 13:11:23 +0000 (13:11 +0000)]
Do not start the iterator when there are no associations.
This fixes a bug found by Irene Ruengeler.

Approved by: rrs (mentor)
MFC after: 1 month

14 years agoDisable (temporary) the thread based interator. It does not work with vnet.
tuexen [Tue, 17 Nov 2009 13:09:50 +0000 (13:09 +0000)]
Disable (temporary) the thread based interator. It does not work with vnet.

Approved by: rrs (mentor)

14 years agoAllow the UMA to free data. This resolves the UMA related bug reported
tuexen [Tue, 17 Nov 2009 13:08:15 +0000 (13:08 +0000)]
Allow the UMA to free data. This resolves the UMA related bug reported
by Julian.

Approved by: rrs (mentor)
MFC after: 1 month

14 years agoDo not hold the lock longer than necessary.
tuexen [Tue, 17 Nov 2009 13:05:51 +0000 (13:05 +0000)]
Do not hold the lock longer than necessary.

Approved by: rrs (mentor)
MFC after: 1 month

14 years agoFix a LOR showing up with sctp_bsd_addr(): Do not hold a rt lock
tuexen [Tue, 17 Nov 2009 12:57:10 +0000 (12:57 +0000)]
Fix a LOR showing up with sctp_bsd_addr(): Do not hold a rt lock
when calling rt_newaddrmsg().

Reviewed by: qingli
Approved by: rrs (mentor)
MFC after: 1 month

14 years agoAmong signal generation syscalls, only sigqueue(2) is allowed by POSIX
kib [Tue, 17 Nov 2009 11:39:15 +0000 (11:39 +0000)]
Among signal generation syscalls, only sigqueue(2) is allowed by POSIX
to fail due to lack of resources to queue siginfo. Add KSI_SIGQ flag
that allows sigqueue_add() to fail while trying to allocate memory for
new siginfo. When the flag is not set, behaviour is the same as for
KSI_TRAP: if memory cannot be allocated, set bit in sq_kill. KSI_TRAP is
kept to preserve KBI.

Add SI_KERNEL si_code, to be used in siginfo.si_code when signal is
generated by kernel. Deliver siginfo when signal is generated by kill(2)
family of syscalls (SI_USER with properly filled si_uid and si_pid), or
by kernel (SI_KERNEL, mostly job control or SIGIO). Since KSI_SIGQ flag
is not set for the ksi, low memory condition cause old behaviour.

Keep psignal(9) KBI intact, but modify it to generate SI_KERNEL
si_code. Pgsignal(9) and gsignal(9) now take ksi explicitely. Add
pksignal(9) that behaves like psignal but takes ksi, and ddb kill
command implemented as pksignal(..., ksi = NULL) to not do allocation
while in debugger.

While there, remove some register specifiers and use ANSI C prototypes.

Reviewed by: davidxu
MFC after: 1 month

14 years agoFix small resource leak (memory).
netchild [Tue, 17 Nov 2009 07:29:35 +0000 (07:29 +0000)]
Fix small resource leak (memory).

Reviewed by: gad
MFC after: 1 week

14 years agoFix typo.
brueffer [Tue, 17 Nov 2009 07:06:41 +0000 (07:06 +0000)]
Fix typo.

PR: 140615
Submitted by: Andrius Morkunas <hinokind@gmail.com>
MFC after: 3 days

14 years agoWe should distinguish between a real truncated case and EOF after
delphij [Mon, 16 Nov 2009 22:52:52 +0000 (22:52 +0000)]
We should distinguish between a real truncated case and EOF after
BZ_STREAM_END triggered re-init.  Do it by introducing a new flag
to represent the 'cold' case after bzip2 state is reinitialized.

This fixes regression reported on -current@ as well as another one
I found during twiddling with gzip.

Reported by: swell.k gmail.com
MFC after: 1 week

14 years agoAdd a forgotten module Makefile change from the previous commit.
jkim [Mon, 16 Nov 2009 21:53:56 +0000 (21:53 +0000)]
Add a forgotten module Makefile change from the previous commit.

14 years agoMerge ACPICA 20091112.
jkim [Mon, 16 Nov 2009 21:47:12 +0000 (21:47 +0000)]
Merge ACPICA 20091112.

14 years agoMFV of tzdata2009s, r199334
edwin [Mon, 16 Nov 2009 21:12:27 +0000 (21:12 +0000)]
MFV of tzdata2009s, r199334

- Fix (harmless) typo in the definitions of Antarctica/David
- Fiji will go into DST from 29 November 2009 to 25 April 2010.

MFC after: 3 days

14 years agoDo not require payload data to be aligned. It is not mentioned in datasheet
mav [Mon, 16 Nov 2009 20:54:47 +0000 (20:54 +0000)]
Do not require payload data to be aligned. It is not mentioned in datasheet
and works fine in practice.

14 years agoSort ID list by vendor.
thompsa [Mon, 16 Nov 2009 20:36:43 +0000 (20:36 +0000)]
Sort ID list by vendor.

14 years agoAdd the Curitel UM175 3g device.
thompsa [Mon, 16 Nov 2009 20:35:16 +0000 (20:35 +0000)]
Add the Curitel UM175 3g device.

14 years agoSync with C.msg r199083.
jkim [Mon, 16 Nov 2009 19:10:09 +0000 (19:10 +0000)]
Sync with C.msg r199083.

14 years agoImport ACPICA 20091112.
jkim [Mon, 16 Nov 2009 18:28:41 +0000 (18:28 +0000)]
Import ACPICA 20091112.

14 years agoChange the way in which AHCI+PATA combined controllers, such as JMicron
mav [Mon, 16 Nov 2009 15:38:27 +0000 (15:38 +0000)]
Change the way in which AHCI+PATA combined controllers, such as JMicron
and Marvell handled. Instead of trying to attach two different drivers to
single device, wrapping each call, make one of them (atajmicron, atamarvell)
attach do device solely, but create child device for AHCI driver,
passing it all required resources. It is quite easy, as none of
resources are shared, except IRQ.

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

14 years agoDisable PortMultiplier Async Notifications for time of ports reset.
mav [Mon, 16 Nov 2009 15:18:02 +0000 (15:18 +0000)]
Disable PortMultiplier Async Notifications for time of ports reset.
They are useless at that time, but confuse Marvell AHCI.

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

14 years agoFix grammar.
brueffer [Mon, 16 Nov 2009 14:33:31 +0000 (14:33 +0000)]
Fix grammar.

PR: 140459
Submitted by: Jeremy Huddleston <Jeremyhu@apple.com>
MFC after: 1 week

14 years agoUppercase the UL suffix on a constant, so Flexelint doesn't worry that
phk [Mon, 16 Nov 2009 10:53:04 +0000 (10:53 +0000)]
Uppercase the UL suffix on a constant, so Flexelint doesn't worry that
'u1' might have been intended.  No, that does not make sense and yes
I have told them.

14 years agoFix a memory leak in acl_from_text() in case the conversion succeeded.
brueffer [Mon, 16 Nov 2009 09:28:22 +0000 (09:28 +0000)]
Fix a memory leak in acl_from_text() in case the conversion succeeded.

Submitted by: Jim Wilcoxson <prirun@gmail.com>
MFC after: 1 week

14 years agoIn r199127/r199152 I forgot to bump .Dd
dougb [Sun, 15 Nov 2009 23:31:07 +0000 (23:31 +0000)]
In r199127/r199152 I forgot to bump .Dd

14 years agoAdd atp(4) man page.
rpaulo [Sun, 15 Nov 2009 18:31:57 +0000 (18:31 +0000)]
Add atp(4) man page.

Submitted by:  Rohit Grover <rgrover1@gmail.com>

14 years agoCollapse devinfo_state_t with device_state_t in order to avoid a
attilio [Sun, 15 Nov 2009 16:44:43 +0000 (16:44 +0000)]
Collapse devinfo_state_t with device_state_t in order to avoid a
structure replication and improve manteneability.

Reviewed by: jhb, imp
Tested by: Riccardo Torrini <riccardo at torrini dot org>

14 years agoFix a functional regression in multicast.
bms [Sun, 15 Nov 2009 11:07:22 +0000 (11:07 +0000)]
Fix a functional regression in multicast.

Userland daemons need to see IGMP traffic regardless of the group;
omit the imo filter check if the proto is IGMP. The kernel part
of IGMP will have already filtered appropriately at this point.

MFC after:      ASAP
Submitted by:   Franz Struwig
Reported by:    Ivor Prebeg, Franz Struwig

14 years agoRevert previous change and fix misalignment by using bcopy()
marcel [Sun, 15 Nov 2009 03:09:50 +0000 (03:09 +0000)]
Revert previous change and fix misalignment by using bcopy()
to copy the file handle from fid_data into fh. This eliminates
conditional compilation.

Pointed out by: imp

14 years agosh: Allow a newline before "in" in a for command, as required by POSIX.
jilles [Sat, 14 Nov 2009 22:08:32 +0000 (22:08 +0000)]
sh: Allow a newline before "in" in a for command, as required by POSIX.

14 years agoMFp4:
mav [Sat, 14 Nov 2009 20:30:42 +0000 (20:30 +0000)]
MFp4:
Some more missed parts from previous commits.

14 years agoMFp4:
mav [Sat, 14 Nov 2009 20:23:20 +0000 (20:23 +0000)]
MFp4:
Remove code that years ago was closing race between request submission
to SIM and device/SIM freeze. That race become impossible after moving from
spl to mutex locking, while this workaround causes some unexpected effects.

14 years agoMFp4:
mav [Sat, 14 Nov 2009 20:13:38 +0000 (20:13 +0000)]
MFp4:
Fix several device freeze counting bugs.

14 years agoMFp4:
mav [Sat, 14 Nov 2009 20:06:04 +0000 (20:06 +0000)]
MFp4:
Check SNCQ HBA capability bit when reporting NCQ support to CAM.

14 years agoFix an obvious panic by not casting from a pointer that is 4-bytes
marcel [Sat, 14 Nov 2009 18:14:07 +0000 (18:14 +0000)]
Fix an obvious panic by not casting from a pointer that is 4-bytes
alignment to a type that needs 8-byte alignment, and thus causing
misaligned memory references.

MFC after: 1 week

14 years agoPrevious solution appeared to be unsufficient. After additional testing
mav [Sat, 14 Nov 2009 16:20:07 +0000 (16:20 +0000)]
Previous solution appeared to be unsufficient. After additional testing
I have found that it is not only desktop CPUs problem. but mobile also.
Probably AP on laptops just started initially at lower frequency, hiding
the problem.

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

Now my iXsystems Invincibook is able to run at 800MHz lowest frequency,
instead of 1200MHz before, when 800MHz was incorrectly reported invalid.

14 years agoSince %b contains unit, %b is not suitable for c_fmt, now. Use %_m
ume [Sat, 14 Nov 2009 15:56:23 +0000 (15:56 +0000)]
Since %b contains unit, %b is not suitable for c_fmt, now.  Use %_m
instead.

14 years agoFix white space in rtld runtime error printf.
rwatson [Sat, 14 Nov 2009 15:08:44 +0000 (15:08 +0000)]
Fix white space in rtld runtime error printf.

MFC after: 3 days

14 years agoRetry only once, if BIOS is completely broken and gives zero freqs.
mav [Sat, 14 Nov 2009 14:29:18 +0000 (14:29 +0000)]
Retry only once, if BIOS is completely broken and gives zero freqs.

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

To workaround this, add check for validation result. If we haven't found
at least two usable frequencies, then probably we are looking bad and have
to trust data provided by BIOS as-is.

14 years agoUpdate malloc utrace structure parsing to reflect the change (r199265)
cperciva [Sat, 14 Nov 2009 09:33:51 +0000 (09:33 +0000)]
Update malloc utrace structure parsing to reflect the change (r199265)
in how malloc_init is logged from (0, 0, 0) to (-1, 0, 0).

While we're here, simplify the logic.

Reviewed by: jhb (earlier version)

14 years agoChange the utrace log entry for malloc_init from (0, 0, 0) to (-1, 0, 0)
cperciva [Sat, 14 Nov 2009 09:31:47 +0000 (09:31 +0000)]
Change the utrace log entry for malloc_init from (0, 0, 0) to (-1, 0, 0)
in order to distinguish it from free(NULL), which is logged as (0, 0, 0).

Reviewed by: jhb

14 years agoMFp4:
mav [Sat, 14 Nov 2009 08:08:49 +0000 (08:08 +0000)]
MFp4:
Do not enable tagged queueing if controller reports 0 tags support.

14 years agoDisable PMP probing for Marvell AHCI controllers.
mav [Sat, 14 Nov 2009 08:04:38 +0000 (08:04 +0000)]
Disable PMP probing for Marvell AHCI controllers.
It is not working for some reason. Linux does the same.

14 years agoAdd sysctls in ahd(4) in order to keep track of different classes of
attilio [Fri, 13 Nov 2009 22:57:20 +0000 (22:57 +0000)]
Add sysctls in ahd(4) in order to keep track of different classes of
errors. So far 3 different classes are present (correctable,
uncorrectable and fatal) but more can be added easilly.

Obtained from: Sandvine Incorporated
Reviewed by: emase, gibbs
Sponsored by: Sandvine Incorporated
MFC: 2 weeks

14 years agoAdd support for SATA ports on SATA+PATA Marvell controllers.
mav [Fri, 13 Nov 2009 22:53:49 +0000 (22:53 +0000)]
Add support for SATA ports on SATA+PATA Marvell controllers.
These controllers provide combination of AHCI for SATA and legacy
PCI ATA for PATA. Use same solution as used for JMicron controllers.
Add IDs of Marvell 88SX6102, 88SX6111. 88SX6141 alike controllers

14 years agoAdd more codec IDs.
mav [Fri, 13 Nov 2009 21:06:33 +0000 (21:06 +0000)]
Add more codec IDs.

14 years agoRemove a note about vfork(4) going to be eliminated, it's here to stay.
brueffer [Fri, 13 Nov 2009 13:26:27 +0000 (13:26 +0000)]
Remove a note about vfork(4) going to be eliminated, it's here to stay.

Submitted by: kib
MFC after: 1 week