]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoSet correct USB device description
thompsa [Tue, 22 Dec 2009 02:04:16 +0000 (02:04 +0000)]
Set correct USB device description

Submitted by: Paul B Mahol

14 years agoAdd more OHCI pci ids.
thompsa [Tue, 22 Dec 2009 01:59:17 +0000 (01:59 +0000)]
Add more OHCI pci ids.

Submitted by: Hans Petter Selasky

14 years agoAdd more EHCI pci ids.
thompsa [Tue, 22 Dec 2009 01:57:34 +0000 (01:57 +0000)]
Add more EHCI pci ids.

Submitted by: Hans Petter Selasky

14 years agoMake graid3 fallback to malloc() when component request size is bigger
mav [Mon, 21 Dec 2009 23:31:03 +0000 (23:31 +0000)]
Make graid3 fallback to malloc() when component request size is bigger
then maximal prepared UMA zone size. This fixes crash with MAXPHYS > 128K.

14 years agoSupport the tablet in (at least) the Toshiba Portege M200 Tablet PC.
gavin [Mon, 21 Dec 2009 22:57:40 +0000 (22:57 +0000)]
Support the tablet in (at least) the Toshiba Portege M200 Tablet PC.
This device only appears on the ACPI bus, so isn't caught by the current
entry for it in the uart(4) ISA attachment.

PR: kern/140172
Reviewed by: jhb, marcel
Approved by: ed (mentor)
MFC after: 2 weeks

14 years agoGrammar and minor tweaks to powerd(8) man page.
gavin [Mon, 21 Dec 2009 22:56:06 +0000 (22:56 +0000)]
Grammar and minor tweaks to powerd(8) man page.

PR: docs/133186
Approved by: ed (mentor)
MFC after: 2 weeks

14 years agorc.subr: Use pwait in wait_for_pids.
jilles [Mon, 21 Dec 2009 22:16:07 +0000 (22:16 +0000)]
rc.subr: Use pwait in wait_for_pids.

This waits for the requested process(es) to terminate, rather than polling
with an interval of 2 seconds.

If pwait is not available, the old method is used.

PR: conf/132766
Reviewed by: dougb

14 years agoSpell AMD properly.
mav [Mon, 21 Dec 2009 21:47:33 +0000 (21:47 +0000)]
Spell AMD properly.

14 years agoAdd missing module dependency information.
marius [Mon, 21 Dec 2009 21:41:33 +0000 (21:41 +0000)]
Add missing module dependency information.

14 years agoProvide and consume missing module dependency information.
marius [Mon, 21 Dec 2009 21:29:16 +0000 (21:29 +0000)]
Provide and consume missing module dependency information.

14 years agoClear all ports interrupt status bits in single write. Clearing one by one
mav [Mon, 21 Dec 2009 21:27:56 +0000 (21:27 +0000)]
Clear all ports interrupt status bits in single write. Clearing one by one
causes additional MSIs messages sent if several ports asked for attention
same time. Time window before clearing is not important, as these interrupts
are level triggered by interrupt source.

14 years agoAdd regression test for NFSv4 ACLs on UFS.
trasz [Mon, 21 Dec 2009 20:47:41 +0000 (20:47 +0000)]
Add regression test for NFSv4 ACLs on UFS.

14 years agoSort function prototyes.
yongari [Mon, 21 Dec 2009 20:42:23 +0000 (20:42 +0000)]
Sort function prototyes.

14 years agoBy popular request, execute rc.d scripts in the same environment
dougb [Mon, 21 Dec 2009 20:32:04 +0000 (20:32 +0000)]
By popular request, execute rc.d scripts in the same environment
as they are at boot time.

Original concept submitted by: ume

14 years agostyle(9)
yongari [Mon, 21 Dec 2009 20:18:01 +0000 (20:18 +0000)]
style(9)

14 years agoDon't consider non-existence of a PID file an error, we should be able
delphij [Mon, 21 Dec 2009 20:12:01 +0000 (20:12 +0000)]
Don't consider non-existence of a PID file an error, we should be able
to proceed anyway as this most likely mean that the process has been
terminated.

PR: bin/140397
Submitted by: Dan Lukes <dan obluda cz>
MFC after: 1 month

