drm/amdgpu:fix typo
Subsystems (2)
PATCH 1/21 drm/amdgpu:fix typo
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -2
@@ -2447,7 +2447,7 @@ int amdgpu_gpu_reset(struct amdgpu_device *adev)if (fence) { r =fence_wait (fence, false);if (r) { -WARN (r,"recovery from shadow isn't comleted\n" ); +WARN (r,"recovery from shadow isn't completed\n" );break ; } }
@@ -2459,7 +2459,7 @@ int amdgpu_gpu_reset(struct amdgpu_device *adev)if (fence) { r =fence_wait (fence, false);if (r) -WARN (r,"recovery from shadow isn't comleted\n" ); +WARN (r,"recovery from shadow isn't completed\n" ); }fence_put (fence); }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1486203702-1116-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org
PATCH 2/21 drm/amdgpu:fix golden init for sriov
although only vi supports SRIOV now,but we shouldn't make code has such assumption.
--- drivers/gpu/drm/amd/amdgpu/vi.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/vi.c +4 -7
@@ -274,12 +274,6 @@ static void vi_init_golden_registers(struct amdgpu_device *adev)/* Some of the registers might be dependent on GRBM_GFX_INDEX */ mutex_lock (&adev->grbm_idx_mutex); -if (amdgpu_sriov_vf (adev)) { -xgpu_vi_init_golden_registers (adev); -mutex_unlock (&adev->grbm_idx_mutex); -return ; - } -switch (adev->asic_type) {case CHIP_TOPAZ : amdgpu_program_register_sequence(adev,
@@ -292,7 +286,10 @@ static void vi_init_golden_registers(struct amdgpu_device *adev) (const u32)ARRAY_SIZE(fiji_mgcg_cgcg_init));break ;case CHIP_TONGA : -amdgpu_program_register_sequence (adev, +if (amdgpu_sriov_vf (adev)) +xgpu_vi_init_golden_registers (adev); +else +amdgpu_program_register_sequence (adev, tonga_mgcg_cgcg_init, (const u32 )ARRAY_SIZE (tonga_mgcg_cgcg_init));break ;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1486203702-1116-2-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org
RE: [PATCH 02/21] drm/amdgpu:fix golden init for sriov
Does FIJI need the golden init?
Thanks!
Xiangliang Yu
Quoted 54 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Monk Liu
Sent: Saturday, February 04, 2017 6:22 PM
To: [email protected]
Cc: Liu, Monk <[email protected]>
Subject: [PATCH 02/21] drm/amdgpu:fix golden init for sriovalthough only vi supports SRIOV now,but we shouldn't make code has such assumption.
Change-Id Ie73c185dc2e7f64756253045b32cabe70d618d19Signed-off-by Monk Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/vi.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdgpu/vi.cindex 89b0dfe..7810030 100644drivers/gpu/drm/amd/amdgpu/vi.c +0
-6@@ -274,12 +274,6 @@ static void vi_init_golden_registers(struct amdgpu_device *adev) /* Some of the registers might be dependent on GRBM_GFX_INDEX */ mutex_lock(&adev->grbm_idx_mutex); -if (amdgpu_sriov_vf (adev)) { -xgpu_vi_init_golden_registers (adev); -mutex_unlock (&adev->grbm_idx_mutex); -return ; - } -switch (adev->asic_type) {drivers/gpu/drm/amd/amdgpu/vi.c +4
-1case CHIP_TOPAZ : amdgpu_program_register_sequence(adev,@@ -292,7 +286,10 @@ static void vi_init_golden_registers(struct amdgpu_device *adev) (const u32)ARRAY_SIZE(fiji_mgcg_cgcg_init));break ;case CHIP_TONGA : - amdgpu_program_register_sequence(adev, +if (amdgpu_sriov_vf (adev)) +xgpu_vi_init_golden_registers (adev); +else + amdgpu_program_register_sequence(adev, tonga_mgcg_cgcg_init,(const
u32)ARRAY_SIZE(tonga_mgcg_cgcg_init));
break;
--
2.7.4
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): CY4PR12MB1701CFCB8B21A55E220404F9EB400-rpdhrqHFk05QaJCA3gGb3wdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
答复: [PATCH 02/21] drm/amdgpu:fix golden init for sriov
FIJI is not supported in current stack
________________________________
发件人: Yu, Xiangliang
发送时间: 2017年2月6日 10:35:34
收件人: Liu, Monk; [email protected]
抄送: Liu, Monk
主题: RE: [PATCH 02/21] drm/amdgpu:fix golden init for sriov
Does FIJI need the golden init?
Thanks!
Xiangliang Yu
Quoted 51 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Monk Liu
Sent: Saturday, February 04, 2017 6:22 PM
To: [email protected]
Cc: Liu, Monk <[email protected]>
Subject: [PATCH 02/21] drm/amdgpu:fix golden init for sriovalthough only vi supports SRIOV now,but we shouldn't make code has such assumption.
Change-Id Ie73c185dc2e7f64756253045b32cabe70d618d19Signed-off-by Monk Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/vi.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdgpu/vi.cindex 89b0dfe..7810030 100644drivers/gpu/drm/amd/amdgpu/vi.c +0
-6@@ -274,12 +274,6 @@ static void vi_init_golden_registers(struct amdgpu_device *adev) /* Some of the registers might be dependent on GRBM_GFX_INDEX */ mutex_lock(&adev->grbm_idx_mutex); -if (amdgpu_sriov_vf (adev)) { -xgpu_vi_init_golden_registers (adev); -mutex_unlock (&adev->grbm_idx_mutex); -return ; - } -switch (adev->asic_type) {case
CHIP_TOPAZ:
amdgpu_program_register_sequence(adev,drivers/gpu/drm/amd/amdgpu/vi.c +4
-1@@ -292,7 +286,10 @@ static void vi_init_golden_registers(struct amdgpu_device *adev) (const u32)ARRAY_SIZE(fiji_mgcg_cgcg_init));break ;case CHIP_TONGA : - amdgpu_program_register_sequence(adev, +if (amdgpu_sriov_vf (adev)) +xgpu_vi_init_golden_registers (adev); +else + amdgpu_program_register_sequence(adev, tonga_mgcg_cgcg_init,(const
u32)ARRAY_SIZE(tonga_mgcg_cgcg_init)); break;
Quoted 7 lines
--
2.7.4_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): DM5PR12MB1610CA0FD4ACDDE8F059173884400-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
答复: [PATCH 02/21] drm/amdgpu:fix golden init for sriov
this patch is not needed, xgpu_vi_init_golden_registers(adev) will further process each VI asic accordingly.
________________________________
发件人: amd-gfx <[email protected]> 代表 Liu, Monk <[email protected]> 发送时间: 2017年2月6日 10:37:55
收件人: Yu, Xiangliang; [email protected]
主题: 答复: [PATCH 02/21] drm/amdgpu:fix golden init for sriov
FIJI is not supported in current stack
________________________________
发件人: Yu, Xiangliang
发送时间: 2017年2月6日 10:35:34
收件人: Liu, Monk; [email protected]
抄送: Liu, Monk
主题: RE: [PATCH 02/21] drm/amdgpu:fix golden init for sriov
Does FIJI need the golden init?
Thanks!
Xiangliang Yu
Quoted 51 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Monk Liu
Sent: Saturday, February 04, 2017 6:22 PM
To: [email protected]
Cc: Liu, Monk <[email protected]>
Subject: [PATCH 02/21] drm/amdgpu:fix golden init for sriovalthough only vi supports SRIOV now,but we shouldn't make code has such assumption.
Change-Id Ie73c185dc2e7f64756253045b32cabe70d618d19Signed-off-by Monk Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/vi.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdgpu/vi.cindex 89b0dfe..7810030 100644drivers/gpu/drm/amd/amdgpu/vi.c +0
-6@@ -274,12 +274,6 @@ static void vi_init_golden_registers(struct amdgpu_device *adev) /* Some of the registers might be dependent on GRBM_GFX_INDEX */ mutex_lock(&adev->grbm_idx_mutex); -if (amdgpu_sriov_vf (adev)) { -xgpu_vi_init_golden_registers (adev); -mutex_unlock (&adev->grbm_idx_mutex); -return ; - } -switch (adev->asic_type) {case
CHIP_TOPAZ:
amdgpu_program_register_sequence(adev,drivers/gpu/drm/amd/amdgpu/vi.c +4
-1@@ -292,7 +286,10 @@ static void vi_init_golden_registers(struct amdgpu_device *adev) (const u32)ARRAY_SIZE(fiji_mgcg_cgcg_init));break ;case CHIP_TONGA : - amdgpu_program_register_sequence(adev, +if (amdgpu_sriov_vf (adev)) +xgpu_vi_init_golden_registers (adev); +else + amdgpu_program_register_sequence(adev, tonga_mgcg_cgcg_init,(const
u32)ARRAY_SIZE(tonga_mgcg_cgcg_init)); break;
Quoted 7 lines
--
2.7.4_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/21 drm/amdgpu:fix scheduler hw reset&recovery
In reply to a message not in the archive--- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c +12 -0
@@ -384,6 +384,13 @@ void amd_sched_hw_job_reset(struct amd_gpu_scheduler *sched)struct amd_sched_job *s_job;spin_lock (&sched->job_list_lock); + s_job =list_first_entry_or_null (&sched->ring_mirror_list, + struct amd_sched_job, node); +if (!s_job) { +spin_unlock (&sched->job_list_lock); +return ; + } +list_for_each_entry_reverse (s_job, &sched->ring_mirror_list, node) {if (fence_remove_callback (s_job->s_fence->parent, &s_job->s_fence->cb)) {fence_put (s_job->s_fence->parent);
@@ -405,6 +412,11 @@ void amd_sched_job_recovery(struct amd_gpu_scheduler *sched)if (s_job && sched->timeout !=MAX_SCHEDULE_TIMEOUT )schedule_delayed_work (&s_job->work_tdr, sched->timeout); +if (!s_job) { +spin_unlock (&sched->job_list_lock); +return ; + } +list_for_each_entry_safe (s_job, tmp, &sched->ring_mirror_list, node) {struct amd_sched_fence *s_fence = s_job->s_fence;struct fence *fence;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1486203702-1116-3-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org
RE: [PATCH 03/21] drm/amdgpu:fix scheduler hw reset&recovery
I'm curious what problem this patch fix? Any crash?
My impression list_for will check if the list is empty, am I wrong?
Regards,
David Zhou
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Monk Liu
Sent: Saturday, February 04, 2017 6:22 PM
To: [email protected]
Cc: Liu, Monk <[email protected]>
Subject: [PATCH 03/21] drm/amdgpu:fix scheduler hw reset&recovery
--- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c +12 -0
@@ -384,6 +384,13 @@ void amd_sched_hw_job_reset(struct amd_gpu_scheduler *sched)struct amd_sched_job *s_job;spin_lock (&sched->job_list_lock); + s_job =list_first_entry_or_null (&sched->ring_mirror_list, + struct amd_sched_job, node); +if (!s_job) { +spin_unlock (&sched->job_list_lock); +return ; + } +list_for_each_entry_reverse (s_job, &sched->ring_mirror_list, node) {if (fence_remove_callback (s_job->s_fence->parent, &s_job->s_fence->cb)) {fence_put (s_job->s_fence->parent);
@@ -405,6 +412,11 @@ void amd_sched_job_recovery(struct amd_gpu_scheduler *sched)if (s_job && sched->timeout !=MAX_SCHEDULE_TIMEOUT )schedule_delayed_work (&s_job->work_tdr, sched->timeout); +if (!s_job) { +spin_unlock (&sched->job_list_lock); +return ; + } +list_for_each_entry_safe (s_job, tmp, &sched->ring_mirror_list, node) {struct amd_sched_fence *s_fence = s_job->s_fence;struct fence *fence;
Signature · 10 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): MWHPR1201MB02068DCB820D27AFD4F9FEB1B4400-3iK1xFAIwjrUF/YbdlDdgWrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/[email protected]
Re: [PATCH 03/21] drm/amdgpu:fix scheduler hw reset&recovery
Am 06.02.2017 um 04:18 schrieb Zhou, David(ChunMing):
Quoted 3 lines
I'm curious what problem this patch fix? Any crash?
My impression
list_forwill check if the list is empty, am I wrong?
Yeah, I agree as well. list_for won't do anything if the list is empty.
So this patch doesn't has any effect as far as I can see.
Regards,
Christian.
Quoted 37 lines
Regards,
David Zhou-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Monk Liu
Sent: Saturday, February 04, 2017 6:22 PM
To: [email protected]
Cc: Liu, Monk <[email protected]>
Subject: [PATCH 03/21] drm/amdgpu:fix scheduler hw reset&recoveryChange-Id I39e0b77029d22dc3fb37e2f19da699647ae96aadSigned-off-by Monk Liu <[email protected]>--- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)drivers/gpu/drm/amd/scheduler/gpu_scheduler.c +7
-0@@ -384,6 +384,13 @@ void amd_sched_hw_job_reset(struct amd_gpu_scheduler *sched)struct amd_sched_job *s_job;spin_lock (&sched->job_list_lock); + s_job =list_first_entry_or_null (&sched->ring_mirror_list, + struct amd_sched_job, node); +if (!s_job) { +spin_unlock (&sched->job_list_lock); +return ; + } +list_for_each_entry_reverse (s_job, &sched->ring_mirror_list, node) {if (fence_remove_callback (s_job->s_fence->parent, &s_job->s_fence->cb)) {fence_put (s_job->s_fence->parent);@@ -405,6 +412,11 @@ void amd_sched_job_recovery(struct amd_gpu_scheduler *sched)if (s_job && sched->timeout !=MAX_SCHEDULE_TIMEOUT )
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c void amd_sched_job_recovery(struct amd_gpu_scheduler *sched) · line 422
Quoted 10 lines
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c +5
-0schedule_delayed_work (&s_job->work_tdr, sched->timeout); +if (!s_job) { +spin_unlock (&sched->job_list_lock); +return ; + } +list_for_each_entry_safe (s_job, tmp, &sched->ring_mirror_list, node) {struct amd_sched_fence *s_fence = s_job->s_fence;struct fence *fence;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 68f2819b-2be2-26ef-cba5-8a605a9822fe-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org
RE: [PATCH 03/21] drm/amdgpu:fix scheduler hw reset&recovery
Thanks, I'll sort & cleanup my patches and send again. BR Monk
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Christian K?nig
Sent: Monday, February 06, 2017 4:18 PM
To: Zhou, David(ChunMing) <[email protected]>; Liu, Monk <[email protected]>; [email protected]
Subject: Re: [PATCH 03/21] drm/amdgpu:fix scheduler hw reset&recovery
Am 06.02.2017 um 04:18 schrieb Zhou, David(ChunMing):
Quoted 3 lines
I'm curious what problem this patch fix? Any crash?
My impression
list_forwill check if the list is empty, am I wrong?
Yeah, I agree as well. list_for won't do anything if the list is empty.
So this patch doesn't has any effect as far as I can see.
Regards,
Christian.
Quoted 37 lines
Regards,
David Zhou-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Monk Liu
Sent: Saturday, February 04, 2017 6:22 PM
To: [email protected]
Cc: Liu, Monk <[email protected]>
Subject: [PATCH 03/21] drm/amdgpu:fix scheduler hw reset&recoveryChange-Id I39e0b77029d22dc3fb37e2f19da699647ae96aadSigned-off-by Monk Liu <[email protected]>--- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)drivers/gpu/drm/amd/scheduler/gpu_scheduler.c +7
-0@@ -384,6 +384,13 @@ void amd_sched_hw_job_reset(struct amd_gpu_scheduler *sched)struct amd_sched_job *s_job;spin_lock (&sched->job_list_lock); + s_job =list_first_entry_or_null (&sched->ring_mirror_list, + struct amd_sched_job, node); +if (!s_job) { +spin_unlock (&sched->job_list_lock); +return ; + } +list_for_each_entry_reverse (s_job, &sched->ring_mirror_list, node) {if (fence_remove_callback (s_job->s_fence->parent, &s_job->s_fence->cb)) {fence_put (s_job->s_fence->parent);@@ -405,6 +412,11 @@ void amd_sched_job_recovery(struct amd_gpu_scheduler *sched)if (s_job && sched->timeout !=MAX_SCHEDULE_TIMEOUT )
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c void amd_sched_job_recovery(struct amd_gpu_scheduler *sched) · line 422
Quoted 10 lines
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c +5
-0schedule_delayed_work (&s_job->work_tdr, sched->timeout); +if (!s_job) { +spin_unlock (&sched->job_list_lock); +return ; + } +list_for_each_entry_safe (s_job, tmp, &sched->ring_mirror_list, node) {struct amd_sched_fence *s_fence = s_job->s_fence;struct fence *fence;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/21 drm/amdgpu:fix powerplay logic
In reply to a message not in the archive1,like pp_hw_init, we shouldn't report error if PP disabled 2,disable pp_en if sriov
--- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 2 +- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +1 -1
@@ -43,7 +43,7 @@ static int amdgpu_create_pp_handle(struct amdgpu_device *adev) amd_pp = &(adev->powerplay); pp_init.chip_family = adev->family; pp_init.chip_id = adev->asic_type; - pp_init.pm_en = amdgpu_dpm !=0 ? true : false; + pp_init.pm_en = (amdgpu_dpm !=0 && !amdgpu_sriov_vf (adev)) ? true : false; pp_init.feature_mask = amdgpu_pp_feature_mask; pp_init.device =amdgpu_cgs_create_device (adev); ret =amd_powerplay_create (&pp_init, &(amd_pp->pp_handle));
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +1 -1
@@ -286,7 +286,7 @@ static int pp_resume(void *handle) }if (ret1 ==PP_DPM_DISABLED ) -return ret1; +return 0 ; eventmgr = pp_handle->eventmgr;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1486203702-1116-4-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org
RE: [PATCH 04/21] drm/amdgpu:fix powerplay logic
Hi Monk,
In
static int pp_suspend(void *handle)
{
ret = pp_check(pp_handle); if (ret != 0) return ret;
in suspend function, when dpm disabled/srv, also neet to return 0.
Best Regards
Rex
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Monk Liu
Sent: Saturday, February 04, 2017 6:22 PM
To: [email protected]
Cc: Liu, Monk
Subject: [PATCH 04/21] drm/amdgpu:fix powerplay logic
1,like pp_hw_init, we shouldn't report error if PP disabled 2,disable pp_en if sriov
--- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 2 +- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +2 -1
@@ -43,7 +43,7 @@ static int amdgpu_create_pp_handle(struct amdgpu_device *adev) amd_pp = &(adev->powerplay); pp_init.chip_family = adev->family; pp_init.chip_id = adev->asic_type; - pp_init.pm_en = amdgpu_dpm !=0 ? true : false; + pp_init.pm_en = (amdgpu_dpm !=0 && !amdgpu_sriov_vf (adev)) ? true : +false; pp_init.feature_mask = amdgpu_pp_feature_mask; pp_init.device =amdgpu_cgs_create_device (adev);
ret = amd_powerplay_create(&pp_init, &(amd_pp->pp_handle)); diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
index 429f18b..e9cf207 100644
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +1 -1
@@ -286,7 +286,7 @@ static int pp_resume(void *handle) }if (ret1 ==PP_DPM_DISABLED ) -return ret1; +return 0 ; eventmgr = pp_handle->eventmgr;
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): MWHPR12MB1694FE04FC1F52557F8B80F8FB400-Gy0DoCVfaSW4WA4dJ5YXGAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
RE: [PATCH 04/21] drm/amdgpu:fix powerplay logic
Thanks,
I hadn't test S3 feature currently so didn't run into it by far
BR Monk
-----Original Message-----
From: Zhu, Rex
Sent: Monday, February 06, 2017 8:32 PM
To: Liu, Monk <[email protected]>; [email protected]
Cc: Liu, Monk <[email protected]>
Subject: RE: [PATCH 04/21] drm/amdgpu:fix powerplay logic
Hi Monk,
In
static int pp_suspend(void *handle)
{
ret = pp_check(pp_handle); if (ret != 0) return ret;
in suspend function, when dpm disabled/srv, also neet to return 0.
Best Regards
Rex
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Monk Liu
Sent: Saturday, February 04, 2017 6:22 PM
To: [email protected]
Cc: Liu, Monk
Subject: [PATCH 04/21] drm/amdgpu:fix powerplay logic
1,like pp_hw_init, we shouldn't report error if PP disabled 2,disable pp_en if sriov
--- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 2 +- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +2 -1
@@ -43,7 +43,7 @@ static int amdgpu_create_pp_handle(struct amdgpu_device *adev) amd_pp = &(adev->powerplay); pp_init.chip_family = adev->family; pp_init.chip_id = adev->asic_type; - pp_init.pm_en = amdgpu_dpm !=0 ? true : false; + pp_init.pm_en = (amdgpu_dpm !=0 && !amdgpu_sriov_vf (adev)) ? true : +false; pp_init.feature_mask = amdgpu_pp_feature_mask; pp_init.device =amdgpu_cgs_create_device (adev);
ret = amd_powerplay_create(&pp_init, &(amd_pp->pp_handle)); diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
index 429f18b..e9cf207 100644
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +1 -1
@@ -286,7 +286,7 @@ static int pp_resume(void *handle) }if (ret1 ==PP_DPM_DISABLED ) -return ret1; +return 0 ; eventmgr = pp_handle->eventmgr;
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Christian König
Reviewed-byAm 04.02.2017 um 11:21 schrieb Monk Liu:
Quoted 2 lines
Change-Id I68729b1d32d5e300b8f03a923d2065d51dbe6f7aSigned-off-by Monk Liu <[email protected]>
Quoted 18 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-1@@ -2447,7 +2447,7 @@ int amdgpu_gpu_reset(struct amdgpu_device *adev)if (fence) { r =fence_wait (fence, false);if (r) { -WARN (r,"recovery from shadow isn't comleted\n" ); +WARN (r,"recovery from shadow isn't completed\n" );break ; } }
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int amdgpu_gpu_reset(struct amdgpu_device *adev) · line 2465
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-1@@ -2459,7 +2459,7 @@ int amdgpu_gpu_reset(struct amdgpu_device *adev)if (fence) { r =fence_wait (fence, false);if (r) -WARN (r,"recovery from shadow isn't comleted\n" ); +WARN (r,"recovery from shadow isn't completed\n" ); }fence_put (fence); }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx