On Fri, Aug 29, 2014 at 08:12:08PM +1000, Alexey Kardashevskiy wrote: > We are going to have multiple DMA windows per PHB and we want them to > migrate so we need a predictable way of assigning LIOBNs. > > This introduces a macro which makes up a LIOBN from fixed prefix, > PHB index (unique PHB id) and window number. > > This introduces a SPAPR_PCI_DMA_WINDOW_NUM() to know the window number > from LIOBN. It is used to distinguish the default 32bit windows from > dynamic windows and avoid picking default DMA window properties from > a wrong TCE table. > > Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au> -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
pgpL_rTz2FLR6.pgp
Description: PGP signature