<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux.git/drivers/pci/intel-iommu.c, branch master</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=master</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/'/>
<updated>2011-06-21T08:49:30+00:00</updated>
<entry>
<title>x86/ia64: intel-iommu: move to drivers/iommu/</title>
<updated>2011-06-21T08:49:30+00:00</updated>
<author>
<name>Ohad Ben-Cohen</name>
<email>ohad@wizery.com</email>
</author>
<published>2011-06-10T18:42:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=166e9278a3f98bab29ebb3d685a81cfb11b98be0'/>
<id>urn:sha1:166e9278a3f98bab29ebb3d685a81cfb11b98be0</id>
<content type='text'>
This should ease finding similarities with different platforms,
with the intention of solving problems once in a generic framework
which everyone can use.

Note: to move intel-iommu.c, the declaration of pci_find_upstream_pcie_bridge()
has to move from drivers/pci/pci.h to include/linux/pci.h. This is handled
in this patch, too.

As suggested, also drop DMAR's EXPERIMENTAL tag while we're at it.

Compile-tested on x86_64.

Signed-off-by: Ohad Ben-Cohen &lt;ohad@wizery.com&gt;
Signed-off-by: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
</content>
</entry>
<entry>
<title>PM / Intel IOMMU: Fix init_iommu_pm_ops() for CONFIG_PM unset</title>
<updated>2011-06-07T19:32:31+00:00</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rjw@sisk.pl</email>
</author>
<published>2011-06-07T19:32:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=99592ba4a80edb84938e7e0cf71fdecff1ce67fd'/>
<id>urn:sha1:99592ba4a80edb84938e7e0cf71fdecff1ce67fd</id>
<content type='text'>
If CONFIG_PM is not set, init_iommu_pm_ops() introduced by commit
134fac3f457f3dd753ecdb25e6da3e5f6629f696 (PCI / Intel IOMMU: Use
syscore_ops instead of sysdev class and sysdev) is not defined
appropriately.  Fix this issue.

Reported-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
</content>
</entry>
<entry>
<title>Merge git://git.infradead.org/iommu-2.6</title>
<updated>2011-06-01T20:48:50+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-06-01T20:48:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f0f52a9463839c52a63c05d6e7d4a330d94a9794'/>
<id>urn:sha1:f0f52a9463839c52a63c05d6e7d4a330d94a9794</id>
<content type='text'>
* git://git.infradead.org/iommu-2.6:
  intel-iommu: Fix off-by-one in RMRR setup
  intel-iommu: Add domain check in domain_remove_one_dev_info
  intel-iommu: Remove Host Bridge devices from identity mapping
  intel-iommu: Use coherent DMA mask when requested
  intel-iommu: Dont cache iova above 32bit
  intel-iommu: Speed up processing of the identity_mapping function
  intel-iommu: Check for identity mapping candidate using system dma mask
  intel-iommu: Only unlink device domains from iommu
  intel-iommu: Enable super page (2MiB, 1GiB, etc.) support
  intel-iommu: Flush unmaps at domain_exit
  intel-iommu: Remove obsolete comment from detect_intel_iommu
  intel-iommu: fix VT-d PMR disable for TXT on S3 resume
</content>
</entry>
<entry>
<title>intel-iommu: Fix off-by-one in RMRR setup</title>
<updated>2011-06-01T11:48:21+00:00</updated>
<author>
<name>David Woodhouse</name>
<email>David.Woodhouse@intel.com</email>
</author>
<published>2011-05-30T23:22:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=70e535d1e5d1e4317e894d6228b762cf9c3fbc6a'/>
<id>urn:sha1:70e535d1e5d1e4317e894d6228b762cf9c3fbc6a</id>
<content type='text'>
We were mapping an extra byte (and hence usually an extra page):
iommu_prepare_identity_map() expects to be given an 'end' argument which
is the last byte to be mapped; not the first byte *not* to be mapped.

Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>intel-iommu: Add domain check in domain_remove_one_dev_info</title>
<updated>2011-06-01T11:47:48+00:00</updated>
<author>
<name>Mike Habeck</name>
<email>habeck@sgi.com</email>
</author>
<published>2011-05-28T18:15:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8519dc4401ddf8a5399f979870bbeeadbc111186'/>
<id>urn:sha1:8519dc4401ddf8a5399f979870bbeeadbc111186</id>
<content type='text'>
The comment in domain_remove_one_dev_info() states "No need to compare
PCI domain; it has to be the same". But for the si_domain that isn't
going to be true, as it consists of all the PCI devices that are
identity mapped thus multiple PCI domains can be in si_domain.  The
code needs to validate the PCI domain too.

