diff options
author | Huang Rui <ray.huang@amd.com> | 2020-07-21 18:04:46 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-07-22 18:43:04 -0400 |
commit | caa9f483ca76693159499bd45e2e635c7e47bf46 (patch) | |
tree | 6bbb67a0610d8a661a4f3db25fb2497ebdfc0163 /drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | |
parent | 2577db91e82e9b2e68acb9f467ae29ce3aa89d52 (diff) | |
download | linux-caa9f483ca76693159499bd45e2e635c7e47bf46.tar.gz linux-caa9f483ca76693159499bd45e2e635c7e47bf46.tar.bz2 linux-caa9f483ca76693159499bd45e2e635c7e47bf46.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h index bbecd879744a..9d58c56f6cfc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h @@ -77,6 +77,7 @@ struct amdgpu_gmc_fault { struct amdgpu_vmhub_funcs { void (*print_l2_protection_fault_status)(struct amdgpu_device *adev, uint32_t status); + uint32_t (*get_invalidate_req)(unsigned int vmid, uint32_t flush_type); }; struct amdgpu_vmhub { |