From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.46.3 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796385003; b=JAbSxOasZs2SrGuEq029SP51dPaqcRIdsLpmmPq/f9WT0pfYXsr/kqlax4niPcDnUJDc Ibk62gmcMpNjITovD1eObJfvadR+bO2faj118sRcNPi3lF4rmVTiNLCc8Du8AbX/V74QZ hC+Swydl6sJCX3sBxQjGoSGxsw8TzmHCdFn/zZkslJVNLSRFIdk8iN9CZTqiWUFsnJB/y puGk9OqYA+xjyolngj4PtoYGh/2IOC8SvaZKAfp/TPx1RFo1O8oY7wAdAXVaZyGwhTo8g OaiUQMvWpIyYIIKh3JiRcA+Orgxr2PhwsSMv9VhGh5Qu6/u8uxza7lcckwljPy3l9Xw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385003; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:Content-Type:X-EOPAttributedMessage: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=o6bj9t1xn7Be9sjvBaOzUhqnm53ZJeSM9v0zKCyr9wk=; b=qAMkj7suOt9NtPch3IbGoXv4nHMP5x1CN95ks1N1bK9n9dJtFCBx6q3auJKCp2bfEvP3 MWWb2wmuKahASWFINlLS+Z4YOUjgK+ifRaT/8ri0xNl/7iHvYajNZsyT+bJsqZd5UroTn 4rAcL2lZqA+Xa7NQH6wQVozONi6Xnee7F9SKff/mUVWFEOQgXDvKasmJ+sE2QEkMKg0Yd 40ioVjBj4+sULCJ1P8HqSbW88oUxSTYrg6/2tzF/JpdbrCvi5TnlvHxgQIKBfOlCyGVdq 57g9GyG6PGZwm+TRqL7IcYWgZOILXNtRwwNfQ+zqRIoAkhzE7dJiOSgq+H7228OFT5A== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=yKaya3rr; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.46.3 Received: from CO1PR03CU002.outbound.protection.outlook.com (mail-westus2azon11010003.outbound.protection.outlook.com [52.101.46.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40B7A606A32C; Fri, 4 Dec 2026 11:50:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 40B7A606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=yKaya3rr ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kysxQPbgCRB31B7NVVeat/Mg/n1v5/mRL0I6tyx44z2gfL8nb/kKZD4PMVm/wlhaecBLh5iYC9M5Jm+s9IyUS03vHbz6xid3ZfGLd9Bhkns01bx7uiLY+KXGPIgTtK12qzI88Os50mX6fmy49UVQwKirAd0EvxqAkG2r/5rDiFd5movVpP36pmdRLNMHQxfJuUSteQFC/FhT4FBfqeBZL2KgeBef57BtvbvzstakW+nUGdGL8ryLb0RBly/FozCpAOCtvEhXlqli1xdHy6DdcqlkOiE5WlJBxBr80OJT427Tau0LKhGzA0k3XvbR36cdOUeDsLPT6Rgjea8aa3yarA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=o6bj9t1xn7Be9sjvBaOzUhqnm53ZJeSM9v0zKCyr9wk=; b=g0MjSkHJHIDH8bhfw7PyIA41/IIc5RVDDqdndQJbw8SbL29geXQLEV6zadvNq3nwwG0BYvPnqrSNyJvVGpeX0TZH5S1zN9uQS58k4YNMwXoCu+quUdiykV9n2hw2V9fVzQXz9D/zstmVuJ+rGBfbWZcjWk/kKcdOqNxwrakqrOGzxNnXV5S+yHRTmdNkOGj+VShYguiMLesdASDFZ7ccotxyKc7ZYY5CAUlg7PPjq8+ccy2dkhXlH3VQT80fG3BVaOJKpuVRJIh+Is3bZVXqXxnokuONPFt5AF+wumJDJq/fmkNwviWZiLOqtswio4Hp/07yZiI8T4jgTmsKYbUegA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=ziepe.ca smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o6bj9t1xn7Be9sjvBaOzUhqnm53ZJeSM9v0zKCyr9wk=; b=yKaya3rr5uxS7Vn5fUzA6e36FJwRt06QbMwohEYstokol3u5VxioKkc5+8tZ7sAhRT33+TJ9ojYj/W2+UhKcMl5F7zIBEzziF0jFIlep98ghZxcNPBf5HbrYc3sP8bwOhPNL444ZseI80bEpHevQVETzYJffkf20vrYKazBCG5c= Received: from CY5PR15CA0074.namprd15.prod.outlook.com (2603:10b6:930:18::28) by MW4PR12MB5644.namprd12.prod.outlook.com (2603:10b6:303:189::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.12; Fri, 4 Dec 2026 11:49:59 +0000 Received: from CY5PEPF00000E86.namprd05.prod.outlook.com (2603:10b6:930:18:cafe::1e) by CY5PR15CA0074.outlook.office365.com (2603:10b6:930:18::28) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.13 via Frontend Transport; Fri, 4 Dec 2026 11:49:59 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by CY5PEPF00000E86.mail.protection.outlook.com (10.167.247.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Fri, 4 Dec 2026 11:49:59 +0000 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Fri, 4 Dec 2026 05:49:58 -0600 Received: from xhdipdslab46.xilinx.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Fri, 4 Dec 2026 05:49:56 -0600 From: Abhijit Gangurde To: , CC: , , , , "Abhijit Gangurde" Subject: [for-next v5 0/4] RDMA/ionic: Accept CQ, SQ, and RQ rings as umem attributes Date: Fri, 4 Dec 2026 17:19:39 +0530 Message-ID: <20261204114943.3530599-1-abhijit.gangurde@amd.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PEPF00000E86:EE_|MW4PR12MB5644:EE_ X-MS-Office365-Filtering-Correlation-Id: 46b5c09b-0318-4923-f59a-08df51fcb951 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|36860700016|23010399003|1800799024|11063799006|261009223027099003|13003099007|18002099003|56012099006|10067099003|261102123227099003|261028144727099003|261021135927099003|261022105027099003|261026121527099003|261026140227099003|261021123027099003|261021121427099003; X-Microsoft-Antispam-Message-Info: 6WBVlihYjF7/gxAt1Y6sBRF4WBaRPCgz6dMTa/dB/tVn/9PiVtFHz5AWdexmqazknCJi8+MMvm7H3ucqyCicTi1j2+TOa7ae22laPf24Y9lFQr0jB6cLe3aEpNQnKYcwdrwdRS5R8pIsOm4OwBPAa8UZU4SNEC/VIAgQZwdEbXN0bwdC2+7hyDEp2GWvQbZyJpSWIMjHBV07rLCcjLsXvm3AFMRU118rOZajbJcGE8NAcPp8hkk3/YVj5RiECquU984t93E1b+wNCci4a3fRNSC19EKwK5eYfm1PNuCybCKFBY92JVdtJMbQ7E7TW+BuctYXlQgyEME9DnKKwKi8xWAAT+Ix1Go2ij5nC3rz1/I8bjA1s0SySbbrDNTeZN4E3keLL3kv/dDSdxajYBVT5gOeuoQtr9STP2f5OkKwIHz+SuCcQgJta6tGIIy9hA5jRNerpESghweA21Oa76FUkCA9eZHjafX+igiRyCeOyFVkTrqaCfhJGdN2Er+SlIyUZdYPZrmb8XaU6k0Ot2Lbo/pkAD5OX1XIOxz4WllXCjSCwruIuo0GFc3yTgd3rZ7oqOsS1DEHiw/j9+4HYGxcY8Ude87j+77+sZDLW+oQHZWphXW7vsqOxxtrZ9S1gmqx4aNuTtyXpISjWzHyFpTuWQ== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(36860700016)(23010399003)(1800799024)(11063799006)(261009223027099003)(13003099007)(18002099003)(56012099006)(10067099003)(261102123227099003)(261028144727099003)(261021135927099003)(261022105027099003)(261026121527099003)(261026140227099003)(261021123027099003)(261021121427099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WCk4djd94Al8fuo/a/Fa8fQHlIfqIcOTy+8h0LxpOwufH3xx4qJtNRN6RmtXSsr8r3Murh/lFWa8CvjzRexPGNc94+5GkJR5P88YhlBh1FTIgpC8g/VX79EItkYJnxCn9ixqr747UEOauEhgp9RGKVBTI7pp9R+Df0eD4EktrqSE4counvRMfLNZEgR6p3s6KpkiXmd9tnIQjOfpTVLhBkGLM8tCO8j02kh0XffvT/3R7MVGAZcVRthHzCVYlK8XDVeOV5QFL5wYEQHSXShsD3T6wPJ3tgldj6laWv4ZxqJxqNkN37A184ohiUsquQWJZax2zawlQ5dRcgIRp9uxs+j4ygvjMXz7RTXrqlShD1xIhaHsP0iWs9ouSfAsR+tvCYzlL9NYB4+2fdDnSgziHVF5+NEajwVAfwmrR6pNhU1+6hS+x2A8aKpJqDx7Ev01 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 11:49:59.1780 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 46b5c09b-0318-4923-f59a-08df51fcb951 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY5PEPF00000E86.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5644 Let userspace hand ionic queue rings to create_cq and create_qp as struct ib_uverbs_buffer_desc, instead of only as a raw address in the driver request. A ring may be a virtual address or a page-aligned slice of a dma-buf, so several rings can share one dma-buf. The get_context bit IONIC_CTX_CMASK_CQ_QP_BUF_UMEM tells userspace it may send the descriptors. ionic_cq_req and ionic_qp_req are unchanged, so a provider that does not send them still uses the existing write path and ib_umem_get_va. Userspace: https://github.com/linux-rdma/rdma-core/pull/1862 v5: - Reject rings not mappable as PAGE_SIZE blocks - Advertise the capability bit in the QP patch - Reserve comp_mask bits 1-2, drop unused names - Reject RQ attribute on SRQ QPs v4: - New patch 2 moves the alignment check for all user rings - Discarded lookup inside the buffer descriptor - https://lore.kernel.org/linux-rdma/20261203110805.2577721-2-abhijit.gangurde@amd.com/ v3: - Move IONIC_CTX_CMASK_CQ_QP_BUF_UMEM from bit 1 to bit 3. - Rebased on for-next. - https://lore.kernel.org/linux-rdma/20261127040832.16908-1-abhijit.gangurde@amd.com/ v2: - Fix sashiko reported comments - New patch 1: bound depth/stride shift counts - Reject non-zero qdesc addr for dma-buf - QP: pin validated descriptor copy - https://lore.kernel.org/linux-rdma/20261126044811.3458258-1-abhijit.gangurde@amd.com/ v1: - https://lore.kernel.org/linux-rdma/20261118152313.113714-1-abhijit.gangurde@amd.com/ Abhijit Gangurde (4): RDMA/ionic: Bound user queue depth and stride before shifting RDMA/ionic: Check user ring alignment on the pinned umem RDMA/ionic: Accept CQ ring buffers as ioctl umem attributes RDMA/ionic: Accept QP SQ and RQ rings as ioctl umem attributes MAINTAINERS | 1 + drivers/infiniband/hw/ionic/ionic_admin.c | 2 +- .../infiniband/hw/ionic/ionic_controlpath.c | 162 ++++++++++++++---- drivers/infiniband/hw/ionic/ionic_ibdev.c | 17 ++ drivers/infiniband/hw/ionic/ionic_ibdev.h | 2 + include/uapi/rdma/ionic-abi.h | 2 + include/uapi/rdma/ionic_user_ioctl_cmds.h | 15 ++ 7 files changed, 165 insertions(+), 36 deletions(-) create mode 100644 include/uapi/rdma/ionic_user_ioctl_cmds.h -- 2.43.0