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

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: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tao Zhou and committed by
Alex Deucher
5d6fddac dc111f8f

+3
+3
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
··· 2071 2071 { 2072 2072 adev->gmc.vram_type = AMDGPU_VRAM_TYPE_HBM; 2073 2073 adev->gmc.vram_width = 128 * 64; 2074 + 2075 + if (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(9, 5, 0)) 2076 + adev->gmc.vram_type = AMDGPU_VRAM_TYPE_HBM3E; 2074 2077 } 2075 2078 2076 2079 static int gmc_v9_0_sw_init(struct amdgpu_ip_block *ip_block)