public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Questions about SubmitResources()
@ 2017-11-09  8:28 Tiger Liu
  0 siblings, 0 replies; only message in thread
From: Tiger Liu @ 2017-11-09  8:28 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hi, experts:
I have a question about PciHostBridge’s SubmitResources() function.

For example:

1.      PciBus driver scanned a pci bus, found no pci devices needed resource, such as : MMIO ranges

Then, Mem32Bridge->Length:0x0, Mem32Bridge->Alignment:0Xfffff , and AddrSpaceGranularity = 0

Then call SubmitResources function, and in this function:

               ……

               /// It seems code here will cause system abnormal. (because AddrSpaceGranularity = 0)

      if (Ptr->AddrSpaceGranularity != 32 && Ptr->AddrSpaceGranularity != 64) {

            DEBUG((EFI_D_INFO, "BadAddrSpaceGranularity:%d\n", Ptr->AddrSpaceGranularity));

            return EFI_INVALID_PARAMETER;

          }

Thanks


保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-09  8:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-09  8:28 Questions about SubmitResources() Tiger Liu

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