Commit Graph

163741 Commits

Author SHA1 Message Date
dyoung
5c5f8f488c Accommodate the variety of RF front-ends when radiotapping frames:
tap only RSSI when there is a Philips RF front-end.  Tap both Barker
lock quality and RSSI when there is any other RF front-end.

Provide radiotap listeners a more complete picture of channel
activity:

    in promiscuous mode, tap frames who do not pass the CRC32 check.
    Flag packets that were received with a short preamble.  Ask
    the NIC to pass us 802.11 Control frames.  Pass frames to
    radiotap listeners before stripping the FCS.  Re-order operations
    in rtw_intr_rx() in order to accomplish all of this, taking
    care not to pass a broken packet to net80211!

Do not provide a flags field when tapping xmitted frames.

Assert sane Rx packet lengths.  Really should check and drop instead
of KASSERTing.  I will revisit this, soon.

Update copyright.
2007-11-16 23:35:19 +00:00
martin
223dc4f56f Define a simple variant of CPUINFO_FOREACH for non-MULTIPROCESSOR
kernels. The SMP variant does not work early in bootstrap, but I'll
leave that for Andrew to fix ;-)
2007-11-16 23:21:14 +00:00
njoly
20aee1e2a0 Set sensor state to ENVSYS_SVALID for correct values. Otherwise,
envstat(8) will report an unknown state and won't print the sensor
value.

ok by xtraeme.
2007-11-16 22:46:56 +00:00
skrll
cf7197a7f7 Fix previous. Very sorry. 2007-11-16 21:48:19 +00:00
christos
62edf45793 defflag IPSEC_DEBUG 2007-11-16 21:15:20 +00:00
christos
f5673d6a27 defopt I2OVERBOSE 2007-11-16 21:14:26 +00:00
pooka
622412c6c3 Restructure the messaging interface a bit more: make all interfacing
with the file server happen through puffs_msg_enqueue() and
puffs_msg_wait() instead of having a billion different routines.
Build the existing system upon these two.  Most importantly though,
decouple insertation into the op queue from the actual wait.  This
is useful for a number of reasons coming soon to a cvs repo near you.
2007-11-16 20:32:17 +00:00
dyoung
c666294335 Take out some debug messages that accidentally slipped in. Thanks,
Bernd Ernesti, for letting me know! :-)
2007-11-16 20:25:47 +00:00
skrll
c4d9e0b7d1 Add a note section everywhere. There will be fallout from this, but it'll
be fixed pretty sharpish.

Discussed with and approved by martin. (martin told me to say this)
2007-11-16 20:01:48 +00:00
plunky
06e82841a0 Fix problem with handling SDP contination state, from FreeBSD
(specifically, this manifested itself when reading a long HID
descriptor from a Microsoft Mouse.)
2007-11-16 19:35:08 +00:00
jmmv
da0793de49 Recurse into 'id'. 2007-11-16 19:27:47 +00:00
dyoung
12f2113cc2 Cosmetic changes: Join some lines. Remove superfluous parentheses
and braces.  Change a variable name.  Add #if 0'd cardbus_conf_capture()
and cardbus_conf_restore() calls for future reference.
2007-11-16 18:47:41 +00:00
dyoung
b23d50169b Use cardbus_setpowerstate() instead of rolling our own.
Let the Cardbus bridge driver set our Latency Timer, but round down
to the nearest multiple of 0x10, since the RTL8180 datasheet may
be trying to tell us that is necessary.

Activate Parity & System Error reporting.

Use a more meaningful variable name, reg -> csr.
2007-11-16 18:46:23 +00:00
pooka
4462e9454f use puffs_daemon() instead of daemon() 2007-11-16 18:39:01 +00:00
dyoung
43d2148e33 Improve Cardbus performance, error handling, and error reporting.
Let the TI1420 PCI-Cardbus bridge do burst reads from the primary
(PCI) bus.  This ought to improve Tx performance on Cardbus NICs.
This optimization may apply to other TI bridges, but I only have
a datasheet for the TI1420. :-/

