drm/amdgpu/gmc10: do not apply the 'invalidation from sdma' workaround for navi12
Subsystems (2)
PATCH 1/2 drm/amdgpu/gmc10: do not apply the 'invalidation from sdma' workaround for navi12
when gfxoff is enabled, applying this workaround makes sdma hang while entering desktop.
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +2 -1
@@ -291,7 +291,8 @@ static void gmc_v10_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid,if (!adev->mman.buffer_funcs_enabled || !adev->ib_pool_ready || - adev->asic_type >CHIP_NAVI14 || + adev->asic_type ==CHIP_NAVI10 || + adev->asic_type ==CHIP_NAVI14 || adev->in_gpu_reset) {gmc_v10_0_flush_vm_hub (adev, vmid,AMDGPU_GFXHUB_0 ,0 );mutex_unlock (&adev->mman.gtt_window_lock);
Signature · 6 lines
2.20.1 _______________________________________________ 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): [email protected]
PATCH 2/2 drm/amdgpu/gfx10: enable gfxoff for navi12
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -1
@@ -580,7 +580,6 @@ static void gfx_v10_0_check_gfxoff_flag(struct amdgpu_device *adev) {switch (adev->asic_type) {case CHIP_NAVI10 : -case CHIP_NAVI12 : adev->pm.pp_feature &= ~PP_GFXOFF_MASK ;break ;default :
@@ -4184,6 +4183,7 @@ static int gfx_v10_0_set_powergating_state(void *handle,bool enable = (state ==AMD_PG_STATE_GATE ) ? true : false;switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI12 :case CHIP_NAVI14 :if (!enable) {amdgpu_gfx_off_ctrl (adev, false);
Signature · 6 lines
2.20.1 _______________________________________________ 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): [email protected]
Quan, Evan
Reviewed-by Evan QuanRE: [PATCH 2/2] drm/amdgpu/gfx10: enable gfxoff for navi12
-----Original Message-----
From: Yuan, Xiaojie <[email protected]>
Sent: Monday, September 23, 2019 9:58 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Feng, Kenneth <[email protected]>; Quan, Evan <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu/gfx10: enable gfxoff for navi12
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -1
@@ -580,7 +580,6 @@ static void gfx_v10_0_check_gfxoff_flag(struct amdgpu_device *adev) {switch (adev->asic_type) {case CHIP_NAVI10 : -case CHIP_NAVI12 : adev->pm.pp_feature &= ~PP_GFXOFF_MASK ;break ;default :
@@ -4184,6 +4183,7 @@ static int gfx_v10_0_set_powergating_state(void *handle,bool enable = (state ==AMD_PG_STATE_GATE ) ? true : false;switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI12 :case CHIP_NAVI14 :if (!enable) {amdgpu_gfx_off_ctrl (adev, false);
--
2.20.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
The patch makes me a little confusing.
According to asic type list,
CHIP_NAVI10, /* 25 */
CHIP_NAVI14, /* 26 */
CHIP_NAVI12, /* 27 */ CHIP_LAST,
before the sdma workaround applies only for Navi10 and Navi14(not Navi12).
However, it seems this patch reverse the logics totally. It applies the workaround only for Navi12.
-----Original Message-----
From: Yuan, Xiaojie <[email protected]>
Sent: Monday, September 23, 2019 9:58 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Feng, Kenneth <[email protected]>; Quan, Evan <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH 1/2] drm/amdgpu/gmc10: do not apply the 'invalidation from sdma' workaround for navi12
when gfxoff is enabled, applying this workaround makes sdma hang while entering desktop.
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +2 -1
@@ -291,7 +291,8 @@ static void gmc_v10_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid,if (!adev->mman.buffer_funcs_enabled || !adev->ib_pool_ready || - adev->asic_type >CHIP_NAVI14 || + adev->asic_type ==CHIP_NAVI10 || + adev->asic_type ==CHIP_NAVI14 || adev->in_gpu_reset) {gmc_v10_0_flush_vm_hub (adev, vmid,AMDGPU_GFXHUB_0 ,0 );mutex_unlock (&adev->mman.gtt_window_lock);
--
2.20.1
_______________________________________________
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): MN2PR12MB33445D3B5780A31B2DC45B95E4840-rweVpJHSKToDMgCC8P//[email protected]
Oops, you are right Evan. I'll send another patch.
It's a little counter-intuitive that asic type id of navi12 is larger than navi14.
BR,
Xiaojie
________________________________________
From: Quan, Evan <[email protected]>
Sent: Tuesday, September 24, 2019 10:09 AM
To: Yuan, Xiaojie; [email protected]
Cc: Zhang, Hawking; Xiao, Jack; Feng, Kenneth; Wang, Kevin(Yang)
Subject: RE: [PATCH 1/2] drm/amdgpu/gmc10: do not apply the 'invalidation from sdma' workaround for navi12
The patch makes me a little confusing.
According to asic type list,
CHIP_NAVI10, /* 25 */
CHIP_NAVI14, /* 26 */
CHIP_NAVI12, /* 27 */ CHIP_LAST,
before the sdma workaround applies only for Navi10 and Navi14(not Navi12).
However, it seems this patch reverse the logics totally. It applies the workaround only for Navi12.
-----Original Message-----
From: Yuan, Xiaojie <[email protected]>
Sent: Monday, September 23, 2019 9:58 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Feng, Kenneth <[email protected]>; Quan, Evan <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH 1/2] drm/amdgpu/gmc10: do not apply the 'invalidation from sdma' workaround for navi12
when gfxoff is enabled, applying this workaround makes sdma hang while entering desktop.
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +2 -1
@@ -291,7 +291,8 @@ static void gmc_v10_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid,if (!adev->mman.buffer_funcs_enabled || !adev->ib_pool_ready || - adev->asic_type >CHIP_NAVI14 || + adev->asic_type ==CHIP_NAVI10 || + adev->asic_type ==CHIP_NAVI14 || adev->in_gpu_reset) {gmc_v10_0_flush_vm_hub (adev, vmid,AMDGPU_GFXHUB_0 ,0 );mutex_unlock (&adev->mman.gtt_window_lock);
--
2.20.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx