From patchwork Fri Jun 16 01:08:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jehoon Park X-Patchwork-Id: 13281912 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 E1834EB64D9 for ; Fri, 16 Jun 2023 01:06:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232101AbjFPBGL (ORCPT ); Thu, 15 Jun 2023 21:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjFPBGK (ORCPT ); Thu, 15 Jun 2023 21:06:10 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2D601FE2 for ; Thu, 15 Jun 2023 18:06:08 -0700 (PDT) Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230616010606epoutp047e8f2ff069f4ae282937b035c2d8d66a~o-jWG33ts1701317013epoutp04C for ; Fri, 16 Jun 2023 01:06:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230616010606epoutp047e8f2ff069f4ae282937b035c2d8d66a~o-jWG33ts1701317013epoutp04C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1686877566; bh=1RD42/3HhrAJUGHbUqWPQ03lONA6GWvvAqGel7VQqnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p00WxwO3WyfuPNMeTkB8s9Psoc7vXKGSesH2HN3QdkMTVHGPM4HzgSnLI5tV+GXii eT1dboY3e28UCyy91o0Z+hUPjmBFdZK21QcWDwPYKG3/kz3knVUOJqw0vXsOKAuaDt v3PFmaOoqaGMe0ookMeGdl05Fh48iwIPbB5Elpgs= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20230616010605epcas2p3432f0d5566b4aaa4905726c6627b53cb~o-jVilu6o0389903899epcas2p3C; Fri, 16 Jun 2023 01:06:05 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.92]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Qj1F916tbz4x9Q2; Fri, 16 Jun 2023 01:06:05 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 0B.0F.11450.D75BB846; Fri, 16 Jun 2023 10:06:05 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20230616010604epcas2p3399f53ee96eb819678fc79eff2ae6ab6~o-jUxv13d0162901629epcas2p3a; Fri, 16 Jun 2023 01:06:04 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230616010604epsmtrp137a1a9b7a1ead3c0a645224f0704f870~o-jUxDeBH2991329913epsmtrp1E; Fri, 16 Jun 2023 01:06:04 +0000 (GMT) X-AuditID: b6c32a45-1dbff70000022cba-3b-648bb57d18ea Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 5F.23.27706.C75BB846; Fri, 16 Jun 2023 10:06:04 +0900 (KST) Received: from jehoon-Precision-7920-Tower.dsn.sec.samsung.com (unknown [10.229.83.133]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230616010604epsmtip10213b934bf775696447b25fca056bc7f~o-jUmClsJ2136821368epsmtip1Z; Fri, 16 Jun 2023 01:06:04 +0000 (GMT) From: Jehoon PARK To: linux-cxl@vger.kernel.org Cc: nvdimm@lists.linux.dev, Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , Dave Jiang , Jehoon Park Subject: [ndctl PATCH 1/2] cxl: Update a revision by CXL 3.0 specification Date: Fri, 16 Jun 2023 10:08:40 +0900 Message-Id: <20230616010841.3632-2-jehoon.park@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230616010841.3632-1-jehoon.park@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKKsWRmVeSWpSXmKPExsWy7bCmmW7t1u4Ugytn2SzuPr7AZtE8eTGj xfSpFxgtTtxsZLPY//Q5i8WB1w3sFudnnWKxWPnjD6vFrQnHmBw4PRbvecnksWlVJ5vHi80z GT36tqxi9Pi8SS6ANSrbJiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VW ycUnQNctMwfoICWFssScUqBQQGJxsZK+nU1RfmlJqkJGfnGJrVJqQUpOgXmBXnFibnFpXrpe XmqJlaGBgZEpUGFCdsbSCz/ZCi5zVsw/XNvA2MzRxcjJISFgInG8dS9rFyMXh5DADkaJNW83 sEA4nxgldu+ezg7hfGOUaF/ZCpThAGvpf1sDEd/LKNG5YhtUey+TxJ3NN1hA5rIJaEu0971l BLFFBGQlmtc9YAIpYhbYwCSxYuExZpCEsICXxKunL9lBbBYBVYnnTd/BmnkFrCVuLp/MCHGg vMTqDQfA6jkFbCSm7XgLNkhC4Bq7xNWfi9kgilwkHq3vYYGwhSVeHd/CDmFLSbzsb4Oy8yV+ nrzFCmEXSHz68gGq3lji3c3nrCCvMQtoSqzfpQ/xpbLEkVtgFcwCfBIdh/+yQ4R5JTrahCAa VSW6jn+AulJa4vCVo8wQtofE7B+b2CBh0s8osfX5HJYJjHKzEBYsYGRcxSiWWlCcm55abFRg CI+w5PzcTYzg9KbluoNx8tsPeocYmTgYDzFKcDArifAuO9GVIsSbklhZlVqU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6rFnFRv5DvgHM4YslPZKMuQ99M7Jq4F9wJuNb/n9Bo1t2M9sUeSO+5q2vmrl01/y362te fbk3+2qr1CL97MpNn0q0eTf8ONo5wXPmr58ydU3d93qedE05yx1o7xAVNOdnmkTWk98Tux/a Ldoz3z58pVJRb8JdsxKvtAu1q9qcene+33fhQ3/Y+yzHm+Ucy/Rnh/xleuzGttvSo/bkh4Vm acyS3NOPZNyfZWHH4J3zTE9+/68tcaGpk6J7U+63/r4g4KXN0lT5e76YQxnfjv8udTYFd/Zy /NiW+/TXJbasmZXxDH46e9hLxIpuFeaWK7EUZyQaajEXFScCAOMs5J6zAgAA X-CMS-MailID: 20230616010604epcas2p3399f53ee96eb819678fc79eff2ae6ab6 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230616010604epcas2p3399f53ee96eb819678fc79eff2ae6ab6 References: <20230616010841.3632-1-jehoon.park@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org From: Jehoon Park Update the value of device temperature field when it is not implemented. (CXL 3.0 8.2.9.8.3.1) Signed-off-by: Jehoon Park --- cxl/json.c | 2 +- cxl/lib/private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cxl/json.c b/cxl/json.c index 9a4b5c7..3661eb9 100644 --- a/cxl/json.c +++ b/cxl/json.c @@ -155,7 +155,7 @@ static struct json_object *util_cxl_memdev_health_to_json( } field = cxl_cmd_health_info_get_temperature(cmd); - if (field != 0xffff) { + if (field != 0x7fff) { jobj = json_object_new_int(field); if (jobj) json_object_object_add(jhealth, "temperature", jobj); diff --git a/cxl/lib/private.h b/cxl/lib/private.h index d49b560..e92592d 100644 --- a/cxl/lib/private.h +++ b/cxl/lib/private.h @@ -324,7 +324,7 @@ struct cxl_cmd_set_partition { #define CXL_CMD_HEALTH_INFO_EXT_CORRECTED_PERSISTENT_WARNING (1) #define CXL_CMD_HEALTH_INFO_LIFE_USED_NOT_IMPL 0xff -#define CXL_CMD_HEALTH_INFO_TEMPERATURE_NOT_IMPL 0xffff +#define CXL_CMD_HEALTH_INFO_TEMPERATURE_NOT_IMPL 0x7fff static inline int check_kmod(struct kmod_ctx *kmod_ctx) {