From: "Ni, Ray" <ray.ni@intel.com>
To: Wasim Khan <wasim.khan@nxp.com>,
"discuss@edk2.groups.io" <discuss@edk2.groups.io>,
"Bi, Dandan" <dandan.bi@intel.com>,
"Gao, Liming" <liming.gao@intel.com>,
"Wu, Hao A" <hao.a.wu@intel.com>,
"leif.lindholm@linaro.org" <leif.lindholm@linaro.org>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Re: Query: Add GCD IO Space Map
Date: Fri, 3 Apr 2020 06:51:30 +0000 [thread overview]
Message-ID: <734D49CCEBEEF84792F5B80ED585239D5C4D7A71@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <VE1PR04MB670204B034811C573ED029FF90C70@VE1PR04MB6702.eurprd04.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 3152 bytes --]
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.khan@nxp.com>
Sent: Friday, April 3, 2020 12:25 PM
To: discuss@edk2.groups.io; Ni, Ray <ray.ni@intel.com>; Bi, Dandan <dandan.bi@intel.com>; Gao, Liming <liming.gao@intel.com>; Wu, Hao A <hao.a.wu@intel.com>; leif.lindholm@linaro.org
Subject: Re: Query: Add GCD IO Space Map
Hi ,
Any clue on this ?
Get Outlook for Android<https://aka.ms/ghei36>
________________________________
From: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io> <discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>> on behalf of Wasim Khan via groups.io <wasim.khan=nxp.com@groups.io<mailto:wasim.khan=nxp.com@groups.io>>
Sent: Friday, April 3, 2020 1:18:13 AM
To: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io> <discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>>; ruiyu.ni@intel.com<mailto:ruiyu.ni@intel.com> <ruiyu.ni@intel.com<mailto:ruiyu.ni@intel.com>>; dandan.bi@intel.com<mailto:dandan.bi@intel.com> <dandan.bi@intel.com<mailto:dandan.bi@intel.com>>; liming.gao@intel.com<mailto:liming.gao@intel.com> <liming.gao@intel.com<mailto:liming.gao@intel.com>>; hao.a.wu@intel.com<mailto:hao.a.wu@intel.com> <hao.a.wu@intel.com<mailto:hao.a.wu@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
[-- Attachment #2: Type: text/html, Size: 7786 bytes --]
parent reply other threads:[~2020-04-03 6:51 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <VE1PR04MB670204B034811C573ED029FF90C70@VE1PR04MB6702.eurprd04.prod.outlook.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=734D49CCEBEEF84792F5B80ED585239D5C4D7A71@SHSMSX104.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox