drm/amdgpu: add asic callback to get memsize register
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Mar 2017 22:26:10 +0000 (17:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:41 +0000 (23:53 -0400)
commitbbf282d884793f95b89dc35059f8703eaf48ca00
treef8ca722ed54a90ebcf806bf60c642826dde5b13b
parentc722865a19f97aa9f56aaa8665f87cbf1dbaf96a
drm/amdgpu: add asic callback to get memsize register

Newer asics use different registers so abstract it.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/cik.c
drivers/gpu/drm/amd/amdgpu/si.c
drivers/gpu/drm/amd/amdgpu/vi.c