Commit Graph

104471 Commits

Author SHA1 Message Date
mrg b7afc13f58 default powerpc64 mbufs to 512 bytes, like other 64 bit platforms.
from dennis.c.ferguson@gmail.com in PR#43028.
2010-03-22 02:14:28 +00:00
mrg eaa088bcc1 add powerpc64 support. from dennis.c.ferguson@gmail.com in PR#43029. 2010-03-22 02:00:33 +00:00
mrg c9757b07d4 since pmap_activate/pmap_deactivate need to not block, but the rest of
pmap is OK, add a new IPL_VM pmap_ctx_lock that is held while allocating
or freeing a context, and revert pmap_lock back to IPL_NONE.

i considered a per-cpu context lock, but that would require locking
each active CPUs lock in turn in pmap_remove_all() and pmap_destroy().


thanks to ad for explaining how these parts interact.
2010-03-21 22:38:08 +00:00
jklos 054fd02ef5 Reorganizing Chelsio 10 gig files into separate directory. 2010-03-21 21:15:37 +00:00
jklos 86bb752ce4 Reorganizing all Chelsio 10 gig files into separate directory. 2010-03-21 21:11:13 +00:00
plunky 56e30c61a6 send the SET_SCALE11 command before the 'sliced' command as per the
Linux driver (and elantech(4)), via PR kern/42853
2010-03-21 20:04:43 +00:00
plunky 4cac2374d5 Extended capability probes can confuse the passthrough device,
reset the touchpad on enable to cure that.
2010-03-21 19:57:05 +00:00
plunky 88c4db2ecc some definitions from the Linux driver (via PR kern/42853) 2010-03-21 19:53:52 +00:00
nonaka e7cdf99f1a sync with OpenBSD:r1.3
> bus_dmamap_sync fixes to cope with real life.
2010-03-21 14:49:28 +00:00
christos e20b5c4bf4 revert previous for now. 2010-03-21 14:28:15 +00:00
nonaka a6299ff98b more fix. 2010-03-21 13:34:19 +00:00
nonaka ec54e91092 fix wrong op priority. 2010-03-21 13:10:38 +00:00
pooka f3beefdb45 Convert acpibat to use ioconf instead of homerolled config glue.
Note, config whines about things like:
files.acpi:30: attaching undefined device `apm'

I intentionally was a lazy boy and didn't include a ton of dirt to
keep the hot napalm and riot blasts in the config thread rolling ;)

tested by jruoho (thanks!)
2010-03-21 07:09:56 +00:00
pooka ce672f239f include bsd.ioconf.mk when necessary 2010-03-21 06:56:52 +00:00
pooka 40bb87a667 Move make snippets for use with config(1) ioconf functionality from
rump into share/mk.  This is to make it useful for all kernel
builders.

Note: we have waaay too many weird and wonderful ways of making
kernel code (monolithic kernel, modules, rump).  There should be
only one way to build kernel code instead of a maze of twisty little
.mk files, all not quite alike.  When that is fixed, this snippet can go
into the more generic .mk file.
2010-03-21 06:55:44 +00:00
chs e23026927c in nfs_bootparam(), set the corresponding flag for each field that we fill in. 2010-03-21 00:10:40 +00:00
chs 45709939f2 assert that pcb_onfault is NULL in places where it should be. 2010-03-21 00:10:14 +00:00
christos f7c98956a3 remove unnecessary cast now that lint is more intelligent. 2010-03-21 00:04:34 +00:00
chs 04aa4da3b0 fix copy{in,out}{,str}() to return the error returned by uvm_fault().
fixes PR 41813.
2010-03-20 23:31:27 +00:00
mrg 9a2f900318 convert pmap_lock into an IPL_VM lock, and avoid calling
KASSERT(!mutex_owned(&pmap_lock)) since that's no longer valid.

this fixes hangs on 4-core machines like the U80.

tested on U80, SB2500 and SB2000.


XXX: my initial attempts to replace pseg_lock with this new equivalent
XXX: lock hang in pmap_bootstrap it seems..  but this should be able
XXX: to go away now.
2010-03-20 20:36:23 +00:00
pgoyette 9f799e4338 Use correct format directive in aprint_debug_dev()
Thanks to Kurt Schreiner for reporting this on current-users@
2010-03-20 19:04:51 +00:00
kiyohara 12fb39e568 Fix build failed.
Add forgot zmiireg.h since support 405EX.
2010-03-20 15:22:27 +00:00
christos 7a75d79822 /*LINTED*/ is too wide a brush. 2010-03-20 14:43:50 +00:00
joerg 8538400b67 Shut up the broken piece of junk called lint. Use __inline. 2010-03-20 12:54:42 +00:00
mrg c8c2757eb3 don't pass "maxaddr" as a boundary in bus_dmamap_create() like rev 1.8
did for _alloc().
2010-03-20 02:53:35 +00:00
pgoyette 9a70d7bce8 Fix the dbcool_{get,set}_limits() routines to properly deal with min/max
values on temp limits.  The actual ranges for temp limits varies if the
chip is running in "extended temperature" mode, so we need to handle this
difference, too.

Verified on my home machine which runs in extended-temp mode and by
njoly@ on a machine which does runs in the older 2s-complement mode.
2010-03-20 02:42:19 +00:00
christos b691db097d more debugging compilation fixes. 2010-03-20 01:52:16 +00:00
christos 7fa75c35d6 fix debugging code. 2010-03-20 01:47:12 +00:00
christos 6d16572ef4 minimize ifdefs and avoid duplicated code. 2010-03-20 01:45:30 +00:00
dyoung 1d2aca0728 Add PCI_BAR(n) for the nth Base Address Register. 2010-03-20 00:23:41 +00:00
dyoung 061b0589a4 Add a prototype for pci_mmio_range_infer() that will infer the
range of memory forwarded by the host chipset to PCI.
2010-03-20 00:02:59 +00:00
dyoung 76d5da9433 Cosmetic: abbreviate: use `pc' instead of `pci_chipset_tag'. 2010-03-19 23:27:12 +00:00
christos 3e2a63c711 - Make maximum memory limits for various things #define constants and use the
consistently across the code.
- Re-do note parsing code to read the section headers instead of the program
  headers because the new binutils merge all the note sections in one program
  header. This fixes all the pax note parsing which has been broken for all
  binaries built with the new binutils.
