Commit 3319b213 authored by Lucas De Marchi's avatar Lucas De Marchi Committed by Rodrigo Vivi

drm/xe/mcr: Use designated init for xe_steering_types

There is already a BUILD_BUG_ON() check to make sure the size follow the
number of steering types. Also make sure the right index is being used
for each steering type.
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 43f98df1
......@@ -249,12 +249,12 @@ static const struct {
const char *name;
void (*init)(struct xe_gt *);
} xe_steering_types[] = {
{ "L3BANK", init_steering_l3bank },
{ "MSLICE", init_steering_mslice },
{ "LNCF", NULL }, /* initialized by mslice init */
{ "DSS", init_steering_dss },
{ "OADDRM", init_steering_oaddrm },
{ "INSTANCE 0", init_steering_inst0 },
[L3BANK] = { "L3BANK", init_steering_l3bank },
[MSLICE] = { "MSLICE", init_steering_mslice },
[LNCF] = { "LNCF", NULL }, /* initialized by mslice init */
[DSS] = { "DSS", init_steering_dss },
[OADDRM] = { "OADDRM", init_steering_oaddrm },
[INSTANCE0] = { "INSTANCE 0", init_steering_inst0 },
};
void xe_gt_mcr_init(struct xe_gt *gt)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment