On 06/28/18 08:25, Zeng, Star wrote:
> My understanding is MMIO is not managed by UEFI memory services, but GCD 
> services.
> PI spec says " If the memory range specified by BaseAddress and Length is of 
> type EfiGcdMemoryTypeSystemMemory or EfiGcdMemoryTypeMoreReliable, then the 
> memory range may be automatically *allocated* for use by the *UEFI memory 
> services*." in AddMemorySpace() description.
> 
> For MMIO, the code needs to use AddMemorySpace() + AllocateMemorySpace().

Right, after seeing today the (updated) AllocatePages() failure,
reported by Brijesh, I came to the same conclusion. Thank you for
correcting my initial suggestion! It's not easy to keep this details in
mind :)

Laszlo
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to