From: "Moudy Ho (何宗原)" <Moudy.Ho@mediatek.com>
To: "matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"mchehab@kernel.org" <mchehab@kernel.org>,
"angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>,
"hverkuil-cisco@xs4all.nl" <hverkuil-cisco@xs4all.nl>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"chunkuang.hu@kernel.org" <chunkuang.hu@kernel.org>,
Project_Global_Chrome_Upstream_Group
<Project_Global_Chrome_Upstream_Group@mediatek.com>
Subject: Re: [PATCH v3 10/10] media: platform: mtk-mdp3: decompose hardware-related information in shared memory
Date: Mon, 7 Nov 2022 06:35:30 +0000 [thread overview]
Message-ID: <f7a6fedfb67723054ed2892bc37c2c05b9f74661.camel@mediatek.com> (raw)
In-Reply-To: <bb439583-9963-b705-9239-b8cedc71b5db@collabora.com>
On Thu, 2022-11-03 at 11:02 +0100, AngeloGioacchino Del Regno wrote:
> Il 03/11/22 07:48, Moudy Ho ha scritto:
> > The communication between the MDP3 kernel driver and SCP is to
> > pass a shared memory through the cooperation of "mtk-mdp3-vpu.c"
> > and
> > remoteproc driver.
> > The data structure of this shared memory is defined in "mtk-img-
> > ipi.h",
> > as shown below:
> >
> > vpu->work_addr -> +-----------------------------------------+
> > | |
> > | To SCP : Input frame parameters |
> > | (struct img_ipi_frameparam) |
> > | |
> > vpu->pool -> +-----------------------------------------+
> > | |
> > | From SCP : Output component config pool |
> > | (struct img_config) |
> > | |
> > | *struct img_confg 1 |
> > | | |
> > | | |
> > | v |
> > | *struct img_config N |
> > | (N = MDP_CONFIG_POOL_SIZE) |
> > +-----------------------------------------+
> >
> > One output component configuration contains the components
> > currently used by the pipeline, and has the register settings
> > that each component needs to set.
> >
> > Since the quantity, type and function of components on each chip
> > will vary, the effect is that the size of the "struct img_config"
> > and its substructures will be different on each chip.
> > In addition, all chips will have to update their SCP firmware for
> > every change if the output component config structure is defined
> > and shared by a common header.
> >
> > Therefore, all functions that operate on "struct img_config" and
> > its substructures must be separated by chips and so are the
> > relevant definations.
> >
> > Signed-off-by: Moudy Ho <moudy.ho@mediatek.com>
>
> Hi Moudy,
> thanks for this much needed rework of the IMG-IPI parameter passing
> architecture!
>
> I can for sure go for a review of the code that you've currently
> pushed, but I
> would prefer that you also push support for MT8192 and/or MT8195
> (requiring the
> different IPI structures and alignment), as previously discussed.
>
> That will make us able to actually perform validation and will make
> us able to
> give you a better code review.
>
> Since this series is definitely big (hence, a bit difficult to
> review, but that's
> fine, as there are no alternatives!), you can push support for the
> new chip(s) in
> a separate series, dependent on this one, so that we also won't block
> this rework
> for SoC-specific implementation code reviews.
>
> Many thanks again!
>
> P.S.: There's a typo in this commit message `*struct img_confg` :-)
>
> Cheers,
> Angelo
Hi Angelo,
Thank you for your time and patience in this matter.
As you said, the first 8195 settings related to this series will be
completed and released as soon as possible for review.
Also, the typo you pointed out(thanks a lot) will be corrected in the
next release.
Sincerely,
Moudy Ho
prev parent reply other threads:[~2022-11-07 6:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-03 6:48 [PATCH v3 00/10] Add support for multiple chips Moudy Ho
2022-11-03 6:48 ` [PATCH v3 01/10] media: platform: mtk-mdp3: add chip configuration header file Moudy Ho
2022-11-03 6:48 ` [PATCH v3 02/10] media: platform: mtk-mdp3: chip config split about component settings Moudy Ho
2022-11-03 6:48 ` [PATCH v3 03/10] media: platform: mtk-mdp3: chip config split about subcomponents Moudy Ho
2022-11-03 6:48 ` [PATCH v3 04/10] media: platform: mtk-mdp3: chip config split about color format Moudy Ho
2022-11-03 6:48 ` [PATCH v3 05/10] media: platform: mtk-mdp3: chip config split about resolution limitations Moudy Ho
2022-11-03 6:48 ` [PATCH v3 06/10] media: platform: mtk-mdp3: chip config split about pipe info Moudy Ho
2022-11-03 6:48 ` [PATCH v3 07/10] media: platform: mtk-mdp3: extend mdp_color format for compressed mode Moudy Ho
2022-11-03 6:48 ` [PATCH v3 08/10] media: platform: mtk-mdp3: extend shared memory structure to 4-byte aligned Moudy Ho
2022-11-03 6:48 ` [PATCH v3 09/10] media: platform: mtk-mdp3: Split general definitions used in MDP3 Moudy Ho
2022-11-03 6:48 ` [PATCH v3 10/10] media: platform: mtk-mdp3: decompose hardware-related information in shared memory Moudy Ho
2022-11-03 10:02 ` AngeloGioacchino Del Regno
2022-11-07 6:35 ` Moudy Ho (何宗原) [this message]
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=f7a6fedfb67723054ed2892bc37c2c05b9f74661.camel@mediatek.com \
--to=moudy.ho@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox