public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "PierreGondois" <pierre.gondois@arm.com>
To: "Attar, AbdulLateef (Abdul Lateef)" <AbdulLateef.Attar@amd.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>,
	"jbrasen@nvidia.com" <jbrasen@nvidia.com>,
	Sami Mujawar <Sami.Mujawar@arm.com>
Cc: Swatisri Kantamsetti <swatisrik@nvidia.com>,
	Ashish Singhal <ashishsingha@nvidia.com>, nd <nd@arm.com>
Subject: Re: [edk2-devel] [PATCH v4 2/4] DynamicTablesPkg: Add support for simple method\r invocation.
Date: Wed, 27 Sep 2023 17:07:16 +0200	[thread overview]
Message-ID: <a89afb59-2d7e-2310-6f3d-ec63032ac2cf@arm.com> (raw)
In-Reply-To: <IA1PR12MB6458D84A392B1AC547D4D125E0FEA@IA1PR12MB6458.namprd12.prod.outlook.com>

Hello Abdul,

On 9/23/23 06:22, Attar, AbdulLateef (Abdul Lateef) wrote:
> [AMD Official Use Only - General]
> 
> 
> Hi Jeff, Sami,
> 
>                  I’m not reviewer, just providing the opinion.
> 
> How about making it generic(generic to integer argument)  instead of single integer argument.
> 
>      IN        UINT64                  IntegerArgument
> 
>      IN         UINT64 **IntegerArgumentArray.*
> 
> Create the list(by making use of AmlVarListAddTail) of data object depends on IntergerArgument value.
> 
> Also, I think if data in data node is AML_ARG0(0x68), AML_ARG1…., then it will considered as Arg0, Arg1, ….etc.

Just to be sure, you would like the method generated by AmlCodeGenMethodRetNameStringIntegerArgument()
to take multiple integer argument ? This would allow to generate a function taking N input arguments like:

Method(MET0, N, Serialized, 3) {
   Return (MET1 (1, 2, ..., N))
}

It is true AmlCodeGenMethodRetNameStringIntegerArgument() takes a NumArgs parameter,
but currently NumArgs can only equal 1.

Is there a specific use case that you are looking to solve with this solution ?

Regards,
Pierre

> 
> Thanks
> 
> AbduL
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109123): https://edk2.groups.io/g/devel/message/109123
Mute This Topic: https://groups.io/mt/101436335/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2023-09-27 15:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-18 15:46 [edk2-devel] [PATCH v4 0/4] Add support for generating ACPI ThermalZones Jeff Brasen via groups.io
2023-09-18 15:46 ` [edk2-devel] [PATCH v4 1/4] DynamicTablesPkg: Add ThermalZone CodeGen function Jeff Brasen via groups.io
2023-09-18 15:46 ` [edk2-devel] [PATCH v4 2/4] DynamicTablesPkg: Add support for simple method invocation Jeff Brasen via groups.io
2023-09-21 16:49   ` Sami Mujawar
2023-09-21 17:38     ` Jeff Brasen via groups.io
2023-09-21 20:07       ` Sami Mujawar
2023-09-21 20:48         ` Jeff Brasen via groups.io
2023-09-23  4:22           ` Attar, AbdulLateef (Abdul Lateef) via groups.io
2023-09-27 15:07             ` PierreGondois [this message]
2023-09-18 15:46 ` [edk2-devel] [PATCH v4 3/4] DynamicTablesPkg: Add support to add Strings to package Jeff Brasen via groups.io
2023-09-21 16:49   ` Sami Mujawar
2023-09-21 16:52     ` Jeff Brasen via groups.io
2023-09-18 15:47 ` [edk2-devel] [PATCH v4 4/4] DynamicTablesPkg: Add Aml NameUnicodeString API Jeff Brasen via groups.io

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=a89afb59-2d7e-2310-6f3d-ec63032ac2cf@arm.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