]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Fix SDMA UTC_L1 handling during start/stop sequences
authorJesse Zhang <jesse.zhang@amd.com>
Mon, 16 Jun 2025 11:21:41 +0000 (19:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:21 +0000 (12:19 -0400)
commit375bf564654e85a7b1b0657b191645b3edca1bda
tree4e7810157b4affb56146cc0c297444dbcba5b2d0
parent1ab11a82681eb33a66f423216cb063e7f40c6f85
drm/amdgpu: Fix SDMA UTC_L1 handling during start/stop sequences

This commit makes two key fixes to SDMA v4.4.2 handling:

1. disable UTC_L1 in sdma_cntl register when stopping SDMA engines
   by reading the current value before modifying UTC_L1_ENABLE bit.

2. Ensure UTC_L1_ENABLE is consistently managed by:
   - Adding the missing register write when enabling UTC_L1 during start
   - Keeping UTC_L1 enabled by default as per hardware requirements

v2: Correct SDMA_CNTL setting (Philip)

Suggested-by: Jonathan Kim <jonathan.kim@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c