summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c
diff options
context:
space:
mode:
authorKevin Wang <kevin1.wang@amd.com>2020-10-14 15:09:57 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-10-16 21:44:32 +0300
commit21470d97c9f8bb818c2bba71564637eb3c58e5d1 (patch)
treee9d6a1b05f88d7b6b538ea7a91b61b81f2807473 /drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c
parent92aeeafb544d7b75c38cb0677e691f72c8aa1d6a (diff)
downloadlinux-21470d97c9f8bb818c2bba71564637eb3c58e5d1.tar.xz
drm/amdgpu: remove gfxhub_v1_1_funcs set
remove duplicate gfxhub v1.1 function set. put function of gfxhub_v1_1_get_xgmi_info to gfxhub v1_0 function set. Signed-off-by: Kevin Wang <kevin1.wang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c
index 1e24b6d51e41..c0ab71df0d90 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c
@@ -21,7 +21,6 @@
*
*/
#include "amdgpu.h"
-#include "gfxhub_v1_0.h"
#include "gfxhub_v1_1.h"
#include "gc/gc_9_2_1_offset.h"
@@ -29,7 +28,7 @@
#include "soc15_common.h"
-static int gfxhub_v1_1_get_xgmi_info(struct amdgpu_device *adev)
+int gfxhub_v1_1_get_xgmi_info(struct amdgpu_device *adev)
{
u32 xgmi_lfb_cntl = RREG32_SOC15(GC, 0, mmMC_VM_XGMI_LFB_CNTL);
u32 max_region =
@@ -67,13 +66,3 @@ static int gfxhub_v1_1_get_xgmi_info(struct amdgpu_device *adev)
return 0;
}
-
-const struct amdgpu_gfxhub_funcs gfxhub_v1_1_funcs = {
- .get_mc_fb_offset = gfxhub_v1_0_get_mc_fb_offset,
- .setup_vm_pt_regs = gfxhub_v1_0_setup_vm_pt_regs,
- .gart_enable = gfxhub_v1_0_gart_enable,
- .gart_disable = gfxhub_v1_0_gart_disable,
- .set_fault_enable_default = gfxhub_v1_0_set_fault_enable_default,
- .init = gfxhub_v1_0_init,
- .get_xgmi_info = gfxhub_v1_1_get_xgmi_info,
-};