Skip to content

Commit 3d1554d

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Avoid fetching VRAM vendor info
The present way to fetch VRAM vendor information turns out to be not reliable on GFX 9.4.3 dGPUs as well. Avoid using the data. 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>
1 parent 3fa6352 commit 3d1554d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,14 +1949,6 @@ static int gmc_v9_0_init_mem_ranges(struct amdgpu_device *adev)
19491949

19501950
static void gmc_v9_4_3_init_vram_info(struct amdgpu_device *adev)
19511951
{
1952-
static const u32 regBIF_BIOS_SCRATCH_4 = 0x50;
1953-
u32 vram_info;
1954-
1955-
/* Only for dGPU, vendor informaton is reliable */
1956-
if (!amdgpu_sriov_vf(adev) && !(adev->flags & AMD_IS_APU)) {
1957-
vram_info = RREG32(regBIF_BIOS_SCRATCH_4);
1958-
adev->gmc.vram_vendor = vram_info & 0xF;
1959-
}
19601952
adev->gmc.vram_type = AMDGPU_VRAM_TYPE_HBM;
19611953
adev->gmc.vram_width = 128 * 64;
19621954
}

0 commit comments

Comments
 (0)