*/
long xe_guc_ct_queue_proc_time_jiffies(struct xe_guc_ct *ct)
{
- BUILD_BUG_ON(!IS_ALIGNED(CTB_H2G_BUFFER_SIZE, SZ_4));
+ BUILD_BUG_ON(!IS_ALIGNED(CTB_H2G_BUFFER_SIZE, SZ_4K));
return (CTB_H2G_BUFFER_SIZE / SZ_4K) * HZ;
}
len + GUC_CTB_HDR_LEN);
*sleep_total_ms += xe_sleep_exponential_ms(sleep_period_ms, 64);
} else {
- struct xe_device *xe = ct_to_xe(ct);
struct guc_ctb *g2h = &ct->ctbs.g2h;
int ret;
ret = dequeue_one_g2h(ct);
if (ret < 0) {
if (ret != -ECANCELED)
- xe_gt_err(ct_to_gt(ct), "CTB receive failed (%pe)",
+ xe_gt_err(ct_to_gt(ct), "CTB receive failed (%pe)\n",
ERR_PTR(ret));
return false;
}
*/
mutex_lock(&ct->lock);
if (!ret) {
- xe_gt_err(gt, "Timed out wait for G2H, fence %u, action %04x, done %s",
+ xe_gt_err(gt, "Timed out wait for G2H, fence %u, action %04x, done %s\n",
g2h_fence.seqno, action[0], str_yes_no(g2h_fence.done));
xa_erase(&ct->fence_lookup, g2h_fence.seqno);
mutex_unlock(&ct->lock);
ret = xe_guc_tlb_inval_done_handler(guc, payload, adj_len);
break;
default:
- xe_gt_warn(gt, "NOT_POSSIBLE");
+ xe_gt_warn(gt, "NOT_POSSIBLE\n");
}
if (ret) {
mutex_unlock(&ct->lock);
if (unlikely(ret == -EPROTO || ret == -EOPNOTSUPP)) {
- xe_gt_err(ct_to_gt(ct), "CT dequeue failed: %d", ret);
+ xe_gt_err(ct_to_gt(ct), "CT dequeue failed: %d\n", ret);
CT_DEAD(ct, NULL, G2H_RECV);
kick_reset(ct);
}