Activate PCI Parity Error and System Error reporting on PCI-Cardbus
bridges.

To avoid data destruction, set the Master Abort mode to 1.  Stops
the bridge from silently discarding writes from the secondary bus
to the primary bus (Cardbus writes to PCI).  Also, stops the bridge
from fulfilling a read by a bus master on the secondary bus that
failed on the primary bus with 0xffffffff (Cardbus reads from PCI).
Now the bus will indicate an error condition (SERR) instead of
silently destroying/corrupting data.

Forward system error indications from the secondary to the primary
bus.  Detect parity errors on the secondary.

Set a Cardbus card's Latency Timer to something reasonable, according
to the Cardbus card's Minimum Grant and the bandwidth available on
the PCI bus.  Restore the Latency Timer when re-enabling a card
(e.g., after power reactivation).
2007-11-16 18:36:51 +00:00
pooka
3537e99eb1 Introduce puffs_daemon(), which works like daemon(3) except that it
also synchronizes with puffs_mount() and does not return (exit) in the
parent process until the file system has been mounted.  This makes
it possible to reliably run e.g. mount_foo jippi /kai ; cd /kai/ee
2007-11-16 18:35:10 +00:00
jmmv
02921c77c9 Make syntax checking for id(1), groups(1) and whoami(1) commands stronger so
that they conform to what the corresponding manual pages say.  This makes all
the tests I recently introduced for these utilities pass.

pooka thinks this was time well spent ;-)
2007-11-16 18:09:50 +00:00
jmmv
8ffac55d25 Register the files that conform the id(1), groups(1) and whoami(1) tests. 2007-11-16 18:07:42 +00:00
jmmv
3ed83147c3 Add the directory for the id(1) tests. 2007-11-16 18:07:02 +00:00
jmmv
42112a274c Add tests for id(1), groups(1) and whoami(1). I'm basically doing this to
check for the command's syntax, but while doing so, I'm adding tests for
all (or almost) possible executions of these commands.

I'm not too happy with the "libfake" directory because there must be some
simpler way to do this, but it will do the trick for now hopefully.
2007-11-16 18:06:46 +00:00
dyoung
777dd06a99 We might leave nd6_ns_output() really early. Postpone memset()
until after we decide to stay.
2007-11-16 17:51:51 +00:00
dyoung
9044dcac49 Note danger of dangling pointers. 2007-11-16 17:50:07 +00:00
jmmv
cacc05fe11 Drop trailing whitespace. On behalf of me. 2007-11-16 17:31:13 +00:00
tsutsui
1e795b0373 Add a workaround for incorrect "SUMMARY INFORMATIONS WRONG FOR CG #N"
and "BLK(S) MISSING IN BIT MAP #N" reports on newer ext2fs with
EXT2F_COMPAT_RESIZE feature by accounting blocks in EXT2_RESIZEINO.

XXX1: Should we account blocks allocated by all other reserved inodes?
XXX2: We should really check and fix EXT2_RESIZEINO accordingly.
2007-11-16 16:55:04 +00:00
pooka
968196af71 If a regular file was remotely updated and a readdir was done on
the directory which contained the file before a getattr on the file
itself, the locally cached mtime would be updated without invalidating
the kernel page cache.  Thus incorrect data would be returned when
the node was read afterwards as the node size wouldn't match the
data length in the page cache.

Fix the problem by making all vattr-setting routines use the same code.

Problem noticed again by jmmv & atf (and again by running atf over
psshfs ... sometimes you're the windshield, sometimes you're the bug)
2007-11-16 15:53:47 +00:00
gson
944c1349c7 Set sc_dying on attach failure so that a subsequent open won't cause a
crash.  Fixes kern/36476.
2007-11-16 15:21:42 +00:00
jmmv
55876f3f39 Drop trailing whitespace. On behalf of pooka. 2007-11-16 15:10:06 +00:00
pooka
154c2e54fb dump lookup return values 2007-11-16 14:59:14 +00:00
pooka
0feebae56b When checking if the file page cache should be invalidated, compare
against cached mtime instead of attrread - attrread can be reset
these days by sending SIGHUP.

