amdgpu_device_resize_fb_bar(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

So bestie, this one's called amdgpu_device_resize_fb_bar β€” and what it does is literally in the name: it tries to resize the FB BAR. That's the whole vibe. πŸ’…

A little housekeeping first: this page lives in the Kernel API Manual, section 9 (kernel interfaces, iykyk). Okay, now we can actually get into it. ✨


✨ SYNOPSIS

int amdgpu_device_resize_fb_bar (struct amdgpu_device *adev );

It returns an int, it takes one arg, and it's giving very "small function, big responsibility." 🫢


πŸŽ€ ARGUMENTS

  • adev β€” a pointer to an amdgpu_device. That's it. That's the whole parameter list. She's low maintenance like that. πŸ’–

πŸ¦‹ DESCRIPTION

Okay so here's what's actually going down: this function tries to resize the FB BAR so that all of VRAM becomes CPU accessible. That's the goal. That's the dream. 🌈

And the way it does it? We try very hard not to fail. Like, genuinely trying our best, no cap. But β€” and this is the important part, bestie, don't skip it β€” if any of the BARs is not accessible after the size, we abort driver loading by returning -ENODEV. Not a soft little "hmm maybe try again," not a warning, an abort. Driver does not load. Periodt. πŸ’€

So yeah: it's doing its absolute most, but there's a real failure path and it's -ENODEV. Respect the stakes. πŸ”₯


🌈 SEE ALSO

If you wanna go down the rabbit hole (and honestly, same), the kernel file is ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c β€” that's where the whole friend group hangs out. The rest of the squad:

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_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_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. Whole friend group. 🧚


Okay and for the sign-off β€” this page came out of the kernel tree at ./drivers/gpu/drm/amd/amdgpu, and it's dated October 2026. Bestie, a 2026 date, we're so ahead of the game. πŸŽ€βœ¨ Go read the source, ily, bye! πŸ‘‘
πŸ“¦ where this page comes from