Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1268182rdh; Fri, 24 Nov 2023 08:33:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgi2cST2gBQf+hF5ntuj8f+3r9RnTttxZ/ZuwehomtMB2cR8/dUXHu4mnpiWldkENDNabj X-Received: by 2002:a17:902:a712:b0:1c3:6d97:e89e with SMTP id w18-20020a170902a71200b001c36d97e89emr2835963plq.58.1700843584187; Fri, 24 Nov 2023 08:33:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700843584; cv=none; d=google.com; s=arc-20160816; b=VV/4WnTaDT+GrGEJMX6FBK67POV3uoa4AAyqA+rrn2fVoFsvkF8Lj+26UHWD1EpdUX 0jdJeTyWmT+M1LlRCIEmqMtmKWf+voTzecLI2HnZYGPQ1XF1SRlomirEIK1DEzD7YDav KDCuetnI0+C8VbcbgMikTDeiQUo/zAtoeigUb9WJpH00GyIoO8rAjeReao24SNwoVU2p XKbXwW3JkEIo0Kq8YrbEXCnIK5+cvt/9bNtNHhsd2gahE9mq+PpkGlI5RlGD+iLqzwTh kci4y8MUfTQI2T0s/WN8QUENDVbAypNTS8F9NxsR3I+H60NGJMyi3eo/RRNTLLVimY+7 RRRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=dwEogjFkrbKaRU7+15y6Phii4+Umw/lmNHwIvmBFIyY=; fh=JuSpOt0/tuwyrnJR/DsvvXmjDF7zf36ufFYBMSIItmw=; b=XCNbrMjpSkkGjsdwwT23es/sKHPrxWfQ/GbsWN8TkV+yLZpxWQ7m5o+BLt6Hf8cL9q 5+1cHrx/Pf3jlRH8JlQzQuBkfe1zXTiv1tTQkPk9rmb1XsAhvtRR57pxvzLgLVAEwBjz wZmJPr4JVTuYk5R9sx3laKywpTAmBO3UBTOiJAOc12khpHMANEl3pjRAl2ONW9z/x417 gwr/9VsUH9tVPVwktrqE4suUUoqeNxWqPCYT0n5lwv4jUNJx/ae/kDWkN8L9WlJ6uRi4 GXy4SKC1A5sX0L/kq4/4CdRxRyl3FmsrifKRcQkUdMyzsW4/IiYqymS8vwmlI7BHPuHs xF/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c5-20020a170902d90500b001c9c3f327e1si3556115plz.191.2023.11.24.08.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 08:33:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5BC1D80B6C0F; Fri, 24 Nov 2023 08:33:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbjKXQch (ORCPT + 99 others); Fri, 24 Nov 2023 11:32:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjKXQcf (ORCPT ); Fri, 24 Nov 2023 11:32:35 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9230199A for ; Fri, 24 Nov 2023 08:32:41 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r6Z6Z-0008Ui-5f; Fri, 24 Nov 2023 17:32:35 +0100 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r6Z6Y-00BJ4n-JF; Fri, 24 Nov 2023 17:32:34 +0100 Received: from ore by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1r6Z6Y-003ev6-Gi; Fri, 24 Nov 2023 17:32:34 +0100 Date: Fri, 24 Nov 2023 17:32:34 +0100 From: Oleksij Rempel To: Greg Kroah-Hartman Cc: Mark Brown , "Rafael J. Wysocki" , Ulf Hansson , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?B?U8O4cmVu?= Andersen Subject: Re: [PATCH v1 0/3] introduce priority-based shutdown support Message-ID: <20231124163234.GC819414@pengutronix.de> References: <20231124145338.3112416-1-o.rempel@pengutronix.de> <2023112403-laxative-lustiness-6a7f@gregkh> <2023112458-stature-commuting-c66f@gregkh> <2023112435-dazzler-crisped-04a6@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2023112435-dazzler-crisped-04a6@gregkh> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 24 Nov 2023 08:33:00 -0800 (PST) On Fri, Nov 24, 2023 at 03:56:19PM +0000, Greg Kroah-Hartman wrote: > On Fri, Nov 24, 2023 at 03:49:46PM +0000, Mark Brown wrote: > > On Fri, Nov 24, 2023 at 03:27:48PM +0000, Greg Kroah-Hartman wrote: > > > On Fri, Nov 24, 2023 at 03:21:40PM +0000, Mark Brown wrote: > > > > > > This came out of some discussions about trying to handle emergency power > > > > failure notifications. > > > > > I'm sorry, but I don't know what that means. Are you saying that the > > > kernel is now going to try to provide a hard guarantee that some devices > > > are going to be shut down in X number of seconds when asked? If so, why > > > not do this in userspace? > > > > No, it was initially (or when I initially saw it anyway) handling of > > notifications from regulators that they're in trouble and we have some > > small amount of time to do anything we might want to do about it before > > we expire. > > So we are going to guarantee a "time" in which we are going to do > something? Again, if that's required, why not do it in userspace using > a RT kernel? For the HW in question I have only 100ms time before power loss. By doing it over use space some we will have even less time to react. In fact, this is not a new requirement. It exist on different flavors of automotive Linux for about 10 years. Linux in cars should be able to handle voltage drops for example on ignition and so on. The only new thing is the attempt to mainline it. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |