On Thu, Oct 9, 2025 at 2:50 PM Jonathan Kim <[email protected]> wrote: > > 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]> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c > index 8d03e8c9cc6d..c698e183beda 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c > @@ -409,7 +409,7 @@ int amdgpu_mes_detect_and_reset_hung_queues(struct > amdgpu_device *adev, > return -EINVAL; > > /* Clear the doorbell array before detection */ > - memset(adev->mes.hung_queue_db_array_cpu_addr, 0, > + memset(adev->mes.hung_queue_db_array_cpu_addr, > AMDGPU_MES_INVALID_DB_OFFSET, > adev->mes.hung_queue_db_array_size * sizeof(u32)); > input.queue_type = queue_type; > input.detect_only = detect_only; > -- > 2.34.1 >
