From patchwork Tue Jul 18 21:24:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 122254 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2020944vqt; Tue, 18 Jul 2023 14:31:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGC3pMQHe17rTG76d/uKUYzLwIT+GGAXWvPm+QKKKCFsFwOiYOni4s7ToqdHH0yyrL6whjB X-Received: by 2002:a17:906:189:b0:98e:1a0c:12c0 with SMTP id 9-20020a170906018900b0098e1a0c12c0mr337769ejb.7.1689715889960; Tue, 18 Jul 2023 14:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689715889; cv=none; d=google.com; s=arc-20160816; b=p106Z8upD3i3Ic4espMw1AgbliZlqX9IYraLaBNP0oFGL1IXKe9QEvHiE8qYQ4lpLV cwKBRtHylaz4zUDdlD1U+JbM2khcIVFTSuAnoqSCKdxlknaoJSspkQv1FeACT4PlqyjJ ASFLWothbA8NEvRwUF7NTaV7xUVhDF2sD6Ml5SP2ToXsH9EmmF2m4vo8PKP0kCkC8ZBQ T/gJV1fHf0kTX99tOZHYwkSxhlb397qgnkdkONuExo4MYhVHEnfs2S4sAJG0fQ3tKwMG XLoDOp8povMEt5PwnQbumO1hjB8V7bEWdt+hVKuFyoyiXxsiXPLTZl3GVxRkonKMzjne Nd4g== 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=j9kqsAPqqMBM/qqKKqrLJDRg035BHx7ziZilU39fCK4=; fh=iqz7oRQIyFPzKfYtMH2XRwjdfOOz2hPKEmrmNt7b2jU=; b=lSFszRRerNzLHqZk9wXEOI5DzRCVxgWf8za1KBEwG1WZTIiF5eSsbJPlR5hTd7QFWk fC+8oBOsF82toqqQobpmPqPWAbo0ZatLYF2BTNwsjv6z6pfrCEh3qBVZMWWONTskCmkB 8dZ3EHyIul9eiYIRju0YlmmxWQMfhmqf1/+CUmSVF6NifcnqelWOP1Hsa2H/xww9ej0/ 8M85Qu1A55KwUJGuieRGO+SM1MT84tt4AcWSzbfV5sHq4oidFi20yPLVgYyafd83hDM6 eqbJcUm2jyrjhRHAaah13oxi5q+jf/dCTg7W3n8Zy4UMHIObIVDLgyc22f2y1er5ufIP tZPg== 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 ha14-20020a170906a88e00b009938899a39bsi1665879ejb.861.2023.07.18.14.30.35; Tue, 18 Jul 2023 14:31:29 -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 S231529AbjGRVZU (ORCPT + 99 others); Tue, 18 Jul 2023 17:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbjGRVZD (ORCPT ); Tue, 18 Jul 2023 17:25:03 -0400 Received: from relay07.th.seeweb.it (relay07.th.seeweb.it [5.144.164.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 029761FC1; Tue, 18 Jul 2023 14:24:53 -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 E4FAE3F612; Tue, 18 Jul 2023 23:24:50 +0200 (CEST) From: Marijn Suijten Date: Tue, 18 Jul 2023 23:24:45 +0200 Subject: [PATCH v3 09/15] drm/msm/mdss: Add SM6125 support MIME-Version: 1.0 Message-Id: <20230718-sm6125-dpu-v3-9-6c5a56e99820@somainline.org> References: <20230718-sm6125-dpu-v3-0-6c5a56e99820@somainline.org> In-Reply-To: <20230718-sm6125-dpu-v3-0-6c5a56e99820@somainline.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Krishna Manikandan , Marijn Suijten , Loic Poulain , Konrad Dybcio Cc: ~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 X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771795529012853519 X-GMAIL-MSGID: 1771795529012853519 SM6125 has an UBWC 3.0 decoder but only an UBWC 1.0 encoder. Reviewed-by: Dmitry Baryshkov 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 dd22d0bd1201..ad66ccf0b6e1 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -568,6 +568,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, @@ -589,6 +596,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 },