Commit Graph

90260 Commits

Author SHA1 Message Date
ad 4f48f4962d Define ipl_cookie_t, ipl_t. 2007-11-07 00:20:22 +00:00
ad efe07d555b Use the softint_* API. 2007-11-07 00:19:54 +00:00
ad c3f5a622f9 Merge from vmlocking. 2007-11-07 00:19:08 +00:00
dyoung 6c2f73d13c Delete dead code that I accidentally introduced before. Thanks
Arnaud Lacombe for pointing out to me Coverity CID 4562.
2007-11-06 23:50:41 +00:00
dyoung b47fb23dd2 Use sockaddr_in6_init(). 2007-11-06 23:48:24 +00:00
dyoung 2bc0ce1e9b Take a clue from udp_usrreq(): block IPL_SOFTNET in udp6_usrreq(),
both while we purge an interface, and while we call udp6_output().

XXX udp6_usrreq() needs more attention.
2007-11-06 23:47:08 +00:00
dyoung cfeb7f085e Use sockaddr_in6_init(). 2007-11-06 23:40:38 +00:00
ad 1569e06e16 Install callback.h for kmem grovellers. 2007-11-06 23:39:25 +00:00
ad b7235be3f9 Regen. 2007-11-06 22:00:00 +00:00
ad abf0cf7ccd Merge from vmlocking. 2007-11-06 21:59:43 +00:00
ad afc64ea58c Use the softint_* API. 2007-11-06 21:51:07 +00:00
ad dc73f9929a Merge from vmlocking. 2007-11-06 19:50:55 +00:00
garbled 8c63679baf Add a bunch of devices to GENERIC. Fix interrupts on the PegasosII with
a nasty little hack.  Getting closer to a working system.
2007-11-06 19:22:59 +00:00
ad 57b6b02535 Merge from vmlocking. 2007-11-06 19:13:49 +00:00
ad 3b271ff768 Merge from vmlocking. 2007-11-06 18:02:43 +00:00
ad f3e0393b0e Back out chaff that should not have been merged. Spotted by rmind@. 2007-11-06 17:59:02 +00:00
ad d5622dbb85 Fix merge error. Spotted by rmind@. 2007-11-06 17:57:46 +00:00
pooka 773d31b14b yank out extra debug printf 2007-11-06 15:25:40 +00:00
kiyohara 2575726a88 The argument of *_intr_establish() is changed to fwohci_flit.
Our ieee1394 coordinates from FreeBSD implementation.
Add fwohci_pci_shutdown() and fwohci_pci_power().
Move __KERNEL_RCSID to ahead.
2007-11-06 15:24:10 +00:00
pooka 210515ea9c Fix locking issues with the anonymous pager too so that tmpfs can work. 2007-11-06 12:57:50 +00:00
dogcow 99f2863e95 on NetBSD, cardbus_intr_establish's fifth arg's is a symbol which returns
an int, not a void; change fwohci_intr accordingly.
2007-11-06 12:32:12 +00:00
dogcow 55d73ac843 callout_init has two args. 2007-11-06 12:30:42 +00:00
pooka 7331777bf0 default to rootnode mode 0777 2007-11-06 12:26:12 +00:00
pooka 78821d0076 initialize vnode interlock when creating one 2007-11-06 12:14:37 +00:00
itohy 6d75b40284 - Reset the bus if a Bus Reset condition is detected to make sure
all devices on the bus are really reset.

- Block interrupts on Bus Reset, and check it periodically until the
  reset is released.  On some 32UDE devices (probably the earlier ones)
  the RST line looks unstable without the termination power and may
  suffer ~continuous Bus Reset interrupts.

- Change number of scatter/gather segments from 16 to 17, to allow
  non-page-aligned 64KB transfer on 4KB/page platforms.
2007-11-06 11:35:35 +00:00
pooka 895e09b8c5 Sprinkle some more locking, especially to the vm. Due to some
additional fixes, it's now possible to run file systems with
spinlocks actually enabled.  The genfs_putpages() locking is still
working only due to greater powers, but I'll eventually get around to
fixing it.
2007-11-06 11:35:04 +00:00
pooka ef11b00de6 Update to new puffs_mainloop() signature. Forgot to do this yesterday.
noticed by Kurt Schreiner on current-users
2007-11-06 10:57:35 +00:00
uwe 0ecea51f05 Misc cleanup: use device_* and aprint_*, group declarations, g/c some
dead code, etc.
2007-11-06 05:01:26 +00:00
uwe 84e75de6c1 Get rid of local product table, instead just match id register and
pci_devinfo().  While here, convert to device_t, aprint_*.
2007-11-06 03:23:15 +00:00
simonb 3e1f18ae93 Fix unused variable warning for the non-FPU/altivec case. 2007-11-06 02:52:53 +00:00
uwe 8531d31a58 Use device_t and device_private(). Convert attach to use aprint_*. 2007-11-06 02:29:19 +00:00
uwe 58197290f3 Use aprint_* 2007-11-06 01:46:02 +00:00
uwe 88c74cddaf Convert to aprint_* 2007-11-06 01:33:00 +00:00
uwe 8b4bf162e5 Use device_t and device_private(). Use aprint_* in attach. 2007-11-06 01:00:59 +00:00
uwe 2b2a00534e Add missing aprint_naive("\n"); in rlphyattach. 2007-11-06 00:58:32 +00:00
ad d831186d55 Merge scheduler changes from the vmlocking branch. All discussed on
tech-kern:

