[BUG 4.17] etnaviv-gpu f1840000.gpu: recover hung GPU!
Lucas Stach
l.stach at pengutronix.de
Tue Jun 19 12:28:46 UTC 2018
Am Dienstag, den 19.06.2018, 12:42 +0100 schrieb Russell King - ARM Linux:
> On Tue, Jun 19, 2018 at 01:11:29PM +0200, Lucas Stach wrote:
> > Am Dienstag, den 19.06.2018, 12:00 +0100 schrieb Russell King - ARM Linux:
> > > No, it's not "a really big job" - it's just that the Dove GC600 is not
> > > fast enough to complete _two_ 1080p sized GPU operations within 500ms.
> > > The preceeding job contained two blits - one of them a non-alphablend
> > > copy of:
> > >
> > > 00180000 04200780 0,24,1920,1056 -> 0,24,1920,1056
> > >
> > > and one an alpha blended copy of:
> > >
> > > 00000000 04380780 0,0,1920,1080 -> 0,0,1920,1080
> > >
> > > This is (iirc) something I already fixed with the addition of the
> > > progress detection back before etnaviv was merged into the mainline
> > > kernel.
> >
> > I hadn't expected it to be this slow. I see that we might need to bring
> > back the progress detection to fix the userspace regression, but I'm
> > not fond of this, as it might lead to really bad QoS.
>
> Well, the choices are that or worse overall performance through having
> to ignore the GPU entirely.
>
> > I would prefer userspace tracking the size of the blits and flushing
> > the cmdstream at an appropriate time, so we don't end up with really
> > long running jobs, but I'm not sure if this would be acceptable to
> > you...
>
> The question becomes how to split up two operations. Yes, we could
> submit them individually, but if they're together taking in excess of
> 500ms, then it's likely that individually, each operation will take in
> excess of 250ms which is still a long time.
>
> In any case, I think we need to fix this for 4.17-stable and then try
> to work (a) which operations are taking a long time, and (b) how to
> solve this issue.
Agreed. I'll look into bringing back the process detection for 4.17
stable.
I'm still curious why the GC600 on the Dove is that slow. With
performance like this moving a big(ish) window on the screen must be a
horrible user experience.
> Do we have any way to track how long each submitted job has actually
> taken on the GPU? (Eg, by recording the times that we receive the
> events?) It wouldn't be very accurate for small jobs, but given this
> operation is taking so long, it would give an indication of how long
> this operation is actually taking. etnaviv doesn't appear to have
> any tracepoints, which would've been ideal for that. Maybe this is
> a reason to add some? ;)
See attached patch (which I apparently forgot to send out). The DRM GPU
scheduler has some tracepoints, which might be helpful. The attached
patch adds a drm_sched_job_run tracepoint when a job is queued in the
hardware ring. Together with the existing drm_sched_process_job, this
should get you an idea how long a job takes to process. Note that at
any time up to 4 jobs are allowed in the hardware queue, so you need to
match up the end times.
Regards,
Lucas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-drm-sched-add-tracepoint-for-job-run.patch
Type: text/x-patch
Size: 2522 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180619/288e2361/attachment.bin>
More information about the dri-devel
mailing list