Quoting Michał Winiarski (2017-10-19 19:36:18) > +#define GUC_LOST_IRQ_WORK_DELAY_MS 100 > +static void guc_lost_user_interrupt(struct work_struct *work) > +{ > + struct guc_preempt_work *preempt_work = > + container_of(to_delayed_work(work), typeof(*preempt_work), > + lost_irq_work); > + struct intel_engine_cs *engine = preempt_work->engine; > + struct intel_guc *guc = &engine->i915->guc; Since you switched preempt_work to be stored within intel_guc, you can use container_of to get to the guc and cut out the dance. Here and inject_preempt_context. -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx