Commit Graph

89929 Commits

Author SHA1 Message Date
hannken
988890176c When swapping to a regular file use a workqueue to signal I/O completion.
VOP_STRATEGY() no longer gets called from interrupt context via
biodone() -> sw_reg_iodone() -> sw_reg_start().

Removes a deadlock condition reported in PR 37109.

Ok: YAMAMOTO Takashi <yamt@netbsd.org>
2007-10-15 08:12:13 +00:00
martin
27701280d7 We count last activity in time_update nowadays, so use that to compare
idle timeouts as well.
2007-10-14 23:44:49 +00:00
uwe
04d80981e9 For KSTACK_DEBUG fill lwp0 switchframe with 0xb4 too to match
what we do to other lwps in sh3_setup_uarea in vm_machdep.c.
2007-10-14 22:38:48 +00:00
kiyohara
eb89d5dad9 + Add #ifdef DPRINTF{,N} before #undef.
+ Initialize m_pkthdr.len, and increment if not escape charactor.
+ Call bcsp_start() if there is no transmitted packet.
+ Call m_adj() after debug print.
+ Reset the values of the Sequencing layer if link reset it.
2007-10-14 18:13:49 +00:00
yamt
568c54c442 sleepq_remove: remove a stale comment. 2007-10-14 14:23:12 +00:00
yamt
2171d72e8b fix typos in a comment. 2007-10-14 13:56:32 +00:00
nisimura
20160bd91a fix typos about a pair of multicast hash table registers. 2007-10-14 12:06:17 +00:00
nisimura
f385186cc1 add multicast filter support; either to use HW hash table lookup
filter or to accept any mcast frames.
2007-10-14 11:49:39 +00:00
xtraeme
ee740853d7 regen 2007-10-14 01:09:00 +00:00
xtraeme
fe47e4a5cf umidi(4) entries plus quirks for Roland UA25, UA4FX and SonicCell.
Submitted by DHOYASHIKI Shinichi via PR kern/36834.
2007-10-14 01:08:35 +00:00
xtraeme
048deba525 regen 2007-10-14 00:40:40 +00:00
xtraeme
53ba918bdd IC Plus Corp IP100A support for ste(4), submitted by
Pedro Alejandro Lopez-Valencia in PR kern/36605.
2007-10-14 00:40:17 +00:00
uwe
85dcbb2bb9 db_cmd_search: When we compare names we'd better stop at the nul byte.
Don't flip-flop between found and ambiguous.  (hi, martin!)
2007-10-14 00:37:56 +00:00
xtraeme
ed29af22c3 sme_event_drvadd: there's no need to acquire the mutex only when
setting the object on its dictionary.
2007-10-13 16:00:46 +00:00
joerg
19459bd736 Bump default size of the message buffer from 16 KB to 32 KB.
This is large enough that boot -v on most systems fits into the
message buffer, which makes it easier for debugging.
2007-10-13 14:46:54 +00:00
isaki
e334010e29 Correct indent. 2007-10-13 13:05:19 +00:00
yamt
2ea5c00ae9 sched_wakeup: remove a wrong assertion. 2007-10-13 12:05:32 +00:00
rmind
aa9301c8f4 sysctl_kern_lwp: Use a correct variable when rechecking if LWP still
exists after relocking.  Found via CID: 4689.  OK by <dsl>.
2007-10-13 10:04:08 +00:00
xtraeme
7703f72284 Use PRI_NONE for the priority argument in workqueue_create(9). 2007-10-13 02:44:19 +00:00
xtraeme
112f996fbc Use a mutex(9) rather than a rwlock(9), it's cheaper. 2007-10-13 00:56:16 +00:00
rmind
6673d94694 - Fix a comment: LSIDL is covered by spc_mutex, not spc_lwplock.
- mi_switch: Add a comment that spc_lwplock might not necessary be held.
2007-10-13 00:30:26 +00:00
rmind
337692921d sleepq_remove: Do not call sched_wakeup() when thread is running.
This fixes a locking problem, when l_cpu is changed in LSONPROC state.
Possible case was noted by <ad>.
2007-10-13 00:13:05 +00:00
ad
0256cc1d6a Merge from vmlocking: fix a deadlock with (threaded) soft interrupts and
process exit.
2007-10-12 14:29:37 +00:00
ad
972c6ae552 crit_enter/crit_exit are now available. 2007-10-12 13:38:08 +00:00
ad
78e4c5b083 Merge from vmlocking:
- uiomove: don't bother dropping kernel_lock if moving less than 1k.
- Catch up with vfsops reference counting changes (for LKMs).
- Add crit_enter()/crit_exit(). These bound critical sections in which
  kernel preemption is to be disabled. Better names welcome.
2007-10-12 13:00:18 +00:00
tsutsui
312a218da4 Regen from miidevs rev 1.73:
> Add Realtek RTL8211, which has the same ID with 8169S/8110S internal PHY.
2007-10-12 10:14:03 +00:00
tsutsui
4699c7f1af Add Realtek RTL8211, which has the same ID with 8169S/8110S internal PHY. 2007-10-12 10:13:07 +00:00
martin
28da38cbee Fix command name matching, avoid jumps to null function pointers and
some minor cosmetics.
2007-10-12 09:53:07 +00:00
dogcow
5b3a726673 <sys/lock.h> wants uintptr_t, so include <sys/stdint.h>.
cf <slrnfgtjo3.rj4.mason@g.primenet.com.au>, et al.
2007-10-12 09:15:37 +00:00
skrll
0d58a1f020 Don't restrict the offset when allocating a map entry for in-kernel map -
use UVM_UNKNOWN_OFFSET in the call to uvm_map_prepare.

