summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2019-09-20 14:43:44 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-10-03 09:11:01 -0500
commitbd5520273cea125698f97bc4dd6152cccdbe6b19 (patch)
tree395defe4f3cc203359f2475559c55d3ff76d32d1 /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
parentd1249aae81e922845a61052230e57c18c61aa183 (diff)
drm/amdgpu/atomfirmware: use proper index for querying vram type (v3)
The index is stored in scratch register 4 after asic init. Use that index. No functional change since all asics in a family use the same type of vram (G5, G6, HBM) and that is all we use at the monent, but if we ever need to query other info, we will now have the proper index. v2: module array is variable sized, handle that. v3: fix off by one in array handling Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
0 files changed, 0 insertions, 0 deletions