Commit 84c9ef7
dmaengine: idxd: Add enable/disable device IOPF feature
The iommu subsystem requires IOMMU_DEV_FEAT_IOPF must be enabled before
and disabled after IOMMU_DEV_FEAT_SVA, if device's I/O page faults rely
on the IOMMU. Add explicit IOMMU_DEV_FEAT_IOPF enabling/disabling in this
driver.
At present, missing IOPF enabling/disabling doesn't cause any real issue,
because the IOMMU driver places the IOPF enabling/disabling in the path
of SVA feature handling. But this may change.
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20230324120234.313643-2-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent e8d018d commit 84c9ef7
1 file changed
Lines changed: 25 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
519 | 540 | | |
520 | 541 | | |
521 | 542 | | |
| |||
530 | 551 | | |
531 | 552 | | |
532 | 553 | | |
533 | | - | |
| 554 | + | |
534 | 555 | | |
535 | 556 | | |
536 | 557 | | |
| |||
578 | 599 | | |
579 | 600 | | |
580 | 601 | | |
581 | | - | |
| 602 | + | |
582 | 603 | | |
583 | 604 | | |
584 | 605 | | |
585 | 606 | | |
586 | 607 | | |
587 | | - | |
588 | | - | |
589 | 608 | | |
590 | 609 | | |
591 | 610 | | |
592 | 611 | | |
593 | 612 | | |
594 | 613 | | |
595 | | - | |
| 614 | + | |
596 | 615 | | |
597 | 616 | | |
598 | 617 | | |
| |||
710 | 729 | | |
711 | 730 | | |
712 | 731 | | |
713 | | - | |
| 732 | + | |
714 | 733 | | |
715 | 734 | | |
716 | 735 | | |
| |||
0 commit comments