summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/opal.c
diff options
context:
space:
mode:
authorGavin Shan2016-05-05 04:04:16 +0200
committerMichael Ellerman2016-05-11 13:54:22 +0200
commit2b923ed1bd96cc471bb0f0eddfed6ae4753d717b (patch)
treee4263dd6fa6e6b93488dea5e5f192620fe82f9af /arch/powerpc/platforms/powernv/opal.c
parentpowerpc/powernv: Remove DMA32 PE list (diff)
downloadkernel-qcow2-linux-2b923ed1bd96cc471bb0f0eddfed6ae4753d717b.tar.gz
kernel-qcow2-linux-2b923ed1bd96cc471bb0f0eddfed6ae4753d717b.tar.xz
kernel-qcow2-linux-2b923ed1bd96cc471bb0f0eddfed6ae4753d717b.zip
powerpc/powernv/ioda1: Improve DMA32 segment track
In current implementation, the DMA32 segments required by one specific PE isn't calculated with the information hold in the PE independently. It conflicts with the PCI hotplug design: PE centralized, meaning the PE's DMA32 segments should be calculated from the information hold in the PE independently. This introduces an array (@dma32_segmap) for every PHB to track the DMA32 segmeng usage. Besides, this moves the logic calculating PE's consumed DMA32 segments to pnv_pci_ioda1_setup_dma_pe() so that PE's DMA32 segments are calculated/allocated from the information hold in the PE (DMA32 weight). Also the logic is improved: we try to allocate as much DMA32 segments as we can. It's acceptable that number of DMA32 segments less than the expected number are allocated. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal.c')
0 files changed, 0 insertions, 0 deletions