[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151014154251.GA7271@infradead.org>
Date: Wed, 14 Oct 2015 08:42:51 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Nishanth Aravamudan <nacc@...ux.vnet.ibm.com>
Cc: Christoph Hellwig <hch@...radead.org>,
Matthew Wilcox <willy@...ux.intel.com>,
Keith Busch <keith.busch@...el.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Michael Ellerman <mpe@...erman.id.au>,
Alexey Kardashevskiy <aik@...abs.ru>,
David Gibson <david@...son.dropbear.id.au>,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org
Subject: Re: [PATCH 1/5 v2] dma-mapping: add generic dma_get_page_shift API
Hi Nishanth,
sorry for the late reply.
> > On Power, since it's technically variable, we'd need a function. So are
> > you suggesting define'ing it to a function just on Power and leaving it
> > a constant elsewhere?
> >
> > I noticed that sparc has a IOMMU_PAGE_SHIFT already, fwiw.
>
> Sorry, I should have been more specific -- I'm ready to spin out a v3,
> with a sparc-specific function.
>
> Are you ok with leaving it a function for now (the only caller is in
> NVMe obviously).
I guess we do indeed need a function then. I'll take a look at your
patch, but as long you found a way to avoid adding too much boilerplate
code it should be fine.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists