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=40.93.196.9 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796296113; b=A2XzBvXCq7XgetOodSBomsrEYktcYLuP8eywP4J9PwkhxmpYBfohEiRNhNNor8yU1S5H HoJQzBq6ymJBlpBNGlBTjqeMJYBFNKYHr6w/E8CIfdrMEoaT0N1EFKKjV6/vAhBWsMKB8 yZah9tM+/KM9OyFLN40J5vbYNu5IDW1WoeWWwwtCtnIBNDHgEIX2G5Li1GkNFDWOtK8je o5cPn/6ctSPRI/s91c4RJtQ+KJhG/7LkWVfm9SqX9ky7olBUU7t60Id4uztzK4NQfKBvC I8+YLJq7ZVDyHRGIfeSTaYb78Q50XvD8hOWIfRaAlFIJH52FDTORdyQw+nEXGms+DKg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796296113; 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=MeP7kXNFI8yBbQbLA13YMgwc5XoQI/xeQi2a+1otEO4=; b=DhcSABdInVDkezvd5VbBY/bvHMg1ylE7tAHfHSTglkq501Vldf7gx9uichAQBjLzo4j8 cTSCNFhnDIUdmmL3Uya7D2smD31+COdG1+BRJh4hhCKD4M7/n7CGytYLHa6fPmuLcKSG1 X7Zz9XN3nhaP5oHjxy4nOTcG0yItVmO22ppcbcqlexn328YIxrWB/wDRHWk57Gpb+E6LD V6iVDXfyRF8Rj/PzNIcoeAngMHZU1t0z2jeHpCQyyhKiY13PLb9r+ovp1Pa5eLK2h7V1q vxsH4dq6YjZJBMD/OZ7NjR0lwxuI6OkcHWL69Ock8f5F0qPrgDkwBg8vG4PwIQj++lQ== 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=ru8Ndm3g; arc=pass header.oldest-pass=0 smtp.remote-ip=40.93.196.9 Received: from SA9PR02CU001.outbound.protection.outlook.com (mail-southcentralusazon11013009.outbound.protection.outlook.com [40.93.196.9]) (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 C615E606A334; Thu, 3 Dec 2026 11:08:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C615E606A334 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=ru8Ndm3g ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mpRn9c7t3EEIzZe1WonDffVYKZKR7q01j/0FFJ8kEYnaeyZCcAfHW6H3pLWgHNZUw9ppbSGzYMwzWCz6J0/U42nlcbYLa7WIKCuxM6Ot7lGlIHjv4x3FIIhxiIHjExK9JcbVDJyhR+IQoNFvSC7QgOekwtadqRrFpGraXyACERFhenwr0BskdkBP98EQmm02R+NbLCT0vFrXGb2iXc3mn5mF2/5Csg7H9qqo692eF49bNn9eRIBDdwt9Eu5tZR2PDc1vEuSCmKXNNzz6jlYoVn29rjIoWZHMab3QRiR+2RVtifHT2USmUwODw9Vzr3o3lnC045FIM+hNBWmCBs3IyQ== 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=MeP7kXNFI8yBbQbLA13YMgwc5XoQI/xeQi2a+1otEO4=; b=a+/NEkqc7gWXrq0MG/mMH5kQ2jhlSD7xS/iut7YffQH2sBYZc2LJ0XV+AVxeoBuP32rGLmlQpBgRXoWRgHRA6gGrONhBoXoMrA0YGcKu//cbRYXVJBLT1/RghNFKCEH4tuaNUDMPEx6Ha3l7c20+15wmHPtpNco1Ix4yD/9NVc1Afz33ls/yWGwmG9D2t+NoN0Gn/QT1LsoXOoXm6sx0Kwy5HsqL/mtGVmKkl23olLO6otf7jk7L6hf6CK/zEFGOyG2b7IQEoa0BHk3SfUA4p3eKlIv0UNQdWMtod5XYFCv9D0k/80eL3GzaynkDCa6tYO6L6JpoxUl5tVbyzv2+SQ== 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=MeP7kXNFI8yBbQbLA13YMgwc5XoQI/xeQi2a+1otEO4=; b=ru8Ndm3g8aGQ+egMVHhLqgxTBL2IgNVl/KllGwfncUwtl5uflYimx5pBGJQMlELbI4/xugL8R+G0/kzOTLKR7Ey3KVdH+Kuo+dxXugdDu7eSi2cUUORKZAQfIJrz5u2jp287Qn9Rh1O1NMcy6ME/dI+wsS1+jJPfIkFtxNcJgiM= Received: from CH5PR02CA0015.namprd02.prod.outlook.com (2603:10b6:610:1ed::9) by IA1PR12MB6161.namprd12.prod.outlook.com (2603:10b6:208:3eb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.13; Thu, 3 Dec 2026 11:08:22 +0000 Received: from DSM2EPF0000000B.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::4c) by CH5PR02CA0015.outlook.office365.com (2603:10b6:610:1ed::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.12 via Frontend Transport; Thu, 3 Dec 2026 11:08:22 +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=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by DSM2EPF0000000B.mail.protection.outlook.com (10.167.23.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Thu, 3 Dec 2026 11:08:22 +0000 Received: from satlexmb07.amd.com (10.181.42.216) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 05:08:21 -0600 Received: from xhdipdslab46.xilinx.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Thu, 3 Dec 2026 05:08:20 -0600 From: Abhijit Gangurde To: , CC: , , , , "Abhijit Gangurde" Subject: [for-next v4 0/4] RDMA/ionic: Accept CQ, SQ, and RQ rings as umem attributes Date: Thu, 3 Dec 2026 16:38:01 +0530 Message-ID: <20261203110805.2577721-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: DSM2EPF0000000B:EE_|IA1PR12MB6161:EE_ X-MS-Office365-Filtering-Correlation-Id: 810fca91-a4eb-4a14-c753-08df512dbeb5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|36860700016|82310400026|23010399003|261021121427099003|10067099003|261026121527099003|56012099006|261021135927099003|261028144727099003|261022105027099003|261021123027099003|261026140227099003|261102123227099003|261009223027099003|18002099003|11063799006|13003099007; X-Microsoft-Antispam-Message-Info: TRyCG+Ww6Gx8KguXc6q7lkW8ITJUdO61B7U3hR5HTOkdcqjBV0r/ep1+qiZhujeKSY+F0BWTTREwJM+lts9AJG+YuNzV4WsNWeBjNld/f/SYp34ubwKteHGMHGukf2hvf40aw/xMwZ8bdhsHz5KKJzN2u9xrZA7I8CY45DlkivT/yfPZJrC82y5EWBd36qmgSh/u7fEC8MiCLi/T3kps28XYhw1f+SX+mohFyCz0v6DUzaOW84DKNrUSwEgsdoOSrT/ArGqDrMfdy6JaSRg3r0kTL9a4scGKqOhe4ig2zN/RCGJAm4SpDRoQIYxjgZYxOFMj34VpSJlQIBZspGsEodPJHa4Wvl81uG8ZkVmefVohoyp4bpjyI8/VU273h6wWetNBMnmrttI3SUcGvgKXf6/4KLdm5zINVSA0gRtfghI1rfiHEsHtMLjz4URkmKGZnQ3uIBNnyNsqL5CrjKbGeuMeh+An3zbxyzpVurYJrUiBzZR6xD/XFtMbpOsfti4K9NyDHwAnqG3SoxRm8TOt1XzGyOvvwsyljRl61hllV9YvB8iAGjGMaZbEE4adULq7RP5YM57v1a6sMWwXOfddECsi8Ybw8u3BOJV0VwRrHLrFwnlNCx4t0rSUYCv9rjrAlxdmtWIXiZNkQJ0dvCwc7A== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(376014)(36860700016)(82310400026)(23010399003)(261021121427099003)(10067099003)(261026121527099003)(56012099006)(261021135927099003)(261028144727099003)(261022105027099003)(261021123027099003)(261026140227099003)(261102123227099003)(261009223027099003)(18002099003)(11063799006)(13003099007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UMbIZZoPUbqCMQD/VrAk/YqZWL6fUFu/PF2RaD+5gCTRyactXBE7TUVnZ9CgtIB2fnlzRQjmQzOX1IlZbXuBnCpcRkUt9OBRS/WA2AQ72c4Dn+Jt4my1L+MDtiXQk4atkFrznblFDhxOrQ8Qv5BHVN0/B7w9OZTxwkE//zki95E/bYgecina588SZojWw6xwWUg3AdqmM7qRBj4Z8FVicd3KR6UIHXZw+GO5hIvEXXk3c2Xyb15bsQu9pvAVGTLIVmYYystMi7t5neHg8IObyzff3cnoggyScwDlCJSKATPl0ndB1W8G/p+6XZKJIvPbQaS5fWyh3JkZGIZEnMWI/WO0qqJoyGDpwQC0jOz36EukBrJR2jzuwvyFLv/wEbadUM5p9JM5WWoIvxlxyYsZp80zDLGfj6pQSl+54r0Gfz57S9+3k5QQpxt9sI+nRZ7l X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 11:08:22.4296 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 810fca91-a4eb-4a14-c753-08df512dbeb5 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=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DSM2EPF0000000B.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6161 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 v4: - New patch 2 moves the alignment check for all user rings - Discarded lookup inside the buffer descriptor 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 | 148 ++++++++++++++---- drivers/infiniband/hw/ionic/ionic_ibdev.c | 17 ++ drivers/infiniband/hw/ionic/ionic_ibdev.h | 2 + include/uapi/rdma/ionic-abi.h | 3 + include/uapi/rdma/ionic_user_ioctl_cmds.h | 15 ++ 7 files changed, 153 insertions(+), 35 deletions(-) create mode 100644 include/uapi/rdma/ionic_user_ioctl_cmds.h -- 2.43.0