Re: [edk2] Unable to Loacte EdkiiIoMmuProtocol.

2017-11-27 Thread Andrew Fish
Should drivers call gEdkiiIoMmuProtocolGuid directly or just use PciIo 
Protocol? 

Thanks,

Andrew Fish


> On Nov 27, 2017, at 3:24 AM, Amit kumar  wrote:
> 
> Hi.
> I am trying to allocate a mem buffer above 4Gb address but the allocation
> since i am unable to locate EdkiiIoMmuProtocol.
> 
> Status = gBS->LocateProtocol (, NULL, (VOID 
> **));
>  Status = mIoMmuProtocol->AllocateBuffer (
>   mIoMmuProtocol,
>   MaxAllocateType,
>   EfiBootServicesData,
>   1,
>  HostAddress,
>  EDKII_IOMMU_ATTRIBUTE_DUAL_ADDRESS_CYCLE
>  );
> 
> 
> can somebody tell me the right way to do it. ?
> 
> 
> Best Regards
> Amit Kumar
> 
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel

___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] Unable to Loacte EdkiiIoMmuProtocol.

2017-11-27 Thread Yao, Jiewen
You need include a driver to produce gEdkiiIoMmuProtocolGuid.

One sample is IntelSiliconPkg\Feature\VTd\IntelVTdDxe

Thank you
Yao Jiewen

> -Original Message-
> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Amit
> kumar
> Sent: Monday, November 27, 2017 7:24 PM
> To: edk2-devel@lists.01.org
> Subject: [edk2] Unable to Loacte EdkiiIoMmuProtocol.
> 
> Hi.
> I am trying to allocate a mem buffer above 4Gb address but the allocation
> since i am unable to locate EdkiiIoMmuProtocol.
> 
> Status = gBS->LocateProtocol (, NULL, (VOID
> **));
>   Status = mIoMmuProtocol->AllocateBuffer (
>mIoMmuProtocol,
>MaxAllocateType,
>EfiBootServicesData,
>1,
>   HostAddress,
>   EDKII_IOMMU_ATTRIBUTE_DUAL_ADDRESS_CYCLE
>   );
> 
> 
> can somebody tell me the right way to do it. ?
> 
> 
> Best Regards
> Amit Kumar
> 
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


[edk2] Unable to Loacte EdkiiIoMmuProtocol.

2017-11-27 Thread Amit kumar
Hi.
I am trying to allocate a mem buffer above 4Gb address but the allocation
since i am unable to locate EdkiiIoMmuProtocol.

Status = gBS->LocateProtocol (, NULL, (VOID 
**));
  Status = mIoMmuProtocol->AllocateBuffer (
   mIoMmuProtocol,
   MaxAllocateType,
   EfiBootServicesData,
   1,
  HostAddress,
  EDKII_IOMMU_ATTRIBUTE_DUAL_ADDRESS_CYCLE
  );


can somebody tell me the right way to do it. ?


Best Regards
Amit Kumar

___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel