|
@@ -92,7 +92,7 @@
|
|
|
<tr><td>Touchpad</td><td><span class="file">i2c.c</span>, <span class="file">touchpad.c</span>, <span class="file">touchpad_gesture.c</span></td><td>LPSS DesignWare I2C; Elan <code>0x15</code>, Synaptics <code>0x2C</code></td><td>Polled input register every 25 ms; software tap and two-finger scroll gestures; no GPIO interrupt driver</td></tr>
|
|
<tr><td>Touchpad</td><td><span class="file">i2c.c</span>, <span class="file">touchpad.c</span>, <span class="file">touchpad_gesture.c</span></td><td>LPSS DesignWare I2C; Elan <code>0x15</code>, Synaptics <code>0x2C</code></td><td>Polled input register every 25 ms; software tap and two-finger scroll gestures; no GPIO interrupt driver</td></tr>
|
|
|
<tr><td>Serial</td><td><span class="file">serial.c</span></td><td>16550 UART, COM1</td><td>COM1 presence probe; PIT-polled receive ring, polled transmitter</td></tr>
|
|
<tr><td>Serial</td><td><span class="file">serial.c</span></td><td>16550 UART, COM1</td><td>COM1 presence probe; PIT-polled receive ring, polled transmitter</td></tr>
|
|
|
<tr><td>Thermal</td><td><span class="file">thermal.c</span></td><td>Intel DTS MSR</td><td>Sampled once a second from the scheduler tick</td></tr>
|
|
<tr><td>Thermal</td><td><span class="file">thermal.c</span></td><td>Intel DTS MSR</td><td>Sampled once a second from the scheduler tick</td></tr>
|
|
|
- <tr><td>Board sensors / EC</td><td><span class="file">it87.c</span>, <span class="file">tpec.c</span>, <span class="file">ec.c</span>, <span class="file">cros_ec.c</span>, <span class="file">ideapad.c</span></td><td>Super I/O, ThinkPad H8 EC, Chrome OS EC, IdeaPad EC (temps, fans, battery, AC, switches)</td><td>Polled; EC battery-index/FIFO/page-selector writes only</td></tr>
|
|
|
|
|
|
|
+ <tr><td>Board sensors / EC</td><td><span class="file">it87.c</span>, <span class="file">tpec.c</span>, <span class="file">ec.c</span>, <span class="file">cros_ec.c</span>, <span class="file">ideapad.c</span></td><td>Super I/O, ThinkPad H8 EC, Chrome OS EC, IdeaPad EC (temps, fans, battery, AC, switches)</td><td>Polled; EC battery-index/FIFO/page-selector writes and the IdeaPad OS handshake only</td></tr>
|
|
|
<tr><td>Wall clock</td><td><span class="file">rtc.c</span></td><td>CMOS RTC ports <code>0x70/0x71</code></td><td>Read/write under the BKL; update-cycle retries and a 1970–2069 two-digit year window</td></tr>
|
|
<tr><td>Wall clock</td><td><span class="file">rtc.c</span></td><td>CMOS RTC ports <code>0x70/0x71</code></td><td>Read/write under the BKL; update-cycle retries and a 1970–2069 two-digit year window</td></tr>
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
@@ -581,11 +581,15 @@
|
|
|
clears the LPSS <code>PMECTRLSTATUS</code> at PCI config
|
|
clears the LPSS <code>PMECTRLSTATUS</code> at PCI config
|
|
|
<code>0x84</code> (the DSDT <code>LPD0(SB10)</code> target;
|
|
<code>0x84</code> (the DSDT <code>LPD0(SB10)</code> target;
|
|
|
the PMC <code>PWRMBASE + 0x84</code> address is a different
|
|
the PMC <code>PWRMBASE + 0x84</code> address is a different
|
|
|
- register and leaves the I2C FSM power-gated), enables the
|
|
|
|
|
- LPSS functional clock at private <code>0x200</code>
|
|
|
|
|
- (gate + M=6/N=5 for the 120 MHz I2C clock; the BIOS leaves
|
|
|
|
|
- unused LPSS blocks gated and the register file still answers
|
|
|
|
|
- while the FSM does not drive the bus), maps their BARs.
|
|
|
|
|
|
|
+ register and leaves the I2C FSM power-gated), asserts and
|
|
|
|
|
+ releases the LPSS reset at private <code>0x204</code> (the
|
|
|
|
|
+ I2C clock is a fixed 120 MHz without a divider, so private
|
|
|
|
|
+ <code>0x200</code> is left alone, as in Linux's
|
|
|
|
|
+ <code>intel-lpss</code>), maps their BARs. On the Yoga the
|
|
|
|
|
+ touchpad answers only after the EC was told an ACPI OS is
|
|
|
|
|
+ running (<code>EC0._REG</code>'s <code>OSTY</code>/<code>ECRD</code>
|
|
|
|
|
+ write, done by <span class="file">ideapad.c</span> at boot), so
|
|
|
|
|
+ the I2C0 probe retries the address for up to a second.
|
|
|
The BIOS already leaves GPP_C16/C17 in native function 1
|
|
The BIOS already leaves GPP_C16/C17 in native function 1
|
|
|
(Linux's <code>pins</code> output shows
|
|
(Linux's <code>pins</code> output shows
|
|
|
<code>mode 1 0x84000702 0x58</code>), so the kernel does not
|
|
<code>mode 1 0x84000702 0x58</code>), so the kernel does not
|
|
@@ -597,17 +601,22 @@
|
|
|
(<code>0x0100</code>), consume the 2-byte acknowledgement, read the
|
|
(<code>0x0100</code>), consume the 2-byte acknowledgement, read the
|
|
|
HID descriptor, select absolute mode (<code>0x0300 = 1</code>) and
|
|
HID descriptor, select absolute mode (<code>0x0300 = 1</code>) and
|
|
|
wake the device (<code>0x0800</code>). Synaptics at <code>0x2C</code>:
|
|
wake the device (<code>0x0800</code>). Synaptics at <code>0x2C</code>:
|
|
|
- check the address, read the HID descriptor, then power on
|
|
|
|
|
|
|
+ check the address, read the HID descriptor from register
|
|
|
|
|
+ <code>0x0020</code> (<code>TPD1._DSM</code>), then power on
|
|
|
(<code>0x0800</code>), reset (<code>0x0100</code>) and wait for
|
|
(<code>0x0800</code>), reset (<code>0x0100</code>) and wait for
|
|
|
the zero-length reset-complete input report, as Linux i2c-hid
|
|
the zero-length reset-complete input report, as Linux i2c-hid
|
|
|
- does; then use the Windows-Precision report 3. The descriptor's
|
|
|
|
|
|
|
+ does; then select touchpad mode as hid-multitouch does
|
|
|
|
|
+ (<code>SET_REPORT</code> feature 4 Input Mode = 3, feature 6
|
|
|
|
|
+ surface/button switches on; until then the device sends plain
|
|
|
|
|
+ mouse report 2) and use the Windows-Precision report 3, where a
|
|
|
|
|
+ contact counts while its tip bit (bit 1) is set. The descriptor's
|
|
|
vendor/product (<code>0x06CB:0x7F8F</code>) filters out the Wacom
|
|
vendor/product (<code>0x06CB:0x7F8F</code>) filters out the Wacom
|
|
|
touchscreen on I2C1. The Elan native max-X/Y commands
|
|
touchscreen on I2C1. The Elan native max-X/Y commands
|
|
|
(<code>0x0106</code>/<code>0x0107</code>) give the corner zone a
|
|
(<code>0x0106</code>/<code>0x0107</code>) give the corner zone a
|
|
|
physical coordinate frame; the Synaptics frame is 1219 x 799.
|
|
physical coordinate frame; the Synaptics frame is 1219 x 799.
|
|
|
<code>touchpad probe</code> reruns the probe and prints the LPSS
|
|
<code>touchpad probe</code> reruns the probe and prints the LPSS
|
|
|
- PCI id/BAR/command, component type, the <code>0x200</code>
|
|
|
|
|
- clock and <code>0x204</code> reset registers, and
|
|
|
|
|
|
|
+ PCI id/BAR/command, component type, the private <code>0x200</code>
|
|
|
|
|
+ and <code>0x204</code> reset registers, and
|
|
|
<code>PMECTRLSTATUS</code> before/after the clear when it
|
|
<code>PMECTRLSTATUS</code> before/after the clear when it
|
|
|
fails.</li>
|
|
fails.</li>
|
|
|
<li><strong>Reports.</strong> The Elan vendor report <code>0x5D</code>
|
|
<li><strong>Reports.</strong> The Elan vendor report <code>0x5D</code>
|
|
@@ -691,7 +700,7 @@
|
|
|
<li><strong>IT87xx.</strong> <span class="file">it87.c</span> reads the Super I/O temperatures and fan tachometers on the ASUS AT3IONT-I and the Gigabyte 970A-DS3P (IT8728F). Nothing is written to fan control.</li>
|
|
<li><strong>IT87xx.</strong> <span class="file">it87.c</span> reads the Super I/O temperatures and fan tachometers on the ASUS AT3IONT-I and the Gigabyte 970A-DS3P (IT8728F). Nothing is written to fan control.</li>
|
|
|
<li><strong>ThinkPad EC.</strong> <span class="file">tpec.c</span> is gated on an SMBIOS Lenovo/IBM vendor and a <code>ThinkPad</code> product or version string; IdeaPads/Yogas share the vendor but have a different ACPI EC register map, so the ThinkPad probe leaves them alone (the IdeaPad backend below handles theirs). It reads temperatures and fan mode through the shared ACPI EC protocol in <span class="file">ec.c</span> (ports <code>0x62/0x66</code>, command <code>0x80</code> read / <code>0x81</code> write, OBF/IBF waits, stale-byte drain, bounded polls). Battery/AC state comes from <code>0x38/0x39</code> (present, charging, discharging), <code>0x46</code> bit 4 (AC online), and the page-selected 16-byte window at <code>0xA0..0xAF</code>; <code>0x81</code> selects the battery and page (0 dynamic, 1 mode, 2 design, 5 manufacturer, 6 model). That page selector is the only EC write, and it is restored when it changed.</li>
|
|
<li><strong>ThinkPad EC.</strong> <span class="file">tpec.c</span> is gated on an SMBIOS Lenovo/IBM vendor and a <code>ThinkPad</code> product or version string; IdeaPads/Yogas share the vendor but have a different ACPI EC register map, so the ThinkPad probe leaves them alone (the IdeaPad backend below handles theirs). It reads temperatures and fan mode through the shared ACPI EC protocol in <span class="file">ec.c</span> (ports <code>0x62/0x66</code>, command <code>0x80</code> read / <code>0x81</code> write, OBF/IBF waits, stale-byte drain, bounded polls). Battery/AC state comes from <code>0x38/0x39</code> (present, charging, discharging), <code>0x46</code> bit 4 (AC online), and the page-selected 16-byte window at <code>0xA0..0xAF</code>; <code>0x81</code> selects the battery and page (0 dynamic, 1 mode, 2 design, 5 manufacturer, 6 model). That page selector is the only EC write, and it is restored when it changed.</li>
|
|
|
<li><strong>Chrome EC.</strong> <span class="file">cros_ec.c</span> probes the Chrome OS EC, gated on the ACPI memory version, the <code>'E','C'</code> memmap id and the device feature bits; it skips the probe when the ThinkPad EC is present. Its ACPI window <code>0x20..0xFF</code> mirrors memmap <code>0x00..0xDF</code>: temperature sensors <code>0x00..0x0f</code>/<code>0x18..0x1f</code> (raw − 73 °C), fans <code>0x10..0x17</code> (<code>0xffff</code> absent), switches <code>0x30</code> (lid/power button), and the battery block <code>0x40..0x7f</code> (AC/present/charging flags at <code>0x4c</code>, voltage/rate/remaining/design/last-full/cycle count, and the 8-byte strings). <code>EC_ACPI_MEM_BATTERY_INDEX</code> <code>0x12</code> selects the battery and waits for <code>BATT_INDEX</code> <code>0x4e</code>; <code>EC_ACPI_MEM_STRINGS_FIFO</code> <code>0x16</code> returns longer strings when supported. The Cyan full-charge workaround is applied, and the units are mAh/mA. <span class="file">power_src.c</span> picks the ThinkPad backend first, then the Chrome EC; <code>SYS_CROS_EC_SENSORS</code> (107) exposes the EC temperature/fan/switch snapshot.</li>
|
|
<li><strong>Chrome EC.</strong> <span class="file">cros_ec.c</span> probes the Chrome OS EC, gated on the ACPI memory version, the <code>'E','C'</code> memmap id and the device feature bits; it skips the probe when the ThinkPad EC is present. Its ACPI window <code>0x20..0xFF</code> mirrors memmap <code>0x00..0xDF</code>: temperature sensors <code>0x00..0x0f</code>/<code>0x18..0x1f</code> (raw − 73 °C), fans <code>0x10..0x17</code> (<code>0xffff</code> absent), switches <code>0x30</code> (lid/power button), and the battery block <code>0x40..0x7f</code> (AC/present/charging flags at <code>0x4c</code>, voltage/rate/remaining/design/last-full/cycle count, and the 8-byte strings). <code>EC_ACPI_MEM_BATTERY_INDEX</code> <code>0x12</code> selects the battery and waits for <code>BATT_INDEX</code> <code>0x4e</code>; <code>EC_ACPI_MEM_STRINGS_FIFO</code> <code>0x16</code> returns longer strings when supported. The Cyan full-charge workaround is applied, and the units are mAh/mA. <span class="file">power_src.c</span> picks the ThinkPad backend first, then the Chrome EC; <code>SYS_CROS_EC_SENSORS</code> (107) exposes the EC temperature/fan/switch snapshot.</li>
|
|
|
- <li><strong>IdeaPad/Yoga EC.</strong> <span class="file">ideapad.c</span> reads <code>BAT1</code> and <code>ACAD</code> without an ACPI interpreter. The DSDT's <code>BAT1</code> methods take their fields from the PCH EC memory window at <code>0xFF000800</code> (a <code>SystemMemory</code> OperationRegion, not the <code>0x62/0x66</code> EC): <code>BST0</code> <code>0xC1</code>, <code>BRC0</code> <code>0xC2</code>, <code>BPV0</code> <code>0xC6</code>, <code>BDV0</code> <code>0xC8</code>, <code>BDC0</code> <code>0xCA</code>, <code>BFC0</code> <code>0xCC</code>, <code>CYC0</code> <code>0xCF</code>, <code>BAC0</code> <code>0xD2</code>, <code>BFCB</code> <code>0xED</code>, <code>ORRF</code> <code>0xF1</code> bit 6 and <code>ADPT</code> <code>0xA3</code> bit 7. <code>BAM0</code> (0xC0 bit 1) selects the 1/10 capacity scale and the mA-to-mW rate conversion, and <code>BMF0</code> (bits 4..7, 6 = SIMPLO) the pack vendor. The probe validates capacity, voltage and the status/vendor bits and only reads the window. Linux's <code>BAT1</code> on the Yoga reports 29.78/29.9 Wh, 8.657 V, 3.2 W, model <code>PABAS0241231</code> (SIMPLO), <code>ACAD</code> online; <span class="file">power_src.c</span> selects the ThinkPad EC first, then the IdeaPad EC, then the Chrome EC.</li>
|
|
|
|
|
|
|
+ <li><strong>IdeaPad/Yoga EC.</strong> <span class="file">ideapad.c</span> reads <code>BAT1</code> and <code>ACAD</code> without an ACPI interpreter. The DSDT's <code>BAT1</code> methods take their fields from the PCH EC memory window at <code>0xFF000800</code> (a <code>SystemMemory</code> OperationRegion, not the <code>0x62/0x66</code> EC): <code>BST0</code> <code>0xC1</code>, <code>BRC0</code> <code>0xC2</code>, <code>BPV0</code> <code>0xC6</code>, <code>BDV0</code> <code>0xC8</code>, <code>BDC0</code> <code>0xCA</code>, <code>BFC0</code> <code>0xCC</code>, <code>CYC0</code> <code>0xCF</code>, <code>BAC0</code> <code>0xD2</code>, <code>BFCB</code> <code>0xED</code>, <code>ORRF</code> <code>0xF1</code> bit 6 and <code>ADPT</code> <code>0xA3</code> bit 7. <code>BAM0</code> (0xC0 bit 1) selects the 1/10 capacity scale and the mA-to-mW rate conversion, and <code>BMF0</code> (bits 4..7, 6 = SIMPLO) the pack vendor. The probe validates capacity, voltage and the status/vendor bits. Its one write is the DSDT's <code>EC0._REG</code> OS handshake at boot: <code>0xA3</code> gets <code>OSTY</code> = 6 (bits 0..3) and <code>ECRD</code> = 1 (bit 6) in a read-modify-write that keeps <code>ADPT</code>; the EC hands the I2C touchpad to the OS only after it. Linux's <code>BAT1</code> on the Yoga reports 29.78/29.9 Wh, 8.657 V, 3.2 W, model <code>PABAS0241231</code> (SIMPLO), <code>ACAD</code> online; <span class="file">power_src.c</span> selects the ThinkPad EC first, then the IdeaPad EC, then the Chrome EC.</li>
|
|
|
<li><strong>MTRRs.</strong> <span class="file">mtrr.c</span> manages write-combining ranges for the framebuffer and reports the effective mapping.</li>
|
|
<li><strong>MTRRs.</strong> <span class="file">mtrr.c</span> manages write-combining ranges for the framebuffer and reports the effective mapping.</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<p>
|
|
<p>
|
|
@@ -771,7 +780,7 @@
|
|
|
<li><strong>AHCI.</strong> First controller only, no hotplug after boot, disks above 2 TB are clamped to 32-bit LBA.</li>
|
|
<li><strong>AHCI.</strong> First controller only, no hotplug after boot, disks above 2 TB are clamped to 32-bit LBA.</li>
|
|
|
<li><strong>eMMC.</strong> Polled 1-bit/25 MHz PIO; no DMA, IRQ, CMD6 bus-width/high-speed/DDR switch or hotplug. Only the eMMC function is driven; the SDIO/SD functions and SD card reader are not.</li>
|
|
<li><strong>eMMC.</strong> Polled 1-bit/25 MHz PIO; no DMA, IRQ, CMD6 bus-width/high-speed/DDR switch or hotplug. Only the eMMC function is driven; the SDIO/SD functions and SD card reader are not.</li>
|
|
|
<li><strong>Storage serialization.</strong> A FAT/floppy operation sets <code>sys_fs_busy</code> and stalls process switching for its duration; the PIT keeps ticking.</li>
|
|
<li><strong>Storage serialization.</strong> A FAT/floppy operation sets <code>sys_fs_busy</code> and stalls process switching for its duration; the PIT keeps ticking.</li>
|
|
|
- <li><strong>EC.</strong> The Chrome EC path uses the ACPI v2 memmap only: no MEC host-command interface, EC SCI events, charger current/voltage, charging limit or EC firmware version. The ThinkPad H8 path is limited to its page-selected battery window and has no SCI handler. The IdeaPad path maps the DSDT's EC memory window and only reads <code>BAT1</code>/<code>ACAD</code> (there is no ACPI interpreter, no EC SCI/notify handling, and the model/serial strings are the DSDT defaults). Battery/AC is polled by the WM once a second.</li>
|
|
|
|
|
|
|
+ <li><strong>EC.</strong> The Chrome EC path uses the ACPI v2 memmap only: no MEC host-command interface, EC SCI events, charger current/voltage, charging limit or EC firmware version. The ThinkPad H8 path is limited to its page-selected battery window and has no SCI handler. The IdeaPad path maps the DSDT's EC memory window, reads <code>BAT1</code>/<code>ACAD</code> and writes only the boot OS handshake (there is no ACPI interpreter, no EC SCI/notify handling, and the model/serial strings are the DSDT defaults). Battery/AC is polled by the WM once a second.</li>
|
|
|
<li><strong>WiFi.</strong> Intel 7265 rev D/3165 (7265D firmware), 8265 (8265-36 firmware, the 8000 loader is not yet hardware-validated) and 6200/6300 (6000 firmware, written without hardware in the loop); WPA2-PSK/CCMP and open networks, no WPA3/SAE, 802.1X, TKIP or WEP. No roaming, power save, background scan, HT/VHT, aggregation or rate scaling. Group rekeys need the background <code>wifi __keep</code> helper running. RX CCMP falls back to the byte-oriented software AES-CCM path when the firmware rejects the installed keys, so it has no replay window and is CPU-bound at high RX rates.</li>
|
|
<li><strong>WiFi.</strong> Intel 7265 rev D/3165 (7265D firmware), 8265 (8265-36 firmware, the 8000 loader is not yet hardware-validated) and 6200/6300 (6000 firmware, written without hardware in the loop); WPA2-PSK/CCMP and open networks, no WPA3/SAE, 802.1X, TKIP or WEP. No roaming, power save, background scan, HT/VHT, aggregation or rate scaling. Group rekeys need the background <code>wifi __keep</code> helper running. RX CCMP falls back to the byte-oriented software AES-CCM path when the firmware rejects the installed keys, so it has no replay window and is CPU-bound at high RX rates.</li>
|
|
|
<li><strong>RTL8821AU.</strong> High-speed EHCI/xHCI only (no UHCI/OHCI bulk). No IQ calibration, thermal power tracking, DIG, BT coexistence or by-rate/regulatory TX power tables (the eFuse base index is used for every rate); 20 MHz legacy rates only. Only one bulk device can stream on xHCI at a time (single bulk ring), so it does not mix with an ASIX dongle or a USB stick transfer.</li>
|
|
<li><strong>RTL8821AU.</strong> High-speed EHCI/xHCI only (no UHCI/OHCI bulk). No IQ calibration, thermal power tracking, DIG, BT coexistence or by-rate/regulatory TX power tables (the eFuse base index is used for every rate); 20 MHz legacy rates only. Only one bulk device can stream on xHCI at a time (single bulk ring), so it does not mix with an ASIX dongle or a USB stick transfer.</li>
|
|
|
<li><strong>Suspend.</strong> There is no S0ix/suspend path; package C-states and the EC sleep handshake remain firmware-managed.</li>
|
|
<li><strong>Suspend.</strong> There is no S0ix/suspend path; package C-states and the EC sleep handshake remain firmware-managed.</li>
|