Problem noticed by jmmv & atf (well.. namely by using atf through psshfs).
2007-11-16 14:25:47 +00:00
njoly
204ebc94bf Regen. 2007-11-16 12:58:12 +00:00
njoly
601a0e5173 Update, for linux_sys_readlink() removal. 2007-11-16 12:56:50 +00:00
njoly
cb572617af Regen, for syscalls cleanup. 2007-11-16 12:53:56 +00:00
njoly
6412bda281 Cleanup. Remove a few linux syscalls definitions, now identical to
native ones (with stackgap and ALT_CHECK_xxx removal). No functional
changes expected.
2007-11-16 12:51:54 +00:00
nisimura
035cfa139a reduce Tx/Rx maximum number of words (as PDF says) in one DMA
transaction to 8.  value 32 triggers occational watchdog() Tx
timeout when higher system load.  This symptom is observed in
ipforwarding across two PCI devices case so far, and it remains
unidentified what really happens for Tx DMA activity.  16 seems
ok, 8 is conservative and heuristic value.  may need more adjustment
work in other parts.
2007-11-16 10:31:57 +00:00
yamt
31b46e1b7e h_parsers.debug -> h_parser.debug 2007-11-16 09:59:11 +00:00
xtraeme
752ee73cf1 Remove duplicate sme_events_list. 2007-11-16 08:18:33 +00:00
xtraeme
27ddba0559 Implement the 'refresh-timeout' property in device blocks for the
configuration files. This sets the timeout value that will be used
to check for critical limits.

The value can be viewed by the 'envstat -D' command.
2007-11-16 08:01:37 +00:00
xtraeme
31962fc6e5 Extend the envsys2 API (one more time, sorry) as defined in:
http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.
2007-11-16 08:00:11 +00:00
skrll
74c813c4e9 s/proc/lwp/ in comment 2007-11-16 07:36:10 +00:00
dyoung
fba210bf0b Use uintXX_t instead of u_intXX_t. 2007-11-16 06:06:15 +00:00
dyoung
c58de3c983 Cosmetic: rename some variables and constants. Move some constants
from atw.c to atwreg.h.
2007-11-16 05:53:16 +00:00
dyoung
b66951c216 Replace some magic numbers with HFA3861A register names.
Do not alias the Rx descriptor word ar_ctl to ar_rssi with a #define.
Instead, call the member ar_ctlrssi.

Convert the ugly macro ATW_RXDESC_INIT() to an inline subroutine,
atw_rxdesc_init().

Do not load an empty IEEE80211_RADIOTAP_FLAGS field into the Tx
radiotap header.
2007-11-16 04:58:38 +00:00
dyoung
67612c1e03 Define some more registers. 2007-11-16 04:52:36 +00:00
dyoung
5167b8ef99 Add missing */, RCS Id, and license. 2007-11-16 04:31:34 +00:00
dyoung
93ac8c75eb Add part of the Intersil HFA3861A register set so that eventually
I can remove magic numbers from atw(4).
2007-11-16 04:24:06 +00:00
ad
33e2fcd08e Avoid doing rep; movsl with %ecx == 0, since it's expensive. Suggested
by dsl@.
2007-11-16 01:37:58 +00:00
ad
85a2e7d924 Work around broken MD headers. 2007-11-16 01:21:24 +00:00
martin
c9a4a7f28d Note gdb 6.5 kernel crash dump & pthread debugging problems. 2007-11-16 00:27:04 +00:00
degroote
91f3c9d9f9 Use device_t instead of struct device* and use associated functions
Use callout_setfunc and callout_scheduler instead of callout_reset

No functionnal change expected
2007-11-16 00:13:32 +00:00
ad
ab19d73932 Kill the memory barriers: force users of the outgoing timehand to move
on quickly by also incrementing its generation number.
2007-11-15 23:16:55 +00:00