On Thursday, September 15, 2016 8:02:27 AM CEST Gabriele Paoloni wrote:
> From <<3.1.1. Open Firmware Properties for Bus Nodes>> in
> I quote:
> "There shall be an entry in the "ranges" property for each
> of the Memory and/or I/O spaces if that address space is
> mapped through the bridge."
> It seems to me that it is ok to have 1:1 address mapping and that
> therefore of_translate_address() should fail if "ranges" is not
The key here is the definition of "mapped through the bridge".
I can only understand this as "directly mapped", i.e. an I/O
port of the child bus corresponds directly to a memory address
on the parent bus, but this is not the case here.
The problem with adding the mapping here is that it looks
like it should be valid to create a page table entry for
the address returned from the translation and access it through
a pointer dereference, but that is clearly not possible.
> This is also explained quite well in
> what do you think?
This is a separate issue, and only relevant for Apple Macintosh
machines as well as the PA-Semi sdc.