From patchwork Thu Apr 1 02:05:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 413538 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp161056jai; Wed, 31 Mar 2021 19:05:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa6QxFS4/YtEJ/mOaI/N9m4z27YTFURITHaA3zFNBu0qhud/WbJkSM+5YjxHTrNh9l+/qn X-Received: by 2002:a65:4287:: with SMTP id j7mr5706373pgp.441.1617242745019; Wed, 31 Mar 2021 19:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617242745; cv=none; d=google.com; s=arc-20160816; b=gDhh2B5pqF8MoZUq6jdridOhWbPgrB4/c4kLb4fLMlqQ2FpxPK1QScp0wruDrUOVtW o9xsnB0OkrFPym+UM7Tumw/OJt4UM1NNsNKvQsTXl+pgk8Vzul5pn1eFS0rNqWCa3dxf /9eVrdYeaH4j8s7NlsTPi3uSvF6sK7DqnAopBbf3QmTc0c0P/Lfq54Gi/jQBUzkWIUr1 6OeuZYoaa4Oa1NlG/XXZQMAW3j7WBg6GXNhVLmBW7gn1Sc0/0Xc6cWuCGPdVGA3lY1nc o9/TrOhBWfhXlsVoJw6HTKkl+3JbCYUXsx4XXj35QSuLI4uFqS06H0OI9OmPVHeKttL9 NpXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=U6uLutUjVZv0BY6qiirL/Tn2aQIkf68N4UQSnIcARJE=; b=VhJ9WcyIMWWQVZG5b4n40VgI86UIwws3ixJpwo2mTwwLFJaEzKVHuBB6ekVdCzSpBD wNE6TuH7RcDSnyydpcYK3zzNib3VoCfYFYM05kczokH9fUWho2kbZ8NfRU4cXCOkej0z yY0V8pesGzYIX23w9Bh6iAaVO+b29wZabXp7lLN0zwumnGBWcYhKDRNacyboz2e+yhoK g2U41+joeENOFIkDdxbQO5c0roBOyxUjCYhsXbXHABmnA3mYugD0SXg28JD9fPooOIhv a+Kj6jhlg3NhG2tL/p5jMXVOKXe6D68OCBSA4gfRng6J+birscA33wsZTOn52EEVsXAD A60w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AuhdP2R2; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id z9si4252300plg.322.2021.03.31.19.05.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 19:05:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AuhdP2R2; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6F9C46EC0A; Thu, 1 Apr 2021 02:05:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1C05E6EC09 for ; Thu, 1 Apr 2021 02:05:38 +0000 (UTC) Received: by mail-lj1-x230.google.com with SMTP id s17so517500ljc.5 for ; Wed, 31 Mar 2021 19:05:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EZtsCVis+vCjte+rmZOhgHYRoursgoalpacTDNYwKSU=; b=AuhdP2R2Moo+S96ZpsVcPCs4in4KziUI94OX/i/z7/t5DFG3QhrEepUOwZ80rrUyaO EYk5rvKxitPK34AlnjIgX0TKVdyOQHjrogBSfKEY+PBYmJQQ9US/UZo0YikARYf16uzS 0f89SpLDx/9bYN94C6kZS3Raqlt2rgkM7MVOebFWCvHp/bMnKUqJYPdeKIa2RKwvu/Wt uX6GBeeFWYAVep5kkc4eekuDzAMLs2uPaiare1adk9jp7vyUhpGaPV9xRQ3LXOUFrKXf VhX8mLEHppg/5cjYWowUlJ3HZryGPNA7ySpGoEruV5Jf8wVlRVT92ZBPzyiP6bEF7r+N pIRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EZtsCVis+vCjte+rmZOhgHYRoursgoalpacTDNYwKSU=; b=F0pDliyM9T1Uqy1i8LgeXUXKZDdRoux3zYV23D8jVUXmu2zU6rOzu7QcRainwKDkOr 1HHK7jexbdrOBQq9fZJ3ZLdKX7dOYepU7LlY+ZSzh4nI4aFcL3XDsnUkV08YKbSgCeKP /M2pMkWuXlklyoLDoPuKO+6/E3CR++5cR3yKL/eUeaCADQ3csIir/Gjjr//miN8UNtyG yOQUB0G+UL90bp7b+RtpqqhiFiYJHSrsyMgujdIMgtVBUuVezefwZpe62/vFrqwv4Lck hqdK7yWtmCG1mM/5zMC3b0KxhfpKeEMAwmuiUNAcmrvVb+Eq0X9nt0TEH7c9f9IqecyJ cezA== X-Gm-Message-State: AOAM5311hH1dBeEpsvWcQxgnMs1oKqsBaWvRur2dMRlA1i28D3YNd/08 G1dm98oYJikFEfE3gwKkbbLsEw== X-Received: by 2002:a05:651c:211e:: with SMTP id a30mr4141129ljq.18.1617242734705; Wed, 31 Mar 2021 19:05:34 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id l4sm383635lfg.123.2021.03.31.19.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 19:05:34 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Jonathan Marek Subject: [PATCH 1/2] drm/msm/dpu: fill missing details in hw catalog for sdm845 and sm8[12]50 Date: Thu, 1 Apr 2021 05:05:32 +0300 Message-Id: <20210401020533.3956787-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Boyd , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fill clk_inefficiency_factor, bw_inefficiency_factor and min_prefill_lines in hw catalog data for sdm845 and sm8[12]50. Efficiency factors are blindly copied from sc7180 data, while min_prefill_lines is based on downstream display driver. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.30.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel 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 189f3533525c..a9f74c1177dd 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -817,6 +817,8 @@ static const struct dpu_perf_cfg sdm845_perf_data = { {.rd_enable = 1, .wr_enable = 1}, {.rd_enable = 1, .wr_enable = 0} }, + .clk_inefficiency_factor = 105, + .bw_inefficiency_factor = 120, }; static const struct dpu_perf_cfg sc7180_perf_data = { @@ -852,6 +854,7 @@ static const struct dpu_perf_cfg sm8150_perf_data = { .min_core_ib = 2400000, .min_llcc_ib = 800000, .min_dram_ib = 800000, + .min_prefill_lines = 24, .danger_lut_tbl = {0xf, 0xffff, 0x0}, .qos_lut_tbl = { {.nentry = ARRAY_SIZE(sm8150_qos_linear), @@ -869,6 +872,8 @@ static const struct dpu_perf_cfg sm8150_perf_data = { {.rd_enable = 1, .wr_enable = 1}, {.rd_enable = 1, .wr_enable = 0} }, + .clk_inefficiency_factor = 105, + .bw_inefficiency_factor = 120, }; static const struct dpu_perf_cfg sm8250_perf_data = { @@ -877,6 +882,7 @@ static const struct dpu_perf_cfg sm8250_perf_data = { .min_core_ib = 4800000, .min_llcc_ib = 0, .min_dram_ib = 800000, + .min_prefill_lines = 35, .danger_lut_tbl = {0xf, 0xffff, 0x0}, .qos_lut_tbl = { {.nentry = ARRAY_SIZE(sc7180_qos_linear), @@ -894,6 +900,8 @@ static const struct dpu_perf_cfg sm8250_perf_data = { {.rd_enable = 1, .wr_enable = 1}, {.rd_enable = 1, .wr_enable = 0} }, + .clk_inefficiency_factor = 105, + .bw_inefficiency_factor = 120, }; /************************************************************* From patchwork Thu Apr 1 02:05:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 413537 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp161034jai; Wed, 31 Mar 2021 19:05:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwevTvuUMBzfFcJB7w/fs4kW06xahi6pQvI9px3sPblP4CSZLDNqo85lAwe2l4oKGKFsqCw X-Received: by 2002:a17:90a:9f4a:: with SMTP id q10mr6427376pjv.129.1617242742863; Wed, 31 Mar 2021 19:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617242742; cv=none; d=google.com; s=arc-20160816; b=t934XiYn8gwa1B9vICpgejr9za9tx36Pcg4SOhgy7uZRWNelWsLh5MeIq5iC2tYDxH Y2bsIUKyUhGGeTKEfnWKCPx4h4Xmqo8jfP5PFPI5UqtjUncjSb91vQNFRYuKpmTqyLZP 1U/7IdG0fPqvoiUlGVdaS202kTqFWUlktttR86gg+f/8lkCH7HO/3uGIsg1gom0+BpVb tHdqbGPjLpZVL7cwjVCK+nMxrFQhyXDAJg+OPmWDienGz6nMc0/+8jlFag9eab7DzGGH 2oCHXzoDvFOaUIPwYI0CxGtgPLG6u/7hyl7KCZqkdi7KZ2YqHzSZmX/RFBDjJwUaStyA UE+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=my39rbhtMIBpIpsG7I1bpcvjCOHq4j0yQ2aO5cgfzXs=; b=R5IZ7PKcpCtJhIC0oMJhej6dra6Jyau7FKZWRQkOcbHIdQAJxPI4tMRxQqzC0n392A ia5VFDlaeSHWNyA9GIkwiGiKFWvN/Xp6r8D7+/NZCf25RnJAc5+8Ul8v4IkBPew8VZLr 5nApwv3VGO4lI2CJ1RikFLBKxjyF6rugjFCQLA8KWiP1S62t1gLp/0ro09taUDb8KUci mLIb2eeJbMkpwUs6sFFVMknxsXAUVkPf/VI8iFfFv8EQ1pfIgtlsXo3vZkUqjECDYAvE P2np0Pcd4wg8Urd2Q9zutTGySjLLNAQjQvgLBs/2ZFX6jYygDyGKFPr0cGyNsvQA+A6Y bYqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Rm/0hYgL"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id y12si4001462pju.27.2021.03.31.19.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 19:05:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Rm/0hYgL"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6863B6EC09; Thu, 1 Apr 2021 02:05:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by gabe.freedesktop.org (Postfix) with ESMTPS id F29226EC07 for ; Thu, 1 Apr 2021 02:05:36 +0000 (UTC) Received: by mail-lj1-x22a.google.com with SMTP id u10so505867lju.7 for ; Wed, 31 Mar 2021 19:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=npIx+syRqPHuDl3yS1YmnkoXjeuuW+FJx46iC8knyUQ=; b=Rm/0hYgL3m78hKiTKo+fqDiJZmlsD1NmPQL/rT+94qQOPu4LJn6ehmPnke3KWE+m0R eE1XQC1FJJUd5wceDPBRQy5FFCproZJmThsYt8dalihwkjiuwu3gahyMoI5OmGclte0w PFJTNLDyPZj62y9/oHDk7aD/zebXV7Vx2dgtvQzqAq5253bG3IjAVEkqPTwZjtRzMplt AxfXQknjF8WME5PQAdLT78M40xueqB/nCXJ0Kb2LkUPqMtwF5MLzIfciDdyPgGlbrBno 3CE/Hp16RV9ZTo6gyqF5hpp/Q9nZ9MaHrGGSt4+qN0cKwxF2S4RfRWB2vI8B1HGR+I+o uHMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=npIx+syRqPHuDl3yS1YmnkoXjeuuW+FJx46iC8knyUQ=; b=oQX7lR9p9jW3P2GuQJfQeG0+I8d/pQ7v+t/d+RcVqBYfE44WtmyXehpQiSCpbBXjOc j8/lcP7Z9W1PLmXYJ/gDnJXYl9qja3gR8MnXt2x/7FyQrbqWRQTTdLCaawxH/Rkmxfsa xY9pynwrxX58mctrLcJ4mHMJoxnja0DNlu08PewRh/HeOYvIUimL6eKi6ZF1sKzmOzUh gW9QRd69+js+VqzaEYGQ1RGkRjZGY36zxlGaVf1OLXHfxA7RxQg2W2tuR6Aci5nBFL4B 7mrt27X/2fBUo3dDlw9rh2IvxNK3kVmAf/oxxLprATxzGxuQogO3ZJniA8HF3UyLbtFw JzDQ== X-Gm-Message-State: AOAM530XootW3U2x+VVq53itFDqKJUFXWW8uGuwmDS8SZbMC8kn210ES VVK5GlKW3r8ZDO1S6NxvOemaTQ== X-Received: by 2002:a2e:958c:: with SMTP id w12mr3920089ljh.117.1617242735406; Wed, 31 Mar 2021 19:05:35 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id l4sm383635lfg.123.2021.03.31.19.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 19:05:35 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Jonathan Marek Subject: [PATCH 2/2] drm/msm/dpu: always use mdp device to scale bandwidth Date: Thu, 1 Apr 2021 05:05:33 +0300 Message-Id: <20210401020533.3956787-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210401020533.3956787-1-dmitry.baryshkov@linaro.org> References: <20210401020533.3956787-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Boyd , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Currently DPU driver scales bandwidth and core clock for sc7180 only, while the rest of chips get static bandwidth votes. Make all chipsets scale bandwidth and clock per composition requirements like sc7180 does. Drop old voting path completely. Tested on RB3 (SDM845) and RB5 (SM8250). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 3 +- drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 51 +----------------------- 2 files changed, 2 insertions(+), 52 deletions(-) -- 2.30.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 85f2c3564c96..fb061e666faa 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -933,8 +933,7 @@ static int dpu_kms_hw_init(struct msm_kms *kms) DPU_DEBUG("REG_DMA is not defined"); } - if (of_device_is_compatible(dev->dev->of_node, "qcom,sc7180-mdss")) - dpu_kms_parse_data_bus_icc_path(dpu_kms); + dpu_kms_parse_data_bus_icc_path(dpu_kms); pm_runtime_get_sync(&dpu_kms->pdev->dev); diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c index cd4078807db1..3416e9617ee9 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c @@ -31,40 +31,8 @@ struct dpu_mdss { void __iomem *mmio; struct dss_module_power mp; struct dpu_irq_controller irq_controller; - struct icc_path *path[2]; - u32 num_paths; }; -static int dpu_mdss_parse_data_bus_icc_path(struct drm_device *dev, - struct dpu_mdss *dpu_mdss) -{ - struct icc_path *path0 = of_icc_get(dev->dev, "mdp0-mem"); - struct icc_path *path1 = of_icc_get(dev->dev, "mdp1-mem"); - - if (IS_ERR_OR_NULL(path0)) - return PTR_ERR_OR_ZERO(path0); - - dpu_mdss->path[0] = path0; - dpu_mdss->num_paths = 1; - - if (!IS_ERR_OR_NULL(path1)) { - dpu_mdss->path[1] = path1; - dpu_mdss->num_paths++; - } - - return 0; -} - -static void dpu_mdss_icc_request_bw(struct msm_mdss *mdss) -{ - struct dpu_mdss *dpu_mdss = to_dpu_mdss(mdss); - int i; - u64 avg_bw = dpu_mdss->num_paths ? MAX_BW / dpu_mdss->num_paths : 0; - - for (i = 0; i < dpu_mdss->num_paths; i++) - icc_set_bw(dpu_mdss->path[i], avg_bw, kBps_to_icc(MAX_BW)); -} - static void dpu_mdss_irq(struct irq_desc *desc) { struct dpu_mdss *dpu_mdss = irq_desc_get_handler_data(desc); @@ -178,8 +146,6 @@ static int dpu_mdss_enable(struct msm_mdss *mdss) struct dss_module_power *mp = &dpu_mdss->mp; int ret; - dpu_mdss_icc_request_bw(mdss); - ret = msm_dss_enable_clk(mp->clk_config, mp->num_clk, true); if (ret) { DPU_ERROR("clock enable failed, ret:%d\n", ret); @@ -213,15 +179,12 @@ static int dpu_mdss_disable(struct msm_mdss *mdss) { struct dpu_mdss *dpu_mdss = to_dpu_mdss(mdss); struct dss_module_power *mp = &dpu_mdss->mp; - int ret, i; + int ret; ret = msm_dss_enable_clk(mp->clk_config, mp->num_clk, false); if (ret) DPU_ERROR("clock disable failed, ret:%d\n", ret); - for (i = 0; i < dpu_mdss->num_paths; i++) - icc_set_bw(dpu_mdss->path[i], 0, 0); - return ret; } @@ -232,7 +195,6 @@ static void dpu_mdss_destroy(struct drm_device *dev) struct dpu_mdss *dpu_mdss = to_dpu_mdss(priv->mdss); struct dss_module_power *mp = &dpu_mdss->mp; int irq; - int i; pm_runtime_suspend(dev->dev); pm_runtime_disable(dev->dev); @@ -242,9 +204,6 @@ static void dpu_mdss_destroy(struct drm_device *dev) msm_dss_put_clk(mp->clk_config, mp->num_clk); devm_kfree(&pdev->dev, mp->clk_config); - for (i = 0; i < dpu_mdss->num_paths; i++) - icc_put(dpu_mdss->path[i]); - if (dpu_mdss->mmio) devm_iounmap(&pdev->dev, dpu_mdss->mmio); dpu_mdss->mmio = NULL; @@ -276,12 +235,6 @@ int dpu_mdss_init(struct drm_device *dev) DRM_DEBUG("mapped mdss address space @%pK\n", dpu_mdss->mmio); - if (!of_device_is_compatible(dev->dev->of_node, "qcom,sc7180-mdss")) { - ret = dpu_mdss_parse_data_bus_icc_path(dev, dpu_mdss); - if (ret) - return ret; - } - mp = &dpu_mdss->mp; ret = msm_dss_parse_clock(pdev, mp); if (ret) { @@ -307,8 +260,6 @@ int dpu_mdss_init(struct drm_device *dev) pm_runtime_enable(dev->dev); - dpu_mdss_icc_request_bw(priv->mdss); - return ret; irq_error: