drm/amdgpu: query vram_width from vram_info table
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 10 Dec 2018 23:12:16 +0000 (07:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 02:16:38 +0000 (21:16 -0500)
commit09fa0613bd9fb1a3ce986062414a48fea32c6e28
treed5e5e883767f80f4a16b8139adb01ce9bb9d0596
parent89d7a79c7bd9a9993a78aaad835cf7be3c7dcbfd
drm/amdgpu: query vram_width from vram_info table

Driver will get channel_number and channel_width from
vram_info table, then calculate vram_width by multiply
channel_number by channel_width

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jack Xiao <Jack.Xiao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c