- Add diagnostics to the note parsing code to detect malformed binaries.
- Allocate and free note scratch space only once, not once per note.
2010-03-19 22:08:13 +00:00
joerg 7780b0a4a4 Add functions for replacing runtime invariant 32bit unsigned divisions
with simpler full width multiplications and shifts + adds. The main
operations are generally at least 50% faster when serialised and often
better for parallelism as well.
2010-03-19 16:48:55 +00:00
tsutsui 8058413106 Replace some magic numbers with macro. Tested on SMC_TT on atari. 2010-03-19 15:59:22 +00:00
tsutsui 3b71237085 Misc KNF. 2010-03-19 14:57:52 +00:00
tsutsui e875fdc857 No need to override mem_ring value in ne2000_ipkdb_attach()
since a wrong calculation in dp8390_ipkdb_attach() was fixed.
2010-03-19 14:26:37 +00:00
tsutsui 829582d74c ANSI'fy, misc KNF. 2010-03-19 14:20:56 +00:00
tsutsui 65fc75c7f3 u_intN_t -> uintN_t 2010-03-19 10:54:00 +00:00
tsutsui 60ea12aae5 bus_space_write_region_N() should also take a const buffer. 2010-03-19 10:45:09 +00:00
he b7401550b9 Constify the buffer pointer argument of the _bus_space_write_multi_<n>
inline functions, so that this builds again.  (Otherwise, ne2000.c driver
would now fail to build.)
2010-03-19 08:28:44 +00:00
skrll 6fdbb020e1 Fix PMAPDEBUG build for previous. 2010-03-19 07:35:29 +00:00
skrll dfb62ec228 Not all PA CPUs have the U-bit (uncacheable) for non-IO memory. In fact
most don't.  Deal with non-equivalent aliases by removing and flushing the
managed mappings, and flushing the unmanaged mappings.

When flushing caches/TLB flush the cache before purging the TLB just in
case the flush enters the mapping into the TLB.
2010-03-19 07:29:44 +00:00
cnst deaf16ef51 Remove aiboost(4) as obsolete and redundant since the introduction of aibs(4).
http://mail-index.netbsd.org/tech-kern/2010/03/06/msg007458.html

Reviewed by <pgoyette>, <cegger>, <jruoho>, <tech-kern>.
2010-03-19 04:04:27 +00:00
pgoyette 3a92a7609d Modify previous commit. The routine to deliver events is intended to be
exported to device drivers, so rename it and move the declaration to
<dev/sysmon/sysmonvar.h>
2010-03-19 02:19:13 +00:00
cnst 291f4cc576 support W83667HG (0xa5) in wbsio(4); its hw mon is already supported by lm(4) as W83627DHG (0xc1) 2010-03-19 02:17:41 +00:00
dyoung d2f2daad71 Remove superfluous cast (device_t to device_t). 2010-03-19 01:44:05 +00:00
dyoung f4de9422d8 Use Cardbus_intr_disestablish() instead of cardbus_intr_disestablish().
Get rid of a (short) staircase in ex_cardbus_detach().
2010-03-19 01:34:46 +00:00
dyoung cc222cba88 Don't pick up the network-interface, ethernet, and 802.11-related
definitions by chance (or by the bus-specific front-end #including them!).
#include them here, instead.
2010-03-19 01:32:30 +00:00
dyoung 1d4183c115 Don't pick up the <sys/sysctl.h> definitions by chance,
but #include here.
2010-03-19 01:31:11 +00:00