From: "Yunfei Dong (董云飞)" <Yunfei.Dong@mediatek.com>
To: "wenst@chromium.org" <wenst@chromium.org>,
"nfraprado@collabora.com" <nfraprado@collabora.com>,
"nicolas@ndufresne.ca" <nicolas@ndufresne.ca>,
"angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>,
"benjamin.gaignard@collabora.com"
<benjamin.gaignard@collabora.com>,
"hverkuil-cisco@xs4all.nl" <hverkuil-cisco@xs4all.nl>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"frkoenig@chromium.org" <frkoenig@chromium.org>,
"stevecho@chromium.org" <stevecho@chromium.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"daniel@ffwll.ch" <daniel@ffwll.ch>,
Project_Global_Chrome_Upstream_Group
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
"hsinyi@chromium.org" <hsinyi@chromium.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>
Subject: Re: [PATCH 2/6] media: mediatek: vcodec: add the definition of decoder status
Date: Mon, 17 Apr 2023 12:10:37 +0000 [thread overview]
Message-ID: <110bf71508ccdc3e7bac47d29b9b08dec712a353.camel@mediatek.com> (raw)
In-Reply-To: <26ac9fbc-cc7a-7f25-0db5-30ede1068501@collabora.com>
Hi AngeloGioacchino,
Thanks for your suggestion.
On Mon, 2023-04-17 at 11:26 +0200, AngeloGioacchino Del Regno wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> Il 17/04/23 07:48, Yunfei Dong ha scritto:
> > Adding the status used to separate different decoder period for
> > core hardware.
> >
> > Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
> > ---
> > drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h | 7
> > +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git
> > a/drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h
> > b/drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h
> > index a5d44bc97c16..19508be08566 100644
> > --- a/drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h
> > +++ b/drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h
> > @@ -21,6 +21,13 @@ struct mtk_vcodec_ctx;
> > struct mtk_vcodec_dev;
> > typedef int (*core_decode_cb_t)(struct vdec_lat_buf *lat_buf);
> >
> > +/* current context isn't work */
> > +#define CONTEXT_LIST_EMPTY (0)
> > +/* queued to the core work list */
> > +#define CONTEXT_LIST_QUEUED (1)
> > +/* context decode done */
> > +#define CONTEXT_LIST_DEC_DONE (2)
>
> I would prefer an enumeration instead; you can keep the documentation
> for those
> status signals with kerneldoc on the new enum.
>
> /**
> * enum core_ctx_status - Context decode status for core hardware
> * @CONTEXT_LIST_EMPTY: No buffer queued on Core HW (must always
> be 0)
> * @CONTEXT_LIST_QUEUED: Buffer queued to the core work list
> * @CONTEXT_LIST_DEC_DONE: Context decode done
> */
> enum core_ctx_status {
> CONTEXT_LIST_EMPTY = 0,
> CONTEXT_LIST_QUEUED,
> CONTEXT_LIST_DEC_DONE,
> }
>
> Moreover, since this is a rather simple addition, please squash this
> commit with
> patch [3/6] where you actually also introduce the actual usage of the
> new enum.
>
Fixed in patch v2.
Best Regards,
Yunfei Dong
> Cheers,
> Angelo
>
next prev parent reply other threads:[~2023-04-17 12:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-17 5:48 [PATCH 0/6] media: mediatek: vcodec: Fix decoder under flow and plt test fails randomly Yunfei Dong
2023-04-17 5:48 ` [PATCH 1/6] media: mediatek: vcodec: can`t regard getting lat buffer fail as error Yunfei Dong
2023-04-17 9:18 ` AngeloGioacchino Del Regno
2023-04-17 12:09 ` Yunfei Dong (董云飞)
2023-04-17 5:48 ` [PATCH 2/6] media: mediatek: vcodec: add the definition of decoder status Yunfei Dong
2023-04-17 9:26 ` AngeloGioacchino Del Regno
2023-04-17 12:10 ` Yunfei Dong (董云飞) [this message]
2023-04-17 5:48 ` [PATCH 3/6] media: mediatek: vcodec: using decoder status instead of core work count Yunfei Dong
2023-04-17 5:48 ` [PATCH 4/6] media: mediatek: vcodec: add one empty lat buffer as the last one to decode Yunfei Dong
2023-04-17 9:35 ` AngeloGioacchino Del Regno
2023-04-17 12:11 ` Yunfei Dong (董云飞)
2023-04-17 5:48 ` [PATCH 5/6] media: mediatek: vcodec: move core context from device to each instance Yunfei Dong
2023-04-17 9:35 ` AngeloGioacchino Del Regno
2023-04-17 5:48 ` [PATCH 6/6] media: mediatek: vcodec: using empty lat buffer as the last one Yunfei Dong
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=110bf71508ccdc3e7bac47d29b9b08dec712a353.camel@mediatek.com \
--to=yunfei.dong@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=benjamin.gaignard@collabora.com \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=frkoenig@chromium.org \
--cc=hsinyi@chromium.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=nfraprado@collabora.com \
--cc=nicolas@ndufresne.ca \
--cc=stevecho@chromium.org \
--cc=wenst@chromium.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;
as well as URLs for NNTP newsgroup(s).