summaryrefslogtreecommitdiff
path: root/samples/ftrace/sample-trace-array.c
diff options
context:
space:
mode:
authorLeonardo Bras <leobras.c@gmail.com>2020-08-05 00:04:55 -0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-09-08 22:57:11 +1000
commit8c0d51592f6f0123953633d1ecf21e843fce0bfd (patch)
tree243a219063c0a7a51e4ca360def218a155091421 /samples/ftrace/sample-trace-array.c
parent74d0b3994e147a2b503170b5e02f1d07dc086586 (diff)
powerpc/pseries/iommu: Allow bigger 64bit window by removing default DMA window
On LoPAR "DMA Window Manipulation Calls", it's recommended to remove the default DMA window for the device, before attempting to configure a DDW, in order to make the maximum resources available for the next DDW to be created. This is a requirement for using DDW on devices in which hypervisor allows only one DMA window. If setting up a new DDW fails anywhere after the removal of this default DMA window, it's needed to restore the default DMA window. For this, an implementation of ibm,reset-pe-dma-windows rtas call is needed: Platforms supporting the DDW option starting with LoPAR level 2.7 implement ibm,ddw-extensions. The first extension available (index 2) carries the token for ibm,reset-pe-dma-windows rtas call, which is used to restore the default DMA window for a device, if it has been deleted. It does so by resetting the TCE table allocation for the PE to it's boot time value, available in "ibm,dma-window" device tree node. Signed-off-by: Leonardo Bras <leobras.c@gmail.com> Tested-by: David Dai <zdai@linux.vnet.ibm.com> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200805030455.123024-5-leobras.c@gmail.com
Diffstat (limited to 'samples/ftrace/sample-trace-array.c')
0 files changed, 0 insertions, 0 deletions