Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3760325rwb; Mon, 5 Sep 2022 18:32:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ggLwyELZn88PlDenTe0ArXs0A2aHEDfXx8CIrQ7Nwk3hUothYMLWoAH5shRk7yFTi95M7 X-Received: by 2002:a05:6a00:1ac6:b0:53a:d7be:9aaa with SMTP id f6-20020a056a001ac600b0053ad7be9aaamr27938071pfv.50.1662427967282; Mon, 05 Sep 2022 18:32:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662427967; cv=pass; d=google.com; s=arc-20160816; b=cXHTRL7+MMgMaKLFhuU+C5LiGi5HpFSL9nDutMt7susbOL7gaoiHYN4XcY6rTIiTFl v4RQz3ioRPCleHpd9bHT9IHNsvxGPLGcVmXF+/CK0cdcWhumlnqfe+xoygPo4NDvKXL3 5ytO/FQU6Q+7YWXG6h4NgBToxoxLwzqFYkdMLJlxMMF9t++pfGNUbjYl/PhZUwiqspog 9NCxv6haNFBVoQ7m+zDcCIj+jNiS3xWl5Sakr1Fhkp7Fxf/QjlrRagnm4PbDkLMgW/63 FAm4Rakoz+QRqBEz3M0oX3Fj3N5PkstircoIsRICi6yivv24izSNIaXcAZPhWHemb++D M5WQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=AbBTW9MS9VdIwR+ThmDyqpbVrU068CfturVqUnEnUF4=; b=b2VjbJkagwiFV1V5uRQ9BEpz2cMeDyI6WayeXGyfaRlSic3BklN7nCnxZj36uPVbTJ WgZ4c2InfkQ/bIkMiqXYXGy03CzGiWm9WqAF5jTp/yQg816LrxLAoxylFo1u38HUZZ1A Vw/ZYdBzXzTe3hpusST0F/AfivBQ+ymO7BfPpcScXGLdym5dybtOTm8CQ7Q8HOv8Y6gd 4E7hyPXmsQz8UQgJOeub4s1Zj/1XaJDMkt6BtLpsUUSU30w1c5RI8QuuvSIrZpl4Dq7K aRYZMcQaVUWFNejXsvAQX7nSKE4OqK9VMDcUkWt7+I6C7AL0KqyHGmr710xER3FO5ERB 6WCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=lDYPaFjU; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v185-20020a6389c2000000b004349014762fsi1774136pgd.681.2022.09.05.18.32.35; Mon, 05 Sep 2022 18:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=lDYPaFjU; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232437AbiIFBEH (ORCPT + 99 others); Mon, 5 Sep 2022 21:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbiIFBEE (ORCPT ); Mon, 5 Sep 2022 21:04:04 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2046.outbound.protection.outlook.com [40.107.244.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7977549B4F; Mon, 5 Sep 2022 18:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TI8TUschPIFEMe9fUKY9kOLyo9auw7hNlMxPEKHfFN9SExzf77frwmwmcKyZILdBMw4ih+SH42jF69N73lpDXrdnSP/fkHNm9AyJux2JLubULatnXCLc+54D41w5TUXEz0M5fnMHKavT8OYBYDqiDLmhNmEIcMXa1Kefyv4jSRI064A6XFo68kKpEhtVVUwuyV+hnN+FjNi6MB1Lk3LL2zzUlONmTWZ/TJlRZJxyvQwepeLxRHwt7JH4ubLKaT+sKNoR3iZFE8PRfUPvv44kXxz56IyAx8rXhhPXnYjrLsKBvGfNrXDFcBQkyImetH5Q7E1ZSfbLSdnYNkohLYE/7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=AbBTW9MS9VdIwR+ThmDyqpbVrU068CfturVqUnEnUF4=; b=Cux43ljrXniBaQzsc0SsotWOJaNFhOayMA+0HdW63pvt3xdT+W1S8dluJuxA5Wk/Zr+/sMvmVkyyLcpD/G1InS8XUKc8adpxzvmo8X2AH5jw24Ng2+R4spzdEL9NwLeVD52Hk693/lQBxjFqxHRkch7tVnk1gJwC5P1wOGAwkPM2wx22tvkuJ2dBjReb5L0gBcE5pE4zQWO/fAsYcQiUNlyOeK7nULPXrQJLxcIytey1Tt+7MJwOpm2L8AANMQkFTwTKePyiyNotPRMYeDPaSkv+9MgSZOFAKQw75wWHWJ4SB9K4SD0ITTh9IvROF1Phqv1stbl3GAtvkp/PsrFy5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AbBTW9MS9VdIwR+ThmDyqpbVrU068CfturVqUnEnUF4=; b=lDYPaFjUJ94CSbmxsazei/7KvIgvzcVN8PbHrbW7mCvo5n5f61tSPMxDbBmr2YvCWRHSbsY2BxE6wNCuH8KI6X1edgOtjCivXADrhIQZRc6SKYYBqtDDHpMOEzgIJcuoWkn3lVm5j27AF7JkctIED/aOg7/LV3SJ4sqG5gZ+E1JBeiPdRUpmosGGy1q6kXzO4MGx2xXAME2X7EAGRVeZGGvjL4j4XlGDjiB6u4i0To4nBcduhbnCPNA4Ra0hlF4ZpaUVZm1cY+e0fXJUmKL/ILXdRO9Ed5lGVwFi/meIXpnd9q2ySuBFM/c964jUrWANlKncl/2oRXb/tD5SjCNLJg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by MW4PR12MB6732.namprd12.prod.outlook.com (2603:10b6:303:1ea::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.14; Tue, 6 Sep 2022 01:04:02 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::508d:221c:9c9e:e1a5]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::508d:221c:9c9e:e1a5%9]) with mapi id 15.20.5588.018; Tue, 6 Sep 2022 01:04:02 +0000 Message-ID: <082bfb32-be2a-0fc4-6818-2730e904c000@nvidia.com> Date: Mon, 5 Sep 2022 18:03:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v9 8/8] ABI: sysfs-bus-pci: add documentation for p2pmem allocate Content-Language: en-US To: Logan Gunthorpe , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org Cc: Christoph Hellwig , Greg Kroah-Hartman , Dan Williams , Jason Gunthorpe , =?UTF-8?Q?Christian_K=c3=b6nig?= , Don Dutile , Matthew Wilcox , Daniel Vetter , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni , Ralph Campbell , Stephen Bates References: <20220825152425.6296-1-logang@deltatee.com> <20220825152425.6296-9-logang@deltatee.com> From: John Hubbard In-Reply-To: <20220825152425.6296-9-logang@deltatee.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR03CA0023.namprd03.prod.outlook.com (2603:10b6:a03:33a::28) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 967079d0-7870-4ad5-e8dc-08da8fa3afd5 X-MS-TrafficTypeDiagnostic: MW4PR12MB6732:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SY5SZlTl1vPPCQ3SO4Nj8Gx4zLhqiQ9BBc35lhVZOJuG4/cWq2qS0+dDMU3cz+4n0Dw75jB1hEyuH49Q/dNpQBQGTOXcRSULM0vqtDJDR/2NSb0zgCJNqcniWSxnLVDm55T0wOJwuFiWtD6rglnfSVd3DrlL0tNcJ1p8envfQkRrRVlzX7tDLATpdgXnE3KzbYMS8Ec0i6eceqqKT+hkl63jD+97n8LY9rTv8L462JwSzz6p8p7HOUjh1bBM2bEZXTXN4yPB4B9u/l0Hhe0jfVlj5whgbm0PVKIjvh0oNksTjNyn6hYq1kVYwLYUMxZ0a5Q497/+RrPX8yh88CCFnH/R0Ujk/EfR+/bYIWacjUOJzr7aQKBgoA0qdk3BJxAkXy8Bf0mrzj/qr793pj3yg/AE4Vt+vC8e0bt2yhSPMGalsYlGQrhZEipTyGyM+I968rPnCzfgX6qxG7MUK4E8vB31Tke1EM2Nf8MjuGIiDtIxwVKUn6axjEmIH7W81gkXxkAfKbSmj+gMOeB93xrmgW2rNhrTukx1MAP8Trm9jiMWyJf4rQBIxctSM7/uw15aOkFfIytTGjLd3hvIPxfgoH5a6A0G8AybLyxaMzILI03pFULjTD0KfmWdYRU99WHxKRE5fDA4KhgMbN4EWH81/S1AVx9RZlSwD+PpKMPWDZj8uByUckdgEmQTn5qHV72yi+5kBcsO0GAR6Rp5hHK6V6qQbCWHhiUeDnPPFBhaEEEdCyKuIp9opD8LlzobR4GIgUbSaPgTlu+CoIownEzSbxQGEmJrfXdCMjnb2Rf+YUI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(376002)(366004)(136003)(346002)(396003)(31686004)(83380400001)(66556008)(316002)(66946007)(38100700002)(66476007)(54906003)(2906002)(8676002)(4326008)(7416002)(53546011)(6506007)(31696002)(186003)(8936002)(5660300002)(478600001)(6486002)(26005)(6512007)(6666004)(36756003)(86362001)(2616005)(41300700001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TDl0NldZUDJlNzFVYkdPZ0x1S0J6ODREYXY0eXZRaXNMUkE3bzdDYlQzNXRl?= =?utf-8?B?MWhFeEYybHRoNEFNemRYLzZ3R2VyemxqaURt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Ymc5YWVYN1U2T1ZHNjN5NEExcE9KeGxacEMxR0FrTTN3TzhIV05XQnBGZmw5?= =?utf-8?B?Q2UrclpwY2NydjE5bDM0M3V5T2VKNWM4aHFPZkRUM1VCdDJtZEp6UmFzWHVP?= =?utf-8?B?bXBuVjRCaVpBWWN1QjZ3QS9IUDRsbElFSnkyUFNWWWhINkpWam9DYWpITnRH?= =?utf-8?B?S2VuS2EwSmR2dytVbTdrSGlmT2l0VzJXMDB3ZnpqMzNlaGZ6VlhYV0lRVmJt?= =?utf-8?B?ekNSYldnbzIzdksxbThtTmJqZjhkaUxlMEl6bndPUUZzVTdNRnR3dXdvYlNP?= =?utf-8?B?b3c9PQ==?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 967079d0-7870-4ad5-e8dc-08da8fa3afd5 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2022 01:04:02.1475 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1WokUuAzWVmkZrri9r6cNnFyD+S306FaIIT29ySSEbX1LSUQv9GNWj9byMRDfQVnFHbEazi73vQeodNvbm+yYQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6732 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/25/22 08:24, Logan Gunthorpe wrote: > Add documentation for the p2pmem/allocate binary file which allows > for allocating p2pmem buffers in userspace for passing to drivers > that support them. (Currently only O_DIRECT to NVMe devices.) > > Signed-off-by: Logan Gunthorpe > --- > Documentation/ABI/testing/sysfs-bus-pci | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci > index 6fc2c2efe8ab..dca5e032b4fa 100644 > --- a/Documentation/ABI/testing/sysfs-bus-pci > +++ b/Documentation/ABI/testing/sysfs-bus-pci > @@ -171,7 +171,7 @@ Description: > binary file containing the Vital Product Data for the > device. It should follow the VPD format defined in > PCI Specification 2.1 or 2.2, but users should consider > - that some devices may have incorrectly formatted data. > + that some devices may have incorrectly formatted data. > If the underlying VPD has a writable section then the > corresponding section of this file will be writable. > > @@ -407,6 +407,16 @@ Description: > file contains a '1' if the memory has been published for > use outside the driver that owns the device. > > +What: /sys/bus/pci/devices/.../p2pmem/allocate > +Date: August 2022 > +Contact: Logan Gunthorpe > +Description: > + Thes attribute allows mapping p2pmem into userspace. For s/Thes/This/ Actually, the sentence goes on to say "file", which refers to the same thing as "attribute". So maybe just saying "This attribute" would be slightly clearer? So: This file allows mapping p2pmem into userspace. For With the typo fix and optionally the "attribute" change (up to you), please feel free to add: Reviewed-by: John Hubbard thanks, -- John Hubbard NVIDIA > + each mmap() call on this file, the kernel will allocate > + a chunk of Peer-to-Peer memory for use in Peer-to-Peer > + transactions. This memory can be used in O_DIRECT calls > + to NVMe backed files for Peer-to-Peer copies. > + > What: /sys/bus/pci/devices/.../link/clkpm > /sys/bus/pci/devices/.../link/l0s_aspm > /sys/bus/pci/devices/.../link/l1_aspm