[PATCH v5 1/2] xe/oa: Fix query mode of operation for OAR/OAC

Dixit, Ashutosh ashutosh.dixit at intel.com
Fri Dec 20 18:24:45 UTC 2024


On Fri, 20 Dec 2024 10:08:41 -0800, Cavitt, Jonathan wrote:
>
> > diff --git a/drivers/gpu/drm/xe/xe_ring_ops.c b/drivers/gpu/drm/xe/xe_ring_ops.c
> > index 3a75a08b6be9..c8ab37fa0d19 100644
> > --- a/drivers/gpu/drm/xe/xe_ring_ops.c
> > +++ b/drivers/gpu/drm/xe/xe_ring_ops.c
> > @@ -223,7 +223,10 @@ static int emit_pipe_imm_ggtt(u32 addr, u32 value, bool stall_only, u32 *dw,
> >
> >  static u32 get_ppgtt_flag(struct xe_sched_job *job)
> >  {
> > -	return job->q->vm ? BIT(8) : 0;
> > +	if (job->q->vm && !job->ggtt)
> > +		return BIT(8);
>
> Non-blocking question:
> I'm assuming that xe_oa_submit_bb isn't the only function that can submit
> jobs for get_ppgtt_flag to decode, because otherwise job->ggtt would always
> return true?

Look at callers of xe_sched_job_push.


More information about the Intel-xe mailing list