drm/amdgpu/gmc10: apply the 'invalidation from sdma' workaround for navi12
Subsystems (2)
PATCH 1/1 drm/amdgpu/gmc10: apply the 'invalidation from sdma' workaround for navi12
when gfxoff is enabled, sdma hangs while entering desktop without this workaround
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +1 -1
@@ -291,7 +291,7 @@ 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_NAVI12 || 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]
A small nitpick: if this workaround is needed for all NAVi ASICs, can we make a macro for this?
e.g. #define ASIC_IS_NAVI_SERIES(adev) (adev->asic_type >= CHIP_NAVI10 && adev->asic_type <= NAVI12)
Then we can use
if (!adev->mman.buffer_funcs_enabled ||
!adev->ib_pool_ready ||
- adev->asic_type > CHIP_NAVI14 ||
+ !ASIC_IS_NAVI_SERIES(adev) ||
adev->in_gpu_reset) {
-----Original Message-----
From: Yuan, Xiaojie <[email protected]>
Sent: Tuesday, September 24, 2019 11:01 AM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Yin, Tianci (Rico) <[email protected]>; Quan, Evan <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH] drm/amdgpu/gmc10: apply the 'invalidation from sdma' workaround for navi12
when gfxoff is enabled, sdma hangs while entering desktop without this workaround
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +1 -1
@@ -291,7 +291,7 @@ 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_NAVI12 || 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): BN8PR12MB3329DDCAF8D6276EFDB2AA9AE4840-h6+T2+wrnx3WSNCBJ7MpiAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Thanks Evan. Since we currently has only once place to check 'is navi series', I'd prefer not to put into a macro until we have another place to check that. Does the change below looks good to you?
- adev->asic_type > CHIP_NAVI14 ||
+ !(adev->asic_type >= CHIP_NAVI10 && adev->asic_type <= CHIP_NAVI12) ||
BR,
Xiaojie
________________________________________
From: Quan, Evan <[email protected]>
Sent: Tuesday, September 24, 2019 11:18 AM
To: Yuan, Xiaojie; [email protected]
Cc: Zhang, Hawking; Xiao, Jack; Yin, Tianci (Rico)
Subject: RE: [PATCH] drm/amdgpu/gmc10: apply the 'invalidation from sdma' workaround for navi12
A small nitpick: if this workaround is needed for all NAVi ASICs, can we make a macro for this?
e.g. #define ASIC_IS_NAVI_SERIES(adev) (adev->asic_type >= CHIP_NAVI10 && adev->asic_type <= NAVI12)
Then we can use
if (!adev->mman.buffer_funcs_enabled ||
!adev->ib_pool_ready ||
- adev->asic_type > CHIP_NAVI14 ||
+ !ASIC_IS_NAVI_SERIES(adev) ||
adev->in_gpu_reset) {-----Original Message-----
From: Yuan, Xiaojie <[email protected]>
Sent: Tuesday, September 24, 2019 11:01 AM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Yin, Tianci (Rico) <[email protected]>; Quan, Evan <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH] drm/amdgpu/gmc10: apply the 'invalidation from sdma' workaround for navi12
when gfxoff is enabled, sdma hangs while entering desktop without this workaround
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +1 -1
@@ -291,7 +291,7 @@ 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_NAVI12 || 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): BN8PR12MB3602DD5B7EC8F117B559C50489840-h6+T2+wrnx1lGJ5xs4l7kQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Sure. Free to add my RB with that.
-----Original Message-----
From: Yuan, Xiaojie <[email protected]>
Sent: Tuesday, September 24, 2019 3:20 PM
To: Quan, Evan <[email protected]>; [email protected]
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Yin, Tianci (Rico) <[email protected]>
Subject: Re: [PATCH] drm/amdgpu/gmc10: apply the 'invalidation from sdma' workaround for navi12
Thanks Evan. Since we currently has only once place to check 'is navi series', I'd prefer not to put into a macro until we have another place to check that. Does the change below looks good to you?
- adev->asic_type > CHIP_NAVI14 ||
+ !(adev->asic_type >= CHIP_NAVI10 && adev->asic_type <= CHIP_NAVI12) ||
BR,
Xiaojie
________________________________________
From: Quan, Evan <[email protected]>
Sent: Tuesday, September 24, 2019 11:18 AM
To: Yuan, Xiaojie; [email protected]
Cc: Zhang, Hawking; Xiao, Jack; Yin, Tianci (Rico)
Subject: RE: [PATCH] drm/amdgpu/gmc10: apply the 'invalidation from sdma' workaround for navi12
A small nitpick: if this workaround is needed for all NAVi ASICs, can we make a macro for this?
e.g. #define ASIC_IS_NAVI_SERIES(adev) (adev->asic_type >= CHIP_NAVI10 && adev->asic_type <= NAVI12)
Then we can use
if (!adev->mman.buffer_funcs_enabled ||
!adev->ib_pool_ready ||
- adev->asic_type > CHIP_NAVI14 ||
+ !ASIC_IS_NAVI_SERIES(adev) ||
adev->in_gpu_reset) {-----Original Message-----
From: Yuan, Xiaojie <[email protected]>
Sent: Tuesday, September 24, 2019 11:01 AM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Yin, Tianci (Rico) <[email protected]>; Quan, Evan <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH] drm/amdgpu/gmc10: apply the 'invalidation from sdma' workaround for navi12
when gfxoff is enabled, sdma hangs while entering desktop without this workaround
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +1 -1
@@ -291,7 +291,7 @@ 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_NAVI12 || 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