Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lijo Lazar and committed by
Alex Deucher
e0eb08dc bba8200a

+2 -1
+2 -1
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
··· 1952 1952 static const u32 regBIF_BIOS_SCRATCH_4 = 0x50; 1953 1953 u32 vram_info; 1954 1954 1955 - if (!amdgpu_sriov_vf(adev)) { 1955 + /* Only for dGPU, vendor informaton is reliable */ 1956 + if (!amdgpu_sriov_vf(adev) && !(adev->flags & AMD_IS_APU)) { 1956 1957 vram_info = RREG32(regBIF_BIOS_SCRATCH_4); 1957 1958 adev->gmc.vram_vendor = vram_info & 0xF; 1958 1959 }