All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: "Zhi, Yong" <yong.zhi@intel.com>
Cc: Tomasz Figa <tfiga@chromium.org>,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	"Mani, Rajmohan" <rajmohan.mani@intel.com>,
	"Toivonen, Tuukka" <tuukka.toivonen@intel.com>,
	"Hu, Jerry W" <jerry.w.hu@intel.com>,
	"Zheng, Jian Xu" <jian.xu.zheng@intel.com>
Subject: Re: [PATCH v6 06/12] intel-ipu3: css: Add support for firmware management
Date: Fri, 21 Sep 2018 14:51:55 +0300	[thread overview]
Message-ID: <20180921115154.5uscfe2eqt75ugsp@kekkonen.localdomain> (raw)
In-Reply-To: <C193D76D23A22742993887E6D207B54D3DAFB78C@ORSMSX103.amr.corp.intel.com>

Hi Yong,

On Wed, Sep 19, 2018 at 10:57:55PM +0000, Zhi, Yong wrote:
...
> > > +struct imgu_abi_osys_frame_params {
> > > +       /* Output pins */
> > > +       __u32 enable;
> > > +       __u32 format;           /* enum imgu_abi_osys_format */
> > > +       __u32 flip;
> > > +       __u32 mirror;
> > > +       __u32 tiling;           /* enum imgu_abi_osys_tiling */
> > > +       __u32 width;
> > > +       __u32 height;
> > > +       __u32 stride;
> > > +       __u32 scaled;
> > > +} __packed;
> > [snip]
> > > +/* Defect pixel correction */
> > > +
> > > +struct imgu_abi_dpc_config {
> > > +       __u8 __reserved[240832];
> > > +} __packed;
> > 
> > Do we need this structure? One could just add a reserved field in the parent
> > structure. Also, just to confirm, is 240832 really the right value here?
> > Where does it come from? Please create a macro for it, possibly further
> > breaking it down into the values used to compute this number.
> > 
> 
> We can add a reserved field in the parent structure, the size is based on
> original definition of dpc config which was removed since it's not
> enabled/used.

What's your plan with the DPC? If you don't plan to add it now, you could
as well drop the configuration for that block. If there's a need to add it
later on, you can still do it by defining a new struct for the buffer. Or
simply adding it at the end of the existing struct while allowing the use
of the old size without the DPC configuration.

There would be a little extra work to do there by that time when DPC
support would be added, but OTOH it seems silly to have quarter of a
megabyte of extra stuff to pass around in a struct that's never used.

-- 
Regards,

Sakari Ailus
sakari.ailus@linux.intel.com

  reply	other threads:[~2018-09-21 17:41 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-30  2:14 [PATCH v6 00/12] Intel IPU3 ImgU patchset Yong Zhi
2018-03-30  2:14 ` [PATCH v6 01/12] v4l: Add Intel IPU3 meta buffer formats Yong Zhi
2018-03-30  2:14 ` [PATCH v6 02/12] intel-ipu3: Add user space API definitions Yong Zhi
2018-06-18  6:09   ` Tomasz Figa
2018-06-20 22:21     ` Zhi, Yong
2018-03-30  2:14 ` [PATCH v6 03/12] intel-ipu3: mmu: Implement driver Yong Zhi
2018-06-18  6:45   ` Tomasz Figa
2018-06-18 14:56     ` Zhi, Yong
2018-03-30  2:14 ` [PATCH v6 04/12] intel-ipu3: Implement DMA mapping functions Yong Zhi
2018-06-18  7:08   ` Tomasz Figa
2018-06-18 15:42     ` Zhi, Yong
2018-06-19 13:43       ` Tomasz Figa
2018-03-30  2:14 ` [PATCH v6 05/12] intel-ipu3: css: Add dma buff pool utility functions Yong Zhi
2018-03-30  2:14 ` [PATCH v6 06/12] intel-ipu3: css: Add support for firmware management Yong Zhi
2018-07-02  7:05   ` Tomasz Figa
2018-09-19 22:57     ` Zhi, Yong
2018-09-21 11:51       ` Sakari Ailus [this message]
2018-09-21 13:42         ` Zhi, Yong
2018-03-30  2:14 ` [PATCH 08/12] intel-ipu3: css: Compute and program ccs Yong Zhi
2018-03-30  2:14 ` [PATCH v6 09/12] intel-ipu3: css: Initialize css hardware Yong Zhi
2018-03-30  2:14 ` [PATCH v6 10/12] intel-ipu3: Add css pipeline programming Yong Zhi
2018-04-26  7:12   ` Tomasz Figa
2018-04-26 16:55     ` Zhi, Yong
2018-03-30  2:14 ` [PATCH v6 11/12] intel-ipu3: Add v4l2 driver based on media framework Yong Zhi
2018-07-02  7:49   ` Tomasz Figa
2018-09-16 20:03     ` Zhi, Yong
2018-09-18 15:15       ` Tomasz Figa
2018-03-30  2:15 ` [PATCH v6 12/12] intel-ipu3: Add imgu top level pci device driver Yong Zhi
2018-04-26  7:15   ` Tomasz Figa
2018-04-26 17:22     ` Zhi, Yong
2018-05-01  3:13       ` Tomasz Figa
2018-07-02  8:08   ` Tomasz Figa
2018-09-16 20:20     ` Zhi, Yong
2018-09-18 15:22       ` Tomasz Figa
2018-09-24 17:16         ` Zhi, Yong
     [not found] ` <1522376100-22098-8-git-send-email-yong.zhi@intel.com>
2018-04-25  9:11   ` [PATCH v6 07/12] intel-ipu3: css: Add static settings for image pipeline Tomasz Figa
2018-04-26  6:41     ` Sakari Ailus
2018-04-26  6:41 ` [PATCH v6 00/12] Intel IPU3 ImgU patchset Sakari Ailus

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=20180921115154.5uscfe2eqt75ugsp@kekkonen.localdomain \
    --to=sakari.ailus@linux.intel.com \
    --cc=jerry.w.hu@intel.com \
    --cc=jian.xu.zheng@intel.com \
    --cc=linux-media@vger.kernel.org \
    --cc=rajmohan.mani@intel.com \
    --cc=tfiga@chromium.org \
    --cc=tuukka.toivonen@intel.com \
    --cc=yong.zhi@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 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.