From patchwork Sat Jun 24 00:41:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 112393 Return-Path: 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 + 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 ); 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 ; 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 Date: Sat, 24 Jun 2023 02:41:07 +0200 Subject: [PATCH 09/15] drm/msm/mdss: Add SM6125 support MIME-Version: 1.0 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 , 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 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 , Marijn Suijten 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: 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?= SM6125's UBWC hardware decoder is version 3.0, and supports decoding UBWC 1.0. 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 },