2024-02-22 13:12:18 +03:00
|
|
|
From 33f35785fb5dccdcda5bc4a8787fba049eb7d2d8 Mon Sep 17 00:00:00 2001
|
2023-03-15 17:53:05 +03:00
|
|
|
From: Alexey Sheplyakov <asheplyakov@basealt.ru>
|
|
|
|
Date: Mon, 23 May 2022 19:34:31 +0400
|
|
|
|
Subject: [PATCH 624/631] 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.
|
|
|
|
|
|
|
|
Signed-off-by: Alexey Sheplyakov <asheplyakov@basealt.ru>
|
|
|
|
X-DONTUPSTREAM
|
|
|
|
X-feature-Baikal-M
|
|
|
|
---
|
|
|
|
drivers/gpu/drm/panfrost/panfrost_devfreq.c | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
|
2024-02-22 13:12:18 +03:00
|
|
|
index e78de99e9933..926f8f9b4187 100644
|
2023-03-15 17:53:05 +03:00
|
|
|
--- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c
|
|
|
|
+++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
|
2024-02-22 13:12:18 +03:00
|
|
|
@@ -126,6 +126,11 @@ int panfrost_devfreq_init(struct panfrost_device *pfdev)
|
2023-03-15 17:53:05 +03:00
|
|
|
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") ||
|
|
|
|
+ of_device_is_compatible(of_root, "baikal,bm1000")) {
|
|
|
|
+ dev_info(pfdev->dev, "disabling GPU devfreq on BE-M1000\n");
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
|
2024-02-22 13:12:18 +03:00
|
|
|
ret = panfrost_read_speedbin(dev);
|
|
|
|
if (ret)
|
2023-03-15 17:53:05 +03:00
|
|
|
--
|
2024-02-22 13:12:18 +03:00
|
|
|
2.40.1
|
2023-03-15 17:53:05 +03:00
|
|
|
|