diff options
author | 2017-12-20 00:29:25 +0100 | |
---|---|---|
committer | 2017-12-21 11:09:52 +0000 | |
commit | 2fd0c9d966cc11bb5f73556dd788d12f501d8755 (patch) | |
tree | 28a5763aeb24deb2814a45b8e0b82e5b995fb7b4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI: designware-ep: Read-only registers need DBI_RO_WR_EN to be writable (diff) | |
download | linux-dev-2fd0c9d966cc11bb5f73556dd788d12f501d8755.tar.xz linux-dev-2fd0c9d966cc11bb5f73556dd788d12f501d8755.zip |
PCI: designware-ep: Pre-allocate memory for MSI in dw_pcie_ep_init
Certain SoCs need to map the MSI address in raise_irq.
To map an address, you first need to call pci_epc_mem_alloc_addr(),
however, pci_epc_mem_alloc_addr() calls ioremap() (which can sleep).
Since raise_irq is only called from atomic context, we can't call
pci_epc_mem_alloc_addr() from raise_irq.
Pre-allocate a page in dw_pcie_ep_init(), so that this page can later
be used to map/unmap the MSI address in raise_irq.
Tested-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Joao Pinto <jpinto@synopsys.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions