Commit Graph

88773 Commits

Author SHA1 Message Date
ad
a0d1fd8d0c It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 13:31:07 +00:00
pooka
b7321c1a86 apply ketchup to vop_mmap_args comment 2007-07-29 13:12:42 +00:00
ad
eb171eaaa7 It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:50:17 +00:00
pooka
abf11c212d Define a new lockmgr flag LK_RESURRECT which can be used in
conjunction with LK_DRAIN.  This has the same effect as LK_DRAIN
except it atomically does NOT mark the lock as drained.  This
guarantees that when we got the lock, we were the last one currently
waiting for the lock.

Use LK_DRAIN|LK_RESURRECT in vclean() to make sure there are no
waiters for the lock.  This should fix behaviour theoretized to be
caused by vfs_subr.c 1.289 which caused vclean() to run into
completion and free the vnode before all lock-waiters had been
processed.  Should therefore fix the "simple_lock: unitialized lock"
problems seen recently.

thanks to Juergen Hannken-Illjes for some analysis of the problem
and Erik Bertelsen for testing
2007-07-29 12:40:37 +00:00
ad
66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +00:00
ad
480f8d26c5 Disable kernel assertions if panicstr != NULL. 2007-07-29 11:46:02 +00:00
ad
c52c14050e Be more forgiving if panicstr != NULL. 2007-07-29 11:45:21 +00:00
pooka
dff8581037 Print also the topmost flag hex in vprint().
fun fact: this bug was introduced over 10 years ago, so I don't
think anyone has really keenly missed it.
2007-07-29 10:00:15 +00:00
pooka
e97d926940 Move bitmask_snprintf() from subr_prf.c to subr_prf_bitmask.c to permit
standalone compilation.  No functional change.
2007-07-29 09:38:01 +00:00
rumble
f486212a0e When computing the superblock checksum, use an unsigned short to avoid an
undesired sign-extension. Now EFS works on big endian machines, too.
2007-07-29 00:56:04 +00:00
rumble
64dd04152b Set the 'ri' pointer before use. 2007-07-28 22:35:56 +00:00
mjf
05619021ad Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
2007-07-28 20:28:56 +00:00
pooka
0a0815b77e Move hashinit() & hashdone() from kern_subr.c to subr_hash.c to
permit standalone compilation.  No functional change.
2007-07-28 12:53:52 +00:00
kiyohara
dab69ffee7 s/uint32_t reg/pcireg_t reg/.
Check condition `!= 0'.
2007-07-28 12:31:50 +00:00
kiyohara
5fc45c72a5 Add ichsmb(4). 2007-07-28 11:06:23 +00:00
kiyohara
37b3e2d574 Add support for Intel ICH SMBus controller. 2007-07-28 10:51:56 +00:00
pooka
33f2f6779a minor header cleanup 2007-07-28 08:19:36 +00:00
ad
46022e56e5 Update the blurb to match reality. 2007-07-28 00:12:26 +00:00
tron
8760b54b72 Use the appropriate number of maximum devices for Fibre Channel.
Problem Jarle Greipsland on "current-users" mailing list.
2007-07-27 18:38:13 +00:00
pooka
af927546de Move vfs_attach(), vfs_detach() and vfs_reinit() from vfs_subr.c
to vfs_init.c.  This permits easier standalone compilation of these
routines.
2007-07-27 14:25:21 +00:00
pooka
49e9065012 Expose struct vfsops and VFS_FOO()s if __VFSOPS_EXPOSE is defined. 2007-07-27 13:43:05 +00:00
tsutsui
1983a26b2e Check a correct value on a sanity check in jensenio_eisa_intr_map().
Fixes yet another bug on Jensen found on tracking PR port-alpha/36628.
2007-07-27 13:37:07 +00:00
tron
14ce5c0a98 Add support for newer SAS and similar devices to mpt(4). Tested with
the LSI SAS1064 in a Sun x4200 server.

These enhancements were developed by Garrett D'Amore and contributed
to NetBSD by the TELES AG.
2007-07-27 13:06:51 +00:00
xtraeme
294ea334f7 Change locking stuff in sysmon_envsys_register() and
sysmon_envsys_createplist().
2007-07-27 11:59:09 +00:00
yamt
c90a0e2579 stop nfs tick when we have nothing to do. 2007-07-27 10:03:58 +00:00
yamt
662e7a9e40 use ubc_uiomove for read as well. 2007-07-27 10:00:42 +00:00
yamt
3822af7031 ubc_uiomove: add an "advice" argument rather than using UVM_ADV_RANDOM blindly. 2007-07-27 09:50:36 +00:00
yamt
828aae6ba6 remove a debug printf. 2007-07-27 09:33:58 +00:00
pooka
8b45aab0cf include <uvm/uvm_prot.h> 2007-07-27 09:18:54 +00:00
pooka
91f15f1760 whoops, forgot to commit this a while back: initialize new vnode size 2007-07-27 08:38:39 +00:00
pooka
c59e414d23 vop_mmap parameter change 2007-07-27 08:32:44 +00:00
pooka
90f58074b5 regen: VOP_MMAP fflags -> prot 2007-07-27 08:27:38 +00:00
pooka
1ce406a846 Change unused fflags parameter in VOP_MMAP to prot and pass in
desired vm protection.
2007-07-27 08:26:38 +00:00
pooka
d9970c8066 Use eopnotsupp() instead of vfs_stdsuspendctl() and retire the latter. 2007-07-26 22:57:36 +00:00
pooka
daeb749df5 ntfs_unmount:
* panic if flushing system nodes fails: we have released too many
  resources and would die anyway the next time unmount is attempted
* KASSERT that VOP_CLOSE succeeds, but always return 0.  once again
  we have released too many resources

XXX: maybe rewrite to be a bit more robust
2007-07-26 18:43:14 +00:00
pooka
53a9d4abfa Don't do nfs server consistency checks in readdir, especially since
the check depended on the nfs server implementation.
2007-07-26 18:15:42 +00:00
he
40db4f866e Move the include of <machine/intr.h> into the _KERNEL / _LOCORE #ifdefs.
Fixes build problem with the extent regression test.
2007-07-26 14:54:09 +00:00
nonaka
a3f23fba88 use WSDISPLAY_TYPE_PXALCD. 2007-07-26 12:17:37 +00:00
nonaka
2462aff88e add WSDISPLAY_TYPE_PXALCD for PXA2x0 LCD controller. 2007-07-26 12:17:14 +00:00
macallan
0904724e1a - move register definitions to crmfbreg.h
- identify as WSDISPLAY_TYPE_CRIME
- always claim we're 32bit
- switch to 32bit colour in WSDISPLAYIO_MODE_MAPPED, switch back to 8bit
  in WSDISPLAYIO_MODE_EMUL
- restore palette, turn off the cursor when switching back to console mode
- add a few delay()s, hopefully that will deal with occasional messed up
  video timings *fingers crossed*
2007-07-26 02:25:14 +00:00
macallan
6b4ea0adbe add WSDISPLAY_TYPE_CRIME for the SGI O2's graphics hardware 2007-07-26 01:59:07 +00:00
tsutsui
49773e5f60 Flush all cache data at the beginning of the bootloader.
Fixes silent hangs after loading 4.0_BETA2 GENERIC kernel
on Qube2 (and RaQ2) with 256MB RAM, reported and tested
by James Hartley on port-cobalt.

Obviously this should be pulled up to netbsd-4.
2007-07-25 14:11:06 +00:00
xtraeme
bd8aee308c There's no need to check for cpu_vendor before calling est_init(), just
pass cpu_vendor to it.
2007-07-25 13:41:53 +00:00
njoly
b7a7f31e43 Add missing STOP conditions at the end of I2C operations. 2007-07-25 11:18:15 +00:00
macallan
fbbad8fbc0 add support for ioctl(WSDISPLAYIO_LINEBYTES) so XFree86/wsfb should work now.
Doh.
2007-07-24 20:09:57 +00:00
ad
615eff98fc In order to pacify assertions, make uao_list_lock + uvm_swap_data_lock
spinlocks for the time being.
2007-07-24 19:59:35 +00:00
hannken
40135c9d50 Handle IST_LEVEL interrupts better. Disable interrupt while it is
processed and enable afterwards.  Up to now IST_LEVEL interrupts always
fired again during processing leaving unnecessary pending interrupts.

Tested on EXPLORA451.

Ok: Simon Burge <simonb@netbsd.org>
2007-07-24 15:22:18 +00:00
hannken
6409dfa660 Use PR_NOWAIT in in pmap_enter_pv() and take care of PMAP_CANFAIL. Built
after powerpc/oea/pmap.c.  Now a LOCKDEBUG kernel runs on EXPLORA451.

Ok: Simon Burge <simonb@netbsd.org>
2007-07-24 15:19:09 +00:00
pooka
ac9042f5ce remove TNF advertising clause from file copyrighted to me 2007-07-24 14:41:29 +00:00
he
a4d164aaef Same change as -r1.133 of src/sys/arch/amiga/amiga/pmap.c:
As per hint from ad@, change uvm.kernel_object to uvm_kernel_object,
  to adapt to the recent uvm changes.
2007-07-23 23:13:04 +00:00