public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Unable to Loacte EdkiiIoMmuProtocol.
@ 2017-11-27 11:24 Amit kumar
  2017-11-27 14:01 ` Yao, Jiewen
  2017-11-27 15:58 ` Andrew Fish
  0 siblings, 2 replies; 3+ messages in thread
From: Amit kumar @ 2017-11-27 11:24 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

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 (&gEdkiiIoMmuProtocolGuid, NULL, (VOID **)&mIoMmuProtocol);
      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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to Loacte EdkiiIoMmuProtocol.
  2017-11-27 11:24 Unable to Loacte EdkiiIoMmuProtocol Amit kumar
@ 2017-11-27 14:01 ` Yao, Jiewen
  2017-11-27 15:58 ` Andrew Fish
  1 sibling, 0 replies; 3+ messages in thread
From: Yao, Jiewen @ 2017-11-27 14:01 UTC (permalink / raw)
  To: Amit kumar, edk2-devel@lists.01.org

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-bounces@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 (&gEdkiiIoMmuProtocolGuid, NULL, (VOID
> **)&mIoMmuProtocol);
>       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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to Loacte EdkiiIoMmuProtocol.
  2017-11-27 11:24 Unable to Loacte EdkiiIoMmuProtocol Amit kumar
  2017-11-27 14:01 ` Yao, Jiewen
@ 2017-11-27 15:58 ` Andrew Fish
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Fish @ 2017-11-27 15:58 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Should drivers call gEdkiiIoMmuProtocolGuid directly or just use PciIo Protocol? 

Thanks,

Andrew Fish


> On Nov 27, 2017, at 3:24 AM, Amit kumar <akamit91@hotmail.com> 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 (&gEdkiiIoMmuProtocolGuid, NULL, (VOID **)&mIoMmuProtocol);
>      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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-27 15:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-27 11:24 Unable to Loacte EdkiiIoMmuProtocol Amit kumar
2017-11-27 14:01 ` Yao, Jiewen
2017-11-27 15:58 ` Andrew Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox