Commit 15c90a1f authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amdgpu: get the correct vram type for van gogh

This patch is to get the correct vram type from atombios for van gogh.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b9d90cb0
...@@ -149,6 +149,10 @@ static int convert_atom_mem_type_to_vram_type(struct amdgpu_device *adev, ...@@ -149,6 +149,10 @@ static int convert_atom_mem_type_to_vram_type(struct amdgpu_device *adev,
case LpDdr4MemType: case LpDdr4MemType:
vram_type = AMDGPU_VRAM_TYPE_DDR4; vram_type = AMDGPU_VRAM_TYPE_DDR4;
break; break;
case Ddr5MemType:
case LpDdr5MemType:
vram_type = AMDGPU_VRAM_TYPE_DDR5;
break;
default: default:
vram_type = AMDGPU_VRAM_TYPE_UNKNOWN; vram_type = AMDGPU_VRAM_TYPE_UNKNOWN;
break; break;
......
...@@ -1063,6 +1063,7 @@ static const char *amdgpu_vram_names[] = { ...@@ -1063,6 +1063,7 @@ static const char *amdgpu_vram_names[] = {
"DDR3", "DDR3",
"DDR4", "DDR4",
"GDDR6", "GDDR6",
"DDR5"
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment