drm/amdgpu/umsch: add suspend and resume callback
Subsystems (2)
PATCH 1/1 drm/amdgpu/umsch: add suspend and resume callback
Add missing IP callbacks.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c +16 -0
@@ -844,6 +844,20 @@ static int umsch_mm_hw_fini(void *handle)return 0 ; } +static int umsch_mm_suspend (void *handle) +{ +struct amdgpu_device *adev = (struct amdgpu_device *)handle; + +return umsch_mm_hw_fini (adev); +} + +static int umsch_mm_resume (void *handle) +{ +struct amdgpu_device *adev = (struct amdgpu_device *)handle; + +return umsch_mm_hw_init (adev); +} +static const struct amd_ip_funcs umsch_mm_v4_0_ip_funcs = { .name ="umsch_mm_v4_0" , .early_init = umsch_mm_early_init,
@@ -852,6 +866,8 @@ static const struct amd_ip_funcs umsch_mm_v4_0_ip_funcs = { .sw_fini = umsch_mm_sw_fini, .hw_init = umsch_mm_hw_init, .hw_fini = umsch_mm_hw_fini, + .suspend = umsch_mm_suspend, + .resume = umsch_mm_resume, };const struct amdgpu_ip_block_version umsch_mm_v4_0_ip_block = {
Signature · 1 line
2.25.1
[Public]
________________________________
From: amd-gfx <[email protected]> on behalf of Lang Yu <[email protected]>
Sent: Friday, October 13, 2023 1:58 AM
To: [email protected] <[email protected]>
Cc: Gopalakrishnan, Veerabadhran (Veera) <[email protected]>; Yu, Lang <[email protected]>
Subject: [PATCH] drm/amdgpu/umsch: add suspend and resume callback
Add missing IP callbacks.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c +16 -0
@@ -844,6 +844,20 @@ static int umsch_mm_hw_fini(void *handle)return 0 ; } +static int umsch_mm_suspend (void *handle) +{ +struct amdgpu_device *adev = (struct amdgpu_device *)handle; + +return umsch_mm_hw_fini (adev); +} + +static int umsch_mm_resume (void *handle) +{ +struct amdgpu_device *adev = (struct amdgpu_device *)handle; + +return umsch_mm_hw_init (adev); +} +static const struct amd_ip_funcs umsch_mm_v4_0_ip_funcs = { .name ="umsch_mm_v4_0" , .early_init = umsch_mm_early_init,
@@ -852,6 +866,8 @@ static const struct amd_ip_funcs umsch_mm_v4_0_ip_funcs = { .sw_fini = umsch_mm_sw_fini, .hw_init = umsch_mm_hw_init, .hw_fini = umsch_mm_hw_fini, + .suspend = umsch_mm_suspend, + .resume = umsch_mm_resume, };const struct amdgpu_ip_block_version umsch_mm_v4_0_ip_block = {
--
2.25.1
Gopalakrishnan, Veerabadhran (Veera)
Reviewed-by Veerabadhran Gopalakrishnan [email protected] Acked-by Alex Deucher[Public]
-Veera
From: Deucher, Alexander <[email protected]>
Sent: Friday, October 13, 2023 7:04 PM
To: Yu, Lang <[email protected]>; [email protected]
Cc: Gopalakrishnan, Veerabadhran (Veera) <[email protected]>
Subject: Re: [PATCH] drm/amdgpu/umsch: add suspend and resume callback
[Public]
________________________________
From: amd-gfx <[email protected]<mailto:[email protected]>> on behalf of Lang Yu <[email protected]<mailto:[email protected]>>
Sent: Friday, October 13, 2023 1:58 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Gopalakrishnan, Veerabadhran (Veera) <[email protected]<mailto:[email protected]>>; Yu, Lang <[email protected]<mailto:[email protected]>>
Subject: [PATCH] drm/amdgpu/umsch: add suspend and resume callback
Add missing IP callbacks.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c +16 -0
@@ -844,6 +844,20 @@ static int umsch_mm_hw_fini(void *handle)return 0 ; } +static int umsch_mm_suspend (void *handle) +{ +struct amdgpu_device *adev = (struct amdgpu_device *)handle; + +return umsch_mm_hw_fini (adev); +} + +static int umsch_mm_resume (void *handle) +{ +struct amdgpu_device *adev = (struct amdgpu_device *)handle; + +return umsch_mm_hw_init (adev); +} +static const struct amd_ip_funcs umsch_mm_v4_0_ip_funcs = { .name ="umsch_mm_v4_0" , .early_init = umsch_mm_early_init,
@@ -852,6 +866,8 @@ static const struct amd_ip_funcs umsch_mm_v4_0_ip_funcs = { .sw_fini = umsch_mm_sw_fini, .hw_init = umsch_mm_hw_init, .hw_fini = umsch_mm_hw_fini, + .suspend = umsch_mm_suspend, + .resume = umsch_mm_resume, };const struct amdgpu_ip_block_version umsch_mm_v4_0_ip_block = {
--
2.25.1