Commit Graph

91991 Commits

Author SHA1 Message Date
ad eb24572347 Fix some problems with TLB shootdown and (hopefully) make it faster. This
had the potential to cause problems prior to 4.99.48 because it called into
the VM system without kernel_lock held.

XXX1 pmap_update() should be waiting for shootdown jobs to complete. It's
not clear how to do that because the shootdowns happen at IPL_VM.
2008-01-12 16:45:29 +00:00
tsutsui a07f7c8069 Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
2008-01-12 09:54:21 +00:00
yamt b46466b4df revert a whitespace change which is against KNF. 2008-01-12 09:10:24 +00:00
dyoung 1386ee4adf Good-bye, rtcache_check(). Call both rtcache_validate() and
rtcache_update(,1) instead of rtcache_check().
2008-01-12 02:58:58 +00:00
dyoung 5bf14fd932 _rtcache_init(): shorten this by getting out immediately if rtalloc1()
returns NULL.
rtcache_copy(): re-order operations a bit.  KASSERT() that we are
    not copying a route over itself.
2008-01-12 02:56:30 +00:00
ad 08c770b434 Initialize caches at IPL_SOFTBIO (not IPL_NONE) so that we are allocating
from kmem_map.
2008-01-12 00:34:10 +00:00
tnn 103f966e33 regen (add ServeRAID 6/7) 2008-01-11 20:49:14 +00:00
tnn 2abb4192af Add ServeRAID 6/7 2008-01-11 20:47:21 +00:00
bouyer 26315d042c Merge the bouyer-xeni386 branch to head, at tag bouyer-xeni386-merge1 (the
branch is still active and will see i386PAE support developement).
Sumary of changes:
- switch xeni386 to the x86/x86/pmap.c, and the xen/x86/x86_xpmap.c
  pmap bootstrap.
- merge back most of xen/i386/ to i386/i386
- change the build to reduce diffs between i386 and amd64 in file locations
- remove include files that were identical to the i386/amd64 counterparts,
  the build will find them via the xen-ma/machine link.
2008-01-11 20:00:13 +00:00
he 4b2e779458 Include <sys/simplelock.h> to pull in appropriate definitions. 2008-01-11 14:03:47 +00:00
ragge 1d93d6da72 Add entry to match the "Intel® PRO/1000 PT Quad Port Server Adapter". 2008-01-11 13:04:39 +00:00
ragge 9360a7471b Regen 2008-01-11 12:01:20 +00:00
tsutsui 7ae8e79ff0 - add options COMPAT_40
- adjust comments
2008-01-11 11:45:24 +00:00
ragge 5f5a2ae52a Add Intel quad 1000baseT copper PCI express card. 2008-01-11 11:31:25 +00:00
tsutsui 8dcb4a7ea6 Always account idepth for cpu_intr_p(), which is now
mandatory for sys/kern/vfs_bio.c:biodone().

Comments from Andrew Doran, and fixes mutex errors on sun3.
2008-01-11 10:21:26 +00:00
tsutsui 8c58569757 WARNSfy 2008-01-11 09:26:26 +00:00
mrg 626bd12a5c enable PCI_NETBSD_CONFIGURE for ofppc.
the call to pci_configure_bus(9) and it's supporting code is
copied verbatim from the prep port.

this allows us to completely remove the really gross pegasos
specific pegasospci_indirect_attach_hook() that set various
pci command regs, since all those devices (mostly work now,
see below) and additionally PCI plugin cards work now too.

it also makes the pegasos onboard vr(4) ethernet work with
disk boot (it previously only worked with netboot.)

in the generic macppc ofw pci conf hook and for pegasos,
don't configure the viaide(4) device, and don't configure
memory space on the fwohci(4) device.


with this, and my other recent ofppc/ppc changes the pegasos
port is mostly functional.  the marvell gige is not working,
and my 512mb appears as only about 256mb, but otherwise
this port is almost done!
2008-01-11 05:18:58 +00:00
mrg 5206bb3800 several changes to make boot device work for disks, at least
on my pegasos:

- don't chop off the 2nd part of the OFW address, it makes it
  match pcib (ISA bridge - dev 12 fn 0) instead of viaide (dev 12
  fn 1).
- now that it's available, provide an "addr2" that has the
  second address present.
- for pci devices match against device and function, not just
  function.
- remove the special case and actually broken check in the
  "pciide" section, and use the now generic "addr2" and check
  against the drive and channel number if provided.
- support "viaide" and "slide" in here, as well as "pciide".
  (is there a good way to say "any ide adapter"?)
2008-01-11 05:11:18 +00:00
dyoung a52afa8f89 Cosmetic: remove redundant 'not' from a comment, re-wrap lines. 2008-01-11 01:38:45 +00:00
skrll 1086712904 #options<space><tab> 2008-01-10 21:22:49 +00:00
skrll ae654e4721 Various improvements to the hppa kernel for gdb.
- add the useful space and control registers to struct reg
	- update process_{read,write}_regs accordingly
	- use MID_HPPA in core dumps.
	- dump the fp regs into cores.
	- add single stepping support from OpenBSD.
