Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp534815pxb; Wed, 13 Apr 2022 07:20:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGxYNHoTADMybbEw7hCT9c8+rld40111FRjWmgPM8FZKN/MKOroamkKX2irmddR7KIvMZo X-Received: by 2002:a17:906:dc8f:b0:6e0:5ce7:d80e with SMTP id cs15-20020a170906dc8f00b006e05ce7d80emr40519051ejc.435.1649859623811; Wed, 13 Apr 2022 07:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649859623; cv=none; d=google.com; s=arc-20160816; b=a2GBhuzBBb7FYBDKeqtg4TpW4ACzGabWhVirgEyICDD2HsvVRAn2QJx9UYJes2ANXd SknBi4bb1A7VjNpW+gFfiJgHPLNHOnRjjAZIMOz3NAbPdZqD/My4+j1YcmDa2Ns9qOaw 3A+Md2948030Ua9yjc/xO7P8EptPlUni/fG9Ui9o4YgqzC1x1GSxRuVvo8+qVyvrE43y Ht3rBuoB3a5nJfj4Xno+pZbEHIKUHQNVPTFpo4+CGAkNcQNEgYKp3Q5fv51QIygIETn5 3C4aY69jxTXZSI+jFvwZq9Dk2B5KRCjcYRR+EZBY0sHhNtEWAk4jF24QmNjuH5LgFri2 6b1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TQXQo+c94DprpGrrKu3ckAPsvJJAQVVBuGa6U/zbq7s=; b=ZDCwnqms+obwDZhDX+4bG6ADp1A0alIr6SSZIWtXmx7kFsnsGqvXnRL7bGw9GnnuCb 4a+T0FWWrkykC5qXHiUz4ITVVS0g6/zHloPgvs2OIdOV8/R4ZcIU+blywFiD7p/aYOA6 xisVgq1uluGnDViCx4/qLFTqW/icDYt6hgKZaTf8cQpgHPzX2ARrvWhltv5AwwbKdcqk IMoZ+1IvcPVvtrBD6pPxjZHPLZau2qdwTNuVNrO2QPzs5jrizeqVjdWQY7n5uuhPlxeV DgkvfRtH7FiSgc/17KxIqFhOsfVl8vOaVSOZIMXk6aLw9JvwpXdz5Ia+dZatDWiP2DSD Etxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kmXqsesS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a056402275000b0041d8bccdd79si1998794edd.390.2022.04.13.07.19.51; Wed, 13 Apr 2022 07:20:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kmXqsesS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233628AbiDMIAK (ORCPT + 99 others); Wed, 13 Apr 2022 04:00:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233622AbiDMIAG (ORCPT ); Wed, 13 Apr 2022 04:00:06 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02D3F4D9C8; Wed, 13 Apr 2022 00:57:44 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id D10231F44E9A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1649836663; bh=mzWuX58y4C68CcEn/a3a+EywObIenobNezPNhsxckgU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=kmXqsesSLvWFXzGLTRqiWYSvGN5LlWNAB2FD23E8+ZrbGAW+o2zP1LzJNsSBPxhjg nZD50ua/mXxtL5FVp3MUxGXDKntSSHgUHVzv+8hZN9VsiSkBuW+aLxP3HcN7+qrpsp ZA4/7d8gH9NrJ4NCZsIMElGupIRW+KNTFSxc6sD4dSLglT75G1iWWAb/WDPiw/unGt Ptq5TZN3NIP95ftv0KTiPn+ZlxAYI1yBuNReJsIH39gIkOEQzmacvZq8/RGRGIZWUs YQ4tBIFxaakTc1bVA8nSmLlZFdlos8RfWTvoDvMg4WYfAXtZe7G1FEb2t+VnQa5OsO XD08QtZM8nlfg== Message-ID: <1d9a6259-b1f6-5c4f-7e91-0529b77b6a44@collabora.com> Date: Wed, 13 Apr 2022 09:57:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v8, 00/15] media: mtk-vcodec: support for M8192 decoder Content-Language: en-US To: "allen-kh.cheng" , Nicolas Dufresne , "yunfei.dong@mediatek.com" , Alexandre Courbot , Hans Verkuil , Benjamin Gaignard , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa Cc: George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , dri-devel , Irui Wang , Steve Cho , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srv_heupstream@mediatek.com, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20220331024801.29229-1-yunfei.dong@mediatek.com> <0f385e6e2d0687c3e6de12a576d1617af9504cee.camel@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 13/04/22 09:03, allen-kh.cheng ha scritto: > Hi Nicolas, > > On Tue, 2022-04-12 at 10:48 -0400, Nicolas Dufresne wrote: >> Le lundi 11 avril 2022 à 11:41 +0800, yunfei.dong@mediatek.com a >> écrit : >>> Hi Nicolas, >>> >>> On Thu, 2022-03-31 at 16:48 -0400, Nicolas Dufresne wrote: >>>> Hi Yunfei, >>>> >>>> thanks for the update, I should be testing this really soon. >>>> >>>> Le jeudi 31 mars 2022 à 10:47 +0800, Yunfei Dong a écrit : >>>>> This series adds support for mt8192 h264/vp8/vp9 decoder >>>>> drivers. >>>>> Firstly, refactor >>>>> power/clock/interrupt interfaces for mt8192 is lat and core >>>>> architecture. >>>> >>>> Similarly to MT8173 and MT8183, a shared* firmware is needed for >>>> this >>>> CODEC to >>>> work (scp.img). I looked into linux-firmware[1] it has not been >>>> added >>>> for mt8192 >>>> yet. As your patches are getting close to be ready, it would be >>>> important to >>>> look into this so the patchset does not get blocked due to that. >>>> >>>> best regards, >>>> Nicolas >>>> >>>> [1] >>>> > https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek__;!!CTRNKA9wMg0ARbw!zy4N6JDroSXtumXXa7MuxAgYAPAink8uyW-978vpWct8S3vOjBqXirFE8uTEHopHCovbSl0FNP9LPgWCEBrZfMIcvQ$ >>>> >>>> * Shared at least between MDP3 and MTK VCODEC from my knowledge >>>> >>> >>> Thanks for your remind. >>> >>> I have already sent mt8192 scp.img to github. >>> >>> > https://urldefense.com/v3/__https://github.com/yunfeidongmediatek/linux_fw_scp_8192/commit/3ac2fc85bc7dfcebdb92b5b5808b0268cdfb772d__;!!CTRNKA9wMg0ARbw!zy4N6JDroSXtumXXa7MuxAgYAPAink8uyW-978vpWct8S3vOjBqXirFE8uTEHopHCovbSl0FNP9LPgWCEBpf9F_nWA$ >>> >>> >>> Waiting for to be merged. >> >> On boards I have, the firmware is loaded from /lib/firmware/scp.img, >> but with >> this submission it will be in lib/firmware/mediatek/mt8192/scp.img . >> I haven't >> found anything around: >> >> drivers/remoteproc/mtk_scp.c:812: char *fw_name = "scp.img"; >> >> That would use the platform path. This seems like a problem to me, >> the >> upstreaming of the firmware isn't being aligned with the were the >> firmware is >> picked by the upstream driver. Correct me if I got this wrong, but >> I'd really >> like to clarify this. >> >> Nicolas >> > > I am not sure why it's accepted the fw path of scp is > /lib/firmware/scp.img in mt8173/8183 but we upload scp.ing in > /lib/firmware/mediatek/mt8173(mt8183)/scp.img to > > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek > > Currently, the scp driver will load firmware in /lib/firmware/scp.img. > that means there is only one firmware for a specific platform. > I think we can send a PATCH to make firmware name of scp being more > flexible. > > Maybe get firmware name from dts. e.g., > &scp { > status = "okay"; > firmware-name = "mediatek/mt81xx/scp.img"; > }; > > Do you think it feasible? > If you have any concerns, please let us know. > > Thanks, > Allen > Hello Allen, what you proposed is exactly what has been done for other platforms because of both per-device firmware differences (different signatures) and per-SoC (different firmware entirely), found on TI K3, iMX DSP, Qualcomm MSS/DSP remoteproc and others. Of course this is an accepted way to resolve this situation: please go on! Cheers, Angelo