<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/drivers/iommu/intel_irq_remapping.c, branch dev</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2015-06-24T01:27:19+00:00</updated>
<entry>
<title>Merge tag 'iommu-updates-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu</title>
<updated>2015-06-24T01:27:19+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2015-06-24T01:27:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=6eae81a5e2d6646a61146501fd3032a340863c1d'/>
<id>urn:sha1:6eae81a5e2d6646a61146501fd3032a340863c1d</id>
<content type='text'>
Pull IOMMU updates from Joerg Roedel:
 "This time with bigger changes than usual:

   - A new IOMMU driver for the ARM SMMUv3.

     This IOMMU is pretty different from SMMUv1 and v2 in that it is
     configured through in-memory structures and not through the MMIO
     register region.  The ARM SMMUv3 also supports IO demand paging for
     PCI devices with PRI/PASID capabilities, but this is not
     implemented in the driver yet.

   - Lots of cleanups and device-tree support for the Exynos IOMMU
     driver.  This is part of the effort to bring Exynos DRM support
     upstream.

   - Introduction of default domains into the IOMMU core code.

     The rationale behind this is to move functionalily out of the IOMMU
     drivers to common code to get to a unified behavior between
     different drivers.  The patches here introduce a default domain for
     iommu-groups (isolation groups).

     A device will now always be attached to a domain, either the
     default domain or another domain handled by the device driver.  The
     IOMMU drivers have to be modified to make use of that feature.  So
     long the AMD IOMMU driver is converted, with others to follow.

   - Patches for the Intel VT-d drvier to fix DMAR faults that happen
     when a kdump kernel boots.

     When the kdump kernel boots it re-initializes the IOMMU hardware,
     which destroys all mappings from the crashed kernel.  As this
     happens before the endpoint devices are re-initialized, any
     in-flight DMA causes a DMAR fault.  These faults cause PCI master
     aborts, which some devices can't handle properly and go into an
     undefined state, so that the device driver in the kdump kernel
     fails to initialize them and the dump fails.

     This is now fixed by copying over the mapping structures (only
     context tables and interrupt remapping tables) from the old kernel
     and keep the old mappings in place until the device driver of the
     new kernel takes over.  This emulates the the behavior without an
     IOMMU to the best degree possible.

   - A couple of other small fixes and cleanups"

* tag 'iommu-updates-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (69 commits)
  iommu/amd: Handle large pages correctly in free_pagetable
  iommu/vt-d: Don't disable IR when it was previously enabled
  iommu/vt-d: Make sure copied over IR entries are not reused
  iommu/vt-d: Copy IR table from old kernel when in kdump mode
  iommu/vt-d: Set IRTA in intel_setup_irq_remapping
  iommu/vt-d: Disable IRQ remapping in intel_prepare_irq_remapping
  iommu/vt-d: Move QI initializationt to intel_setup_irq_remapping
  iommu/vt-d: Move EIM detection to intel_prepare_irq_remapping
  iommu/vt-d: Enable Translation only if it was previously disabled
  iommu/vt-d: Don't disable translation prior to OS handover
  iommu/vt-d: Don't copy translation tables if RTT bit needs to be changed
  iommu/vt-d: Don't do early domain assignment if kdump kernel
  iommu/vt-d: Allocate si_domain in init_dmars()
  iommu/vt-d: Mark copied context entries
  iommu/vt-d: Do not re-use domain-ids from the old kernel
  iommu/vt-d: Copy translation tables from old kernel
  iommu/vt-d: Detect pre enabled translation
  iommu/vt-d: Make root entry visible for hardware right after allocation
  iommu/vt-d: Init QI before root entry is allocated
  iommu/vt-d: Cleanup log messages
  ...
</content>
</entry>
<entry>
<title>iommu/vt-d: Don't disable IR when it was previously enabled</title>
<updated>2015-06-16T08:59:36+00:00</updated>
<author>
<name>Joerg Roedel</name>
<email>jroedel@suse.de</email>
</author>
<published>2015-06-12T13:15:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=571dbbd4d044e11c78bc077acb3ccef4c77b096e'/>
<id>urn:sha1:571dbbd4d044e11c78bc077acb3ccef4c77b096e</id>
<content type='text'>
Keep it enabled in kdump kernel to guarantee interrupt
delivery.

Tested-by: ZhenHua Li &lt;zhen-hual@hp.com&gt;
Tested-by: Baoquan He &lt;bhe@redhat.com&gt;
Signed-off-by: Joerg Roedel &lt;jroedel@suse.de&gt;
</content>
</entry>
<entry>
<title>iommu/vt-d: Make sure copied over IR entries are not reused</title>
<updated>2015-06-16T08:59:36+00:00</updated>
<author>
<name>Joerg Roedel</name>
<email>jroedel@suse.de</email>
</author>
<published>2015-06-12T13:06:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=7c3c9876d98a76b97d16c0f46cb108e95542b212'/>
<id>urn:sha1:7c3c9876d98a76b97d16c0f46cb108e95542b212</id>
<content type='text'>
Walk over the copied entries and mark the present ones as
allocated.

Tested-by: ZhenHua Li &lt;zhen-hual@hp.com&gt;
Tested-by: Baoquan He &lt;bhe@redhat.com&gt;
Signed-off-by: Joerg Roedel &lt;jroedel@suse.de&gt;
</content>
</entry>
<entry>
<title>iommu/vt-d: Copy IR table from old kernel when in kdump mode</title>
<updated>2015-06-16T08:59:36+00:00</updated>
<author>
<name>Joerg Roedel</name>
<email>jroedel@suse.de</email>
</author>
<published>2015-06-12T13:00:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=af3b358e48115588d905cc07a47b3f356e0d01d1'/>
<id>urn:sha1:af3b358e48115588d905cc07a47b3f356e0d01d1</id>
<content type='text'>
When we are booting into a kdump kernel and find IR enabled,
copy over the contents of the previous IR table so that
spurious interrupts will not be target aborted.

