public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Pranav Madhu" <pranav.madhu@arm.com>
To: Ard Biesheuvel <Ard.Biesheuvel@arm.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Re: [edk2-devel] [edk2-platforms][PATCH v1 3/4] Platform/ARM/N1SDP: Implement n1sdp specific PciExpressLib
Date: Fri, 26 Jun 2020 17:18:37 +0000	[thread overview]
Message-ID: <VI1PR08MB4560A8D65A6DD2E54FD77C6D8A930@VI1PR08MB4560.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <a1082779-e625-fd4f-3a38-b5800c16eb21@arm.com>

Hi Ard,

> -----Original Message-----
> From: Ard Biesheuvel <ard.biesheuvel@arm.com>
> Sent: Wednesday, June 10, 2020 11:50 PM
> To: devel@edk2.groups.io; Pranav Madhu <Pranav.Madhu@arm.com>
> Subject: Re: [edk2-devel] [edk2-platforms][PATCH v1 3/4]
> Platform/ARM/N1SDP: Implement n1sdp specific PciExpressLib
>
> On 4/24/20 1:58 PM, Pranav Madhu via groups.io wrote:
> > From: Deepak Pandey <deepak.pandey@arm.com>
> >
> > A slave error is generated when host accesses the config space of
> > non-available device or unimplemented function on a given bus. So
> > implement a n1sdp specific PciExpressLib library with a workaround to
> > return 0xffffffff for all such access.
> >
> > Signed-off-by: Pranav Madhu <pranav.madhu@arm.com>
> > ---
> >   Platform/ARM/N1SdpPkg/N1SdpPlatform.dsc                       |    4 +
> >   Platform/ARM/N1SdpPkg/Library/PciExpressLib/PciExpressLib.inf |   40 +
> >   Platform/ARM/N1SdpPkg/Library/PciExpressLib/PciExpressLib.c   | 1540
> ++++++++++++++++++++
> >   3 files changed, 1584 insertions(+)
> >
> > diff --git a/Platform/ARM/N1SdpPkg/N1SdpPlatform.dsc
> b/Platform/ARM/N1SdpPkg/N1SdpPlatform.dsc
> > index 95552328065a..53be9699d99e 100644
> > --- a/Platform/ARM/N1SdpPkg/N1SdpPlatform.dsc
> > +++ b/Platform/ARM/N1SdpPkg/N1SdpPlatform.dsc
> > @@ -65,6 +65,10 @@ [LibraryClasses.common.DXE_CORE]
> >
> >   [LibraryClasses.common.DXE_DRIVER]
> >     FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
> > +
> PciHostBridgeLib|Platform/ARM/N1SdpPkg/Library/PciHostBridgeLib/PciHost
> BridgeLib.inf
> > +
> PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibP
> ci.inf
> > +  PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
> > +
> PciExpressLib|Platform/ARM/N1SdpPkg/Library/PciExpressLib/PciExpressLib.
> inf
> >
> >   [LibraryClasses.common.DXE_RUNTIME_DRIVER]
> >     BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
> > diff --git
> a/Platform/ARM/N1SdpPkg/Library/PciExpressLib/PciExpressLib.inf
> b/Platform/ARM/N1SdpPkg/Library/PciExpressLib/PciExpressLib.inf
> > new file mode 100644
> > index 000000000000..f8a85cbb8fed
> > --- /dev/null
> > +++ b/Platform/ARM/N1SdpPkg/Library/PciExpressLib/PciExpressLib.inf
> > @@ -0,0 +1,40 @@
> > +## @file
> > +#  Instance of PCI Express Library using the 256 MB PCI Express MMIO
> window.
> > +#
> > +#  PCI Express Library that uses the 256 MB PCI Express MMIO window to
> perform
> > +#  PCI Configuration cycles. Layers on top of an I/O Library instance.
> > +#
> > +#  Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.
> > +#
> > +#  SPDX-License-Identifier: BSD-2-Clause-Patent
> > +#
> > +##
> > +
> > +[Defines]
> > +  INF_VERSION                    = 0x00010005
> > +  BASE_NAME                      = BasePciExpressLib
> > +  MODULE_UNI_FILE                = BasePciExpressLib.uni
> > +  FILE_GUID                      = 52c06b64-a45e-4906-b9ee-abe1acc286bb
> > +  MODULE_TYPE                    = BASE
> > +  VERSION_STRING                 = 1.0
> > +  LIBRARY_CLASS                  = PciExpressLib
> > +
> > +[Sources]
> > +  PciExpressLib.c
> > +
> > +[Packages]
> > +  MdePkg/MdePkg.dec
> > +  Platform/ARM/N1SdpPkg/N1SdpPlatform.dec
> > +
> > +[FixedPcd]
> > +  gArmN1SdpTokenSpaceGuid.PcdPcieRootPortConfigBaseAddress
> > +  gArmN1SdpTokenSpaceGuid.PcdPcieRootPortConfigBaseSize
> > +
> > +[LibraryClasses]
> > +  BaseLib
> > +  PcdLib
> > +  DebugLib
> > +  IoLib
> > +
> > +[Pcd]
> > +  gArmN1SdpTokenSpaceGuid.PcdPcieExpressBaseAddress  ##
> CONSUMES
>
> Can you use the existing
> gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress instead?

Okay, will change it.

Thanks,
Pranav

<...>
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

  reply	other threads:[~2020-06-26 17:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-24 11:58 [edk2-platforms][PATCH v1 0/4] Platform: Add initial support for N1SDP board pranav.madhu
2020-04-24 11:58 ` [edk2-platforms][PATCH v1 1/4] Platform/ARM/N1SDP: Add platform library implementation Pranav Madhu
2020-06-10 18:13   ` [edk2-devel] " Ard Biesheuvel
2020-06-26 17:08     ` Pranav Madhu
2020-04-24 11:58 ` [edk2-platforms][PATCH v1 2/4] Platform/ARM/N1SDP: Add EDK2 build system files Pranav Madhu
2020-06-10 18:16   ` [edk2-devel] " Ard Biesheuvel
2020-06-26 17:17     ` Pranav Madhu
2020-04-24 11:58 ` [edk2-platforms][PATCH v1 3/4] Platform/ARM/N1SDP: Implement n1sdp specific PciExpressLib Pranav Madhu
2020-06-10 18:19   ` [edk2-devel] " Ard Biesheuvel
2020-06-26 17:18     ` Pranav Madhu [this message]
2020-04-24 11:58 ` [edk2-platforms][PATCH v1 4/4] Platform/ARM/N1SDP: Enable devices connected over PCIe Pranav Madhu

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=VI1PR08MB4560A8D65A6DD2E54FD77C6D8A930@VI1PR08MB4560.eurprd08.prod.outlook.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