Commit d0e108b
iommu/vt-d: Add support for IOMMU default DMA mode build options
Make IOMMU_DEFAULT_LAZY default for when INTEL_IOMMU config is set,
as is current behaviour.
Also delete global flag intel_iommu_strict:
- In intel_iommu_setup(), call iommu_set_dma_strict(true) directly. Also
remove the print, as iommu_subsys_init() prints the mode and we have
already marked this param as deprecated.
- For cap_caching_mode() check in intel_iommu_setup(), call
iommu_set_dma_strict(true) directly; also reword the accompanying print
with a level downgrade and also add the missing '\n'.
- For Ironlake GPU, again call iommu_set_dma_strict(true) directly and
keep the accompanying print.
[jpg: Remove intel_iommu_strict]
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/1626088340-5838-5-git-send-email-john.garry@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 712d8f2 commit d0e108b
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
| |||
455 | 454 | | |
456 | 455 | | |
457 | 456 | | |
458 | | - | |
459 | | - | |
| 457 | + | |
460 | 458 | | |
461 | 459 | | |
462 | 460 | | |
| |||
4394 | 4392 | | |
4395 | 4393 | | |
4396 | 4394 | | |
4397 | | - | |
4398 | | - | |
4399 | | - | |
| 4395 | + | |
| 4396 | + | |
| 4397 | + | |
4400 | 4398 | | |
4401 | 4399 | | |
4402 | 4400 | | |
| |||
4405 | 4403 | | |
4406 | 4404 | | |
4407 | 4405 | | |
4408 | | - | |
4409 | 4406 | | |
4410 | 4407 | | |
4411 | 4408 | | |
| |||
5715 | 5712 | | |
5716 | 5713 | | |
5717 | 5714 | | |
5718 | | - | |
5719 | | - | |
| 5715 | + | |
| 5716 | + | |
5720 | 5717 | | |
5721 | 5718 | | |
5722 | 5719 | | |
| |||
0 commit comments