Commit 5d6fddac authored by Tao Zhou's avatar Tao Zhou Committed by Alex Deucher
Browse files

drm/amdgpu: set vram type for GC 9.5.0



Set vram type so we can take different actions according to the type.

Signed-off-by: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent dc111f8f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2071,6 +2071,9 @@ static void gmc_v9_4_3_init_vram_info(struct amdgpu_device *adev)
{
	adev->gmc.vram_type = AMDGPU_VRAM_TYPE_HBM;
	adev->gmc.vram_width = 128 * 64;

	if (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(9, 5, 0))
		adev->gmc.vram_type = AMDGPU_VRAM_TYPE_HBM3E;
}

static int gmc_v9_0_sw_init(struct amdgpu_ip_block *ip_block)