Thanks Andrew and Tao.

I am using both OS assigned virtual address and need DMAble physical address to 
be passed to my controller firmware.  So when IOMMU (yes it is covered in the 
ACPI) is present the translation results in fault.  As Tao mentioned below, the 
RMRR is not set for the RUNTIME Memory(EfiRuntimeServicesData).  Is there a way 
to set that from uefi OptionROM (editing RMRR table and setting our allocated 
memory address as reserved for our device and hence the IOMMU will not fault 
the translation)?

Thanks
Sathya

From: Tao Yuan [mailto:[email protected]]
Sent: Thursday, May 16, 2013 10:50 AM
To: [email protected]
Subject: Re: [edk2] Memory reserved using EfiRuntimeServicesData and IOMMU

Hi Sathya,
  To your question, no.   Most of memory region reserved as 
EfiRuntimeServicesData will NOT be reported in RMRR table.
  VT-d spec:

" BIOS allocated reserved memory ranges that may be DMA
targets. BIOS may report each such reserved memory region through the RMRR 
structures, along
with the devices that requires access to the specified reserved memory region. 
Reserved memory
ranges that are either not DMA targets, or memory ranges that may be target of 
BIOS initiated DMA
only during pre-boot phase (such as from a boot disk drive) must not be 
included in the reserved
memory region reporting."
Thanks,
Tao

On Tue, May 14, 2013 at 9:16 AM, Prakash, Sathya 
<[email protected]<mailto:[email protected]>> wrote:
Folks,
We allocate some host memory as EfiRuntimeServicesData and utilize the memory 
in host driver for a certain purpose. This works fine with normal cases, but 
will it work with IOMMU?. I see the IOMMU module in linux needs to know about 
the reserved regions through RMRR address table to map the access, does the 
GetMemoryMap supports this?

Thanks
Sathya



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
edk2-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to