Commit Graph

163623 Commits

Author SHA1 Message Date
xtraeme 8ac95dc8e2 Improve description of sme_refresh and state. 2007-11-17 23:10:00 +00:00
pooka 61b1e9a615 Make puffs_updatenode() take a puffs_node instead of a vnode. This
way we don't need to worry if a vnode has been reclaimed from under
us.
2007-11-17 21:55:29 +00:00
pooka 63e9f065b3 Start playing around with vnode locks. For now, do the very easy
thing and release locks before the userspace wait for operations
which release the lock before exit from the method in any case.
However, releasing the lock after inserting the request on the
operation queue gives us proper ordering possibilities in userspace
(at least if that bit were implemented, but I don't think there
any file system in userspace that depends on kernel locking and
probably there never should be one).

inspired by a conversation with Nacho Navarro
2007-11-17 21:30:48 +00:00
pooka 2632ba6df4 Implement cv_timedwait(), requested by Reinoud. 2007-11-17 20:50:18 +00:00
dsl 6748a0d09a Remove syscall_fancy.
Use MI code for SYS_SYSCALL and SYS___SYSCALL.
Optimise code to minimise normal path.
2007-11-17 19:48:40 +00:00
ad 705e179fb2 Reserve the top 4 bits of `boothowto' for MD flags. 2007-11-17 18:12:31 +00:00
oster d5020b9a35 Nuke debugging output that is a) misleading at best, and
b) often just wrong.  Thanks to wiz for catching this.
2007-11-17 18:11:19 +00:00
pooka ac5e27103d Implement a biodone callback for async writes similar to reads and
use that when possible.
2007-11-17 18:09:04 +00:00
pooka 803c088ce0 fix some debug prints 2007-11-17 18:03:15 +00:00
macallan 376f378895 deal with macppc not defining OPENPIC 2007-11-17 18:02:42 +00:00
pooka dac2b0c689 fix request size 2007-11-17 17:12:11 +00:00
macallan a11007a5fa have uninorth and bandit pull in their resp. IPI support stuff 2007-11-17 17:07:57 +00:00
tsutsui 2bb17347c8 Note newfs_ext2fs(8). 2007-11-17 17:05:04 +00:00
macallan 40e17603bf sprinkle #ifdef OPENPIC so SMP-kernels without OpenPIC support build again. 2007-11-17 17:02:55 +00:00
tsutsui cd3d4b7684 Add newfs_ext2fs(8). 2007-11-17 17:00:15 +00:00
tsutsui d047ce663b Descend into newfs_ext2fs(8). 2007-11-17 16:58:30 +00:00
tsutsui f8b02b9cdf Add a dumb but BSD-licensed newfs_ext2fs(8) command.
This is based on the newfs(8) command for ffs, but
most ext2fs specific part is written from scratch.

Tested on alpha, cobalt, i386 and sgimips with some disks and vnd(4),
and at least cobalt's firmware can load boot files from an ext2fs
E2FS_REV0 partition created by this native newfs_ext2fs(8) command.

Closes PR bin/16175.
2007-11-17 16:50:25 +00:00
pooka 4b2334142b puffs_mount():
* initialize values better
* always go through "fail" to see if puffs_daemon() needs to be
  woken up
* open device r/w instead of r/o
2007-11-17 16:06:18 +00:00
ad e15eca1b5a Make it compile. 2007-11-17 15:28:37 +00:00
jmmv ba0cf3bfa8 Fix ATF's entry to reflect the 0.3 release. Noted by wiz@. 2007-11-17 13:53:51 +00:00
wiz a8dfe6ac67 Update responsibilities, removing itojun. 2007-11-17 13:33:31 +00:00
wiz 9ff52222ac Fix a few typos. 2007-11-17 09:53:16 +00:00
skrll 64ad60da4f Remove the .note section when creating the a.out kernel image. 2007-11-17 09:07:42 +00:00
skrll 833a64ae25 Deal with arm gas weirdness. 2007-11-17 08:59:51 +00:00
tsutsui d1112c275c Misc cosmetics. 2007-11-17 08:51:51 +00:00
tsutsui b95d1c0be7 Some KNF and cosmetics. 2007-11-17 08:34:38 +00:00
kefren 7ff1853b95 Initialize sensor's state
on behalf of xtraeme
2007-11-17 08:30:35 +00:00
kefren c61259ee1f initialize via sysmon_envsys_create()
make sensors valid
2007-11-17 08:23:46 +00:00
tsutsui bf39da4423 Also bswap recently added e2fs_reserved_ngdb in e2fs_sb_bswap(). 2007-11-17 03:43:18 +00:00
dogcow e283c9fc02 A terrible kludge: don't compile/link malloc.c if arch=sun2. My apologies
to the legions of sun2 monop fans who will probably be unable to save/restore
games.
2007-11-17 00:10:55 +00:00
dyoung aadb8be251 Count received frames, Rx PLCP errors, Rx FCS (CRC32) errors, and
Rx ICV errors using evcnt(9).

In promiscuous mode, and when scanning (hmm), ask the NIC for bad
packets (e.g., those that do not pass CRC32).  Pass bad packets to
radiotap listeners.  Pass packets to radiotap listeners before
stripping FCS.  Re-order operations in atw_rxintr() to accomplish
all of this without passing bad packets up to net80211.

Set radiotap channel once in atw_tune() instead of in atw_rxintr().

Fix an endianness bug: it_len is little-endian, but bpf_mtap2()'s
argument needs to be in host order.
2007-11-16 23:51:02 +00:00
martin 62901ed523 Initialize curlwp early 2007-11-16 23:46:20 +00:00
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