summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorZhigang Luo <Zhigang.Luo@amd.com>2026-08-31 14:35:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-10-07 12:01:22 -0400
commit65f78c64212b9d454490e6cacf53f4f0e0d65a2e (patch)
tree132a966585be9f15710deac938a4fc9ef37b38e0 /scripts/Makefile.thinlto
parent49a443fcb829be9fc780f10850652ddea2fe81f0 (diff)
downloadlinux-next-65f78c64212b9d454490e6cacf53f4f0e0d65a2e.tar.gz
linux-next-65f78c64212b9d454490e6cacf53f4f0e0d65a2e.zip
drm/amdgpu: add SRAT lookup for GPU-local memory
On A+A the GPU HBM is exposed as specific-purpose memory described by SRAT, and the GPU reaches it at a system physical address over the internal link, so the driver needs a way to discover that range. Add amdgpu_acpi_find_gpu_memory_in_srat(), which resolves the GPU proximity domain from the SRAT GENERIC_AFFINITY entry matching the PCI device handle, then returns the enabled, non-hotpluggable memory range of that domain. No caller yet, the users follow. v2: - A+A VF/passthrough is identified later by missing FB BAR0 (AMDGPU_VIRT_VRAM_IS_SPM), not by xgmi.connected_to_cpu. v3: - Rename best_base/best_len to mem_base/mem_len; first match, not a comparison. - Drop the unused legacy packed-BDF PCI handle format. - Log "no acpi generic initiator found" without extra PCI BDF. - Use dev_err for error-return logs. v4: - Reverse Christmas-tree local declarations, one per line. - Reject NULL base_addr/length with -EINVAL. 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