Commit c7fc123
iommu/amd/pgtbl_v2: Invalidate updated page ranges only
Enhance __domain_flush_pages() to detect domain page table mode and use
that info to build invalidation commands. So that we can use
amd_iommu_domain_flush_pages() to invalidate v2 page table.
Also pass PASID, gn variable to device_flush_iotlb() so that it can build
IOTLB invalidation command for both v1 and v2 page table.
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20231122090215.6191-10-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 2c535dd commit c7fc123
2 files changed
Lines changed: 22 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
| |||
265 | 264 | | |
266 | 265 | | |
267 | 266 | | |
268 | | - | |
269 | 267 | | |
270 | 268 | | |
271 | 269 | | |
272 | 270 | | |
273 | 271 | | |
274 | 272 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 273 | + | |
| 274 | + | |
281 | 275 | | |
282 | 276 | | |
283 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
1382 | 1387 | | |
1383 | 1388 | | |
1384 | 1389 | | |
1385 | | - | |
1386 | | - | |
| 1390 | + | |
| 1391 | + | |
1387 | 1392 | | |
1388 | 1393 | | |
1389 | 1394 | | |
| |||
1395 | 1400 | | |
1396 | 1401 | | |
1397 | 1402 | | |
1398 | | - | |
| 1403 | + | |
1399 | 1404 | | |
1400 | 1405 | | |
1401 | 1406 | | |
| |||
1441 | 1446 | | |
1442 | 1447 | | |
1443 | 1448 | | |
1444 | | - | |
1445 | | - | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1446 | 1454 | | |
1447 | 1455 | | |
1448 | 1456 | | |
| |||
1458 | 1466 | | |
1459 | 1467 | | |
1460 | 1468 | | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
1461 | 1474 | | |
1462 | | - | |
1463 | | - | |
| 1475 | + | |
1464 | 1476 | | |
1465 | 1477 | | |
1466 | 1478 | | |
| |||
1478 | 1490 | | |
1479 | 1491 | | |
1480 | 1492 | | |
1481 | | - | |
| 1493 | + | |
1482 | 1494 | | |
1483 | 1495 | | |
1484 | 1496 | | |
| |||
0 commit comments