From: "Irui Wang (王瑞)" <Irui.Wang@mediatek.com>
To: "matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"mchehab@kernel.org" <mchehab@kernel.org>,
"hverkuil-cisco@xs4all.nl" <hverkuil-cisco@xs4all.nl>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"Maoguang Meng (孟毛广)" <Maoguang.Meng@mediatek.com>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"Yunfei Dong (董云飞)" <Yunfei.Dong@mediatek.com>,
Project_Global_Chrome_Upstream_Group
<Project_Global_Chrome_Upstream_Group@mediatek.com>
Subject: Re: [PATCH] media: mediatek: vcodec: Add a flag to indicate vdec_fb finding status
Date: Mon, 3 Jul 2023 04:11:12 +0000 [thread overview]
Message-ID: <4bd5aad43622742f1078f8bc4167803ed20f6a68.camel@mediatek.com> (raw)
In-Reply-To: <20230701090521.22240-1-irui.wang@mediatek.com>
Dear all,
A new patch v2 has been sent:
https://patchwork.kernel.org/project/linux-media/list/?series=761892
current patch is superseded and can be abandoned.
Thank you very much
On Sat, 2023-07-01 at 17:05 +0800, Irui Wang wrote:
> "fb_use_list" is vp9 stateful decoder driver to store current
> used or referenced frame buffer, and "fb_free_list" is used to
> store current available to be freed frame buffer. When the
> target frame buffer cannot be found in "fb_use_list", "NULL"
> should be returned to prevent unexpected frame buffer from being
> placed into "fb_free_list".
>
> Signed-off-by: Irui Wang <irui.wang@mediatek.com>
> ---
> drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git
> a/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c
> b/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c
> index 70b8383f7c8e..e77d5a2452c1 100644
> --- a/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c
> +++ b/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c
> @@ -220,15 +220,21 @@ static struct vdec_fb
> *vp9_rm_from_fb_use_list(struct vdec_vp9_inst
> {
> struct vdec_fb *fb = NULL;
> struct vdec_fb_node *node;
> + bool found = false;
>
> list_for_each_entry(node, &inst->fb_use_list, list) {
> fb = (struct vdec_fb *)node->fb;
> if (fb->base_y.va == addr) {
> list_move_tail(&node->list,
> &inst->available_fb_node_list);
> + found = true;
> break;
> }
> }
> +
> + if (!found)
> + fb = NULL;
> +
> return fb;
> }
>
prev parent reply other threads:[~2023-07-03 4:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-01 9:05 Irui Wang
2023-07-03 4:11 ` Irui Wang (王瑞) [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=4bd5aad43622742f1078f8bc4167803ed20f6a68.camel@mediatek.com \
--to=irui.wang@mediatek.com \
--cc=Maoguang.Meng@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=Yunfei.Dong@mediatek.com \
--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=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
all inboxes | Powered by JetHome®