Signed-off-by: Mike Habeck &lt;habeck@sgi.com&gt;
Signed-off-by: Mike Travis &lt;travis@sgi.com&gt;
Cc: stable@kernel.org
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>intel-iommu: Remove Host Bridge devices from identity mapping</title>
<updated>2011-06-01T11:47:46+00:00</updated>
<author>
<name>Mike Travis</name>
<email>travis@sgi.com</email>
</author>
<published>2011-05-28T18:15:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=825507d6d059f1cbe2503e0e5a3926225b983aec'/>
<id>urn:sha1:825507d6d059f1cbe2503e0e5a3926225b983aec</id>
<content type='text'>
When using the 1:1 (identity) PCI DMA remapping, PCI Host Bridge devices
that do not use the IOMMU causes a kernel panic.  Fix that by not
inserting those devices into the si_domain.

Signed-off-by: Mike Travis &lt;travis@sgi.com&gt;
Reviewed-by: Mike Habeck &lt;habeck@sgi.com&gt;
Cc: stable@kernel.org
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>intel-iommu: Use coherent DMA mask when requested</title>
<updated>2011-06-01T11:47:45+00:00</updated>
<author>
<name>Mike Travis</name>
<email>travis@sgi.com</email>
</author>
<published>2011-05-28T18:15:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c681d0ba1252954208220ad32248a3e8e2fc98e4'/>
<id>urn:sha1:c681d0ba1252954208220ad32248a3e8e2fc98e4</id>
<content type='text'>
The __intel_map_single function is not honoring the passed in DMA mask.
This results in not using the coherent DMA mask when called from
intel_alloc_coherent().

Signed-off-by: Mike Travis &lt;travis@sgi.com&gt;
Acked-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
Reviewed-by: Mike Habeck &lt;habeck@sgi.com&gt;
Cc: stable@kernel.org
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>intel-iommu: Speed up processing of the identity_mapping function</title>
<updated>2011-06-01T11:47:36+00:00</updated>
<author>
<name>Mike Travis</name>
<email>travis@sgi.com</email>
</author>
<published>2011-05-28T18:15:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cb452a4040bb051d92e85d6e7eb60c11734c1781'/>
<id>urn:sha1:cb452a4040bb051d92e85d6e7eb60c11734c1781</id>
<content type='text'>
When there are a large count of PCI devices, and the pass through
option for iommu is set, much time is spent in the identity_mapping
function hunting though the iommu domains to check if a specific
device is "identity mapped".

Speed up the function by checking the cached info to see if
it's mapped to the static identity domain.

Signed-off-by: Mike Travis &lt;travis@sgi.com&gt;
Reviewed-by: Mike Habeck &lt;habeck@sgi.com&gt;
Cc: stable@kernel.org
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>intel-iommu: Check for identity mapping candidate using system dma mask</title>
<updated>2011-06-01T11:47:34+00:00</updated>
<author>
<name>Chris Wright</name>
<email>chrisw@sous-sol.org</email>
</author>
<published>2011-05-28T18:15:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8fcc5372fbac085199d84a880503ed67aba3fe49'/>
<id>urn:sha1:8fcc5372fbac085199d84a880503ed67aba3fe49</id>
<content type='text'>
The identity mapping code appears to make the assumption that if the
devices dma_mask is greater than 32bits the device can use identity
mapping.  But that is not true: take the case where we have a 40bit
device in a 44bit architecture. The device can potentially receive a
physical address that it will truncate and cause incorrect addresses
to be used.

Instead check to see if the device's dma_mask is large enough
to address the system's dma_mask.

Signed-off-by: Mike Travis &lt;travis@sgi.com&gt;
Reviewed-by: Mike Habeck &lt;habeck@sgi.com&gt;
Cc: stable@kernel.org
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>intel-iommu: Only unlink device domains from iommu</title>
<updated>2011-06-01T11:47:29+00:00</updated>
<author>
<name>Alex Williamson</name>
<email>alex.williamson@redhat.com</email>
</author>
<published>2011-05-24T16:19:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9b4554b21ed07e8556405510638171f0c787742a'/>
<id>urn:sha1:9b4554b21ed07e8556405510638171f0c787742a</id>
<content type='text'>
Commit a97590e5 added unlinking domains from iommus to reciprocate the
iommu from domains unlinking that was already done.  We actually want
to only do this for device domains and never for the static
identity map domain or VM domains.  The SI domain is special and
never freed, while VM domain-&gt;id lives in their own special address
space, separate from iommu-&gt;domain_ids.

In the current code, a VM can get domain-&gt;id zero, then mark that
domain unused when unbound from pci-stub.  This leads to DMAR
write faults when the device is re-bound to the host driver.

Signed-off-by: Alex Williamson &lt;alex.williamson@redhat.com&gt;
Cc: stable@kernel.org
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
</feed>
