projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51b9bb6
)
drm/amdgpu: Initialize memory ranges for gmc v12_1
author
Hawking Zhang
<Hawking.Zhang@amd.com>
Sun, 15 Jun 2025 06:22:13 +0000
(14:22 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 10 Dec 2025 22:39:22 +0000
(17:39 -0500)
Initialize memory ranges for gmc v12_1
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
index
dfa5181
..
8e3e2d3
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
@@
-878,6
+878,14
@@
static int gmc_v12_0_sw_init(struct amdgpu_ip_block *ip_block)
amdgpu_gmc_get_vbios_allocations(adev);
+#ifdef HAVE_ACPI_DEV_GET_FIRST_MATCH_DEV
+ if (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(12, 1, 0)) {
+ r = amdgpu_gmc_init_mem_ranges(adev);
+ if (r)
+ return r;
+ }
+#endif
+
/* Memory manager */
r = amdgpu_bo_init(adev);
if (r)