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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id DCC8FC636CC for ; Tue, 7 Feb 2023 03:33:13 +0000 (UTC) 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:In-Reply-To:Subject:From:References:Cc: To:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TKjYwQF2j3l1YDZtfFAmzs+pkIxbChAHlecUAWiqyQk=; b=Ok3tM8WTS4LycM OUWhHLTV4OQLxiudTiWWgADJIAffqUv3enLVZ2qyCtR+nTi+qRfZOj9K3U2AFEjsonPUwsqxPKA04 1q5TqqM8GH4nB9kydAasHbvCydy8MZbBIq3WhggaMhymYvcpuZcFwZ/m1x1D8I6t2C0gGze3tS1yf 9Ko99c/21Cn1WQMnkPoAoWTzEWMraOx5Fi8uJHsMetSDCPMJP6FH44HDJs4l8mnalZbUeSHsFMVup JToWmf1gyQuYZginzGaOA+3JT1kW1oEDTd/vfrnTuvl2BhO5KpIzIJXoAiz17bf7ct0+10F9lnRoA Gg6j9ruDdp3AufacDSuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPEiD-00AdW5-R9; Tue, 07 Feb 2023 03:32:05 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPEiA-00AdVi-5L for linux-arm-kernel@lists.infradead.org; Tue, 07 Feb 2023 03:32:04 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BDC1F5C00E1; Mon, 6 Feb 2023 22:31:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 06 Feb 2023 22:31:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1675740718; x= 1675827118; bh=YZgLRUSiyOAejTTanFPROC5JmkrhAOFOeQDpMqNffU4=; b=i p8JFwYWjbAOkoBTgWGvYCSPqT6xnWDKDnGl4XMU2JAQPmqb1dETjpnE8GUk53pN3 lGI8ZgNhRXOf2w9QrXpyoIqt9cCA5ThthpM8XE8/cKWe3TC7A+i4iqFdDjzqJ0G5 kNNKk97hoQlFUb64Ntq0fNTrj2Csc60TVAjsVe5qIm7JiN6nEViK9GyS8aHh4jl5 56M3dBoCALuIP6XqKiZJ8qqT7lAgrFRRclOeNKbNQjd7PpXm4Hd5McPqL7UfNRnM CmhaQZDCmpKitht4OyZkKznv8fW0VnyvTzz27NRbOBOC3pnHTz0bWy3jUKG0sB23 RAvk4KEwNaYNxcDqgxT1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1675740718; x= 1675827118; bh=YZgLRUSiyOAejTTanFPROC5JmkrhAOFOeQDpMqNffU4=; b=k SzdjIh8gZhtDaHZ92zaTxdcmoQIRaghPhAbQgbuT5zVxEHtyG53wTEktOgSjITJo jVLNzgKCz+uZcqclg3BeumhSZ9eRW8lBLzf4rEvXXaIGrKyXRRpSO8r1q+V65Ybe 6s14A4T8HpqlJ8CAaCH7HAtERgjZt8bTYxU24N8HUU9ImqyYOomWoKtTl8vGh4bX doSbK/v5IuNdqPfTVx+hZDi7gnFmhS/EGDPdWAXz/ABIgGL3rc5LBH9JcDTYuQIT bIX5gOBj4uwojFruiLbazGHK9GfKkXA90CfvgakZsiraMLxXDyzWuk4+bfYr1E3c sDc+SIwna5QR7+7uKGVsQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudegjedgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfvfevfhfhufgjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpeehtedtfeegueduledvffeljeehjeeuleduudeivdekffegteeu vedvledvteefjeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhl rghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Feb 2023 22:31:55 -0500 (EST) Message-ID: Date: Mon, 6 Feb 2023 21:32:00 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Content-Language: en-US To: "Rafael J . Wysocki" Cc: John Ogness , Kai-Heng Feng , Luis Chamberlain , Petr Mladek , YueHaibing , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tangmeng , Linux PM list , Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Dmitry Osipenko , Lee Jones References: <20230101181715.42199-1-samuel@sholland.org> <0a180849-ba1b-2a82-ab06-ed1b8155d5ca@collabora.com> From: Samuel Holland Subject: Re: [PATCH v2 0/2] firmware/psci: Switch to the sys-off handler API In-Reply-To: <0a180849-ba1b-2a82-ab06-ed1b8155d5ca@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230206_193202_591591_1484BCC1 X-CRM114-Status: GOOD ( 23.45 ) 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 On 1/25/23 06:53, Dmitry Osipenko wrote: > On 1/1/23 21:17, Samuel Holland wrote: >> I want to convert the axp20x PMIC poweroff handler to use the sys-off >> API, so it can be used as a fallback for the SBI poweroff handler on >> RISC-V. But the PSCI poweroff handler still uses pm_power_off, so done >> alone, this conversion would cause the axp20x callback to be called >> first, before the PSCI poweroff handler. >> >> In order to prevent this change in behavior, the PSCI poweroff handler >> needs to be converted to the sys-off API first, at a higher priority. >> >> This series performs the conversion, after accounting for the fact that >> the PSCI poweroff handler is registered quite early during boot. >> >> The first patch is a dependency for both this series and the SBI >> series[1], so I would like to get at least patch 1 merged soon. >> >> [1]: https://lore.kernel.org/lkml/20221228161915.13194-1-samuel@sholland.org/ >> >> Changes in v2: >> - Update commit messages >> >> Samuel Holland (2): >> kernel/reboot: Use the static sys-off handler for any priority >> firmware/psci: Switch to the sys-off handler API >> >> drivers/firmware/psci/psci.c | 9 ++++++--- >> kernel/reboot.c | 10 ++++------ >> 2 files changed, 10 insertions(+), 9 deletions(-) >> > > Hello Rafael, > > Do you think you will be able to pick up this series for 6.3? I'm going > to continue removing the pm_power_off from kernel, the new power-off API > feels stable now to me. I think the Samuel's improvement for the early > boot memory allocation will be good to have to avoid similar problem for > other drivers. > > Ideally, the PSCI patch should get an ack, though the code change is > about the PM stuff, so perhaps will be fine to take it via PM tree if FW > maintainers will show no interest in the nearest time. Additionally, a patch which depends on this[1] series has already been merged[2], so if this series does not make 6.3, that change would need to be reverted. Regards, Samuel [1]: https://lore.kernel.org/lkml/20221228162752.14204-1-samuel@sholland.org/ [2]: https://git.kernel.org/next/linux-next/c/a4755a1374ba _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel