All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@collabora.com>
To: Steven Price <steven.price@arm.com>
Cc: "Liviu Dudau" <liviu.dudau@arm.com>,
	"Adrián Larumbe" <adrian.larumbe@collabora.com>,
	"Christopher Healy" <healych@amazon.com>,
	dri-devel@lists.freedesktop.org, kernel@collabora.com
Subject: Re: [PATCH v2 3/3] drm/panthor: Report innocent group kill
Date: Mon, 28 Oct 2024 16:38:25 +0100	[thread overview]
Message-ID: <20241028163825.1d5d4ed4@collabora.com> (raw)
In-Reply-To: <564021d1-9846-4b9e-b045-0d965c47639d@arm.com>

On Mon, 28 Oct 2024 15:31:19 +0000
Steven Price <steven.price@arm.com> wrote:

> On 28/10/2024 11:48, Boris Brezillon wrote:
> > Groups can be killed during a reset even though they did nothing wrong.
> > That usually happens when the FW is put in a bad state by other groups,
> > resulting in group suspension failures when the reset happens.
> > 
> > If we end up in that situation, flag the group innocent and report
> > innocence through a new DRM_PANTHOR_GROUP_STATE flag.  
> 
> Sadly I don't see any code to return that new flag... Shouldn't there be
> a change to panthor_get_get_state()?

My bad, I had those changes in a debug commit and somehow overlooked the
following two lines when preparing the final version:

@@ -3570,6 +3586,8 @@ int panthor_group_get_state(struct panthor_file
*pfile, get_state->state |= DRM_PANTHOR_GROUP_STATE_FATAL_FAULT;
                get_state->fatal_queues = group->fatal_queues;
        }
+       if (group->innocent)
+               get_state->state |= DRM_PANTHOR_GROUP_STATE_INNOCENT;
        mutex_unlock(&sched->lock);
 
        group_put(group);

Will send a v3 shortly.

      reply	other threads:[~2024-10-28 15:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-28 11:48 [PATCH v2 0/3] drm/panthor: Fix group state reporting Boris Brezillon
2024-10-28 11:48 ` [PATCH v2 1/3] drm/panthor: Fail job creation when the group is dead Boris Brezillon
2024-10-28 11:48 ` [PATCH v2 2/3] drm/panthor: Report group as timedout when we fail to properly suspend Boris Brezillon
2024-10-28 15:31   ` Steven Price
2024-10-29 14:11   ` Liviu Dudau
2024-10-28 11:48 ` [PATCH v2 3/3] drm/panthor: Report innocent group kill Boris Brezillon
2024-10-28 15:31   ` Steven Price
2024-10-28 15:38     ` Boris Brezillon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241028163825.1d5d4ed4@collabora.com \
    --to=boris.brezillon@collabora.com \
    --cc=adrian.larumbe@collabora.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=healych@amazon.com \
    --cc=kernel@collabora.com \
    --cc=liviu.dudau@arm.com \
    --cc=steven.price@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.