Commit Graph

27769 Commits

Author SHA1 Message Date
jruoho
710112e7c7 Scan for docking stations. 2011-01-13 05:14:48 +00:00
jruoho
3dd22c3c2c Do not try to attach more ACPI CPUs than the amount of "real" CPUs. 2011-01-13 04:18:19 +00:00
jruoho
99d6864d21 Move the function that counts the CPUs from acpicpu(4) to the MD layer. 2011-01-13 03:40:50 +00:00
phx
77d12ff8eb Fixed DPRINTF macro to make it compile when DEBUG is not defined. 2011-01-12 18:06:26 +00:00
phx
846d34516e Include i2cvar.h for i2c_controller, which is usually not needed by devices
using this MI driver, so they shouldn't have to bother with that.
2011-01-12 18:05:18 +00:00
jruoho
c2df94f224 Disable all GPEs when entering S5. Also add a comment that the function
acpi_enter_sleep_state() must be called with interrupts enabled.
2011-01-11 20:35:24 +00:00
macallan
bcebe4e063 use config_finalize_register() instead of config_interrupts() to detect the
codec and attach audio. For some reason we run into a locking panic with
config_interrupts().
Tested on my SS20
2011-01-11 00:49:50 +00:00
dyoung
93c928cfb9 Regen. 2011-01-11 00:14:41 +00:00
dyoung
4e03721aef Add Intel 82599 product IDs. 2011-01-11 00:13:03 +00:00
jruoho
322f6c439c Regen. 2011-01-10 17:04:55 +00:00
jruoho
93da29999d Add SMO1200 (yet another TPM chip). From ThinkPad x201i. 2011-01-10 17:04:22 +00:00
cegger
e5bfaecf68 add missing break 2011-01-10 14:19:36 +00:00
jmcneill
5263a998f9 ppb_fix_pcix changes:
- rename to ppb_fix_pcie
- support version PCI-E 2.0
- print version and device/port type information
- use constants from pcireg.h instead of magic numbers

changes:

  ppb2 at pci0 dev 21 function 0: vendor 0x15ad product 0x07a0 (rev. 0x01)
  ppb2: unsupported PCI Express version

to:

  ppb2 at pci0 dev 21 function 0: vendor 0x15ad product 0x07a0 (rev. 0x01)
  ppb2: PCI Express 2.0 <Root Port of PCI-E Root Complex>
2011-01-10 12:23:21 +00:00
tsutsui
7bb48ed5ab Don't call bus_dmamap_load(9) and bus_dmamap_sync(9) on command xfers
if (AT_READ|AT_WRITE) in ata_c->flags is set but ata_c->bcount is zero.
Someone actually tries to put such a command and it causes
DIAGNOSTIC panic in x86/bus_dma.c:_bus_dmamap_sync().
I think bus_dma(9) API itself may allow calls with mapsize==0
but there are many MD code that asserts offset>=mapsize or len==0.

The problem is reported and fix is confirmed by Takuro KUBOTA
with XEN DOM0 kernel (which has options DIAGNOSTIC).
2011-01-10 11:18:14 +00:00
jruoho
2304727048 Small clean-up in the match and attach functions. Namely, use the attach
args instead of referencing the global softc. No functional change.
2011-01-10 09:07:27 +00:00
jruoho
f640132d0b Convert aprint_error(9) to ACPI_DEBUG_PRINT. 2011-01-09 16:22:07 +00:00
jruoho
1b00e79140 Remove also rest of the ACPI_DEVICE_POWER checks. 2011-01-09 16:15:25 +00:00
jruoho
930b9f2eb4 After consulting jmcneill@, set the state to D0 ("on") upon shutdown and
detach. A safety measure so that we do not accidentally fry anything.
2011-01-09 15:43:20 +00:00
jruoho
37f5de3ab8 Add a dummy-driver for ACPI fans. 2011-01-09 15:12:33 +00:00
jruoho
019ba6b902 Use acpi_power_register() for consistency. No functional change. 2011-01-09 14:58:10 +00:00
jruoho
1dee4ee9e2 We use config_defer(9) now when scanning power resource and wake-up
capabilities, so do not fail in acpi_power_register() if ACPI_DEVICE_POWER is
not set in struct acpi_devnode::ad_flags.
2011-01-09 14:56:06 +00:00
is
ea61b20fd5 some more 8187B variants. From OpenBSD 2011-01-09 14:30:36 +00:00
jruoho
7ce8997e79 Don't use SYSCTL_SETUP in a driver. 2011-01-09 13:01:03 +00:00
jruoho
c40255f958 Print a message if ACPI 4.0 functionality is present (in which case the
driver should be updated).
2011-01-09 09:47:55 +00:00
jruoho
74a4ee7fc0 Rearrange (use two tabs). 2011-01-09 05:06:17 +00:00
jruoho
f422341f8e Regen. 2011-01-09 04:59:00 +00:00
jruoho
04e39f05b5 Add INTC0102 (Intel TPM chip). From ThinkPad T500. 2011-01-09 04:58:34 +00:00
kochi
90a1aa9207 Try reading MAC addr from register if it fails to read from EEPROM.
Copied from FreeBSD driver.

