From: Eric Engestrom <eric.engestrom@intel.com>
To: "Li, Juston" <juston.li@intel.com>
Cc: daniels@collabora.com, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v4 libdrm 2/2] Add drmModeGetFB2
Date: Tue, 11 Feb 2020 12:21:39 +0000 [thread overview]
Message-ID: <20200211122139.pcf2xqtpfmgrfbn4@intel.com> (raw)
In-Reply-To: <d3799f09639f763f548ba7fdbdea604c2c29e7f7.camel@intel.com>
On Thursday, 2020-02-06 17:46:36 +0000, Li, Juston wrote:
> On Wed, 2020-02-05 at 23:27 +0000, Eric Engestrom wrote:
> > On Wednesday, 2020-02-05 23:10:21 +0000, Li, Juston wrote:
> > > On Wed, 2020-02-05 at 22:25 +0000, Eric Engestrom wrote:
> > > > On Friday, 2020-01-31 13:41:09 -0800, Juston Li wrote:
> > > > > From: Daniel Stone <daniels@collabora.com>
> > > > >
> > > > > Add a wrapper around the getfb2 ioctl, which returns extended
> > > > > framebuffer information mirroring addfb2, including multiple
> > > > > planes
> > > > > and
> > > > > modifiers.
> > > > >
> > > > > Changes since v3:
> > > > > - remove unnecessary null check in drmModeFreeFB2 (Daniel
> > > > > Stone)
> > > > >
> > > > > Changes since v2:
> > > > > - getfb2 ioctl has been merged upstream
> > > > > - sync include/drm/drm.h in a seperate patch
> > > > >
> > > > > Changes since v1:
> > > > > - functions should be drm_public
> > > > > - modifier should be 64 bits
> > > > > - update ioctl number
> > > > >
> > > > > Signed-off-by: Juston Li <juston.li@intel.com>
> > > > > Signed-off-by: Daniel Stone <daniels@collabora.com>
> > > > > ---
> > > > > xf86drmMode.c | 36 ++++++++++++++++++++++++++++++++++++
> > > > > xf86drmMode.h | 15 +++++++++++++++
> > > > > 2 files changed, 51 insertions(+)
> > > > >
> > > > > diff --git a/xf86drmMode.c b/xf86drmMode.c
> > > > > index 0cf7992c6e9a..94dc8ce38a5e 100644
> > > > > --- a/xf86drmMode.c
> > > > > +++ b/xf86drmMode.c
> > > > > @@ -1594,3 +1594,39 @@ drmModeRevokeLease(int fd, uint32_t
> > > > > lessee_id)
> > > > > return 0;
> > > > > return -errno;
> > > > > }
> > > > > +
> > > > > +drm_public drmModeFB2Ptr
> > > > > +drmModeGetFB2(int fd, uint32_t fb_id)
> > > > > +{
> > > > > +struct drm_mode_fb_cmd2 get;
> > > > > +drmModeFB2Ptr ret;
> > > > > +int err;
> > > > > +
> > > > > +memclear(get);
> > > > > +get.fb_id = fb_id;
> > > >
> > > > As mentioned on IRC, could you write it like this instead?
> > > >
> > > > struct drm_mode_fb_cmd2 get = {
> > > > .fb_id = fb_id,
> > > > };
> > > >
> > > > With that, consider this patch
> > > > Reviewed-by: Eric Engestrom <eric@engestrom.ch>
> > >
> > > Opps I sent v5 before seeing this but my code style differs and is
> > > probably incorrect :) I'll send v6 with the style corrected.
> > >
> > > Thanks for reviewing!
> >
> > Ah, sorry about that, our emails crossed paths.
> >
> > As for the other patch (I mean 1/2), did you follow the instructions
> > in
> > include/drm/README, specifically the section titled "When and how to
> > update these files" ?
> > Your commit message makes it look like you just applied that one
> > change
> > instead of syncing with `make headers_install`.
> >
> > Cheers,
> > Eric
>
> Yes, drm.h was copied from 'make headers_install' from drm-misc-next.
> It had been updated fairly recently so GETFB2 is the only delta.
>
> Sorry, I didn't see the README so the commit message isn't exactly as
> requested.
I kind of expected that this was the case :)
All good then, with the commit message adjusted to make this clear,
patch 1 is:
Acked-by: Eric Engestrom <eric@engestrom.ch>
>
>
> Also, only drm.h was synced, is that preferred or would it be better to
> sync the entire header directory?
Usually people either update their driver's header and core, or just core,
so this is fine :)
I assume DanielS will merge this for you?
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-02-11 12:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-31 21:41 [PATCH v4 libdrm 1/2] include/drm: sync up drm.h to 3ff4c24bdb1f Juston Li
2020-01-31 21:41 ` [PATCH v4 libdrm 2/2] Add drmModeGetFB2 Juston Li
2020-02-05 22:25 ` Eric Engestrom
2020-02-05 23:10 ` Li, Juston
2020-02-05 23:27 ` Eric Engestrom
2020-02-06 17:46 ` Li, Juston
2020-02-11 12:21 ` Eric Engestrom [this message]
2020-02-13 4:32 ` Daniel Stone
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=20200211122139.pcf2xqtpfmgrfbn4@intel.com \
--to=eric.engestrom@intel.com \
--cc=daniels@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=juston.li@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox