public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ankit Sinha" <ankit.sinha@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"imammedo@redhat.com" <imammedo@redhat.com>,
	"Chen, Aryeh" <aryeh.chen@intel.com>
Cc: "Chiu, Chasel" <chasel.chiu@intel.com>,
	"Desimone, Nathaniel L" <nathaniel.l.desimone@intel.com>,
	"Oram, Isaac W" <isaac.w.oram@intel.com>,
	"Gao, Liming" <gaoliming@byosoft.com.cn>,
	"Dong, Eric" <eric.dong@intel.com>
Subject: Re: [edk2-devel] [PATCH v3] MinPlatformPkg: Remove _ADR from MinDsdt.asl
Date: Mon, 12 Sep 2022 17:43:39 +0000	[thread overview]
Message-ID: <MW5PR11MB59081278E98B24EAF81B97F3E5449@MW5PR11MB5908.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20220912103236.7eff2e35@redhat.com>

Hi Igor,

Section 6.1  of the ACPI specification describes this (Last line of the paragraph below states what Aryeh was saying):

For any device that is on a non-enumerable type of bus (for example, an ISA bus), OSPM enumerates the devices' identifier(s) and the ACPI system firmware must supply an _HID object (plus one or more optional objects such as _CID, _CLS, _HRV, _SUB) for each device to enable OSPM to do that. For devices on an enumerable type of bus, such as a PCI bus, the ACPI system must identify which device on the enumerable bus is identified by a particular address; the ACPI system firmware must supply an _ADR object for each device to enable this. A device object must contain either an _HID object or an _ADR object, but must not contain both.

Thank you,
Ankit

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Igor
> Mammedov
> Sent: Monday, September 12, 2022 1:33 AM
> To: Chen, Aryeh <aryeh.chen@intel.com>
> Cc: devel@edk2.groups.io; Chiu, Chasel <chasel.chiu@intel.com>; Desimone,
> Nathaniel L <nathaniel.l.desimone@intel.com>; Oram, Isaac W
> <isaac.w.oram@intel.com>; Sinha, Ankit <ankit.sinha@intel.com>; Gao,
> Liming <gaoliming@byosoft.com.cn>; Dong, Eric <eric.dong@intel.com>
> Subject: Re: [edk2-devel] [PATCH v3] MinPlatformPkg: Remove _ADR from
> MinDsdt.asl
> 
> On Mon, 12 Sep 2022 13:17:45 +0800
> aryeh.chen@intel.com wrote:
> 
> > From: Aryeh Chen <aryeh.chen@intel.com>
> >
> > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4057
> >
> > According to ASL Coding Guidelines - Device Identifiers "A Device
> > should contain either an _ADR or a _HID object, never both."
> > , so remove _ADR due to _HID exist.
> 
> I'm curious where exactly in ACPI spec it's said...
> 
> > Signed-off-by: Aryeh Chen <aryeh.chen@intel.com>
> > Cc: Chasel Chiu <chasel.chiu@intel.com>
> > Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
> > Cc: Isaac Oram <isaac.w.oram@intel.com>
> > Cc: Ankit Sinha <ankit.sinha@intel.com>
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > Cc: Eric Dong <eric.dong@intel.com>
> > ---
> >  Platform/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.asl | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/Platform/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.asl
> > b/Platform/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.asl
> > index 0d94472450..4efb8709ac 100644
> > --- a/Platform/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.asl
> > +++ b/Platform/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.asl
> > @@ -27,7 +27,6 @@ DefinitionBlock (
> >        Name(_HID, EISAID("PNP0A08")) // Indicates PCI Express/PCI-X Mode2
> host hierarchy
> >        Name(_CID, EISAID("PNP0A03")) // To support legacy OS that doesn't
> understand the new HID
> >        Name(_SEG, 0)
> > -      Name(_ADR, 0x00000000)
> Spec also says
> v6.3
> 6.1.1 _ADR (Address)
> An _ADR object must be used when specifying the address of any device on
> a bus that has a standard enumeration algorithm
> 
> >        Method(^BN00, 0){ return(0x0000) }  // Returns default Bus number for
> Peer PCI busses. Name can be overriden with control method placed directly
> under Device scope
> >        Method(_BBN, 0){ return(BN00()) } // Bus number, optional for the
> Root PCI Bus
> >        Name(_UID, 0x0000)  // Unique Bus ID, optional
> 
> 
> 
> 
> 


  reply	other threads:[~2022-09-12 17:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12  5:17 [PATCH v3] MinPlatformPkg: Remove _ADR from MinDsdt.asl aryeh.chen
2022-09-12  8:32 ` [edk2-devel] " Igor Mammedov
2022-09-12 17:43   ` Ankit Sinha [this message]
2022-09-12 20:53 ` Ankit Sinha
2022-09-21  7:33   ` aryeh.chen
2022-09-28 23:56     ` Ankit Sinha
2022-10-04 18:47 ` Chiu, Chasel

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=MW5PR11MB59081278E98B24EAF81B97F3E5449@MW5PR11MB5908.namprd11.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