Message ID | 20231030132523.86123-1-angelogioacchino.delregno@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp2210459vqb; Mon, 30 Oct 2023 06:26:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGFV5WrSq+VVjV4/4WmsQ1Z6KuaP37B3ASCNz88d+cMgygVrzKjzL0/4CRamEYd1R1rzYYa X-Received: by 2002:a17:90a:1a51:b0:27d:306d:71c9 with SMTP id 17-20020a17090a1a5100b0027d306d71c9mr5987820pjl.49.1698672394932; Mon, 30 Oct 2023 06:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698672394; cv=none; d=google.com; s=arc-20160816; b=0UcesxZnE+s2DmPPHWlGpsAWr8oYHm65e21vgE6ijUFNFqUt5/7RUnaLM0tx+K7+6L 3SrUXSAnMcjG2PLLzUbhzZoaZvcPyyKXUHs8Y0XoJtiyyE3VCqnvcKIagt82ofGdt3il ciEK4SxR7nKKJq9OAwNtErReFIDx76emkD802mFw52VvRmHjnJeq1ADrRmLjXZocDbgf cIMITjjTqIF2nfdQby4QZQDLZIwxqGFWSOmre+pgWHM/wnDJ/9zcr1ChfsvAGnBU0duf k2rlXHNTKkygHgSBDMq63VoHWetSSfWgefOqMJnfspqYVKaqsLoBNfehKGeD1RrZZQcR k+rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6Ej1gehd9qh2qWxm1Oig9MmyhyNlnAtpPJ/2iAROCfo=; fh=WhxLg1QwYAW6G3y7Ta/l0xTSpul8CzDJhRwMQn8qDUA=; b=oIgqqEPRzGOv1K/AoAo6XfvPOK8d6jmDi22+ZSC66C+smEa9XYPmrYqky3IZGFPG1K FFLrkFQO9nyWgI/PteNG2X2XILwxNlNNWFg+X2SN3xpbfReXJn9LUFOnkZmZmWVg5W85 QDQnWeFRb8G/igoJeDXnc6jXAabS15rJiDpmQU9lTVmsmjJ+v7c7tHPxpr3YFcto/AvY 3RMbkp4kqrLi73kc8NkmG9136hp7+eTt00VxV9/fKjf1X5AsLG+WqlDJBFaA+HdKithE sSH24eRTVE3+VzPIii1Syihs4ihdGOq3aJ8L+AfSY8Ws9YOLUoZVLFVsF5un9+0XTNjc zUZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=D6EovCpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id nk24-20020a17090b195800b0028025d519cfsi3570919pjb.177.2023.10.30.06.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 06:26:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=D6EovCpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9AA6D8079316; Mon, 30 Oct 2023 06:25:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233385AbjJ3NZd (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 09:25:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232760AbjJ3NZb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Oct 2023 09:25:31 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4DB98E; Mon, 30 Oct 2023 06:25:29 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id D8CD4660297B; Mon, 30 Oct 2023 13:25:27 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698672328; bh=4eqeiWumk4iSfUH1LnoCuerSUI7m7wgrGgGcR0jKt20=; h=From:To:Cc:Subject:Date:From; b=D6EovCptxO0ZxALbuNpnoq/13GJgRkqwpxgY1tqF99+c3Qnj7nIkTOP+QIiv7pD0t 4fDwG08rEhEJR6D71qtxH+M6nmNJvAtM/E22zOWd8lw4ZZz+fXgjOqee58z3woKI2n UbQD1ZHF3OS287on70DQp2TfzNBbNAhmmdaM12nCgkNMp4LnayH5XXqxrm5UYd5YSP 8KBrgXvkbsWrzNpFEHQKZCGkiuMisVhcIl1T9bnp+PKnFQ47tOXGGN2XUXZc/g+P8l 4rNYb3/WCXBHkB9MV230pIx0/4ibr29eBHxrKm9Rt4/LPxnr3X9qqzvZ7Oz8t0JbFT eHh9awnUnUCtQ== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, wenst@chromium.org, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com Subject: [PATCH 0/2] MT8195 Cherry: Assign MFG vregs for power saving Date: Mon, 30 Oct 2023 14:25:21 +0100 Message-ID: <20231030132523.86123-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 30 Oct 2023 06:25:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781187105535189108 X-GMAIL-MSGID: 1781187105535189108 |
Series |
MT8195 Cherry: Assign MFG vregs for power saving
|
|
Message
AngeloGioacchino Del Regno
Oct. 30, 2023, 1:25 p.m. UTC
This series assigns the right regulators to MFG0 and MFG1, respectively VGPU (GPU Core) and VSRAM_OTHERS (GPU SRAM), and removes the property regulator-always-on from both. This allows to save power both during runtime suspend and during system sleep; specifically because: 1. The GPU SRAM regulator is switched off during runtime suspend 2. The GPU Core regulator is switched off during system sleep Of course, in order for those power saving actions to actually take place, it is required to also have the code in [1]. Anyway, even without series [1], this will not introduce any unstability as the Vgpu regulator will simply not ever get turned off. [1]: https://lore.kernel.org/r/20231030132257.85379-1-angelogioacchino.delregno@collabora.com AngeloGioacchino Del Regno (2): arm64: dts: mediatek: mt8195-cherry: Add MFG0 domain supply arm64: dts: mediatek: mt8195-cherry: Assign sram supply to MFG1 pd arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 10 ++++++++-- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-)
Comments
On Mon, Oct 30, 2023 at 9:25 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > This series assigns the right regulators to MFG0 and MFG1, respectively > VGPU (GPU Core) and VSRAM_OTHERS (GPU SRAM), and removes the property > regulator-always-on from both. > > This allows to save power both during runtime suspend and during system > sleep; specifically because: > 1. The GPU SRAM regulator is switched off during runtime suspend > 2. The GPU Core regulator is switched off during system sleep > > Of course, in order for those power saving actions to actually take > place, it is required to also have the code in [1]. > Anyway, even without series [1], this will not introduce any unstability > as the Vgpu regulator will simply not ever get turned off. > > [1]: https://lore.kernel.org/r/20231030132257.85379-1-angelogioacchino.delregno@collabora.com > > AngeloGioacchino Del Regno (2): > arm64: dts: mediatek: mt8195-cherry: Add MFG0 domain supply > arm64: dts: mediatek: mt8195-cherry: Assign sram supply to MFG1 pd Tested-by: Chen-Yu Tsai <wenst@chromium.org> on Tomato without the power saving patches. Regulators are correctly requested and I can see the SRAM regulator get turned on and off with GPU usage.
Il 31/10/23 10:19, Chen-Yu Tsai ha scritto: > On Mon, Oct 30, 2023 at 9:25 PM AngeloGioacchino Del Regno > <angelogioacchino.delregno@collabora.com> wrote: >> >> This series assigns the right regulators to MFG0 and MFG1, respectively >> VGPU (GPU Core) and VSRAM_OTHERS (GPU SRAM), and removes the property >> regulator-always-on from both. >> >> This allows to save power both during runtime suspend and during system >> sleep; specifically because: >> 1. The GPU SRAM regulator is switched off during runtime suspend >> 2. The GPU Core regulator is switched off during system sleep >> >> Of course, in order for those power saving actions to actually take >> place, it is required to also have the code in [1]. >> Anyway, even without series [1], this will not introduce any unstability >> as the Vgpu regulator will simply not ever get turned off. >> >> [1]: https://lore.kernel.org/r/20231030132257.85379-1-angelogioacchino.delregno@collabora.com >> >> AngeloGioacchino Del Regno (2): >> arm64: dts: mediatek: mt8195-cherry: Add MFG0 domain supply >> arm64: dts: mediatek: mt8195-cherry: Assign sram supply to MFG1 pd > > Tested-by: Chen-Yu Tsai <wenst@chromium.org> > > on Tomato without the power saving patches. Regulators are correctly > requested and I can see the SRAM regulator get turned on and off with > GPU usage. Yes, I confirm that the sram vreg going on/off is expected even without the power saving patches (as the power domain refcount decreases during runtime suspend). Thanks! Angelo