From nobody Mon Feb 9 02:11:40 2026 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 smtp.subspace.kernel.org (Postfix) with ESMTPS id CE4A73570D8; Fri, 17 Oct 2025 13:35:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760708134; cv=none; b=XKZxaBLgWNa6/oaetqGB3Xx2oXzi9mh0NypBdJP3gGH/zIFMAIiv6BK0TJO9QTTHKM03WbvvszhUx1ewNNnTka4J0sNGvZQcfgyHNKfNHOjbf2+SRMbCLMPiJVhtWfCnf+eakWR1D8CSGoisKDZXnCUv+L4xaXivsup3wJ0aSkk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760708134; c=relaxed/simple; bh=84zYUBs58TPuLt5DtEUEpeEKcZIouLRzd18oCcQNbrQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N2Pwmvov3qFvM60F+eF+4K7xI1XtPvaeWqqdF061bJjVEUft1TLc9L1K3Afgybk5+/9M/zw/s3kVqAFDHTL9xHat3NIZ4jZb2xQfwZK0ZxtMRDrOTb5ZTaPhhFkkjDq1Az2Sc4hrYAtZSw9B1XOKx/PN7m5ZP2VWpXRQjrqllf4= 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=Yq9jMMiZ; arc=none smtp.client-ip=198.175.65.16 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="Yq9jMMiZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1760708132; x=1792244132; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=84zYUBs58TPuLt5DtEUEpeEKcZIouLRzd18oCcQNbrQ=; b=Yq9jMMiZ2cbe6MSB67nGTPfl1s8c1dclO9qifocAbIns7CnPe4Jm0opJ WvVm4BqSynsyOB5xqp07dHkNB2CYp09Sp00yvauPFaMJFzbwfjXaz8hty 029d+DHwqKdDJcRdmCvECPFEtd7vV7isk2UhKpN5QOWgNMf+MpDz8WRmR cJ8qQuJksvwYhQVGXBR2WFC6UBbTcYwqEru8B5Fy+U1BBweX6CfgqJm/A pr1BMSG4tsonNLQrGIR6Eny1hH7UrESDQGiwl39bP74xSDp1tDSdLkVtk /VfgcUnC/YY+K9iMIAvbjYSVOD4j6HmZvEpa+vMuFx4KKUmXO5rNkREgU Q==; X-CSE-ConnectionGUID: Gb7c6G6VQmG8dbblLTfJSg== X-CSE-MsgGUID: 8OEEP154TIKO9GqNIKRN2A== X-IronPort-AV: E=McAfee;i="6800,10657,11585"; a="63064991" X-IronPort-AV: E=Sophos;i="6.19,236,1754982000"; d="scan'208";a="63064991" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2025 06:34:59 -0700 X-CSE-ConnectionGUID: YrbVSnjgSnCOxL/V4X/weg== X-CSE-MsgGUID: bk2G3qJwRzmBCUhwOxHDjQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,236,1754982000"; d="scan'208";a="181925088" Received: from fdefranc-mobl3.ger.corp.intel.com (HELO fdefranc-mobl3.intel.com) ([10.245.246.215]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2025 06:34:45 -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 v5] acpi/ghes: Select ACPI_APEI_PCIEAER for GHES Date: Fri, 17 Oct 2025 15:30:48 +0200 Message-ID: <20251017133357.1150982-4-fabio.m.de.francesco@linux.intel.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017133357.1150982-1-fabio.m.de.francesco@linux.intel.com> References: <20251017133357.1150982-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). Select ACPI_APEI_PCIEAER for GHES 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 070c07d68dfb2..c265b54d810dc 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 97ee19f2cae06..d6fe5f020e96e 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