Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5291180rdb; Wed, 13 Dec 2023 04:53:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjx+s6LYRvd8qCjSIev7PNkzl+8Uw7QyyNnWp57VivzZVvyRhPSh8V33r4Ugra+IBvx8XC X-Received: by 2002:a05:6a21:190:b0:191:b5a3:a34a with SMTP id le16-20020a056a21019000b00191b5a3a34amr794768pzb.72.1702472038201; Wed, 13 Dec 2023 04:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702472038; cv=none; d=google.com; s=arc-20160816; b=YpMu4XNMM8NtosKkoicpADuzUu6EKk5wv5e+2lja+kCjPW5lnvss7bDHDDsl+bcz8t Kn7vS41laAe3h9YO/Gh05XxEltka5gDtrHC4fW7f93X3oyu3EDsc+YYvMVbvRJOFVK2H tqVt2jFykDjTE2bIMB6x7z4HmXrXWpYGpgFNekWN7Mshv9zRprT9MHYIPYGFzIpy7j39 ahJhhGWTFOwzCCsL0GIZQgXBqcLrT+SN03pvJ7fI1UBTEvK80dz0O3hf+h1hs7QlOD6u 7s29rpqPe2A6NxzyZIWDa9z8KElw11u/Zxd3BTHDrpuEtn2agbe2crs+PcCox8yPamR7 GCFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=D4Ut1qIuJBclZYBJmeJoCs8XfT5syW9bp9OW7uLrhwM=; fh=NmxRo9Yj7EaMQuGXIpEp883HAbIpd3ujamDSIOiSzmM=; b=f5Dl6dupYaAYkKx01LXLozL0VOXkEJO5U0j5DUXVW1DB4m1NRzUxUrBRgZXqYY+njS WnWXrSd9mck+rpdgxsVJc4ThDChtl4ywnAZaqT0BsVSv/Nv+GYoKpdz7hT6Rr0KfjPbg n/Fz/jj11DVpmBH2rj1NgmKAydSXwQPzBA3xhMmt0adH3y0MqyjRPI+EeVtBbkgY8jQO vE9U+Xt+dy9vjfB/gWBkMS2exXWBb0JuJMSX+TCREADbtVZ/A2mQai3Kkq/tilgvkNP0 XjTMtLzNUApYada4tBUKgVrkrz5vMHO2WXoNS1nRd31TyT9Xo2y+YNS+w+9OznRBIvwK dv1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 lk7-20020a17090b33c700b00286c59061e7si10959895pjb.122.2023.12.13.04.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 04:53:58 -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; 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 4A65B818D53B; Wed, 13 Dec 2023 04:53:55 -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 S1379081AbjLMMxX convert rfc822-to-8bit (ORCPT + 99 others); Wed, 13 Dec 2023 07:53:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379122AbjLMMxF (ORCPT ); Wed, 13 Dec 2023 07:53:05 -0500 Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6BC93255; Wed, 13 Dec 2023 04:51:55 -0800 (PST) Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-1fb00ea5e5fso789363fac.1; Wed, 13 Dec 2023 04:51:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702471915; x=1703076715; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6ZdG9f53iWojvJlp0dRw/Gg/hPo7SN2nW69zkEzGkVc=; b=W1pXWwFkwzmRKIDDKWarwgG9EzuwcjxW9pbM6JPS+f1+M8x3MxFaLCHyGAM0aunXvZ BRRxZTJT4TKxfZIdKkhxmt4RVvQihTIElSmFsIUtfbUXhsLM8RquBxhi9x2aNDNe9m7X EAOb1D5wAoVxeeP21O3o3Qe2Dgc3cJpTTVbGoBNf88Q8pQMIv/iYyHnYXaMxwQ+nVXry M2ecEEekt/BsvGGqnFLSJL7eePvPJqWBbK1Qbao5nLGxVk1UK8QHOF//v+Wkpc5ExHc3 M4Q/JHaVU8nNr8BJ7yWAIFR6W48K2pTs+iR7eVc58FYilPh+FlhPkhdZkPs9bs2vh+QM kTuw== X-Gm-Message-State: AOJu0Yx1ZUz225Ir0PqkMNNuzlnrlGd0e/3r18+yM3YAw8CXe53pNuMB OrtiTC19HmJ5QRM2iidXnczOnibu+o4WoiiA19M= X-Received: by 2002:a05:6870:f6aa:b0:1fb:10e7:4f00 with SMTP id el42-20020a056870f6aa00b001fb10e74f00mr14653654oab.4.1702471914679; Wed, 13 Dec 2023 04:51:54 -0800 (PST) MIME-Version: 1.0 References: <20231212212239.8971-1-tony.luck@intel.com> In-Reply-To: <20231212212239.8971-1-tony.luck@intel.com> From: "Rafael J. Wysocki" Date: Wed, 13 Dec 2023 13:51:43 +0100 Message-ID: Subject: Re: [PATCH] ACPI: extlog: Clear Extended Error Log status when RAS_CEC handled the error To: Tony Luck Cc: "Rafael J. Wysocki" , Erwin Tsaur , Borislav Petkov , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=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]); Wed, 13 Dec 2023 04:53:55 -0800 (PST) On Tue, Dec 12, 2023 at 10:22 PM Tony Luck wrote: > > When both CONFIG_RAS_CEC and CONFIG_ACPI_EXTLOG are enabled, Linux does > not clear the status word of the BIOS supplied error record for corrected > errors. This may prevent logging of subsequent uncorrected errors. > > Fix by clearing the status. > > Fixes: 23ba710a0864 ("x86/mce: Fix all mce notifiers to update the mce->kflags bitmask") > Reported-by: Erwin Tsaur > Signed-off-by: Tony Luck > --- > drivers/acpi/acpi_extlog.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/acpi/acpi_extlog.c b/drivers/acpi/acpi_extlog.c > index e120a96e1eae..71e8d4e7a36c 100644 > --- a/drivers/acpi/acpi_extlog.c > +++ b/drivers/acpi/acpi_extlog.c > @@ -145,9 +145,14 @@ static int extlog_print(struct notifier_block *nb, unsigned long val, > static u32 err_seq; > > estatus = extlog_elog_entry_check(cpu, bank); > - if (estatus == NULL || (mce->kflags & MCE_HANDLED_CEC)) > + if (!estatus) > return NOTIFY_DONE; > > + if (mce->kflags & MCE_HANDLED_CEC) { > + estatus->block_status = 0; > + return NOTIFY_DONE; > + } > + > memcpy(elog_buf, (void *)estatus, ELOG_ENTRY_LEN); > /* clear record status to enable BIOS to update it again */ > estatus->block_status = 0; > -- Applied as 6.8 material, thanks!