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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.1 X-Yandex-Fwd: 2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1653064199; bh=Mw2sEXkxCpkpdYZNGkYXojAJXtlWncRrEg1YNfmTPPo=; h=Reply-To:In-Reply-To:References:Date:Subject:Cc:To:From: Message-Id; b=YNHenii8DdHcmRUIROTtrSynDOuE7Cy5uXvFyqbfrFABt3OxMQ6KVtfxchRk+VYmu BaO5jarc2JDaEcqLfJaf4w8/BAMKlri59Z9fUqg6UA1PuoOJD3ISzYDAosOsJZiEYO KjlKiArX2RO7FmYjpjJkRfUb2IXeNFPtMWivXMPc= Authentication-Results: sas1-8cb9eff5270f.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru From: asheplyakov@yandex.ru To: devel@lists.altlinux.org Date: Fri, 20 May 2022 20:28:34 +0400 Message-Id: <20220520162849.1554351-21-asheplyakov@yandex.ru> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220520162849.1554351-1-asheplyakov@yandex.ru> References: <20220520162849.1554351-1-asheplyakov@yandex.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Vitaly Chikunov , Igor Chudov , Alexey Sheplyakov , Evgeny Sinelnikov Subject: [devel] [PATCH 20/35] drm/panfrost: disable devfreq on Baikal-M X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2022 16:30:15 -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. X-DONTUPSTREAM X-feature-Baikal-M --- 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 194af7f607a6..fc0e586f8f33 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.32.0