Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1936783rdh; Sat, 25 Nov 2023 07:43:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpdu2VjCyU328RBxgMkcmXHRkyp/BLxhsf7sqsh4y8h/tOlBJk72T8UPOvrs55bpJzLCy1 X-Received: by 2002:a05:6a00:3988:b0:6be:25c5:4f74 with SMTP id fi8-20020a056a00398800b006be25c54f74mr8327588pfb.13.1700926998548; Sat, 25 Nov 2023 07:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700926998; cv=none; d=google.com; s=arc-20160816; b=Ez5UiEgu+N/4yprE2lgZRDVPPl8m0ASDya8U7fhNQkwXNvZ6nEPCRRJfVSc0BkMpTB 9rud3OiMgZPmtjH4+IqK/mEoq3IdoMTNvwQSGceZtOffkdmhfXIivGKyVYTq50nP655N FcpdArMMewM8ri+lgpoSpfljvZDX53WsEjNWZmd/T7JfOPRD8MWw1dVF/9jC5CuziyXA n1ykeRx9w1JuLaKcGzgPxQ3tyxfpOKm3H9pw67UKrXEXr/yVZxdRArfrPkEkm1DJfNPB J6loaN83QY4wDc2PFba8ouMVBe2Nd60Pd8L1LSHbOI+gvfhgrzd52kPaWuikxsA5ShB5 4wqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uDxsmmh5O88SKlTswvBt2u0CdOP1q7X6E8DDBKNa35g=; fh=XSzgmmOEnbq2Ngs4Sl66zA7o5DJQ4PgTfbkKfAR45wU=; b=Qk+3celA6CFYrRQV1oQj5uliPH/iX2MsOKCo9c4jwUaHtKmGx235VX8xGG5ygi8BGF ZIYnt9VQ4KyCJSh32kCMnor4gx9FR6hLg/T0PDG7XKA3yBpyrbOSQq8wXLmKGkn1lEm3 WCdmbfQyked6ANVCcJYU+vGfxz/GNiX2q+Ejo1XQT9tqpfRoAfuQtHbmb+EpBwZx2y6p 9PZj76MEu785s89pz3rKU42Ptn3zwwonDFcq41xOLYw5Kbui6h/VrbOauvM4u5anzOAX BUTrJpDQjh9jRqtXghVE+ULn8jBzWtP/snCPjZ36KJYWxPKXZ2jaoX3AGaMj8/gLfTZ/ tKEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vux9YSoM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a38-20020a056a001d2600b006cbf2bc1af9si4462974pfx.0.2023.11.25.07.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 07:43:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vux9YSoM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 182548023899; Sat, 25 Nov 2023 07:43:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232225AbjKYPnB (ORCPT + 99 others); Sat, 25 Nov 2023 10:43:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231808AbjKYPnA (ORCPT ); Sat, 25 Nov 2023 10:43:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94252FD for ; Sat, 25 Nov 2023 07:43:06 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A61DDC433C7; Sat, 25 Nov 2023 15:43:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700926986; bh=BLaPjvfeCQEtXj+kiHkZzzFkV7XfGVeJkjLyuxF4lIk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vux9YSoMMru/ZUHMUX8QTeTGSasuvd3Q2Ht1tZttoq8UkrDjOzpmTYs0w6wwkYHB/ ZzBFkyJGAiBEPKmS4fMS/CTBO6Cbm+0Nwx7PSWfuv+dEx162Dh4PJfAdr/3F/zmJel r0LxkmflrFHaX2FC6Lr/6DxVzsedp82WUizP1YLIOyfmRjNJb3kMOfUkyJlxWD7qfG SpbF8yS2KIv4MH1k2KafAWP3/C0l6HB7CtBCi89iTQgbe41qfpBzvHG1Yzeuez/Kyz hEJristCVSs6MKW8fipy4oGaRxMWtR6bKQC3yRdQY3S7tI90FXr/XFNTR3i41sulbQ Mh/bj5n3dEd0g== Date: Sat, 25 Nov 2023 15:43:02 +0000 From: Mark Brown To: Greg Kroah-Hartman Cc: Oleksij Rempel , "Rafael J. Wysocki" , Ulf Hansson , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-pm@vger.kernel.org, =?iso-8859-1?Q?S=F8ren?= Andersen Subject: Re: [PATCH v1 0/3] introduce priority-based shutdown support Message-ID: References: <2023112435-dazzler-crisped-04a6@gregkh> <20231124163234.GC819414@pengutronix.de> <2023112453-flagstick-bullring-8511@gregkh> <20231124185725.GA872366@pengutronix.de> <2023112520-paper-image-ef5d@gregkh> <20231125085038.GA877872@pengutronix.de> <2023112506-unselfish-unkind-adcb@gregkh> <2023112541-uptown-tripping-05f3@gregkh> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Z8Jjdq+GPR6QIRdJ" Content-Disposition: inline In-Reply-To: <2023112541-uptown-tripping-05f3@gregkh> X-Cookie: Slow day. Practice crawling. X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 pete.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 (pete.vger.email [0.0.0.0]); Sat, 25 Nov 2023 07:43:16 -0800 (PST) --Z8Jjdq+GPR6QIRdJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Nov 25, 2023 at 02:35:41PM +0000, Greg Kroah-Hartman wrote: > On Sat, Nov 25, 2023 at 10:30:42AM +0000, Mark Brown wrote: > > On Sat, Nov 25, 2023 at 09:09:01AM +0000, Greg Kroah-Hartman wrote: > > > So hardware is attempting to rely on software in order to prevent the > > > destruction of that same hardware? Surely hardware designers aren't > > > that crazy, right? (rhetorical question, I know...) > > Surely software people aren't going to make no effort to integrate with > > the notification features that the hardware engineers have so helpfully > > provided us with? > That would be great, but I don't see that here, do you? All I see is > the shutdown sequence changing because someone wants it to go "faster" > with the threat of hardware breaking if we don't meet that "faster" > number, yet no knowledge or guarantee that this number can ever be known > or happen. The idea was to have somewhere to send notifications when the hardware starts reporting things like power supplies starting to fail. We do have those from hardware, we just don't do anything terribly useful with them yet. TBH it does seem reasonable that there will be systems that can usefully detect these issues but hasn't got a detailed characterisation of exactly how long you've got before things expire, it's also likely that the actual bound is going to be highly variable depending on what the system is up to at the point of detection. It's quite likely that we'd only get a worst case bound so it's also likely that we'd have more time in practice than in spec. I'd expect characterisation that does happen to be very system specific at this point, I don't think we can rely on getting that information. I'd certainly expect that we have vastly more systems can usefully detect issues than systems where we have firm numbers. > > > > Same problem was seen not only in automotive devices, but also in > > > > industrial or agricultural. With other words, it is important enough to bring > > > > some kind of solution mainline. > > > But you are not providing a real solution here, only a "I am going to > > > attempt to shut down a specific type of device before the others, there > > > are no time or ordering guarantees here, so good luck!" solution. > > I'm not sure there are great solutions here, the system integrators are > > constrained by the what the application appropriate silicon that's on > > the market is capable of, the siicon is constrained by the area costs of > > dealing with corner cases for system robustness and how much of the > > market cares about fixing these issues and software is constrained by > > what hardware ends up being built. Everyone's just got to try their > > best with the reality they're confronted with, hopefully what's possible > > will improve with time. > Agreed, but I don't think this patch is going to actually work properly > over time as there is no time values involved :) This seems to be more into the area of mitigation than firm solution, I suspect users will be pleased if they can make a noticable dent in the number of failures they're seeing. > > > And again, how are you going to prevent the in-fighting of all device > > > types to be "first" in the list? > > It doesn't seem like the most complex integration challenge we've ever > > had to deal with TBH. > True, but we all know how this grows and thinking about how to handle it > now is key for this to be acceptable. It feels like if we're concerned about mitigating physical damage during the process of power failure that's a very limited set of devices - the storage case where we're in the middle of writing to flash or whatever is the most obvious case. --Z8Jjdq+GPR6QIRdJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmViFgEACgkQJNaLcl1U h9DE8Af+No3v2LuzUEGLnrgZN0ntwjrvTuBs9ai6qr/Qp3ypgRSge5RoCTT85w+u jqsHcnbg4DPk98rloqJMDx7RDdval38skmuTv02sfWeJLBfAaKCDE0afY2OkCVC5 zzgFREKJZzqLkwtcnmBkWd8l5CrEj4sx86pdHZcImMWZuDj9kU6SOYpXkmAlfHsF 4EC7ORkIZRSpDGX7PjzA5EckbjRxtS0IhFB5EoaH7EoYWCKJyMmajf6t/A8PD7Rf WM6uRKY56XVevUxpGZXhtIysC0uExUleU4p/v8a7ibc8MqrJtuN1yxuA5noGtuE8 wMQzhVaGADD44NzzpPaQiV2TlZ9XEw== =GsyE -----END PGP SIGNATURE----- --Z8Jjdq+GPR6QIRdJ--