Messages in this thread | | | Date | Thu, 10 Jan 2013 14:06:14 -0700 | From | Jason Gunthorpe <> | Subject | Re: [PATCH 05/14] lib: Add I/O map cache implementation |
| |
On Thu, Jan 10, 2013 at 09:20:07PM +0100, Thierry Reding wrote:
> > Arnd's version is good too, but you would be restricted to aligned > > powers of two for the bus number range in the DT, which is probably > > not that big a deal either? > > Stephen suggested on IRC that we could try to keep a bit of dynamicity > in the allocation scheme if we create the bus mapping when the first > device on the bus is probed and discard the mapping if no devices are > found.
You probably don't need to mess around with 'discard on empty' the kernel should only access bus numbers that are in the range of the subordinate busses of the bridges. So if you establish a mapping on a bus-by-bus basis at first access, it should be fine and very close to minimal..
Jason
| |