All of lore.kernel.org
 help / color / mirror / Atom feed
From: Emil Velikov <emil.l.velikov@gmail.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: ML dri-devel <dri-devel@lists.freedesktop.org>,
	"moderated list:ARM/S5P EXYNOS AR..."
	<linux-samsung-soc@vger.kernel.org>,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	Seung-Woo Kim <sw0312.kim@samsung.com>,
	Tobias Jakobi <tjakobi@math.uni-bielefeld.de>,
	Sakari Ailus <sakari.ailus@iki.fi>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: [RFC v2 1/2] drm/exynos: Add Picture Processor framework
Date: Mon, 8 May 2017 14:43:53 +0100	[thread overview]
Message-ID: <CACvgo52aq--kby0stBjEyd4+8gcaQHBqzAxBzdV-jB6OgZfahw@mail.gmail.com> (raw)
In-Reply-To: <1494234699-23843-2-git-send-email-m.szyprowski@samsung.com>

Hi Marek,

A couple of small nitpicks from UAPI POV.

On 8 May 2017 at 10:11, Marek Szyprowski <m.szyprowski@samsung.com> wrote:

> --- a/include/uapi/drm/exynos_drm.h
> +++ b/include/uapi/drm/exynos_drm.h

> +struct drm_exynos_pp_get_res {
> +       __u64 pp_id_ptr;
> +       __u32 count_pps;
Add __u32 pad - sizeof(struct ...) should be multiple of sizeof(__u64).


> +struct drm_exynos_pp_get {
> +       __u32 pp_id;
> +       __u32 capabilities;
> +
> +       __u32 src_format_count;
> +       __u32 dst_format_count;
> +       __u32 params_count;
> +       __u32 reserved1;
> +
Replace with __u32 flags; so that you can extend the struct as applicable.

> +       __u64 src_format_type_ptr;
> +       __u64 dst_format_type_ptr;
> +       __u64 params_ptr;
> +       __u64 reserved2;
And now you can drop this piece.


> +struct drm_exynos_pp_commit {
> +       __u32 id;
> +       __u32 flags;
> +       __u32 params_count;
> +       __u32 reserved;
Why the reserved here - flags should help you extend as needed.

> +       __u64 param_ids_ptr;
> +       __u64 param_values_ptr;
> +       __u64 user_data;
Unused user_data?


> +struct drm_exynos_pp_event {
> +       struct drm_event        base;
> +       __u64                   user_data;
Unused user_data?

> +       __u32                   tv_sec;
> +       __u32                   tv_usec;
> +       __u32                   pp_id;
> +       __u32                   sequence;
> +       __u64                   reserved;
Drop in favour of flags?

Regards,
Emil

  reply	other threads:[~2017-05-08 13:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170508091205eucas1p277086174c1d02695555200fab0e20211@eucas1p2.samsung.com>
2017-05-08  9:11 ` [RFC v2 0/2] Exynos DRM: add Picture Processor extension Marek Szyprowski
     [not found]   ` <CGME20170508091206eucas1p182d473b7ec304bd71bd8e5c4d4938c53@eucas1p1.samsung.com>
2017-05-08  9:11     ` [RFC v2 1/2] drm/exynos: Add Picture Processor framework Marek Szyprowski
2017-05-08 13:43       ` Emil Velikov [this message]
2017-05-09 10:50         ` Marek Szyprowski
     [not found]   ` <CGME20170508091207eucas1p1ae254a41493a65ee25c1cc1c9cc95017@eucas1p1.samsung.com>
2017-05-08  9:11     ` [RFC v2 2/2] drm/exynos: Convert Exynos Rotator driver to Picture Processor interface Marek Szyprowski

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=CACvgo52aq--kby0stBjEyd4+8gcaQHBqzAxBzdV-jB6OgZfahw@mail.gmail.com \
    --to=emil.l.velikov@gmail.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=sakari.ailus@iki.fi \
    --cc=sw0312.kim@samsung.com \
    --cc=tjakobi@math.uni-bielefeld.de \
    /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.