14 years agoRemove commented out prototype for ifinit(). This prototype has been
jhb [Mon, 21 Dec 2009 20:09:19 +0000 (20:09 +0000)]
Remove commented out prototype for ifinit().  This prototype has been
commented out since 1.1 and has not been present in <sys/systm.h> since at
least 1.1 of that file.  It is also not needed in FreeBSD due to SYSINIT().

14 years agoRemove trailing white spaces.
yongari [Mon, 21 Dec 2009 20:02:12 +0000 (20:02 +0000)]
Remove trailing white spaces.

14 years agos/u_intXX_t/uintXX_t/g
yongari [Mon, 21 Dec 2009 20:00:27 +0000 (20:00 +0000)]
s/u_intXX_t/uintXX_t/g

14 years agoUse vsprintf instead of rolling our own.
delphij [Mon, 21 Dec 2009 19:59:38 +0000 (19:59 +0000)]
Use vsprintf instead of rolling our own.

PR: bin/140496
Submitted by: Jeremy Huddleston <jeremyhu apple.com>
MFC after: 1 month

14 years ago o Remove unnecessary return statement.
yongari [Mon, 21 Dec 2009 19:56:11 +0000 (19:56 +0000)]
 o Remove unnecessary return statement.
 o Remove register keyword.

14 years agoUse vsscanf instead of rolling our own.
delphij [Mon, 21 Dec 2009 19:56:03 +0000 (19:56 +0000)]
Use vsscanf instead of rolling our own.

PR: bin/140530
Submitted by: Jeremy Huddleston <jeremyhu apple.com>
MFC after: 1 month

14 years agoK&R -> ANSI prototype.
delphij [Mon, 21 Dec 2009 19:55:05 +0000 (19:55 +0000)]
K&R -> ANSI prototype.

MFC after: 1 month

14 years agoUse ANSI function definations.
yongari [Mon, 21 Dec 2009 19:50:29 +0000 (19:50 +0000)]
Use ANSI function definations.

14 years agoUse _once() to initialize the pthread key for thread-local storage to hold
jhb [Mon, 21 Dec 2009 19:43:23 +0000 (19:43 +0000)]
Use _once() to initialize the pthread key for thread-local storage to hold
the results of localtime() instead of using a pthread mutex directly.

MFC after: 1 week

14 years agoImplement NFSv4 ACL support for UFS.
trasz [Mon, 21 Dec 2009 19:39:10 +0000 (19:39 +0000)]
Implement NFSv4 ACL support for UFS.

Reviewed by: rwatson

14 years agoAdd support of using environment variable BURNCD_SPEED to specify
delphij [Mon, 21 Dec 2009 19:27:52 +0000 (19:27 +0000)]
Add support of using environment variable BURNCD_SPEED to specify
recodring speed.

PR: bin/140530
Submitted by: Alexander Best <alexbestms wwu.de>
MFC after: 1 month

14 years agoPlug a memory leak.
delphij [Mon, 21 Dec 2009 19:18:27 +0000 (19:18 +0000)]
Plug a memory leak.

PR: bin/141835
Submitted by: Henning Petersen <henning.petersen t-online.de>
MFC after: 2 weeks

14 years agoPlug a memory leak.
delphij [Mon, 21 Dec 2009 19:15:30 +0000 (19:15 +0000)]
Plug a memory leak.

PR: bin/141836
Submitted by: Henning Petersen <henning.petersen at t-online.de>
MFC after: 2 weeks

14 years agoCast time_t values to intmax_t and use %jd with printf.
jh [Mon, 21 Dec 2009 17:41:57 +0000 (17:41 +0000)]
Cast time_t values to intmax_t and use %jd with printf.

OK'ed by: delphij
Approved by: trasz (mentor)

14 years agoRemove non-working special case for pipe(2) from amd64-fbsd32.c and
jh [Mon, 21 Dec 2009 17:38:13 +0000 (17:38 +0000)]
Remove non-working special case for pipe(2) from amd64-fbsd32.c and
i386-fbsd.c. Add pipe(2) to syscall table to decode it's pointer
argument properly and re-add special handling for pipe(2) return value
to print_syscall_ret().

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

14 years agoNote that sockstat(1) does not display kernel-owned sockets.
des [Mon, 21 Dec 2009 17:23:04 +0000 (17:23 +0000)]
Note that sockstat(1) does not display kernel-owned sockets.

