Commit 436dbd6b authored by Lucas De Marchi's avatar Lucas De Marchi Committed by Rodrigo Vivi

drm/xe/mcr: Separate version from engine type selection

In order to improve readability and make it more future proof,
split the engine type from the graphics/platform checks.
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230317223441.3891073-1-lucas.demarchi@intel.comSigned-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 2492f454
...@@ -290,7 +290,8 @@ void xe_gt_mcr_init(struct xe_gt *gt) ...@@ -290,7 +290,8 @@ void xe_gt_mcr_init(struct xe_gt *gt)
drm_WARN_ON(&xe->drm, MEDIA_VER(xe) < 13); drm_WARN_ON(&xe->drm, MEDIA_VER(xe) < 13);
gt->steering[OADDRM].ranges = xelpmp_oaddrm_steering_table; gt->steering[OADDRM].ranges = xelpmp_oaddrm_steering_table;
} else if (GRAPHICS_VERx100(xe) >= 1270) { } else {
if (GRAPHICS_VERx100(xe) >= 1270) {
gt->steering[INSTANCE0].ranges = xelpg_instance0_steering_table; gt->steering[INSTANCE0].ranges = xelpg_instance0_steering_table;
gt->steering[L3BANK].ranges = xelpg_l3bank_steering_table; gt->steering[L3BANK].ranges = xelpg_l3bank_steering_table;
gt->steering[DSS].ranges = xelpg_dss_steering_table; gt->steering[DSS].ranges = xelpg_dss_steering_table;
...@@ -307,6 +308,7 @@ void xe_gt_mcr_init(struct xe_gt *gt) ...@@ -307,6 +308,7 @@ void xe_gt_mcr_init(struct xe_gt *gt)
gt->steering[L3BANK].ranges = xelp_l3bank_steering_table; gt->steering[L3BANK].ranges = xelp_l3bank_steering_table;
gt->steering[DSS].ranges = xelp_dss_steering_table; gt->steering[DSS].ranges = xelp_dss_steering_table;
} }
}
/* Select non-terminated steering target for each type */ /* Select non-terminated steering target for each type */
for (int i = 0; i < NUM_STEERING_TYPES; i++) for (int i = 0; i < NUM_STEERING_TYPES; i++)
......
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