Commit Graph

199212 Commits

Author SHA1 Message Date
rmind
ccfaf6e414 Optimise mutex_onproc() and rw_onproc() by making them O(1), instead
of O(ncpu) for adaptive paths.  Add an LWP destructor, lwp_dtor() with
a comment describing the principle of this barrier.

Reviewed by yamt@ and ad@.
2011-03-20 23:19:16 +00:00
christos
a46656e6ee Add ld formats for the unit-tests. 2011-03-20 23:16:07 +00:00
christos
61e56760bc Merge the new gdtoa: Note that the built-in tests fail the same way as with
the old gdtoa.
2011-03-20 23:15:35 +00:00
mrg
f4a9b0b1e6 re-add most of the pryo-supporting code, and some general clean up:
- handle setting tsb size in the ptsb via IOMMU_TSBSIZE_IN_PTSB (partly from
  openbsd)
- fix IDB_INFO for systems without a STC that fault on accesses to the
  flush register (like pyro)
- move iommu_reset() to the end of iommu_init()
- use IOMMUREG_WRITE() in a few places
- add a missing membar_lookaside() (from openbsd)
- if pmap_extract() on the flush buffer fails, disable flushing (from openbsd)
- flush the pyro-style iommu when IOMMU_FLUSH_CACHE is set (partly from openbsd)
- clear up a bit of debugging code so it spew a little less (sometimes you will
  get kernel lock spinouts due to long scrolling printfs)
- use __func__ in several places
2011-03-20 21:26:36 +00:00
mrg
371219c783 add pci@pryo@mainbus and ebus@mainbus support. 2011-03-20 20:55:46 +00:00
christos
7ee5629d5b add a stdio neutral getline/getdelim implementation. 2011-03-20 20:48:57 +00:00
mrg
9117b6a117 remove pyro_xir(). we don't have the MD support for it (yet?).
clean up some debug code.  clean up the DPRINTF() code, and expand
the interrupt mapping debug code to match schizo and psycho.
set IOMMU_TSBSIZE_IN_PTSB, and if oberon, IOMMU_FLUSH_CACHE.
disable the STC explicitly.
2011-03-20 20:48:36 +00:00
mrg
817ca0ac3d add a new is_flags member to strut iommu_state. add two flags:
IOMMU_FLUSH_CACHE     - extra flushes needed for some pyro
IOMMU_TSBSIZE_IN_PTSB - different ptsb assignment for pyro

partly from openbsd.
2011-03-20 20:47:10 +00:00
mrg
a38cbfb289 enable the tomatillo iocache.
garbage collect struct iommureg_schizo and use struct iommureg2.
2011-03-20 20:43:34 +00:00
mrg
bebacd2c9f define 'struct iommureg2', that includes the full set of regs for the
schizo and pyro iommu's.  use these in IOMMUREG().

add back IOMMUREG_READ() and IOMMUREG_WRITE() macros.
2011-03-20 20:42:06 +00:00
mrg
f24c5fa4a4 remove unnecessary iommuvar.h and psycho{reg,var}.h includes. 2011-03-20 20:40:22 +00:00
plunky
0e26bab8bd provide more informative error messages 2011-03-20 19:46:13 +00:00
tsutsui
73969d32cf Add usb_dma attribute for DMA capable USB host controllers
and specify that usb_dma attribute to dev/usb/usb_mem.c.

usb_mem.c uses bus_dma(9) for DMA memory allocation,
but non-DMA capable USB host controllers like slhci(4)
doesn't need them at all, and some ports don't bother to
prepare MD bus_dma(9) implementation (yet).

Discussed on current-users
 http://mail-index.NetBSD.org/current-users/2011/03/13/msg015995.html
and usb_dma attribute is suggested by bouyer@.
Tested by kiyohara@ on mmeye with slhci at pcmcia.
2011-03-20 17:54:02 +00:00
tsutsui
56293e3413 Move MALLOC_DEFINE()s from usb_mem.c to usb_subr.c.
usb_mem.c provides functions for DMA memory allocation
that is required by DMA capable host controllers only,
but MALLOC_DEFINE() isn't DMA specific and could be required
by any USB drivers.

Discussed on current-users.
2011-03-20 17:38:11 +00:00
tsutsui
69d595d91e Shrink more options, file-systems and device. 2011-03-20 17:32:19 +00:00
phx
e821698c19 More networking options. 2011-03-20 17:10:46 +00:00
jruoho
214b65a53f Now that this is a generic page, clarify the AUTHORS section a little. 2011-03-20 13:07:38 +00:00
phx
c04d0174cc Use sysctl-node machdep.prodfamily to decide about the kernel to install and
to fix the console speed in /etc/ttys.
2011-03-20 12:43:40 +00:00
phx
f376dd1d49 Added missing devices: usb, sysmon, altq 2011-03-20 12:40:58 +00:00
bouyer
6d537d7313 Fix use-after-free. Discovered by running tests with MALLOC_OPTIONS=J
(should this be the default for tests ?), pointed out by njoly@
2011-03-20 12:36:14 +00:00
hannken
fbf9a016fe When extending a file, either by truncating or by writing past EOF make
sure the unallocated remainder of the last page gets zeroed.

