Commit Graph

105228 Commits

Author SHA1 Message Date
tsutsui a9edf8145e Clear RI_NO_AUTO in actual attach functions during autoconf(9)
for console devices that set the flag during consinit().
2010-05-15 08:53:26 +00:00
tsutsui 54faad2469 Set RI_NO_AUTO in ri_flg if fb_init() is invoked from cnattach.
Tested on Explora451.
2010-05-15 07:38:24 +00:00
tsutsui 83f23f325b Set RI_NO_AUTO in ri_flg if *fb_common_init() is invoked from cnattach.
Untested.
2010-05-15 07:01:37 +00:00
tsutsui 2e8243bab8 Set RI_NO_AUTO in ri_flg if pvr_getdevconfig() is invoked from cninit.
Tested on gxemul.
2010-05-15 06:48:22 +00:00
tsutsui d4bf3ab4f8 Set RI_NO_AUTO in cnattach function. Untested. 2010-05-15 06:39:06 +00:00
tsutsui 27c0c9462e Set RI_NO_AUTO in rip->ri_flg if tga_init() is invoked from cnattach. 2010-05-15 06:38:34 +00:00
tsutsui 67dfc8da50 Set RI_NO_AUTO in ri->ri_flg if hpcfb_init() is invoked from cnattach.
Fixes silent hang on hpcsh and hpcmips.

XXX: all other rasops based console devices need to set this flag??
2010-05-15 06:01:12 +00:00
oki cd671d9067 Backout rev.1.137. It causes troubles, see PR kern/43294.
We needs more discussion/a more general solution.
2010-05-15 05:02:46 +00:00
nonaka 6b968fe014 tune ADC Averaging Control parameter. 2010-05-15 03:54:35 +00:00
phx 76c67ee1e2 gcscpcib depends on functions from x86/pci/pcib.c 2010-05-14 18:11:25 +00:00
plunky 4416c38a31 update DPRINTF to reflect actual function name 2010-05-14 17:32:57 +00:00
pooka 366a313d12 Pick up after people who find build-testing their changes too difficult. 2010-05-14 13:04:14 +00:00
kiyohara 931a85be79 May be easy to understand 'pay_len > 0' more than 'paylaod != NULL'. 2010-05-14 12:25:19 +00:00
kiyohara 0f5342ae85 Use kmem(9) instead of malloc(9). 2010-05-14 12:10:07 +00:00
cegger 07ebeefdd8 Move PMAP_KMPAGE to be used in pmap_kenter_pa flags argument.
'Looks good to me' gimpy@

Forgot to commit this piece in previous commit
2010-05-14 05:32:06 +00:00
cegger dfa8eb2f81 Move PMAP_KMPAGE to be used in pmap_kenter_pa flags argument.
'Looks good to me' gimpy@
2010-05-14 05:02:05 +00:00
nonaka 12cd5caed9 Added touchpad driver for WS003SH. 2010-05-13 21:01:59 +00:00
kiyohara 35af00ec31 Use COM_REGMAP instead of hd64461uart_{read,write}_1(). 2010-05-13 18:21:32 +00:00
kiyohara 19163bd05e Standby AFE Clock, if use_afeck is 0. Don't stop AFE Clock, if PERSONA boots
on serial console.
2010-05-13 18:07:40 +00:00
phx 3303c86cf9 Patches by Toru Nishimura:
- set up DBATs for 80000000-8fffffff and fc000000-ffffffff
- honour DHCP's filename field, use 'netbsd' when unspecified
- PCI-fixups for KuroBox
- determine PCIIDE programming mode for BAR assignment
2010-05-13 10:40:02 +00:00
macallan 2b22cbf04c set RI_NO_AUTO then attaching early, clear it otherwise 2010-05-12 20:58:52 +00:00
plunky ba2b0dff29 hid_get_data() does not work if the size of data is less than
a byte and crosses a byte boundary, and it always returns a
sign-extended value.

fix this by using the algorithm from libusbhid to read bytes,
and provide a hid_get_udata() function to return unsigned data
values.

while here, const args
2010-05-12 18:44:48 +00:00
phx d29b6bdad1 Typo: DHB should be DMB (most significant bye, not high byte). 2010-05-12 18:33:09 +00:00
kiyohara 067d0c7013 Style. 2010-05-12 18:22:36 +00:00
kiyohara 222c1ad032 Suply clock SAFECKE_[IO]ST, if platid is PERSONA.
tested on HPW-50PA.
2010-05-12 18:16:53 +00:00
phx 5bc4943cb2 Rewrote most of the code to make the 8245 I2C module finally work.
Tested with a RICOH RS5C372 RTC on a Synology DS-101g+ and Kurobox.
Reviewed by <nisimura>.
2010-05-12 17:20:24 +00:00
jruoho 2731b5ff2f Print a warning if AcpiOsSleep() is called with a value larger than two
seconds. It is known that there are systems in the field that pass bogus AML
values to the Sleep() operation code, possibly requesting delays that could
be measured in days.

