mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 14:38:47 +00:00
GSP_SET_SYSTEM_INFO went to GSP-RM with acpiMethodData and bIsPrimary left zero. On an Optimus laptop nouveau (r535/r570_gsp_acpi_info) and OpenRM fill them from the GPU's ACPI node: the _DOD display list, the JT _DSM capabilities and the NVOP Optimus capabilities. Do the same, at the 580.178.04 GspSystemInfo offsets (acpiMethodData 0xa0..0x344, bIsPrimary 0x380), and log what was found: ga10x: ACPI sysinfo: primary=0 dod=0(n=1) jt=0(caps=20016003) opt=0(caps=19000059) This did not by itself fix the GA107 boot (the sysmem flush page did, programmed since #145), and it has not been tested in isolation; it brings the system info in line with what the other drivers send on Optimus systems. Only x86 with CONFIG_ACPI evaluates the methods. bIsPrimary comes from video_is_primary_device() where <asm/video.h> has it (6.9+, probed in Kbuild) and from the VGA arbiter's default device before that. Also report an I/O BAR to GSP-RM only when PCI_COMMAND_IO is enabled: the GA107 exposes an I/O BAR that the platform leaves disabled.