2008-01-10 21:08:40 +00:00
ad e8532b7138 - Fix a memory order problem with non-interlocked mutex release.
- Give kernel_lock its own cache line.
2008-01-10 20:14:10 +00:00
ad a38086a9b8 Remove hack that's no longer needed. 2008-01-10 19:04:23 +00:00
ad 9dc48ffbf6 uiomove: don't bother with kernel_lock any more. 2008-01-10 16:29:17 +00:00
tsutsui fba7c262a8 Move todr_attach(9) calls from each MD attachment to MI intersil7170_attach(). 2008-01-10 16:04:57 +00:00
tsutsui 05517e38f5 - move todr_attach(9) calls from each MD attachment to MI mk48txx_attach()
- don't clear todr_setwen in mk48txx_attach() since it might be set by
  MD attachments
2008-01-10 15:31:26 +00:00
tsutsui db09bcc34f Move todr_attach(9) calls from each MD attachment to MI mc146818_attach(). 2008-01-10 15:17:39 +00:00
tsutsui c86aec7cca Cycles per second values read from the CP0 counter should be doubled
on calculating CPU frequency in CPU_MIPS_DOUBLE_COUNT case,
which is always assumed on this port.
2008-01-10 14:57:34 +00:00
tsutsui 6dfc7d1b78 - use aprint_normal(9)
- use __func__ to print function names
2008-01-10 14:52:32 +00:00
tsutsui 57e50507c9 Use aprint_normal(9). 2008-01-10 14:51:49 +00:00
tsutsui af18f23ec2 - use aprint_normal(9)
- use __arraycount()
- use __func__ to print a function name
2008-01-10 14:51:17 +00:00
tsutsui df9b6a3215 The MIPS3 CP0 counter is not cleared at compare-match and
it always counts upto UINT32_MAX, so no need to handle
wrapped around case with ci_cycles_per_hz value.
2008-01-10 14:29:08 +00:00
pooka c52c351d09 Terminate mntonname at [1] instead of [0].
fixes kern/37735 by Tobias Nygren
2008-01-10 13:05:01 +00:00
skrll 2f713e866e As we're reusing buf we need to clear b_oflags so the buf isn't marked as
BO_DONE.

Disklabels can be found again
2008-01-10 12:44:50 +00:00
tls bc6d48ecfe Add sparse kernel core dump ("minidump") support for i386, written by Jed
Davis for Coyote Point.  Though this does not modify the kernel core
format (it uses multiple memory segments, a feature previously unused on
i386) it is nonetheless disabled by default.  Sysctl machdep.sparse_dump=1
to turn this feature on.

Dumps of even busy, large-memory systems are generally a few tens of
megabytes.
2008-01-10 11:10:35 +00:00
dyoung bf192f5d8d In pcppi_detach(), s/pmf_device_register/pmf_device_deregister/.
Why that never blew up when I tested, I will never know.  Thanks
wiz@ for catching my mistake.
2008-01-10 08:55:31 +00:00
dyoung b0b0d490fb Straggler: change generic ifmedia_X names to lmc_ifmedia_X. 2008-01-10 08:50:52 +00:00
dyoung 45485bd0b7 Save some rtcache_getrt() calls. 2008-01-10 08:06:11 +00:00
dyoung a91969dd88 Save a rtcache_getrt() call. 2008-01-10 08:04:18 +00:00
dyoung ca874f52f7 Make many void rtcache_X() routines return struct rtentry *, so
that we can make many back-to-back rtcache_X();rtcache_getrt()
calls into one rtcache_X() call.
2008-01-10 08:03:22 +00:00
dyoung 72fea72bb2 Add a helper subroutine for ethernet drivers, ifmedia_change(). 2008-01-10 08:00:22 +00:00
dyoung 636e434283 Support pcppi(4) detachment.
Use device_t, device_private().  Get rid of a struct device * cast.
2008-01-10 07:58:39 +00:00
dyoung d3a283186c Use device_t. 2008-01-10 07:49:04 +00:00
dyoung 92e5e1c722 Oops, remove some debug statements that slipped in there. 2008-01-10 07:48:22 +00:00
dyoung 3a66b9167f Let us detach atabus* from wdc*, and wdc* from isa*.
Use device_t, device_private().
2008-01-10 07:44:07 +00:00
dyoung 1415c1d7aa Use device_t, device_xname(), device_private(). Add atabus_childdetached()
to clean up pointers to detached children.
2008-01-10 07:41:20 +00:00
dyoung 3e5bb8f3c8 Produce tags for arch/i386/acpi/*.[ch], arch/i386/pnpbios/*.[ch]. 2008-01-10 07:35:09 +00:00
dyoung a826619d34 Make the 'tags' target produce some useful tags. 2008-01-10 07:34:02 +00:00
dyoung c329a611cb Add a helper routine for ethernet drivers, mii_ifmedia_change().
Remove an mii_softc from its mii_data in mii_phy_detach(), not in
mii_detach(), so that we do not leave dangling pointers to a PHY
in an mii_data.
2008-01-10 07:29:41 +00:00
dyoung 49df706f87 Re-use ether_mediachange(), ether_mediastatus(). Stop using
shutdownhook_establish(9).
2008-01-10 07:25:33 +00:00