Commit ee8da65
committed
RDMA/mlx5: Enable ATS support for MRs and umems
Bugzilla: https://bugzilla.redhat.com/2123401
commit 72b2f76
Author: Jason Gunthorpe <jgg@ziepe.ca>
Date: Thu Sep 1 11:20:56 2022 -0300
RDMA/mlx5: Enable ATS support for MRs and umems
For mlx5 if ATS is enabled in the PCI config then the device will use ATS
requests for only certain DMA operations. This has to be opted in by the
SW side based on the mkey or umem settings.
ATS slows down the PCI performance, so it should only be set in cases when
it is needed. All of these cases revolve around optimizing PCI P2P
transfers and avoiding bad cases where the bus just doesn't work.
Link: https://lore.kernel.org/r/4-v1-bd147097458e+ede-umem_dmabuf_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Kamal Heib <kheib@redhat.com>1 parent 7cdfecb commit ee8da65
3 files changed
+61
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2158 | 2158 | | |
2159 | 2159 | | |
2160 | 2160 | | |
2161 | | - | |
| 2161 | + | |
2162 | 2162 | | |
2163 | 2163 | | |
2164 | 2164 | | |
2165 | | - | |
2166 | 2165 | | |
2167 | 2166 | | |
2168 | 2167 | | |
2169 | 2168 | | |
2170 | 2169 | | |
2171 | 2170 | | |
2172 | | - | |
2173 | | - | |
2174 | | - | |
2175 | | - | |
2176 | | - | |
2177 | | - | |
2178 | | - | |
2179 | | - | |
2180 | | - | |
| 2171 | + | |
2181 | 2172 | | |
2182 | 2173 | | |
2183 | 2174 | | |
| |||
2191 | 2182 | | |
2192 | 2183 | | |
2193 | 2184 | | |
2194 | | - | |
| 2185 | + | |
2195 | 2186 | | |
2196 | 2187 | | |
2197 | 2188 | | |
2198 | 2189 | | |
2199 | | - | |
| 2190 | + | |
2200 | 2191 | | |
2201 | 2192 | | |
2202 | 2193 | | |
| |||
2238 | 2229 | | |
2239 | 2230 | | |
2240 | 2231 | | |
2241 | | - | |
| 2232 | + | |
| 2233 | + | |
2242 | 2234 | | |
2243 | 2235 | | |
2244 | 2236 | | |
| |||
2287 | 2279 | | |
2288 | 2280 | | |
2289 | 2281 | | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
2290 | 2285 | | |
2291 | 2286 | | |
2292 | 2287 | | |
| |||
2304 | 2299 | | |
2305 | 2300 | | |
2306 | 2301 | | |
| 2302 | + | |
2307 | 2303 | | |
2308 | 2304 | | |
2309 | 2305 | | |
2310 | 2306 | | |
2311 | 2307 | | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
2312 | 2317 | | |
2313 | 2318 | | |
2314 | 2319 | | |
2315 | 2320 | | |
2316 | | - | |
| 2321 | + | |
2317 | 2322 | | |
2318 | 2323 | | |
2319 | 2324 | | |
2320 | | - | |
| 2325 | + | |
2321 | 2326 | | |
2322 | 2327 | | |
2323 | 2328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1549 | 1549 | | |
1550 | 1550 | | |
1551 | 1551 | | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
1552 | 1588 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
898 | | - | |
| 898 | + | |
| 899 | + | |
899 | 900 | | |
900 | 901 | | |
901 | 902 | | |
| |||
976 | 977 | | |
977 | 978 | | |
978 | 979 | | |
| 980 | + | |
| 981 | + | |
979 | 982 | | |
980 | 983 | | |
981 | 984 | | |
| |||
0 commit comments