Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4826814rwb; Tue, 17 Jan 2023 06:06:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXsQvmQ3SPjFdXYYQTMn805rm4iSzXTBHK0jROXEZv4F+oekfLZ/eS4oK9pAK5Syl5xrFAUm X-Received: by 2002:a05:6a20:d90e:b0:b8:ae03:4715 with SMTP id jd14-20020a056a20d90e00b000b8ae034715mr5058298pzb.57.1673964364349; Tue, 17 Jan 2023 06:06:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673964364; cv=pass; d=google.com; s=arc-20160816; b=1C2zYe6f6kIrYe/f+ncJhRiJ+2Kek1bXrARgNVATSvs157gg1knucgo41BtyuNwnSb 4YrSjz7p+BM+wmsI5T5y0h3cMiVOPO3rDwNItMQNgx6Da3ubt4PG4gLWEvhItSOzkqhZ GweFCGhVtxUs8cAxiwVH+cZP7+PjTxCIBJLnsUYpNnitJivVQBsRG4h8FW96U1v+P1ML Sqqy7qkCMeRv/jGrgT5a6Gje2vCq/qFv0GJy3wC9wMcK5dcuZZuSyvuuHXbVR4u+l+vt RsiwDZZBOr6MjAin0blC/4AilpC76J+7TPwkqQVuIGPoSop9NclmUhrjPmHjDTYeeQ/O uy9A== 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=qQmchS+i21MjtfvKSkvJ9eVBqvTCctjr7pttEfd51GI=; b=bFnhVgAOmZQf0CzHVsN9tRZnQZk/A5rtcbdCD8DpONZIH3khcXhlR/aEgKqeQymJQ+ 68vXYtYZFGid0nyCBmmcAw/BtJ5UGOhrIAyG1Z9VF9TACdMg+OG4MIAe9nUCHYxTdRyf h6OuFVDjZnNR6VBrSVyKAcpm1mEdkWmtVHBBf1yJKJj8vf/yizLXAsnXHdRPtJZlmmcR mTOYe9UNy/mNduML5lcLDUDQGdDw0YzaxSGR3ZV42T7WElgxTYJ/NEsTSwrmZwjjCG7g 6jiRYvHy7NQ+Abdq+yMU7RfM3RJ0Gq47oRlnX0w1A6NOvvTklGRKEgMnXym/h7uqNEjv HCyw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=PNEqn8o2; 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 q11-20020a65494b000000b004705b0ca9f1si32594938pgs.545.2023.01.17.06.05.58; Tue, 17 Jan 2023 06:06:04 -0800 (PST) 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=PNEqn8o2; 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 S230349AbjAQNuG (ORCPT + 48 others); Tue, 17 Jan 2023 08:50:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbjAQNtt (ORCPT ); Tue, 17 Jan 2023 08:49:49 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2071.outbound.protection.outlook.com [40.107.92.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8C5B3BDAD; Tue, 17 Jan 2023 05:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a8fJB4CBARFXOSWe1+koMrWCvnVz8ZM6lxdtAq8BlxnOsOtE8zIvvMUXRJWfquwNnyvG4zqTU/9D91/kvBrZr1oXp6RJ9V22bExgWD4cQmfG78wjBNV3wVI3bySMXwQuLKUtdXuyEmn9YoKzj0Dd7Hb9UBCAG4oaDspOsbeolHRvaFfefJ2n3GL0mKM2qdfRqOx39aIN0hly5Ch/wHS6OeXZyH0Ayu+SY3rmpIytkTBMGyEkYruQCzdqDwqDC9GEB4hMIFS1SMI6ewpGVynBao3rd7ahp6B6sOMl5SDqmteusAyfPH4Pylj1sD00joTV1RGfCw83R3oU1tJEpAb4tg== 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=qQmchS+i21MjtfvKSkvJ9eVBqvTCctjr7pttEfd51GI=; b=dSrUKNvskYfyH/XebEC9x+3auE24vzUh0HGlYbhGhfZ6t7750EbTiVFjknbiaFgyl3AOqH0oYiSswjTczURiOGjl7sJu5deOMsUsw0uaR050qX7WMTZRsM2VL07IeXlpdGHdy52NSr6s8WjYdhVlGmn0QwVRdIMz51UyUIDAUAqsoRlPNZiUAidXY4R/0Q4CmeVtImrWUD8jnM9Tb2m6t6pIEYCFIJEBAJxJ7Fhh2/2RdpSpF2Dt3VxKeGBHsfB3RmB2xe3GKnJycarMTwJXmmBWJuOBJ7RoFOngKOC+Q9MERvAT+19c8qXA/9a6ShxluypTJa4hS8OQtjYczTgKDQ== 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=qQmchS+i21MjtfvKSkvJ9eVBqvTCctjr7pttEfd51GI=; b=PNEqn8o2Nwxgno7ZaIIdb9x3iyCtgKOM7HGTsJ+pcsRE0Lml5I6lW3Jqp5avtNTe/s6fx+zCvyTyGnE5eEFHQlnaFyyIbUoD499QU3z+HLpnF/KEYSp5NAY6DRdwbPFds6l4NpQc4f20yYXDRB1gYJFRIl3vHInCRegZ/rFIJS89GW3AdS9mkn4AlIvAaptYXhuNyZxjoyyBPmEWf33G0Pp4KnkgAMpADM44m0HtsRnIbxpVmlVMkOWQbrkTt/o32efr7LpJkjBo6HTjG6qrdkPgHA+DXuFBjInRAGc+wDCKkcAG1QbaE51H/G9fdoZtMXEKbfq5a6nUMp+ABpJOPA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) by BY5PR12MB4034.namprd12.prod.outlook.com (2603:10b6:a03:205::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Tue, 17 Jan 2023 13:49:30 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::f8b0:df13:5f8d:12a]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::f8b0:df13:5f8d:12a%9]) with mapi id 15.20.6002.013; Tue, 17 Jan 2023 13:49:30 +0000 Date: Tue, 17 Jan 2023 09:49:28 -0400 From: Jason Gunthorpe To: Leon Romanovsky Cc: Israel Rukshin , Bryan Tan , Christoph Hellwig , Eric Dumazet , Jakub Kicinski , Jens Axboe , Keith Busch , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Masami Hiramatsu , Max Gurtovoy , netdev@vger.kernel.org, Paolo Abeni , Saeed Mahameed , Sagi Grimberg , Selvin Xavier , Steven Rostedt , Vishnu Dasa , Yishai Hadas Subject: Re: [PATCH rdma-next 03/13] RDMA: Split kernel-only create QP flags from uverbs create QP flags Message-ID: References: <6e46859a58645d9f16a63ff76592487aabc9971d.1673873422.git.leon@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: MN2PR17CA0007.namprd17.prod.outlook.com (2603:10b6:208:15e::20) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|BY5PR12MB4034:EE_ X-MS-Office365-Filtering-Correlation-Id: e0f35378-1365-43a5-b404-08daf891a7de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MhQfuYedYq8u3JAVOe/xcbpJH1paq+xa+TMKE8mKMSfBs+CcjlsYmk6pcg1I2P+zfDHpObwsVcelzhEbzNBZe02xkV5UN6r8uVz1K97Hc2yvisE05TyNZ4SPQy8hnpHi1ciI8wYynZDNDLHNl5EySwhEsQ+bLqKLGe1KNlnl8ceXSAmCuT456kpGuEHvP7zs0M6E2VeGLmfxDDexvRB2rCdPc3nBWF+uajZv7LLmee+rJ1J3GiGyebAa28NspKbQ5E+feq5o/QLueAwwNQPgXwXEWHdSibe2pmVADX1+GEUlQskPVlF8nTloheIwXNtD8Sp8xB/pTJgDJTivqGpqspni5TR0iuU2mmg3TIFbRc+2Hl7tqn6ozK6mqWTP50T1h56ZKZF9d2Q0eNdA+sOgv+2riDpfXF/sd2VJ8NcOOyZ5Hk6Hnu1BNz4UowSzLh6YbxrAl1A1aXCa+7hF2+3uhwBcITaO0dOVUzGfaqGt+nSNg2rCuwynr0Y5BfxK2i8UIM2CU8IjmcoCwPoCWlbC43Lfhm2ZvFTOKA6e5aiad4oB/iQb5rHZF/YoewtjRbeyQvx+J6hGndvLhOGCmOdcEI6jYuR5JRcCEy/0CReR5rGvDR6BPfaGv1zRjR/hQ6lP8Y7bKXI4RgDa4mf2uvteFw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(346002)(136003)(366004)(39860400002)(396003)(451199015)(38100700002)(86362001)(7416002)(8936002)(4744005)(4326008)(5660300002)(2906002)(8676002)(6916009)(66946007)(66476007)(66556008)(41300700001)(2616005)(186003)(6506007)(107886003)(26005)(6512007)(316002)(54906003)(478600001)(6486002)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?dUK4Bu/PY52F9WB5T0mxDbblSL3zcucKqQD/o1XR4hdvBFkTdi5vhTBObq/Z?= =?us-ascii?Q?Lx2oP0fwNvOr+55yyOz0oirJbhS/ehF1cDUDKuduEzmCfUw4gT2dKoQ5EqwU?= =?us-ascii?Q?vQPfw9oW/Ii5QDlRdIFqigV+vDMpN4YN+F3GydOhyquU4tCKaouynBQ2b+o4?= =?us-ascii?Q?VPXDrPECzA/Mo1Ucwx5/jU7uyGqyN+CeTiP4Hjv3l4k6RwvaZZ2W+rGaSmnr?= =?us-ascii?Q?KHuLs6lhbElTRSdGTPp+xwqym6ntZHzwInqC37f4nYlNhg6rj3ZOtNlMm1Da?= =?us-ascii?Q?t52MoXjJIUQkqgdtC+IKTHeDlN5GntfK7hogN36PEpqS8T3Lm5N9KfBUmvCR?= =?us-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VNgspUH6uy5?= =?us-ascii?Q?F9dsUmDh1L9z2CeCFkwjlpSBNEZNS9RsCO9SUa83AvLSkhFb+rHz/YAOfRuN?= =?us-ascii?Q?1zgNwDlXYyPOYcZMtlbwGM+uKddWbsHtee4a5gV35m6N/Z9wPHx9HAMaVihs?= =?us-ascii?Q?PjM+Wsfk849jozGSjJhUpHle+lrGrsCSmzXNTgAI0m5oYOQqZbJocthNycvX?= =?us-ascii?Q?8Vn9vWSIw4UvazO7qd/gME6kUFXUcAVgRqm+sbmelU30DeBWsTezCM4rimyi?= =?us-ascii?Q?xjL61E8yjc9NUhNDoRibbFgaW+maHI2wn0NvRjk/HQEKteIh0KtsQEg6pz1p?= =?us-ascii?Q?Jrj+7Kg3/87i7I2sTe1X5SKeohm+uthjCdC46or0?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: e0f35378-1365-43a5-b404-08daf891a7de X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2023 13:49:29.8713 (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: UtQWck1Yc0WcJxT9OqncArAw4c4CHWTlqacY5zMEiuDV1TBknzwPffGbjPZjGUZi X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4034 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 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-kernel@vger.kernel.org On Tue, Jan 17, 2023 at 02:03:07PM +0200, Leon Romanovsky wrote: > On Mon, Jan 16, 2023 at 01:39:38PM -0400, Jason Gunthorpe wrote: > > On Mon, Jan 16, 2023 at 03:05:50PM +0200, Leon Romanovsky wrote: > > > > > diff --git a/drivers/infiniband/hw/mlx4/mlx4_ib.h b/drivers/infiniband/hw/mlx4/mlx4_ib.h > > > index 17fee1e73a45..c553bf0eb257 100644 > > > --- a/drivers/infiniband/hw/mlx4/mlx4_ib.h > > > +++ b/drivers/infiniband/hw/mlx4/mlx4_ib.h > > > @@ -184,7 +184,7 @@ enum mlx4_ib_qp_flags { > > > /* Mellanox specific flags start from IB_QP_CREATE_RESERVED_START */ > > > MLX4_IB_ROCE_V2_GSI_QP = MLX4_IB_QP_CREATE_ROCE_V2_GSI, > > > MLX4_IB_SRIOV_TUNNEL_QP = 1 << 30, > > > - MLX4_IB_SRIOV_SQP = 1 << 31, > > > + MLX4_IB_SRIOV_SQP = 1ULL << 31, > > > }; > > > > These should be moved to a uapi if we are saying they are userspace > > available > > > > But I'm not sure they are? > > I don't think so. Then they should be > 32 bits right? Jason