aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.c
AgeCommit message (Expand)AuthorFilesLines
2020-06-10iommu/amd: Move AMD IOMMU driver into subdirectoryJoerg Roedel1-4041/+0
2020-06-02Merge branches 'arm/msm', 'arm/allwinner', 'arm/smmu', 'x86/vt-d', 'hyper-v',...Joerg Roedel1-237/+132
2020-05-29iommu/amd: Remove redundant devid checksJoerg Roedel1-11/+2
2020-05-29iommu/amd: Store dev_data as device iommu private dataJoerg Roedel1-22/+22
2020-05-29iommu/amd: Merge private header filesJoerg Roedel1-3/+1
2020-05-29iommu/amd: Remove PD_DMA_OPS_MASKJoerg Roedel1-17/+7
2020-05-29iommu/amd: Consolidate domain allocation/freeingJoerg Roedel1-89/+27
2020-05-29iommu/amd: Free page-table in protection_domain_free()Joerg Roedel1-5/+6
2020-05-29iommu/amd: Allocate page-table in protection_domain_init()Joerg Roedel1-26/+22
2020-05-29iommu/amd: Let free_pagetable() not rely on domain->pt_rootJoerg Roedel1-20/+16
2020-05-29iommu/amd: Unexport get_dev_data()Joerg Roedel1-4/+5
2020-05-29Merge tag 'v5.7-rc7' into x86/amdJoerg Roedel1-45/+156
2020-05-27iommu/amd: Use pci_ats_supported()Jean-Philippe Brucker1-8/+4
2020-05-13iommu/amd: Fix get_acpihid_device_id()Raul E Rangel1-1/+2
2020-05-13iommu/amd: Fix variable "iommu" set but not usedQian Cai1-3/+0
2020-05-05iommu/amd: Do not flush Device Table in iommu_map_page()Joerg Roedel1-11/+16
2020-05-05iommu/amd: Update Device Table in increase_address_space()Joerg Roedel1-13/+36
2020-05-05iommu/amd: Call domain_flush_complete() in update_domain()Joerg Roedel1-0/+1
2020-05-05iommu/amd: Do not loop forever when trying to increase address spaceJoerg Roedel1-1/+12
2020-05-05iommu/amd: Fix race in increase_address_space()/fetch_pte()Joerg Roedel1-35/+105
2020-05-05iommu/amd: Convert to probe/release_device() call-backsJoerg Roedel1-49/+22
2020-05-05iommu/amd: Remove dev_data->passthroughJoerg Roedel1-5/+5
2020-05-05iommu/amd: Return -ENODEV in add_device when device is not handled by IOMMUJoerg Roedel1-1/+4
2020-05-05iommu/amd: Remove dma_mask check from check_device()Joerg Roedel1-1/+1
2020-05-05iommu/amd: Implement iommu_ops->def_domain_type call-backJoerg Roedel1-0/+15
2020-03-14iommu/amd: Fix IOMMU AVIC not properly update the is_run bit in IRTESuravee Suthikulpanit1-2/+2
2020-02-05Merge tag 'iommu-updates-v5.6' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-11/+1
2020-01-24Merge branches 'iommu/fixes', 'arm/smmu', 'x86/amd', 'x86/vt-d' and 'core' in...Joerg Roedel1-11/+1
2020-01-24iommu/amd: Remove the unnecessary assignmentAdrian Huang1-1/+0
2019-12-23iommu: amd: Use generic_iommu_put_resv_regions()Thierry Reding1-10/+1
2019-12-18PCI: Add nr_devfns parameter to pci_add_dma_alias()James Sewart1-5/+2
2019-12-02Merge tag 'iommu-updates-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-723/+170
2019-11-26Merge branches 'acpi-utils', 'acpi-platform', 'acpi-video' and 'acpi-doc'Rafael J. Wysocki1-25/+5
2019-11-12Merge branches 'iommu/fixes', 'arm/qcom', 'arm/renesas', 'arm/rockchip', 'arm...Joerg Roedel1-723/+170
2019-10-30iommu/amd: Support multiple PCI DMA aliases in IRQ RemappingLogan Gunthorpe1-7/+30
2019-10-30iommu/amd: Support multiple PCI DMA aliases in device tableLogan Gunthorpe1-72/+61
2019-10-30iommu/amd: Do not re-fetch iommu->cmd_buf_tailDenys Vlasenko1-6/+7
2019-10-18iommu/amd: Check PM_LEVEL_SIZE() condition in locked sectionJoerg Roedel1-3/+4
2019-10-18iommu/amd: Pass gfp flags to iommu_map_page() in amd_iommu_map()Joerg Roedel1-1/+1
2019-10-15iommu/amd: Simpify decoding logic for INVALID_PPR_REQUEST eventSuthikulpanit, Suravee1-2/+1
2019-10-15iommu/amd: Fix incorrect PASID decoding from event logSuthikulpanit, Suravee1-2/+3
2019-10-15iommu/amd: Switch to use acpi_dev_hid_uid_match()Andy Shevchenko1-25/+5
2019-10-15iommu/amd: Convert AMD iommu driver to the dma-iommu apiTom Murphy1-625/+67
2019-10-15iommu: Add gfp parameter to iommu_ops::mapTom Murphy1-1/+2
2019-10-15iommu/amd: Remove unnecessary locking from AMD iommu driverTom Murphy1-9/+1
2019-09-29Merge tag 'iommu-fixes-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-93/+136
2019-09-28iommu/amd: Lock code paths traversing protection_domain->dev_listJoerg Roedel1-1/+24
2019-09-28iommu/amd: Lock dev_data in attach/detach code pathsJoerg Roedel1-0/+9
2019-09-28iommu/amd: Check for busy devices earlier in attach_device()Joerg Roedel1-18/+7
2019-09-28iommu/amd: Take domain->lock for complete attach/detach pathJoerg Roedel1-39/+26
2019-09-28iommu/amd: Remove amd_iommu_devtable_lockJoerg Roedel1-17/+6
2019-09-28iommu/amd: Remove domain->updatedJoerg Roedel1-24/+25
2019-09-24iommu/amd: Wait for completion of IOTLB flush in attach_deviceFilippo Sironi1-0/+2
2019-09-24iommu/amd: Unmap all L7 PTEs when downgrading page-sizesAndrei Dulea1-3/+27
2019-09-24iommu/amd: Introduce first_pte_l7() helperAndrei Dulea1-11/+29
2019-09-24iommu/amd: Fix downgrading default page-sizes in alloc_pte()Andrei Dulea1-1/+2
2019-09-24iommu/amd: Fix pages leak in free_pagetable()Andrei Dulea1-1/+1
2019-09-19Merge tag 'dma-mapping-5.4' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds1-0/+2
2019-09-11Merge branches 'arm/omap', 'arm/exynos', 'arm/smmu', 'arm/mediatek', 'arm/qco...Joerg Roedel1-33/+73
2019-09-06iommu/amd: Fix race in increase_address_space()Joerg Roedel1-5/+11
2019-09-06iommu/amd: Flush old domains in kdump kernelStuart Hayes1-0/+24
2019-09-04dma-mapping: explicitly wire up ->mmap and ->get_sgtableChristoph Hellwig1-0/+2
2019-08-30iommu/amd: Silence warnings under memory pressureQian Cai1-1/+3
2019-08-23iommu/amd: Request passthrough mode from IOMMU coreJoerg Roedel1-3/+3
2019-08-09iommu/amd: Re-factor guest virtual APIC (de-)activation codeSuthikulpanit, Suravee1-24/+61
2019-07-29iommu: Pass struct iommu_iotlb_gather to ->unmap() and ->iotlb_sync()Will Deacon1-2/+9
2019-07-24iommu: Remove empty iommu_tlb_range_add() callback from iommu_opsWill Deacon1-6/+0
2019-07-21iommu/amd: fix a crash in iova_magazine_free_pfnsQian Cai1-1/+1
2019-07-04Merge branches 'x86/vt-d', 'x86/amd', 'arm/smmu', 'arm/omap', 'generic-dma-op...Joerg Roedel1-20/+20
2019-07-01iommu/amd: Flush not present cache in iommu_map_pageTom Murphy1-4/+16
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333Thomas Gleixner1-13/+1
2019-05-28iommu/amd: Add missed 'tag' to error msg in iommu_print_eventYueHaibing1-2/+2
2019-05-27iommu/amd: Remove redundant assignment to variable npagesColin Ian King1-1/+1
2019-05-14Merge tag 'pci-v5.2-changes' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2019-05-07Revert "iommu/amd: Flush not present cache in iommu_map_page"Joerg Roedel1-15/+4
2019-05-06Revert "iommu/amd: Remove the leftover of bypass support"Joerg Roedel1-17/+63
2019-05-03iommu/amd: Flush not present cache in iommu_map_pageTom Murphy1-4/+15
2019-04-29iommu/amd: Use pci_dev_id() helperHeiner Kallweit1-1/+1
2019-04-26iommu/amd: Remove amd_iommu_pd_listJoerg Roedel1-33/+0
2019-04-11iommu/amd: Remove the leftover of bypass supportChristoph Hellwig1-63/+17
2019-04-11iommu/amd: Use pci_prg_resp_pasid_required()Jean-Philippe Brucker1-18/+1
2019-03-29iommu/amd: Reserve exclusion range in iova-domainJoerg Roedel1-3/+6
2019-03-18iommu/amd: fix sg->dma_address for sg->offset bigger than PAGE_SIZEStanislaw Gruszka1-1/+6
2019-03-15iommu/amd: Fix NULL dereference bug in match_hid_uidAaron Ma1-2/+6
2019-03-01Merge branches 'iommu/fixes', 'arm/msm', 'arm/tegra', 'arm/mediatek', 'x86/vt...Joerg Roedel1-15/+13
2019-02-11iommu/amd: Use dev_printk() when possibleBjorn Helgaas1-14/+12
2019-01-30iommu/amd: Print reason for iommu_map_page failure in map_sgJerry Snitselaar1-3/+3
2019-01-24iommu/amd: Fix IOMMU page flush when detach device from a domainSuravee Suthikulpanit1-4/+11
2019-01-22iommu/amd: Unmap all mapped pages in error path of map_sgJerry Snitselaar1-1/+1
2019-01-22iommu/amd: Call free_iova_fast with pfn in map_sgJerry Snitselaar1-1/+1
2019-01-01Merge tag 'iommu-updates-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-102/+173
2018-12-13dma-mapping: bypass indirect calls for dma-directChristoph Hellwig1-12/+1
2018-12-07iommu/amd: Fix amd_iommu=force_isolationYu Zhao1-1/+8
2018-12-06iommu: remove the mapping_error dma_map_ops methodChristoph Hellwig1-13/+5
2018-11-28iommu/amd: Remove leading 0s in error log messagesJoerg Roedel1-10/+10
2018-11-28iommu/amd: Fix line-break in error log reportingJoerg Roedel1-12/+10
2018-11-28iommu/amd: Use pr_fmt()Joerg Roedel1-18/+20
2018-11-15iommu/amd: Allow to upgrade page-sizeJoerg Roedel1-2/+27
2018-11-15iommu/amd: Restart loop if cmpxchg64 succeeded in alloc_pte()Joerg Roedel1-6/+5
2018-11-15iommu/amd: Allow downgrading page-sizes in alloc_pte()Joerg Roedel1-3/+9
2018-11-15iommu/amd: Ignore page-mode 7 in free_sub_pt()Joerg Roedel1-0/+4
2018-11-15iommu/amd: Introduce free_sub_pt() functionJoerg Roedel1-5/+13
2018-11-15iommu/amd: Collect page-table pages in freelistJoerg Roedel1-61/+83
2018-10-10Merge branches 'arm/renesas', 'arm/smmu', 'ppc/pamu', 'x86/vt-d', 'x86/amd' a...Joerg Roedel1-0/+2
2018-10-08iommu/amd: Add default branch in amd_iommu_capable()Lu Baolu1-0/+2
2018-10-05iommu/amd: Clear memory encryption mask from physical addressSingh, Brijesh1-1/+1
2018-09-26iommu/amd: Return devid as alias for ACPI HID devicesArindam Nath1-0/+6
2018-08-24Merge tag 'iommu-updates-v4.19' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-19/+19
2018-08-17kernel/dma: remove unsupported gfp_mask parameter from dma_alloc_from_contigu...Marek Szyprowski1-1/+1
2018-08-08Merge branches 'arm/shmobile', 'arm/renesas', 'arm/msm', 'arm/smmu', 'arm/oma...Joerg Roedel1-19/+19
2018-08-08iommu: Remove the ->map_sg indirectionChristoph Hellwig1-1/+0
2018-07-20iommu/amd: Remove redundant WARN_ON()Anna-Maria Gleixner1-12/+0
2018-07-06iommu/amd: Add support for IOMMU XT modeSuravee Suthikulpanit1-5/+16
2018-07-06iommu/amd: make sure TLB to be flushed before IOVA freedZhen Lei1-1/+1
2018-07-06iommu/amd: Argument page_size could be uninitializedyzhai003@ucr.edu1-0/+2
2018-06-11Revert "iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and dma_direct_{alloc,fr...Linus Torvalds1-21/+47
2018-06-10Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-1/+1
2018-06-08Merge tag 'iommu-updates-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-34/+35
2018-06-07Merge tag 'pci-v4.18-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-3/+8
2018-06-06irq_remapping: Use apic_ack_irq()Thomas Gleixner1-1/+1
2018-05-29Merge branches 'arm/io-pgtable', 'arm/qcom', 'arm/tegra', 'x86/vt-d', 'x86/am...Joerg Roedel1-34/+35
2018-05-15iommu/amd: Prevent possible null pointer dereference and infinite loopAnna-Maria Gleixner1-12/+10
2018-05-15iommu/amd: Fix grammar of commentsAnna-Maria Gleixner1-4/+4
2018-05-10PCI: Add "pci=noats" boot parameterGil Kupfer1-3/+8
2018-05-03iommu/amd: Update logging information for new event typeGary R Hook1-1/+9
2018-05-03iommu/amd: Update the PASID information printed to the system logGary R Hook1-18/+13
2018-05-03iommu/amd: Hide unused iommu_table_lockArnd Bergmann1-1/+1
2018-04-11Merge tag 'iommu-updates-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-133/+187
2018-03-29Merge branches 'x86/amd', 'x86/vt-d', 'arm/rockchip', 'arm/omap', 'arm/mediat...Joerg Roedel1-1/+1
2018-03-29iommu/amd: Return proper error code in irq_remapping_alloc()Sebastian Andrzej Siewior1-2/+2
2018-03-29iommu/amd: Make amd_iommu_devtable_lock a spin_lockSebastian Andrzej Siewior1-7/+7
2018-03-29iommu/amd: Drop the lock while allocating new irq remap tableSebastian Andrzej Siewior1-18/+45
2018-03-29iommu/amd: Factor out setting the remap table for a devidSebastian Andrzej Siewior1-11/+12
2018-03-29iommu/amd: Use `table' instead `irt' as variable name in amd_iommu_update_ga()Sebastian Andrzej Siewior1-5/+5
2018-03-29iommu/amd: Remove the special case from alloc_irq_table()Sebastian Andrzej Siewior1-14/+20
2018-03-29iommu/amd: Split irq_lookup_table out of the amd_iommu_devtable_lockSebastian Andrzej Siewior1-2/+3
2018-03-29iommu/amd: Split domain id out of amd_iommu_devtable_lockSebastian Andrzej Siewior1-7/+5
2018-03-29iommu/amd: Turn dev_data_list into a lock less listSebastian Andrzej Siewior1-18/+10
2018-03-29iommu/amd: Take into account that alloc_dev_data() may return NULLSebastian Andrzej Siewior1-0/+2
2018-03-20iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and dma_direct_{alloc,free}()Christoph Hellwig1-47/+21
2018-03-20x86/dma: Use DMA-direct (CONFIG_DMA_DIRECT_OPS=y)Christoph Hellwig1-3/+4
2018-03-15iommu/amd: Use dev_err to send events to the system logGary R Hook1-27/+28
2018-03-15iommu/amd: Add support for fast IOTLB flushingSuravee Suthikulpanit1-3/+16
2018-02-15iommu/amd: Avoid locking get_irq_table() from atomic contextScott Wood1-7/+22
2018-02-13iommu: Do not return error code for APIs with size_t return typeSuravee Suthikulpanit1-1/+1
2018-02-13iommu/amd: Don't use dev_data in irte_ga_set_affinity()Scott Wood1-3/+1
2018-02-13iommu/amd: Use raw locks on atomic context pathsScott Wood1-15/+15
2018-02-08Merge tag 'iommu-updates-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-6/+18
2018-02-06Merge tag 'pci-v4.16-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-1/+2
2018-01-17Merge branches 'arm/renesas', 'arm/omap', 'arm/exynos', 'x86/amd', 'x86/vt-d'...Joerg Roedel1-7/+19
2018-01-11iommu/amd: Deprecate pci_get_bus_and_slot()Sinan Kaya1-1/+2
2017-12-29genirq/irqdomain: Rename early argument of irq_domain_activate_irq()Thomas Gleixner1-1/+1
2017-12-20iommu/amd: Set the device table entry PPR bit for IOMMU V2 devicesGary R Hook1-5/+15
2017-12-20iommu/amd - Record more information about unknown eventsGary R Hook1-1/+3
2017-11-14Merge tag 'iommu-v4.15-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds1-19/+24
2017-11-07Merge branch 'linus' into x86/apic, to resolve conflictsIngo Molnar1-4/+7
2017-11-03iommu/amd: Limit the IOVA page range to the specified addressesGary R Hook1-1/+1
2017-11-03iommu/amd: remove unused variable flush_addrColin Ian King1-2/+0
2017-11-03iommu/amd: Fix alloc_irq_index() incrementAlex Williamson1-3/+4
2017-10-13Merge branches 'iommu/fixes', 'arm/omap', 'arm/exynos', 'x86/amd', 'x86/vt-d'...Joerg Roedel1-15/+21
2017-10-13iommu/amd: Finish TLB flush in amd_iommu_unmap()Joerg Roedel1-0/+1
2017-10-12iommu/iova: Make rcache flush optional on IOVA allocation failureTomasz Nowicki1-2/+3
2017-10-10iommu/amd: Do not disable SWIOTLB if SME is activeTom Lendacky1-4/+6
2017-10-10iommu/amd: Enforce alignment for MSI IRQsJoerg Roedel1-1/+3
2017-10-10iommu/amd: Add align parameter to alloc_irq_index()Joerg Roedel1-8/+14
2017-09-27iommu/iova: Make dma_32bit_pfn implicitZhen Lei1-5/+2
2017-09-25iommu/amd: Reevaluate vector configuration on activate()Thomas Gleixner1-10/+29
2017-09-25genirq/irqdomain: Update irq_domain_ops.activate() signatureThomas Gleixner1-2/+3
2017-09-09Merge tag 'iommu-updates-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-264/+49
2017-09-01Merge branches 'arm/exynos', 'arm/renesas', 'arm/rockchip', 'arm/omap', 'arm/...Joerg Roedel1-264/+49
2017-08-28iommu/amd: Rename a few flush functionsJoerg Roedel1-8/+8
2017-08-28iommu/amd: Check if domain is NULL in get_domain() and return -EBUSYBaoquan He1-0/+3
2017-08-26Merge branch 'linus' into x86/mm to pick up fixes and to fix conflictsIngo Molnar1-0/+1
2017-08-17Merge branch 'core' into arm/tegraJoerg Roedel1-220/+9
2017-08-15iommu/amd: Make use of iova queue flushingJoerg Roedel1-220/+9
2017-08-15iommu/amd: Don't copy GCR3 table root pointerBaoquan He1-25/+3
2017-08-15iommu/amd: Use is_attach_deferred call-backBaoquan He1-1/+22
2017-08-15iommu/amd: Do sanity check for address translation and irq remap of old dev t...Baoquan He1-5/+0
2017-08-15iommu/amd: Add function copy_dev_tables()Baoquan He1-1/+1
2017-08-15iommu/amd: Define bit fields for DTE particularlyBaoquan He1-4/+4
2017-08-15Revert "iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel"Baoquan He1-2/+1
2017-07-25iommu/amd: Enable ga_log_intr when enabling guest_modeSuravee Suthikulpanit1-0/+1
2017-07-18iommu/amd: Allow the AMD IOMMU to work with memory encryptionTom Lendacky1-14/+16
2017-07-12Merge tag 'iommu-updates-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-166/+292
2017-07-06Merge tag 'dma-mapping-4.13' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds1-5/+15
2017-07-03Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-7/+15
2017-06-28x86: remove arch specific dma_supported implementationChristoph Hellwig1-0/+2
2017-06-28iommu/amd: implement ->mapping_errorChristoph Hellwig1-5/+13
2017-06-28Merge branches 'iommu/fixes', 'arm/rockchip', 'arm/renesas', 'arm/smmu', 'arm...Joerg Roedel1-166/+292
2017-06-28iommu/amd: Fix interrupt remapping when disable guest_modeSuravee Suthikulpanit1-4/+2
2017-06-22iommu/amd: Use named irq domain interfaceThomas Gleixner1-3/+10
2017-06-22iommu/amd: Add name to irq chipThomas Gleixner1-4/+5
2017-06-22iommu/amd: Free already flushed ring-buffer entries before full-checkJoerg Roedel1-3/+9
2017-06-16iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernelJoerg Roedel1-1/+2
2017-06-08iommu/amd: Remove queue_release() functionJoerg Roedel1-20/+8
2017-06-08iommu/amd: Add per-domain timer to flush per-cpu queuesJoerg Roedel1-17/+67
2017-06-08iommu/amd: Add flush counters to struct dma_ops_domainJoerg Roedel1-0/+52
2017-06-08iommu/amd: Add locking to per-domain flush-queueJoerg Roedel1-0/+11
2017-06-08iommu/amd: Make use of the per-domain flush queueJoerg Roedel1-4/+56
2017-06-08iommu/amd: Add per-domain flush-queue data structuresJoerg Roedel1-0/+69