radeon_gtt_location(9)
π radeon_gtt_location(9) β from the Kernel API Manual, bestie
okay so real talk, this is a page straight out of the Kernel API Manual and it's literally called radeon_gtt_location(9). it's a tiny little function page but it's doing important work, so let's get into it π«Ά
β¨ NAME β¨
radeon_gtt_location β the "hey, let's try to find where GTT lives" function π
β¨ SYNOPSIS β¨
void radeon_gtt_location (struct radeon_device *rdev , struct radeon_mc
*mc );
like, it returns void β nothing back, no drama, she just does the thing π
β¨ ARGUMENTS β¨
rdevβ the radeon device structure, and yes she's holding all necessary informations. every last one. she's got the whole group chat in there πmcβ the memory controller structure, holding the memory informations. this is the one that knows where all the memory vibes are at πΈ
β¨ DESCRIPTION β¨
so what she actually does: this function will try to place GTT before or after VRAM. that's the whole mission. she's out here doing placement like it's seating charts at a wedding π
and here's the cute part β if GTT size is bigger than the space left, we ajust GTT size. (yes "ajust", that's the original spelling, don't come for me π). so she just shrinks herself to fit. adaptive queen behavior honestly π
Thus function will never fails. she does not fail. she literally cannot. no cap, that's the guarantee. β¨
FIXME: when reducing GTT size align new size on power of 2. β so there's a known little todo note here: when you're reducing the GTT size, the new size should get aligned on a power of 2. flagged as a FIXME, so it's a real thing someone still needs to deal with, not me making stuff up π
β¨ SEE ALSO β¨
the source lives in the kernel file ./drivers/gpu/drm/radeon/radeon_device.c β go read her in her natural habitat π¦
and here is the whole entire friend group, no one left out, ordering preserved for the girlies who care (i care):
radeon_program_register_sequence(9)radeon_surface_init(9)radeon_scratch_init(9)radeon_scratch_get(9)radeon_scratch_free(9)radeon_doorbell_init(9)radeon_doorbell_fini(9)radeon_doorbell_get(9)radeon_doorbell_free(9)radeon_wb_disable(9)radeon_wb_fini(9)radeon_wb_init(9)radeon_vram_location(9)radeon_card_posted(9)radeon_update_bandwidth_info(9)radeon_boot_test_post_card(9)radeon_dummy_page_init(9)radeon_dummy_page_fini(9)cail_pll_read(9)cail_pll_write(9)cail_mc_read(9)cail_mc_write(9)cail_reg_write(9)cail_reg_read(9)cail_ioreg_write(9)cail_ioreg_read(9)radeon_atombios_init(9)radeon_atombios_fini(9)radeon_combios_init(9)radeon_combios_fini(9)radeon_vga_set_decode(9)radeon_gart_size_auto(9)radeon_check_arguments(9)radeon_switcheroo_set_state(9)radeon_switcheroo_can_switch(9)radeon_device_init(9)radeon_device_fini(9)radeon_gpu_reset(9)
and that's the page!! source path <purple>./drivers/gpu/drm/radeon</purple>, dated October 2026, tied to radeon_gtt_location(9) β mwah, go off bestie, we love a function that never fails πβ¨π
π¦ 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