diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-10-22 18:23:09 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-05 14:21:24 -0500 |
commit | e4312d459a2e572e093c758793bd5357d6bddfd1 (patch) | |
tree | c8b1415801d02acfba2caf90c4bff62b72930bf8 /drivers | |
parent | 3ba7b418f12b634b8920c979f5259013d40e38e2 (diff) |
drm/amdgpu/amdkfd: clean up mmhub and gfxhub includes
Use the appropriate mmhub and gfxhub headers rather than adding
them to the gmc9 header.
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h | 2 |
4 files changed, 6 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c index 40a9f348b37d..03b604c96d94 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | |||
@@ -46,7 +46,8 @@ | |||
46 | #include "v9_structs.h" | 46 | #include "v9_structs.h" |
47 | #include "soc15.h" | 47 | #include "soc15.h" |
48 | #include "soc15d.h" | 48 | #include "soc15d.h" |
49 | #include "gmc_v9_0.h" | 49 | #include "mmhub_v1_0.h" |
50 | #include "gfxhub_v1_0.h" | ||
50 | 51 | ||
51 | 52 | ||
52 | #define V9_PIPE_PER_MEC (4) | 53 | #define V9_PIPE_PER_MEC (4) |
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h index 206e29cad753..92d3a70cd9b1 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h +++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h | |||
@@ -30,5 +30,7 @@ void gfxhub_v1_0_set_fault_enable_default(struct amdgpu_device *adev, | |||
30 | bool value); | 30 | bool value); |
31 | void gfxhub_v1_0_init(struct amdgpu_device *adev); | 31 | void gfxhub_v1_0_init(struct amdgpu_device *adev); |
32 | u64 gfxhub_v1_0_get_mc_fb_offset(struct amdgpu_device *adev); | 32 | u64 gfxhub_v1_0_get_mc_fb_offset(struct amdgpu_device *adev); |
33 | void gfxhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, | ||
34 | uint64_t page_table_base); | ||
33 | 35 | ||
34 | #endif | 36 | #endif |
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h index 1fd178a65e66..b030ca5ea107 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h | |||
@@ -27,10 +27,4 @@ | |||
27 | extern const struct amd_ip_funcs gmc_v9_0_ip_funcs; | 27 | extern const struct amd_ip_funcs gmc_v9_0_ip_funcs; |
28 | extern const struct amdgpu_ip_block_version gmc_v9_0_ip_block; | 28 | extern const struct amdgpu_ip_block_version gmc_v9_0_ip_block; |
29 | 29 | ||
30 | /* amdgpu_amdkfd*.c */ | ||
31 | void gfxhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, | ||
32 | uint64_t page_table_base); | ||
33 | void mmhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, | ||
34 | uint64_t page_table_base); | ||
35 | |||
36 | #endif | 30 | #endif |
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h index bef3d0c0c117..0de0fdf98c00 100644 --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h | |||
@@ -34,5 +34,7 @@ int mmhub_v1_0_set_clockgating(struct amdgpu_device *adev, | |||
34 | void mmhub_v1_0_get_clockgating(struct amdgpu_device *adev, u32 *flags); | 34 | void mmhub_v1_0_get_clockgating(struct amdgpu_device *adev, u32 *flags); |
35 | void mmhub_v1_0_update_power_gating(struct amdgpu_device *adev, | 35 | void mmhub_v1_0_update_power_gating(struct amdgpu_device *adev, |
36 | bool enable); | 36 | bool enable); |
37 | void mmhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, | ||
38 | uint64_t page_table_base); | ||
37 | 39 | ||
38 | #endif | 40 | #endif |