Commit Graph

16 Commits (daa6411911426246aef804ec5ad8a44a07a15a66)

Author SHA1 Message Date
Peter Wu daa6411911 [DO NOT MERGE] [WIP] Add PCI driver
This is work in progress, I intend to merge the bbswitch_dev code into
the main module. Some comments in README and bbswitch.c might be stale.

Create a PCI driver such that runtime PM works. Without a bound driver,
the kernel assumes that the device is D0 state during suspend (which
therefore needs the notifier hack in bbswitch) but more importantly, it
will prevent the PCIe port from going to sleep in Linux v4.7.

Currently I use this to debug an infinite loop on my Clevo P651RA
laptop, it can be loaded as follows:

    make modname=bbswitch_dev
    insmod bbswitch_dev.ko
    echo > /sys/bus/pci/drivers/bbswitch/new_id 10de 13d9

Needs Mika's pci/pm series ("PCI: Put PCIe ports into D3 during
suspend"), qeued for v4.7 via
https://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/commit/?h=pci/pm
9 years ago
Timothy Gu 4a029bc0ce README.md: Fix Markdown 11 years ago
Peter Wu 2822d1630c README: mention kmod, workaround for T410 (Fixes GH-58) 12 years ago
Bruno Pagani e21cdd7b3f Update REAMDE.md
Closes GH-28
12 years ago
Peter Wu 2808cf520e README: update module options help 12 years ago
Peter Wu 8ada8849f2 Compatibility with older DKMS versions (GH-25) 13 years ago
Lekensteyn 0d1429e8bb Fix documentation error (Closes GH-16) 13 years ago
Lekensteyn 4f73396ba7 Add easier way to use DKMS 13 years ago
Lekensteyn 031bcfe8a6 Update README with module options 13 years ago
Lekensteyn 5e297c27ad Add note that a driver must not be loaded if the card is off 13 years ago
Lekensteyn 04cdd2d5f9 Update instructions with request for ACPI handle mapping 13 years ago
Lekensteyn 6ed65463c8 Update README with request for machine information 13 years ago
Lekensteyn 12715b4b54 Change PACKAGE_VERSION, set KVERSION, update README 13 years ago
Joaquín Ignacio Aramendía 3bf9cab570 Updated readme 13 years ago
Lekensteyn 9c223efc95 Mention acpidump README 13 years ago
Lekensteyn b321482650 Added README
Taken from https://github.com/Lekensteyn/acpi-stuff
13 years ago