]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/iommu: remove default window before attempting DDW manipulation
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>
Tue, 15 May 2012 07:04:32 +0000 (07:04 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jul 2012 04:14:39 +0000 (14:14 +1000)
commit2a07d813cdd8625c3c7a8f97f300d7f692b1d9b0
tree6540284837be86984e1de8de96da48e95910ad54
parent8a651d6752fbe46398b0c9e5e07b8243da55406a
powerpc/pseries/iommu: remove default window before attempting DDW manipulation

An upcoming release of firmware will add DDW extensions, in particular
an API to "reset" the DMA window to the original configuration (32-bit,
2GB in size). With that API available, we can safely remove the default
window, increasing the resources available to firmware for creation of
larger windows for the slot in question -- if we encounter an error, we
can use the new API to reset the state of the slot.

Further, this same release of firmware will make it a hard requirement
for OSes to release the existing window before any other windows will be
shown as available, to avoid conflicts in addressing between the two
windows.

In anticipation of these changes, always remove the default window
before we do any DDW manipulations.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/iommu.c