amdgpu_device_get_pcie_info(9)
π amdgpu_device_get_pcie_info(9) β bestie, let's talk PCIe
okay so first things first: this page lives in the Kernel API Manual, section 9, and the function's full government name is amdgpu_device_get_pcie_info. say it with me. iconic. π
β¨ NAME β¨
amdgpu_device_get_pcie_info β fence pcie info about the PCIE slot
like, it goes and gets the info. and then fences it. no cap. π¦
πΈ SYNOPSIS πΈ
void amdgpu_device_get_pcie_info (struct amdgpu_device *adev );
short, sweet, returns nothing, does not miss. periodt. π
π«Ά ARGUMENTS π«Ά
adevβ amdgpu_device pointer. that's the one and only thing you're handing it. it's giving "just the one friend who's driving" energy. π
π₯ DESCRIPTION π₯
so what does it actually do? it fetches the PCIE capabilities of the slot the device is sitting in β that's the gen speed and the lanes β and then it stores them in the driver. so the driver just... knows. main character energy, honestly. π
and the way it handles the weird edge cases?? obsessed. it's got you covered for:
- APUs π§
- virtualized environments, where PCIE config space may not be available π
so like, if the config space isn't there to read, it's not gonna have a meltdown β it knows what's up. lowkey so thoughtful of it. π
ngl, this is the kind of function that quietly does its job and never asks for credit. eat your heart out.
π SEE ALSO π
the friend group. the whole squad. every single one. π«‘
Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
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_is_peer_accessible(9)amdgpu_pci_error_detected(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 i said. the whole squad. π
that's the page, bestie. source and version vibes come from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and the man page is amdgpu_device_get_pcie_info(9) β slay, go read the source, ily πππ
π¦ 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