Skip to contentSkip to conversation

drm/amdgpu: Fix SDMA hang when performing VKexample test

PATCH In review chen gong 3 participants 3 messages Oct 23, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

chen gong

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Fix SDMA hang when performing VKexample test

VKexample test hang during Occlusion/SDMA/Varia runs. Clear XNACK_WATERMK in reg SDMA0_UTCL1_WATERMK to fix this issue.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1 -0
index 63a3792..45bd538 100644
@@ -254,6 +254,7 @@ static const struct soc15_reg_golden golden_settings_sdma_4_3[] = {
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC0_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC1_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_PAGE, 0x000003ff, 0x000003c0),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_WATERMK, 0xfc000000, 0x00000000)
 };
 
 static u32 sdma_v4_0_get_reg_offset(struct amdgpu_device *adev,
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): 1571813487-31589-1-git-send-email-curry.gong-5C7GfCeVMHo@public.gmane.org

Reviewed-by Aaron Liu
#2 lore raw

BR,
Aaron Liu

Quoted 34 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of chen gong
Sent: Wednesday, October 23, 2019 2:51 PM
To: [email protected]
Cc: Gong, Curry <[email protected]>
Subject: [PATCH] drm/amdgpu: Fix SDMA hang when performing VKexample test

VKexample test hang during Occlusion/SDMA/Varia runs. Clear XNACK_WATERMK in reg SDMA0_UTCL1_WATERMK to fix this issue.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0 -0
index 63a3792..45bd538 100644
@@ -254,6 +254,7 @@ static const struct soc15_reg_golden
 golden_settings_sdma_4_3[] = {
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0,
 mmSDMA0_RLC0_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0,
 mmSDMA0_RLC1_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_PAGE,

0x000003ff, 0x000003c0),

drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0,

mmSDMA0_UTCL1_WATERMK, 0xfc000000, 0x00000000)
};

Quoted 8 lines

static u32 sdma_v4_0_get_reg_offset(struct amdgpu_device *adev,
--
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

Acked-by Alex Deucher
#3 lore raw
In reply to a message not in the archive
Quoted 9 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of chen gong
Sent: Wednesday, October 23, 2019 2:51 AM
To: [email protected]
Cc: Gong, Curry <[email protected]>
Subject: [PATCH] drm/amdgpu: Fix SDMA hang when performing VKexample test

Quoted 4 lines

VKexample test hang during Occlusion/SDMA/Varia runs. Clear XNACK_WATERMK in reg SDMA0_UTCL1_WATERMK to fix this issue.

Quoted 21 lines
---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0 -0
index 63a3792..45bd538 100644
@@ -254,6 +254,7 @@ static const struct soc15_reg_golden
 golden_settings_sdma_4_3[] = {
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0,
 mmSDMA0_RLC0_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0,
 mmSDMA0_RLC1_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_PAGE,

0x000003ff, 0x000003c0),

drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0,

mmSDMA0_UTCL1_WATERMK, 0xfc000000, 0x00000000)
};

Quoted 8 lines

static u32 sdma_v4_0_get_reg_offset(struct amdgpu_device *adev,
--
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