public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: hesham.almatary@huawei.com
To: Rohit Mathew <Rohit.Mathew@arm.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>,
	Swatisri Kantamsetti <swatisrik@nvidia.com>
Cc: Sami Mujawar <Sami.Mujawar@arm.com>,
	Thomas Abraham <thomas.abraham@arm.com>,
	Thanu Rangarajan <Thanu.Rangarajan@arm.com>, nd <nd@arm.com>
Subject: Re: [edk2-devel] [PATCH 1/2] Mde Pkg: Support for MPAM ACPI Table
Date: Thu, 25 Aug 2022 10:36:14 +0100	[thread overview]
Message-ID: <6df801e8-2554-2c4b-f0f6-0bf5a520196b@huawei.com> (raw)
In-Reply-To: <AM6PR08MB3783483C6314E0DC589D73BF8F739@AM6PR08MB3783.eurprd08.prod.outlook.com>

Hello Rohit,

On 8/24/2022 5:25 PM, Rohit Mathew wrote:
> Hi Hesham,
>
> The idea for keeping it as separate type was to abstract locator field to have a view similar to that of its definition in the spec (MPAM ACPI 1.0, section 2.2, table 7 - Resource node.)
>
> Something of the lines –
>
> typedef struct {
>    UINT32                   Identifier;
>    UINT8                    RisIndex;
>    UINT16                   Reserved1;
>    UINT8                    LocatorType;
>    MPAM_LOCATOR             Locator;
>    UINT32                   NumDependencies;
> } MPAM_MSC_RESOURCE;
>
> Locator field could very well be a struct of UINT64 and UINT32 with just descriptor 1 and descriptor 2 as the field names  (Table 10, 2.3.2)– As you said, having hardcoded field names won’t work as the descriptors change with locator type.
>
>
> ///
>
> /// MPAM MSC Locator field
>
> ///
>
> typedef struct {
>
>    UINT64                   Descriptor1;
>
>    UINT32                   Descriptor2;
>
> } MPAM_LOCATOR;
>
> Let me know your thoughts on the approach.

Thanks for the explanation. It makes sense to me, I don't have a strong bias 
towards not having it as a struct.


> Regards,
> Rohit
>
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of hesham.almatary via groups.io
> Sent: 24 August 2022 15:39
> To: Andrew Fish <afish@apple.com>; devel@edk2.groups.io
> Subject: Re: [edk2-devel] [PATCH 1/2] Mde Pkg: Support for MPAM ACPI Table
>
> Hello Rohit and Swatisri,
>
> On Tue, Aug 23, 2022 at 09:11 PM, Andrew Fish wrote:
> [Rohit ] Shouldn't " Locator " field be 12 bytes in size, possibly a separate type? (MPAM ACPI 1.0, section 2.2, table 7 - Resource node and section 2.3.2 table 10 - locator descriptor)
> I'd just go for UINT64 locator1 and UINT32 locator2 and not necessarily a separate type. The interpretation of each depends on the the locator type (e.g., MPAM ACPI Tables 11-15).
> 

  reply	other threads:[~2022-08-25  9:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-16 20:18 [PATCH 1/2] Mde Pkg: Support for MPAM ACPI Table Name
2022-08-16 20:18 ` [PATCH 2/2] Dynamic Tbl Mgr: MPAM: MPAM Generator and supporting files Name
2022-08-19  8:26   ` [edk2-devel] " Rohit Mathew
2022-08-24 10:51     ` Rohit Mathew
2022-08-23 17:51   ` Swatisri Kantamsetti
2022-08-19  8:26 ` [edk2-devel] [PATCH 1/2] Mde Pkg: Support for MPAM ACPI Table Rohit Mathew
2022-08-23 20:10   ` Andrew Fish
2022-08-23 21:28     ` Rohit Mathew
2022-08-23 22:59       ` Andrew Fish
2022-08-24 10:42         ` Rohit Mathew
2022-08-24 14:39     ` hesham.almatary
2022-08-24 16:25       ` Rohit Mathew
2022-08-25  9:36         ` hesham.almatary [this message]
2022-08-23 17:52 ` Swatisri Kantamsetti
2022-10-03 11:17 ` Sami Mujawar

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=6df801e8-2554-2c4b-f0f6-0bf5a520196b@huawei.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