]> Git Repo - linux.git/commitdiff
drm/amdgpu: clean the dummy soft_reset functions
authorSunil Khatri <[email protected]>
Thu, 17 Oct 2024 14:29:34 +0000 (19:59 +0530)
committerAlex Deucher <[email protected]>
Tue, 22 Oct 2024 21:50:39 +0000 (17:50 -0400)
Remove the dummy soft_reset functions for all
ip blocks.

Signed-off-by: Sunil Khatri <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
16 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
drivers/gpu/drm/amd/amdgpu/nv.c
drivers/gpu/drm/amd/amdgpu/si.c
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/amdgpu/soc21.c
drivers/gpu/drm/amd/amdgpu/soc24.c
drivers/gpu/drm/amd/amdgpu/vi.c
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c

index 1a9b7e8947d807010df62e48165a33a98866b286..8b7e056a735502af4f977eb95c682c2067d98f4d 100644 (file)
@@ -584,11 +584,6 @@ static bool acp_is_idle(void *handle)
        return true;
 }
 
-static int acp_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int acp_set_clockgating_state(void *handle,
                                     enum amd_clockgating_state state)
 {
@@ -617,7 +612,6 @@ static const struct amd_ip_funcs acp_ip_funcs = {
        .suspend = acp_suspend,
        .resume = acp_resume,
        .is_idle = acp_is_idle,
-       .soft_reset = acp_soft_reset,
        .set_clockgating_state = acp_set_clockgating_state,
        .set_powergating_state = acp_set_powergating_state,
        .dump_ip_state = NULL,
index 4832a179d8c36ade88b970967f63975d9fd01183..05ea7d9cb7d7fa65e6189b5934a783e6f3bc7db6 100644 (file)
@@ -128,11 +128,6 @@ static bool isp_is_idle(void *handle)
        return true;
 }
 
-static int isp_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int isp_set_clockgating_state(void *handle,
                                     enum amd_clockgating_state state)
 {
@@ -152,7 +147,6 @@ static const struct amd_ip_funcs isp_ip_funcs = {
        .hw_init = isp_hw_init,
        .hw_fini = isp_hw_fini,
        .is_idle = isp_is_idle,
-       .soft_reset = isp_soft_reset,
        .set_clockgating_state = isp_set_clockgating_state,
        .set_powergating_state = isp_set_powergating_state,
 };
index 1f2bc8116434cdf289e709c47f1fd636d85a4f4b..f9fc08952aa4502beee448b434436b94192a8bff 100644 (file)
@@ -632,11 +632,6 @@ static bool amdgpu_vkms_is_idle(void *handle)
        return true;
 }
 
-static int amdgpu_vkms_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int amdgpu_vkms_set_clockgating_state(void *handle,
                                          enum amd_clockgating_state state)
 {
@@ -660,7 +655,6 @@ static const struct amd_ip_funcs amdgpu_vkms_ip_funcs = {
        .suspend = amdgpu_vkms_suspend,
        .resume = amdgpu_vkms_resume,
        .is_idle = amdgpu_vkms_is_idle,
-       .soft_reset = amdgpu_vkms_soft_reset,
        .set_clockgating_state = amdgpu_vkms_set_clockgating_state,
        .set_powergating_state = amdgpu_vkms_set_powergating_state,
        .dump_ip_state = NULL,
index 6ac6d4dfa49f049540ddaf11e1cc0c4673fed167..5769055909bc8eea93b4176d2e8f5a88a7133000 100644 (file)
@@ -3186,11 +3186,6 @@ static int gfx_v6_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
        return -ETIMEDOUT;
 }
 
-static int gfx_v6_0_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static void gfx_v6_0_set_gfx_eop_interrupt_state(struct amdgpu_device *adev,
                                                 enum amdgpu_interrupt_state state)
 {
@@ -3449,7 +3444,6 @@ static const struct amd_ip_funcs gfx_v6_0_ip_funcs = {
        .resume = gfx_v6_0_resume,
        .is_idle = gfx_v6_0_is_idle,
        .wait_for_idle = gfx_v6_0_wait_for_idle,
-       .soft_reset = gfx_v6_0_soft_reset,
        .set_clockgating_state = gfx_v6_0_set_clockgating_state,
        .set_powergating_state = gfx_v6_0_set_powergating_state,
        .dump_ip_state = NULL,
index 5cf2002fcba80b953930979c65fc14fabf21ae76..3c9b7f88a6cdd982f728927fd16a1cb2d5566e74 100644 (file)
@@ -1085,11 +1085,6 @@ static int gmc_v10_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
        return 0;
 }
 
-static int gmc_v10_0_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int gmc_v10_0_set_clockgating_state(void *handle,
                                           enum amd_clockgating_state state)
 {
@@ -1151,7 +1146,6 @@ const struct amd_ip_funcs gmc_v10_0_ip_funcs = {
        .resume = gmc_v10_0_resume,
        .is_idle = gmc_v10_0_is_idle,
        .wait_for_idle = gmc_v10_0_wait_for_idle,
-       .soft_reset = gmc_v10_0_soft_reset,
        .set_clockgating_state = gmc_v10_0_set_clockgating_state,
        .set_powergating_state = gmc_v10_0_set_powergating_state,
        .get_clockgating_state = gmc_v10_0_get_clockgating_state,
index 4df4d73038f8202700be10279ef2a8e3088e61ba..6e7cf551fe16b9e7ad704e6ec1c470f6f42a1d71 100644 (file)
@@ -993,11 +993,6 @@ static int gmc_v11_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
        return 0;
 }
 
-static int gmc_v11_0_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int gmc_v11_0_set_clockgating_state(void *handle,
                                           enum amd_clockgating_state state)
 {
@@ -1038,7 +1033,6 @@ const struct amd_ip_funcs gmc_v11_0_ip_funcs = {
        .resume = gmc_v11_0_resume,
        .is_idle = gmc_v11_0_is_idle,
        .wait_for_idle = gmc_v11_0_wait_for_idle,
-       .soft_reset = gmc_v11_0_soft_reset,
        .set_clockgating_state = gmc_v11_0_set_clockgating_state,
        .set_powergating_state = gmc_v11_0_set_powergating_state,
        .get_clockgating_state = gmc_v11_0_get_clockgating_state,
index e33f9e9058cc8732a6e5cdb213804be26f7beb7b..d4a9a03e5fd0c6a943f635628895176f79fe5540 100644 (file)
@@ -977,11 +977,6 @@ static int gmc_v12_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
        return 0;
 }
 
-static int gmc_v12_0_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int gmc_v12_0_set_clockgating_state(void *handle,
                                           enum amd_clockgating_state state)
 {
@@ -1022,7 +1017,6 @@ const struct amd_ip_funcs gmc_v12_0_ip_funcs = {
        .resume = gmc_v12_0_resume,
        .is_idle = gmc_v12_0_is_idle,
        .wait_for_idle = gmc_v12_0_wait_for_idle,
-       .soft_reset = gmc_v12_0_soft_reset,
        .set_clockgating_state = gmc_v12_0_set_clockgating_state,
        .set_powergating_state = gmc_v12_0_set_powergating_state,
        .get_clockgating_state = gmc_v12_0_get_clockgating_state,
index 38f5a2cbc3fe6c26363c1bb5e9d47fddf635acd4..c16f724384cd67730ebbed3ca61acd3b884bbd39 100644 (file)
@@ -1039,11 +1039,6 @@ static bool nv_common_is_idle(void *handle)
        return true;
 }
 
-static int nv_common_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int nv_common_set_clockgating_state(void *handle,
                                           enum amd_clockgating_state state)
 {
@@ -1106,7 +1101,6 @@ static const struct amd_ip_funcs nv_common_ip_funcs = {
        .suspend = nv_common_suspend,
        .resume = nv_common_resume,
        .is_idle = nv_common_is_idle,
-       .soft_reset = nv_common_soft_reset,
        .set_clockgating_state = nv_common_set_clockgating_state,
        .set_powergating_state = nv_common_set_powergating_state,
        .get_clockgating_state = nv_common_get_clockgating_state,
index 36f17c87de859624af2a09ff3c6cc515c90fe771..adedbf4bff782df09d754f5244e3cc45f221a32e 100644 (file)
@@ -2649,11 +2649,6 @@ static bool si_common_is_idle(void *handle)
        return true;
 }
 
-static int si_common_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int si_common_set_clockgating_state(void *handle,
                                            enum amd_clockgating_state state)
 {
@@ -2674,7 +2669,6 @@ static const struct amd_ip_funcs si_common_ip_funcs = {
        .hw_fini = si_common_hw_fini,
        .resume = si_common_resume,
        .is_idle = si_common_is_idle,
-       .soft_reset = si_common_soft_reset,
        .set_clockgating_state = si_common_set_clockgating_state,
        .set_powergating_state = si_common_set_powergating_state,
        .dump_ip_state = NULL,
index d974c0b5a9090130e86843212e1c02b75d4c7c0c..19391cbc1474e0fbc49be77e750833ff1b507ec8 100644 (file)
@@ -1341,11 +1341,6 @@ static bool soc15_common_is_idle(void *handle)
        return true;
 }
 
-static int soc15_common_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static void soc15_update_drm_clock_gating(struct amdgpu_device *adev, bool enable)
 {
        uint32_t def, data;
@@ -1496,7 +1491,6 @@ static const struct amd_ip_funcs soc15_common_ip_funcs = {
        .suspend = soc15_common_suspend,
        .resume = soc15_common_resume,
        .is_idle = soc15_common_is_idle,
-       .soft_reset = soc15_common_soft_reset,
        .set_clockgating_state = soc15_common_set_clockgating_state,
        .set_powergating_state = soc15_common_set_powergating_state,
        .get_clockgating_state= soc15_common_get_clockgating_state,
index 78550a9655799bb1e990476e9cedb9e8796826bb..078f25b5f09bcd9c604b7e1b4c94d18920c4ac16 100644 (file)
@@ -927,11 +927,6 @@ static bool soc21_common_is_idle(void *handle)
        return true;
 }
 
-static int soc21_common_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int soc21_common_set_clockgating_state(void *handle,
                                           enum amd_clockgating_state state)
 {
@@ -995,7 +990,6 @@ static const struct amd_ip_funcs soc21_common_ip_funcs = {
        .suspend = soc21_common_suspend,
        .resume = soc21_common_resume,
        .is_idle = soc21_common_is_idle,
-       .soft_reset = soc21_common_soft_reset,
        .set_clockgating_state = soc21_common_set_clockgating_state,
        .set_powergating_state = soc21_common_set_powergating_state,
        .get_clockgating_state = soc21_common_get_clockgating_state,
index 216a45556cf4eefbce601f7ee688e9aede50575c..3af10ef4b79324a79f964b57e089e7583c481d97 100644 (file)
@@ -522,11 +522,6 @@ static bool soc24_common_is_idle(void *handle)
        return true;
 }
 
-static int soc24_common_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int soc24_common_set_clockgating_state(void *handle,
                                              enum amd_clockgating_state state)
 {
@@ -586,7 +581,6 @@ static const struct amd_ip_funcs soc24_common_ip_funcs = {
        .suspend = soc24_common_suspend,
        .resume = soc24_common_resume,
        .is_idle = soc24_common_is_idle,
-       .soft_reset = soc24_common_soft_reset,
        .set_clockgating_state = soc24_common_set_clockgating_state,
        .set_powergating_state = soc24_common_set_powergating_state,
        .get_clockgating_state = soc24_common_get_clockgating_state,
index a40c789dc3c4a8d1180da72dbf02be6982ae1132..607b48a2d5eb1fc07bdc7c457f1a48876318723c 100644 (file)
@@ -1741,11 +1741,6 @@ static bool vi_common_is_idle(void *handle)
        return true;
 }
 
-static int vi_common_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static void vi_update_bif_medium_grain_light_sleep(struct amdgpu_device *adev,
                                                   bool enable)
 {
@@ -2038,7 +2033,6 @@ static const struct amd_ip_funcs vi_common_ip_funcs = {
        .suspend = vi_common_suspend,
        .resume = vi_common_resume,
        .is_idle = vi_common_is_idle,
-       .soft_reset = vi_common_soft_reset,
        .set_clockgating_state = vi_common_set_clockgating_state,
        .set_powergating_state = vi_common_set_powergating_state,
        .get_clockgating_state = vi_common_get_clockgating_state,
index fbea169460f28124d039a4c1f7a397895545c4ba..785cb20e64b6ca6d5b16a79ce0ee5a100dd69f73 100644 (file)
@@ -3099,11 +3099,6 @@ static bool kv_dpm_is_idle(void *handle)
        return true;
 }
 
-static int kv_dpm_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int kv_dpm_set_interrupt_state(struct amdgpu_device *adev,
                                      struct amdgpu_irq_src *src,
                                      unsigned type,
@@ -3307,7 +3302,6 @@ static const struct amd_ip_funcs kv_dpm_ip_funcs = {
        .suspend = kv_dpm_suspend,
        .resume = kv_dpm_resume,
        .is_idle = kv_dpm_is_idle,
-       .soft_reset = kv_dpm_soft_reset,
        .set_clockgating_state = kv_dpm_set_clockgating_state,
        .set_powergating_state = kv_dpm_set_powergating_state,
        .dump_ip_state = NULL,
index a4908f0402f1ab8d6f1a3063f522f5af02e897e3..7b0ded50251a96e8d89adcfb3d9a712348dcad03 100644 (file)
@@ -7849,11 +7849,6 @@ static int si_dpm_wait_for_idle(struct amdgpu_ip_block *ip_block)
        return 0;
 }
 
-static int si_dpm_soft_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int si_dpm_set_clockgating_state(void *handle,
                                        enum amd_clockgating_state state)
 {
@@ -8049,7 +8044,6 @@ static const struct amd_ip_funcs si_dpm_ip_funcs = {
        .resume = si_dpm_resume,
        .is_idle = si_dpm_is_idle,
        .wait_for_idle = si_dpm_wait_for_idle,
-       .soft_reset = si_dpm_soft_reset,
        .set_clockgating_state = si_dpm_set_clockgating_state,
        .set_powergating_state = si_dpm_set_powergating_state,
        .dump_ip_state = NULL,
index 7eacf4dd1b603caf8e5e1415ebaf2135e1686381..5aadb6061c223d2e536bfd36ee0117e47c026df5 100644 (file)
@@ -244,11 +244,6 @@ static bool pp_is_idle(void *handle)
        return false;
 }
 
-static int pp_sw_reset(struct amdgpu_ip_block *ip_block)
-{
-       return 0;
-}
-
 static int pp_set_powergating_state(void *handle,
                                    enum amd_powergating_state state)
 {
@@ -290,7 +285,6 @@ static const struct amd_ip_funcs pp_ip_funcs = {
        .suspend = pp_suspend,
        .resume = pp_resume,
        .is_idle = pp_is_idle,
-       .soft_reset = pp_sw_reset,
        .set_clockgating_state = pp_set_clockgating_state,
        .set_powergating_state = pp_set_powergating_state,
        .dump_ip_state = NULL,
This page took 0.092948 seconds and 4 git commands to generate.