Tested-by: ZhenHua Li &lt;zhen-hual@hp.com&gt;
Tested-by: Baoquan He &lt;bhe@redhat.com&gt;
Signed-off-by: Joerg Roedel &lt;jroedel@suse.de&gt;
</content>
</entry>
<entry>
<title>iommu/vt-d: Set IRTA in intel_setup_irq_remapping</title>
<updated>2015-06-16T08:59:35+00:00</updated>
<author>
<name>Joerg Roedel</name>
<email>jroedel@suse.de</email>
</author>
<published>2015-06-12T12:35:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=d4d1c0f3d6a9558fe3857853afdf2f93e1679c03'/>
<id>urn:sha1:d4d1c0f3d6a9558fe3857853afdf2f93e1679c03</id>
<content type='text'>
This way we can give the hardware the new IR table right
after it has been allocated and initialized.

Tested-by: ZhenHua Li &lt;zhen-hual@hp.com&gt;
Tested-by: Baoquan He &lt;bhe@redhat.com&gt;
Signed-off-by: Joerg Roedel &lt;jroedel@suse.de&gt;
</content>
</entry>
<entry>
<title>iommu/vt-d: Disable IRQ remapping in intel_prepare_irq_remapping</title>
<updated>2015-06-16T08:59:35+00:00</updated>
<author>
<name>Joerg Roedel</name>
<email>jroedel@suse.de</email>
</author>
<published>2015-06-12T12:25:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=c676f5876bc088ace35ece98042a3be6d8329530'/>
<id>urn:sha1:c676f5876bc088ace35ece98042a3be6d8329530</id>
<content type='text'>
Move it to this function for now, so that the copy routines
for irq remapping take no effect yet.

Tested-by: ZhenHua Li &lt;zhen-hual@hp.com&gt;
Tested-by: Baoquan He &lt;bhe@redhat.com&gt;
Signed-off-by: Joerg Roedel &lt;jroedel@suse.de&gt;
</content>
</entry>
<entry>
<title>iommu/vt-d: Move QI initializationt to intel_setup_irq_remapping</title>
<updated>2015-06-16T08:59:35+00:00</updated>
<author>
<name>Joerg Roedel</name>
<email>jroedel@suse.de</email>
</author>
<published>2015-06-12T12:23:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=9e4e49dfde3bfac48d431893863ac3b9d3f3774a'/>
<id>urn:sha1:9e4e49dfde3bfac48d431893863ac3b9d3f3774a</id>
<content type='text'>
QI needs to be enabled when we program the irq remapping
table to hardware in the prepare phase later.

Tested-by: ZhenHua Li &lt;zhen-hual@hp.com&gt;
Tested-by: Baoquan He &lt;bhe@redhat.com&gt;
Signed-off-by: Joerg Roedel &lt;jroedel@suse.de&gt;
</content>
</entry>
<entry>
<title>iommu/vt-d: Move EIM detection to intel_prepare_irq_remapping</title>
<updated>2015-06-16T08:59:35+00:00</updated>
<author>
<name>Joerg Roedel</name>
<email>jroedel@suse.de</email>
</author>
<published>2015-06-12T12:15:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=23256d0b350014a05c1edf0f355546aa1ff2eb55'/>
<id>urn:sha1:23256d0b350014a05c1edf0f355546aa1ff2eb55</id>
<content type='text'>
We need this to be detected already when we program the irq
remapping table pointer to hardware.

Tested-by: ZhenHua Li &lt;zhen-hual@hp.com&gt;
Tested-by: Baoquan He &lt;bhe@redhat.com&gt;
Signed-off-by: Joerg Roedel &lt;jroedel@suse.de&gt;
</content>
</entry>
<entry>
<title>iommu/vt-d: Cleanup log messages</title>
<updated>2015-06-16T08:59:33+00:00</updated>
<author>
<name>Joerg Roedel</name>
<email>jroedel@suse.de</email>
</author>
<published>2015-06-12T07:57:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=9f10e5bf62f7b9937afeee8ff0a491f87438e2a2'/>
<id>urn:sha1:9f10e5bf62f7b9937afeee8ff0a491f87438e2a2</id>
<content type='text'>
Give them a common prefix that can be grepped for and
improve the wording here and there.

Tested-by: ZhenHua Li &lt;zhen-hual@hp.com&gt;
Tested-by: Baoquan He &lt;bhe@redhat.com&gt;
Signed-off-by: Joerg Roedel &lt;jroedel@suse.de&gt;
</content>
</entry>
<entry>
<title>iommu, x86: Properly handle posted interrupts for IOMMU hotplug</title>
<updated>2015-06-12T09:33:52+00:00</updated>
<author>
<name>Feng Wu</name>
<email>feng.wu@intel.com</email>
</author>
<published>2015-06-09T05:20:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=c1d993341e46867af9412cf7f93f535895bbe3a7'/>
<id>urn:sha1:c1d993341e46867af9412cf7f93f535895bbe3a7</id>
<content type='text'>
Return error when inserting a new IOMMU which doesn't support posted
interrupts if posted interrupts are already enabled.

Signed-off-by: Feng Wu &lt;feng.wu@intel.com&gt;
Reviewed-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Acked-by: Joerg Roedel &lt;joro@8bytes.org&gt;
Cc: jiang.liu@linux.intel.com
Cc: iommu@lists.linux-foundation.org
Cc: dwmw2@infradead.org
Link: http://lkml.kernel.org/r/1433827237-3382-11-git-send-email-feng.wu@intel.com
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
</content>
</entry>
</feed>
