From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E99ECCD1BE for ; Thu, 23 Oct 2025 12:26:45 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4csldb50HWz30RJ; Thu, 23 Oct 2025 23:26:43 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=198.175.65.16 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1761222403; cv=none; b=TMIZRpPrl2QBOYzJYq72+t69eAEZO3l4lmvXo9Dvg/95f7TI/A5+5VVyKHKRx5DneOb+abT/FOLw79n51k1cvpIdPOTu/M6mFRXyEAmcAtODwWd6ubMnwAwUEYvUwK1n1gKfHmRvRjh59vlCo+gxDEOcFb32LHOQtx3/S5IK2FqFFKasCojTCl5YLVOiiF823HF2PSk6EE3HpWbnj+3aDO/1A2bxMbJVewUhFB9159XwPedK3uV8031MD3cvv7SXRFhJRDbpUS2Ngis/mO5g4F4PQn89gL+swUzHE2cVBor6ifGvE2aRSH3fQtbqcyuPIRPt18OFCfACgvDas3TZDQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1761222403; c=relaxed/relaxed; bh=FX/m6uzFH84C+PKPXQ6FHg9siTKpPcOAzlx0CxsKQzA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JQbTaU26UwSid2dL1a3jdtP962VNDagLpNs6+5UB8/FIZi83fdzZ52llA8q+zT8Vt4gAqIsd4ofTUL1OO3Hrs3SADr+lw9QCqgfxlSeQ53/u8y8tylbFr3oqHc1Ty2MobrH6Kt6sOWjxd5hvshFchNgm0V7VWsrPNcl1raSOe72fVyiM1v7sOtoJNY7pDxmJRZPFf7zMQri3HnwJuCOzN7Mbj6LTLTLPEu1HIhs0scSkUDeNDAQSmgy4ZQVG9xwIOZlC9b61XAExQ4atjNRTLR6uHB6p4uJ9h2/y3ZDKjrID4o2rQ0yv+i5+tK5l+fPv1bWhpooUFL5muSXsr7xOFw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=N6dpCw2a; dkim-atps=neutral; spf=pass (client-ip=198.175.65.16; helo=mgamail.intel.com; envelope-from=fabio.m.de.francesco@linux.intel.com; receiver=lists.ozlabs.org) smtp.mailfrom=linux.intel.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=N6dpCw2a; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.intel.com (client-ip=198.175.65.16; helo=mgamail.intel.com; envelope-from=fabio.m.de.francesco@linux.intel.com; receiver=lists.ozlabs.org) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4csldY1RZMz304l for ; Thu, 23 Oct 2025 23:26:40 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761222401; x=1792758401; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5hEjvEKmxlJ4nI+ib5yXu9qh7SsHe8NFIE5tNKshc/Y=; b=N6dpCw2aridZYd6rjoyN8xq6cZ3IXtDVGrCxPNVtTkRkXuDrKp1CTc6Q QjsNfO2xUu2MkL0oR82VOjJJSLDOtjg1VOd5ZAsaqpu/5MUa6ND08oR5v WVZDYOlOWksYIX10aSOOAN9UPPIfwZ02chO9fNpxv4tgVmag21Pwyan9I oBNBIRRTno5MWzpY7thsiV163l9fArYBL/quA1ZYkoTEdLM6dqlsIUsmy ZdzINGk/wpEuDpZtKe8c6SdFGz2j6vpL5cL/38N85Idp2kGwQsf6wuaxd E/BGljUfYWtokutmQWybsu5OmBtWB9CgTD3veOJcZVIOvDxOr8lghUJDf A==; X-CSE-ConnectionGUID: YQWrb9L2Q+CzruCqBB9vbg== X-CSE-MsgGUID: ga8B/sJlRp+hDTHmiYDRDA== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="63537291" X-IronPort-AV: E=Sophos;i="6.19,249,1754982000"; d="scan'208";a="63537291" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2025 05:26:38 -0700 X-CSE-ConnectionGUID: l3HPS2vpSVG/SN0A0Ax62w== X-CSE-MsgGUID: CcNU6AIMTNqojfDF0RBlpQ== X-ExtLoop1: 1 Received: from unknown (HELO fdefranc-mobl3.igk.intel.com) ([10.237.142.160]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2025 05:26:27 -0700 From: "Fabio M. De Francesco" To: linux-cxl@vger.kernel.org Cc: "Rafael J . Wysocki" , Len Brown , Tony Luck , Borislav Petkov , Hanjun Guo , Mauro Carvalho Chehab , Shuai Xue , Davidlohr Bueso , Jonathan Cameron , Dave Jiang , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , Mahesh J Salgaonkar , Oliver O'Halloran , Bjorn Helgaas , Sunil V L , Xiaofei Tan , Mario Limonciello , Huacai Chen , Heinrich Schuchardt , Arnd Bergmann , "Fabio M . De Francesco" , Peter Zijlstra , Ingo Molnar , Guo Weikang , Xin Li , Will Deacon , Huang Yiwei , Gavin Shan , Smita Koralahalli , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Li Ming , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Kuppuswamy Sathyanarayanan , Karolina Stolarek , Jon Pan-Doh , Lukas Wunner , Shiju Jose , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, Jonathan Cameron , Qiuxu Zhuo Subject: [PATCH 1/6 v6] ACPI: extlog: Trace CPER Non-standard Section Body Date: Thu, 23 Oct 2025 14:25:36 +0200 Message-ID: <20251023122612.1326748-2-fabio.m.de.francesco@linux.intel.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251023122612.1326748-1-fabio.m.de.francesco@linux.intel.com> References: <20251023122612.1326748-1-fabio.m.de.francesco@linux.intel.com> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ghes_do_proc() has a catch-all for unknown or unhandled CPER formats (UEFI v2.10 Appendix N 2.3), extlog_print() does not. This gap was noticed by a RAS test that injected CXL protocol errors which were notified to extlog_print() via the IOMCA (I/O Machine Check Architecture) mechanism. Bring parity to the extlog_print() path by including a similar log_non_standard_event(). Cc: Dan Williams Reviewed-by: Dan Williams Reviewed-by: Dave Jiang Reviewed-by: Jonathan Cameron Reviewed-by: Qiuxu Zhuo Signed-off-by: Fabio M. De Francesco --- drivers/acpi/acpi_extlog.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/acpi/acpi_extlog.c b/drivers/acpi/acpi_extlog.c index f6b9562779de..47d11cb5c912 100644 --- a/drivers/acpi/acpi_extlog.c +++ b/drivers/acpi/acpi_extlog.c @@ -183,6 +183,12 @@ static int extlog_print(struct notifier_block *nb, unsigned long val, if (gdata->error_data_length >= sizeof(*mem)) trace_extlog_mem_event(mem, err_seq, fru_id, fru_text, (u8)gdata->error_severity); + } else { + void *err = acpi_hest_get_payload(gdata); + + log_non_standard_event(sec_type, fru_id, fru_text, + gdata->error_severity, err, + gdata->error_data_length); } } -- 2.51.0