From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00E20C4332F for ; Thu, 3 Nov 2022 10:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rGivhEJifp850S5PDmE+Hxg2+MJ/qRolS8joHXTmGig=; b=T5OwApr+H2/F1TE/+/glCyID0j JknevZ7Qn6TGBGN0u5FRw/2KjDI33WagHTPOI+0akNcJfWUBuQS3BhSJPGPfg080SZSEPbtRIlODL 1Rdawp23cCrf0300S/f0pqJ/kCFS+ObuBXJZYfSAcgywaG6I0SLhm9mXx+o7jTsMJwPUj9GWSv8mn hskLu1CvEkW+zJeFb1I137Gd5NWG4ogTaG6UeezM3lU/dnRJ2G+brbrIUB5nuSD0dnd0MtYmOxv6W 9K8YCl8zDYk2ku+5v0oPxDSbbT45yK3eGwYcw1uFVurFkx2B1KJnQk2zLP8N2p6s5Di2vW/VhcgBZ SfVatUUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqX3B-00H29c-Ok; Thu, 03 Nov 2022 10:02:17 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqX39-00H299-Hx for linux-mediatek@lists.infradead.org; Thu, 03 Nov 2022 10:02:17 +0000 Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 10CF56602910; Thu, 3 Nov 2022 10:02:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1667469733; bh=cJ7/RbB6T0ABdRfkEHmG42usHctHRiTqhYQyfhjHJMI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VvdeKyjARZCCL/SdvIIIfp++2uEa4iuO5NcBoZaStwwkIIX21PZoX5wF8gpW+u8Ax xJEDis3rirygwyq53jDEAWaj2lTGxq+wgTkynVabwtR6PudpEjUJLp6cadg8A+1oY6 9WgwLhMf/FSOh5lop5mkzMdzTooiVTpBMoaxtGMM4ttxyjcbbACWmx4Fw7bwb/jvDq q+v7pZDCMSGKvxNfFil79es3XPExbPKWqVz7KkZgTV+Q6XjJS5EbstUWU/q1I8NTI9 BFIDtkVHr9QUfIBZlHvw1tftEmnrD/PqQRIMtPA+uDZ+3KulOAm4nGTKs+ZkaP838O WIVTgQD4If87w== Message-ID: Date: Thu, 3 Nov 2022 11:02:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v3 10/10] media: platform: mtk-mdp3: decompose hardware-related information in shared memory Content-Language: en-US To: Moudy Ho , Mauro Carvalho Chehab , Matthias Brugger , Hans Verkuil Cc: Chun-Kuang Hu , linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20221103064842.12042-1-moudy.ho@mediatek.com> <20221103064842.12042-11-moudy.ho@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20221103064842.12042-11-moudy.ho@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_030215_848709_B1926FD4 X-CRM114-Status: GOOD ( 19.89 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 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