All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Figa <tfiga@chromium.org>
To: Yong Zhi <yong.zhi@intel.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	"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 04/12] intel-ipu3: Implement DMA mapping functions
Date: Tue, 19 Jun 2018 22:43:27 +0900	[thread overview]
Message-ID: <CAAFQd5CWK5E8zuRKcxsZSxY5OUkQ57iYZAewP6aN85bF6LJ-FA@mail.gmail.com> (raw)
In-Reply-To: <C193D76D23A22742993887E6D207B54D341DB176@ORSMSX106.amr.corp.intel.com>

On Tue, Jun 19, 2018 at 12:42 AM Zhi, Yong <yong.zhi@intel.com> wrote:
>
> Hi, Tomasz,
>
> Thanks for the review.
>
> > -----Original Message-----
> > From: Tomasz Figa [mailto:tfiga@chromium.org]
> > Sent: Monday, June 18, 2018 12:09 AM
> > To: Zhi, Yong <yong.zhi@intel.com>
> > Cc: Linux Media Mailing List <linux-media@vger.kernel.org>; Sakari Ailus
> > <sakari.ailus@linux.intel.com>; 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 04/12] intel-ipu3: Implement DMA mapping
> > functions
> >
> > On Fri, Mar 30, 2018 at 11:15 AM Yong Zhi <yong.zhi@intel.com> wrote:
[snip]
> > > diff --git a/drivers/media/pci/intel/ipu3/ipu3.h
> > > b/drivers/media/pci/intel/ipu3/ipu3.h
> > > new file mode 100644
> > > index 000000000000..2ba6fa58e41c
> > > --- /dev/null
> > > +++ b/drivers/media/pci/intel/ipu3/ipu3.h
> > > @@ -0,0 +1,151 @@
> > > +/* SPDX-License-Identifier: GPL-2.0 */
> > > +/* Copyright (C) 2018 Intel Corporation */
> > > +
> > > +#ifndef __IPU3_H
> > > +#define __IPU3_H
> > > +
> > > +#include <linux/iova.h>
> > > +#include <linux/pci.h>
> > > +
> > > +#include <media/v4l2-device.h>
> > > +#include <media/videobuf2-dma-sg.h>
> > > +
> > > +#include "ipu3-css.h"
> > > +
> > > +#define IMGU_NAME                      "ipu3-imgu"
> > > +
> > > +/*
> > > + * The semantics of the driver is that whenever there is a buffer
> > > +available in
> > > + * master queue, the driver queues a buffer also to all other active
> > nodes.
> > > + * If user space hasn't provided a buffer to all other video nodes
> > > +first,
> > > + * the driver gets an internal dummy buffer and queues it.
> > > + */
> > > +#define IMGU_QUEUE_MASTER              IPU3_CSS_QUEUE_IN
> > > +#define IMGU_QUEUE_FIRST_INPUT         IPU3_CSS_QUEUE_OUT
> > > +#define IMGU_MAX_QUEUE_DEPTH           (2 + 2)
> > > +
> > > +#define IMGU_NODE_IN                   0 /* Input RAW image */
> > > +#define IMGU_NODE_PARAMS               1 /* Input parameters */
> > > +#define IMGU_NODE_OUT                  2 /* Main output for still or video
> > */
> > > +#define IMGU_NODE_VF                   3 /* Preview */
> > > +#define IMGU_NODE_PV                   4 /* Postview for still capture */
> > > +#define IMGU_NODE_STAT_3A              5 /* 3A statistics */
> > > +#define IMGU_NODE_NUM                  6
> >
> > Does this file really belong to this patch?
> >
>
> Included because ipu3-dmamap uses struct defined in this header.

It sounds like we should either move this patch later in the series or
have just the necessary minimum or only forward declarations added in
this patch.

Best regards,
Tomasz

  reply	other threads:[~2018-06-19 13:43 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 [this message]
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
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=CAAFQd5CWK5E8zuRKcxsZSxY5OUkQ57iYZAewP6aN85bF6LJ-FA@mail.gmail.com \
    --to=tfiga@chromium.org \
    --cc=jerry.w.hu@intel.com \
    --cc=jian.xu.zheng@intel.com \
    --cc=linux-media@vger.kernel.org \
    --cc=rajmohan.mani@intel.com \
    --cc=sakari.ailus@linux.intel.com \
    --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.