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: Daniil Gnusarev To: devel-kernel@lists.altlinux.org Date: Mon, 14 Oct 2024 18:02:03 +0400 Message-ID: <20241014140221.535985-23-gnusarevda@basealt.ru> X-Mailer: git-send-email 2.42.2 In-Reply-To: <20241014140221.535985-1-gnusarevda@basealt.ru> References: <20241014140221.535985-1-gnusarevda@basealt.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [d-kernel] [PATCH 22/39] 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, 14 Oct 2024 14:02:10 -0000 Archived-At: List-Archive: List-Post: From: Alexey Sheplyakov 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c index e78de99e99335..926f8f9b4187e 100644 --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c @@ -126,6 +126,11 @@ 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") || + of_device_is_compatible(of_root, "baikal,bm1000")) { + dev_info(pfdev->dev, "disabling GPU devfreq on BE-M1000\n"); + return 0; + } ret = panfrost_read_speedbin(dev); if (ret) -- 2.42.2