Re: [PATCH] drm/etnaviv: fix external abort seen on GC600 rev 0x19
From: Lucas Stach
Date: Mon Aug 24 2020 - 07:05:00 EST
Hi Russell,
Am Sonntag, den 23.08.2020, 20:19 +0100 schrieb Russell King - ARM Linux admin:
> On Sun, Aug 23, 2020 at 09:10:25PM +0200, Christian Gmeiner wrote:
> > Hi
> >
> > > I have formally tested the patch with 5.7.10 - and it doesn't resolve
> > > the issue - sadly :(
> > >
> > > From my testing, the reads on
> > > VIVS_HI_CHIP_PRODUCT_ID
> > > VIVS_HI_CHIP_ECO_ID
> > > need to be conditional - while
> > > VIVS_HI_CHIP_CUSTOMER_ID
> > > seems to be okay.
> > >
> >
> > Uhh.. okay.. just send a V2 - thanks for testing :)
>
> There is also something else going on with the GC600 - 5.4 worked fine,
> 5.8 doesn't - my 2D Xorg driver gets stuck waiting on a BO after just
> a couple of minutes. Looking in debugfs, there's a whole load of BOs
> that are listed as "active", yet the GPU is idle:
>
> 00020000: A 0 ( 7) 00000000 00000000 8294400
> 00010000: I 0 ( 1) 00000000 00000000 4096
> 00010000: I 0 ( 1) 00000000 00000000 4096
> 00010000: I 0 ( 1) 00000000 00000000 327680
> 00010000: A 0 ( 7) 00000000 00000000 8388608
> 00010000: I 0 ( 1) 00000000 00000000 8388608
> 00010000: I 0 ( 1) 00000000 00000000 8388608
> 00010000: A 0 ( 7) 00000000 00000000 8388608
> 00010000: A 0 ( 3) 00000000 00000000 8388608
> 00010000: A 0 ( 4) 00000000 00000000 8388608
> 00010000: A 0 ( 3) 00000000 00000000 8388608
> 00010000: A 0 ( 3) 00000000 00000000 8388608
> 00010000: A 0 ( 3) 00000000 00000000 8388608
> ....
> 00010000: A 0 ( 3) 00000000 00000000 8388608
> Total 38 objects, 293842944 bytes
>
> My guess is there's something up with the way a job completes that's
> causing the BOs not to be marked inactive. I haven't yet been able
> to debug any further.
The patch I just sent out should fix this issue. The DRM scheduler is
doing some funny business which breaks our job done signalling if the
GPU timeout has been hit, even if our timeout handler is just extending
the timeout as the GPU is still working normally.
Regards,
Lucas