mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +00:00
* fix(rmapi): answer NV2080_CTRL_CMD_BUS_GET_PCI_INFO_V2 (0x2080183c) on pre-GSP GPUs (#564) 580.196.07 nvidia-smi / NVML asks for 0x2080183c when it reports pci.bus_id. It is not in the 580.178.04 export table that control_table.rs is generated from, so a pre-GSP GPU refused it with NV_ERR_NOT_SUPPORTED (0x56) and `nvidia-smi --query-gpu=pci.bus_id` printed [N/A]. 580.178.04 userspace never sends it, which is why this went unseen. The 28-byte layout is NV2080_CTRL_BUS_GET_PCI_INFO_V2_PARAMS from NVIDIA/open-gpu-kernel-modules main (ctrl2080bus.h): the four words of 0x20801801 followed by pciProgrammingInterface, pciSubClass and pciBaseClass. The class words come from the PCI class code, which the PCI probe now passes down in RmapiGpu/nv_rs_rmapi_gpu (pdev->class). Evidence: stock 580.196.07 replies captured with tools/ioctl_capture on an EVGA GTX 1080 Ti (3842:6696, bus 01) and gdevenyi's ASUS capture on #564 (1043:85f1, bus 02) are reproduced byte for byte by new unit tests that go through the RM_CONTROL escape path. The bus number is not part of this reply; pci.bus_id keeps coming from 0x21b, which already matched stock. 0x2080012f is left alone: stock 580.196.07 also answers 0x56 on this non-ECC GP102 (#371), and master already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HgXrs8WswQymXpCe2YSiEM * fix(gsp): keep NV2080_CTRL_CMD_BUS_GET_PCI_INFO_V2 (0x2080183c) host-only on the GSP route The synthetic descriptor added for pre-GSP GPUs made control_info() know 0x2080183c, so the GSP route's validate() would now pass it and forward it to GSP-RM for an owned mirrored object. Before this PR the command was unknown to the tables and answered on the host Node. Add it to the existing host-only list next to 0x00801401 and 0x20808165 so GSP-RM never sees it. Reported by CodeRabbit on #590. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HgXrs8WswQymXpCe2YSiEM --------- Co-authored-by: Dino Vitale <chaotikdino@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>