From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 From: Alexey Sheplyakov To: devel-kernel@lists.altlinux.org Date: Mon, 3 Oct 2022 18:02:21 +0400 Message-Id: <20221003140226.1064966-26-asheplyakov@basealt.ru> X-Mailer: git-send-email 2.33.3 In-Reply-To: <20221003140226.1064966-1-asheplyakov@basealt.ru> References: <20221003140226.1064966-1-asheplyakov@basealt.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: nir@basealt.ru, jqt4@basealt.ru, rst@basealt.ru, sin@basealt.ru Subject: [d-kernel] [PATCH 25/31] drm/panfrost: disable devfreq on Baikal-M X-BeenThere: devel-kernel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2022 14:03:43 -0000 Archived-At: List-Archive: List-Post: Enabling GPU frequency scaling on Baikal-M cases GPU MMU lockup: [ 38.108633] panfrost 2a200000.gpu: AS_ACTIVE bit stuck Since GPU and CPU share the memory this locks up the whole system. Therefore disable devfreq on Baikal-M. Signed-off-by: Alexey Sheplyakov X-DONTUPSTREAM X-feature-Baikal-M --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c index fe5f12f16a63..bf0642d7739d 100644 --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c @@ -100,6 +100,10 @@ int panfrost_devfreq_init(struct panfrost_device *pfdev) DRM_DEV_INFO(dev, "More than 1 supply is not supported yet\n"); return 0; } + if (of_device_is_compatible(of_root, "baikal,baikal-m")) { + dev_info(pfdev->dev, "disabling GPU devfreq on BE-M1000\n"); + return 0; + } ret = devm_pm_opp_set_regulators(dev, pfdev->comp->supply_names); if (ret) { -- 2.33.3