Submitted by: infofarmer@
MFC after: 2 weeks

14 years agoDon't hide an error if the initial attempt to program a watchdog from
ru [Mon, 21 Dec 2009 15:50:37 +0000 (15:50 +0000)]
Don't hide an error if the initial attempt to program a watchdog from
within watchdogd(8) fails.  This is also consistent with watchdog(8).

14 years agoIf none of the watchdogs supports the requested timeout value, the
ru [Mon, 21 Dec 2009 15:12:56 +0000 (15:12 +0000)]
If none of the watchdogs supports the requested timeout value, the
code returns EOPNOTSUPP, not EINVAL.

14 years agoMove cursor position after putting a character.
nyan [Mon, 21 Dec 2009 14:59:23 +0000 (14:59 +0000)]
Move cursor position after putting a character.

MFC after: 1 week

14 years agoAdd "FreeBSD-" to the beginning of the filenames for the ISO images.
kensmith [Mon, 21 Dec 2009 14:42:35 +0000 (14:42 +0000)]
Add "FreeBSD-" to the beginning of the filenames for the ISO images.
People who collect ISOs from more than just us have been requesting
this for a while.

MFC after: 1 week

14 years ago- Eliminated hard sentence breaks.
ru [Mon, 21 Dec 2009 14:39:46 +0000 (14:39 +0000)]
- Eliminated hard sentence breaks.
- Fixed spelling of EINVAL.
- Sorted sections.

14 years agoRemoved one more Alpha leftover.
ru [Mon, 21 Dec 2009 12:32:13 +0000 (12:32 +0000)]
Removed one more Alpha leftover.

14 years agoVI_OBJDIRTY vnode flag mirrors the state of OBJ_MIGHTBEDIRTY vm object
kib [Mon, 21 Dec 2009 12:29:38 +0000 (12:29 +0000)]
VI_OBJDIRTY vnode flag mirrors the state of OBJ_MIGHTBEDIRTY vm object
flag. Besides providing the redundand information, need to update both
vnode and object flags causes more acquisition of vnode interlock.
OBJ_MIGHTBEDIRTY is only checked for vnode-backed vm objects.

Remove VI_OBJDIRTY and make sure that OBJ_MIGHTBEDIRTY is set only for
vnode-backed vm objects.

Suggested and reviewed by: alc
Tested by: pho
MFC after: 3 weeks

14 years agoFix a handful of issues with via agp support.
rnoland [Mon, 21 Dec 2009 03:28:05 +0000 (03:28 +0000)]
Fix a handful of issues with via agp support.

  * Read the pci capability register to identify AGP 3 support
  * Add missing smaller aperture sizes for AGP3 chips.
  * Fix the aperture size calculation on AGP2 chips.
    All sizes between 32M and 256M reported as 256M.
  * Add \n to error string.

This all seems to get the CLE266 EPIA-M board agp working properly, now
back to work on drm.

MFC after: 2 weeks

14 years agoFix indentation.
ed [Sun, 20 Dec 2009 22:55:27 +0000 (22:55 +0000)]
Fix indentation.

14 years agoDisable jumbo frame support for PCIe VT6130/VT6132 controllers.
yongari [Sun, 20 Dec 2009 19:45:46 +0000 (19:45 +0000)]
Disable jumbo frame support for PCIe VT6130/VT6132 controllers.
Quite contrary to VT6130 datasheet which says it supports up to 8K
jumbo frame, VT6130 does not seem to send jumbo frame that is
larger than 4K in length. Trying to send a frame that is larger
than 4K cause TX MAC hang.
Even though it's possible to allow 4K jumbo frame for VT6130, I
think it's meaningless to allow 4K jumbo frame. I'm not sure VT6132
also has the same limitation but I guess it uses the same MAC of
VT6130.

14 years agoVT6130 datasheet was wrong. If VT6130 receive a jumbo frame the
yongari [Sun, 20 Dec 2009 19:11:32 +0000 (19:11 +0000)]
VT6130 datasheet was wrong. If VT6130 receive a jumbo frame the
controller will split the jumbo frame into multiple RX buffers.
However it seems the hardware always dma the frame to 8 bytes
boundary for the split frames. Only the first part of the fragment
can have 4 byte alignment and subsequent buffers should be 8 bytes
aligned. Change RX buffer the alignment requirement to 8 bytes from
4 bytes.

14 years agoCorrect fragment bit definition in comments.
yongari [Sun, 20 Dec 2009 18:53:34 +0000 (18:53 +0000)]
Correct fragment bit definition in comments.

14 years agoAdd VIA CX700/VX800 chipsets SATA/PATA support.
mav [Sun, 20 Dec 2009 16:23:11 +0000 (16:23 +0000)]
Add VIA CX700/VX800 chipsets SATA/PATA support.

PR: kern/121521
Tested by: Alex Deiter

14 years agoFairly set master/slave shared PIO/WDMA timings on ITE 821x controllers.
mav [Sun, 20 Dec 2009 15:03:57 +0000 (15:03 +0000)]
Fairly set master/slave shared PIO/WDMA timings on ITE 821x controllers.
Previous implementation could only limit mode, but not rise it back.

14 years agoAvoid sharing the file descriptor of the output file with traced
jh [Sun, 20 Dec 2009 11:00:53 +0000 (11:00 +0000)]
Avoid sharing the file descriptor of the output file with traced
processes by setting the FD_CLOEXEC flag for the output file.

PR: bin/140493
Submitted by: Erik Lax
OK'ed by: delphij
Approved by: trasz (mentor)

14 years agoAdd fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),
jh [Sun, 20 Dec 2009 10:58:34 +0000 (10:58 +0000)]
Add fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),
getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to
decode their arguments correctly.

OK'ed by: delphij
Approved by: trasz (mentor)

14 years agoThe service command is an easy interface to the rc.d system.
dougb [Sun, 20 Dec 2009 01:34:12 +0000 (01:34 +0000)]
The service command is an easy interface to the rc.d system.
Its primary purpose is to start and stop services provided by
the rc.d scripts, however it can also be used to list the scripts
using various criteria.

14 years agoSwap VGE_TXQTIMER and VGE_RXQTIMER register definition. Pending
yongari [Sat, 19 Dec 2009 20:45:23 +0000 (20:45 +0000)]
Swap VGE_TXQTIMER and VGE_RXQTIMER register definition. Pending
timer for Tx queue is at 0x3E.

14 years agoRemove a warning in DELAY about large delays. In kern_shutdown.c
marcel [Sat, 19 Dec 2009 20:42:56 +0000 (20:42 +0000)]
Remove a warning in DELAY about large delays. In kern_shutdown.c
we use excessive delays quite habitually.

14 years agoLet access overriding to TTYs depend on the cdev_priv, not the vnode.
ed [Sat, 19 Dec 2009 18:42:12 +0000 (18:42 +0000)]
Let access overriding to TTYs depend on the cdev_priv, not the vnode.

Basically this commit changes two things, which improves access to TTYs
in exceptional conditions. Basically the problem was that when you ran
jexec(8) to attach to a jail, you couldn't use /dev/tty (well, also the
node of the actual TTY, e.g. /dev/pts/X). This is very inconvenient if
you want to attach to screens quickly, use ssh(1), etc.

The fixes:

- Cache the cdev_priv of the controlling TTY in struct session. Change
  devfs_access() to compare against the cdev_priv instead of the vnode.
  This allows you to bypass UNIX permissions, even across different
  mounts of devfs.

- Extend devfs_prison_check() to unconditionally expose the device node
  of the controlling TTY, even if normal prison nesting rules normally
  don't allow this. This actually allows you to interact with this
  device node.

To be honest, I'm not really happy with this solution. We now have to
store three pointers to a controlling TTY (s_ttyp, s_ttyvp, s_ttydp).
In an ideal world, we should just get rid of the latter two and only use
s_ttyp, but this makes certian pieces of code very impractical (e.g.
devfs, kern_exit.c).

Reported by: Many people

14 years agoReference the correct man page for firmware(9).
bcr [Sat, 19 Dec 2009 16:36:57 +0000 (16:36 +0000)]
Reference the correct man page for firmware(9).

PR:             docs/140986
Submitted by:   Glen Barber (glen dot j dot barber at gmail dot com)
MFC after:      4 days
Reviewed by:    sam
Approved by:    sam, jkois (mentor)

