drm/amdgpu: move get_invalidate_req function into gfxhub/mmhub level
authorHuang Rui <ray.huang@amd.com>
Tue, 21 Jul 2020 10:04:46 +0000 (18:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jul 2020 22:43:04 +0000 (18:43 -0400)
commitcaa9f483ca76693159499bd45e2e635c7e47bf46
tree6bbb67a0610d8a661a4f3db25fb2497ebdfc0163
parent2577db91e82e9b2e68acb9f467ae29ce3aa89d52
drm/amdgpu: move get_invalidate_req function into gfxhub/mmhub level

This patch is to move get_invalidate_req into gfxhub/mmhub level. It will avoid
mismatch of the different gfxhub/mmhub register offsets and fields in the same
gmc block.

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