diff options
author | 2024-01-20 13:32:51 +0530 | |
---|---|---|
committer | 2024-01-22 17:13:28 -0500 | |
commit | e0eb08dcec0ffc146f1522b5c6503fdea2f5ca4d (patch) | |
tree | 9f8122bb8c1277c8c9220a7a2b0ff805a5526628 /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | |
parent | drm/amd/pm: update the power cap setting (diff) | |
download | linux-e0eb08dcec0ffc146f1522b5c6503fdea2f5ca4d.tar.gz linux-e0eb08dcec0ffc146f1522b5c6503fdea2f5ca4d.tar.bz2 linux-e0eb08dcec0ffc146f1522b5c6503fdea2f5ca4d.zip |
drm/amdgpu: Avoid fetching vram vendor information
For GFX 9.4.3 APUs, the current method of fetching vram vendor
information is not reliable. Avoid fetching the information.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 9bff72356a37..a3a11538207b 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -1952,7 +1952,8 @@ static void gmc_v9_4_3_init_vram_info(struct amdgpu_device *adev) static const u32 regBIF_BIOS_SCRATCH_4 = 0x50; u32 vram_info; - if (!amdgpu_sriov_vf(adev)) { + /* Only for dGPU, vendor informaton is reliable */ + if (!amdgpu_sriov_vf(adev) && !(adev->flags & AMD_IS_APU)) { vram_info = RREG32(regBIF_BIOS_SCRATCH_4); adev->gmc.vram_vendor = vram_info & 0xF; } |