14 years agoApply fix for Solaris bug 6462803: zfs snapshot -r failed because
delphij [Sat, 19 Dec 2009 11:49:20 +0000 (11:49 +0000)]
Apply fix for Solaris bug 6462803: zfs snapshot -r failed because
filesystem was busy
(onnv revision 8989)

Submitted by: mm
Approved by: pjd
Obtained from: OpenSolaris
MFC after: 2 weeks

14 years agoApply fix for Solaris bug 6801979: zfs recv can fail with E2BIG
delphij [Sat, 19 Dec 2009 11:47:22 +0000 (11:47 +0000)]
Apply fix for Solaris bug 6801979: zfs recv can fail with E2BIG
(onnv revision 8986)

Requested by: mm
Submitted by: pjd
Obtained from: OpenSolaris
MFC after: 2 weeks

14 years agoApply fix Solaris bug 6462803 zfs snapshot -r failed because
delphij [Sat, 19 Dec 2009 11:43:39 +0000 (11:43 +0000)]
Apply fix Solaris bug 6462803 zfs snapshot -r failed because
filesystem was busy.

Submitted by: mm
Approved by: pjd
MFC after: 2 weeks

14 years agoInterpret VAPPEND correctly in vaccess_acl_nfs4(9).
trasz [Sat, 19 Dec 2009 11:41:52 +0000 (11:41 +0000)]
Interpret VAPPEND correctly in vaccess_acl_nfs4(9).

14 years agoFix a problem with how mergemaster handles the hard links for /.cshrc
dougb [Sat, 19 Dec 2009 05:20:26 +0000 (05:20 +0000)]
Fix a problem with how mergemaster handles the hard links for /.cshrc
and /.profile. The problem is that install(1) will unlink the old file
before it installs the new one, which means that in the best case we
have to compare the changes for the old file twice.

So, change the logic to first test to see if the link exists, then
install the file. Then if the link was there and we're using -i, just
create the link in /root and be done with it. Otherwise display the
message to the user and give them the option.

Because we are now sorting things before doing the comparison we can
know conclusively that the files in / should be the sources, and the
files in /root will be the targets, so adjust the paths accordingly.

While I'm here, split a too-long error message into two lines and
just return at the end of handling these files instead of setting
the variable that says "do nothing" and then returning at the end
of the function anyway.

14 years agoFix an indentation issue, no functional changes
dougb [Sat, 19 Dec 2009 01:32:34 +0000 (01:32 +0000)]
Fix an indentation issue, no functional changes

14 years agoIn the places where find is used that the user may see the results,
dougb [Sat, 19 Dec 2009 01:30:45 +0000 (01:30 +0000)]
In the places where find is used that the user may see the results,
first pipe it to sort so that order of processing will be deterministic
and like things will be grouped together.

14 years agoAdd rudimentary WOL support. While I'm here remove enabling
yongari [Fri, 18 Dec 2009 22:14:28 +0000 (22:14 +0000)]
Add rudimentary WOL support. While I'm here remove enabling
busmastering/memory address in resume path. Bus driver will handle
that.

14 years agoMake sure to enable Next Page bit for IP1001. Otherwise the PHY
yongari [Fri, 18 Dec 2009 21:57:51 +0000 (21:57 +0000)]
Make sure to enable Next Page bit for IP1001. Otherwise the PHY
fails to re-establishe 1000baseT link after downgrading to
10/100Mbps link.

14 years agoFix ub_env_enum(): syscall() returns 0 when properly invoked.
marcel [Fri, 18 Dec 2009 21:12:37 +0000 (21:12 +0000)]
Fix ub_env_enum(): syscall() returns 0 when properly invoked.

14 years agoMake the wchan names of pts(4) fit in top(1).
ed [Fri, 18 Dec 2009 20:11:29 +0000 (20:11 +0000)]
Make the wchan names of pts(4) fit in top(1).

Just like a similar change we made to the TTY code about half a year
ago, make these strings look similar.

Suggested by: Jille Timmermans <jille@quis.cx>

14 years agoDocument more VIA Velocity family controllers to vge(4). Previously
yongari [Fri, 18 Dec 2009 18:45:36 +0000 (18:45 +0000)]
Document more VIA Velocity family controllers to vge(4). Previously
it mentioned only VT6122. While I'm here remove the mention of
VT3119 which seems to be VIA's internal model name and VT3119
wouldn't be available to end users.

Reviewed by: brueffer