Discussed with jmcneill@.

XXX: While the used mstohz(9) is documented to round to one second if the
     passed value is larger than 131072 ms, we may still need to force a
     sensible upper limit if this warning starts to appear.
2010-05-12 17:03:11 +00:00
pooka dc34f07022 fix inversion: advance clock on cpu0, not the complement of cpu0 2010-05-12 16:48:21 +00:00
kiyohara 6ff2092a57 Fix arg of intr_establish().
comintr() expects struct com_softc* for arg.
2010-05-12 16:41:08 +00:00
jruoho 881c3c1e3f When scanning the device "capabilities" (power, wake-up, etc.),
include all device nodes, regardless of the status of the device.

XXX: It is known that some systems implement the _STA method incorrectly.
     If needed in the future, attachment based on the values from this
     method may need revisiting. Same goes for ACPI_ACTIVATE_DEV.
2010-05-12 16:11:05 +00:00
jruoho a24d118616 Initial pass for issues observed by dyoung@ on HP Pavilion N3270. In this
laptop there is a PNP0C0B ("ACPI fan") with the following properties:

        _PSC : Power state for D3 (alone).
        _PR0 : Power resources for D0.
        _PSx : Power state switch for D0 and D3.

Thus, it is impossible to get or set the D3 power state via power resources
alone; there is only a single PowerResource() and it is for D0.

To tackle this:

  1. Evaluate the direct _PSC control method if and only if there is no
     given _PRx. The order is important; it is known that some other
     systems implement the _PSC method (like _STA) incorrectly.

  2. If no _PRx is available (and thus no _ON or _OFF), do not error out.
     Instead, if we have AE_NOT_FOUND, continue to evaluate the power state
     switch method, _PSx, which (on this laptop) should alone suffice for
     the D0 -> D3 transition.
2010-05-12 15:59:52 +00:00
haad 6b319cec0e Fix bogus KASSERT, typo and KNFize my previous patch. 2010-05-12 15:53:20 +00:00
matt 43d0731fa4 Add PSL_HIGHIPL for recent subr.S change 2010-05-12 14:43:48 +00:00
christos 520ec8892c regen 2010-05-12 12:27:07 +00:00
christos 6eb8e73a91 Use device names from the OpenBSD iwn driver, adding and modifying device
names as needed. From Sverre Froyen
2010-05-12 12:26:16 +00:00
nakayama 84149c9088 Remove obsolete comment about a data corruption on IDE controllers
in Blade 100/Netra X1.

Workaround for a data corruption was commited as rev. 1.16 of
src/sys/dev/pci/aceride.c in 2005.
2010-05-12 12:25:59 +00:00
martin 1205a48106 Use callout_halt() instead of callout_stop() - otherwise gem_detach() might
be too fast and run callout_destroy() while another cpu is still busy
in the callout.
2010-05-12 10:25:23 +00:00
rmind 70f6a0718b pool_{cache_}get: improve previous diagnostic by checking for panicstr,
so it wont trigger the assert while trying to dump core on crash.
2010-05-12 08:11:16 +00:00
macallan 085d3a8922 make this work again 2010-05-12 06:11:31 +00:00
snj 965a29d74a Fix gimplish. 2010-05-12 04:30:18 +00:00
rmind b3d53a5f95 - Sprinkle asserts to catch calls from interrupt context on IPL_NONE pools.
- Add diagnostic drain attempt.
2010-05-12 03:43:46 +00:00
rmind 6bf9a07036 execve1: move few PNBUF_PUT() outside the lock paths. 2010-05-12 03:40:38 +00:00
matt 677688bd7f Make sure the softint lwp runs at IPL_HIGH. 2010-05-12 01:58:22 +00:00
haad 6af3749398 Add support for kthread_join in our kernel thread implementation. This is used
by zfs but I think that it can be generaly usefull. Thread need to be created
with KTHREAD_JOINABLE flag and can be joined only once.
When joinable thread was created it will not e automatically reaped from system
and kthread_join must be called on it to reap it.

Ok by ad@.
2010-05-11 22:26:00 +00:00
pooka 1616addc6a Actually, push defining _RUMPKERNEL down to libkern, since it's
not needed elsewhere.
2010-05-11 22:21:05 +00:00
pooka 2b801a94d6 fix typo 2010-05-11 21:50:35 +00:00
pooka d3280f90bc Limit visibility of _RUMPKERNEL to prevent abuse. 2010-05-11 21:08:07 +00:00
pooka 65972a0f32 add __HAVE_CPU_COUNTER stubs where possible (i.e. where the arch
doesn't think inlines are the second compiling)
2010-05-11 21:03:41 +00:00
pooka 17bb799409 adjust comment in previous.
XXX: should make that (and physmem) mean something here
2010-05-11 20:25:14 +00:00
pooka a96791040e remove unnecessary #ifdef 2010-05-11 20:21:56 +00:00