18 Sep, 2020
1 commit
-
PASID is defined as a few different types in iommu including "int",
"u32", and "unsigned int". To be consistent and to match with uapi
definitions, define PASID and its variations (e.g. max PASID) as "u32".
"u32" is also shorter and a little more explicit than "unsigned int".No PASID type change in uapi although it defines PASID as __u64 in
some places.Suggested-by: Thomas Gleixner
Signed-off-by: Fenghua Yu
Signed-off-by: Borislav Petkov
Reviewed-by: Tony Luck
Reviewed-by: Lu Baolu
Acked-by: Felix Kuehling
Acked-by: Joerg Roedel
Link: https://lkml.kernel.org/r/1600187413-163670-2-git-send-email-fenghua.yu@intel.com
09 Aug, 2019
1 commit
-
Re-factore the logic for activate/deactivate guest virtual APIC mode (GAM)
into helper functions, and export them for other drivers (e.g. SVM).
to support run-time activate/deactivate of SVM AVIC.Cc: Joerg Roedel
Signed-off-by: Suravee Suthikulpanit
Signed-off-by: Joerg Roedel
05 Jun, 2019
1 commit
-
Based on 1 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation this program is
distributed in the hope that it will be useful but without any
warranty without even the implied warranty of merchantability or
fitness for a particular purpose see the gnu general public license
for more details you should have received a copy of the gnu general
public license along with this program if not write to the free
software foundation inc 59 temple place suite 330 boston ma 02111
1307 usaextracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 136 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Alexios Zavras
Reviewed-by: Allison Randal
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190530000436.384967451@linutronix.de
Signed-off-by: Greg Kroah-Hartman
05 Sep, 2016
3 commits
-
This patch implements irq_set_vcpu_affinity() function to set up interrupt
remapping table entry with vapic mode for pass-through devices.In case requirements for vapic mode are not met, it falls back to set up
the IRTE in legacy mode.Signed-off-by: Suravee Suthikulpanit
Signed-off-by: Joerg Roedel -
Introduces a new IOMMU API, amd_iommu_update_ga(), which allows
KVM (SVM) to update existing posted interrupt IOMMU IRTE when
load/unload vcpu.Signed-off-by: Suravee Suthikulpanit
Signed-off-by: Joerg Roedel -
This patch adds AMD IOMMU guest virtual APIC log (GALOG) handler.
When IOMMU hardware receives an interrupt targeting a blocking vcpu,
it creates an entry in the GALOG, and generates an interrupt to notify
the AMD IOMMU driver.At this point, the driver processes the log entry, and notify the SVM
driver via the registered iommu_ga_log_notifier function.Signed-off-by: Suravee Suthikulpanit
Signed-off-by: Joerg Roedel
09 Jul, 2014
1 commit
-
Any kernel source registering the invalid PPR calback may include the header file with PPR fault flags macros definitions.
Thus we move them to include/linux/amd-iommu.hSigned-off-by: Alexey Skidanov
Signed-off-by: Oded Gabbay
Signed-off-by: Joerg Roedel
01 Mar, 2012
1 commit
-
The hardware-initializtion part of the AMD IOMMU driver is
split out into a seperate function. This function can now be
called either from amd_iommu_init() itself or any other
place if the hardware needs to be ready earlier. This will
be used to implement interrupt remapping for AMD.Signed-off-by: Joerg Roedel
15 Dec, 2011
2 commits
-
This call-back is invoked when the task that is bound to a
pasid is about to exit. The driver can use it to shutdown
all context related to that context in a safe way.Signed-off-by: Joerg Roedel
-
This function can be used to find out which features
necessary for IOMMUv2 usage are available on a given device.Signed-off-by: Joerg Roedel
14 Dec, 2011
1 commit
-
This callback can be used to change the PRI response code
sent to a device when a PPR fault fails.Signed-off-by: Joerg Roedel
12 Dec, 2011
3 commits
-
This patch adds routines to bind a specific process
address-space to a given PASID.Signed-off-by: Joerg Roedel
-
This patch adds the amd_iommu_init_device() and
amd_iommu_free_device() functions which make a device and
the IOMMU ready for IOMMUv2 usage.Signed-off-by: Joerg Roedel
-
Add infrastructure for errata-handling and handle two known
erratas in the IOMMUv2 code.Signed-off-by: Joerg Roedel
21 Jun, 2011
1 commit
-
A few parts of the driver were missing in drivers/iommu.
Move them there to have the complete driver in that
directory.Signed-off-by: Joerg Roedel