All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Ray Strode <halfline@gmail.com>
Cc: daniel.vetter@ffwll.ch, Xinhui.Pan@amd.com,
	dri-devel@lists.freedesktop.org, mdaenzer@redhat.com,
	alexander.deucher@amd.com, airlied@redhat.com,
	christian.koenig@amd.com
Subject: Re: [PATCH] drm/atomic: Perform blocking commits on workqueue
Date: Wed, 4 Oct 2023 20:27:36 +0300	[thread overview]
Message-ID: <ZR2giGixi7OqLzvs@intel.com> (raw)
In-Reply-To: <CAA_UwzJqwigNvMZ9C_tu0Hb5cLRq0u44FXa9+h3m7X05psGYhQ@mail.gmail.com>

On Thu, Sep 28, 2023 at 03:33:46PM -0400, Ray Strode wrote:
> hI,
> 
> On Thu, Sep 28, 2023 at 11:05 AM Ville Syrjälä
> <ville.syrjala@linux.intel.com> wrote:
> > Here's my earlier take on this: https://patchwork.freedesktop.org/series/108668/
> 
> Nice. Was there push back? Why didn't it go in?

No one really seemed all that interested in it. I'd still like to get
it in, if for no other reason than to make things operate more uniformly.
Though there are lots of legacy codepaths left that still hold the locks
over the whole commit, but those could be fixed up as a followup.

> 
> > execpt I went further and moved the flush past the unlock in the end.
> 
> Is that necessary? I was wondering about that but there's this comment
> in the code:

I'm not really sure there is any point in doing this otherwise. 
It would just change which thread executes the code but everything
else would still get blocked on the locks the same as before.

> 
> *  ... Locks, especially struct
>  * &drm_modeset_lock, should not be held in worker threads or any other
>  * asynchronous context used to commit the hardware state.
> 
> So it made me think there would be no locks held, and then I threw a
> scratch build
> at someone who reported it didn't deadlock and solved their issue.
> 
> --Ray

-- 
Ville Syrjälä
Intel

  reply	other threads:[~2023-10-04 17:28 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 17:05 [PATCH] drm/atomic: Perform blocking commits on workqueue Ray Strode
2023-09-27  8:04 ` Christian König
2023-09-27 20:25   ` Ray Strode
2023-09-28  6:56     ` Christian König
2023-09-28  9:43       ` Michel Dänzer
2023-09-28 12:59         ` Ray Strode
2023-09-28 13:37           ` Michel Dänzer
2023-09-28 14:51             ` Christian König
2023-09-28 15:19               ` Michel Dänzer
2023-09-28 12:46       ` Ray Strode
2023-09-28 13:23         ` Christian König
2023-09-28 13:58           ` Michel Dänzer
2023-09-28 15:02             ` Christian König
2023-09-28 14:20           ` Ray Strode
2023-09-28 15:03 ` Ville Syrjälä
2023-09-28 19:33   ` Ray Strode
2023-10-04 17:27     ` Ville Syrjälä [this message]
2023-10-04 19:38       ` Ray Strode
2023-10-05  9:57 ` Daniel Vetter
2023-10-05 10:16   ` Ville Syrjälä
2023-10-10 11:36     ` Daniel Vetter
2023-10-05 11:51   ` Christian König
2023-10-05 21:04   ` Ray Strode
2023-10-06  7:12     ` Christian König
2023-10-06 18:48       ` Ray Strode
2023-10-08 10:37         ` Michel Dänzer
2023-10-09  6:42         ` Christian König
2023-10-09 12:19           ` Ville Syrjälä
2023-10-09 12:36             ` Christian König
2023-10-10 11:41               ` Daniel Vetter
2023-10-12 18:19                 ` Ray Strode
2023-10-13  9:41                   ` Daniel Vetter
2023-10-13 10:22                     ` Michel Dänzer
2023-10-17  7:32                       ` Daniel Vetter
2023-10-17  7:55                         ` Christian König
2023-10-13 14:04                     ` Ray Strode
2023-10-17  7:37                       ` Daniel Vetter

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=ZR2giGixi7OqLzvs@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=Xinhui.Pan@amd.com \
    --cc=airlied@redhat.com \
    --cc=alexander.deucher@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=halfline@gmail.com \
    --cc=mdaenzer@redhat.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.