Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp482292pxb; Thu, 7 Apr 2022 10:23:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy31fzbVgWiIYbQNsHKmHhc3NVhOxiTxCzz09I1COUF56PAS+NN7FfEQNUITCQM1VlLYo5A X-Received: by 2002:a17:907:629c:b0:6e1:6ad:5dd8 with SMTP id nd28-20020a170907629c00b006e106ad5dd8mr13833246ejc.641.1649352233414; Thu, 07 Apr 2022 10:23:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649352233; cv=pass; d=google.com; s=arc-20160816; b=pIR9AGixTfQebfyCiiSfGikgCuPN5KaogvhwSImadljfxVB2ysBYx1jmC/jTXxFkBK RUObKfDJ3OdquZ7Ns94JQRRaGCeX/PGs8Txtqy4YHgUPCU2BpTKxc5D49MpcyPQZhDIk VJlhpfne0zpc80/dZJ0L+3bcu+jV83U5Amx/wZwAjvjcwTxEeTmarJnhMQ9ueawub3vH HE710VwpQ0V5MGSmH9r4BFNHocSUaeUg2107zHIDMHLnTpPNMuTH9Q8lwN8p3uzIiIfN 0GeEPPagmUzX4frkwEbVuFP1U+PFCj81eQ6I6cUbK6ya3dFnDHnmD51k1ev4JANR2apM HJ9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ghzqX1IhvzJx3ltuGkwaBJE6I1n282cOVF/fxr107V0=; b=i3ise6DvjIKo+ElvQtuLI+YWTlP9cckOz8dmWpSPUHTWo6NvAWzoDctJYjdvlttWde Z4bYIyvRdtnP8jp+6m57BJZUsJimxhTe8m9Jf/jlVguiiLqUy2JH7TOeBsY07byQFC3G 7vIe7Uw+iSGZIQYmgp5bWUMYHBuqfhXgrJjXbKhry+MPVLp9I3iqvLxLXLnCfzYn3wRe NdlUmqA5lNA1thc3yMQuWrqbGeNgCtPMgcLMPA0iicQA0mJgcrqbY4Vh4Nm2dD/ouyVo Lok6pvdQ1VZPfK9DBL3vjJCTq4MkiDO6jXog7ywTFl2aMpk7AwQVWQyeZl6gSWVdjesf E12A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=PubAPZGb; 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-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 c3-20020a056402158300b0041d159960d6si591673edv.218.2022.04.07.10.22.57; Thu, 07 Apr 2022 10:23:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=PubAPZGb; 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-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 S1345037AbiDGPwE (ORCPT + 99 others); Thu, 7 Apr 2022 11:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230442AbiDGPwC (ORCPT ); Thu, 7 Apr 2022 11:52:02 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2062.outbound.protection.outlook.com [40.107.223.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BFAD13F0A; Thu, 7 Apr 2022 08:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I6w1FXA4eMDORYRr735QJZr8StPkns2hP8KRu48f1MtQPYfEs8llGFOqmxxpa9bkGIyGw9Wi7IUJMt/KbTm/cTzoY+w3GJPWigpza0w3mhc8Mvud9wdvpulI58AnqVmrY7DinmGmt0UQe0LOfhU6P4nTcsYJiJuQ/yySso4nMNV99kv3kXKbRTCY9BKkRTPg3E+dGL1QnhIlRnIcJp3EAMcsdGk+UzSpeHzJqFjTBDV/QVx5mtyBZhel/0kvXryTZoVfcv0RKRymuECX3PTEWYmTo/K+ybyBG0BMZlXJojaRpZetyjhx2sTPMvGkuaD27VJX3+DgPYY6VFrsdG8OwA== 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=ghzqX1IhvzJx3ltuGkwaBJE6I1n282cOVF/fxr107V0=; b=cd0SkMfY4aTwK/5aPJiJdFS0TdOmR/pt6f5dUcotxsrm3mXJq4FJ8h9V6EtQTkP5fN9LxTFnqVCnW6w4wfjJfh0+afvratOxA+8NprF+j8ZD0ZkrWXdFZOaInbQ9qTdLYxImuiwJSiE/EK54HUKrq2LZsDT0EhPcmcjHPZHfsY3wFyfU1Uv6LeyGb2niTzafs1cZEs146jD3PTilMaUXeWS8ZXon2jJejFZ7ArotO3lFw+i7EgsrFhdm3viRr4q+lD6rWNK9Whrqo3Wq9HuG28VnwrDa3v5Z+HFJRVdaTM3vzmuay9Y+0j2KnfdV8XnbY0KVyHOHZlHuUDKFClHUBw== 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=ghzqX1IhvzJx3ltuGkwaBJE6I1n282cOVF/fxr107V0=; b=PubAPZGbyAGiszbgpUJ57j/YAsJRjAaKkXtIRxYU8fgIGej6BqMkNWO5UEKGwebzwRN8r0DqfDQhqhM/++zwTBXuVc/vuh2uy6luqogkBWYqXYNwrwnwdUEVvNofHmtgj1kmA5VTv9FwU7n9I2sqhwA2TrPVL8SaBu+pCZmFj1mh0NqtSd0ERt8BJ0+Writp70BnV3hBj8NdWz9J3DZ8Bh1+nvyb4zjDudXRu5+m8sdnkNBv/HKAqzI7Yj99SFJtMGFFCxi4TLet3G64dfzY0TxcC1UhagqN/EG/9loCJdRr6Pl0j7vZMMGe7GYC8W1/cFQhME/Qjl2OqkuX7KrjDQ== Received: from BYAPR12MB3176.namprd12.prod.outlook.com (2603:10b6:a03:134::26) by CH2PR12MB3975.namprd12.prod.outlook.com (2603:10b6:610:2f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.22; Thu, 7 Apr 2022 15:50:00 +0000 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) by BYAPR12MB3176.namprd12.prod.outlook.com (2603:10b6:a03:134::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.21; Thu, 7 Apr 2022 15:49:58 +0000 Received: from MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::cdfb:f88e:410b:9374]) by MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::cdfb:f88e:410b:9374%6]) with mapi id 15.20.5144.022; Thu, 7 Apr 2022 15:49:58 +0000 Date: Thu, 7 Apr 2022 12:49:56 -0300 From: Jason Gunthorpe To: Max Gurtovoy Cc: Ariel Elior , Anna Schumaker , Jens Axboe , Christian Benvenuti , Potnuri Bharat Teja , Bernard Metzler , Bart Van Assche , Chuck Lever , "David S. Miller" , Dennis Dalessandro , Christoph Hellwig , Keith Busch , Chaitanya Kulkarni , Jakub Kicinski , Leon Romanovsky , linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, Mike Marciniszyn , Michal Kalderon , Mustafa Ismail , Nelson Escobar , netdev@vger.kernel.org, Paolo Abeni , rds-devel@oss.oracle.com, Sagi Grimberg , samba-technical@lists.samba.org, Santosh Shilimkar , Selvin Xavier , Steve French , Shiraz Saleem , target-devel@vger.kernel.org, Trond Myklebust , Yishai Hadas , Zhu Yanjun Subject: Re: [PATCH v2] RDMA: Split kernel-only global device caps from uverbs device caps Message-ID: <20220407154956.GO2120790@nvidia.com> References: <0-v2-22c19e565eef+139a-kern_caps_jgg@nvidia.com> <810e22f7-a48c-dd65-5665-8db757f3ae29@nvidia.com> <20220406215431.GK2120790@nvidia.com> <6f577f5e-deb8-b961-ef45-1aa31f440578@nvidia.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6f577f5e-deb8-b961-ef45-1aa31f440578@nvidia.com> X-ClientProxiedBy: CH0PR03CA0357.namprd03.prod.outlook.com (2603:10b6:610:11a::6) To MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: adee98ab-983e-4ef7-52c7-08da18ae4481 X-MS-TrafficTypeDiagnostic: BYAPR12MB3176:EE_|CH2PR12MB3975:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BuDqb8FCGJLzkTnT3rwR8uIoc/ekhR1PydvVn8unn3TFHO9KVWfHy/mn7WhPK627+myRP1mnjfvS6NIo5qyiuGs0vRBVboJ6Zrc4BQInvyvMgam5Vfzt+kmdA2qnlkYp18XsQHavMcAcBotcEE9mWK2Y7UKjCZZaNMxC72HVPENFzupvI+DjBiQlgKgfbaLZUkz9hFLynYasbijFoYGHV3zg2ERCpKCQCOB3p8ZIb9+S4oAiaTPj6kHEascCQKe6pX5BxQvRvB5cDL4uZhoFYqsKm9ddOon9FWXjBRStH/mZ3E0E4myjyRR/jIQPRCNnUC+DYfc+aHKiZ1Fb7jmrJZ3b1tDgEGtHTVcVfwzXF5pwLSnknlurHdaYaiqz5a5hUMnmodV+LlGd45NxTBrwzpsl59sysWi8tOH3lFKRl1nVMkNVtYT/cJpnqn1xLgFsWT/JWY3TWAufKhbAHxYyZPPGPy+9yU3Yx7pKzamCRtsmZ/YSROaeOpWelVIxId4bSvFzy43/5v1J/Mdo68/l7r5CGYBjh34zMoYvs//CgzAuzKq4I++fODedrJycyF/OOnMdqbLJTVU5cHp0/InTMzlt7jH6jbRLHfKPq+Hh6fmOuvyJnAG3WCp9k3Wg1xXpArFFpPqcR/3FdBixGgNYiA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB3176.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(83380400001)(7416002)(316002)(6636002)(186003)(33656002)(1076003)(37006003)(7406005)(54906003)(2906002)(26005)(8936002)(5660300002)(508600001)(2616005)(36756003)(6862004)(4326008)(66946007)(8676002)(86362001)(6512007)(66556008)(66476007)(6486002)(6506007)(53546011)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-A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KzkxQDwk+w=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: adee98ab-983e-4ef7-52c7-08da18ae4481 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4192.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2022 15:49:58.0454 (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: d+IT6Y49z7fOtfHZSJ+YIqU+AsNZMeHd4ZIp9WCCB/9zyVcvpuE61riQCn7raz3u X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3975 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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-nfs@vger.kernel.org On Thu, Apr 07, 2022 at 10:09:04AM +0300, Max Gurtovoy wrote: > > On 4/7/2022 12:54 AM, Jason Gunthorpe wrote: > > On Thu, Apr 07, 2022 at 12:01:44AM +0300, Max Gurtovoy wrote: > > > > > > @@ -267,59 +258,53 @@ enum ib_device_cap_flags { > > > > * stag. > > > > */ > > > > IB_DEVICE_MEM_MGT_EXTENSIONS = IB_UVERBS_DEVICE_MEM_MGT_EXTENSIONS, > > > MEM_MGT_EXTENSIONS is used also in the kernel ULPs (storage) > > It is not about where it is used, it is about if it is part of the > > uapi or not. Cleanly separating uapi from not uapi > > from the commit message: > > " > > This cleanly splits out the uverbs flags from the kernel flags to avoid > confusion in the flags bitmap. > > " > > so it was not clear, at least to me, that some user flags are part of both > the uapi and the kapi. I tidied it a bit: Split out flags from ib_device::device_cap_flags that are only used internally to the kernel into kernel_cap_flags that is not part of the uapi. This limits the device_cap_flags to being the same bitmap that will be copied to userspace. Thanks, Jason