Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2600959rda; Wed, 25 Oct 2023 07:23:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfRRHFXeQ6fZPotRIGSZL2wIM2cuzMrLRUZ2wB1SO6q0XZu6RhfetJTVAVJKepMG1TQkni X-Received: by 2002:a05:6830:3d03:b0:6b8:7880:de9 with SMTP id eu3-20020a0568303d0300b006b878800de9mr14431062otb.19.1698243804201; Wed, 25 Oct 2023 07:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698243804; cv=none; d=google.com; s=arc-20160816; b=QfU2cl3AaK++ZvYoXAT/ufxCIH4dN59TBqATWavdfJ6gtjiVPcK7PE9Km6txE2lqaz xvBTmRqpihpD2QPTsCWCmua/Aya1H/vRNS8dXj7uIW0CN2yhfGUyVZVMJRHBdEJbiFyv gmPSCD+GRS++ZJ/DIbCMQ0MiMlv34i+cVRJZcn1WJcYffjRO/M9E0UDJ4NSYgc3nxFLg JQ+S6eTqYz88aDLb5y0XY6dLCaODQE3duaorsL+njskHWz9kVVIBluKjSP5Aj4yzNYr3 ZLGP1XIi3zJDIdFQiQeoVX+Dju3zBLSNUjw90UxtJMHExwiU01ZE30zxY1AzxzJLSwKc TjVA== 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=LwW8DqCiV3GFD9iEkJnIWOh8C/eNrtUPX3dlHtbPm+Y=; fh=2waN5WX79o8hrJlHUQ1PRvn4P67VRTTk7p0E+wNF6lM=; b=Je1tGDE1sjY8o1A2Vw0myE51QRKE7AnT7PfOo4jykv2n7LkmLka21u/3AUs23bufgc vT8GbqNcQt2THPVwy8NuKMOmVkSbdIPqA/0bWCXiR9Een3Mdf9K3oQp48f9UWts9sRc3 rgiPPmZbGP/ECmPOrJbNFlWrC9OKtzDF4ndRllAmOBIiBKcMYIg65omU+3ON941n6DBU 4HSKuVcIMR9amFw+Nug4cqs45W+Dmv6MhauFHOGX+TknnQiAKoQG7uJTWGQkVSGpT3Na 4IMk01XwPi+Lr4K6TNc8ELpDvfG9Kig3XAZVhtHMyaSMIlS/1+/NEDJLQ3ICuTYl6LdL 7ImQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=dIxx2lBo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k4-20020a819304000000b0059c07cce3d0si11452350ywg.321.2023.10.25.07.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:23:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=dIxx2lBo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 57A2980990C2; Wed, 25 Oct 2023 07:23:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344902AbjJYOXK (ORCPT + 99 others); Wed, 25 Oct 2023 10:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344569AbjJYOXJ (ORCPT ); Wed, 25 Oct 2023 10:23:09 -0400 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C72A6A3; Wed, 25 Oct 2023 07:23:07 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id D5A8740E01B1; Wed, 25 Oct 2023 14:23:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pEKZKcsmeGeS; Wed, 25 Oct 2023 14:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1698243784; bh=LwW8DqCiV3GFD9iEkJnIWOh8C/eNrtUPX3dlHtbPm+Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dIxx2lBoaqa6WX5jqPE1Aq/iCWkEv6LXOV14cXrKfkGIlnNUi5RLi7D3f9BNSC4V7 SRYtySNARRwiKs8HuvQnpvn12YXVRT9O33LEZ1SR6gMSWKfpPP1n4A6rc6zQEn5JW4 Ig3O2h7ayarehgRf0vuUI8LFon5W+IkbHbcIFXIWzG08mo7mOjCziW2upi75gPDt5P /mWEdFzgKRWXVUpHNLQT+1kqJwusgndDQmJAuZVzOx902E4r4JWu/ZWlbX8/vuBZg9 C1cPv19EKUI+1mqIA+lVXDrCaBhhKcpAx6AlpiU2p/MeXxExNuBmkMGV2Gp6Cq1XQv 3wyVguZNaamnWpI8gA0apu7NLH2camDUv9Wk3YVlMhEaPqz3YucBFx9+IMT8DZ/CU/ D5oTJqcp+XDRo5PlII2jzJ6P2zldSjKNe7ZmSFxdcU5Ng6nvxLaJefupkPYeBLncaw rXtKo1+c+ThtUY7GUBFek36H408y0GW7/DE9OePbUnJtDZrcrXtMoagPwLJAxfrBID umSfTpV6Faj4L7vQYPPo0510GT078E6rcs4ptvd6bGntDCwjzq/PM5gnMb1xJe/Ytn KuPrf2GtUXFuuDX3vSu7gH+KxDa6zJMOmbRPlwr+xidjIP8yI+xg7dJ2cxMTrOPD3/ JnuTG3L/2J5U4tuICqwxTkl8= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id DBEF840E014B; Wed, 25 Oct 2023 14:22:50 +0000 (UTC) Date: Wed, 25 Oct 2023 16:22:45 +0200 From: Borislav Petkov To: Jeshua Smith Cc: "Rafael J. Wysocki" , "Luck, Tony" , "james.morse@arm.com" , "keescook@chromium.org" , "gpiccoli@igalia.com" , "lenb@kernel.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hardening@vger.kernel.org" , "linux-tegra@vger.kernel.org" , Thierry Reding , Jonathan Hunter Subject: Re: [PATCH V2] ACPI: APEI: Use ERST timeout for slow devices Message-ID: <20231025142245.GHZTkktbRl1wjfNc15@fat_crate.local> References: <20231024152708.GFZTfiTL9C6onZKn99@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 07:23:20 -0700 (PDT) Hi, On Wed, Oct 25, 2023 at 02:09:37PM +0000, Jeshua Smith wrote: <... snip a very detailed and good explanation... > > Writing 128 nor-flash pages would then take 120us * 128 = 15ms > typical, or 1800us * 128 = 230.4ms max. This is perfectly suitable to be in the commit message - it explains in exact detail why the change is needed. > Actual use case: > > Kernel panic -> Pstore calls APEI's ERST code to write the ~32KB error > log to persistent store -> ERST code writes the error log to > nor-flash, which takes more than 1ms to complete. This is expected, as > communicated by the platform to the OS via the maximum time field in > the ERST table. This is actually very important and it justifies the need for that change even more - you want to flush out the complete panic message to pstore and not only the first couple of lines. > ... and therefore the extended (ERST-defined) timeout is only applied > for implementations that indicate that they are "slow". I assume that > platforms which bother to set the "slow" bit will also specify actual > timings, and platforms which don't are OK with the current 1ms > timeout. Yap, makes perfect sense to me. > Does that answer your questions? Yes, thanks for taking the time to explain this in such a detail and precisely. I think you should use the main bits of what you wrote here and add them to the commit message - after this there are no more questions why this patch is needed, IMO. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette