amdgpu_pci_error_detected(9)
π amdgpu_pci_error_detected β like, the kernel API manual page, but make it make sense
okay so bestie, welcome to amdgpu_pci_error_detected(9) from the Kernel API Manual β¨ this one's short and sweet β it's the little function that gets ping-ponged into existence the moment a PCI error shows up, and it's giving "first responder energy" fr fr π¨
β¨ NAME β¨
amdgpu_pci_error_detected β bestie, this is the one that gets called when a PCI error is detected. that's it. that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
pci_ers_result_t amdgpu_pci_error_detected (struct pci_dev *pdev ,
pci_channel_state_t state );
like, it takes two things and hands you back a pci_ers_result_t. iconic signature, no notes π
π ARGUMENTS π
pdevβ the PCI device struct π₯οΈ literally the GPU's little ID card in PCI-land. you know, the device itself.stateβ the PCI channel state π‘οΈ aka "how bad is it" β the current mood of the channel, and not in a cute way.
π DESCRIPTION π
Called when a PCI error is detected π that's the whole thing. the kernel detects a PCI error, and this function is the main character that gets the call. no cap, that's the entire description β short, blunt, and honestly? respect π
π₯ RETURN π₯
it returns one of these two:
PCI_ERS_RESULT_NEED_RESETβ "she's not okay but she can be fixed, hit her with a reset" πPCI_ERS_RESULT_DISCONNECTβ "yeah no, cut her loose" βοΈ
π SEE ALSO π
okay so this list is long and honestly kind of a flex π β first, the kernel file this all lives in:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
and then, in order, the whole friend group π―:
pcie_replay_count(9)board_info(9)uma/carveout_options(9)uma/carveout(9)amdgpu_device_supports_px(9)amdgpu_device_supports_boco(9)amdgpu_device_supports_baco(9)amdgpu_device_supports_smart_shift(9)amdgpu_device_mm_access(9)amdgpu_device_aper_access(9)amdgpu_device_vram_access(9)amdgpu_device_get_rev_id(9)amdgpu_device_asic_init(9)amdgpu_device_mem_scratch_init(9)amdgpu_device_mem_scratch_fini(9)amdgpu_device_program_register_sequence(9)amdgpu_device_pci_config_reset(9)amdgpu_device_pci_reset(9)amdgpu_device_resize_fb_bar(9)amdgpu_device_need_post(9)amdgpu_device_should_use_aspm(9)amdgpu_device_vga_set_decode(9)amdgpu_device_check_block_size(9)amdgpu_device_check_vm_size(9)amdgpu_device_check_arguments(9)amdgpu_switcheroo_set_state(9)amdgpu_switcheroo_can_switch(9)amdgpu_device_enable_virtual_display(9)amdgpu_device_parse_gpu_info_fw(9)amdgpu_device_ip_early_init(9)amdgpu_device_ip_init(9)amdgpu_device_fill_reset_magic(9)amdgpu_device_check_vram_lost(9)amdgpu_device_set_cg_state(9)amdgpu_device_ip_late_init(9)amdgpu_device_smu_fini_early(9)amdgpu_device_ip_fini(9)amdgpu_device_delayed_init_work_handler(9)amdgpu_device_ip_suspend_phase1(9)amdgpu_device_ip_suspend_phase2(9)amdgpu_device_ip_suspend(9)amdgpu_device_ip_resume_phase1(9)amdgpu_device_ip_resume_phase2(9)amdgpu_device_ip_resume_phase3(9)amdgpu_device_ip_resume(9)amdgpu_device_detect_sriov_bios(9)amdgpu_device_asic_has_dc_support(9)amdgpu_device_has_dc_support(9)amdgpu_device_check_iommu_direct_map(9)amdgpu_device_check_iommu_remap(9)amdgpu_device_init(9)amdgpu_device_fini_hw(9)amdgpu_device_evict_resources(9)amdgpu_device_pm_notifier(9)amdgpu_device_prepare(9)amdgpu_device_complete(9)amdgpu_device_suspend(9)amdgpu_device_resume(9)amdgpu_device_reset_sriov(9)amdgpu_device_has_job_running(9)amdgpu_device_should_recover_gpu(9)amdgpu_device_gpu_recover(9)amdgpu_device_partner_bandwidth(9)amdgpu_device_gpu_bandwidth(9)amdgpu_device_get_pcie_info(9)amdgpu_device_is_peer_accessible(9)amdgpu_pci_mmio_enabled(9)amdgpu_pci_slot_reset(9)amdgpu_pci_resume(9)amdgpu_device_halt(9)amdgpu_device_get_gang(9)amdgpu_device_switch_gang(9)amdgpu_device_enforce_isolation(9)
like, seriously bestie, that SEE ALSO list is a whole roll call π go read a few, they're lowkey all part of the same amdgpu_device.c saga.
okay that's the page!! mwah π this lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and yes it's literally titled amdgpu_pci_error_detected(9) β slay, go handle your PCI errors responsibly π¦π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms