I am not sure the open source community is aligned on what mails go to 
"discuss" mailing list. CC to "devel" mailing list.

Please read the PI spec on how the IO space is converted from different states.

The initial non-exist IO space is created based on the IO address width in the 
CPU INFO HOB.
You cannot add a non-exist IO space using GCD services.

Thanks,
Ray

From: Wasim Khan <wasim.k...@nxp.com>
Sent: Friday, April 3, 2020 12:25 PM
To: disc...@edk2.groups.io; Ni, Ray <ray...@intel.com>; Bi, Dandan 
<dandan...@intel.com>; Gao, Liming <liming....@intel.com>; Wu, Hao A 
<hao.a...@intel.com>; leif.lindh...@linaro.org
Subject: Re: Query: Add GCD IO Space Map

Hi ,

Any clue on this ?

Get Outlook for Android<https://aka.ms/ghei36>
________________________________
From: disc...@edk2.groups.io<mailto:disc...@edk2.groups.io> 
<disc...@edk2.groups.io<mailto:disc...@edk2.groups.io>> on behalf of Wasim Khan 
via groups.io 
<wasim.khan=nxp....@groups.io<mailto:wasim.khan=nxp....@groups.io>>
Sent: Friday, April 3, 2020 1:18:13 AM
To: disc...@edk2.groups.io<mailto:disc...@edk2.groups.io> 
<disc...@edk2.groups.io<mailto:disc...@edk2.groups.io>>; 
ruiyu...@intel.com<mailto:ruiyu...@intel.com> 
<ruiyu...@intel.com<mailto:ruiyu...@intel.com>>; 
dandan...@intel.com<mailto:dandan...@intel.com> 
<dandan...@intel.com<mailto:dandan...@intel.com>>; 
liming....@intel.com<mailto:liming....@intel.com> 
<liming....@intel.com<mailto:liming....@intel.com>>; 
hao.a...@intel.com<mailto:hao.a...@intel.com> 
<hao.a...@intel.com<mailto:hao.a...@intel.com>>
Subject: [edk2-discuss] Query: Add GCD IO Space Map

Hi All,

The Initial GCD I/O Space Map printed from DxeMain is :

GCD:Initial GCD I/O Space Map
GCDIoType  Range
========== =================================
NonExist   0000000000000000-00000000000FFFFF


I require some IO memory (for PciHostBridgeDxe) , i need NonExist IO chuck from 
0x90_00010000 - 0x90_0001ffff , for which I tried BuildResourceDescriptorHob() 
from PEI Phase

BuildResourceDescriptorHob (
          EFI_RESOURCE_IO,
          ResourceAttributes,
          0x9000010000,
          0x10000
      );

And gDS->AddIoSpace (EfiGcdIoTypeIo, 0x9000010000, 0x10000) from a DXE driver . 
But in both case GCD AddIoSpace fails with Status as Unsupported.

GCD:AddIoSpace(Base=0000009000010000,Length=0000000000010000)
  GcdIoType    = I/O
  Status = Unsupported
GCDIoType  Range
========== =================================
NonExist   0000000000000000-00000000000FFFFF



Can someone help that how can I add a NonExist GCDIoType  memory ?




Also, why does the initial GCD I/O space map shows small range as compared with 
GCD Memory Space Map?

GCD:Initial GCD Memory Space Map
GCDMemType Range                             Capabilities     Attributes
========== ================================= ================ ================
NonExist   0000000000000000-00000FFFFFFFFFFF 0000000000000000 0000000000000000

GCD:Initial GCD I/O Space Map
GCDIoType  Range
========== =================================
NonExist   0000000000000000-00000000000FFFFF


Regards,
Wasim





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#56932): https://edk2.groups.io/g/devel/message/56932
Mute This Topic: https://groups.io/mt/72743569/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to