|
|
@@ -351,7 +351,12 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`bkl_trylock()` (never blocks); the kworker and kernel commands take the BKL
|
|
|
normally and release it around their sleeps.
|
|
|
APs use their LAPIC timer (vector 0x30; 1 ms busy, 10 ms idle); the BSP keeps the 8259 PIC/PIT and
|
|
|
- is the only global-tick source. APs do not start taking user work until
|
|
|
+ is the only global-tick source. The BSP LAPIC is initialized in
|
|
|
+ `timer_init()` before `sti` (SVR, LINT0 ExtINT, firmware LAPIC timer
|
|
|
+ stopped), and the PIT/keyboard/mouse/floppy/default stubs send the LAPIC
|
|
|
+ EOI as well as the PIC EOI, so a firmware that leaves the LAPIC enabled
|
|
|
+ cannot block the second ExtINT tick; `smp_init()` re-runs
|
|
|
+ `lapic_init_bsp()`. APs do not start taking user work until
|
|
|
`smp_enable_sched()`, i.e. after device/FS setup. LAPIC IPIs (vector 0x31)
|
|
|
request a reschedule; they must be EOIed on the target LAPIC.
|
|
|
`SYS_PROCINFO` exposes pid/parent_pid, weight/state/CPU/ticks, pages and
|
|
|
@@ -401,7 +406,9 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`ioapic.c/h` (masks the normal IOAPIC redirection entries after ACPI init so
|
|
|
the 8259/LINT0 path is deterministic; ExtINT entries are preserved),
|
|
|
`lapic.c/h`
|
|
|
- (xAPIC MMIO access, BSP/AP init, INIT/SIPI/IPI, calibrated periodic timer),
|
|
|
+ (xAPIC MMIO access, BSP/AP init, INIT/SIPI/IPI, calibrated periodic timer;
|
|
|
+ `lapic_init_bsp()` runs early from `timer_init()` and again from
|
|
|
+ `smp_init()`),
|
|
|
`smp.c/h` (trampoline copy, AP stacks via `process_init_ap`, INIT-SIPI-SIPI
|
|
|
with a second SIPI retry, per-CPU `smp_ap_main`, `smp_stop_aps`, lazy
|
|
|
`smp_enable_sched`), `ap_tramp.S` + `ap_tramp.ld` (real → protected-mode
|
|
|
@@ -862,7 +869,12 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
pipe the firmware enabled and falls back to controller 0; the period comes
|
|
|
from the firmware (`6000` = 19.2 MHz / (200 Hz × 16) when it reads zero).
|
|
|
The 10% steps clamp at 5..100% and the level is not persisted across a cold
|
|
|
- boot. `io.c` maps F6/F7 (the ChromeOS EC action row) and `E0 14`/`E0 15`
|
|
|
+ boot. The same driver now handles the Sunrise Point-LP PCH PWM on Kaby
|
|
|
+ Lake (the Yoga 720's HD 620 `8086:5916`): `BLC_PWM_CTL2` at `0xC8250` and
|
|
|
+ `BLC_PWM_CTL` at `0xC8254` in the GPU BAR (pipe B `+0x100`), with the same
|
|
|
+ enable/period/duty layout. The Yoga's firmware leaves a period of 535 and
|
|
|
+ Linux's `intel_backlight` reports max 535 / current 96; the 5..100% steps
|
|
|
+ work through the same `SYS_BACKLIGHT` and Settings path. `io.c` maps F6/F7 (the ChromeOS EC action row) and `E0 14`/`E0 15`
|
|
|
(standard brightness scancodes) to `backlight_step()` and consumes them.
|
|
|
The `backlight [0-100|up|down|probe]` kernel command and `SYS_BACKLIGHT`
|
|
|
(op 0 get, 1 set, 2 step) are the other interfaces.
|
|
|
@@ -1092,7 +1104,21 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`FLUSH_CACHE` when the card reports a write-back cache. A stock eMMC holds
|
|
|
the ChromeOS image, so formatting it is destructive.
|
|
|
- **Serial**: `serial.c`, `serial_ring_buf.c/h`, `serial_loop.c` — 16550 UART
|
|
|
- with an IRQ-driven ring buffer and the `serial test` loopback check.
|
|
|
+ with a receive ring drained from the PIT stub and the `serial test`
|
|
|
+ loopback check. `serial_init()` probes COM1 first: a missing UART leaves
|
|
|
+ LSR and IIR at `0xFF` (a real 16550 has LSR bit 7 zero and a `0x01`/`0xC1`
|
|
|
+ IIR), so the port is marked dead and printed as `com1: absent` on the boot
|
|
|
+ console; it is never programmed or polled again. `serial_poll()` also
|
|
|
+ refuses a floating LSR and only drains while DR is set. This matters on a
|
|
|
+ serial-less laptop: the Yoga 720-13IKB has no legacy COM1 (only the LPSS
|
|
|
+ UART at MMIO, Linux's `ttyS4`), and the old 256×2 I/O drain ran on every
|
|
|
+ 1 kHz PIT tick over eSPI, costing more than the tick itself and freezing
|
|
|
+ the boot after `[process]`. `serial_putc()` still feeds the bootconsole
|
|
|
+ and netlog mirrors before its dead check. The boot console also prints
|
|
|
+ `timer: pic|idt|lapic|pit|sti` around `timer_init`, a one-shot `tick` on the
|
|
|
+ first PIT interrupt, and `smp: ap N` while the APs start; `pit_ticking()`
|
|
|
+ requires three ticks so a one-tick/blocked PIT cannot silently stall in
|
|
|
+ `smp_init()`'s `get_ticks_ms()` waits.
|
|
|
- **Network**: `netdev.c/h` — NIC driver registry (`struct netdev`, first probe
|
|
|
wins; drivers: `e1000e.c` Intel e1000/PCH LAN (82540EM emulated,
|
|
|
82577LM/82578/82579; polled, PCI INTx disabled before MMIO, PCH D0 and
|
|
|
@@ -1199,9 +1225,9 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
lives in the command pack, so `make net-cmds` updates it without a
|
|
|
kernel reload. Static IP default `192.168.178.240`, mask/gateway learned
|
|
|
from DHCP (off-subnet traffic goes via the router).
|
|
|
-- **WiFi (Intel 7265D/3165, the HP Chromebook)**: `iwl_trans.c/h` — PCIe
|
|
|
- transport after Linux iwlwifi (7000 family): PCI scan for
|
|
|
- `8086:095a/095b/3165/3166`, D0, BAR0 mapped with `ioremap`,
|
|
|
+- **WiFi (Intel 7265D/3165/8265, the HP Chromebook and Yoga)**: `iwl_trans.c/h` — PCIe
|
|
|
+ transport after Linux iwlwifi (7000/8000 family): PCI scan for
|
|
|
+ `8086:095a/095b/3165/3166/24fd`, D0, BAR0 mapped with `ioremap`,
|
|
|
APM init, one legacy RX queue (256 x 4 KB RBDs), gen1 128-byte TFD queues
|
|
|
with dword byte-count tables, firmware TLV parse and section DMA through
|
|
|
the FH service channel (128 KB bounce, `LMPM_CHICK` for the extended
|
|
|
@@ -1227,6 +1253,16 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
7265D-29 firmware does not use correctly installed `ADD_STA_KEY` keys for
|
|
|
RX even though TX (which embeds the TK in `TX_CMD`) works; there is no
|
|
|
software replay window yet.
|
|
|
+ The 8265 (Yoga 720, `8086:24fd`) uses `iwlwifi-8265-36.ucode` (API 36)
|
|
|
+ through the same MVM command layer, but the 8000 transport path: the TLV
|
|
|
+ section list is split into CPU1/CPU2 lists by separator entries, every
|
|
|
+ loaded section is acknowledged in `FH_UCODE_LOAD_STATUS`, and the CPU
|
|
|
+ reset is released through `RELEASE_CPU_RESET`/`WFPM_GP2` (Linux
|
|
|
+ `iwl_pcie_load_given_ucode_8000()`); the APMG clock block is skipped
|
|
|
+ (`apmg_not_supported`). Its MAC address comes from the extended-NVM
|
|
|
+ `MAC_OVERRIDE` section (11, offset 2), with the WFMP `0xA03080/0xA03084`
|
|
|
+ registers as the fallback; the 7000 HW-section 0/word 0x15 path is
|
|
|
+ unchanged. This backend is not yet hardware-validated.
|
|
|
The firmware is loaded on first use (`wifi` or the boot autoconnect
|
|
|
helper), not during kernel init.
|
|
|
`netdev_shutdown()` always calls `wifi_shutdown()` before a kexec (the RX
|
|
|
@@ -1473,36 +1509,51 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
mouse reports and inject keyboard scancodes, watch for plug/unplug (boot
|
|
|
protocol has no wheel field, so the USB wheel output stays 0 for now).
|
|
|
- **I2C touchpad**: `i2c.c/h` — polled Synopsys DesignWare APB I2C master
|
|
|
- for the Braswell LPSS blocks (fast mode, component-type probe, explicit
|
|
|
- LPSS reset-release so the FIFO drains); `touchpad.c/h` — Elan
|
|
|
- HID-over-I2C touchpad on LPSS I2C6 at `0xD1327000`, slave `0x15`.
|
|
|
- `touchpad_init()` runs from `mouse_init()` at boot, only when
|
|
|
- `cpu_family_model()` is Airmont `0x64C` (elsewhere the fixed-address LPSS
|
|
|
- scan would reset-cycle 32 MMIO windows that belong to nobody, ~64 ms, or
|
|
|
- to another device); it maps the I2C
|
|
|
- window before processes clone the page directory), resets the device,
|
|
|
- consumes the 2-byte acknowledgement, reads the HID descriptor, selects
|
|
|
- absolute mode (`0x0300 = 1`), wakes it (`0x0800`) and then queries the
|
|
|
- native max-X/Y commands (`0x0106`/`0x0107`). The report line is a GPIO with
|
|
|
- no driver, so `touchpad_poll()` reads the input register every 25 ms
|
|
|
- (back-to-back reads stall the device), parses the Elan `0x5D` vendor
|
|
|
- report (finger bitmask plus five bytes per packed finger) and feeds the
|
|
|
- device-independent `touchpad_gesture.c/h` engine. The engine owns
|
|
|
+ for the LPSS blocks (fast mode, component-type probe, explicit LPSS
|
|
|
+ reset-release so the FIFO drains); `touchpad.c/h` — Elan HID-over-I2C
|
|
|
+ touchpad on Braswell LPSS I2C6 at `0xD1327000`, slave `0x15`, and the
|
|
|
+ Synaptics 06CB:7F8F Windows-Precision touchpad on Sunrise Point-LP LPSS
|
|
|
+ I2C0 at PCI 00:15.0, slave `0x2c`.
|
|
|
+ `touchpad_init()` runs from `mouse_init()` at boot. On Airmont `0x64C` it
|
|
|
+ scans the two fixed LPSS windows (elsewhere the scan would reset-cycle 32
|
|
|
+ MMIO windows that belong to nobody or to another device) and probes the
|
|
|
+ Elan: reset, consume the 2-byte acknowledgement, read the HID descriptor,
|
|
|
+ select absolute mode (`0x0300 = 1`), wake (`0x0800`) and query the native
|
|
|
+ max-X/Y (`0x0106`/`0x0107`). On Skylake/Kaby Lake it finds the PCI
|
|
|
+ 00:15.0/1/2 LPSS functions, enables their memory decode and puts them in
|
|
|
+ D0 first (the firmware leaves the command register at 0: Linux logs
|
|
|
+ `intel-lpss 0000:00:15.0: enabling device (0000 -> 0002)`), maps the BAR
|
|
|
+ and probes the Synaptics at `0x2c`; the HID descriptor vendor/product
|
|
|
+ `0x06CB/0x7F8F` filters out the Wacom touchscreen on I2C1. The
|
|
|
+ Synaptics probe follows Linux i2c-hid: address ACK, read the HID
|
|
|
+ descriptor, then power-on (`0x0800`), reset (`0x0100`) and the
|
|
|
+ zero-length reset-complete input report. The report line is
|
|
|
+ a GPIO with no driver, so `touchpad_poll()` reads the input register every
|
|
|
+ 25 ms (back-to-back reads stall the device). The Elan `0x5D` vendor report
|
|
|
+ carries a finger bitmask and five packed bytes per active finger; the
|
|
|
+ Synaptics Windows-Precision report 3 carries five 5-byte finger records
|
|
|
+ (tip/confidence, contact id, 16-bit X/Y), then scan time, contact count
|
|
|
+ and the clickpad bit. Both decoders feed the device-independent
|
|
|
+ `touchpad_gesture.c/h` engine. The engine owns
|
|
|
pointer scaling, taps, the physical-button latch and two-finger
|
|
|
scrolling, so another touchpad backend only has to decode its own
|
|
|
reports into up to two contacts. A short stationary tap synthesizes a
|
|
|
button press: two fingers -> right click, one finger in the bottom-right
|
|
|
zone (`x >= 75%`, `y <= 25%`) -> right click, one finger elsewhere ->
|
|
|
- left click. The device's raw Y axis grows upwards, so the bottom is the
|
|
|
- low end. A physical clickpad press is also latched at its leading edge:
|
|
|
- in the bottom-right zone it becomes the right button, elsewhere the left
|
|
|
- button, and the latch holds for the whole press. Two fingers that move
|
|
|
- their centroid by more than ~30 device units scroll; the pointer freezes
|
|
|
- while two or more fingers are down and re-anchors when one remains.
|
|
|
- Natural scrolling (two fingers up = later content) is the default.
|
|
|
- `touchpad` prints the probe/status and takes
|
|
|
- `rightclick off|tap|corner|both`, `tapclick on|off` and
|
|
|
- `scroll on|off|natural|traditional`; `mouseinfo` lists the Elan VID/PID.
|
|
|
+ left click. The Elan raw Y grows upwards; the Synaptics frame is inverted
|
|
|
+ by default to match, and `touchpad invert on|off` selects the direction
|
|
|
+ for either backend. A physical clickpad press is also latched at its
|
|
|
+ leading edge: in the bottom-right zone it becomes the right button,
|
|
|
+ elsewhere the left button, and the latch holds for the whole press. Two
|
|
|
+ fingers that move their centroid by more than ~30 device units scroll; the
|
|
|
+ pointer freezes while two or more fingers are down and re-anchors when one
|
|
|
+ remains. Natural scrolling (two fingers up = later content) is the
|
|
|
+ default. `touchpad` prints the probe/status and takes
|
|
|
+ `rightclick off|tap|corner|both`, `tapclick on|off`,
|
|
|
+ `scroll on|off|natural|traditional` and `invert on|off`; `touchpad probe`
|
|
|
+ reruns a failed boot probe and prints the LPSS PCI id/BAR/command, the
|
|
|
+ DesignWare component type and the 0x200/0x204 private registers on
|
|
|
+ failure. `mouseinfo` lists the Elan/Synaptics VID/PID.
|
|
|
- **USB**: `usb.c/h` — controller-agnostic core: device enumeration,
|
|
|
descriptor parsing, hub recursion, bus scans, per-controller addresses, the
|
|
|
hotplug watcher and the interrupt-IN consumers (mouse + keyboard). It keeps
|
|
|
@@ -1581,6 +1632,14 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
configures them) and no package-energy MSR reads; APERF/MPERF are used
|
|
|
only when CPUID.06H:ECX[0] says they exist. C3/C6 residency is not read
|
|
|
on Airmont.
|
|
|
+ Kaby Lake (family 6 model `0x8E`, the Yoga's i7-7500U) uses HWP/Speed
|
|
|
+ Shift: `IA32_HWP_CAPABILITIES` (`0x771`) gives highest/guaranteed/
|
|
|
+ efficient/lowest, and the governor uses guaranteed..lowest (max non-turbo
|
|
|
+ and minimum), leaving turbo unrequested. `IA32_HWP_REQUEST` (`0x774`)
|
|
|
+ carries min/max/desired plus EPP (`balance_performance` = 128), the
|
|
|
+ `IA32_PM_ENABLE` bit 0 selects HWP, and legacy `IA32_PERF_CTL` is the
|
|
|
+ fallback. Linux reports `intel_pstate` active, 400-3500 MHz, 32 pstates,
|
|
|
+ turbo 25% and `balance_performance`; `power`/`cpufreq`/Settings drive it.
|
|
|
The per-CPU tick runs a race-to-idle governor: 100 ms windows pick
|
|
|
min/max/linear target pstates (short busy streaks jump to max immediately)
|
|
|
and each CPU writes its own `IA32_PERF_CTL`. The `power` command prints
|
|
|
@@ -1607,6 +1666,10 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
ThinkPads and the HP Chromebook, the AC/battery icon at the far right (a
|
|
|
plug while on AC, a level-filled battery on battery) and `cpuinfo`'s value
|
|
|
plus EIST state.
|
|
|
+ Kaby Lake-U (`0x8E`, the Yoga) is in the DTS/MSR TjMax list; Linux reports
|
|
|
+ `x86_pkg_temp` 61-71 °C and the PCH `pch_skylake` 49-52 °C on this unit.
|
|
|
+ The kernel exposes the CPU DTS only; the PCH/INT3403 `SEN1`/`SEN2`/`B0D4`
|
|
|
+ ACPI sensors would need the DPTF tables.
|
|
|
AMD family 15h models below `0x60` (Bulldozer/Piledriver, the FX-6350)
|
|
|
read Tctl from `D18F3xA4` at PCI `0:18.3`: `raw = val >> 21`, `raw * 125`
|
|
|
m°C, minus 49 °C when bits 17:16 are both set, TjMax 70 °C. The probe
|
|
|
@@ -1623,8 +1686,10 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
and show whether the fans turn. Nothing is written to the fan control.
|
|
|
`tpec.c/h` adds the ThinkPad embedded controller of the X201
|
|
|
(`SYS_TPEC_SENSORS` for temperatures/fan, `SYS_POWER_INFO` for AC/battery):
|
|
|
- a `_SM_` SMBIOS type 1 check gates the probe to Lenovo/IBM machines, then
|
|
|
- EC reads through ports 0x62/0x66 return the temperatures at EC 0x78..0x7F /
|
|
|
+ a `_SM_` SMBIOS type 1 check gates the probe to Lenovo/IBM machines whose
|
|
|
+ product or version string contains `ThinkPad`; IdeaPads/Yogas share the
|
|
|
+ vendor but have a different ACPI EC register map, so the ThinkPad probe
|
|
|
+ leaves them alone (the `ideapad.c` backend below handles theirs). EC reads through ports 0x62/0x66 return the temperatures at EC 0x78..0x7F /
|
|
|
0xC0..0xC7 (0x80 = absent, 0x00 = unimplemented; revision 3+ at EC 0xEF
|
|
|
only uses the first block), the fan tachometer at 0x84 (LSB, always read
|
|
|
first) / 0x85 and the 0x2F fan mode. The power path reads 0x38/0x39
|
|
|
@@ -1655,8 +1720,22 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
when supported. The Cyan full-charge workaround is applied and the units
|
|
|
are mAh/mA. `SYS_CROS_EC_SENSORS` (107) exposes temperatures, fans, fan
|
|
|
duty and switches; `SYS_POWER_INFO` reports source `SYS_POWER_SRC_CROS`.
|
|
|
- `power_src.c` tries the ThinkPad backend first, then the Chrome EC, so the
|
|
|
- WM top bar and the `powerinfo`/`sensors` commands work on both.
|
|
|
+ `ideapad.c/h` reads the IdeaPad/Yoga battery and AC adapter without an
|
|
|
+ ACPI interpreter: the DSDT's `BAT1` methods take their fields from the
|
|
|
+ PCH EC memory window at `0xFF000800` (a `SystemMemory` OperationRegion,
|
|
|
+ not the 0x62/0x66 EC), so the backend maps that page with `ioremap()` and
|
|
|
+ reads `BST0` 0xC1, `BRC0` 0xC2, `BPV0` 0xC6, `BDV0` 0xC8, `BDC0` 0xCA,
|
|
|
+ `BFC0` 0xCC, `CYC0` 0xCF, `BAC0` 0xD2, `BFCB` 0xED and the `ORRF` 0xF1
|
|
|
+ bit 6 / `ADPT` 0xA3 bit 7 flags. `BAM0` (0xC0 bit 1) selects the 1/10
|
|
|
+ capacity scale and the mA->mW rate conversion, and `BMF0` (0xC0 bits
|
|
|
+ 4..7, 6 = SIMPLO) the vendor string. The probe validates design/full
|
|
|
+ capacity, voltage and the status/vendor bits, so an address that is not
|
|
|
+ this EC reads as absent, and the backend only reads (no EC writes).
|
|
|
+ `SYS_POWER_INFO` reports source `SYS_POWER_SRC_IDEAPAD`; `powerinfo`
|
|
|
+ prints `ideapad`, and the WM top bar and Settings use the same snapshot.
|
|
|
+ `power_src.c` tries the ThinkPad backend first, then the IdeaPad EC, then
|
|
|
+ the Chrome EC, so the WM top bar and the `powerinfo`/`sensors` commands
|
|
|
+ work on all three.
|
|
|
- **Ring-3 address space**: the ELF image and 128 KB (32-page) stack live in
|
|
|
the 4 MB `USER_BASE` (`0x40000000`)..`USER_STACK_TOP` (`0x40400000`)
|
|
|
window, which is too small for a full-frame image. Their frames, and the
|
|
|
@@ -2554,7 +2633,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`cd [path]`, `ls [path]`, `cat <path>`, `save <path> <text>`, `rm <path>`,
|
|
|
`mkdir <path>`, `rmdir <path>`, `hello`, `acpidump` (writes the mapped
|
|
|
DSDT to `/share/DSDT.BIN`), `reboot`, `poweroff`,
|
|
|
-`display`, `cpuinfo`, `mouseinfo`, `gfxbench`, `lsusb`, `touchpad [rightclick off|tap|corner|both] [tapclick on|off] [scroll on|off|natural|traditional]`, `lspci [id]`, `peek <addr> [len]`, `poke <addr> <val>`, `storage`, `disks` (the ngui storage manager), `meminfo`, `top`, `process` (the ngui task manager), `bootscan` (the live boot storage-scan window), `sched`, `format [-y] <device> [size]` (binary units, e.g. `format ide0 100mb` or `1gb`; no size formats the whole disk; `-y` skips the prompt), `install [-y] <target> [source|self]` (clone the live image, or write the running image; auto-detects the source, preferring `usb0`; `auto` targets the only non-USB NebOS disk),
|
|
|
+`display`, `cpuinfo`, `mouseinfo`, `gfxbench`, `lsusb`, `touchpad [probe] [rightclick off|tap|corner|both] [tapclick on|off] [scroll on|off|natural|traditional] [invert on|off]`, `lspci [id]`, `peek <addr> [len]`, `poke <addr> <val>`, `storage`, `disks` (the ngui storage manager), `meminfo`, `top`, `process` (the ngui task manager), `bootscan` (the live boot storage-scan window), `sched`, `format [-y] <device> [size]` (binary units, e.g. `format ide0 100mb` or `1gb`; no size formats the whole disk; `-y` skips the prompt), `install [-y] <target> [source|self]` (clone the live image, or write the running image; auto-detects the source, preferring `usb0`; `auto` targets the only non-USB NebOS disk),
|
|
|
`ps`, `renice <pid> <weight>`, `kill <pid>`, `idle [auto|hlt|c1e|c3|c6]`, `power`, `powerinfo`, `cpufreq [auto|min|max|off|<pstate>]`, `spin [ms]`, `membench` (ring-3 speed check: TSC, ALU, heap/BSS memcpy, syscall rates), `backlight [0-100|up|down]` (also `probe`), `keytest` (raw scancode tap), `help`, `clear`, `serial test`, `kexec`, `dbg`, `service [list|status <name>|start|stop|restart|kill <name>|logs <name>|logtail <name>|--gui]` (init's client; `websrv` is the first service and holds the raw NIC receiver while running), `view <file>` (image viewer; PNG, baseline/progressive JPEG, animated GIF, BMP, TGA, PNM, ICO, PAM), `browser [url|file]` (disk app launcher; waits for the app so a terminal launch is foreground), and `chat [config-path]` (Cloudron Chat client).
|
|
|
|
|
|
Network: `netinfo`, `netrecv`, `netsend`, `netip [a.b.c.d]`, `dhcp` (re-run the
|
|
|
@@ -2963,7 +3042,7 @@ briefly reporting disconnected.
|
|
|
these devices.
|
|
|
- **Debug**: `ohci:` / `uhci:` / `ehci:` / `usbhid:` lines go to COM1 (and
|
|
|
through the netlog mirror on serial-less boards); `mouseinfo` shows the
|
|
|
- active mouse backend, the Elan VID/PID when the I2C touchpad is present,
|
|
|
+ active mouse backend, the Elan/Synaptics VID/PID when the I2C touchpad is present,
|
|
|
and whether a USB keyboard is attached; `usb.c`'s
|
|
|
`USB_DEBUG` and `usbhid.c`'s `USBHID_DEBUG` (both default 0) add
|
|
|
scan/report tracing. Headless tests: `make test-usb` runs
|
|
|
@@ -3176,22 +3255,25 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
inside the 16 MB no-E820 fallback). A 4.15 MB pack was boot-tested on
|
|
|
the legacy and UEFI paths and over `net-dev`. The browser and
|
|
|
its ring-3 dependencies are compiled with function sections and linked
|
|
|
- with `--gc-sections`; the current full pack with the UI fonts, both
|
|
|
- WiFi firmwares (7265D 1,036,312 bytes, ~442 KiB gzip; 6000 454,608 bytes,
|
|
|
- ~204 KiB gzip), the RTL8821A firmware and tables (31,898 + 11,668
|
|
|
+ with `--gc-sections`; the current full pack with the UI fonts, the three
|
|
|
+ WiFi firmwares (7265D 1,036,312 bytes, ~442 KiB gzip; 8265 2,432,528
|
|
|
+ bytes, ~945 KiB gzip; 6000 454,608 bytes, ~204 KiB gzip), the RTL8821A
|
|
|
+ firmware and tables (31,898 + 11,668
|
|
|
bytes), the 15 full-colour app icons and `install/kernel.bin` is
|
|
|
- ~2.21 MB gzip (~2 MB under the cap), inflating to ~4.7 MB, which adds
|
|
|
- about half a second to the boot; the floppy lite pack is ~744 KB gzip
|
|
|
+ ~3.16 MB gzip (~0.8 MB under the cap), inflating to ~7.3 MB, which adds
|
|
|
+ about a second to the boot; the floppy lite pack is ~744 KB gzip
|
|
|
and deliberately omits the firmware, the cursor bundle,
|
|
|
`install/kernel.bin` and the browser (`BROWSER` on `root.img` is the
|
|
|
floppy copy). `libdeflate-gzip -12` is still preferred. Over
|
|
|
- 115200 serial a raw `cmds-dev` pack (4.7 MB) now takes about four
|
|
|
+ 115200 serial a raw `cmds-dev` pack (7.3 MB) now takes about ten
|
|
|
minutes; use `net-cmds` (~45 s in QEMU).
|
|
|
9. SMP is **ACPI/MADT only**: no Intel MP-table fallback, so a Pentium II SMP
|
|
|
board that exposes only MP tables stays UP (deliberate; there is no test
|
|
|
hardware).
|
|
|
-10. There is no IOAPIC driver. The BSP keeps the 8259 PIC in LAPIC ExtINT mode;
|
|
|
- after ACPI init, `ioapic_mask_all()` masks every normal IOAPIC redirection
|
|
|
+10. There is no IOAPIC driver. The BSP keeps the 8259 PIC on LAPIC LINT0
|
|
|
+ (ExtINT); `lapic_init_bsp()` runs in `timer_init()` before `sti` and again
|
|
|
+ in `smp_init()`, and the PIC IRQ stubs send the LAPIC EOI too. After ACPI
|
|
|
+ init, `ioapic_mask_all()` masks every normal IOAPIC redirection
|
|
|
entry (ExtINT entries are left alone in case the 8259 is routed through an
|
|
|
IOAPIC pin). APs mask LINT0/LINT1 and only use their LAPIC timer/IPIs.
|
|
|
Device IRQs never reach an AP, and `pit_irq_stub` should be treated as
|
|
|
@@ -3257,8 +3339,9 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
AMD MTRR path, the 32x32 cursor save buffer and the mount-policy table)
|
|
|
~0x8bf20 once the frame bitmap moved out of BSS; with the ioremap
|
|
|
window, the EHCI handoff fix, the boot-scan log ring, the init bootstrap,
|
|
|
- parent-pid tree kill, the tty control syscalls and `TTY_MAX` 16 it is
|
|
|
- ~0x8e260, ~7.5 KB below the `0x90000` wall. The WM and `sys_wm.o`
|
|
|
+ parent-pid tree kill, the tty control syscalls and `TTY_MAX` 16, the
|
|
|
+ early BSP LAPIC/EOI, the boot-stage markers and the Synaptics touchpad it
|
|
|
+ is ~0x8f260, ~3.5 KB below the `0x90000` wall. The WM and `sys_wm.o`
|
|
|
build with `-Os` because their extra settings code otherwise pushed the
|
|
|
`.data` end across a page boundary and moved the 4 KB-aligned BSS by a
|
|
|
whole page; the
|
|
|
@@ -3514,8 +3597,10 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
`%f/%e/%g` with a 900-digit precision cap. These are sufficient for
|
|
|
QuickJS but are not a complete POSIX libc.
|
|
|
|
|
|
-28. The Elan touchpad is polled at 40 Hz because its report GPIO (GPNC bank
|
|
|
- index 18, level-low on setzer) has no driver. The pointer follows one
|
|
|
+28. The Elan (Chromebook) and Synaptics 06CB:7F8F (Yoga 720-13IKB) touchpads
|
|
|
+ are polled at 40 Hz because their report GPIO has no driver (GPNC bank
|
|
|
+ index 18, level-low on setzer for the Elan; the Yoga's PCH GPIO and
|
|
|
+ `i2c-hid` interrupt are not used either). The pointer follows one
|
|
|
contact; two-finger scrolling uses the centroid of the first two
|
|
|
contacts. There is no inertia, no horizontal scroll, no drag-lock or
|
|
|
pressure/size handling, no distinct three-finger gesture (3+ fingers
|
|
|
@@ -3525,9 +3610,10 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
one-finger left click) and need the contact to last at least two 25 ms
|
|
|
samples; the corner zone also remaps a physical clickpad press to the
|
|
|
right button and the tap/scroll thresholds are in
|
|
|
- `touchpad_gesture.c`. The device stalls if the input register is read
|
|
|
- back-to-back, so a GPIO interrupt (or a larger minimum gap) is the
|
|
|
- prerequisite for a higher report rate.
|
|
|
+ `touchpad_gesture.c`. The Synaptics Y frame is inverted by default;
|
|
|
+ `touchpad invert on|off` selects the direction. The device stalls if
|
|
|
+ the input register is read back-to-back, so a GPIO interrupt (or a larger
|
|
|
+ minimum gap) is the prerequisite for a higher report rate.
|
|
|
|
|
|
29. Airmont/Braswell power management: the governor caps at the maximum
|
|
|
non-turbo pstate (N3060: 20 = 1600 MHz) and never requests turbo pstate
|
|
|
@@ -3612,7 +3698,9 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
chat thread at 32x32.
|
|
|
|
|
|
35. WiFi limits (`iwl_trans.c`, `iwl_mvm.c`, `iwl_dvm.c`, `wifi.c`): Intel
|
|
|
- 7265 rev D/3165 (`iwlwifi-7265D-29`) and 6200/6300 (`iwlwifi-6000-4`)
|
|
|
+ 7265 rev D/3165 (`iwlwifi-7265D-29`), 8265 (`iwlwifi-8265-36`, whose
|
|
|
+ new 8000 secure-section loader and MAC path are not yet
|
|
|
+ hardware-validated) and 6200/6300 (`iwlwifi-6000-4`)
|
|
|
only; a non-D 7265 is logged and will likely fail, and other 6000-family
|
|
|
parts (6005/6030/6050/6150, which use different firmware files) are not
|
|
|
probed. The 6200/6300 DVM path was written against Linux iwldvm without
|
|
|
@@ -3782,3 +3870,19 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
the window below. The WM keeps the whole `NBAPP1` bundle (415 KB) plus
|
|
|
the 2.4 MB wallpaper and 256 KB RGB565 table in its BSS, inside the 4 MB
|
|
|
user image window.
|
|
|
+
|
|
|
+43. Lenovo Yoga 720-13IKB (Kaby Lake i7-7500U, Sunrise Point-LP, UEFI):
|
|
|
+ the UEFI image boots from USB to the WM and terminal. The internal
|
|
|
+ Synaptics 06CB:7F8F touchpad is supported on LPSS I2C0 (see the I2C
|
|
|
+ touchpad bullet) and the external USB mouse/keyboard work. Kaby Lake
|
|
|
+ thermal (`0x8E` DTS), the PCH `BLC_PWM_CTL` backlight and HWP P-states
|
|
|
+ (`intel_pstate` active, 400-3500 MHz) are supported. The battery/AC uses
|
|
|
+ the IdeaPad ACPI EC backend (`ideapad.c`, the DSDT `ECMM` window at
|
|
|
+ `0xFF000800`; Linux `BAT1` reports 29.78/29.9 Wh, 8.657 V, 3.2 W, model
|
|
|
+ PABAS0241231/SIMPLO, `ACAD` online). The internal Samsung NVMe SSD (`144d:a808`) is
|
|
|
+ not a block device (no NVMe driver) and the internal Intel 8265 WiFi
|
|
|
+ (`8086:24fd`) uses the new 8000 backend (`iwlwifi-8265-36.ucode`;
|
|
|
+ hardware validation pending). The firmware's
|
|
|
+ LPSS UART (`8086:9d27`, ACPI `UA00`) is a 16550 at its MMIO BAR (Linux
|
|
|
+ `ttyS4`), not the legacy COM1; the legacy port floats at `0xFF`, which
|
|
|
+ `serial_init()` now detects before the PIT starts polling it.
|