Without this my JMC261 doesn't get MAC address properly.

OK'ed by bouyer@
2011-01-09 00:12:45 +00:00
is
6d77db8f4e Realtek 8187B 2011-01-08 22:02:49 +00:00
christos
b9d27ca2f7 PR/44340: Brian Buhrow: Raid sets containing wedges cannot be unconfigured
and reconfigured without a reboot.
2011-01-07 19:52:18 +00:00
jmcneill
0e137f7821 fix compilation when _MODULE is not defined 2011-01-07 18:24:53 +00:00
jmcneill
4608557aab modularize hdaudio and hdafg drivers 2011-01-07 15:30:29 +00:00
cegger
21fd508d09 use aprint_error_dev 2011-01-07 14:08:29 +00:00
jmcneill
413c4ec645 support building cas(4) as a module 2011-01-07 11:17:22 +00:00
jakllsch
0e590a108e Add schide(4). 2011-01-07 00:31:34 +00:00
jruoho
ef2b108701 Fix a comment. 2011-01-06 18:57:22 +00:00
macallan
5e7d981582 clear the screen before redrawing on reentering text mode 2011-01-06 07:43:05 +00:00
jruoho
0af1ebd4ab Split the code that makes a string from ACPI_DEVICE_INFO::Name to a function. 2011-01-06 07:05:00 +00:00
jruoho
1bb3132df6 Move the ACPI_ACTIVATE_DEV block around for clarity. 2011-01-06 06:49:12 +00:00
jym
6da35ef6e8 bnx(4) SERDES NICs will definitely work better with the PHY initialization
code... rather than without.

(forgot to commit it two weeks ago -- should be part of the BCM 5709S
patch)
2011-01-06 03:37:55 +00:00
jym
53a9d61cb0 Reflect 5709S support in bnx(4) (comment fix) 2011-01-06 02:02:43 +00:00
jruoho
e067d18bf0 Add a driver for ACPI power meters. 2011-01-05 20:08:12 +00:00
jnemeth
a98aacd7f2 - the atari et device has been renamed et4k
- a new MI et device was added
2011-01-05 15:39:19 +00:00
sketch
4f0bf5bf27 Use aprint_verbose_dev. 2011-01-05 14:55:10 +00:00
jruoho
d982261b67 Adjust previous slightly. 2011-01-05 08:08:47 +00:00
jruoho
740a9e0c0e Make a two-pass scan for acpinodebus. This should ensure that devices such
as acpiec(4) are attached before anything else. Numerous bugs are expected
to be fixed with this change.
2011-01-05 07:58:04 +00:00
jruoho
9844967b1c Stop using aprint_debug(9) in an interrupt handler. 2011-01-04 10:40:17 +00:00
jruoho
c96fe4ba5e Revert the changes made in the commit:
"Do not queue functions via sysmon_taskq(9) in the pmf(9) resume hooks.
   There is a small and unlikely race when the drivers are loaded as modules;
   suspend, resume, queue a function, and immediately unload the module."

Queueing the checks in the resume hooks was observed to improve the resume
time by several seconds (!) on a system with poorly implemented AML code.
The observed race condition is a wider issue related to modules; things like
sysmon_taskq(9) should be modified to allow cancelling of queued functions.
2011-01-04 05:48:48 +00:00
jruoho
a26fa60e11 Fix previous. 2011-01-04 04:28:48 +00:00
nisimura
aa74cd0406 withdraw my name from the copyright notice as there is little code
substance made by me.
2011-01-04 02:50:08 +00:00