mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
drm/amdgpu: Initialize memory ranges for gmc v12_1
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>
This commit is contained in:
parent
51b9bb61e5
commit
c58d8a6620
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user