aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/mtk_iommu.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-12iommu: mtk: fix module autoloadingKrzysztof Kozlowski1-0/+1
2024-03-08Merge branches 'arm/mediatek', 'arm/renesas', 'arm/smmu', 'x86/vt-d', 'x86/am...Joerg Roedel1-2/+3
2024-03-01iommu: constify of_phandle_args in xlateKrzysztof Kozlowski1-1/+2
2024-02-16iommu/mtk_iommu: Use devm_kcalloc() instead of devm_kzalloc()Erick Archer1-1/+1
2023-11-27iommu: Clean up open-coded ownership checksRobin Murphy1-6/+1
2023-10-27Merge branches 'iommu/fixes', 'arm/tegra', 'arm/smmu', 'virtio', 'x86/vt-d', ...Joerg Roedel1-7/+28
2023-10-26Merge tag 'v6.6-rc7' into coreJoerg Roedel1-5/+4
2023-10-02iommu: Allow .iotlb_sync_map to fail and handle s390's -ENOMEM returnNiklas Schnelle1-2/+3
2023-09-25iommu: Convert simple drivers with DOMAIN_DMA to domain_alloc_paging()Jason Gunthorpe1-5/+2
2023-09-25iommu/mtk_iommu: Add an IOMMU_IDENTITIY_DOMAINJason Gunthorpe1-0/+23
2023-09-25iommu/mediatek: Fix share pgtable for iova over 4GBYong Wu1-5/+4
2023-08-07iommu/mediatek: mt8188: Add iova_region_larb_mskYong Wu1-0/+16
2023-08-07iommu/mediatek: Add MT8188 IOMMU SupportChengci.Xu1-0/+49
2023-08-07iommu/mediatek: Add enable IOMMU SMC command for INFRA mastersChengci.Xu1-10/+22
2023-08-07iommu/mediatek: Adjust mtk_iommu_config flowChengci.Xu1-26/+32
2023-08-07iommu/mediatek: Fix two IOMMU share pagetable issueChengci.Xu1-8/+14
2023-06-01iommu/mediatek: Flush IOTLB completely only if domain has been attachedChen-Yu Tsai1-1/+2
2023-04-14Merge branches 'iommu/fixes', 'arm/allwinner', 'arm/exynos', 'arm/mediatek', ...Joerg Roedel1-33/+125
2023-04-13iommu/mediatek: Set dma_mask for the master devicesYong Wu1-0/+8
2023-04-13iommu/mediatek: Add a gap for the iova regionsYong Wu1-5/+7
2023-04-13iommu/mediatek: mt8186: Add iova_region_larb_mskYong Wu1-0/+13
2023-04-13iommu/mediatek: mt8195: Add iova_region_larb_mskYong Wu1-0/+17
2023-04-13iommu/mediatek: mt8192: Add iova_region_larb_mskYong Wu1-1/+18
2023-04-13iommu/mediatek: Get regionid from larb/port idYong Wu1-19/+26
2023-04-13iommu/mediatek: Improve comment for the current region/bankYong Wu1-5/+26
2023-03-31iommu/mtk: Convert to platform remove callback returning voidUwe Kleine-König1-3/+2
2023-03-28iommu/mediatek: Set dma_mask for PGTABLE_PA_35_ENYong Wu1-0/+8
2023-01-13iommu: Remove detach_dev callbacksLu Baolu1-9/+0
2022-12-12Merge branches 'arm/allwinner', 'arm/exynos', 'arm/mediatek', 'arm/rockchip',...Joerg Roedel1-41/+112
2022-12-12iommu/mediatek: Fix forever loop in error handlingDan Carpenter1-2/+1
2022-12-05iommu/mediatek: Fix crash on isr after kexec()Ricardo Ribalda1-1/+1
2022-12-05iommu/mediatek: Remove unused "mapping" member from mtk_iommu_dataYong Wu1-3/+0
2022-12-05iommu/mediatek: Improve safety for mediatek,smi property in larb nodesYong Wu1-16/+37
2022-12-05iommu/mediatek: Validate number of phandles associated with "mediatek,larbs"Guenter Roeck1-0/+12
2022-12-05iommu/mediatek: Add error path for loop of mm_dts_parseYong Wu1-7/+20
2022-12-05iommu/mediatek: Use component_match_addYong Wu1-6/+4
2022-12-05iommu/mediatek: Add platform_device_put for recovering the device refcntYong Wu1-3/+8
2022-11-19iommu/mediatek: Update to {map,unmap}_pagesRobin Murphy1-7/+8
2022-11-19iommu/mediatek: add support for MT8365 SoCFabien Parent1-0/+13
2022-11-19iommu/mediatek: add support for 6-bit encoded port IDsFabien Parent1-1/+11
2022-11-19iommu/mediatek: Check return value after calling platform_get_resource()Yang Yingliang1-0/+2
2022-11-01iommu: Propagate return value in ->attach_dev callback functionsNicolin Chen1-1/+1
2022-11-01iommu: Regulate EINVAL in ->attach_dev callback functionsNicolin Chen1-1/+1
2022-10-21iommu: Add gfp parameter to iommu_alloc_resv_regionLu Baolu1-1/+2
2022-09-26Merge branches 'apple/dart', 'arm/mediatek', 'arm/omap', 'arm/smmu', 'virtio'...Joerg Roedel1-25/+20
2022-09-26iommu/mediatek: Add support for MT6795 Helio X10 M4UsAngeloGioacchino Del Regno1-0/+15
2022-09-26iommu/mediatek: Introduce new flag TF_PORT_TO_ADDR_MT8173AngeloGioacchino Del Regno1-2/+4
2022-09-07iommu/mtk: Clean up bus_set_iommu()Robin Murphy1-23/+1
2022-07-29Merge branches 'arm/exynos', 'arm/mediatek', 'arm/msm', 'arm/smmu', 'virtio',...Joerg Roedel1-34/+37
2022-07-15iommu/mediatek: Log with dev_err_probe when failing to parse dtsNícolas F. R. A. Prado1-1/+1
2022-07-15iommu: remove the put_resv_regions methodChristoph Hellwig1-1/+0
2022-07-07iommu/mediatek: Allow page table PA up to 35bitYunfei Wang1-6/+7
2022-07-06iommu: Clean up release_device checksRobin Murphy1-5/+0
2022-06-23iommu/mediatek: Cleanup pericfg lookup flowAngeloGioacchino Del Regno1-7/+5
2022-06-22iommu/mediatek: Lookup phandle to retrieve syscon to infracfgAngeloGioacchino Del Regno1-14/+24
2022-05-13iommu/mediatek: Fix NULL pointer dereference when printing dev_nameMiles Chen1-0/+6
2022-05-04iommu/mediatek: Add mt8186 iommu supportYong Wu1-0/+16
2022-05-04iommu/mediatek: mt8195: Enable multi banks for infra iommuYong Wu1-2/+5
2022-05-04iommu/mediatek: Backup/restore regsiters for multi banksYong Wu1-15/+31
2022-05-04iommu/mediatek: Initialise/Remove for multi bank devYong Wu1-14/+30
2022-05-04iommu/mediatek: Get the proper bankid for multi banksYong Wu1-7/+48
2022-05-04iommu/mediatek: Change the domid to iova_region_idYong Wu1-23/+23
2022-05-04iommu/mediatek: Initialise bank HW for each a bankYong Wu1-12/+20
2022-05-04iommu/mediatek: Add mtk_iommu_bank_data structureYong Wu1-62/+117
2022-05-04iommu/mediatek: Remove mtk_iommu.hYong Wu1-1/+13
2022-05-04iommu/mediatek: Separate mtk_iommu_data for v1 and v2Yong Wu1-5/+77
2022-05-04iommu/mediatek: Just move code position in hw_initYong Wu1-24/+24
2022-05-04iommu/mediatek: Only adjust code about register baseYong Wu1-24/+27
2022-05-04iommu/mediatek: Add mt8195 supportYong Wu1-0/+41
2022-05-04iommu/mediatek: Add PCIe supportYong Wu1-1/+20
2022-05-04iommu/mediatek: Add infra iommu supportYong Wu1-7/+29
2022-05-04iommu/mediatek: Add a PM_CLK_AO flag for infra iommuYong Wu1-3/+26
2022-05-04iommu/mediatek: Allow IOMMU_DOMAIN_UNMANAGED for PCIe VFIOYong Wu1-1/+1
2022-05-04iommu/mediatek: Adjust device link when it is sub-commonYong Wu1-4/+14
2022-05-04iommu/mediatek: Contain MM IOMMU flow with the MM TYPEYong Wu1-91/+122
2022-05-04iommu/mediatek: Add IOMMU_TYPE flagYong Wu1-2/+10
2022-05-04iommu/mediatek: Add SUB_COMMON_3BITS flagYong Wu1-10/+16
2022-05-04iommu/mediatek: Always enable output PA over 32bits in isrYong Wu1-2/+2
2022-05-04iommu/mediatek: Remove the granule in the tlb flushYong Wu1-4/+2
2022-05-04iommu/mediatek: Add a flag STD_AXI_MODEYong Wu1-1/+3
2022-05-04iommu/mediatek: Add a flag DCM_DISABLEYong Wu1-1/+8
2022-05-04iommu/mediatek: Add 12G~16G support for multi domainsYong Wu1-3/+5
2022-05-04iommu/mediatek: Adapt sharing and non-sharing pgtable caseYong Wu1-20/+23
2022-05-04iommu/mediatek: Add mutex for data in the mtk_iommu_domainYong Wu1-1/+9
2022-05-04iommu/mediatek: Add mutex for m4u_group and m4u_dom in dataYong Wu1-2/+11
2022-05-04iommu/mediatek: Remove clk_disable in mtk_iommu_removeYong Wu1-1/+0
2022-05-04iommu/mediatek: Add list_del in mtk_iommu_removeYong Wu1-2/+1
2022-05-04iommu/mediatek: Fix 2 HW sharing pgtable issueYong Wu1-2/+5
2022-03-28Merge tag 'driver-core-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-2/+2
2022-03-24Merge tag 'iommu-updates-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-29/+33
2022-03-08Merge branches 'arm/mediatek', 'arm/msm', 'arm/renesas', 'arm/rockchip', 'arm...Joerg Roedel1-29/+33
2022-03-04iommu/mediatek: Always tlb_flush_all when each PM resumeYong Wu1-0/+7
2022-03-04iommu/mediatek: Add tlb_lock in tlb_flush_allYong Wu1-3/+9
2022-03-04iommu/mediatek: Remove the power status checking in tlb flush allYong Wu1-5/+0
2022-03-04iommu/mediatek: Always check runtime PM status in tlb flush range callbackSebastian Reichel1-7/+3
2022-03-04iommu/mediatek: Remove for_each_m4u in tlb_sync_allYong Wu1-9/+7
2022-02-28iommu: Split struct iommu_opsLu Baolu1-9/+11
2022-02-25iommu/mediatek: Make use of the helper component_compare/release_ofYong Wu1-2/+2
2022-01-28media: iommu/mediatek: Add device_link between the consumer and the larb devicesYong Wu1-0/+30
2022-01-28media: iommu/mediatek: Add probe_defer for smi-larbYong Wu1-0/+4
2022-01-28media: iommu/mediatek: Return ENODEV if the device is NULLYong Wu1-1/+1
2021-09-28iommu/mediatek: Fix out-of-range warning with clangArnd Bergmann1-1/+3
2021-08-20Merge branches 'apple/dart', 'arm/smmu', 'iommu/fixes', 'x86/amd', 'x86/vt-d'...Joerg Roedel1-12/+1
2021-08-18iommu/mtk: Drop IOVA cookie managementRobin Murphy1-7/+0
2021-08-02iommu: Improve iommu_iotlb_gather helpersRobin Murphy1-5/+1
2021-06-08iommu: Drop unnecessary of_iommu.h includesRob Herring1-1/+0
2021-04-16iommu: Streamline registration interfaceRobin Murphy1-4/+1
2021-04-16iommu/mediatek: Always enable the clk on resumeDafna Hirschfeld1-11/+8
2021-04-07iommu/mediatek: Allow building as moduleYong Wu1-12/+5
2021-02-08iommu/mediatek: Fix error code in probe()Dan Carpenter1-1/+2
2021-02-05iommu/mediatek: Fix unsigned domid comparison with less than zeroColin Ian King1-1/+1
2021-02-01iommu/mediatek: Add mt8192 supportYong Wu1-0/+22
2021-02-01iommu/mediatek: Remove unnecessary check in attach_deviceYong Wu1-6/+0
2021-02-01iommu/mediatek: Support master use iova over 32bitYong Wu1-6/+12
2021-02-01iommu/mediatek: Add iova reserved functionYong Wu1-0/+31
2021-02-01iommu/mediatek: Support for multi domainsYong Wu1-11/+26
2021-02-01iommu/mediatek: Add get_domain_id from dev->dma_range_mapYong Wu1-1/+41
2021-02-01iommu/mediatek: Add iova_region structureYong Wu1-0/+19
2021-02-01iommu/mediatek: Move geometry.aperture updating into domain_finaliseYong Wu1-3/+4
2021-02-01iommu/mediatek: Move domain_finalise into attach_deviceYong Wu1-19/+12
2021-02-01iommu/mediatek: Adjust the structureYong Wu1-9/+11
2021-02-01iommu/mediatek: Support report iova 34bit translation fault in ISRYong Wu1-2/+15
2021-02-01iommu/mediatek: Support up to 34bit iova in tlb flushYong Wu1-2/+8
2021-02-01iommu/mediatek: Add power-domain operationYong Wu1-5/+34
2021-02-01iommu/mediatek: Add pm runtime callbackYong Wu1-3/+5
2021-02-01iommu/mediatek: Add device link for smi-common and m4uYong Wu1-3/+24
2021-02-01iommu/mediatek: Add error handle for mtk_iommu_probeYong Wu1-4/+19
2021-02-01iommu/mediatek: Move hw_init into attach_deviceYong Wu1-6/+7
2021-02-01iommu/mediatek: Update oas for v7sYong Wu1-1/+5
2021-02-01iommu/mediatek: Add a flag for iova 34bits caseYong Wu1-1/+2
2021-02-01iommu/io-pgtable-arm-v7s: Extend PA34 for MediaTekYong Wu1-1/+1
2021-02-01iommu/mediatek: Use the common mtk-memory-port.hYong Wu1-7/+0
2021-01-27iommu/mediatek: Remove the tlb-ops for v7sYong Wu1-23/+4
2021-01-27iommu/mediatek: Gather iova in iommu_unmap to achieve tlb sync onceYong Wu1-3/+5
2021-01-27iommu: Switch gather->end to the inclusive endYong Wu1-1/+1
2021-01-27iommu/mediatek: Add iotlb_sync_map to sync whole the iova rangeYong Wu1-1/+9
2020-12-08iommu/io-pgtable: Remove tlb_flush_leafRobin Murphy1-1/+0
2020-09-18iommu/mediatek: Add support for MT8167Fabien Parent1-0/+8
2020-09-18iommu/mediatek: Add flag for legacy ivrp paddrFabien Parent1-2/+4
2020-09-04iommu/mediatek: Check 4GB mode by reading infracfgMiles Chen1-5/+28
2020-09-04iommu/mediatek: Drop of_match_ptr to fix -Wunused-const-variableKrzysztof Kozlowski1-1/+1
2020-07-29Merge branches 'arm/renesas', 'arm/qcom', 'arm/mediatek', 'arm/omap', 'arm/ex...Joerg Roedel1-32/+80
2020-07-24iommu: Add gfp parameter to io_pgtable_ops->map()Baolin Wang1-1/+1
2020-07-10iommu/mediatek: Add mt6779 basic supportChao Hao1-0/+9
2020-07-10iommu/mediatek: Modify MMU_CTRL register settingChao Hao1-3/+5
2020-07-10iommu/mediatek: Extend protect pa alignment valueChao Hao1-1/+1
2020-07-10iommu/mediatek: Add REG_MMU_WR_LEN_CTRL register definitionChao Hao1-0/+11
2020-07-10iommu/mediatek: Add sub_comm id in translation faultChao Hao1-7/+14
2020-07-10iommu/mediatek: Move inv_sel_reg into the plat_dataChao Hao1-3/+6
2020-07-10iommu/mediatek: Setting MISC_CTRL registerChao Hao1-1/+11
2020-07-10iommu/mediatek: Use a u32 flags to describe different HW featuresChao Hao1-11/+17
2020-07-10iommu/mediatek: Rename the register STANDARD_AXI_MODE(0x48) to MISC_CTRLChao Hao1-7/+7
2020-05-05iommu/mediatek: Convert to probe/release_device() call-backsJoerg Roedel1-18/+6
2020-03-27iommu/mediatek: Use accessor functions for iommu private dataJoerg Roedel1-7/+6
2020-01-10iommu/io-pgtable-arm: Rationalise TTBRn handlingRobin Murphy1-2/+2
2019-11-12Merge branches 'iommu/fixes', 'arm/qcom', 'arm/renesas', 'arm/rockchip', 'arm...Joerg Roedel1-61/+29
2019-11-11iommu/mediatek: Reduce the tlb flush timeout valueYong Wu1-1/+1
2019-11-11iommu/mediatek: Get rid of the pgtlockYong Wu1-22/+3
2019-11-11iommu/mediatek: Move the tlb_sync into tlb_flushYong Wu1-35/+10
2019-11-11iommu/mediatek: Delete the leaf in the tlb_flushYong Wu1-17/+4
2019-11-11iommu/mediatek: Use gather to achieve the tlb range flushYong Wu1-4/+8
2019-11-11iommu/mediatek: Add a new tlb_lock for tlb_flushYong Wu1-1/+22
2019-11-11iommu/mediatek: Correct the flush_iotlb_all callbackYong Wu1-1/+1
2019-10-15iommu: Add gfp parameter to iommu_ops::mapTom Murphy1-1/+1
2019-08-30Merge branch 'arm/smmu' into arm/mediatekJoerg Roedel1-8/+37
2019-08-30iommu/mediatek: Clean up struct mtk_smi_iommuYong Wu1-2/+2
2019-08-30memory: mtk-smi: Get rid of need_larbidYong Wu1-1/+0
2019-08-30iommu/mediatek: Fix VLD_PA_RNG register backup when suspendYong Wu1-0/+2
2019-08-30iommu/mediatek: Add mmu1 supportYong Wu1-17/+29
2019-08-30iommu/mediatek: Add mt8183 IOMMU supportYong Wu1-3/+12
2019-08-30iommu/mediatek: Move vld_pa_rng into plat_dataYong Wu1-1/+2
2019-08-30iommu/mediatek: Move reset_axi into plat_dataYong Wu1-2/+2
2019-08-30iommu/mediatek: Refine protect memory definitionYong Wu1-7/+6
2019-08-30iommu/mediatek: Add larb-id remapped supportYong Wu1-0/+4
2019-08-30iommu/mediatek: Add bclk can be supported optionallyYong Wu1-3/+7
2019-08-30iommu/mediatek: Adjust the PA for the 4GB ModeYong Wu1-10/+16
2019-08-30iommu/io-pgtable-arm-v7s: Rename the quirk from MTK_4GB to MTK_EXTYong Wu1-1/+1
2019-08-30iommu/mediatek: Fix iova_to_phys PA start for 4GB modeYong Wu1-1/+25
2019-08-30iommu/mediatek: Use a struct as the platform dataYong Wu1-8/+16
2019-07-29iommu/io-pgtable: Pass struct iommu_iotlb_gather to ->tlb_add_page()Will Deacon1-1/+2
2019-07-29iommu/io-pgtable: Pass struct iommu_iotlb_gather to ->unmap()Will Deacon1-1/+1
2019-07-29iommu/io-pgtable: Remove unused ->tlb_sync() callbackWill Deacon1-1/+0
2019-07-29iommu/io-pgtable: Replace ->tlb_add_flush() with ->tlb_add_page()Will Deacon1-1/+7
2019-07-29iommu/io-pgtable: Hook up ->tlb_flush_walk() and ->tlb_flush_leaf() in driversWill Deacon1-0/+16
2019-07-29iommu: Pass struct iommu_iotlb_gather to ->unmap() and ->iotlb_sync()Will Deacon1-3/+10
2019-07-24iommu/io-pgtable: Rename iommu_gather_ops to iommu_flush_opsWill Deacon1-2/+2
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174Thomas Gleixner1-9/+1
2019-04-26iommu/mediatek: Fix leaked of_node referencesWen Yang1-2/+6
2018-12-20Merge branches 'iommu/fixes', 'arm/renesas', 'arm/mediatek', 'arm/tegra', 'ar...Joerg Roedel1-11/+14
2018-12-17iommu/mediatek: Use helper functions to access dev->iommu_fwspecJoerg Roedel1-9/+12
2018-11-06iommu/mediatek: Constify iommu_opsArvind Yadav1-2/+2
2018-10-31mm: remove include/linux/bootmem.hMike Rapoport1-1/+1
2018-08-08iommu: Remove the ->map_sg indirectionChristoph Hellwig1-1/+0
2018-03-21iommu/mediatek: Fix protect memory settingYong Wu1-5/+10
2017-10-13Merge branches 'iommu/fixes', 'arm/omap', 'arm/exynos', 'x86/amd', 'x86/vt-d'...Joerg Roedel1-0/+7
2017-10-02iommu/io-pgtable-arm-v7s: Convert to IOMMU API TLB syncRobin Murphy1-0/+7
2017-09-27iommu/mediatek: Limit the physical address in 32bit for v7sYong Wu1-1/+2
2017-08-28iommu/mediatek: Fix a build warning of BIT(32) in ARMYong Wu1-2/+2
2017-08-28iommu/mediatek: Fix a build fail of m4u_typeYong Wu1-1/+1
2017-08-22iommu/mediatek: Enlarge the validate PA range for 4GB modeYong Wu1-3/+15