On Thursday, September 15, 2016 8:02:27 AM CEST Gabriele Paoloni wrote: > > From <<3.1.1. Open Firmware Properties for Bus Nodes>> in > http://www.firmware.org/1275/bindings/isa/isa0_4d.ps > > 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 > present. 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 > http://lxr.free-electrons.com/source/drivers/of/address.c#L490 > > what do you think? This is a separate issue, and only relevant for Apple Macintosh machines as well as the PA-Semi sdc. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html