Re: [RFC 1/2] powerpc/swiotlb: Dont free up allocated SWIOTLB slab on POWER

2018-04-05 Thread Ram Pai
On Wed, Apr 04, 2018 at 10:48:31PM +1000, Michael Ellerman wrote: > Anshuman Khandual writes: > > Even though SWIOTLB slab gets allocated and initialized on powerpc with > > swiotlb_init() called during mem_init(), it gets released away again on > > POWER platform because 'ppc_swiotlb_enable' neve

Re: [RFC 1/2] powerpc/swiotlb: Dont free up allocated SWIOTLB slab on POWER

2018-04-04 Thread Michael Ellerman
Anshuman Khandual writes: > Even though SWIOTLB slab gets allocated and initialized on powerpc with > swiotlb_init() called during mem_init(), it gets released away again on > POWER platform because 'ppc_swiotlb_enable' never gets set. The function > swiotlb_detect_4g() checks for 4GB memory and t

[RFC 1/2] powerpc/swiotlb: Dont free up allocated SWIOTLB slab on POWER

2018-04-03 Thread Anshuman Khandual
Even though SWIOTLB slab gets allocated and initialized on powerpc with swiotlb_init() called during mem_init(), it gets released away again on POWER platform because 'ppc_swiotlb_enable' never gets set. The function swiotlb_detect_4g() checks for 4GB memory and then sets the variable 'ppc_swiotlb_