lkml.org 
[lkml]   [2019]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v2 3/3] drm/panfrost: Add initial panfrost driver
    On Tue, Apr 9, 2019 at 10:56 AM Tomeu Vizoso <tomeu.vizoso@collabora.com> wrote:
    >
    > On Mon, 8 Apr 2019 at 23:04, Rob Herring <robh@kernel.org> wrote:
    > >
    > > On Fri, Apr 5, 2019 at 7:30 AM Steven Price <steven.price@arm.com> wrote:
    > > >
    > > > On 01/04/2019 08:47, Rob Herring wrote:
    > > > > This adds the initial driver for panfrost which supports Arm Mali
    > > > > Midgard and Bifrost family of GPUs. Currently, only the T860 and
    > > > > T760 Midgard GPUs have been tested.
    > >
    > > [...]
    > > > > +
    > > > > + if (status & JOB_INT_MASK_ERR(j)) {
    > > > > + job_write(pfdev, JS_COMMAND_NEXT(j), JS_COMMAND_NOP);
    > > > > + job_write(pfdev, JS_COMMAND(j), JS_COMMAND_HARD_STOP_0);
    > > >
    > > > Hard-stopping an already completed job isn't likely to do very much :)
    > > > Also you are using the "_0" version which is only valid when "job chain
    > > > disambiguation" is present.
    >
    > Yeah, guess that can be removed.

    Steven, TBC, are you suggesting removing both lines or leaving
    JS_COMMAND_NOP? I don't think we can ever have a pending job at this
    point as there's no queuing. So the NOP probably isn't needed, but
    doesn't hurt to have it either.

    > > > I suspect in this case you should also be signalling the fence? At the
    > > > moment you rely on the GPU timeout recovering from the fault.
    > >
    > > I'll defer to Tomeu who wrote this (IIRC).
    >
    > Yes, that would be an improvement.

    Actually, I think that would break recovery because the job timeout
    will bail out if the done fence is signaled already. Perhaps we want
    to timeout immediately if that is possible with the scheduler.

    Rob

    \
     
     \ /
      Last update: 2019-04-09 18:15    [W:4.038 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site