From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 153E5C433F5 for ; Fri, 17 Sep 2021 08:21:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F220C60EDF for ; Fri, 17 Sep 2021 08:21:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240541AbhIQIW6 (ORCPT ); Fri, 17 Sep 2021 04:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238230AbhIQIW4 (ORCPT ); Fri, 17 Sep 2021 04:22:56 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7583EC061574; Fri, 17 Sep 2021 01:21:34 -0700 (PDT) Received: from [IPv6:::1] (unknown [IPv6:2a02:810c:c200:2e91:60e0:68ce:cb75:b798]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 12A8C221E6; Fri, 17 Sep 2021 10:21:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1631866889; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nnc+HY8a4/een0W4N4RVJwoWUUFXT3UU5FvOqYxu5fo=; b=Fpb0gnQGHSui0beRgFelwfi/m11KMrP+aRet+Ieb6etkH55CoVi7tlIx1ZbjU6QlsOXA42 P+AuYmrQAMnoX/JVanUgphU351p/SM8PdmAdJjmh8JZ9TKrC3zAsD1w5yqfWBWO3N9CoDk e2S8NAz0DVLJbILfpEYwxOSZJJ0GItE= Date: Fri, 17 Sep 2021 10:21:25 +0200 From: Michael Walle To: Heiko Thiery , Frieder Schrempf CC: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Joakim Zhang , Shengjiu Wang , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , =?ISO-8859-1?Q?Guido_G=FCnther?= , "Angus Ainslie (Purism)" Subject: =?US-ASCII?Q?Re=3A_=5BPATCH=5D_arm64=3A_dts=3A_imx8mm-kontron-n8?= =?US-ASCII?Q?01x-som=3A_do_not_allow_to_switch_off_buck2?= User-Agent: K-9 Mail for Android In-Reply-To: References: <20210915120325.20248-1-heiko.thiery@gmail.com> <7e7ee4244ababc0a46e0875222c7e37d@walle.cc> <898fd5e0-2073-3689-89b6-2c5071773786@kontron.de> Message-ID: <3EDFF987-82C2-4B0A-9488-037D1BD4CA48@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 17=2E September 2021 09:28:51 MESZ schrieb Heiko Thiery : >Hi Frieder, > >Am Mi=2E, 15=2E Sept=2E 2021 um 14:09 Uhr schrieb Frieder Schrempf >: >> >> On 15=2E09=2E21 14:05, Michael Walle wrote: >> > Am 2021-09-15 14:03, schrieb Heiko Thiery: >> >> The buck2 output of the PMIC is the VDD core voltage of the cpu=2E >> >> Switching off this will poweroff the CPU=2E Add the 'regulator-alway= s-on' >> >> property to avoid this=2E >> > >> > Mh, have this ever worked? Is there a commit which introduced a regre= ssion? >> >> Yes, this did work before, even without 'regulator-always-on'=2E I >> currently don't understand why this is needed=2E The regulator is >> referenced in the CPU nodes as 'cpu-supply'=2E This should be enough to >> not disable it as long as the CPU is up=2E > >I rechecked that with 5=2E11, 5=2E10 and 5=2E9 and I see on all of them t= he >same issue: > >[ 31=2E716031] vdd-5v: disabling >[ 31=2E719032] rst-usb-eth2: disabling >[ 31=2E722553] buck2: disabling > >While on that I tried to compare with other boards and see that they >also have the cpu-voltage marked as "regulator-always-on"=2E The only >exception in dts/freescale is in imx8mq-librem5-devkit=2Edts [1] that >has not set this property=2E > >I agree with you and don't understand why this is happening=2E Has >anyone else an explanation? Do you have the CPU frequency scaling driver enabled?=20 -michael From mboxrd@z Thu Jan 1 00:00:00 1970 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=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 401E3C433EF for ; Fri, 17 Sep 2021 08:23:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 0C2986112E for ; Fri, 17 Sep 2021 08:23:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0C2986112E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:References: In-Reply-To:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LfEGZ0fVuP1klAydJodPsoDc5IQ4Q4juh7kkYftUUT0=; b=ADi4fUcG/oegft 6awedVSXgkhqJZVvtwewA+3P0yUAEGG6CA9AtBJHy5I/ZpRQgnpYUhhSkGHSpnkDzcWGNo/mVHx3V EN+Afjk+1FpWpvKFwMLRbT6YaGWxlku2k6HU5997LL47z2/lmxYTr28TE9W+hobpL53ANtZtHm5HC bqHSSJCp+UxSE+OADwPajH0FPRtVg1MgpuUjb8F4fYmX3sBWI3di7MyxK7LayvsG4tiS+CgGV/cs2 17y3+o9LTmLbjY6hqjKO5tLW/PF7JAlnFuereNZCYoVg0gPhNrnMsDTMSITX0jB9LSCBaAm/ICl+B UgRthXyu1ky/Lp+8RZvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mR97t-00DXop-Fu; Fri, 17 Sep 2021 08:21:41 +0000 Received: from ssl.serverraum.org ([176.9.125.105]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mR97p-00DXmB-TF for linux-arm-kernel@lists.infradead.org; Fri, 17 Sep 2021 08:21:39 +0000 Received: from [IPv6:::1] (unknown [IPv6:2a02:810c:c200:2e91:60e0:68ce:cb75:b798]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 12A8C221E6; Fri, 17 Sep 2021 10:21:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1631866889; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nnc+HY8a4/een0W4N4RVJwoWUUFXT3UU5FvOqYxu5fo=; b=Fpb0gnQGHSui0beRgFelwfi/m11KMrP+aRet+Ieb6etkH55CoVi7tlIx1ZbjU6QlsOXA42 P+AuYmrQAMnoX/JVanUgphU351p/SM8PdmAdJjmh8JZ9TKrC3zAsD1w5yqfWBWO3N9CoDk e2S8NAz0DVLJbILfpEYwxOSZJJ0GItE= Date: Fri, 17 Sep 2021 10:21:25 +0200 From: Michael Walle To: Heiko Thiery , Frieder Schrempf CC: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Joakim Zhang , Shengjiu Wang , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , =?ISO-8859-1?Q?Guido_G=FCnther?= , "Angus Ainslie (Purism)" Subject: =?US-ASCII?Q?Re=3A_=5BPATCH=5D_arm64=3A_dts=3A_imx8mm-kontron-n8?= =?US-ASCII?Q?01x-som=3A_do_not_allow_to_switch_off_buck2?= User-Agent: K-9 Mail for Android In-Reply-To: References: <20210915120325.20248-1-heiko.thiery@gmail.com> <7e7ee4244ababc0a46e0875222c7e37d@walle.cc> <898fd5e0-2073-3689-89b6-2c5071773786@kontron.de> Message-ID: <3EDFF987-82C2-4B0A-9488-037D1BD4CA48@walle.cc> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210917_012138_144639_707A1FC7 X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Am 17. September 2021 09:28:51 MESZ schrieb Heiko Thiery : >Hi Frieder, > >Am Mi., 15. Sept. 2021 um 14:09 Uhr schrieb Frieder Schrempf >: >> >> On 15.09.21 14:05, Michael Walle wrote: >> > Am 2021-09-15 14:03, schrieb Heiko Thiery: >> >> The buck2 output of the PMIC is the VDD core voltage of the cpu. >> >> Switching off this will poweroff the CPU. Add the 'regulator-always-on' >> >> property to avoid this. >> > >> > Mh, have this ever worked? Is there a commit which introduced a regression? >> >> Yes, this did work before, even without 'regulator-always-on'. I >> currently don't understand why this is needed. The regulator is >> referenced in the CPU nodes as 'cpu-supply'. This should be enough to >> not disable it as long as the CPU is up. > >I rechecked that with 5.11, 5.10 and 5.9 and I see on all of them the >same issue: > >[ 31.716031] vdd-5v: disabling >[ 31.719032] rst-usb-eth2: disabling >[ 31.722553] buck2: disabling > >While on that I tried to compare with other boards and see that they >also have the cpu-voltage marked as "regulator-always-on". The only >exception in dts/freescale is in imx8mq-librem5-devkit.dts [1] that >has not set this property. > >I agree with you and don't understand why this is happening. Has >anyone else an explanation? Do you have the CPU frequency scaling driver enabled? -michael _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel