mali_kbase_device_hw_csf gpu crash #129
Replies: 5 comments 75 replies
-
Since Armbian does not ship with GPU drivers installed, I can't be sure it's this distro. Unless you know all the GPU drivers were installed correctly, including performance governer tweaks. I can look at the kernel logs. If you can attach them to a text file and upload them here, use the command |
Beta Was this translation helpful? Give feedback.
-
Definitely, since I installed version 1.13, OrangePi 5 has been freezing a lot. |
Beta Was this translation helpful? Give feedback.
-
I may have found a solution. The original error can be seen below for future reference.
After looking at the file From c35b602e2caade4071361ac0070eeb036bdfed52 Mon Sep 17 00:00:00 2001
From: Joshua Riek <[email protected]>
Date: Sun, 7 May 2023 17:53:31 -0400
Subject: [PATCH] mali_kbase_device_hw_csf: remove kbase debug assert
---
.../device/backend/mali_kbase_device_hw_csf.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/arm/bifrost/device/backend/mali_kbase_device_hw_csf.c b/drivers/gpu/arm/bifrost/device/backend/mali_kbase_device_hw_csf.c
index 7939bfd8e..6289cb4c1 100644
--- a/drivers/gpu/arm/bifrost/device/backend/mali_kbase_device_hw_csf.c
+++ b/drivers/gpu/arm/bifrost/device/backend/mali_kbase_device_hw_csf.c
@@ -201,8 +201,11 @@ static bool kbase_is_register_accessible(u32 offset)
void kbase_reg_write(struct kbase_device *kbdev, u32 offset, u32 value)
{
- KBASE_DEBUG_ASSERT(kbdev->pm.backend.gpu_powered);
- KBASE_DEBUG_ASSERT(kbdev->dev != NULL);
+ if (WARN_ON(!kbdev->pm.backend.gpu_powered))
+ return;
+
+ if (WARN_ON(kbdev->dev == NULL))
+ return;
if (!kbase_is_register_accessible(offset))
return;
@@ -222,8 +225,11 @@ u32 kbase_reg_read(struct kbase_device *kbdev, u32 offset)
{
u32 val;
- KBASE_DEBUG_ASSERT(kbdev->pm.backend.gpu_powered);
- KBASE_DEBUG_ASSERT(kbdev->dev != NULL);
+ if (WARN_ON(!kbdev->pm.backend.gpu_powered))
+ return 0;
+
+ if (WARN_ON(kbdev->dev == NULL))
+ return 0;
if (!kbase_is_register_accessible(offset))
return 0;
--
2.25.1
|
Beta Was this translation helpful? Give feedback.
-
I saw that mali was missing some value from devicetree power-off-delay-ms so I search for if it was set in any of the rockchip's dts files. And found it in rk3399.dtsi I merged the value from there and added some other setting from that part.
I also added that security patch that was mention for android:
I sat PAN_MESA_DEBUG=gofaster,gl3 So far it looks more stable. The glmark2-es2-wayland still get out of resources after some time, but its just to terminate it with ctrl-cand thing are back to normal. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I think its a good approach to use a common kernel. I'm still using PAN_MESA_DEBUG=gofaster,gl3 but I think it's a good idea not to drop gofaster as default and let people add it if they want the performance on the cost of stability |
Beta Was this translation helpful? Give feedback.
-
it just freezes, mostly when using chrome but sometimes chrome is not on. at first i thought it was a weak psu but then i got 5v 5amp brick. then i thought maybe something is faulty, like memory or whatever so i tried armbian. no crashes so far on armbian. but it gets really hot bcos cpu does heavy work even on 1080p youtube.
sorry for me being a noob but is there something/somewhere i can look at, some log or whatever after the restart, to start with fixing this crashing cos it seems its related to this distro. when its frozen i can just push and hold power button or pull the cable, thats the only thing that helps.
thanks!
Beta Was this translation helpful? Give feedback.
All reactions