mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
drm/amdgpu: Remove is_idle (trivial cases)
The is_idle method on amd_ip_funcs is never called.
Remove the trivial cases where either:
a) It's just a return true function that can be deleted
together with the .is_init =
b) The function is called somewhere else, so we just remove
the assignment.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
639fd7eb74
commit
ecaca20be8
|
|
@ -588,11 +588,6 @@ static int acp_resume(struct amdgpu_ip_block *ip_block)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool acp_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static int acp_set_clockgating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_clockgating_state state)
|
||||
{
|
||||
|
|
@ -618,7 +613,6 @@ static const struct amd_ip_funcs acp_ip_funcs = {
|
|||
.hw_fini = acp_hw_fini,
|
||||
.suspend = acp_suspend,
|
||||
.resume = acp_resume,
|
||||
.is_idle = acp_is_idle,
|
||||
.set_clockgating_state = acp_set_clockgating_state,
|
||||
.set_powergating_state = acp_set_powergating_state,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -126,11 +126,6 @@ static int isp_early_init(struct amdgpu_ip_block *ip_block)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool isp_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static int isp_set_clockgating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_clockgating_state state)
|
||||
{
|
||||
|
|
@ -345,7 +340,6 @@ static const struct amd_ip_funcs isp_ip_funcs = {
|
|||
.early_init = isp_early_init,
|
||||
.hw_init = isp_hw_init,
|
||||
.hw_fini = isp_hw_fini,
|
||||
.is_idle = isp_is_idle,
|
||||
.suspend = isp_suspend,
|
||||
.resume = isp_resume,
|
||||
.set_clockgating_state = isp_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -508,11 +508,6 @@ static int amdgpu_vkms_resume(struct amdgpu_ip_block *ip_block)
|
|||
return drm_mode_config_helper_resume(adev_to_drm(ip_block->adev));
|
||||
}
|
||||
|
||||
static bool amdgpu_vkms_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static int amdgpu_vkms_set_clockgating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_clockgating_state state)
|
||||
{
|
||||
|
|
@ -533,7 +528,6 @@ static const struct amd_ip_funcs amdgpu_vkms_ip_funcs = {
|
|||
.hw_fini = amdgpu_vkms_hw_fini,
|
||||
.suspend = amdgpu_vkms_suspend,
|
||||
.resume = amdgpu_vkms_resume,
|
||||
.is_idle = amdgpu_vkms_is_idle,
|
||||
.set_clockgating_state = amdgpu_vkms_set_clockgating_state,
|
||||
.set_powergating_state = amdgpu_vkms_set_powergating_state,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2137,12 +2137,6 @@ static int cik_common_resume(struct amdgpu_ip_block *ip_block)
|
|||
return cik_common_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool cik_common_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int cik_common_soft_reset(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
|
|
@ -2168,7 +2162,6 @@ static const struct amd_ip_funcs cik_common_ip_funcs = {
|
|||
.hw_init = cik_common_hw_init,
|
||||
.hw_fini = cik_common_hw_fini,
|
||||
.resume = cik_common_resume,
|
||||
.is_idle = cik_common_is_idle,
|
||||
.soft_reset = cik_common_soft_reset,
|
||||
.set_clockgating_state = cik_common_set_clockgating_state,
|
||||
.set_powergating_state = cik_common_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -1225,7 +1225,6 @@ static const struct amd_ip_funcs cik_sdma_ip_funcs = {
|
|||
.hw_fini = cik_sdma_hw_fini,
|
||||
.suspend = cik_sdma_suspend,
|
||||
.resume = cik_sdma_resume,
|
||||
.is_idle = cik_sdma_is_idle,
|
||||
.wait_for_idle = cik_sdma_wait_for_idle,
|
||||
.soft_reset = cik_sdma_soft_reset,
|
||||
.set_clockgating_state = cik_sdma_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -2921,11 +2921,6 @@ static int dce_v10_0_resume(struct amdgpu_ip_block *ip_block)
|
|||
return amdgpu_display_resume_helper(adev);
|
||||
}
|
||||
|
||||
static bool dce_v10_0_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static void dce_v10_0_set_crtc_vblank_interrupt_state(struct amdgpu_device *adev,
|
||||
int crtc,
|
||||
enum amdgpu_interrupt_state state)
|
||||
|
|
@ -3267,7 +3262,6 @@ static const struct amd_ip_funcs dce_v10_0_ip_funcs = {
|
|||
.hw_fini = dce_v10_0_hw_fini,
|
||||
.suspend = dce_v10_0_suspend,
|
||||
.resume = dce_v10_0_resume,
|
||||
.is_idle = dce_v10_0_is_idle,
|
||||
.set_clockgating_state = dce_v10_0_set_clockgating_state,
|
||||
.set_powergating_state = dce_v10_0_set_powergating_state,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2867,11 +2867,6 @@ static int dce_v6_0_resume(struct amdgpu_ip_block *ip_block)
|
|||
return amdgpu_display_resume_helper(adev);
|
||||
}
|
||||
|
||||
static bool dce_v6_0_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static void dce_v6_0_set_crtc_vblank_interrupt_state(struct amdgpu_device *adev,
|
||||
int crtc,
|
||||
enum amdgpu_interrupt_state state)
|
||||
|
|
@ -3167,7 +3162,6 @@ static const struct amd_ip_funcs dce_v6_0_ip_funcs = {
|
|||
.hw_fini = dce_v6_0_hw_fini,
|
||||
.suspend = dce_v6_0_suspend,
|
||||
.resume = dce_v6_0_resume,
|
||||
.is_idle = dce_v6_0_is_idle,
|
||||
.set_clockgating_state = dce_v6_0_set_clockgating_state,
|
||||
.set_powergating_state = dce_v6_0_set_powergating_state,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2839,11 +2839,6 @@ static int dce_v8_0_resume(struct amdgpu_ip_block *ip_block)
|
|||
return amdgpu_display_resume_helper(adev);
|
||||
}
|
||||
|
||||
static bool dce_v8_0_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static void dce_v8_0_set_crtc_vblank_interrupt_state(struct amdgpu_device *adev,
|
||||
int crtc,
|
||||
enum amdgpu_interrupt_state state)
|
||||
|
|
@ -3184,7 +3179,6 @@ static const struct amd_ip_funcs dce_v8_0_ip_funcs = {
|
|||
.hw_fini = dce_v8_0_hw_fini,
|
||||
.suspend = dce_v8_0_suspend,
|
||||
.resume = dce_v8_0_resume,
|
||||
.is_idle = dce_v8_0_is_idle,
|
||||
.set_clockgating_state = dce_v8_0_set_clockgating_state,
|
||||
.set_powergating_state = dce_v8_0_set_powergating_state,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4186,7 +4186,6 @@ static const struct amd_ip_funcs gfx_v12_1_ip_funcs = {
|
|||
.hw_fini = gfx_v12_1_hw_fini,
|
||||
.suspend = gfx_v12_1_suspend,
|
||||
.resume = gfx_v12_1_resume,
|
||||
.is_idle = gfx_v12_1_is_idle,
|
||||
.wait_for_idle = gfx_v12_1_wait_for_idle,
|
||||
.set_clockgating_state = gfx_v12_1_set_clockgating_state,
|
||||
.set_powergating_state = gfx_v12_1_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -3665,7 +3665,6 @@ static const struct amd_ip_funcs gfx_v6_0_ip_funcs = {
|
|||
.hw_fini = gfx_v6_0_hw_fini,
|
||||
.suspend = gfx_v6_0_suspend,
|
||||
.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,
|
||||
|
|
|
|||
|
|
@ -6762,7 +6762,6 @@ static const struct amd_ip_funcs gfx_v8_0_ip_funcs = {
|
|||
.hw_fini = gfx_v8_0_hw_fini,
|
||||
.suspend = gfx_v8_0_suspend,
|
||||
.resume = gfx_v8_0_resume,
|
||||
.is_idle = gfx_v8_0_is_idle,
|
||||
.wait_for_idle = gfx_v8_0_wait_for_idle,
|
||||
.soft_reset = gfx_v8_0_soft_reset,
|
||||
.set_clockgating_state = gfx_v8_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -7528,7 +7528,6 @@ static const struct amd_ip_funcs gfx_v9_0_ip_funcs = {
|
|||
.hw_fini = gfx_v9_0_hw_fini,
|
||||
.suspend = gfx_v9_0_suspend,
|
||||
.resume = gfx_v9_0_resume,
|
||||
.is_idle = gfx_v9_0_is_idle,
|
||||
.wait_for_idle = gfx_v9_0_wait_for_idle,
|
||||
.soft_reset = gfx_v9_0_soft_reset,
|
||||
.set_clockgating_state = gfx_v9_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -3944,7 +3944,6 @@ static const struct amd_ip_funcs gfx_v9_4_3_ip_funcs = {
|
|||
.hw_fini = gfx_v9_4_3_hw_fini,
|
||||
.suspend = gfx_v9_4_3_suspend,
|
||||
.resume = gfx_v9_4_3_resume,
|
||||
.is_idle = gfx_v9_4_3_is_idle,
|
||||
.wait_for_idle = gfx_v9_4_3_wait_for_idle,
|
||||
.soft_reset = gfx_v9_4_3_soft_reset,
|
||||
.set_clockgating_state = gfx_v9_4_3_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -1043,12 +1043,6 @@ static int gmc_v10_0_resume(struct amdgpu_ip_block *ip_block)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool gmc_v10_0_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* MC is always ready in GMC v10.*/
|
||||
return true;
|
||||
}
|
||||
|
||||
static int gmc_v10_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* There is no need to wait for MC idle in GMC v10.*/
|
||||
|
|
@ -1114,7 +1108,6 @@ const struct amd_ip_funcs gmc_v10_0_ip_funcs = {
|
|||
.hw_fini = gmc_v10_0_hw_fini,
|
||||
.suspend = gmc_v10_0_suspend,
|
||||
.resume = gmc_v10_0_resume,
|
||||
.is_idle = gmc_v10_0_is_idle,
|
||||
.wait_for_idle = gmc_v10_0_wait_for_idle,
|
||||
.set_clockgating_state = gmc_v10_0_set_clockgating_state,
|
||||
.set_powergating_state = gmc_v10_0_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -1004,12 +1004,6 @@ static int gmc_v11_0_resume(struct amdgpu_ip_block *ip_block)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool gmc_v11_0_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* MC is always ready in GMC v11.*/
|
||||
return true;
|
||||
}
|
||||
|
||||
static int gmc_v11_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* There is no need to wait for MC idle in GMC v11.*/
|
||||
|
|
@ -1054,7 +1048,6 @@ const struct amd_ip_funcs gmc_v11_0_ip_funcs = {
|
|||
.hw_fini = gmc_v11_0_hw_fini,
|
||||
.suspend = gmc_v11_0_suspend,
|
||||
.resume = gmc_v11_0_resume,
|
||||
.is_idle = gmc_v11_0_is_idle,
|
||||
.wait_for_idle = gmc_v11_0_wait_for_idle,
|
||||
.set_clockgating_state = gmc_v11_0_set_clockgating_state,
|
||||
.set_powergating_state = gmc_v11_0_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -1105,12 +1105,6 @@ static int gmc_v12_0_resume(struct amdgpu_ip_block *ip_block)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool gmc_v12_0_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* MC is always ready in GMC v11.*/
|
||||
return true;
|
||||
}
|
||||
|
||||
static int gmc_v12_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* There is no need to wait for MC idle in GMC v11.*/
|
||||
|
|
@ -1159,7 +1153,6 @@ const struct amd_ip_funcs gmc_v12_0_ip_funcs = {
|
|||
.hw_fini = gmc_v12_0_hw_fini,
|
||||
.suspend = gmc_v12_0_suspend,
|
||||
.resume = gmc_v12_0_resume,
|
||||
.is_idle = gmc_v12_0_is_idle,
|
||||
.wait_for_idle = gmc_v12_0_wait_for_idle,
|
||||
.set_clockgating_state = gmc_v12_0_set_clockgating_state,
|
||||
.set_powergating_state = gmc_v12_0_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -1132,7 +1132,6 @@ static const struct amd_ip_funcs gmc_v6_0_ip_funcs = {
|
|||
.hw_fini = gmc_v6_0_hw_fini,
|
||||
.suspend = gmc_v6_0_suspend,
|
||||
.resume = gmc_v6_0_resume,
|
||||
.is_idle = gmc_v6_0_is_idle,
|
||||
.wait_for_idle = gmc_v6_0_wait_for_idle,
|
||||
.soft_reset = gmc_v6_0_soft_reset,
|
||||
.set_clockgating_state = gmc_v6_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -1346,7 +1346,6 @@ static const struct amd_ip_funcs gmc_v7_0_ip_funcs = {
|
|||
.hw_fini = gmc_v7_0_hw_fini,
|
||||
.suspend = gmc_v7_0_suspend,
|
||||
.resume = gmc_v7_0_resume,
|
||||
.is_idle = gmc_v7_0_is_idle,
|
||||
.wait_for_idle = gmc_v7_0_wait_for_idle,
|
||||
.soft_reset = gmc_v7_0_soft_reset,
|
||||
.set_clockgating_state = gmc_v7_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -2300,12 +2300,6 @@ static int gmc_v9_0_resume(struct amdgpu_ip_block *ip_block)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool gmc_v9_0_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* MC is always ready in GMC v9.*/
|
||||
return true;
|
||||
}
|
||||
|
||||
static int gmc_v9_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* There is no need to wait for MC idle in GMC v9.*/
|
||||
|
|
@ -2355,7 +2349,6 @@ const struct amd_ip_funcs gmc_v9_0_ip_funcs = {
|
|||
.hw_fini = gmc_v9_0_hw_fini,
|
||||
.suspend = gmc_v9_0_suspend,
|
||||
.resume = gmc_v9_0_resume,
|
||||
.is_idle = gmc_v9_0_is_idle,
|
||||
.wait_for_idle = gmc_v9_0_wait_for_idle,
|
||||
.soft_reset = gmc_v9_0_soft_reset,
|
||||
.set_clockgating_state = gmc_v9_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -655,12 +655,6 @@ static int ih_v6_0_resume(struct amdgpu_ip_block *ip_block)
|
|||
return ih_v6_0_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool ih_v6_0_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
return true;
|
||||
}
|
||||
|
||||
static int ih_v6_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
|
|
@ -788,7 +782,6 @@ static const struct amd_ip_funcs ih_v6_0_ip_funcs = {
|
|||
.hw_fini = ih_v6_0_hw_fini,
|
||||
.suspend = ih_v6_0_suspend,
|
||||
.resume = ih_v6_0_resume,
|
||||
.is_idle = ih_v6_0_is_idle,
|
||||
.wait_for_idle = ih_v6_0_wait_for_idle,
|
||||
.soft_reset = ih_v6_0_soft_reset,
|
||||
.set_clockgating_state = ih_v6_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -630,12 +630,6 @@ static int ih_v6_1_resume(struct amdgpu_ip_block *ip_block)
|
|||
return ih_v6_1_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool ih_v6_1_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
return true;
|
||||
}
|
||||
|
||||
static int ih_v6_1_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
|
|
@ -767,7 +761,6 @@ static const struct amd_ip_funcs ih_v6_1_ip_funcs = {
|
|||
.hw_fini = ih_v6_1_hw_fini,
|
||||
.suspend = ih_v6_1_suspend,
|
||||
.resume = ih_v6_1_resume,
|
||||
.is_idle = ih_v6_1_is_idle,
|
||||
.wait_for_idle = ih_v6_1_wait_for_idle,
|
||||
.soft_reset = ih_v6_1_soft_reset,
|
||||
.set_clockgating_state = ih_v6_1_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -670,12 +670,6 @@ static int ih_v7_0_resume(struct amdgpu_ip_block *ip_block)
|
|||
return ih_v7_0_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool ih_v7_0_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
return true;
|
||||
}
|
||||
|
||||
static int ih_v7_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
|
|
@ -844,7 +838,6 @@ static const struct amd_ip_funcs ih_v7_0_ip_funcs = {
|
|||
.hw_fini = ih_v7_0_hw_fini,
|
||||
.suspend = ih_v7_0_suspend,
|
||||
.resume = ih_v7_0_resume,
|
||||
.is_idle = ih_v7_0_is_idle,
|
||||
.wait_for_idle = ih_v7_0_wait_for_idle,
|
||||
.soft_reset = ih_v7_0_soft_reset,
|
||||
.set_clockgating_state = ih_v7_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -791,7 +791,6 @@ static const struct amd_ip_funcs jpeg_v2_0_ip_funcs = {
|
|||
.hw_fini = jpeg_v2_0_hw_fini,
|
||||
.suspend = jpeg_v2_0_suspend,
|
||||
.resume = jpeg_v2_0_resume,
|
||||
.is_idle = jpeg_v2_0_is_idle,
|
||||
.wait_for_idle = jpeg_v2_0_wait_for_idle,
|
||||
.set_clockgating_state = jpeg_v2_0_set_clockgating_state,
|
||||
.set_powergating_state = jpeg_v2_0_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -665,7 +665,6 @@ static const struct amd_ip_funcs jpeg_v2_5_ip_funcs = {
|
|||
.hw_fini = jpeg_v2_5_hw_fini,
|
||||
.suspend = jpeg_v2_5_suspend,
|
||||
.resume = jpeg_v2_5_resume,
|
||||
.is_idle = jpeg_v2_5_is_idle,
|
||||
.wait_for_idle = jpeg_v2_5_wait_for_idle,
|
||||
.set_clockgating_state = jpeg_v2_5_set_clockgating_state,
|
||||
.set_powergating_state = jpeg_v2_5_set_powergating_state,
|
||||
|
|
@ -682,7 +681,6 @@ static const struct amd_ip_funcs jpeg_v2_6_ip_funcs = {
|
|||
.hw_fini = jpeg_v2_5_hw_fini,
|
||||
.suspend = jpeg_v2_5_suspend,
|
||||
.resume = jpeg_v2_5_resume,
|
||||
.is_idle = jpeg_v2_5_is_idle,
|
||||
.wait_for_idle = jpeg_v2_5_wait_for_idle,
|
||||
.set_clockgating_state = jpeg_v2_5_set_clockgating_state,
|
||||
.set_powergating_state = jpeg_v2_5_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -564,7 +564,6 @@ static const struct amd_ip_funcs jpeg_v3_0_ip_funcs = {
|
|||
.hw_fini = jpeg_v3_0_hw_fini,
|
||||
.suspend = jpeg_v3_0_suspend,
|
||||
.resume = jpeg_v3_0_resume,
|
||||
.is_idle = jpeg_v3_0_is_idle,
|
||||
.wait_for_idle = jpeg_v3_0_wait_for_idle,
|
||||
.set_clockgating_state = jpeg_v3_0_set_clockgating_state,
|
||||
.set_powergating_state = jpeg_v3_0_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -748,7 +748,6 @@ static const struct amd_ip_funcs jpeg_v4_0_ip_funcs = {
|
|||
.hw_fini = jpeg_v4_0_hw_fini,
|
||||
.suspend = jpeg_v4_0_suspend,
|
||||
.resume = jpeg_v4_0_resume,
|
||||
.is_idle = jpeg_v4_0_is_idle,
|
||||
.wait_for_idle = jpeg_v4_0_wait_for_idle,
|
||||
.set_clockgating_state = jpeg_v4_0_set_clockgating_state,
|
||||
.set_powergating_state = jpeg_v4_0_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -1225,7 +1225,6 @@ static const struct amd_ip_funcs jpeg_v4_0_3_ip_funcs = {
|
|||
.hw_fini = jpeg_v4_0_3_hw_fini,
|
||||
.suspend = jpeg_v4_0_3_suspend,
|
||||
.resume = jpeg_v4_0_3_resume,
|
||||
.is_idle = jpeg_v4_0_3_is_idle,
|
||||
.wait_for_idle = jpeg_v4_0_3_wait_for_idle,
|
||||
.set_clockgating_state = jpeg_v4_0_3_set_clockgating_state,
|
||||
.set_powergating_state = jpeg_v4_0_3_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -806,7 +806,6 @@ static const struct amd_ip_funcs jpeg_v4_0_5_ip_funcs = {
|
|||
.hw_fini = jpeg_v4_0_5_hw_fini,
|
||||
.suspend = jpeg_v4_0_5_suspend,
|
||||
.resume = jpeg_v4_0_5_resume,
|
||||
.is_idle = jpeg_v4_0_5_is_idle,
|
||||
.wait_for_idle = jpeg_v4_0_5_wait_for_idle,
|
||||
.set_clockgating_state = jpeg_v4_0_5_set_clockgating_state,
|
||||
.set_powergating_state = jpeg_v4_0_5_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -682,7 +682,6 @@ static const struct amd_ip_funcs jpeg_v5_0_0_ip_funcs = {
|
|||
.hw_fini = jpeg_v5_0_0_hw_fini,
|
||||
.suspend = jpeg_v5_0_0_suspend,
|
||||
.resume = jpeg_v5_0_0_resume,
|
||||
.is_idle = jpeg_v5_0_0_is_idle,
|
||||
.wait_for_idle = jpeg_v5_0_0_wait_for_idle,
|
||||
.set_clockgating_state = jpeg_v5_0_0_set_clockgating_state,
|
||||
.set_powergating_state = jpeg_v5_0_0_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -886,7 +886,6 @@ static const struct amd_ip_funcs jpeg_v5_0_1_ip_funcs = {
|
|||
.hw_fini = jpeg_v5_0_1_hw_fini,
|
||||
.suspend = jpeg_v5_0_1_suspend,
|
||||
.resume = jpeg_v5_0_1_resume,
|
||||
.is_idle = jpeg_v5_0_1_is_idle,
|
||||
.wait_for_idle = jpeg_v5_0_1_wait_for_idle,
|
||||
.soft_reset = NULL,
|
||||
.set_clockgating_state = jpeg_v5_0_1_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -723,7 +723,6 @@ static const struct amd_ip_funcs jpeg_v5_0_2_ip_funcs = {
|
|||
.hw_fini = jpeg_v5_0_2_hw_fini,
|
||||
.suspend = jpeg_v5_0_2_suspend,
|
||||
.resume = jpeg_v5_0_2_resume,
|
||||
.is_idle = jpeg_v5_0_2_is_idle,
|
||||
.wait_for_idle = jpeg_v5_0_2_wait_for_idle,
|
||||
.soft_reset = NULL,
|
||||
.set_clockgating_state = jpeg_v5_0_2_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -671,7 +671,6 @@ static const struct amd_ip_funcs jpeg_v5_3_0_ip_funcs = {
|
|||
.hw_fini = jpeg_v5_3_0_hw_fini,
|
||||
.suspend = jpeg_v5_3_0_suspend,
|
||||
.resume = jpeg_v5_3_0_resume,
|
||||
.is_idle = jpeg_v5_3_0_is_idle,
|
||||
.wait_for_idle = jpeg_v5_3_0_wait_for_idle,
|
||||
.set_clockgating_state = jpeg_v5_3_0_set_clockgating_state,
|
||||
.set_powergating_state = jpeg_v5_3_0_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -625,12 +625,6 @@ static int navi10_ih_resume(struct amdgpu_ip_block *ip_block)
|
|||
return navi10_ih_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool navi10_ih_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
return true;
|
||||
}
|
||||
|
||||
static int navi10_ih_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
|
|
@ -699,7 +693,6 @@ static const struct amd_ip_funcs navi10_ih_ip_funcs = {
|
|||
.hw_fini = navi10_ih_hw_fini,
|
||||
.suspend = navi10_ih_suspend,
|
||||
.resume = navi10_ih_resume,
|
||||
.is_idle = navi10_ih_is_idle,
|
||||
.wait_for_idle = navi10_ih_wait_for_idle,
|
||||
.soft_reset = navi10_ih_soft_reset,
|
||||
.set_clockgating_state = navi10_ih_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -992,11 +992,6 @@ static int nv_common_resume(struct amdgpu_ip_block *ip_block)
|
|||
return nv_common_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool nv_common_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static int nv_common_set_clockgating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_clockgating_state state)
|
||||
{
|
||||
|
|
@ -1058,7 +1053,6 @@ static const struct amd_ip_funcs nv_common_ip_funcs = {
|
|||
.hw_fini = nv_common_hw_fini,
|
||||
.suspend = nv_common_suspend,
|
||||
.resume = nv_common_resume,
|
||||
.is_idle = nv_common_is_idle,
|
||||
.set_clockgating_state = nv_common_set_clockgating_state,
|
||||
.set_powergating_state = nv_common_set_powergating_state,
|
||||
.get_clockgating_state = nv_common_get_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -2647,11 +2647,6 @@ static int si_common_resume(struct amdgpu_ip_block *ip_block)
|
|||
return si_common_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool si_common_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static int si_common_set_clockgating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_clockgating_state state)
|
||||
{
|
||||
|
|
@ -2670,7 +2665,6 @@ static const struct amd_ip_funcs si_common_ip_funcs = {
|
|||
.hw_init = si_common_hw_init,
|
||||
.hw_fini = si_common_hw_fini,
|
||||
.resume = si_common_resume,
|
||||
.is_idle = si_common_is_idle,
|
||||
.set_clockgating_state = si_common_set_clockgating_state,
|
||||
.set_powergating_state = si_common_set_powergating_state,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -725,7 +725,6 @@ static const struct amd_ip_funcs si_dma_ip_funcs = {
|
|||
.hw_fini = si_dma_hw_fini,
|
||||
.suspend = si_dma_suspend,
|
||||
.resume = si_dma_resume,
|
||||
.is_idle = si_dma_is_idle,
|
||||
.wait_for_idle = si_dma_wait_for_idle,
|
||||
.soft_reset = si_dma_soft_reset,
|
||||
.set_clockgating_state = si_dma_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -297,7 +297,6 @@ static const struct amd_ip_funcs si_ih_ip_funcs = {
|
|||
.hw_fini = si_ih_hw_fini,
|
||||
.suspend = si_ih_suspend,
|
||||
.resume = si_ih_resume,
|
||||
.is_idle = si_ih_is_idle,
|
||||
.wait_for_idle = si_ih_wait_for_idle,
|
||||
.soft_reset = si_ih_soft_reset,
|
||||
.set_clockgating_state = si_ih_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -1324,11 +1324,6 @@ static int soc15_common_resume(struct amdgpu_ip_block *ip_block)
|
|||
return soc15_common_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool soc15_common_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static void soc15_update_drm_clock_gating(struct amdgpu_device *adev, bool enable)
|
||||
{
|
||||
uint32_t def, data;
|
||||
|
|
@ -1480,7 +1475,6 @@ static const struct amd_ip_funcs soc15_common_ip_funcs = {
|
|||
.hw_fini = soc15_common_hw_fini,
|
||||
.suspend = soc15_common_suspend,
|
||||
.resume = soc15_common_resume,
|
||||
.is_idle = soc15_common_is_idle,
|
||||
.set_clockgating_state = soc15_common_set_clockgating_state,
|
||||
.set_powergating_state = soc15_common_set_powergating_state,
|
||||
.get_clockgating_state= soc15_common_get_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -1042,11 +1042,6 @@ static int soc21_common_resume(struct amdgpu_ip_block *ip_block)
|
|||
return soc21_common_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool soc21_common_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static int soc21_common_set_clockgating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_clockgating_state state)
|
||||
{
|
||||
|
|
@ -1111,7 +1106,6 @@ static const struct amd_ip_funcs soc21_common_ip_funcs = {
|
|||
.hw_fini = soc21_common_hw_fini,
|
||||
.suspend = soc21_common_suspend,
|
||||
.resume = soc21_common_resume,
|
||||
.is_idle = soc21_common_is_idle,
|
||||
.set_clockgating_state = soc21_common_set_clockgating_state,
|
||||
.set_powergating_state = soc21_common_set_powergating_state,
|
||||
.get_clockgating_state = soc21_common_get_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -519,11 +519,6 @@ static int soc24_common_resume(struct amdgpu_ip_block *ip_block)
|
|||
return soc24_common_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool soc24_common_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static int soc24_common_set_clockgating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_clockgating_state state)
|
||||
{
|
||||
|
|
@ -582,7 +577,6 @@ static const struct amd_ip_funcs soc24_common_ip_funcs = {
|
|||
.hw_fini = soc24_common_hw_fini,
|
||||
.suspend = soc24_common_suspend,
|
||||
.resume = soc24_common_resume,
|
||||
.is_idle = soc24_common_is_idle,
|
||||
.set_clockgating_state = soc24_common_set_clockgating_state,
|
||||
.set_powergating_state = soc24_common_set_powergating_state,
|
||||
.get_clockgating_state = soc24_common_get_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -355,11 +355,6 @@ static int soc_v1_0_common_resume(struct amdgpu_ip_block *ip_block)
|
|||
return soc_v1_0_common_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool soc_v1_0_common_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static int soc_v1_0_common_set_clockgating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_clockgating_state state)
|
||||
{
|
||||
|
|
@ -387,7 +382,6 @@ static const struct amd_ip_funcs soc_v1_0_common_ip_funcs = {
|
|||
.hw_fini = soc_v1_0_common_hw_fini,
|
||||
.suspend = soc_v1_0_common_suspend,
|
||||
.resume = soc_v1_0_common_resume,
|
||||
.is_idle = soc_v1_0_common_is_idle,
|
||||
.set_clockgating_state = soc_v1_0_common_set_clockgating_state,
|
||||
.set_powergating_state = soc_v1_0_common_set_powergating_state,
|
||||
.get_clockgating_state = soc_v1_0_common_get_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -1496,7 +1496,6 @@ static const struct amd_ip_funcs uvd_v6_0_ip_funcs = {
|
|||
.prepare_suspend = uvd_v6_0_prepare_suspend,
|
||||
.suspend = uvd_v6_0_suspend,
|
||||
.resume = uvd_v6_0_resume,
|
||||
.is_idle = uvd_v6_0_is_idle,
|
||||
.wait_for_idle = uvd_v6_0_wait_for_idle,
|
||||
.soft_reset = uvd_v6_0_soft_reset,
|
||||
.set_clockgating_state = uvd_v6_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -796,7 +796,6 @@ static const struct amd_ip_funcs vce_v1_0_ip_funcs = {
|
|||
.hw_fini = vce_v1_0_hw_fini,
|
||||
.suspend = vce_v1_0_suspend,
|
||||
.resume = vce_v1_0_resume,
|
||||
.is_idle = vce_v1_0_is_idle,
|
||||
.wait_for_idle = vce_v1_0_wait_for_idle,
|
||||
.set_clockgating_state = vce_v1_0_set_clockgating_state,
|
||||
.set_powergating_state = vce_v1_0_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -633,7 +633,6 @@ static const struct amd_ip_funcs vce_v2_0_ip_funcs = {
|
|||
.hw_fini = vce_v2_0_hw_fini,
|
||||
.suspend = vce_v2_0_suspend,
|
||||
.resume = vce_v2_0_resume,
|
||||
.is_idle = vce_v2_0_is_idle,
|
||||
.wait_for_idle = vce_v2_0_wait_for_idle,
|
||||
.soft_reset = vce_v2_0_soft_reset,
|
||||
.set_clockgating_state = vce_v2_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -857,7 +857,6 @@ static const struct amd_ip_funcs vce_v3_0_ip_funcs = {
|
|||
.hw_fini = vce_v3_0_hw_fini,
|
||||
.suspend = vce_v3_0_suspend,
|
||||
.resume = vce_v3_0_resume,
|
||||
.is_idle = vce_v3_0_is_idle,
|
||||
.wait_for_idle = vce_v3_0_wait_for_idle,
|
||||
.soft_reset = vce_v3_0_soft_reset,
|
||||
.set_clockgating_state = vce_v3_0_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -2034,7 +2034,6 @@ static const struct amd_ip_funcs vcn_v1_0_ip_funcs = {
|
|||
.hw_fini = vcn_v1_0_hw_fini,
|
||||
.suspend = vcn_v1_0_suspend,
|
||||
.resume = vcn_v1_0_resume,
|
||||
.is_idle = vcn_v1_0_is_idle,
|
||||
.wait_for_idle = vcn_v1_0_wait_for_idle,
|
||||
.set_clockgating_state = vcn_v1_0_set_clockgating_state,
|
||||
.set_powergating_state = vcn_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -2102,7 +2102,6 @@ static const struct amd_ip_funcs vcn_v2_0_ip_funcs = {
|
|||
.hw_fini = vcn_v2_0_hw_fini,
|
||||
.suspend = vcn_v2_0_suspend,
|
||||
.resume = vcn_v2_0_resume,
|
||||
.is_idle = vcn_v2_0_is_idle,
|
||||
.wait_for_idle = vcn_v2_0_wait_for_idle,
|
||||
.set_clockgating_state = vcn_v2_0_set_clockgating_state,
|
||||
.set_powergating_state = vcn_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -2110,7 +2110,6 @@ static const struct amd_ip_funcs vcn_v2_5_ip_funcs = {
|
|||
.hw_fini = vcn_v2_5_hw_fini,
|
||||
.suspend = vcn_v2_5_suspend,
|
||||
.resume = vcn_v2_5_resume,
|
||||
.is_idle = vcn_v2_5_is_idle,
|
||||
.wait_for_idle = vcn_v2_5_wait_for_idle,
|
||||
.set_clockgating_state = vcn_v2_5_set_clockgating_state,
|
||||
.set_powergating_state = vcn_set_powergating_state,
|
||||
|
|
@ -2127,7 +2126,6 @@ static const struct amd_ip_funcs vcn_v2_6_ip_funcs = {
|
|||
.hw_fini = vcn_v2_5_hw_fini,
|
||||
.suspend = vcn_v2_5_suspend,
|
||||
.resume = vcn_v2_5_resume,
|
||||
.is_idle = vcn_v2_5_is_idle,
|
||||
.wait_for_idle = vcn_v2_5_wait_for_idle,
|
||||
.set_clockgating_state = vcn_v2_5_set_clockgating_state,
|
||||
.set_powergating_state = vcn_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -555,12 +555,6 @@ static int vega10_ih_resume(struct amdgpu_ip_block *ip_block)
|
|||
return vega10_ih_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool vega10_ih_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
return true;
|
||||
}
|
||||
|
||||
static int vega10_ih_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
|
|
@ -630,7 +624,6 @@ const struct amd_ip_funcs vega10_ih_ip_funcs = {
|
|||
.hw_fini = vega10_ih_hw_fini,
|
||||
.suspend = vega10_ih_suspend,
|
||||
.resume = vega10_ih_resume,
|
||||
.is_idle = vega10_ih_is_idle,
|
||||
.wait_for_idle = vega10_ih_wait_for_idle,
|
||||
.soft_reset = vega10_ih_soft_reset,
|
||||
.set_clockgating_state = vega10_ih_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -655,12 +655,6 @@ static int vega20_ih_resume(struct amdgpu_ip_block *ip_block)
|
|||
return vega20_ih_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool vega20_ih_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
return true;
|
||||
}
|
||||
|
||||
static int vega20_ih_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* todo */
|
||||
|
|
@ -727,7 +721,6 @@ const struct amd_ip_funcs vega20_ih_ip_funcs = {
|
|||
.hw_fini = vega20_ih_hw_fini,
|
||||
.suspend = vega20_ih_suspend,
|
||||
.resume = vega20_ih_resume,
|
||||
.is_idle = vega20_ih_is_idle,
|
||||
.wait_for_idle = vega20_ih_wait_for_idle,
|
||||
.soft_reset = vega20_ih_soft_reset,
|
||||
.set_clockgating_state = vega20_ih_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -1729,11 +1729,6 @@ static int vi_common_resume(struct amdgpu_ip_block *ip_block)
|
|||
return vi_common_hw_init(ip_block);
|
||||
}
|
||||
|
||||
static bool vi_common_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static void vi_update_bif_medium_grain_light_sleep(struct amdgpu_device *adev,
|
||||
bool enable)
|
||||
{
|
||||
|
|
@ -2025,7 +2020,6 @@ static const struct amd_ip_funcs vi_common_ip_funcs = {
|
|||
.hw_fini = vi_common_hw_fini,
|
||||
.suspend = vi_common_suspend,
|
||||
.resume = vi_common_resume,
|
||||
.is_idle = vi_common_is_idle,
|
||||
.set_clockgating_state = vi_common_set_clockgating_state,
|
||||
.set_powergating_state = vi_common_set_powergating_state,
|
||||
.get_clockgating_state = vi_common_get_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -224,13 +224,6 @@ STATIC_IFN_KUNIT int dm_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtc
|
|||
}
|
||||
EXPORT_IF_KUNIT(dm_crtc_get_scanoutpos);
|
||||
|
||||
STATIC_IFN_KUNIT bool dm_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* XXX todo */
|
||||
return true;
|
||||
}
|
||||
EXPORT_IF_KUNIT(dm_is_idle);
|
||||
|
||||
STATIC_IFN_KUNIT int dm_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* XXX todo */
|
||||
|
|
@ -2085,7 +2078,6 @@ static const struct amd_ip_funcs amdgpu_dm_funcs = {
|
|||
.hw_fini = dm_hw_fini,
|
||||
.suspend = dm_suspend,
|
||||
.resume = dm_resume,
|
||||
.is_idle = dm_is_idle,
|
||||
.wait_for_idle = dm_wait_for_idle,
|
||||
.soft_reset = dm_soft_reset,
|
||||
.set_clockgating_state = dm_set_clockgating_state,
|
||||
|
|
|
|||
|
|
@ -1157,7 +1157,6 @@ struct __drm_planes_state *amdgpu_dm_get_next_zpos(struct drm_atomic_commit *sta
|
|||
|
||||
#if IS_ENABLED(CONFIG_DRM_AMD_DC_KUNIT_TEST)
|
||||
struct amdgpu_ip_block;
|
||||
bool dm_is_idle(struct amdgpu_ip_block *ip_block);
|
||||
int dm_wait_for_idle(struct amdgpu_ip_block *ip_block);
|
||||
int dm_soft_reset(struct amdgpu_ip_block *ip_block);
|
||||
int dm_set_clockgating_state(struct amdgpu_ip_block *ip_block,
|
||||
|
|
|
|||
|
|
@ -3108,11 +3108,6 @@ static int kv_dpm_resume(struct amdgpu_ip_block *ip_block)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static bool kv_dpm_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static int kv_dpm_set_interrupt_state(struct amdgpu_device *adev,
|
||||
struct amdgpu_irq_src *src,
|
||||
unsigned type,
|
||||
|
|
@ -3317,7 +3312,6 @@ static const struct amd_ip_funcs kv_dpm_ip_funcs = {
|
|||
.hw_fini = kv_dpm_hw_fini,
|
||||
.suspend = kv_dpm_suspend,
|
||||
.resume = kv_dpm_resume,
|
||||
.is_idle = kv_dpm_is_idle,
|
||||
.set_clockgating_state = kv_dpm_set_clockgating_state,
|
||||
.set_powergating_state = kv_dpm_set_powergating_state,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7928,12 +7928,6 @@ static int si_dpm_resume(struct amdgpu_ip_block *ip_block)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static bool si_dpm_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* XXX */
|
||||
return true;
|
||||
}
|
||||
|
||||
static int si_dpm_wait_for_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
/* XXX */
|
||||
|
|
@ -8134,7 +8128,6 @@ static const struct amd_ip_funcs si_dpm_ip_funcs = {
|
|||
.hw_fini = si_dpm_hw_fini,
|
||||
.suspend = si_dpm_suspend,
|
||||
.resume = si_dpm_resume,
|
||||
.is_idle = si_dpm_is_idle,
|
||||
.wait_for_idle = si_dpm_wait_for_idle,
|
||||
.set_clockgating_state = si_dpm_set_clockgating_state,
|
||||
.set_powergating_state = si_dpm_set_powergating_state,
|
||||
|
|
|
|||
|
|
@ -241,11 +241,6 @@ static void pp_late_fini(struct amdgpu_ip_block *ip_block)
|
|||
}
|
||||
|
||||
|
||||
static bool pp_is_idle(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static int pp_set_powergating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_powergating_state state)
|
||||
{
|
||||
|
|
@ -286,7 +281,6 @@ static const struct amd_ip_funcs pp_ip_funcs = {
|
|||
.late_fini = pp_late_fini,
|
||||
.suspend = pp_suspend,
|
||||
.resume = pp_resume,
|
||||
.is_idle = pp_is_idle,
|
||||
.set_clockgating_state = pp_set_clockgating_state,
|
||||
.set_powergating_state = pp_set_powergating_state,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2811,7 +2811,6 @@ const struct amd_ip_funcs smu_ip_funcs = {
|
|||
.late_fini = smu_late_fini,
|
||||
.suspend = smu_suspend,
|
||||
.resume = smu_resume,
|
||||
.is_idle = NULL,
|
||||
.wait_for_idle = NULL,
|
||||
.soft_reset = NULL,
|
||||
.set_clockgating_state = smu_set_clockgating_state,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user