xe_engine_device_get_max_priority(struct xe_device *xe)
{
return capable(CAP_SYS_NICE) ? XE_ENGINE_PRIORITY_HIGH :
- XE_ENGINE_PRIORITY_NORMAL;
+ XE_ENGINE_PRIORITY_NORMAL;
}
static int engine_set_priority(struct xe_device *xe, struct xe_engine *e,
return -EFAULT;
if (XE_IOCTL_ERR(xe, eci[0].gt_id >= xe->info.tile_count))
- return -EINVAL;
+ return -EINVAL;
if (eci[0].engine_class == DRM_XE_ENGINE_CLASS_VM_BIND) {
for_each_gt(gt, xe, id) {
/* 32-bit KLV structure as used by policy updates and others */
struct guc_klv_generic_dw_t {
- u32 kl;
- u32 value;
+ u32 kl;
+ u32 value;
} __packed;
/* Format of the UPDATE_CONTEXT_POLICIES H2G data packet */
struct guc_update_engine_policy_header {
- u32 action;
- u32 guc_id;
+ u32 action;
+ u32 guc_id;
} __packed;
struct guc_update_engine_policy {
- struct guc_update_engine_policy_header header;
- struct guc_klv_generic_dw_t klv[GUC_CONTEXT_POLICIES_KLV_NUM_IDS];
+ struct guc_update_engine_policy_header header;
+ struct guc_klv_generic_dw_t klv[GUC_CONTEXT_POLICIES_KLV_NUM_IDS];
} __packed;
/* GUC_CTL_* - Parameters for loading the GuC */
static void init_policies(struct xe_guc *guc, struct xe_engine *e)
{
- struct engine_policy policy;
+ struct engine_policy policy;
enum xe_engine_priority prio = e->priority;
u32 timeslice_us = e->sched_props.timeslice_us;
u32 preempt_timeout_us = e->sched_props.preempt_timeout_us;
XE_BUG_ON(!engine_registered(e));
- __guc_engine_policy_start_klv(&policy, e->guc->id);
- __guc_engine_policy_add_priority(&policy, xe_engine_prio_to_guc[prio]);
- __guc_engine_policy_add_execution_quantum(&policy, timeslice_us);
- __guc_engine_policy_add_preemption_timeout(&policy, preempt_timeout_us);
+ __guc_engine_policy_start_klv(&policy, e->guc->id);
+ __guc_engine_policy_add_priority(&policy, xe_engine_prio_to_guc[prio]);
+ __guc_engine_policy_add_execution_quantum(&policy, timeslice_us);
+ __guc_engine_policy_add_preemption_timeout(&policy, preempt_timeout_us);
xe_guc_ct_send(&guc->ct, (u32 *)&policy.h2g,
__guc_engine_policy_action_size(&policy), 0, 0);
{
struct engine_policy policy;
- __guc_engine_policy_start_klv(&policy, e->guc->id);
- __guc_engine_policy_add_preemption_timeout(&policy, 1);
+ __guc_engine_policy_start_klv(&policy, e->guc->id);
+ __guc_engine_policy_add_preemption_timeout(&policy, 1);
xe_guc_ct_send(&guc->ct, (u32 *)&policy.h2g,
__guc_engine_policy_action_size(&policy), 0, 0);
/* TODO: missing handling of HAS_L3_CCS_READ platforms */
const u8 mocs_read_idx = gt->mocs.uc_index;
u32 ring_cmd_cctl_val = REG_FIELD_PREP(CMD_CCTL_WRITE_OVERRIDE_MASK, mocs_write_idx) |
- REG_FIELD_PREP(CMD_CCTL_READ_OVERRIDE_MASK, mocs_read_idx);
+ REG_FIELD_PREP(CMD_CCTL_READ_OVERRIDE_MASK, mocs_read_idx);
struct xe_rtp_process_ctx ctx = XE_RTP_PROCESS_CTX_INITIALIZER(hwe);
const struct xe_rtp_entry_sr engine_entries[] = {
/*