Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp211166pxh; Thu, 7 Apr 2022 19:11:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPJCSNlKnSqQsOBG8sEz7f3Ge0RnUJPuqVaXPhNNhJTQuDs3sr1VPARrByHw0Umq+JN0/l X-Received: by 2002:a17:902:8684:b0:154:af35:82ce with SMTP id g4-20020a170902868400b00154af3582cemr17069551plo.137.1649383898559; Thu, 07 Apr 2022 19:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649383898; cv=none; d=google.com; s=arc-20160816; b=bzgMYMbhGCXlLRbv32t9tVy9udUv4lNfye3CjYyu+dKFnMlWYs1wNUDrkt1mAtjYj0 XU093fpI8ndlYXouPNKj9+/0OS6Jh19zKO3707Q9RGGL5lyDTPjoHz39LTL2GMV3pdp7 DQignhK8y8hQeIaD8c2QRp1Lhe1wBl9ixrXjCfeCO2QzLHNxSwoEscelHM6YgHX58L/w KkrjwpBMK2NFHieimzQjQpZohe9aFAdxX7LCAYfdczsr1viQwHeO+PiCYrtZBJNr4stK 3RELfkdWRQGKYXVewsWbVWkOw9WMDUD1hzKEufCeUHZi8W+q8gGOA77wEY7t5EvSkTXd e2lA== 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=x4u6KI92Wp9qn85Xm8xTSdMWJ98st50UVTaNEFR/rdc=; b=W6+VTlTXzI5IO2jXzYeeFbCpfeK9UcijlteFH3O/cNWV8qC+0LchNJsdHt4FpOGCK+ iK7HjSfmpcM1NVp8OvR4FNujl7LpXaECMJ6mncKdh5u2bybmHQhgLmECPTHCRAJFR7CB ufHnywnWjFsbs4d+pEz1rtJcTmnN9JMlfhT1q47sMcwhVAl8iJFyFShrx25xWMI3ixMk Hl1p211HV/RsOqxPoAGtY3ke7SptHV5CUPWtbPnv2lki1FCmI+h+MLML8YCQD/r3B42z GZUGRdoU/BVBEoUZO0mPEAJi+cvHuu8Qm6GJAmD5WVqXBWnpJAi1IT7kh1SffVAwMATR rkBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TgTfyumE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i11-20020a17090ad34b00b001c648d1fb6esi3051435pjx.132.2022.04.07.19.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 19:11:38 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TgTfyumE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3064E13666E; Thu, 7 Apr 2022 18:43:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233544AbiDHBpe (ORCPT + 99 others); Thu, 7 Apr 2022 21:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233504AbiDHBpd (ORCPT ); Thu, 7 Apr 2022 21:45:33 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2830360CD for ; Thu, 7 Apr 2022 18:43:31 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 313121F42799 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1649382210; bh=Kgjk0PMTnxKr4o7yne9XJVv+nnOoS8+3S6jBLjJ/RhY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TgTfyumEKjt0cCM/ZqjoWMw4qAfPE810ZDss67mhG4U3BZwSRIPPbZeYBpHzpsonD SBrX0+vXz4qsGEHj9UsJKH5bl+f/YQs8/7jx3DB84uQHk7lWPmkEa+8WCA7QrtbhNN z4a4n7r77ZC3DR+u2DpHDsHRjSzJS17WAJu1AdRFxdjXrgQuzRaRXyNIKC2KfDaOkr uq1nujFa8JTATay3Tdr64cYzm/9ytAWEyACWIiEW2DNnocsX2shBRjfUghTUwwHClX u1K+BvaU0iQRkNz6D3PCrWcPHtRaP5gaweQniGubIE4kJ2x6VBKT02tn2btTEFF9+4 pt5+O3BKOX3PQ== Date: Thu, 7 Apr 2022 21:43:23 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: CK Hu Cc: Philipp Zabel , Chun-Kuang Hu , jitao.shi@mediatek.com, rex-bc.chen@mediatek.com, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Matthias Brugger , kernel@collabora.com, linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno Subject: Re: [PATCH] drm/mediatek: dpi: Use mt8183 output formats for mt8192 Message-ID: <20220408014323.k5imykh7btbqc4c2@notapiano> References: <20220408011907.672120-1-nfraprado@collabora.com> <6afe7366ceffb77674d34c48f84aa85b1c088bc3.camel@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6afe7366ceffb77674d34c48f84aa85b1c088bc3.camel@mediatek.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no 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 Fri, Apr 08, 2022 at 09:36:17AM +0800, CK Hu wrote: > Hi, Jitao & Rex: > > Please help to comment on this patch. Hi Chuang, I already sent a v2 of this patch [1] because I forgot to add the Fixes tag. Sorry for the noise. Thanks, N?colas [1] https://lore.kernel.org/all/20220408013950.674477-1-nfraprado@collabora.com/ > > On Thu, 2022-04-07 at 21:19 -0400, N?colas F. R. A. Prado wrote: > > The configuration for mt8192 was incorrectly using the output formats > > from mt8173. Since the output formats for mt8192 are instead the same > > ones as for mt8183, which require two bus samples per pixel, the > > pixelclock and DDR edge setting were misconfigured. This made > > external > > displays unable to show the image. > > > > Fix the issue by correcting the output format for mt8192 to be the > > same > > as for mt8183, fixing the usage of external displays for mt8192. > > > > Signed-off-by: N?colas F. R. A. Prado > > > > --- > > > > drivers/gpu/drm/mediatek/mtk_dpi.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c > > b/drivers/gpu/drm/mediatek/mtk_dpi.c > > index 4554e2de1430..e61cd67b978f 100644 > > --- a/drivers/gpu/drm/mediatek/mtk_dpi.c > > +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c > > @@ -819,8 +819,8 @@ static const struct mtk_dpi_conf mt8192_conf = { > > .cal_factor = mt8183_calculate_factor, > > .reg_h_fre_con = 0xe0, > > .max_clock_khz = 150000, > > - .output_fmts = mt8173_output_fmts, > > - .num_output_fmts = ARRAY_SIZE(mt8173_output_fmts), > > + .output_fmts = mt8183_output_fmts, > > + .num_output_fmts = ARRAY_SIZE(mt8183_output_fmts), > > }; > > > > static int mtk_dpi_probe(struct platform_device *pdev) >