]> www.infradead.org Git - users/jedix/linux-maple.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 17:14:40 +0000 (13:14 -0400)
commit7f3b16f3f229e37cc3e02e9e4e7106c523b119e9
treed4249607a64f074d5d03c06a911fed17e300e505
parent785c536c31c0bb057252fddedb30d79ae4979f4b
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>
(cherry picked from commit 375bf564654e85a7b1b0657b191645b3edca1bda)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c