From patchwork Thu Apr 3 23:13:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zaid Alali X-Patchwork-Id: 878000 Received: from CH5PR02CU005.outbound.protection.outlook.com (mail-northcentralusazon11022135.outbound.protection.outlook.com [40.107.200.135]) (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 1E3521C84DD; Thu, 3 Apr 2025 23:13:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.200.135 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743722037; cv=fail; b=k1QhgplczMxS9OE8OYOXDOe71U43Dagq6u9RVnyQbs34lqCKGL7BCykgLo7Rao/EENorCV9C+Q9wUVp73KwpJ/8/YeknFAFTCxYJ4N++HDprJ5dMrlvQtyoxaC7RyvD/xGkx8WvWVfPfhgOk+1K1wqfcSUjzZ+UMpt0m6LBUX14= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743722037; c=relaxed/simple; bh=rh3LiFDqONhqT7lgtvmvw+uS8ZAgywTqecr1wuFjXOs=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=pCiYtAI34Dh19EvZ6ftO2oOV4UNu9OwX97t5q4hkqd8oEp9IxT8cUgHhR4NlnxjCfrTJLigVE+8CQfMMll8mKsSpP8b+x5ugdKKTw1NHJ4rtMun7ut907iLJbj8J9WsX2dzybm+t2h9XOYoxbLz9XmkYRtgw6zrwqazRaBnrEOQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com; spf=pass smtp.mailfrom=os.amperecomputing.com; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b=UVwjIGps; arc=fail smtp.client-ip=40.107.200.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=os.amperecomputing.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b="UVwjIGps" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VMNlPMCu6c68DDsNnjdNUDsvSBm7l+iMNfHb9V1sE3yL2+agp58V0wfVLkku1S/KzWd4/f3lF7sBEcmZP7OkgNaNSfqFVPYzSTpl8FDQf1j4ElYqi+jzRCzhMrctdDJJskcgCPtP1EwVjRM68gfgt18x8X7F129WhVDSPpWANEGcnF8JRQCZFeMWIgM7sSu87dLk0S1h4XHqHZCKNl4HeJCdhz8uKcuvbsAUFvSUnw0bvXE+coIMvflqCNtSIuIGCbhXsiUfsZTW4Ll3E93xQ2+VGgP7zapfeFhHR2STGjOKQVY6G4e0bB64LluQE8/nUpwDesvU+nzMCOWauDyktA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=idYXSRMnu88WvOUoU1ZQinvDxg7UkQZgSz5uVYFZ2OY=; b=MFz2U+pQuvQo2hVyChzogkuthiclvWsFfBe+hUZ1dzafJ+wrlM01inC6e2mff5vcIRuKZl6DWjp1L8gD+PATZGKRIU8fM5YymTuJ6bGCErxTFHynTxNENWxs71jFuWQtv44Z1Ei3fivinivauKvBVM7uG29L2YwSwfAKQNy7iY4x51F53HlpttTz1UbgvqFjGYqRqe3aM82v+z9U6Jnc3OGSmjJiCyz8HWdV1ROghnpwMIxvnoQlo89fvKgBy71EyMZFqHPPpm2YfNXwB+Teue1zFNf31nDCEwotAl15REeyQHTjmOI+wgLzKBoSpiRZoWLcrlNtiL7pVo4etZHylg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=idYXSRMnu88WvOUoU1ZQinvDxg7UkQZgSz5uVYFZ2OY=; b=UVwjIGps16/QE4PkTkDbJpHcYaX6y9OwOB8qMfiBle9aMS3n+L7jh0GI4F94ucxOTIUnBPcUHEopTY7jf5Rc4y9Q2S6FIk/hgMzS/a2l8fAQBzk326fRLKdokjoaIWpc9wCP2W7ZxBYCQ0A8v4ORuEDvY/pqSWXO/zTME2E9+HM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SN7PR01MB7903.prod.exchangelabs.com (2603:10b6:806:34f::17) by BN0PR01MB6925.prod.exchangelabs.com (2603:10b6:408:168::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8583.43; Thu, 3 Apr 2025 23:13:52 +0000 Received: from SN7PR01MB7903.prod.exchangelabs.com ([fe80::cf45:9855:a64e:382f]) by SN7PR01MB7903.prod.exchangelabs.com ([fe80::cf45:9855:a64e:382f%5]) with mapi id 15.20.8583.041; Thu, 3 Apr 2025 23:13:52 +0000 From: Zaid Alali To: rafael@kernel.org, lenb@kernel.org, james.morse@arm.com, tony.luck@intel.com, bp@alien8.de, robert.moore@intel.com, dan.j.williams@intel.com, zaidal@os.amperecomputing.com, Jonathan.Cameron@huawei.com, Benjamin.Cheatham@amd.com, Avadhut.Naik@amd.com, viro@zeniv.linux.org.uk, arnd@arndb.de, ira.weiny@intel.com, dave.jiang@intel.com, sthanneeru.opensrc@micron.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linux.dev Subject: [PATCH v5 1/9] ACPICA: Update values to hex to follow ACPI specs Date: Thu, 3 Apr 2025 16:13:31 -0700 Message-ID: <20250403231339.23708-2-zaidal@os.amperecomputing.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250403231339.23708-1-zaidal@os.amperecomputing.com> References: <20250403231339.23708-1-zaidal@os.amperecomputing.com> X-ClientProxiedBy: MW4PR03CA0246.namprd03.prod.outlook.com (2603:10b6:303:b4::11) To SN7PR01MB7903.prod.exchangelabs.com (2603:10b6:806:34f::17) Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN7PR01MB7903:EE_|BN0PR01MB6925:EE_ X-MS-Office365-Filtering-Correlation-Id: 73608f04-2340-4285-3933-08dd730532eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|376014|52116014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: 7soxUSA3VfpTQXpzdPbddEJAQ1TaWsUacfIlmegcgyrC9MP9OYCdMHltJFD4ka1IkmsVzAC8f9WXYVaHy0gRHz5Jox4kNkn3TQcbg+GGUnbMKTqpjtfuT6d3YTM4ByRaxTuc2oW094YAvqPXAea5lVvgnvh8g0ruQ1+qimGI15lxt10blqr90gbo1nFe/AvuSShKVRwOX7hIAH1yc5mtqRlsuUDYN7S+Tjct8KSN6MNs5z3Lo1o0FB0Ijzufv3n+pl/C8juvAjZi+vHsSPauW5yj0PgrZt4mRFRDKZT3QbbpbJZhXx/a7uGrkOYM8CYyoNJWlhk+GWhLziHz4VOxVHRTQHw3ZTBVJZ+iY6A8r3c6FUlaBBg0FscM3xG/UIG3pp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RVXB5ji8ZYqQeldn9xoRhV1yXbGcyJy3POYyxA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR01MB7903.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230040)(7416014)(376014)(52116014)(366016)(1800799024)(38350700014)(921020); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Of7W6nMWnKKzMC9dkkQiJaXA+m7kwucKRCcOF62nBH1mF34XsM+ckHjgKKBqS7urnmBBJxmQmH33SZfr6eHUfrzLooOlMoNuyZazlZeF1Yb4Wn6oHZgqdQrLRvWoJuIkhrFmB57zHJAiGz6N3xIqe13OGtNJgoUGvFkIaPybeCW33PDpsArjJF1kCMMiAzLgt0eK+Dq5HIIJq4FNOs1nqE616d56f2pJfSUS76AVpiJ/Bpwg0cd5iL7VUBtHWIJ4L16rnRdIWHfiPvhOFbSlRoT6cauNYxgRiVyQw6GzhQ7j1tiOlfWcgpmJ9s7aAz6XklmD3LcewMvnw3EkHKwcrZue7/GK3o68wJorIjOj6MbawRiErSV03Ypw/dEUeSYHr4zHTJHf/VYZ7OJ4LoBsde/k+EBWKQiAj7onEneCrXgE+PKB2WDvJ8YqJWrmrjHV2Goh0w9RVrijRRb/MgVG/iWn7kz5XBcBQk1Ozrhkn9Fj0ao9rigbANQa1b38Tnwdaxd40ZW4HDJTdTsvKVbQQS9TrfGd/E/JOd0hjkFGXY+yuDOai/c9DdapL/xGr4qmTVqVqRP7Fn4OG90lVrekzckScYwbYWGfAo1jaDU2C2YjjCmoWg/Q/onYAoIzc+PkobX1Aecv58Wf0NH3N8LMTgTSjhPrnNK6yf+ZP+jG0bDqjORfP7u8q7HsT0T4IRRL9qggxdXtGbHWA+eBJCYS7CssxtrDq2EIfMtM/rIwovgKsOWM86ZU/bJmoCkQiEqD3w/uyfJ9PAZToaiITEZkRY/BXukKJ2dp5GCyZteYgS2GjESedi7nEUeW4O6jpabHs/oKLXZgwcvrpe4rBV5RGdPKSCttM24z38Xx6DViG4N5f9DSJ+o1I7G3CRTf3d24jPZ75relwmO2ea9bVeRJ7I98nEyeuM5geBV+kJYJVeEDLShmZCX8fCHpdObXs6JVEZz4NQ3Lqn1RRHA0D7XSVkIOkxkIzl+3jYJUirRLB5jjMWeRExzlKYquYJ2vzcx2BBgsPA0b1xDTHRwDM+2pvQU8KQCfAOfAiQ+Fy89HzrWyDoBPXMRy3NZWZ1nsF6h5g7xns4rdzSpMkbrbgcRrp1MU1kkhSHPlfTYrwyXIlqdaTQyjkAGDAYFiz3YvoJ/hDdO/Q/a1WStDltsPRFdk70AIdoTUkFaoPg5Jj3MudqQNP7B+PnVbkkYSgZshagpakZ+hnW89Lg3i4ibK/dWbTqUlEM4Fe+dkoinhtt9RVvkqC7bFjqWIzIohDCY9cxhWrKLDaS4GwiEEmbZ4z84mi1UKq9cd3EMqCZ2UxjAE41tP1JoKSvHxL+I3Iu6OaOAA1LxDZX7c8pVUBd+sS+vwtWvNUzrOAUx9LOpQB8KrvCb1mbbG9AzAEkBTq3Dl90rbYvS+8c9pA8dKkgLgvr0p8dgiLWlCKJ3nRarjtHCvoDy+0njeGeRNQKn2bL1yVHOYP+0bMWWfk87vixfYagm3AdqKqL83rrDngwZV9GLI5jNMsQXU+OPb4lrDWc1/v1c8+rrQKwH3HKEpgWTukSNTFX3ezqLtsmAG3TOy5lZzQlyA2YkxrEfmW5PEYDjAPJNYBsIMyli79LPRy0FBf3h3ZH3vMsrfv1nhEwMTxYsgpUE= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73608f04-2340-4285-3933-08dd730532eb X-MS-Exchange-CrossTenant-AuthSource: SN7PR01MB7903.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2025 23:13:52.4791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uEJhdPyWtKIggscHYG1kXOdQJ8KJ1km34atBpKLnKZyjpD/pP4WFhMd37MDhjxuvZkRJPGu8afx1y6zrDYckFwj97ZhiExY9FXw+HVwRJCMLT+YBgEzjTD5wTFWYY4vX X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR01MB6925 ACPI specs(1) define Error Injection Actions in hex values. This commit intends to update values from decimal to hex to be consistent with ACPI specs. This commit and the following one are not to be merged and will come form ACPICA project see pull request(2). (1) https://uefi.org/specs/ACPI/6.5/18_Platform_Error_Interfaces.html (2) https://github.com/acpica/acpica/pull/977 Signed-off-by: Zaid Alali --- include/acpi/actbl1.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index 387fc821703a..c701c434976c 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h @@ -1024,18 +1024,18 @@ struct acpi_einj_entry { /* Values for Action field above */ enum acpi_einj_actions { - ACPI_EINJ_BEGIN_OPERATION = 0, - ACPI_EINJ_GET_TRIGGER_TABLE = 1, - ACPI_EINJ_SET_ERROR_TYPE = 2, - ACPI_EINJ_GET_ERROR_TYPE = 3, - ACPI_EINJ_END_OPERATION = 4, - ACPI_EINJ_EXECUTE_OPERATION = 5, - ACPI_EINJ_CHECK_BUSY_STATUS = 6, - ACPI_EINJ_GET_COMMAND_STATUS = 7, - ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS = 8, - ACPI_EINJ_GET_EXECUTE_TIMINGS = 9, - ACPI_EINJ_ACTION_RESERVED = 10, /* 10 and greater are reserved */ - ACPI_EINJ_TRIGGER_ERROR = 0xFF /* Except for this value */ + ACPI_EINJ_BEGIN_OPERATION = 0x0, + ACPI_EINJ_GET_TRIGGER_TABLE = 0x1, + ACPI_EINJ_SET_ERROR_TYPE = 0x2, + ACPI_EINJ_GET_ERROR_TYPE = 0x3, + ACPI_EINJ_END_OPERATION = 0x4, + ACPI_EINJ_EXECUTE_OPERATION = 0x5, + ACPI_EINJ_CHECK_BUSY_STATUS = 0x6, + ACPI_EINJ_GET_COMMAND_STATUS = 0x7, + ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS = 0x8, + ACPI_EINJ_GET_EXECUTE_TIMINGS = 0x9, + ACPI_EINJ_ACTION_RESERVED = 0xA, /* 0xA and greater are reserved */ + ACPI_EINJ_TRIGGER_ERROR = 0xFF /* Except for this value */ }; /* Values for Instruction field above */