[PATCH] drm/amdgpu: fully disable the queues and doorbeels in gfx_v10 before programing the kiq registers

2022-05-17 Thread ricetons
From: Haohui Mai Signed-off-by: Haohui Mai --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 27 +- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index dd8f4344eeb8..9a1b42cc850

[PATCH] drm/amdgpu: Set CP_HQD_PQ_CONTROL_RPTR_BLOCK_SIZE correctly in gfx_v8-v11.

2022-05-16 Thread ricetons
From: Haohui Mai Remove the accidental shifts on the values of RPTR_BLOCK_SIZE in gfx_v8-v11. The bug essentially always programs the corresponding fields to zero instead of the correct value. Signed-off-by: Haohui Mai --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- drivers/gpu/drm/amd/amdg

[PATCH] drm/amdgpu: Clean up of initializing doorbells for gfx_v9 and gfx_v10

2022-05-16 Thread ricetons
From: Haohui Mai Clean up redundant, copy-paste code blocks during the intialization of the doorbells in mqd_init(). Signed-off-by: Haohui Mai --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 17 - drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 17 - 2 files changed, 34 d

[PATCH v6] drm/amdgpu: Ensure the DMA engine is deactivated during set ups

2022-04-30 Thread ricetons
From: Haohui Mai The patch fully deactivates the DMA engine before setting up the ring buffer to avoid potential data races and crashes. Signed-off-by: Haohui Mai --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 109 +++-- 1 file changed, 64 insertions(+), 45 deletions(-) diff

[PATCH v5] drm/amdgpu: Ensure the DMA engine is deactivated during set ups

2022-04-28 Thread ricetons
From: Haohui Mai The patch fully deactivates the DMA engine before setting up the ring buffer to avoid potential data races and crashes. Signed-off-by: Haohui Mai --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 112 +++-- 1 file changed, 67 insertions(+), 45 deletions(-) diff

[PATCH v4] drm/amdgpu: Ensure the DMA engine is deactivated during set ups

2022-04-28 Thread ricetons
From: Haohui Mai The patch fully deactivates the DMA engine before setting up the ring buffer to avoid potential data races and crashes. The v4 patch addresses the comments from Lang Yu . Signed-off-by: Haohui Mai --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 113 ++--- 1 f

[PATCH v3] drm/amdgpu: Ensure the DMA engine is deactivated during set ups

2022-04-27 Thread ricetons
From: Haohui Mai The patch fully deactivates the DMA engine before setting up the ring buffer to avoid potential data races and crashes. Signed-off-by: Haohui Mai --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 110 + 1 file changed, 59 insertions(+), 51 deletions(-) diff

[PATCH v2] drm/amdgpu: Ensure the DMA engine is deactivated during set ups

2022-04-27 Thread ricetons
From: Haohui Mai The patch fully deactivates the DMA engine before setting up the ring buffer to avoid potential data races and crashes. Signed-off-by: Haohui Mai --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 94 ++ 1 file changed, 50 insertions(+), 44 deletions(-) diff

[PATCH] drm/amdgpu: Ensure the DMA engine is deactivated during set ups

2022-04-27 Thread ricetons
From: Haohui Mai The patch fully deactivates the DMA engine before setting up the ring buffer to avoid potential data races and crashes. Signed-off-by: Haohui Mai --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 88 +- 1 file changed, 45 insertions(+), 43 deletions(-) diff