drm/amdgpu/gfx12: WARN() rather than BUG() for invalid SDMA engine

There's no need to crash the kernel for these cases.

Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Deucher 2026-06-15 18:56:14 -04:00
parent c24edbd5ae
commit 28cc342e24

View File

@ -90,7 +90,8 @@ static uint32_t get_sdma_rlc_reg_offset(struct amdgpu_device *adev,
regSDMA1_QUEUE0_RB_CNTL) - regSDMA0_QUEUE0_RB_CNTL;
break;
default:
BUG();
WARN(1, "Invalid SDMA engine id %d\n", engine_id);
break;
}
sdma_rlc_reg_offset = sdma_engine_reg_base