Commit 736203e4 authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Juan Suárez Romero

intel: fix subslice computation from topology data

We're missing the offset of the slice in the subslice mask...

This worked for most platforms that don't have first slice fused off
because we would reread the same mask from slice0 again and again...
Signed-off-by: Lionel Landwerlin's avatarLionel Landwerlin <>
Fixes: c1900f5b ("intel: devinfo: add helper functions to fill fusing masks values")
Gitlab: #1869Reviewed-by: Mark Janes's avatarMark Janes <>
(cherry picked from commit d36763b2)
parent 58694c16
......@@ -1156,7 +1156,7 @@ gen_device_info_update_from_topology(struct gen_device_info *devinfo,
for (int b = 0; b < devinfo->subslice_slice_stride; b++) {
devinfo->num_subslices[s] +=
__builtin_popcount(devinfo->subslice_masks[s * devinfo->subslice_slice_stride + b]);
n_subslices += devinfo->num_subslices[s];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment