This was fixed in initialize_cpsch before, but not in initialize_nocpsch.
Factor sdma bitmap initialization into a helper function to apply the
correct implementation in both cases without duplicating it.
v2: Added a range check
Reported-by: Ellis Michael <email address hidden>
Signed-off-by: Felix Kuehling <email address hidden>
Reviewed-by: Graham Sider <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>
I suspect it was fixed with:
commit b292cafe2dd02d9 6a07147e4b16092 7e8399d5cc
Author: Felix Kuehling <email address hidden>
Date: Wed Sep 21 17:45:59 2022 -0400
drm/amdkfd: Fix UBSAN shift-out-of-bounds warning
This was fixed in initialize_cpsch before, but not in initialize_nocpsch.
Factor sdma bitmap initialization into a helper function to apply the
correct implementation in both cases without duplicating it.
v2: Added a range check
Reported-by: Ellis Michael <email address hidden>
Signed-off-by: Felix Kuehling <email address hidden>
Reviewed-by: Graham Sider <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>