Message ID | 20230624-sm6125-dpu-v1-9-1d5a638cebf2@somainline.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6126803vqr; Fri, 23 Jun 2023 17:43:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6fkiQCNZYuAUxlKBFcBpG1eZcCmlg2dqr5IgjN81J2VL3SqP3NPWn2HKJcHRNRh/N0gVCw X-Received: by 2002:a92:d6d2:0:b0:329:bba2:781a with SMTP id z18-20020a92d6d2000000b00329bba2781amr21433696ilp.0.1687567399364; Fri, 23 Jun 2023 17:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687567399; cv=none; d=google.com; s=arc-20160816; b=tjHwwDNA+rvGBwZQmF+vPpmSh+0aH6IAZ3ZOogdhWRVxlcGftWwE3eW4m/EwotjP6A Be8MVTW+HoMmDQ6FUkhGoDsaXNxwuSBioLQLZAxNoZl14t89HTaH764j/7QD1acvwLR5 iDkRs88TE/zSDZH7p0GAD7ifkp92W9+FIe+BTtnf2J7jPzdaw++0hEtCv2A7AY8NhVZq Dsrjbu9P0MYw+/32DXSs55kL2YsFjOTcc0s6YylkUCHlFhnewGQCMnv986U3BMtRnrea pEtpokWs0mzB+QCBDdwwk5jtznswA5iqdqLiyGRYvHCRd5qdFwsuM3CbLQb0rUTkaele bxsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=aallcdgNzbMNlIrpxmBBOi+slhOJp7XX3o6vi+8P1gc=; fh=OfzUp+OcwbFUfZC2mGhS6GGXsXqM7NhjMWKyOt4HPQU=; b=u5cnW4QVzFyv/VNkBMM4TRKvYPP1Ir8D3PYeJcksONUWaD6JJboOyNJhWWHvgKXOzf V8LOEWI3xL09WtU7+QsS0KSkX6Ir0yFA+Dk/9VB+wOAo0kMMO3tvtqmwQsfDrzJOzFU9 KFSyAPn6JG0X85t7nimHxRQroSr7Swsg5g1SDIVbl9Ekx1n7u7wWqasPdUJFxbKrbPAU rtUzqEJbDnDzU99q8bU3C+nxlyMIp9IIKYwnebSvBdRMvkFIli23zpWFXu2w05acnTfz VrjEKOgSIX9eHkZr0i1k3WP6YpVLP6RQX/PKeDPmMhJdLDa8Jxrt6n+Ktl23gj5fzLYQ gfYw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a636306000000b005538d402ad9si525785pgb.589.2023.06.23.17.43.06; Fri, 23 Jun 2023 17:43:19 -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 S232491AbjFXAlx (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Fri, 23 Jun 2023 20:41:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232114AbjFXAlW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 23 Jun 2023 20:41:22 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [5.144.164.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEB322970 for <linux-kernel@vger.kernel.org>; Fri, 23 Jun 2023 17:41:14 -0700 (PDT) Received: from Marijn-Arch-PC.localdomain (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 X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id CC85F3F81A; Sat, 24 Jun 2023 02:41:11 +0200 (CEST) From: Marijn Suijten <marijn.suijten@somainline.org> Date: Sat, 24 Jun 2023 02:41:07 +0200 Subject: [PATCH 09/15] drm/msm/mdss: Add SM6125 support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230624-sm6125-dpu-v1-9-1d5a638cebf2@somainline.org> References: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> In-Reply-To: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Clark <robdclark@gmail.com>, Abhinav Kumar <quic_abhinavk@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Sean Paul <sean@poorly.run>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Krishna Manikandan <quic_mkrishn@quicinc.com> Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Konrad Dybcio <konrad.dybcio@linaro.org>, Martin Botka <martin.botka@somainline.org>, Jami Kettunen <jami.kettunen@somainline.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski <krzk@kernel.org>, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Lux Aliaga <they@mint.lgbt>, Marijn Suijten <marijn.suijten@somainline.org> X-Mailer: b4 0.12.2 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769542673309350942?= X-GMAIL-MSGID: =?utf-8?q?1769542673309350942?= |
Series |
drm/msm: Add SM6125 MDSS/DPU hardware and enable Sony Xperia 10 II panel
|
|
Commit Message
Marijn Suijten
June 24, 2023, 12:41 a.m. UTC
SM6125's UBWC hardware decoder is version 3.0, and supports decoding
UBWC 1.0.
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
---
drivers/gpu/drm/msm/msm_mdss.c | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
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). > > Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org> > --- > 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 }, >
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 <marijn.suijten@somainline.org> > > --- > > 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 >
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 },