From nobody Mon Feb 9 02:13:09 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E52E829BDA3; Thu, 23 Oct 2025 12:27:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761222424; cv=none; b=U1eWYFFGPDe4Pika+7zm3qXjWTHAE+b/d2r1siql7TC4DZCaKx6fPi1tsF5zzc87yivhxG9/qyf56DJPcEZa64drJ95tnra6AxEMN23tCh+HkqIaFzBxxNtXHgwbZrkuOE+c1MLDfL1mk/b4Wd/4QfaGBUb7gd92UlhSbDwPzqQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761222424; c=relaxed/simple; bh=PbFADBLewu37LDKf0I/qUmCC86OvOzKhoSduxuMrrMw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=egBYIU07Mo93gY0+9QcfhSzsu10AZUSMpo9sFWaGPZndnGqqKd6HllCNAo1Fsg5LRm3F2N1YBAB/4nd3oSAWKyQpOOex8XMcBPwdr8hVQ0966jaO0qg+yOTlxUP3aqVdibNy5BLNb8wT3qpXNcuunLI7fXmKRF6/+CD3TA3fhR0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ZQD9KJCQ; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZQD9KJCQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761222422; x=1792758422; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PbFADBLewu37LDKf0I/qUmCC86OvOzKhoSduxuMrrMw=; b=ZQD9KJCQQZXP4KEfo1G37daGsD34NQVuGuVjXaqP7ZXcDJN5fD0+SNdB DiWIX7Xq5eyKHbWABLRWzTDoDzL+2vYYiaF9OvLxACIlEOm0GVwPPG1LF vmSw8KEAhNZ1WxFbta82YAYb+pVC7AQRxQKQ988TOOd30f3MIh3kzV022 d+YjS36SarvtSKTEfUbkf2Oip6csoKA4t8+knbPUrz1pKxWuIzji4lseH qPPT70S/V1PieTYvitad+fRus5PPiGw15r1OuOkw4SFX4/qitqLWrp5dE kV9gyhwmT0jnrjc9lvzmKV8IXzDBlzsgdjE49C6Z09lJMeOZBSHZjiW17 g==; X-CSE-ConnectionGUID: vLHWVVJeSQ+y/QMdJsRHOA== X-CSE-MsgGUID: kSzDrub/R7Gj1is2KQL6/A== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="86017268" X-IronPort-AV: E=Sophos;i="6.19,249,1754982000"; d="scan'208";a="86017268" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2025 05:27:00 -0700 X-CSE-ConnectionGUID: jCz3Ch1MR9+KUQDQFIQXOw== X-CSE-MsgGUID: j+jCBTy1Tf2GHqB1muXCpA== 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:49 -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 Subject: [PATCH 3/6 v6] acpi/ghes: Make GHES select ACPI_APEI_PCIEAER Date: Thu, 23 Oct 2025 14:25:38 +0200 Message-ID: <20251023122612.1326748-4-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" GHES handles the PCI Express Error Section and also the Compute Express Link (CXL) Protocol Error Section. Two of its functions depend on the APEI PCIe AER logging/recovering support (ACPI_APEI_PCIEAER). Make GHES select ACPI_APEI_PCIEAER and remove the conditional compilation from the body of two static functions that handle the CPER Error Sections mentioned above. Signed-off-by: Fabio M. De Francesco --- drivers/acpi/apei/Kconfig | 1 + drivers/acpi/apei/ghes.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/acpi/apei/Kconfig b/drivers/acpi/apei/Kconfig index 070c07d68dfb..c265b54d810d 100644 --- a/drivers/acpi/apei/Kconfig +++ b/drivers/acpi/apei/Kconfig @@ -23,6 +23,7 @@ config ACPI_APEI_GHES select ACPI_HED select IRQ_WORK select GENERIC_ALLOCATOR + select ACPI_APEI_PCIEAER select ARM_SDE_INTERFACE if ARM64 help Generic Hardware Error Source provides a way to report diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 97ee19f2cae0..d6fe5f020e96 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -613,7 +613,6 @@ static bool ghes_handle_arm_hw_error(struct acpi_hest_g= eneric_data *gdata, */ static void ghes_handle_aer(struct acpi_hest_generic_data *gdata) { -#ifdef CONFIG_ACPI_APEI_PCIEAER struct cper_sec_pcie *pcie_err =3D acpi_hest_get_payload(gdata); =20 if (pcie_err->validation_bits & CPER_PCIE_VALID_DEVICE_ID && @@ -646,7 +645,6 @@ static void ghes_handle_aer(struct acpi_hest_generic_da= ta *gdata) (struct aer_capability_regs *) aer_info); } -#endif } =20 static BLOCKING_NOTIFIER_HEAD(vendor_record_notify_list); @@ -711,7 +709,6 @@ struct work_struct *cxl_cper_prot_err_work; static void cxl_cper_post_prot_err(struct cxl_cper_sec_prot_err *prot_err, int severity) { -#ifdef CONFIG_ACPI_APEI_PCIEAER struct cxl_cper_prot_err_work_data wd; u8 *dvsec_start, *cap_start; =20 @@ -767,7 +764,6 @@ static void cxl_cper_post_prot_err(struct cxl_cper_sec_= prot_err *prot_err, } =20 schedule_work(cxl_cper_prot_err_work); -#endif } =20 int cxl_cper_register_prot_err_work(struct work_struct *work) --=20 2.51.0