Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17422519rwd; Tue, 27 Jun 2023 02:49:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79vrMonNpz4yUYOoqCukTzBn6vgA8qLvInELMRdoV74VaAu5r+JzCNNIkcET4pG3uFauF8 X-Received: by 2002:a05:6402:4c9:b0:51d:87c6:bf28 with SMTP id n9-20020a05640204c900b0051d87c6bf28mr5579203edw.3.1687859398871; Tue, 27 Jun 2023 02:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687859398; cv=none; d=google.com; s=arc-20160816; b=JEjf4WUOoD5wBTUylNZCy58oXfXNtpeK4yKczVzQUUckVZHg9/qrTYCWxFgyunKoM9 HWpz496U+eOxv5Naoja5vdHMIbj3C7oq2YJ2ijAY/tXOSWTvm+l6JNPeNspbwTDkVw8o j7BzCpyfcum6W/okdzN3Xvo4Yy/IjPFbURu2EbXV1uvyTcEpI3HsEtwlpA92erjUrmnd gBJs1VbyLJQp4+Uk5zzX+8sZ2dER3mCeAPJJwjRABloML5Zk5EUxNb5IDZQSIgFU4t8J x5/2BXJ7lI6EWG37YJ3ErxSMNwTeWzu+j3D5BCLyGiqvuHaXZfb/oPaa15txi9As3U81 cGPw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3DPrxVUJXKLfl1BnevoRmL3i/QIldrh42za+phO8O5E=; fh=pDbFikdtMJjjKNDYMcklmHWUhDDyzSIBvMrUtVUe3RM=; b=FoKKESoOwhjzF3b70YndzR0kcxsUZRAoBBOMLUdUVMrhkb3MGWIQNBSSV3hsnEZmnx i1C52xPxnk8/xCUvBbzIP75B7wuPGvGpLaANZNbKeifbZYFJCkWm6IyZJUj9ZuEtKf9e 1fvxeptIwTvQqKZ78f08MEQxBiMxD0RYB00OQGHEnozp39KqHlM/erdiaAo3hX4tYf9k Q0xn6UNdkIb1Uxo/3eyMXtjFvcIQMePSBcVVoQIv5gnG3SsUPYOTrNPvUjzHtXI9XU7T EnzSbOCap5rqlfoCOUbtr5by+2/R8UxFotYTuJDLvWx49bDD48cmesixvr1NGGUCpJRi Axmw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a50e606000000b0051db0dfbf96si68571edm.401.2023.06.27.02.49.33; Tue, 27 Jun 2023 02:49:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232058AbjF0JHw (ORCPT + 99 others); Tue, 27 Jun 2023 05:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232033AbjF0JHW (ORCPT ); Tue, 27 Jun 2023 05:07:22 -0400 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [5.144.164.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 574662D73; Tue, 27 Jun 2023 02:06:49 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 99D103F7CC; Tue, 27 Jun 2023 11:06:30 +0200 (CEST) Date: Tue, 27 Jun 2023 11:06:29 +0200 From: Marijn Suijten To: Dmitry Baryshkov Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Krishna Manikandan , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Lux Aliaga Subject: Re: [PATCH 09/15] drm/msm/mdss: Add SM6125 support Message-ID: <222mwmijir3tv7lwxekp7r6jhx4uyhuo3xrtqec6oo3tj4kpyj@4pv56oukezsg> References: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> <20230624-sm6125-dpu-v1-9-1d5a638cebf2@somainline.org> <9ba8e5c9-642d-a09d-7e82-adba8e5497aa@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ba8e5c9-642d-a09d-7e82-adba8e5497aa@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 2023-06-27 11:49:07, Dmitry Baryshkov wrote: > On 24/06/2023 03:41, Marijn Suijten wrote: > > SM6125's UBWC hardware decoder is version 3.0, and supports decoding > > UBWC 1.0. > > I think it's UBWC encoder version, see > https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers/-/blob/display-kernel.lnx.5.15.1.r17-rel/msm/sde/sde_hw_top.c?ref_type=heads#L357 > > This is a part of > https://patchwork.freedesktop.org/patch/538279/?series=118074&rev=1 > > (no, you don't have to rebase on that patchset, it is not reviewed yet). Thanks for clarifying this. I always thought that there only was a (decoder) hardware version, that is able to decode a specific format version of the UBWC data format. And that it was confusingly using the same enum. I will reword the message. (Also didn't really see why MDSS would have to _encode_ to UBWC, for readbacks?) - Marijn > > Signed-off-by: Marijn Suijten > > --- > > drivers/gpu/drm/msm/msm_mdss.c | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c > > index 05648c910c68..bf68bae23264 100644 > > --- a/drivers/gpu/drm/msm/msm_mdss.c > > +++ b/drivers/gpu/drm/msm/msm_mdss.c > > @@ -559,6 +559,13 @@ static const struct msm_mdss_data sm6115_data = { > > .ubwc_static = 0x11f, > > }; > > > > +static const struct msm_mdss_data sm6125_data = { > > + .ubwc_version = UBWC_1_0, > > + .ubwc_dec_version = UBWC_3_0, > > + .ubwc_swizzle = 1, > > + .highest_bank_bit = 1, > > +}; > > + > > static const struct msm_mdss_data sm8250_data = { > > .ubwc_version = UBWC_4_0, > > .ubwc_dec_version = UBWC_4_0, > > @@ -579,6 +586,7 @@ static const struct of_device_id mdss_dt_match[] = { > > { .compatible = "qcom,sc8180x-mdss", .data = &sc8180x_data }, > > { .compatible = "qcom,sc8280xp-mdss", .data = &sc8280xp_data }, > > { .compatible = "qcom,sm6115-mdss", .data = &sm6115_data }, > > + { .compatible = "qcom,sm6125-mdss", .data = &sm6125_data }, > > { .compatible = "qcom,sm6350-mdss", .data = &sm6350_data }, > > { .compatible = "qcom,sm6375-mdss", .data = &sm6350_data }, > > { .compatible = "qcom,sm8150-mdss", .data = &sm8150_data }, > > > > -- > With best wishes > Dmitry >