drm/amdgpu: add vmhub funcs helper (v2)
authorHuang Rui <ray.huang@amd.com>
Tue, 21 Jul 2020 09:39:26 +0000 (17:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jul 2020 22:42:56 +0000 (18:42 -0400)
commit2577db91e82e9b2e68acb9f467ae29ce3aa89d52
tree33fbbac2032eb22812da5bd54909cfb684278370
parentf2c1b5c145c8ffe71b314d94f35383ac0d94edd0
drm/amdgpu: add vmhub funcs helper (v2)

This patch is to introduce vmhub funcs helper to add following callback
(print_l2_protection_fault_status). Each GC/MMHUB register specific programming
should be in gfxhub/mmhub level.

v2: remove the condition of funcs assignment.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c