Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2160529rwi; Thu, 3 Nov 2022 13:28:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6us5yvzXDFZzxE+NHDqgbBH/ujy9UAcaAViPfTkaW/uOqlBKY9qVPfSFISIQj+WRY8uloi X-Received: by 2002:a17:90a:7c47:b0:212:ea80:8b02 with SMTP id e7-20020a17090a7c4700b00212ea808b02mr32893906pjl.60.1667507302572; Thu, 03 Nov 2022 13:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667507302; cv=none; d=google.com; s=arc-20160816; b=xiqyq2WHPRLXViCfdLSh0QnnsrMSLmERp2LBRTEpEhopjESrAOsVGr5rGbcFI/iO1Y L7ITKzRej0SJmpJI6SWMBU+qxZu6rEiBH/Pyo8BfDLxhYEX1lZVccZ21/TxeG9QLU+MA YN3YKdzH89aIy4j0ewCyvk1krLiYIiarfY5X4U/AwjGM4LDqSgzjlsdzuBgqEecbTPph Y8Kjgau81wHwFQZt6QJO72ijE7Dq20KhMIY7ZFjKjMUwytw8tWTWAUmHCg0tV1m3RpOF scehZLcweExi4O3wQDoqwG2E/lXF7+kuTdIOXfo2vhDQo+VwwyuK8E24zLI8sijhBWBd Qb8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EgigVUawr1P5kR1/UVqx7P6TCAQBcUYYnlVpR1Ive7U=; b=zHQFzxyruVZjRdf2vyaYtHi0P+eLW2MsVl4IoFutPwk1+COPCxNKWjVK16gwtDptse fih28IIxwwvf7uLSYvPydk4s20V0plTwu3CAw05uQ8K68P5Ld0H6Y7KUuXqZCRcFwx8N x5YqQcdnCbv7Y1bRntGqYCXKloDPSL7RdA/wlmoYifwSB3Xh0Ha411czuA4AMU8HDe0i LDhm95ABrIdKm3d35/YSb74dokV/wUArsREVx6w7RAUpwQfJgKzjSsES5jLzSB/a8mnZ f1W8kB4jGoRKke8Gi92cwlZMIBmhRe24VLAJXYnlTSjTxvPWx2LcSJ/gBdo3+bvpMn3M HHPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XQTtf5uJ; 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 200-20020a6300d1000000b004612e8df649si2151903pga.784.2022.11.03.13.28.00; Thu, 03 Nov 2022 13:28:22 -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=XQTtf5uJ; 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 S229694AbiKCT6G (ORCPT + 98 others); Thu, 3 Nov 2022 15:58:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiKCT5r (ORCPT ); Thu, 3 Nov 2022 15:57:47 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 649E91CFC7; Thu, 3 Nov 2022 12:56:34 -0700 (PDT) Received: from notapiano (unknown [IPv6:2600:4041:5b1a:cd00:524d:e95d:1a9c:492a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1BB04660295F; Thu, 3 Nov 2022 19:56:30 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1667505392; bh=r3uuCl1jdRH8Jqbm5SAIzC2TzpgfqC792VBUHdoQyC0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XQTtf5uJmlOWcu/21JkiG0/r25aw1II4w2ymWeVMxecEC4zy0Bseq+gy+6fVrynGd v8PwkAw9mmcTRW54E3NbWG2xEvcHCS1Y5BEkVFR8zJvn1rZtPvnxvCHOBPeTPTHR6R KEsVzi/wOp2AMtcryLhaXQqgMdfJ8StE7Igb/woBN59VuF4IW5h82reDr5JM5L1Wno msNJhnXfm1I+UgERuRT0v0svOYIVM5agqVEbE4SPXr+wd1+bSTdbJBqnm7TXIlT/md +FcWVpNTdIpCR5k56g1clyIkQAFxBaI00K0dyMNCcj3+uoieGuWwTyVtx8wC3cfv21 scb7+zoXgamRg== Date: Thu, 3 Nov 2022 15:56:25 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: "Nancy.Lin" Cc: Rob Herring , Matthias Brugger , Chun-Kuang Hu , Philipp Zabel , wim@linux-watchdog.org, AngeloGioacchino Del Regno , linux@roeck-us.net, David Airlie , Daniel Vetter , Nathan Chancellor , Nick Desaulniers , "jason-jh . lin" , Yongqiang Niu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, llvm@lists.linux.dev, singo.chang@mediatek.com, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH v27 06/11] soc: mediatek: add mtk-mmsys config API for mt8195 vdosys1 Message-ID: <20221103195625.azajpe3vf5kxccar@notapiano> References: <20221103032512.9144-1-nancy.lin@mediatek.com> <20221103032512.9144-7-nancy.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221103032512.9144-7-nancy.lin@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 On Thu, Nov 03, 2022 at 11:25:07AM +0800, Nancy.Lin wrote: > Add four mmsys config APIs. The config APIs are used for config > mmsys reg. Some mmsys regs need to be set according to the > HW engine binding to the mmsys simultaneously. > > 1. mtk_mmsys_merge_async_config: config merge async width/height. > async is used for cross-clock domain synchronization. > 2. mtk_mmsys_hdr_confing: config hdr backend async width/height. [..] > --- a/drivers/soc/mediatek/mtk-mmsys.c > +++ b/drivers/soc/mediatek/mtk-mmsys.c [..] > +void mtk_mmsys_hdr_confing(struct device *dev, int be_width, int be_height) confing -> config Need to update the following commit as well. Thanks, N?colas > +{ > + mtk_mmsys_update_bits(dev_get_drvdata(dev), MT8195_VDO1_HDRBE_ASYNC_CFG_WD, ~0, > + be_height << 16 | be_width); > +} > +EXPORT_SYMBOL_GPL(mtk_mmsys_hdr_confing); [..] > +void mtk_mmsys_hdr_confing(struct device *dev, int be_width, int be_height); [..]