Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp13191927rwd; Fri, 23 Jun 2023 17:51:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PJdmTyZdyvy25siMyuBCH6rZA+YgcVMl4AEjMjRsTYIiEERKQiEHb0LUmfdM3jbb3G3DZ X-Received: by 2002:a05:6808:6281:b0:39a:aba9:bcb6 with SMTP id du1-20020a056808628100b0039aaba9bcb6mr22827087oib.0.1687567865339; Fri, 23 Jun 2023 17:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687567865; cv=none; d=google.com; s=arc-20160816; b=nuLiLNyUJu1h5mmi8Ti3mwHpGgLCXGGS05I6ClYvd3wkf/J/jn1e/iiH64trHzv3IV /3jvEGtKTRfPI0qbVItwk4PCez6I0ZEDFDKZj81eG69p71MP8R9Xnx2bqVVHKbq0A2Mz KsEAVZnES4HFm1lhtrzcyO8uv+iFXoARGLL+5/oJcfHsrAZHOK81fypP2Id59/F9w4AN Cmu3uzFWH3lK1y8A6rxPTCiUxV7Hp1Lhfq9BnleyefbVLtShvV1UO19fIWURhkHpvRi8 XftSlOYsg/bmF808Bfkh22RNy9tusPx3MMXSH/vj6iWhrA2ByIwODJIV9NLHspBUGmC9 EMYQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a170902d0cb00b001b3e8b1d5c7si323239pln.260.2023.06.23.17.50.54; Fri, 23 Jun 2023 17:51:05 -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 S232483AbjFXAlx (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 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 , 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 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 }, -- 2.41.0