From patchwork Wed Jan 12 23:07:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Kiraly X-Patchwork-Id: 531591 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EFB6C433F5 for ; Wed, 12 Jan 2022 23:16:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235277AbiALXQQ (ORCPT ); Wed, 12 Jan 2022 18:16:16 -0500 Received: from box.aukejan.com ([173.82.79.94]:40801 "EHLO box.aukejan.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235235AbiALXQO (ORCPT ); Wed, 12 Jan 2022 18:16:14 -0500 X-Greylist: delayed 525 seconds by postgrey-1.27 at vger.kernel.org; Wed, 12 Jan 2022 18:16:14 EST Received: from authenticated-user (box.aukejan.com [173.82.79.94]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by box.aukejan.com (Postfix) with ESMTPSA id 2829B5D02B; Wed, 12 Jan 2022 15:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=boldcoder.com; s=mail; t=1642028848; bh=W2fRJ5DRD0yoAXsdwyCIRoTaNrMa4vko3jgoFM5Xk3Y=; h=From:To:Subject:Date:From; b=g3xbiz3DiwpwapG6XQxBmKaXpk8oFlLk0tK9LEM0mNoIi/b3WG3wjoSPmCfmCK36H BSThBcEXoTmAgfgaF0O7NvQqu2RF4VhvDJpKqqRZda/2xnp24XdzgbW9MeM3IklE4I LYPWXFi++taUEm2e3Mc4HDN+3K5YRmWVDQex1FJmKeKCRdBVwXd9Fq/U3gg5Q7JJz3 wPVRlKMJta0Y1Vj7iIQUbdyCqKVqZwVk6BjR8vOsDufqHHZlZp1uwxL8j6GxIqVBrX gS3hxmt7dkg9vakdOmnRA09Q+ykvn0R+Tyb6c7pp6Eyxf5+vIGF1p+QkBWLXu6tUYi oI+M3Ak/i9Pvg== From: Robert Kiraly To: linux-acpi@vger.kernel.org, Len Brown Subject: Patch: Make ACPI subsystem provide CEDT table Message-ID: <198c0ae2-efdf-7f47-11c7-27e9a87b3f32@boldcoder.com> Date: Wed, 12 Jan 2022 15:07:29 -0800 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org This is a simple ACPI patch. I'm submitting a revised version to linux-acpi as opposed to linux-pm at Rafael Wysocki's suggestion. The patch adds ACPI_SIG_CEDT to table_sigs[] in "drivers/acpi/tables.c". The change will probably be made by upstream later regardless. But I've reviewed cxl-next and it doesn't seem to be present there yet. Presently, CXL code isn't able to make use of the CEDT table. Subsequent to the change, the CEDT table can be used. If a developer plans to use the CEDT table to program the CXL ports, this change is needed. Otherwise, it isn't expected to make a difference. Subject: Make ACPI subsystem provide CEDT table Author: Robert Kiraly This is a simple patch to the ACPI subsystem. The patch adds ACPI_SIG_CEDT to table_sigs[] in "drivers/acpi/ tables.c". Presently, CXL code isn't able to make use of the CEDT table. Subsequent to the change, the CEDT table can be used. If a developer plans to use the CEDT table to program the CXL ports, this change is needed. Otherwise, it isn't expected to make a difference. ==== end of patch ==== --- linux-5.16.old/drivers/acpi/tables.c +++ linux-5.16/drivers/acpi/tables.c @@ -500,6 +500,9 @@ ACPI_SIG_WDDT, ACPI_SIG_WDRT, ACPI_SIG_DSDT, ACPI_SIG_FADT, ACPI_SIG_PSDT, ACPI_SIG_RSDT, ACPI_SIG_XSDT, ACPI_SIG_SSDT, ACPI_SIG_IORT, ACPI_SIG_NFIT, ACPI_SIG_HMAT, ACPI_SIG_PPTT, +#ifdef ACPI_SIG_CEDT + ACPI_SIG_CEDT, +#endif ACPI_SIG_NHLT }; #define ACPI_HEADER_SIZE sizeof(struct acpi_table_header)