14 years agoAdd new "hw.psm.tap_enabled" tunable and sysctl.
dumbbell [Fri, 18 Dec 2009 17:46:57 +0000 (17:46 +0000)]
Add new "hw.psm.tap_enabled" tunable and sysctl.

This tunable allows one to enable (1) or disable (0) gestures like tap
and tap-hold on Synaptics TouchPad when the Extended mode isn't enabled
(ie. "hw.psm.synaptics_support" not set).

By default, the value is -1 in order to keep the current behaviour of
not enabling/disabling gestures explicitly.

PR: kern/139272
Submitted by: David Horn <dhorn2000 AT gmail DOT com>
Reviewed by: David Horn <dhorn2000 AT gmail DOT com>

14 years agoAdded proper attribution.
ru [Fri, 18 Dec 2009 17:22:21 +0000 (17:22 +0000)]
Added proper attribution.

Requested by: luigi

14 years agoMention the unification of rc.firewall and rc.firewall6.
ume [Fri, 18 Dec 2009 16:35:28 +0000 (16:35 +0000)]
Mention the unification of rc.firewall and rc.firewall6.

Suggested by: David Horn <dhorn2000__at__gmail.com>

14 years ago- Add missing newlines to some error messages.
jhb [Fri, 18 Dec 2009 16:14:31 +0000 (16:14 +0000)]
- Add missing newlines to some error messages.
- Add interrupt descriptions when using mulitple MSI-X interrupts.

Reviewed by: jfv

14 years ago- Create a separate section in in the MI NOTES file for PCI wireless NIC
jhb [Fri, 18 Dec 2009 16:13:21 +0000 (16:13 +0000)]
- Create a separate section in in the MI NOTES file for PCI wireless NIC
  drivers and move bwi(4) there from the PCI Ethernet NIC section.
- Move ath(4) and ral(4) to the MI NOTES file.

Reviewed by: rpaulo

14 years agoRecognize Intel CPUs with Family 0x6, Models 0x1E and 0x1F.
jkoshy [Fri, 18 Dec 2009 15:01:46 +0000 (15:01 +0000)]
Recognize Intel CPUs with Family 0x6, Models 0x1E and 0x1F.

Submitted by: Marc Unangst <mju at panasas dot com>

14 years agoRemove duplicate devstat_start_transaction_bio() call. It is already called
mav [Fri, 18 Dec 2009 14:41:30 +0000 (14:41 +0000)]
Remove duplicate devstat_start_transaction_bio() call. It is already called
from geom_disk. Dulicate call causes wrong queue depth and busy accounting.

14 years agoSignal 0 is used to check the permission for current process to signal
kib [Fri, 18 Dec 2009 14:27:18 +0000 (14:27 +0000)]
Signal 0 is used to check the permission for current process to signal
target one. Since r184058, linux_do_tkill() calls tdsignal() instead of
kill(), without checking for validity of supplied signal number. Prevent
panic when supplied signal is 0 by finishing work after checks.

Found and tested by: scf
MFC after: 3 days

14 years ago- Fixed incorrect watchdog timeout setting: MSB of a 2-byte
ru [Fri, 18 Dec 2009 12:10:42 +0000 (12:10 +0000)]
- Fixed incorrect watchdog timeout setting: MSB of a 2-byte
  value is obtained by dividing it by 256, not by 2550; also,
  one second is 10^9 nanoseconds, not 1800000000 nanoseconds.

- Due to rounding error, setting watchdog to a really small
  timeout (<1 sec) was turning the watchdog off.  It should
  set the watchdog to a small timeout instead.

- Implemented error checking in ipmi_wd_event(), as required
  by watchdog(9).

PR: kern/130512
Submitted by: Dmitrij Tejblum

- Additionally, check that the timeout value is within the
  supported range, and if it's too large, act as required by
  watchdog(9).

MFC after: 3 days

14 years agoKeep list sorted.
thompsa [Fri, 18 Dec 2009 00:36:30 +0000 (00:36 +0000)]
Keep list sorted.

14 years agoAdd a bunch of new 3G ids obtained from from various operating systems and
thompsa [Fri, 18 Dec 2009 00:34:58 +0000 (00:34 +0000)]
Add a bunch of new 3G ids obtained from from various operating systems and
Internet sources.

Obtained from: Linux, NetBSD, OpenBSD, etc

