Re: [edk2] [RFC v3 3/3] MdeModulePkg/PciBus: return CPU address for GetBarAttributes

2018-02-23 Thread Laszlo Ersek
On 02/23/18 09:53, Heyi Guo wrote: > According to UEFI spec 2.7, PciIo->GetBarAttributes should return host > address (CPU view ddress) rather than device address (PCI view > address), and > device address = host address + address translation offset, > so we subtract translation from device address

[edk2] [RFC v3 3/3] MdeModulePkg/PciBus: return CPU address for GetBarAttributes

2018-02-23 Thread Heyi Guo
According to UEFI spec 2.7, PciIo->GetBarAttributes should return host address (CPU view ddress) rather than device address (PCI view address), and device address = host address + address translation offset, so we subtract translation from device address before returning. Contributed-under: TianoC