mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 10:32:54 +00:00
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 531ced5d7d678240e6e18ddc89cb32bf74423b60 Mon Sep 17 00:00:00 2001
|
|
From: Alexey Sheplyakov <asheplyakov@altlinux.org>
|
|
Date: Mon, 21 Jun 2021 15:42:47 +0400
|
|
Subject: [PATCH 621/634] drm/panfrost: disable devfreq on Baikal-M
|
|
|
|
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.
|
|
|
|
X-DONTUPSTREAM
|
|
---
|
|
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 194af7f60..fc0e586f8 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,
|
|
pfdev->comp->num_supplies);
|
|
--
|
|
2.33.2
|
|
|