14 years agoServerworks OSB4 has no 0x4a (piomode) register, do not touch it.
mav [Thu, 17 Dec 2009 23:42:09 +0000 (23:42 +0000)]
Serverworks OSB4 has no 0x4a (piomode) register, do not touch it.
Also OSB4 has some problems with UDMA transfers, limit it to WDMA2.

14 years agoAdd some experimental code to log traffic with tcpdump,
luigi [Thu, 17 Dec 2009 23:11:16 +0000 (23:11 +0000)]
Add some experimental code to log traffic with tcpdump,
similar to pflog(4).
To use the feature, just put the 'log' options on rules
you are interested in, e.g.

ipfw add 5000 count log ....

and run
tcpdump -ni ipfw0 ...

net.inet.ip.fw.verbose=0 enables logging to ipfw0,
net.inet.ip.fw.verbose=1 sends logging to syslog as before.

More features can be added, similar to pflog(), to store in
the MAC header metadata such as rule numbers and actions.
Manpage to come once features are settled.

14 years agoUse the EVENTHANDLER system to hook into the usb device configuration and
thompsa [Thu, 17 Dec 2009 21:42:10 +0000 (21:42 +0000)]
Use the EVENTHANDLER system to hook into the usb device configuration and
perform a function such as ejecting a 3G autoinstaller disk. The eventhandler
system properly tracks threads and is safe to unload, remove the
setting/clearing of a function pointer in the kernel by u3g(4) which included a
tsleep for safety.

14 years agoIf the runcount is non-zero in eventhandler_deregister() then one or more
thompsa [Thu, 17 Dec 2009 21:17:13 +0000 (21:17 +0000)]
If the runcount is non-zero in eventhandler_deregister() then one or more
threads are executing the eventhandler, sleep in this case to make it safe for
module unload. If the runcount was up then an entry would have been marked
EHE_DEAD_PRIORITY so use this as a trigger to do the wakeup in
eventhandler_prune_list().

Reviewed by: jhb

14 years agoNationalise Easter -> Pasen
edwin [Thu, 17 Dec 2009 20:41:59 +0000 (20:41 +0000)]
Nationalise Easter -> Pasen

MFC after: 1 week

14 years agoRemove unused member variable of softc.
yongari [Thu, 17 Dec 2009 19:48:54 +0000 (19:48 +0000)]
Remove unused member variable of softc.

14 years agoDocument newly added loader tunable and sysctl variables.
yongari [Thu, 17 Dec 2009 18:37:11 +0000 (18:37 +0000)]
Document newly added loader tunable and sysctl variables.
 o hw.vge.msi_disable
 o dev.vge.%d.int_holdoff
 o dev.vge.%d.rx_coal_pkt
 o dev.vge.%d.tx_coal_pkt

14 years agoActually clear interrupts. Writing 0 has no effect.
yongari [Thu, 17 Dec 2009 18:03:05 +0000 (18:03 +0000)]
Actually clear interrupts. Writing 0 has no effect.

14 years agoImplement interrupt moderation scheme supported by VT61xx
yongari [Thu, 17 Dec 2009 18:00:25 +0000 (18:00 +0000)]
Implement interrupt moderation scheme supported by VT61xx
controllers. TX/RX interrupt mitigation is controlled by
VGE_TXSUPPTHR and VGE_RXSUPPTHR register. These registers suppress
generation of interrupts until the programmed frames counter equals
to the registers. VT61xx also supports interrupt hold off timer
register. If this interrupt hold off timer is active all interrupts
would be disabled until the timer reaches to 0. The timer value is
reloaded whenever VGE_ISR register written. The timer resolution is
about 20us.

Previously vge(4) used single shot timer to reduce Tx completion
interrupts. This required VGE_CRS1 register access in Tx
start/completion handler to rearm new timeout value and it did not
show satisfactory result(more than 50k interrupts under load). Rx
interrupts was not moderated at all such that vge(4) used to
generate too many interrupts which in turn made polling(4) better
approach under high network load.

This change activates all interrupt moderation mechanism and
initial values were tuned to generate interrupt less than 8k per
second. That number of interrupts wouldn't add additional packet
latencies compared to polling(4). These interrupt parameters could
be changed with sysctl.
dev.vge.%d.int_holdoff
dev.vge.%d.rx_coal_pkt
dev.vge.%d.tx_coal_pkt
Interface has be brought down and up again before change take
effect.

