Skip to content

Commit b465ed2

Browse files
committed
Merge tag 'iommu-fixes-v6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux
Pull iommu fixes from Will Deacon: "We're still resolving a regression with the handling of unexpected page faults on SMMUv3, but we're not quite there with a fix yet. - Fix NULL dereference when freeing domain in Unisoc SPRD driver - Separate assignment statements with semicolons in AMD page-table code - Fix Tegra erratum workaround when the CPU is using 16KiB pages" * tag 'iommu-fixes-v6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux: iommu: arm-smmu: Fix Tegra workaround for PAGE_SIZE mappings iommu/amd: Convert comma to semicolon iommu: sprd: Avoid NULL deref in sprd_iommu_hw_en
2 parents 0421621 + 726d4f5 commit b465ed2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

drivers/iommu/amd/io_pgtable.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,9 @@ static struct io_pgtable *v1_alloc_pgtable(struct io_pgtable_cfg *cfg, void *coo
588588
{
589589
struct amd_io_pgtable *pgtable = io_pgtable_cfg_to_data(cfg);
590590

591-
cfg->pgsize_bitmap = AMD_IOMMU_PGSIZES,
592-
cfg->ias = IOMMU_IN_ADDR_BIT_SIZE,
593-
cfg->oas = IOMMU_OUT_ADDR_BIT_SIZE,
591+
cfg->pgsize_bitmap = AMD_IOMMU_PGSIZES;
592+
cfg->ias = IOMMU_IN_ADDR_BIT_SIZE;
593+
cfg->oas = IOMMU_OUT_ADDR_BIT_SIZE;
594594
cfg->tlb = &v1_flush_ops;
595595

596596
pgtable->iop.ops.map_pages = iommu_v1_map_pages;

drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static int nvidia_smmu_init_context(struct arm_smmu_domain *smmu_domain,
277277
*/
278278
if (of_device_is_compatible(np, "nvidia,tegra234-smmu") ||
279279
of_device_is_compatible(np, "nvidia,tegra194-smmu")) {
280-
smmu->pgsize_bitmap = PAGE_SIZE;
280+
smmu->pgsize_bitmap &= GENMASK(PAGE_SHIFT, 0);
281281
pgtbl_cfg->pgsize_bitmap = smmu->pgsize_bitmap;
282282
}
283283

drivers/iommu/sprd-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ static void sprd_iommu_cleanup(struct sprd_iommu_domain *dom)
232232

233233
pgt_size = sprd_iommu_pgt_size(&dom->domain);
234234
dma_free_coherent(dom->sdev->dev, pgt_size, dom->pgt_va, dom->pgt_pa);
235-
dom->sdev = NULL;
236235
sprd_iommu_hw_en(dom->sdev, false);
236+
dom->sdev = NULL;
237237
}
238238

239239
static void sprd_iommu_domain_free(struct iommu_domain *domain)

0 commit comments

Comments
 (0)