Skip to content

Commit ac91b4d

Browse files
committed
Merge tag 'iommu-fixes-v6.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux
Pull iommu fix from Joerg Roedel: - Fix PTE size calculation for NVidia Tegra * tag 'iommu-fixes-v6.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux: iommu/tegra: Fix incorrect size calculation
2 parents f713ffa + f9705d6 commit ac91b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iommu/tegra-smmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,11 @@ static void tegra_smmu_set_pde(struct tegra_smmu_as *as, unsigned long iova,
559559
{
560560
unsigned int pd_index = iova_pd_index(iova);
561561
struct tegra_smmu *smmu = as->smmu;
562-
struct tegra_pd *pd = as->pd;
562+
u32 *pd = &as->pd->val[pd_index];
563563
unsigned long offset = pd_index * sizeof(*pd);
564564

565565
/* Set the page directory entry first */
566-
pd->val[pd_index] = value;
566+
*pd = value;
567567

568568
/* The flush the page directory entry from caches */
569569
dma_sync_single_range_for_device(smmu->dev, as->pd_dma, offset,

0 commit comments

Comments
 (0)