Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17380085rwd; Tue, 27 Jun 2023 02:05:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yFKVdAuFJTgY0+vgOSs0ICpvs1k97WRKfgUV1F+m5m1QlMBWvNSXhB7YgdwMSX8p1z3HO X-Received: by 2002:a05:6a00:a23:b0:656:c971:951 with SMTP id p35-20020a056a000a2300b00656c9710951mr57120881pfh.8.1687856739227; Tue, 27 Jun 2023 02:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687856739; cv=none; d=google.com; s=arc-20160816; b=EcT63qcwnT9fWKgm1L31o1wlWSiEVf0p57IPPN1E3Oa/kmix0Q9/JPmRiw1gtdGyV+ Xt4EVHHTQr18muEA0+edszRuUfQ6fLVZko1/9lLqekCLy3RXdfn4vvIHBWMBod2C8ATJ OrIvAF2YeC1a2sGiWsktcVlluaB4bKdv2baciSrZ7+g+v0GtVKLHFczQmk5fsVkLEnxH teSKu8iBqKygP6gU3dKrVQb8hjBuPgoz8BrhixPoIHWqjrjug/ZLh+IHk6ywQPzNEf4n KYAFTI1Z31oEg2WV5VE2ssGwTadicGmXke9QDphcmOOHx51fJCDWSIsBNPr+wbbnXmam sidw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TomAZ7O1EcBP8WsIDD1uG9Qcrmlg/XdNsRiguOyzx/0=; fh=7gHygwhuBciakuBSLsI2IBrNBcXxliFRR1xjjJOF5P8=; b=JSxdTtCHyDgCmz6LARNYmUrxL1YhqD/2nJ/C0eytD0LhtvKx6TEGY7SDAVHdvkuxOJ 1+OmpzsTTn/aIK2rAcVQ50xqay/RWrBiQUfU8dTrt0DR5nKtJFfohDO+WAvc2a45yb1X kzpMkBvf2Wuq73jCKuakz6NmztFfGsIoJXHwsy/+axLcf//tlU1U21MWBgKrRURoGol6 vBmIU4ooQasVG8Zvx7BmeuDkt1SzF7Yk6YLkHx11pqzzdIKpEHk2c/TlsnDCv126+wn2 p1qsidKAGht5XH3zbFF4RWpw7u8CBnU25GIXNkwqKyvog/rDoWwFqrrsmLrVadDPH2Lb ZbZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RN9aLjVi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b185-20020a62cfc2000000b0066a4a09645dsi6569579pfg.254.2023.06.27.02.05.27; Tue, 27 Jun 2023 02:05:39 -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; dkim=pass header.i=@linaro.org header.s=google header.b=RN9aLjVi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231540AbjF0ItQ (ORCPT + 99 others); Tue, 27 Jun 2023 04:49:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231488AbjF0ItM (ORCPT ); Tue, 27 Jun 2023 04:49:12 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54CC8131 for ; Tue, 27 Jun 2023 01:49:10 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f8777caaa1so5845154e87.3 for ; Tue, 27 Jun 2023 01:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687855748; x=1690447748; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TomAZ7O1EcBP8WsIDD1uG9Qcrmlg/XdNsRiguOyzx/0=; b=RN9aLjViLhcUH7KdpEXWJIAnR1KYFcbSesBCdFKTJhwVucsZLjDKnrhZjy/zoNoikP ZyjER8DVaECxXuqaOsf+/BAdzpowTouasRQCLrMrMn6jfQe4A0oeU1FGKN+oGbahWaQa Cki7OuUbEM4mJScX9zc/TCTrJqDpPaA0AU1u3yl/jmwzOLQfNQm+oKWIT4z5OF6PVs4M /ED2ykvHh4Z4alap67p2FI/AfvJvJeobLVb+XzBZTb+iz1/zW5qlJRm3huUcg+k8/Kyo JKORQVbwQmknHFwpef92HI2XluXPrcIKuBxe5/KO5z0x6cGyONu1pEUOz4I5onG0hHUP /lPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687855748; x=1690447748; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TomAZ7O1EcBP8WsIDD1uG9Qcrmlg/XdNsRiguOyzx/0=; b=A5QrVMYV53bUu7ZVilDWsGz7GSki890g04a4ETLd7q803eTo3avq2sSWa5mpnBSMBY pTDWU4MWt1eaA+uCzHfR+ZoI6CVwYOGxX0KniVRJOWwvGstmb2AGurfpWonGxaovfJe3 JRW2pTQ+JxsPe1U+OzRsw0ebaaUfyTsTXrgSpr6xtiAgHLoVrC6SMeF1kiiNsyM/wSyb qVEy+wF/exDWyGKA+86QO+BM9BDkO+JJg9/5S5sIqWaAWwB0h/PXTsuXN2rALetI1D/t tazRZoJCRyVxfxVUNNiVYHkOqIkeSf6GNbNOI+S8/k9RF+GXo5MH22wsZQ99mhNjyMn+ 0WuA== X-Gm-Message-State: AC+VfDzZVaXE4ESJ7av0PAG+cmKN1LfQhjeNCB3WtCRKYyXBXUJCgASD 94fmMtN4zmDUYiHkugtYnob2WQ== X-Received: by 2002:a19:e044:0:b0:4f8:7754:62e1 with SMTP id g4-20020a19e044000000b004f8775462e1mr13177206lfj.40.1687855748412; Tue, 27 Jun 2023 01:49:08 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id r1-20020a19ac41000000b004f82c820245sm1419563lfc.107.2023.06.27.01.49.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Jun 2023 01:49:07 -0700 (PDT) Message-ID: <9ba8e5c9-642d-a09d-7e82-adba8e5497aa@linaro.org> Date: Tue, 27 Jun 2023 11:49:07 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 09/15] drm/msm/mdss: Add SM6125 support Content-Language: en-GB To: Marijn Suijten , 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 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 References: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> <20230624-sm6125-dpu-v1-9-1d5a638cebf2@somainline.org> From: Dmitry Baryshkov In-Reply-To: <20230624-sm6125-dpu-v1-9-1d5a638cebf2@somainline.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 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 > --- > 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