Date
1 - 3 of 3
Clarification needed for PCI address translation
On Mon, 11 May 2020 at 05:36, Pankaj Bansal <pankaj.bansal@...> wrote:That is what confuses me. Why is this convoluted logic needed altogether ?example I mention in LX2160A Why can't we use direct translation values (instead of MAX_UINT64 + 1 - translation) ? Regards, Pankaj Bansal |
|
But won't it?
toggle quoted message
Show quoted text
There can be only two scenarios : 1. PCI address space coincides with CPU address space. In this case host address = device address and translation = 0 2. PCI address space lies at some offset in CPU address space. Like the example I mention in LX2160A In this case host address = device address + translation, where translation > 0 Can there be a scenario where translation < 0 ? I don't think so Regards, Pankaj Bansal -----Original Message----- |
|
Ni, Ray
I don't think the assumption is valid that host address be "always" greater than device address.
toggle quoted message
Show quoted text
-----Original Message----- |
|