- Invert priority space so that zero is the lowest priority. Rearrange
  number and type of priority levels into bands. Add new bands like
  'kernel real time'.
- Ignore the priority level passed to tsleep. Compute priority for
  sleep dynamically.
- For SCHED_4BSD, make priority adjustment per-LWP, not per-process.
2007-11-06 00:42:39 +00:00
uwe 5e48e66a0e Use device_t and device_private().
While here - make ops static.
2007-11-06 00:36:30 +00:00
ad e1fb70b70d Fix decl of lbolt. 2007-11-06 00:25:48 +00:00
xtraeme f4046a2e1c Missed a struct device -> device_t, found by joerg. 2007-11-05 23:57:32 +00:00
ad bd6663fc4d Don't set l_usrpri / spc_curpriority here. mi_userret() does it. 2007-11-05 20:37:48 +00:00
kiyohara c33e2714c5 + Sync to FreeBSD.
firewire.c Rev.1.101
    firewire.h Rev.1.21
    firewirereg.h Rev.1.50
    fwdev.c Rev.1.52
    fwdma.c Rev.1.9
    fwmem.c Rev.1.34
    fwohci.c Rev.1.93
    fwohcireg.h Rev.1.23
    fwohcivar.h Rev.1.16
    if_fwip.c Rev.1.16
    if_fwipvar.h Rev.1.5
    sbp.c Rev.1.92
+ Cleanup macros in fw_port.h.
+ Fix the occurrence of the error at the resume.  Don't set the buffer again.
2007-11-05 19:08:56 +00:00
macallan f59f835fa4 don't panic if we're not finding all the properties we need. Just complain
quietly and return.
2007-11-05 16:57:46 +00:00
nisimura da304b3915 EncorePP1 VIA686B southbridge fixup work; hide and disable USBx2, AC97
audio and MC97 modem, and force IDE to have native mode.
2007-11-05 15:56:37 +00:00
garbled de8e7fde3e Lots of small changes for ofppc:
Remove the ofb driver.  I'm not interested in trying to make this work.
It should be replaced with the genfb driver, which I have added,
commented out because that driver needs work before it will function on
ofppc.  (it's too panic-happy, and ofppc needs a working autoconf.c)

Change the way we do isa_inb/outb.  The new way is a slightly nastier
hack, but won't run afoul of the other isa drivers as much.

Fix ofw_consinit.c to remove the dependency on ofb.
2007-11-05 15:49:02 +00:00
nisimura 0b718fbde6 - use offset 0x4500 serial for EUMB console.
- make sure to have I-cache/D-cache enabled. Ok for DINK32 and ppcboot.
- have 32B aligned fxp txdesc.
- sip transmit now works.
2007-11-05 13:41:48 +00:00
joerg 08de5799c0 Use the fallback to ACPI SCI as PCI interrupt only as a last resort
if no other entry could be used.
2007-11-05 10:30:44 +00:00
rmind 1a3f8bd1d1 cpu_xc_offline: Do not double-lock the runqueues for SCHED_4BSD, it uses a
global sched_mutex.  Fixes a hang reported by <jmcneill>.  Tested with M2
and 4BSD - seems to be working fine.
2007-11-05 03:36:14 +00:00
martin b050fccbb2 Extend the sparc64 cpu kcore segment so that it records all kernel mappings
done via locked 4 MB pages. The old format could only record physically
continous kernel text mappings.
For compatibility reasons, just extend the structure and fill in all the
old fields as well.
2007-11-05 00:43:41 +00:00
nisimura ac767563ef - rework sip.c, with bitbang fix. still remains not serving well.
- fix for PCI-PCI bridge recursive call.
2007-11-05 00:40:39 +00:00
pooka 2525a332ae * sprinkle some locking into the vm code
* avoid extra insert+search+remove step in file systems using
  ubc_uiomove() instead of standard uiomove()
2007-11-04 19:52:14 +00:00