Commit 1f8628c7 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: print vram type rather than just DDR

We have the info, so use it rather than reporting just DDR.
Reviewed-by: default avatarHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b634de4f
...@@ -476,6 +476,17 @@ int amdgpu_bo_evict_vram(struct amdgpu_device *adev) ...@@ -476,6 +476,17 @@ int amdgpu_bo_evict_vram(struct amdgpu_device *adev)
return ttm_bo_evict_mm(&adev->mman.bdev, TTM_PL_VRAM); return ttm_bo_evict_mm(&adev->mman.bdev, TTM_PL_VRAM);
} }
static const char *amdgpu_vram_names[] = {
"UNKNOWN",
"GDDR1",
"DDR2",
"GDDR3",
"GDDR4",
"GDDR5",
"HBM",
"DDR3"
};
int amdgpu_bo_init(struct amdgpu_device *adev) int amdgpu_bo_init(struct amdgpu_device *adev)
{ {
/* Add an MTRR for the VRAM */ /* Add an MTRR for the VRAM */
...@@ -484,8 +495,8 @@ int amdgpu_bo_init(struct amdgpu_device *adev) ...@@ -484,8 +495,8 @@ int amdgpu_bo_init(struct amdgpu_device *adev)
DRM_INFO("Detected VRAM RAM=%lluM, BAR=%lluM\n", DRM_INFO("Detected VRAM RAM=%lluM, BAR=%lluM\n",
adev->mc.mc_vram_size >> 20, adev->mc.mc_vram_size >> 20,
(unsigned long long)adev->mc.aper_size >> 20); (unsigned long long)adev->mc.aper_size >> 20);
DRM_INFO("RAM width %dbits DDR\n", DRM_INFO("RAM width %dbits %s\n",
adev->mc.vram_width); adev->mc.vram_width, amdgpu_vram_names[adev->mc.vram_type]);
return amdgpu_ttm_init(adev); return amdgpu_ttm_init(adev);
} }
......
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