From: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Matthew Wilcox <willy@infradead.org>,
outreachy-kernel@googlegroups.com,
dri-devel@lists.freedesktop.org,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
Melissa Wen <melissa.srw@gmail.com>
Subject: Re: [Outreachy kernel] Re: [PATCH] drm/amd/amdgpu/amdgpu_drv.c: Replace drm_modeset_lock_all with drm_modeset_lock
Date: Mon, 26 Apr 2021 21:06:10 +0200 [thread overview]
Message-ID: <28921365.3cLsizAqWR@linux.local> (raw)
In-Reply-To: <YIbmH4LXzIej62su@phenom.ffwll.local>
On Monday, April 26, 2021 6:11:11 PM CEST Daniel Vetter wrote:
> On Thu, Apr 22, 2021 at 05:50:34PM +0100, Matthew Wilcox wrote:
> > On Thu, Apr 22, 2021 at 05:59:51PM +0200, Fabio M. De Francesco wrote:
> > > - drm_modeset_lock_all(drm_dev);
> > > -
> > >
> > > drm_for_each_crtc(crtc, drm_dev) {
> > >
> > > + drm_modeset_lock(&crtc->mutex, NULL);
> > >
> > > if (crtc->state->active) {
> > >
> > > ret = -EBUSY;
> > >
> > > - break;
> > >
> > > }
> > >
> > > + drm_modeset_unlock(&crtc->mutex);
> > > + if (ret < 0)
> > > + break;
> > >
> > > }
> > >
> > > - drm_modeset_unlock_all(drm_dev);
> > > -
> >
> > I might remove the {} around ret = -EBUSY, but this is good.
> >
> > Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
>
> Yup patch looks good, but it's not cc'ed to drm/amdgpu maintainers/m-l, so
> likely won't get picked up. Can you pls check scripts/get_maintainers for
> anything you've missed, add those and resend with Willy's r-b tag
> included?
>
> Then Alex can pick it up for merging.
>
> Thanks, Daniel
>
I had already submitted a v2 of this patch with an added 'Review-by' Matthew
Wilcox under my name. It removed the unnecessary braces that willy pointed
out. However I see that not all maintainers had been cc'ed, so I'm going to
resend it as v3.
Thanks,
Fabio
WARNING: multiple messages have this Message-ID (diff)
From: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Matthew Wilcox <willy@infradead.org>,
David Airlie <airlied@linux.ie>,
Melissa Wen <melissa.srw@gmail.com>,
outreachy-kernel@googlegroups.com,
dri-devel@lists.freedesktop.org,
Thomas Zimmermann <tzimmermann@suse.de>
Subject: Re: [Outreachy kernel] Re: [PATCH] drm/amd/amdgpu/amdgpu_drv.c: Replace drm_modeset_lock_all with drm_modeset_lock
Date: Mon, 26 Apr 2021 21:06:10 +0200 [thread overview]
Message-ID: <28921365.3cLsizAqWR@linux.local> (raw)
In-Reply-To: <YIbmH4LXzIej62su@phenom.ffwll.local>
On Monday, April 26, 2021 6:11:11 PM CEST Daniel Vetter wrote:
> On Thu, Apr 22, 2021 at 05:50:34PM +0100, Matthew Wilcox wrote:
> > On Thu, Apr 22, 2021 at 05:59:51PM +0200, Fabio M. De Francesco wrote:
> > > - drm_modeset_lock_all(drm_dev);
> > > -
> > >
> > > drm_for_each_crtc(crtc, drm_dev) {
> > >
> > > + drm_modeset_lock(&crtc->mutex, NULL);
> > >
> > > if (crtc->state->active) {
> > >
> > > ret = -EBUSY;
> > >
> > > - break;
> > >
> > > }
> > >
> > > + drm_modeset_unlock(&crtc->mutex);
> > > + if (ret < 0)
> > > + break;
> > >
> > > }
> > >
> > > - drm_modeset_unlock_all(drm_dev);
> > > -
> >
> > I might remove the {} around ret = -EBUSY, but this is good.
> >
> > Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
>
> Yup patch looks good, but it's not cc'ed to drm/amdgpu maintainers/m-l, so
> likely won't get picked up. Can you pls check scripts/get_maintainers for
> anything you've missed, add those and resend with Willy's r-b tag
> included?
>
> Then Alex can pick it up for merging.
>
> Thanks, Daniel
>
I had already submitted a v2 of this patch with an added 'Review-by' Matthew
Wilcox under my name. It removed the unnecessary braces that willy pointed
out. However I see that not all maintainers had been cc'ed, so I'm going to
resend it as v3.
Thanks,
Fabio
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2021-04-26 19:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-22 15:59 [PATCH] drm/amd/amdgpu/amdgpu_drv.c: Replace drm_modeset_lock_all with drm_modeset_lock Fabio M. De Francesco
2021-04-22 15:59 ` Fabio M. De Francesco
2021-04-22 16:50 ` Matthew Wilcox
2021-04-22 16:50 ` Matthew Wilcox
2021-04-26 16:11 ` [Outreachy kernel] " Daniel Vetter
2021-04-26 16:11 ` Daniel Vetter
2021-04-26 19:06 ` Fabio M. De Francesco [this message]
2021-04-26 19:06 ` Fabio M. De Francesco
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=28921365.3cLsizAqWR@linux.local \
--to=fmdefrancesco@gmail.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=melissa.srw@gmail.com \
--cc=mripard@kernel.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=tzimmermann@suse.de \
--cc=willy@infradead.org \
/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.