Commit Graph

190703 Commits

Author SHA1 Message Date
jruoho
a903bfbf13 Hook kthread_join(9) to the build. 2010-05-13 13:08:08 +00:00
jruoho
a5d24f20a8 In order to widen the paragraphs, move the newly added list of flags below
the list of function parameters. Add two small sentences to give few more
clues about KTHREAD_JOINABLE. Add a missing prototype for kthread_join().
Also: newpl -> newlp.
2010-05-13 13:04:56 +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
wiz
cf025cace8 Put flags into a list. Bug fixes to kthread_join docs. 2010-05-13 09:56:12 +00:00
christos
58f9040724 implement fullcmd mode. Now we need to modernize the machine specific code
to handle displays > 80 columns to make this work effectively.
2010-05-12 22:09:36 +00:00
mbalmer
8e64e5f559 Fix grammar in a line of output.
From Hywel Mallett via FreeBSD.
2010-05-12 21:21:59 +00:00
macallan
2b22cbf04c set RI_NO_AUTO then attaching early, clear it otherwise 2010-05-12 20:58:52 +00:00
kefren
c890d3f5e0 Update also keywords.{c,h} generator in order to reflect latest changes. 2010-05-12 19:26:33 +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
plunky
38cd0f0b2e note const from actual API 2010-05-12 18:37:56 +00:00
phx
d29b6bdad1 Typo: DHB should be DMB (most significant bye, not high byte). 2010-05-12 18:33:09 +00:00
plunky
7a1cb70b5e hid_get_data() will read an extra byte if the data being read ends on
a byte boundary. This byte is subsequently discarded, but it could be
a byte from memory after the end of the report being parsed.

Fix this by rounding up and ending the loop one earlier.
2010-05-12 18:28:20 +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
christos
c69676936c PR/40455: Mihai Chelaru: Add noreject noblackhole options 2010-05-12 17:56:13 +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
f4b66b2506 Document kthread_join in kthread(9). 2010-05-12 15:54:47 +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
lukem
6311ba0ef5 move MKDEBUG entries for libs from md.shark to ad.arm to match ../base/ad.arm 2010-05-12 13:15:00 +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
haad
04d9252504 Fix userspace cv_timedwait implementation to work on NetBSD. 2010-05-11 22:18:10 +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
af6d218fe8 Test for barebones rump network config (i.e. just rumpnet and kernel base). 2010-05-11 20:36:04 +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
pooka
7e3cbd3f20 regen: _RUMPKERNEL -> _KERNEL 2010-05-11 20:11:47 +00:00
pooka
14d288df20 _RUMPKERNEL -> _KERNEL 2010-05-11 20:09:11 +00:00
pooka
b2cb120dee This not working on ews4800mips has nothing to do with rump, so:
_RUMPKERNEL -> _MACHINE != ews4800mips
2010-05-11 20:07:40 +00:00
mbalmer
b873861680 Fix YOW entry while I am here... 2010-05-11 18:34:37 +00:00
mbalmer
f782664b92 Language fix: upto date -> up to date. 2010-05-11 18:27:04 +00:00
pooka
27d01ae5b3 Cache directory entry name length. This brings kernel bootstrap
time down: 14ms -> 12ms.  Further hashing etc. did not seem to have
any noticable effect.
(without /dev node creation bootstrap time is 8ms, so it's still
the bottleneck)
2010-05-11 16:59:42 +00:00