From patchwork Wed Nov 2 16:50:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fan Ni X-Patchwork-Id: 13028616 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 93C21C433FE for ; Wed, 2 Nov 2022 16:50:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231802AbiKBQur (ORCPT ); Wed, 2 Nov 2022 12:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232107AbiKBQua (ORCPT ); Wed, 2 Nov 2022 12:50:30 -0400 Received: from mailout2.w2.samsung.com (mailout2.w2.samsung.com [211.189.100.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 255EE6378 for ; Wed, 2 Nov 2022 09:50:19 -0700 (PDT) Received: from uscas1p1.samsung.com (unknown [182.198.245.206]) by mailout2.w2.samsung.com (KnoxPortal) with ESMTP id 20221102165018usoutp029fcad8bc7925d24e8aaaab1b7fba7f51~j0pO2S65P2100321003usoutp02g; Wed, 2 Nov 2022 16:50:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w2.samsung.com 20221102165018usoutp029fcad8bc7925d24e8aaaab1b7fba7f51~j0pO2S65P2100321003usoutp02g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667407818; bh=XEK6r/nT+boLJBJRw0k4TBenPR6SJtrwZ1RE4n+ScTE=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=ZHWeqwq50NiJlUkuvJPj4T9mPSH/vb1xjrqQoVUISTUJd2AqhMs/b4CowRZc7mocT Fnc5E11Rkyu+RYviBdECKHe0mBaQb/KjpIFLPtdzxnnrhEfLecH0VsT0ULS8r7vEEe qma0lb6qC+Ol7oWSq3rDLiXIXVywOCXXDE9lU6/I= Received: from ussmges1new.samsung.com (u109.gpu85.samsung.co.kr [203.254.195.109]) by uscas1p2.samsung.com (KnoxPortal) with ESMTP id 20221102165018uscas1p2093574618240f80a48aff223feef6b1e~j0pOvVu9J1225512255uscas1p2I; Wed, 2 Nov 2022 16:50:18 +0000 (GMT) Received: from uscas1p1.samsung.com ( [182.198.245.206]) by ussmges1new.samsung.com (USCPEMTA) with SMTP id 22.52.65516.ACF92636; Wed, 2 Nov 2022 12:50:18 -0400 (EDT) Received: from ussmgxs1new.samsung.com (u89.gpu85.samsung.co.kr [203.254.195.89]) by uscas1p1.samsung.com (KnoxPortal) with ESMTP id 20221102165018uscas1p1c30d87c92c1cdf4e4eb05cce141052f5~j0pOZKkwf0501005010uscas1p1s; Wed, 2 Nov 2022 16:50:18 +0000 (GMT) X-AuditID: cbfec36d-59dff7000000ffec-2d-63629fcab8e8 Received: from SSI-EX1.ssi.samsung.com ( [105.128.2.145]) by ussmgxs1new.samsung.com (USCPEXMTA) with SMTP id 84.97.19363.ACF92636; Wed, 2 Nov 2022 12:50:18 -0400 (EDT) Received: from SSI-EX2.ssi.samsung.com (105.128.2.227) by SSI-EX1.ssi.samsung.com (105.128.2.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.2375.24; Wed, 2 Nov 2022 09:50:17 -0700 Received: from SSI-EX2.ssi.samsung.com ([105.128.2.227]) by SSI-EX2.ssi.samsung.com ([105.128.2.227]) with mapi id 15.01.2375.024; Wed, 2 Nov 2022 09:50:17 -0700 From: Fan Ni To: "dan.j.williams@intel.com" , "vishal.l.verma@intel.com" CC: "linux-cxl@vger.kernel.org" , Adam Manzanares , "dave@stgolabs.net" , Fan Ni Subject: [PATCH 1/2] libcxl: Add cxl_memdev_get_firmware_version Thread-Topic: [PATCH 1/2] libcxl: Add cxl_memdev_get_firmware_version Thread-Index: AQHY7tsve3L3Pj+XA0+4uDe8i18cvw== Date: Wed, 2 Nov 2022 16:50:17 +0000 Message-ID: <20221102165004.171776-2-fan.ni@samsung.com> In-Reply-To: <20221102165004.171776-1-fan.ni@samsung.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [105.128.2.176] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Brightmail-Tracker: H4sIAAAAAAAAA02SfUhTYRTGe++9266r2W2aHjWqrSBQXBlFM8OMpo0Kqj8Ey8DWdlNpm7Wr ZoW1TDNNRamlzUmr1D7MKCUtk2RGSn7markEy7IPLAU/moskze0a+N/vnPOc93k4vCQuzOL4 k4naZFqnVajFXD5R1+LoCm67fli5rnMyWFpseI2kVe/vI2m3sY2Q9hW2YBGE/FbjECY3lJ6V T9Qs34sf4G9R0erEVFq3NvwQP+FvXRHv2MjitOxClR4NCnIRSQK1ATKHRLmITwqpuwgGz1Vi bJGFwUhpE8pFHm6Rqewylx1UI3jzsAqxxRgCfVk2hy0qEJQPXuW5VriUCJ7n1nNd7E3poLe2 DHeJcOoRgo/v3rrf9aIiwPr9B86KIiGjyo6xLAGH+ae7T1Cr4anVgFxhBZQUMsz7XW0PKhTy e5oIFyPKB5xt992rOOULfV+uY2zsJXCztBFn2QemGz5xWRbBR+cQj9VLwG64wmU5CCpvsLaC 2d1X174QrN4PLHfsc3yDBL1TyLIMMgsGeCwHgK3XMOd1Gjryutx3BCoTgfVc7dwgDKZz3s0Z e8LfP59RIVplnJfbOC+TcV4m47xMZkTcQ74pDKOJp5kQLX1Cwig0TIo2XqJM0tSg2Z/SPv1C 8wQ96RuTNCOMRM0ISFzsLTjbGasUClSKk6doXVKcLkVNM80ogCTEvoIDJYFKIRWvSKaP0vQx Wvd/ipEe/nosrby9dSRBUlCfpwzf8KBc1ySvfjk64NzRoF3vs2ej5cqzTw9s6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od6liS999UTLCtkreYXOEsf5eebN/XQl2 XG8LQn/O1PNPfPBD7tbmhPJFGj/kAr67aS3ZI7nfOs/uy99cwVr/04XKwsJhy/2WeR8zux7S N89ERqikfd6p8/rPJiUonL38J43rlWPY9Ynylx5NiM4OttH3+HZ9ZUOxZ8mJNxuLkjjrLZtL 9a+pLJZm+b+9LiP625LsV8a9d68EsO5SYinOSDTUYi4qTgQAfdQabSoDAAA= X-CMS-MailID: 20221102165018uscas1p1c30d87c92c1cdf4e4eb05cce141052f5 CMS-TYPE: 301P X-CMS-RootMailID: 20221102165018uscas1p1c30d87c92c1cdf4e4eb05cce141052f5 References: <20221102165004.171776-1-fan.ni@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org cxl_memdev_get_firmware_verison is a typo and part of the ABI. Avoid breakage by introducing a stub with the correct name and update the documentation accordingly. Reviewed-by: Davidlohr Bueso Signed-off-by: Fan Ni --- Documentation/cxl/lib/libcxl.txt | 2 +- cxl/libcxl.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/cxl/lib/libcxl.txt b/Documentation/cxl/lib/libcxl.txt index fd2962a..edc852d 100644 --- a/Documentation/cxl/lib/libcxl.txt +++ b/Documentation/cxl/lib/libcxl.txt @@ -68,7 +68,7 @@ int cxl_memdev_get_major(struct cxl_memdev *memdev); int cxl_memdev_get_minor(struct cxl_memdev *memdev); unsigned long long cxl_memdev_get_pmem_size(struct cxl_memdev *memdev); unsigned long long cxl_memdev_get_ram_size(struct cxl_memdev *memdev); -const char *cxl_memdev_get_firmware_verison(struct cxl_memdev *memdev); +const char *cxl_memdev_get_firmware_version(struct cxl_memdev *memdev); size_t cxl_memdev_get_label_size(struct cxl_memdev *memdev); int cxl_memdev_nvdimm_bridge_active(struct cxl_memdev *memdev); int cxl_memdev_get_numa_node(struct cxl_memdev *memdev); diff --git a/cxl/libcxl.h b/cxl/libcxl.h index 9fe4e99..d097026 100644 --- a/cxl/libcxl.h +++ b/cxl/libcxl.h @@ -48,6 +48,14 @@ struct cxl_ctx *cxl_memdev_get_ctx(struct cxl_memdev *memdev); unsigned long long cxl_memdev_get_pmem_size(struct cxl_memdev *memdev); unsigned long long cxl_memdev_get_ram_size(struct cxl_memdev *memdev); const char *cxl_memdev_get_firmware_verison(struct cxl_memdev *memdev); + +/* ABI spelling mistakes are forever */ +static inline const char *cxl_memdev_get_firmware_version( + struct cxl_memdev *memdev) +{ + return cxl_memdev_get_firmware_verison(memdev); +} + size_t cxl_memdev_get_label_size(struct cxl_memdev *memdev); int cxl_memdev_disable_invalidate(struct cxl_memdev *memdev); int cxl_memdev_enable(struct cxl_memdev *memdev); From patchwork Wed Nov 2 16:50:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fan Ni X-Patchwork-Id: 13028617 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 17686C43219 for ; Wed, 2 Nov 2022 16:50:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230509AbiKBQus (ORCPT ); Wed, 2 Nov 2022 12:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232038AbiKBQu3 (ORCPT ); Wed, 2 Nov 2022 12:50:29 -0400 Received: from mailout1.w2.samsung.com (mailout1.w2.samsung.com [211.189.100.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 401796395 for ; Wed, 2 Nov 2022 09:50:20 -0700 (PDT) Received: from uscas1p1.samsung.com (unknown [182.198.245.206]) by mailout1.w2.samsung.com (KnoxPortal) with ESMTP id 20221102165019usoutp012859815ebd7b5a95569ae66d528ae477~j0pO9vuxJ0037600376usoutp01H; Wed, 2 Nov 2022 16:50:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w2.samsung.com 20221102165019usoutp012859815ebd7b5a95569ae66d528ae477~j0pO9vuxJ0037600376usoutp01H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667407819; bh=9MDQVYw3nc+LRbTfBlifywbwPY7H0kn9zGVnSieAN8o=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=Q+SytlJD6znlZLnl/THRWcupSlc/b/4uVuPLeDACmwBl5cXFpWgDKV9cf+B23Rzt/ VeGgw3Q+gGvW+n8tHkJKluW/91kvGHRk1sgECo5tRJAcklCe8qcK4njHob76MXHx89 2wz0oETZVxvvhztp9fgUVNX6Go3wD68s8p6HuwAk= Received: from ussmges3new.samsung.com (u112.gpu85.samsung.co.kr [203.254.195.112]) by uscas1p2.samsung.com (KnoxPortal) with ESMTP id 20221102165018uscas1p25efe75e66c628ca9b8d815db54f67cd1~j0pO0isER0303403034uscas1p2w; Wed, 2 Nov 2022 16:50:18 +0000 (GMT) Received: from uscas1p2.samsung.com ( [182.198.245.207]) by ussmges3new.samsung.com (USCPEMTA) with SMTP id C0.38.35398.ACF92636; Wed, 2 Nov 2022 12:50:18 -0400 (EDT) Received: from ussmgxs1new.samsung.com (u89.gpu85.samsung.co.kr [203.254.195.89]) by uscas1p1.samsung.com (KnoxPortal) with ESMTP id 20221102165018uscas1p1c27244ee88cc21dbabb7cc2656187e40~j0pOnPA5h0501505015uscas1p1s; Wed, 2 Nov 2022 16:50:18 +0000 (GMT) X-AuditID: cbfec370-817ff70000028a46-f3-63629fca2d47 Received: from SSI-EX1.ssi.samsung.com ( [105.128.2.145]) by ussmgxs1new.samsung.com (USCPEXMTA) with SMTP id D4.97.19363.ACF92636; Wed, 2 Nov 2022 12:50:18 -0400 (EDT) Received: from SSI-EX2.ssi.samsung.com (105.128.2.227) by SSI-EX1.ssi.samsung.com (105.128.2.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.2375.24; Wed, 2 Nov 2022 09:50:17 -0700 Received: from SSI-EX2.ssi.samsung.com ([105.128.2.227]) by SSI-EX2.ssi.samsung.com ([105.128.2.227]) with mapi id 15.01.2375.024; Wed, 2 Nov 2022 09:50:17 -0700 From: Fan Ni To: "dan.j.williams@intel.com" , "vishal.l.verma@intel.com" CC: "linux-cxl@vger.kernel.org" , Adam Manzanares , "dave@stgolabs.net" , Fan Ni Subject: [PATCH 2/2] libcxl: Fix typos Thread-Topic: [PATCH 2/2] libcxl: Fix typos Thread-Index: AQHY7tsvBzqgBNLMekOH8hjsI1vNsg== Date: Wed, 2 Nov 2022 16:50:17 +0000 Message-ID: <20221102165004.171776-3-fan.ni@samsung.com> In-Reply-To: <20221102165004.171776-1-fan.ni@samsung.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [105.128.2.176] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgleLIzCtJLcpLzFFi42LZduzred1T85OSDaZeMrSYPvUCo8Xqm2sY Lc7POsVicWvCMSYHFo/Fe14yeUydXe/xeZNcAHMUl01Kak5mWWqRvl0CV8blI/OYCibyVrxb 7tjA+J+ri5GTQ0LARGLG+1fMXYxcHEICKxkl7p34wg7htDJJvNnUww5Ttb77JFTVWkaJ8+82 QDkfGSUa5razQjhLGSWWPJ4G1sImoCixr2s7G4gtIlAkcX3zXLAOZoGNjBL3r11hBEkIC6hJ LFi1mxGiSFviwr2vzBC2nsTjG9PAbBYBFYmdl6aC1fAKWEhsW9gAFucUsJTovbifBcRmFBCT +H5qDROIzSwgLnHryXwmiLsFJRbN3sMMYYtJ/Nv1kA3CVpS4//0lO0S9nsSNqVPYIGxtiWUL XzND7BKUODnzCQtEvaTEwRU3WEAekBCYyyF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TPQtK+gJFlFaN4aXFxbnpFsWFearlecWJucWleul5yfu4mRmDk nf53OHIH49FbH/UOMTJxMB5ilOBgVhLhrT8bnSzEm5JYWZValB9fVJqTWnyIUZqDRUmcV8h1 YryQQHpiSWp2ampBahFMlomDU6qBaauPZeB+tthExx0nHeb7G9TdaN5jM2Xz5H13bGaac3Xt 0FF5InFjvkS6/IyJGvdY2Gu+7XDW8pkxI1ut7pyAq8oxdTl2bt6z3s93utRx/xQ4uFhMPfVC 1YH4RQeMl2z/FH/FxVrRmv1Y6bqbi3vkdb387yeezdgrcPnvOeeTwmuDVeblLeo747ZoDc/X rNUz9CdEyK1vcDDdKM6cIymSmNygXXT//ITe+Bi7I+prfXXiGlbr5Jw4eOO/F+PuGUlPS+Ry X7zLWL/qyq2U8D/aFxK+nFJq5lrxRuXn1CdPlI7ISe0S28h6iEX0gOfBJyyM6lLygge+LV40 bcPxwLV/OQUiDRzya6Oqo55MvMawRomlOCPRUIu5qDgRAEc4OcwrAwAA X-CMS-MailID: 20221102165018uscas1p1c27244ee88cc21dbabb7cc2656187e40 CMS-TYPE: 301P X-CMS-RootMailID: 20221102165018uscas1p1c27244ee88cc21dbabb7cc2656187e40 References: <20221102165004.171776-1-fan.ni@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org Fix typos caught by Davidhohr Bueso in Documentation/cxl/lib/libcxl.txt. Reviewed-by: Davidlohr Bueso Signed-off-by: Fan Ni --- Documentation/cxl/lib/libcxl.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/cxl/lib/libcxl.txt b/Documentation/cxl/lib/libcxl.txt index edc852d..7404efa 100644 --- a/Documentation/cxl/lib/libcxl.txt +++ b/Documentation/cxl/lib/libcxl.txt @@ -110,7 +110,7 @@ may appear in the topology that were not previously enumerable. NOTE: cxl_memdev_disable_invalidate() will force disable the memdev regardless of whether the memory provided by the device is in active use -by the operating system. Callers take responisbility for assuring that +by the operating system. Callers take responsibility for assuring that it is safe to disable the memory device. Otherwise, this call can be as destructive as ripping a DIMM out of a running system. Like all other libcxl calls that mutate the system state or divulge security sensitive @@ -327,7 +327,7 @@ const char *cxl_dport_get_physical_node(struct cxl_dport *dport); int cxl_dport_get_id(struct cxl_dport *dport); bool cxl_dport_maps_memdev(struct cxl_dport *dport, struct cxl_memdev *memdev); ---- -The id of a dport is the hardware idenfifier used by an upstream port to +The id of a dport is the hardware identifier used by an upstream port to reference a downstream port. The physical node of a dport is only available for platform firmware defined downstream ports and alias the companion object, like a PCI host bridge, in the PCI device hierarchy.