summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorZhigang Luo <Zhigang.Luo@amd.com>2026-08-31 14:35:31 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-10-07 12:02:18 -0400
commit9a403dc60f4c54cb81eb60fa8d639c59805fb38f (patch)
tree2c677fcd674f0268c54d1164f9fc407597b250d8 /scripts/Makefile.thinlto
parent2ff39b798b8c300ddaabb9d957b5852b2a3c940b (diff)
downloadlinux-next-9a403dc60f4c54cb81eb60fa8d639c59805fb38f.tar.gz
linux-next-9a403dc60f4c54cb81eb60fa8d639c59805fb38f.zip
drm/amdgpu: add helper for VRAM in system physical memory
On A+A, HBM is reached at a host physical address, so VRAM mappings need the system-memory path. That is true for both an SR-IOV VF and a passthrough VM; native PF A+A keeps the mmhub/sysvm path. Add AMDGPU_VIRT_VRAM_IS_SPM and amdgpu_virt_vram_is_spm() so later patches can identify SPM-backed VRAM without repeating the cap test. v2: - Rename the helper to amdgpu_virt_vram_is_spm(); it only tests AMDGPU_VIRT_VRAM_IS_SPM. - Set the cap in ip_early_init when an SR-IOV VF or passthrough dGPU has no FB BAR0, after AMD_IS_APU is known. Signed-off-by: Zhigang Luo <zhigang.luo@amd.com> Signed-off-by: Fangsheng Huang <Fangsheng.Huang@amd.com> Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions