Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1896232rdh; Sat, 25 Nov 2023 06:35:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbpNwU57ZfltnckfEdhQnUUKb7s+O4NcJ4lU9rhvxs6Ih9zclvKG4rZIwqp+IgvQOYliqy X-Received: by 2002:a05:6e02:198b:b0:35a:ff35:b471 with SMTP id g11-20020a056e02198b00b0035aff35b471mr1911008ilf.14.1700922955136; Sat, 25 Nov 2023 06:35:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700922955; cv=none; d=google.com; s=arc-20160816; b=q7XCOyYsMHjb184k+ZjOtSx7M+q7zOEu7yoG8sRVvVjVE6MBhAWiL99XEPJhSGVjEB mJbbIRYQfSD9R+f3pdgBT0bffx4D11sDGKtstnb3Oy5z03cykFAy2WJu8iA7ptC35/Om jRuXM4tT8H5qY4MtJuStjaONxCWVLrHBvbfMDMr2gR864TJyLMOns/P/PaWbN48G5/Fx JZk9a1hvBUX1hDH+gYanXF7L5K1IirgSUugWnkF4QfmhxcYkmA7o+AsOTbfQdDxGTA1p T6UdmQzGLy3VfqXNAi9JoY46D7nthkQFrnbyvukwfqXQH2FEbtZju3emx3lJgNWHsjNY YPmA== 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=P98lHir7lRR1Tbt2LcAH8i1uX+YohiTseQMc7ob9Xp0=; fh=Ew5S1vjgiWZhKTP2DBf11/ExUwpWP9L5BWLk8e5V5ms=; b=tkzx/LVGojSPigdD+vMyFQol02W24VT9jVzu8nlLu0bgUTk4LsMOhzPF3+DmTlnrxq F7k2u81er8SUnTmH+5EMG0nkcjsGQwcCZwcoEro/C/8MoT9s51UHreVv/hF9NSVjH9FF SECCdNEUGq1Prje3sDIDRMqN2cfcg/L0IO1a0mP4MZBckls0uTasgg7LutWi9IjlQbeZ cjt33gWC3sD3X+BOfDTnuk3j+JBOgjI8Bx00WfT6xLf4iM3dp64AAStgdfXZwku1EfUU 3iSvPk2xEw/A4mTYirKb0oJxbvkRdotMhX+biKRerXvnjVSdoJDEIG8/qWH6XFC5ZhvN sk0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vHdseylW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 27-20020a630f5b000000b005bdcad0ac5esi5825744pgp.833.2023.11.25.06.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 06:35:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vHdseylW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 49038805ECC4; Sat, 25 Nov 2023 06:35:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232240AbjKYOfk (ORCPT + 99 others); Sat, 25 Nov 2023 09:35:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232112AbjKYOfi (ORCPT ); Sat, 25 Nov 2023 09:35:38 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63B9ED7 for ; Sat, 25 Nov 2023 06:35:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75F66C433C7; Sat, 25 Nov 2023 14:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700922945; bh=hb/vmc7tcmttzFGRfTFzeR0zkwiIlk2FgNpJkaTKNOk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vHdseylWp7Owy3GnfubHDSnudn6G4b9KR/0sS58VAlsnhnPzcdprc2hvc2VM4cn4/ toOb7b8rM2VIax7W9Smxw9CEPfcXRuMYbXrZmNUjHTaHdcOGnhLtDGXABJvGCgoFD1 47qgVxvHvoJOa/rkWI8ZSt1yVOiqaExVo59l+A0A= Date: Sat, 25 Nov 2023 14:35:41 +0000 From: Greg Kroah-Hartman To: Mark Brown 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: <2023112541-uptown-tripping-05f3@gregkh> References: <2023112458-stature-commuting-c66f@gregkh> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sat, 25 Nov 2023 06:35:54 -0800 (PST) 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: > > On Sat, Nov 25, 2023 at 09:50:38AM +0100, Oleksij Rempel wrote: > > > > It prevents HW damage. In a typical automotive under-voltage labor it is > > > usually possible to reproduce X amount of bricked eMMCs or NANDs on Y > > > amount of under-voltage cycles (I do not have exact numbers right now). > > > Even if the numbers not so high in the labor tests (sometimes something > > > like one bricked device in a month of tests), the field returns are > > > significant enough to care about software solution for this problem. > > > 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. > > > 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 :) > > 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. thanks, greg k-h