Skip to content

Commit 8745ca5

Browse files
jokim-amdalexdeucher
authored andcommitted
drm/amdgpu: fix initialization of doorbell array for detect and hang
Initialized doorbells should be set to invalid rather than 0 to prevent driver from over counting hung doorbells since it checks against the invalid value to begin with. Signed-off-by: Jonathan Kim <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d0de79f commit 8745ca5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ int amdgpu_mes_detect_and_reset_hung_queues(struct amdgpu_device *adev,
409409
return -EINVAL;
410410

411411
/* Clear the doorbell array before detection */
412-
memset(adev->mes.hung_queue_db_array_cpu_addr, 0,
412+
memset(adev->mes.hung_queue_db_array_cpu_addr, AMDGPU_MES_INVALID_DB_OFFSET,
413413
adev->mes.hung_queue_db_array_size * sizeof(u32));
414414
input.queue_type = queue_type;
415415
input.detect_only = detect_only;

0 commit comments

Comments
 (0)