Commit 297e4c9
committed
RDMA/efa: Add CQ with external memory support
JIRA: https://issues.redhat.com/browse/RHEL-109942
commit 9fb3dd8
Author: Michael Margolin <mrgolin@amazon.com>
Date: Tue Jul 8 20:23:08 2025 +0000
RDMA/efa: Add CQ with external memory support
Add an option to create CQ using external memory instead of allocating
in the driver. The memory can be passed from userspace by dmabuf fd and
an offset or a VA. One of the possible usages is creating CQs that
reside in accelerator memory, allowing low latency asynchronous direct
polling from the accelerator device. Add a capability bit to reflect on
the feature support.
Reviewed-by: Daniel Kranzdorf <dkkranzd@amazon.com>
Reviewed-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Michael Margolin <mrgolin@amazon.com>
Link: https://patch.msgid.link/20250708202308.24783-4-mrgolin@amazon.com
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Kamal Heib <kheib@redhat.com>1 parent 1756b67 commit 297e4c9
File tree
4 files changed
+53
-15
lines changed- drivers/infiniband/hw/efa
- include/uapi/rdma
4 files changed
+53
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| 166 | + | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
1082 | 1083 | | |
1083 | 1084 | | |
1084 | 1085 | | |
1085 | | - | |
1086 | | - | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
1087 | 1091 | | |
1088 | 1092 | | |
1089 | 1093 | | |
| |||
1122 | 1126 | | |
1123 | 1127 | | |
1124 | 1128 | | |
1125 | | - | |
1126 | | - | |
| 1129 | + | |
| 1130 | + | |
1127 | 1131 | | |
1128 | 1132 | | |
1129 | 1133 | | |
| |||
1202 | 1206 | | |
1203 | 1207 | | |
1204 | 1208 | | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
1210 | 1233 | | |
1211 | 1234 | | |
1212 | 1235 | | |
| |||
1223 | 1246 | | |
1224 | 1247 | | |
1225 | 1248 | | |
1226 | | - | |
| 1249 | + | |
1227 | 1250 | | |
1228 | 1251 | | |
1229 | 1252 | | |
1230 | 1253 | | |
1231 | 1254 | | |
1232 | 1255 | | |
1233 | 1256 | | |
1234 | | - | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1235 | 1260 | | |
1236 | 1261 | | |
1237 | 1262 | | |
| |||
1269 | 1294 | | |
1270 | 1295 | | |
1271 | 1296 | | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1275 | 1302 | | |
1276 | 1303 | | |
1277 | 1304 | | |
1278 | 1305 | | |
1279 | 1306 | | |
1280 | 1307 | | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
1281 | 1314 | | |
1282 | 1315 | | |
1283 | 1316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
0 commit comments