Commit Graph

109135 Commits

Author SHA1 Message Date
kiyohara
afa4f7cc9a Add slhci(4) and some usb devices. 2011-03-22 05:39:31 +00:00
kiyohara
7e2c2b81ff Add dummy bus_dma(9) stuff. 2011-03-22 05:37:37 +00:00
rmind
180866861e cpu_need_resched: make AST if no __HAVE_PREEMPTION. Change has no effect
since MP option is mandatory on x86, but makes code more logical.
2011-03-21 22:25:13 +00:00
matt
271ad088e1 Clean up setting ECN bit in TOS. Fixes PR 44742 2011-03-21 20:39:32 +00:00
matt
73d0699457 Fix a bug in onchip_intr_name_lookup 2011-03-21 19:55:04 +00:00
jdc
8856d368c4 Correct "832x624x74".
Update comments.
Reverse iteratiion, so that modes are in established timing order.
2011-03-21 19:34:27 +00:00
jdc
9293120def Clarify vrefresh comment (no functional change) 2011-03-21 19:32:26 +00:00
jdc
3b22b64d85 Regenerate for:
Add EDID established timing modelines for 720x400x70 and 720x400x88
2011-03-21 19:29:54 +00:00
jdc
dd3ad2df66 Add EDID established timing modelines for 720x400x70 and 720x400x88 2011-03-21 19:28:37 +00:00
pooka
23bbd0e078 Update copyright statements.
no functional change.
2011-03-21 16:41:08 +00:00
pooka
056c4b30fa remove historic test 2011-03-21 15:51:34 +00:00
pooka
20c88ef126 this was moved to usr.bin ages ago 2011-03-21 15:47:53 +00:00
joerg
ad65a463d1 Include bsd.own.mk before making decisions based on mk.conf. 2011-03-21 05:15:18 +00:00
mrg
4f892d6c12 enable pci@pryo@mainbus and ebus@mainbus attachments.
pryo still isn't fully working, but i'm able to talk to disk and com
properly.  bge, ohci/ehci, aceride and wm (pcie card) interrupts
are not working yet.
2011-03-20 23:31:36 +00:00
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
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
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
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
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
nonaka
cf8c061385 if poll card detect is enabled, don't show "couldn't enable card". 2011-03-20 03:02:48 +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
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
phx
f96a3d06f6 Add ral(4) and stge(4) for DLink DSM-G600.
Disabled DIAGNOSTIC.
2011-03-19 16:05:35 +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
skrll
0f27bfbde0 Whitespace. 2011-03-19 06:48:09 +00:00
ahoka
f9a44d1787 Dont try to read MSR_TEMPERATURE_TARGET on Core Duo Yonah 2011-03-19 06:15:12 +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
jruoho
036d412966 Comment out IA32_TEMPERATURE_TARGET temporarily. 2011-03-18 20:56:46 +00:00
cliff
a89d7a0136 fix typo 2011-03-18 20:23:26 +00:00
cliff
df950be7f2 style improvements, input from matt@ 2011-03-18 19:58:21 +00:00
dyoung
95804f750f Simplify tags target to reduce diffs with amd64/Makefile tags target. 2011-03-18 19:48:12 +00:00
dyoung
85f22fe9ae Fix tags target. 2011-03-18 19:46:19 +00:00
jakllsch
9e4c8abd95 Honor bp_timeout even if someone sets X86_BP_FLAGS_NOBOOTCONF. 2011-03-18 18:24:09 +00:00
jakllsch
f7cb5f6ff7 Honor bp_timeout even when X86_BP_FLAGS_NOBOOTCONF is set.
Or, in other words, bring back the 5 second countdown in pxeboot(8).
2011-03-18 18:21:38 +00:00
jakllsch
0f57ab9175 Automatically adjust pxeboot(8) stack based on the end of .bss, like is already
done in biosboot.S for boot(8).
(The heap location will need to be adjusted if pxeboot expands much more.)
2011-03-18 17:46:26 +00:00
jakllsch
dbf4ec1adb Bump symtab space. 2011-03-18 17:19:06 +00:00
ahoka
4ad1d11f7a use %zu for size_t, also add rcsid 2011-03-18 16:46:04 +00:00
tsutsui
81a6c364a8 - include <mips/mips_param.h> after MACHINE is defined
- remove MACHINE_ARCH and MID_MACHINE that are defined in <mips/mips_param.h>
- remove redundant comment
2011-03-18 16:39:58 +00:00