From patchwork Fri Nov 22 18:04:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiju Jose X-Patchwork-Id: 13883509 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68A2BE69187 for ; Fri, 22 Nov 2024 18:05:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 54E1A6B00A4; Fri, 22 Nov 2024 13:05:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4D9CC6B00A5; Fri, 22 Nov 2024 13:05:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 327836B00A6; Fri, 22 Nov 2024 13:05:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 04F416B00A4 for ; Fri, 22 Nov 2024 13:05:07 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B4C7C14126F for ; Fri, 22 Nov 2024 18:05:07 +0000 (UTC) X-FDA: 82814504682.03.16B94BB Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by imf21.hostedemail.com (Postfix) with ESMTP id C09DC1C0016 for ; Fri, 22 Nov 2024 18:03:22 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=none; spf=pass (imf21.hostedemail.com: domain of shiju.jose@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=shiju.jose@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732298643; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HKDY5gbRgMz0ojT+J12XQUCAGfZcRzn+L7vzUnUI6HI=; b=mmciISvQZ+dVIZTvVYtFUevYJIw9qN/PiuTGG47zXh/NLb5Ehz6+/0caDPxWQzAGj+IocB oG993flJ7XvktEh62p+p8h1o3GSWtuJC35pFzYNCVsy1QmEtcMEWH2tdUzhHSqB2zTI77T 6gHM3FzAoU8bBPBiYYRN3x4fooUvW6g= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732298643; a=rsa-sha256; cv=none; b=DigvoK751dO2KoQNV4TZebO1f06QCe2qEwlvOowA6VnkVvQcAmNnBvP+oYN0LOgNlQ/5Vk RAH88qkJTu70QWug5JkRX1IWvQZf1ABlB2A/2F/gt+A/B5RpqqGoJ1/regmeCy7pJvD0D5 S2opxdDd1ST2CRGWSRjCWnkZxHolncU= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; spf=pass (imf21.hostedemail.com: domain of shiju.jose@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=shiju.jose@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Xw2xr2SQqz6K94W; Sat, 23 Nov 2024 02:02:40 +0800 (CST) Received: from frapeml500007.china.huawei.com (unknown [7.182.85.172]) by mail.maildlp.com (Postfix) with ESMTPS id A5FD314010C; Sat, 23 Nov 2024 02:05:03 +0800 (CST) Received: from P_UKIT01-A7bmah.china.huawei.com (10.126.171.16) by frapeml500007.china.huawei.com (7.182.85.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 22 Nov 2024 19:05:01 +0100 From: To: , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v17 10/18] cxl: Add UUIDs for the CXL RAS features Date: Fri, 22 Nov 2024 18:04:07 +0000 Message-ID: <20241122180416.1932-11-shiju.jose@huawei.com> X-Mailer: git-send-email 2.43.0.windows.1 In-Reply-To: <20241122180416.1932-1-shiju.jose@huawei.com> References: <20241122180416.1932-1-shiju.jose@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.126.171.16] X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To frapeml500007.china.huawei.com (7.182.85.172) X-Stat-Signature: ofg8mbdkry9nz9gkqxxhsmw6u5jm55ra X-Rspam-User: X-Rspamd-Queue-Id: C09DC1C0016 X-Rspamd-Server: rspam02 X-HE-Tag: 1732298602-575072 X-HE-Meta: U2FsdGVkX1+zvIK31WWX9bkv7oz21pdRTw3rnOlUgdELy217lM+GtUTqAq5qFKLkZSU8gqUPET208+/FyQWlndVvAEQlsoUzoykOH1/cZ7RbymzOAMACXZcKffBjwgMF2JriD5IolEcxEqe03zKidvBjbn7pI02ES/ENiXR6NEPhknCDxtlSycoblhjEDQrkhIBD25HEb5k5fx+d4HQ14eLnpcdbqK4Au2sa7INWlJVubUtp5cYMfshA5OAjtevR4TGt/naYiJe+ZNqpQapUY2ZG7gv7auW6ThyRWIgx1Evanv+FWoscJ9+xMrpjR5za7wnkci5DFzGKFqh1eEI20084LZHBcTgVaGElNye2Qmlb4FNEkuI0BKIDY9+PnQqvkRDsqaAeG/ueEWa/wxGQxrkSNNuw6je05I+MWhaqSn6zQDNQaKJW1L8JzghJwDO5DhIQn/Z2XCu035m/trptju9Z6ZsxazVbg9249m7H+wTfwBuWyqEpj6fdVcGRT1L40dR9TKNzqfF7IJSzL32G/Hmv6Ew+KL2hOxXLc3kMPV6n1rniwW6e9c3/OiFp+usxBx2NcEM1r3cWl1Sy+tzY1Pr0sKPVoGYuQyIvSk8zHetv6NdGYgKMnnFUw4WjbFI311Np6tAePprhwwrlTNpBmKvyj4iooh4R/jWTo/v7dMWtMWxfLNlRf2x7PcknOIkvMcYgZ3sQUntseZkFFd2is/LCYBFNqaQw5sv3hZ1fNBusNifkxMLrnA+0Q/rO+njwS+rabGwz2pLlabcEOFzyXSalUf/hxKqYSEzT982N+FdUpmmqbqmGNPHYPSPlnWlBvPG/2NOw5eeKfMtK4DJrfQYtBCyh+7DdZd0R6EGV1RAtUDACds9t6gi6y1o8CYTLbrJxjKSGpEISttzpNy7V+T6R6C7Qsl3mLdjIUVQiBT+2DndBg5XvLVP9LppEhSU+jbUj9V49Bl8DYhYAvhT RbNNseNQ nFqwrU1yzpz6Ia7/HtiPNl+T/YPm+C6Wd/Lpuu/X4vBLbUUQirBes3SU8Hf4+3pvRDKtZo9VMZ7VAb/0Q0/7B2WkMtQvWKECIfYQHimGrbfuNAA7V1LGPjx4g8rzZ2nSeedHjWUoPNsQzjM7rwDJO/XfuazxUD1M2kkgS6cMh3+LCa/b3toC1Dsph+iZTiS0Xn6tRsbBvJHtSNH6nsJSfFPq2H9/zvpmAJCKL1v4Y5/QVSrs= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Dave Jiang Add UUIDs for the CXL RAS features to a common file. Signed-off-by: Dave Jiang Signed-off-by: Shiju Jose --- include/cxl/features.h | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 include/cxl/features.h diff --git a/include/cxl/features.h b/include/cxl/features.h new file mode 100644 index 000000000000..8a6c464ee571 --- /dev/null +++ b/include/cxl/features.h @@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* Copyright(c) 2024 Intel Corporation. */ +#ifndef __CXL_FEATS_H_ +#define __CXL_FEATS_H_ + +#include + +/* + * Patrol scrub control CXL 3.1 Spec 8.2.9.9.11.1 Table 8-206 + */ +#define CXL_FEAT_PATROL_SCRUB_UUID \ + UUID_INIT(0x96dad7d6, 0xfde8, 0x482b, 0xa7, 0x33, 0x75, 0x77, 0x4e, \ + 0x06, 0xdb, 0x8a) + +/* + * DDR5 ECS control CXL 3.1 Spec 8.2.9.9.11.2 Table 8-209 + */ +#define CXL_FEAT_ECS_UUID \ + UUID_INIT(0xe5b13f22, 0x2328, 0x4a14, 0xb8, 0xba, 0xb9, 0x69, 0x1e, \ + 0x89, 0x33, 0x86) + +/* + * CXL maintenance operations CXL 3.1 Spec 8.2.9.7.2 Table 8-110 + */ +#define CXL_FEAT_SPPR_UUID \ + UUID_INIT(0x892ba475, 0xfad8, 0x474e, 0x9d, 0x3e, 0x69, 0x2c, 0x91, \ + 0x75, 0x68, 0xbb) + +#define CXL_FEAT_HPPR_UUID \ + UUID_INIT(0x80ea4521, 0x786f, 0x4127, 0xaf, 0xb1, 0xec, 0x74, 0x59, \ + 0xfb, 0x0e, 0x24) + +#define CXL_FEAT_CACHELINE_SPARING_UUID \ + UUID_INIT(0x96C33386, 0x91dd, 0x44c7, 0x9e, 0xcb, 0xfd, 0xaf, 0x65, \ + 0x03, 0xba, 0xc4) + +#define CXL_FEAT_ROW_SPARING_UUID \ + UUID_INIT(0x450ebf67, 0xb135, 0x4f97, 0xa4, 0x98, 0xc2, 0xd5, 0x7f, \ + 0x27, 0x9b, 0xed) + +#define CXL_FEAT_BANK_SPARING_UUID \ + UUID_INIT(0x78b79636, 0x90ac, 0x4b64, 0xa4, 0xef, 0xfa, 0xac, 0x5d, \ + 0x18, 0xa8, 0x63) + +#define CXL_FEAT_RANK_SPARING_UUID \ + UUID_INIT(0x34dbaff5, 0x0552, 0x4281, 0x8f, 0x76, 0xda, 0x0b, 0x5e, \ + 0x7a, 0x76, 0xa7) +#endif