With interrupt moderation there is no more need to loop in
interrupt handler. This loop always added one more register access.
While I'm here remove dead code which tried to implement subset of
interrupt moderation.

14 years agoDon't panic due to unlocking an unowned mutex if we fail during attach.
gavin [Thu, 17 Dec 2009 17:46:08 +0000 (17:46 +0000)]
Don't panic due to unlocking an unowned mutex if we fail during attach.

PR: kern/139053
Reviewed by: scottl
Approved by: ed (mentor)
MFC after: 2 weeks

14 years agoNow that ipfw is split into multiple files, we need
luigi [Thu, 17 Dec 2009 17:44:34 +0000 (17:44 +0000)]
Now that ipfw is split into multiple files, we need
to list them all in the Makefile for the module,
otherwise it won't load due to missing symbols.

The problem only affected head with ipfw built as a module.

Reported by David Horn

14 years agoRemove unused VGE_ETHER_ALIGN definition.
yongari [Thu, 17 Dec 2009 17:38:06 +0000 (17:38 +0000)]
Remove unused VGE_ETHER_ALIGN definition.

14 years agosimplify and document lookup_next_rule()
luigi [Thu, 17 Dec 2009 17:27:12 +0000 (17:27 +0000)]
simplify and document lookup_next_rule()

14 years agoSync getline() with comm(1):
jh [Thu, 17 Dec 2009 17:03:47 +0000 (17:03 +0000)]
Sync getline() with comm(1):

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

Reviewed by: ghelmer
Approved by: trasz (mentor)

14 years agoThe input line length limit mentioned on the manual page was removed by
jh [Thu, 17 Dec 2009 16:59:19 +0000 (16:59 +0000)]
The input line length limit mentioned on the manual page was removed by
r176119.

Approved by: trasz (mentor)

14 years agoFix debug messages of bd_io().
nyan [Thu, 17 Dec 2009 13:14:11 +0000 (13:14 +0000)]
Fix debug messages of bd_io().

MFC after: 1 week

14 years ago- Partially revert r200417. config.h brings several definitions,
stas [Thu, 17 Dec 2009 12:42:45 +0000 (12:42 +0000)]
- Partially revert r200417.  config.h brings several definitions,
  that appears to be actually used.  Without config.h included
  cross-build of world failed (at least for ARM).

14 years agosimplify the code that finds the next rule after reinjections
luigi [Thu, 17 Dec 2009 12:27:54 +0000 (12:27 +0000)]
simplify the code that finds the next rule after reinjections

MFC after: 1 week

14 years agorewind(3) is already declared to return 'void', so no need for an explicit cast
rse [Thu, 17 Dec 2009 08:42:44 +0000 (08:42 +0000)]
rewind(3) is already declared to return 'void', so no need for an explicit cast

14 years agoDEBUG is either defined or not defined for the 'calender' sources, so use #ifdef...
rse [Thu, 17 Dec 2009 08:41:06 +0000 (08:41 +0000)]
DEBUG is either defined or not defined for the 'calender' sources, so use #ifdef and not just #if -- both to be semantically correct and also to be aligned with the rest of the 'calendar' sources

14 years agoremove external reference to not (or at least no longer) existing variable 'myname'
rse [Thu, 17 Dec 2009 08:37:02 +0000 (08:37 +0000)]
remove external reference to not (or at least no longer) existing variable 'myname'

14 years agoAdd Australian, New Zealand and Ukraian calendars to the "all" target".
edwin [Thu, 17 Dec 2009 07:18:06 +0000 (07:18 +0000)]
Add Australian, New Zealand and Ukraian calendars to the "all" target".

MFC after: 1 week

14 years agoAdd a null pointer check so "name" can be used as a key parameter in
jamie [Thu, 17 Dec 2009 05:06:56 +0000 (05:06 +0000)]
Add a null pointer check so "name" can be used as a key parameter in
jailparam_get.

PR: bin/141692
Submitted by: delphij
MFC after: 3 days

14 years agoFix argument order in a call to mtx_init.
mjacob [Thu, 17 Dec 2009 00:22:56 +0000 (00:22 +0000)]
Fix argument order in a call to mtx_init.

MFC after: 1 week