Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BB27C4338F for ; Fri, 6 Aug 2021 15:09:45 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DA5B361058 for ; Fri, 6 Aug 2021 15:09:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DA5B361058 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 715776E33F; Fri, 6 Aug 2021 15:09:44 +0000 (UTC) Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6CE756E08C for ; Fri, 6 Aug 2021 14:30:17 +0000 (UTC) Received: from relay3-d.mail.gandi.net (unknown [217.70.183.195]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 23A5DC258D for ; Fri, 6 Aug 2021 14:30:15 +0000 (UTC) Received: (Authenticated sender: hadess@hadess.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 6E3EF60010; Fri, 6 Aug 2021 14:29:52 +0000 (UTC) Message-ID: <3524e3fb29d40003e59645a9ee5364ac62d34879.camel@hadess.net> Subject: Re: Power-saving/performance toggles for amdgpu From: Bastien Nocera To: Alex Deucher Cc: amd-gfx list Date: Fri, 06 Aug 2021 16:29:51 +0200 In-Reply-To: References: <36ccfc64de628c060a736b8e05ae076246b686fc.camel@hadess.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.2 (3.40.2-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 06 Aug 2021 15:09:34 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Nearly a year later, hello again, :) On Mon, 2020-09-14 at 01:46 -0400, Alex Deucher wrote: > On older radeons (e.g., pre-GCN hardware), there were separate power > states for battery and AC, but these asics are supported by the radeon > kernel driver.  None of the hardware supported by amdgpu exposes > anything like that anymore.  The rest is mainly for profiling and > debugging.  For more information see the relevant kernel > documentation: > https://www.kernel.org/doc/html/latest/gpu/amdgpu.html#gpu-power-thermal-controls-and-monitoring > I don't think there is anything you'd want to tweak there. Is the power_dpm_force_performance_level sysfs property for the amdgpu driver not something that one could tweak? https://www.kernel.org/doc/html/latest/gpu/amdgpu.html#power-dpm-force-performance-level System76's own power management daemon changes it: https://github.com/pop-os/system76-power/blob/master/src/radeon.rs So I'm wondering whether it would have any effect, for example, I would expect setting "high" when a performance mode is requested so that there's little latency in terms of frequency switching, "low" to force minimal power draw in a power saving mode, and "auto" the rest of the time. Cheers