On Wed, Mar 18, 2020 at 12:21:11PM +0530, Suganath Prabu Subramani wrote: > Hi Christoph, > > We will simplify the logic as below, let us know your comments. > > #use one dma pool for RDPQ's, thus removes the logic of using second dma > pool with align. > The requirement is, RDPQ memory blocks starting & end address should have > the same > higher 32 bit address. > > 1) At driver load, set DMA Mask to 64 and allocate memory for RDPQ's. > > 2) Check if allocated resources are in the same 4GB range. > > 3) If #2 is true, continue with 64 bit DMA and go to #6 > > 4) If #2 is false, then free all the resources from #1. > > 5) Set DMA mask to 32 and allocate RDPQ's. > > 6) Proceed with driver loading and other allocations. Yes, please do.