This fixes a '"panic: malloc: out of space in kmem_map" when it's not
really' testcase of mine, and one reported to me by chuq. This is likely
to fix PR/35587 as well.

Looks/seems fine to me from chuq and yamt. Thanks.
2007-10-12 06:45:17 +00:00
pooka
1ff56db239 g/c garbage 2007-10-11 23:46:08 +00:00
pooka
c0a5a05f36 Handle suspend and flush requests from the file server. 2007-10-11 23:04:21 +00:00
pooka
d0216e150a in case of version mismatch, print the numbers 2007-10-11 22:06:05 +00:00
dyoung
462deb7ea8 In ifreq_setaddr(), use the right buffer sizes for compat v.
non-compat commands.
2007-10-11 20:47:27 +00:00
ad
715427972b LKMs & userspace don't care about LOCKDEBUG any more. 2007-10-11 20:11:38 +00:00
ad
0336b62acd NetBSD 4.99.33 - more stuff merged from vmlocking branch. 2007-10-11 20:11:10 +00:00
ad
4c92a21547 Remove LOCK_ASSERT(!simple_lock_held(&foo)); 2007-10-11 19:53:37 +00:00
ad
112ca87c2d Use __SIMPLELOCK_LOCKED_P(). 2007-10-11 19:49:04 +00:00
ad
11dc639958 Merge from vmlocking:
- G/C spinlockmgr() and simple_lock debugging.
- Always include the kernel_lock functions, for LKMs.
- Slightly improved subr_lockdebug code.
- Keep sizeof(struct lock) the same if LOCKDEBUG.
2007-10-11 19:45:24 +00:00
pooka
33c91738e5 Part 1/n of some pretty extensive changes to how the kernel module
interacts with the userspace file server:

  * since the kernel-user communication is not purely request-response
    anymore (hasn't been since 2006), try to rename some "request" to
    "message".  more similar mangling will take place in the future.

  * completely rework how messages are allocated.  previously most of
    them were borrowed from the stack (originally *all* of them),
    but now always allocate dynamically.  this makes the structure
    of the code much cleaner.  also makes it possible to fix a
    locking order violation.  it enables plenty of future enhancements.

  * start generalizing the transport interface to be independent of puffs

  * move transport interface to read/write instead of ioctl.  the
    old one had legacy design problems, and besides, ioctl's suck.
    implement a very generic version for now; this will be
    worked on later hopefully some day reaching "highly optimized".

  * implement libpuffs support behind existing library request
    interfaces.  this will change eventually (I hate those interfaces)
2007-10-11 19:41:13 +00:00
ad
6b7322f1ed This was using mutex_exit where mutex_enter was required. 2007-10-11 18:46:19 +00:00
xtraeme
f21fa70a6b Remove the pes_state member from the penvsys_state struct, it's unused. 2007-10-11 17:31:06 +00:00
xtraeme
752d116414 Check for the low power condition only when a new battery state sensor
changed its state, there's no need to check this in all cases.
2007-10-11 16:51:48 +00:00
christos
b96c4fd9a6 PR/37108: Pauly Goyette: Compute the timeout value, before immediate is
changed for atapi tape drives.
2007-10-11 16:42:52 +00:00
he
167a62205a Follow up the removal of the lwp_t* argument to do_filereadv() and
do_filewritev().
2007-10-11 13:51:12 +00:00
pooka
bbaa4c8c80 Cache vnode member variables necessary for operations after the
userspace call, namely our private mount structure, in the activation
record.  This avoids problems in situations where the userspace
file server happens to die during our upcall and the vnode is
forcibly reclaimed before we roll back to the current stack frame.
2007-10-11 12:31:45 +00:00
ad
d8d3327f01 Declare struct cpu_info for m68k ports. 2007-10-11 10:36:42 +00:00
xtraeme
7ade6d03ad Fix the problems described in:
http://mail-index.netbsd.org/current-users/2007/07/16/0012.html

- Introduce sme_class into the sysmon_envsys struct to specify a
  class; currently there are two classes: SME_CLASS_ACADAPTER and
  SME_CLASS_BATTERY.

- Add a new envsys event: PENVSYS_EVENT_LOW_POWER that is reached when
  all SME_CLASS_BATTERY devices are in CRITICAL/LOW state and there's not
  any SME_CLASS_ACADAPTER connected.

- Add the 'low-power' event into the sensor_battery script that will
  shutdown the system gracefully via 'shutdown -p'. If powerd(8) is
  not running, cpu_reboot(9) with RB_POWERDOWN is used.

- Make acpiacad(4) a SME_CLASS_ACADAPTER device and acpibat(4) a
  SME_CLASS_BATTERY device.

Update the documentation accordingly to these changes.
2007-10-10 23:25:39 +00:00
ad
1666230f45 +DEBUG, +VNODE_LOCKDEBUG 2007-10-10 22:41:15 +00:00
ad
f103d731ed Fix DEBUG builds. 2007-10-10 22:38:00 +00:00