platforms/powernv: Fix update of NVLink DMA mask
Michael Ellerman
mpe at ellerman.id.au
Tue Jan 12 23:32:50 AEDT 2016
On Fri, 2016-08-01 at 00:35:09 UTC, Alistair Popple wrote:
> The emulated NVLink PCI devices share the same IODA2 TCE tables but
> only support a single TVT (instead of the normal two for PCI
> devices). This requires the kernel to manually replace windows with
> either the bypass or non-bypass window depending on what the driver
> has requested.
>
> Unfortunately an incorrect optimisation was made in
> pnv_pci_ioda_dma_set_mask() which caused updating of some NPU device
> PEs to be skipped in certain configurations due to an incorrect
> assumption that a NULL peer PE in the array indicated there were no
> more peers present. This patch fixes the problem by ensuring all peer
> PEs are updated.
>
> Signed-off-by: Alistair Popple <alistair at popple.id.au>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/419dbd5e1ff0e45a6e1d28c1f7
cheers
More information about the Linuxppc-dev
mailing list