Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15248869rwd; Sun, 25 Jun 2023 13:26:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ48MA3A5xINSEYLOH/hRvUrXO1MoigquR1IgXH7x5zGbxq6eT8lI1QtyzsoNXVuF/+hMFiw X-Received: by 2002:a9d:560f:0:b0:6ab:27b5:d202 with SMTP id e15-20020a9d560f000000b006ab27b5d202mr24695638oti.37.1687724788017; Sun, 25 Jun 2023 13:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687724787; cv=none; d=google.com; s=arc-20160816; b=GgdaxWBD4e2NihW1NKjZJy+fiY4Mi2QYsJgft+a1B4KL481sXcdVO+Fh29EmIommzf WnrJWGG/DKZCP50GxFx2PSA2MSRVCgvnA7vNkV3QVkEoGS+b1Ma3Sr/ynpEtLAMBzN+I fCEqK1PmIg/OhKxEnFSWLxxO5kcmROzBkCv+qxQOIQQMmCaY/wmn7ZLemHEFaP3x9k8x VR6sUIZZg+79jwex+xxZqtJ4lpVWdA5XpC19NKa+ke7Df5vdP6TO/m0P4Ply3S0paAJ+ LkvaED4sTAvZ+VcwZ3jw4cQFJnZbVcPKe8YoLonrz8kMnG6KzeEmUgSbUxVIiXE4OXRg R3sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=YSW/PRyaLyF/YSdTpj9nhVBSS6rybZeoSOyEZzLAz1w=; fh=djDN5Fva8FmLoU0DRmInJWrBHVIqjCqUczAQ4tJuB6I=; b=x0q3s4QByxAFq8JO8ITp1hslchJKa1wEOqyaySkh+WI4GAIvGfAQjewX0JC/lsciL8 98xzQJjjqj6w0vazrkQXyxpwAZY4ri5O/GYr3qud6ujCt3+NQQAyF0GdvoS6HyNUyv74 hRzzAQm4q0QoWwOP9SvA4Qs7m9MvXxv2evg+uzt9Hh7tP0ppHJoVF12x/ND0PJEGRqM/ 9ZiQ4whTVOaQBNCGKA5iP+7a89vTfDtpijb5KHDwkcbWyQLae3gp0vtgL6SsYc3QMN40 I87amS8Gio2BhvIW7Q794qwxHKZoCtjn6JCyzjzcThI6hQInyjw+QGdQ5eMWKXXUg2gQ nO8A== 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 t18-20020a056a00139200b00678ee482bc7si116783pfg.251.2023.06.25.13.26.16; Sun, 25 Jun 2023 13:26:27 -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 S229725AbjFYUTy (ORCPT + 99 others); Sun, 25 Jun 2023 16:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbjFYUTx (ORCPT ); Sun, 25 Jun 2023 16:19:53 -0400 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [IPv6:2001:4b7a:2000:18::163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BB9419A; Sun, 25 Jun 2023 13:19:51 -0700 (PDT) Received: from SoMainline.org (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 ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id EC8BD1F65D; Sun, 25 Jun 2023 22:19:48 +0200 (CEST) Date: Sun, 25 Jun 2023 22:19:47 +0200 From: Marijn Suijten To: Konrad Dybcio Cc: 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 , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , 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 Subject: Re: [PATCH 08/15] drm/msm/dpu: Add SM6125 support Message-ID: References: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> <20230624-sm6125-dpu-v1-8-1d5a638cebf2@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On 2023-06-24 03:47:27, Konrad Dybcio wrote: > On 24.06.2023 02:41, Marijn Suijten wrote: > > Add definitions for the display hardware used on the Qualcomm SM6125 > > platform. > > > > Signed-off-by: Marijn Suijten > > --- > [...] > > > +static const struct dpu_perf_cfg sm6125_perf_data = { > > + .max_bw_low = 4100000, > > + .max_bw_high = 4100000, > > + .min_core_ib = 2400000, > > + .min_llcc_ib = 800000, > While Dmitry will likely validate other values Lovely. > I can tell you already that this SoC has no LLCC. Copy-paste error on downstream? https://git.codelinaro.org/clo/la/kernel/msm-4.14/-/blob/LA.UM.9.11.c25/arch/arm64/boot/dts/qcom/trinket-sde.dtsi#L146 - Marijn > > Konrad > > + .min_dram_ib = 800000, > > + .min_prefill_lines = 24, > > + .danger_lut_tbl = {0xf, 0xffff, 0x0}, > > + .safe_lut_tbl = {0xfff8, 0xf000, 0xffff}, > > + .qos_lut_tbl = { > > + {.nentry = ARRAY_SIZE(sm8150_qos_linear), > > + .entries = sm8150_qos_linear > > + }, > > + {.nentry = ARRAY_SIZE(sc7180_qos_macrotile), > > + .entries = sc7180_qos_macrotile > > + }, > > + {.nentry = ARRAY_SIZE(sc7180_qos_nrt), > > + .entries = sc7180_qos_nrt > > + }, > > + /* TODO: macrotile-qseed is different from macrotile */ > > + }, > > + .cdp_cfg = { > > + {.rd_enable = 1, .wr_enable = 1}, > > + {.rd_enable = 1, .wr_enable = 0} > > + }, > > + .clk_inefficiency_factor = 105, > > + .bw_inefficiency_factor = 120, > > +}; > > + > > +const struct dpu_mdss_cfg dpu_sm6125_cfg = { > > + .caps = &sm6125_dpu_caps, > > + .ubwc = &sm6125_ubwc_cfg, > > + .mdp_count = ARRAY_SIZE(sm6125_mdp), > > + .mdp = sm6125_mdp, > > + .ctl_count = ARRAY_SIZE(sm6125_ctl), > > + .ctl = sm6125_ctl, > > + .sspp_count = ARRAY_SIZE(sm6125_sspp), > > + .sspp = sm6125_sspp, > > + .mixer_count = ARRAY_SIZE(sm6125_lm), > > + .mixer = sm6125_lm, > > + .dspp_count = ARRAY_SIZE(sm6125_dspp), > > + .dspp = sm6125_dspp, > > + .pingpong_count = ARRAY_SIZE(sm6125_pp), > > + .pingpong = sm6125_pp, > > + .intf_count = ARRAY_SIZE(sm6125_intf), > > + .intf = sm6125_intf, > > + .vbif_count = ARRAY_SIZE(sdm845_vbif), > > + .vbif = sdm845_vbif, > > + .perf = &sm6125_perf_data, > > + .mdss_irqs = BIT(MDP_SSPP_TOP0_INTR) | \ > > + BIT(MDP_SSPP_TOP0_INTR2) | \ > > + BIT(MDP_SSPP_TOP0_HIST_INTR) | \ > > + BIT(MDP_INTF0_INTR) | \ > > + BIT(MDP_INTF1_INTR) | \ > > + BIT(MDP_INTF1_TEAR_INTR), > > +}; > > + > > +#endif > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c > > index 0de507d4d7b7..8a02bbdaae8a 100644 > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c > > @@ -33,6 +33,9 @@ > > #define VIG_SC7180_MASK \ > > (VIG_MASK | BIT(DPU_SSPP_QOS_8LVL) | BIT(DPU_SSPP_SCALER_QSEED4)) > > > > +#define VIG_SM6125_MASK \ > > + (VIG_MASK | BIT(DPU_SSPP_QOS_8LVL) | BIT(DPU_SSPP_SCALER_QSEED3LITE)) > > + > > #define VIG_SC7180_MASK_SDMA \ > > (VIG_SC7180_MASK | BIT(DPU_SSPP_SMART_DMA_V2)) > > > > @@ -348,6 +351,8 @@ static const struct dpu_sspp_sub_blks sc7280_vig_sblk_0 = > > > > static const struct dpu_sspp_sub_blks sm6115_vig_sblk_0 = > > _VIG_SBLK("0", 2, DPU_SSPP_SCALER_QSEED4); > > +static const struct dpu_sspp_sub_blks sm6125_vig_sblk_0 = > > + _VIG_SBLK("0", 3, DPU_SSPP_SCALER_QSEED3LITE); > > > > static const struct dpu_sspp_sub_blks sm8250_vig_sblk_0 = > > _VIG_SBLK("0", 5, DPU_SSPP_SCALER_QSEED4); > > @@ -762,6 +767,7 @@ static const struct dpu_qos_lut_entry sc7180_qos_nrt[] = { > > > > #include "catalog/dpu_5_0_sm8150.h" > > #include "catalog/dpu_5_1_sc8180x.h" > > +#include "catalog/dpu_5_4_sm6125.h" > > > > #include "catalog/dpu_6_0_sm8250.h" > > #include "catalog/dpu_6_2_sc7180.h" > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h > > index b860784ade72..4314235cb2b8 100644 > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h > > @@ -861,6 +861,7 @@ extern const struct dpu_mdss_cfg dpu_sc8180x_cfg; > > extern const struct dpu_mdss_cfg dpu_sm8250_cfg; > > extern const struct dpu_mdss_cfg dpu_sc7180_cfg; > > extern const struct dpu_mdss_cfg dpu_sm6115_cfg; > > +extern const struct dpu_mdss_cfg dpu_sm6125_cfg; > > extern const struct dpu_mdss_cfg dpu_sm6350_cfg; > > extern const struct dpu_mdss_cfg dpu_qcm2290_cfg; > > extern const struct dpu_mdss_cfg dpu_sm6375_cfg; > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > > index aa8499de1b9f..a1c7ffb6dffb 100644 > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > > @@ -1305,6 +1305,7 @@ static const struct of_device_id dpu_dt_match[] = { > > { .compatible = "qcom,sc8180x-dpu", .data = &dpu_sc8180x_cfg, }, > > { .compatible = "qcom,sc8280xp-dpu", .data = &dpu_sc8280xp_cfg, }, > > { .compatible = "qcom,sm6115-dpu", .data = &dpu_sm6115_cfg, }, > > + { .compatible = "qcom,sm6125-dpu", .data = &dpu_sm6125_cfg, }, > > { .compatible = "qcom,sm6350-dpu", .data = &dpu_sm6350_cfg, }, > > { .compatible = "qcom,sm6375-dpu", .data = &dpu_sm6375_cfg, }, > > { .compatible = "qcom,sm8150-dpu", .data = &dpu_sm8150_cfg, }, > >