From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/gpu/drm/panfrost/panfrost_mmu.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/kernel/drivers/gpu/drm/panfrost/panfrost_mmu.c b/kernel/drivers/gpu/drm/panfrost/panfrost_mmu.c
index 8f7af65..7ab916a 100644
--- a/kernel/drivers/gpu/drm/panfrost/panfrost_mmu.c
+++ b/kernel/drivers/gpu/drm/panfrost/panfrost_mmu.c
@@ -236,7 +236,7 @@
if (pm_runtime_active(pfdev->dev))
mmu_hw_do_operation(pfdev, mmu, iova, size, AS_COMMAND_FLUSH_PT);
- pm_runtime_put_sync_autosuspend(pfdev->dev);
+ pm_runtime_put_autosuspend(pfdev->dev);
}
static int mmu_map_sg(struct panfrost_device *pfdev, struct panfrost_mmu *mmu,
@@ -451,6 +451,7 @@
if (IS_ERR(pages[i])) {
mutex_unlock(&bo->base.pages_lock);
ret = PTR_ERR(pages[i]);
+ pages[i] = NULL;
goto err_pages;
}
}
--
Gitblit v1.6.2