From: gtk_ruiwang <gtk_ruiwang@mediatek.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Andrew-CT Chen <andrew-ct.chen@mediatek.com>,
Maoguang Meng <maoguang.meng@mediatek.com>,
srv_heupstream@mediatek.com,
Alexandre Courbot <acourbot@chromium.org>,
Erin Lo <erin.lo@mediatek.com>,
linux-kernel@vger.kernel.org,
Houlong Wei <houlong.wei@mediatek.com>,
Tomasz Figa <tfiga@chromium.org>,
Sj Huang <sj.huang@mediatek.com>,
linux-mediatek@lists.infradead.org,
Matthias Brugger <matthias.bgg@gmail.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org
Subject: Re: [PATCH] media: mtk-vpu: load vpu firmware from the new location
Date: Tue, 24 Mar 2020 20:56:22 +0800 [thread overview]
Message-ID: <1585054582.6276.24.camel@mhfsdcap03> (raw)
In-Reply-To: <396021fd-ec2e-1ec1-602e-08b9393c5ae9@xs4all.nl>
Dear Hans,
Patch V2 has sent, thanks a lot.
Sincerely Regards
On Tue, 2020-03-24 at 13:20 +0100, Hans Verkuil wrote:
> On 3/22/20 8:57 AM, gtk_ruiwang@mediatek.com wrote:
> > From: gtk_ruiwang <gtk_ruiwang@mediatek.com>
> >
> > mt8173 VPU firmware has been moved to a sub-folder of
> > linux-firmware, so load vpu-fw from the new location first,
> > if it fails, then from the old one.
> >
> > Signed-off-by: Rui Wang <gtk_ruiwang@mediatek.com>
>
> Hmm, I'm getting this from checkpatch.pl --strict:
>
> WARNING: Missing Signed-off-by: line by nominal patch author 'gtk_ruiwang <gtk_ruiwang@mediatek.com>'
>
> Rather than sending this from 'gtk_ruiwang@mediatek.com', can you send this from
> 'Rui Wang <gtk_ruiwang@mediatek.com>'?
>
> Then the two are the same.
>
> Regards,
>
> Hans
>
> > ---
> > drivers/media/platform/mtk-vpu/mtk_vpu.c | 16 +++++++++++++---
> > 1 file changed, 13 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/media/platform/mtk-vpu/mtk_vpu.c b/drivers/media/platform/mtk-vpu/mtk_vpu.c
> > index a768707abb94..89274842e07b 100644
> > --- a/drivers/media/platform/mtk-vpu/mtk_vpu.c
> > +++ b/drivers/media/platform/mtk-vpu/mtk_vpu.c
> > @@ -46,6 +46,8 @@
> > /* binary firmware name */
> > #define VPU_P_FW "vpu_p.bin"
> > #define VPU_D_FW "vpu_d.bin"
> > +#define VPU_P_FW_NEW "mediatek/mt8173/vpu_p.bin"
> > +#define VPU_D_FW_NEW "mediatek/mt8173/vpu_d.bin"
> >
> > #define VPU_RESET 0x0
> > #define VPU_TCM_CFG 0x0008
> > @@ -477,16 +479,24 @@ static int load_requested_vpu(struct mtk_vpu *vpu,
> > size_t tcm_size = fw_type ? VPU_DTCM_SIZE : VPU_PTCM_SIZE;
> > size_t fw_size = fw_type ? VPU_D_FW_SIZE : VPU_P_FW_SIZE;
> > char *fw_name = fw_type ? VPU_D_FW : VPU_P_FW;
> > + char *fw_new_name = fw_type ? VPU_D_FW_NEW : VPU_P_FW_NEW;
> > const struct firmware *vpu_fw;
> > size_t dl_size = 0;
> > size_t extra_fw_size = 0;
> > void *dest;
> > int ret;
> >
> > - ret = request_firmware(&vpu_fw, fw_name, vpu->dev);
> > + ret = request_firmware(&vpu_fw, fw_new_name, vpu->dev);
> > if (ret < 0) {
> > - dev_err(vpu->dev, "Failed to load %s, %d\n", fw_name, ret);
> > - return ret;
> > + dev_info(vpu->dev, "Failed to load %s, %d, retry\n",
> > + fw_new_name, ret);
> > +
> > + ret = request_firmware(&vpu_fw, fw_name, vpu->dev);
> > + if (ret < 0) {
> > + dev_err(vpu->dev, "Failed to load %s, %d\n", fw_name,
> > + ret);
> > + return ret;
> > + }
> > }
> > dl_size = vpu_fw->size;
> > if (dl_size > fw_size) {
> >
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2020-03-24 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-22 7:57 [PATCH] media: mtk-vpu: load vpu firmware from the new location gtk_ruiwang
2020-03-24 12:20 ` Hans Verkuil
2020-03-24 12:56 ` gtk_ruiwang [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=1585054582.6276.24.camel@mhfsdcap03 \
--to=gtk_ruiwang@mediatek.com \
--cc=acourbot@chromium.org \
--cc=andrew-ct.chen@mediatek.com \
--cc=erin.lo@mediatek.com \
--cc=houlong.wei@mediatek.com \
--cc=hverkuil@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=maoguang.meng@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.org \
--cc=sj.huang@mediatek.com \
--cc=srv_heupstream@mediatek.com \
--cc=tfiga@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).