Detected by fsx.
2011-03-20 12:21:28 +00:00
bouyer
875bb8e6c3 initialise memory allocated for uquot_user_hash & uquot_group_hash.
Pointed out by Nicolas Joly.
2011-03-20 11:41:24 +00:00
martin
56d78e2532 Add /usr/bin/getopt, it is needed by /usr/mdec/binstall.
Noticed by Jaime Fournier.
2011-03-20 09:04:53 +00:00
ahoka
ab7aeea36d Fix markbad command 2011-03-20 06:10:27 +00:00
nonaka
cf8c061385 if poll card detect is enabled, don't show "couldn't enable card". 2011-03-20 03:02:48 +00:00
nonaka
40ea0d961b added ld0 for SD/MMC. 2011-03-20 03:00:56 +00:00
phx
ddf0053263 The DSM-G600 U-Boot is so restricted that there is no possibility to pass
any bootargs. So we will just do the default multiuser boot from wd0: when
altboot was started together with a Linux initrd image.
2011-03-20 02:07:05 +00:00
christos
3e812ebec1 don't need these and they break the build 2011-03-19 21:26:02 +00:00
hannken
d8c44cec40 Remove a vnode reference leak from msdosfs_rename. Release tdvp if either
doscheckpath() or relookup() fails.

Adjust test fs/vfs/t_vnops.c and remove the link count test for msdos.

Fixes PR #44661
2011-03-19 20:05:21 +00:00
phx
fcc4672d90 DLink DSM-G600 IDSEL-14 (USB) needs special handling: Pin A is mapped to
EPIC-IRQ 1, but Pin C must be mapped to IRQ 2.
2011-03-19 19:54:02 +00:00
jakllsch
07bc3e6b39 Fix typo, adjust less list address. 2011-03-19 17:12:12 +00:00
christos
185969dd49 from www.netlib.org 2011-03-19 16:26:36 +00:00
jakllsch
5ed27c5e1e Add announce mailing list address for less. This and previous commits changes
prompted by Snader_LB.
2011-03-19 16:10:16 +00:00
phx
f96a3d06f6 Add ral(4) and stge(4) for DLink DSM-G600.
Disabled DIAGNOSTIC.
2011-03-19 16:05:35 +00:00
jakllsch
efc176a403 Less is now at version 436. 2011-03-19 14:54:05 +00:00
cliff
8c2354cc52 include flashio.h 2011-03-19 13:47:43 +00:00
jruoho
8e61d41493 Like in rest of the acpi(4) stack, queue all resume hooks. 2011-03-19 12:57:30 +00:00
wiz
523ab18712 Remove duplicate word. 2011-03-19 08:42:41 +00:00
wiz
8daed3c318 Add missing comma. 2011-03-19 08:41:19 +00:00
skrll
0f27bfbde0 Whitespace. 2011-03-19 06:48:09 +00:00
jruoho
acf13bc7e1 Add a simple test file for <sys/bitops.h>. For now, only ilog2(3) is tested. 2011-03-19 06:39:17 +00:00
ahoka
f9a44d1787 Dont try to read MSR_TEMPERATURE_TARGET on Core Duo Yonah 2011-03-19 06:15:12 +00:00
jruoho
e845edb12c Add missing period. 2011-03-19 05:18:36 +00:00
jruoho
1194e4acc3 Briefly document __predict_true() and __predict_false(). 2011-03-19 04:59:43 +00:00
cliff
0d7e06e2aa compat/netbsd32 ioctl support for FLASH_GET_INFO 2011-03-19 04:07:35 +00:00
dholland
4a414f41ec Fix memory leak introduced with the struct pathbuf changes. Hi, me.
Closes PR 44625.
2011-03-19 01:34:24 +00:00
mrg
d85d9a6541 apply the fix_label hack to partitionSizeHi as well. it's needed there.
to do so, move the call to fix the label inside of rf_reasonable_label()
itself, so we can fix the partition sizes before calling
rf_component_label_partitionsize() itself.

fixes the failure mode where i had garbage not in numBlocksHi but in
partitionSizeHi, and the check against rf_component_label_partitionsize()
would fail and my raid would not auto-configure.
2011-03-18 23:53:26 +00:00
joerg
73a4306de0 Update LLVM snapshot. This allows deriving the target from the binary
name, provides a proper CPP mode and fixes a number of compat issues
in the integrated assembler.

Build the toolchain compiler optimized and without assertions now.
2011-03-18 23:32:01 +00:00
jruoho
bf02b615d6 Note also tests(7). 2011-03-18 22:24:57 +00:00
jruoho
2d03f41467 Fix xref; security(8) -> security(7). 2011-03-18 22:19:31 +00:00