Thread (2 messages) 2 messages, 2 authors, 2016-08-26

Re: [PATCH] powerpc/fsl_pci: Size upper inbound window based on RAM size

From: Tillmann Heidsieck <hidden>
Date: 2016-08-26 07:05:07

Hi Scott,

thanks for the patch! This one works for my setup:
T4240, 12GB Ram and Radeon E6760.

On 2016-08-26 08:38, Scott Wood wrote:
This allows PCI devices that can only address (e.g.) 36 or 40 bit DMA 
to
use direct DMA, at the cost of not being able to DMA to non-RAM 
addresses
(this doesn't affect MSIs as there is a separate dedicated window for
that) which we wouldn't have been able to do anyway if the RAM size 
didn't
trigger the creation of the second inbound window.

It also fixes an off-by-one error that set dma_direct_ops on PCI 
devices
whose dma mask could address all the space below the DMA offset
(previously 40 bits), but not the window that starts at the DMA offset.

Signed-off-by: Scott Wood <oss@buserror.net>
Cc: Tillmann Heidsieck <redacted>
---
Tested-by: Tillmann Heidsieck <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help