public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Abdul Lateef Attar via groups.io" <AbdulLateef.Attar=amd.com@groups.io>
To: Pierre Gondois <pierre.gondois@arm.com>,
	Abdul Lateef Attar <abdattar@amd.com>,
	devel@edk2.groups.io
Cc: Sami Mujawar <Sami.Mujawar@arm.com>
Subject: Re: [edk2-devel] [PATCH v1 2/3] DynamicTablesPkg: Adds ACPI HPET Table generator
Date: Wed, 28 Feb 2024 18:23:40 +0530	[thread overview]
Message-ID: <0fd9d8ab-c33d-4d28-aae6-3a8dd34b1910@amd.com> (raw)
In-Reply-To: <a513424a-6311-4454-b99f-cd1d9949063c@arm.com>

Hi Pierre Gondois,

     Thanks for review the comment, i will make the changes accordingly.

Please find my response in line.

Thanks

AbduL

On 27-02-2024 21:32, Pierre Gondois wrote:
> Caution: This message originated from an External Source. Use proper 
> caution when opening attachments, clicking links, or responding.
>
>
> Hello Abdul,
>
> From the HPET spec:
> """
> For the case where there may be additional Event Timer Blocks 
> implemented in the system, their base
> addresses would be described in ACPI Name space.
> """
> So it seems it might be good (but not necessary) to to add a 
> description in
> a SSDT/DSDT table of the object (with _HID=PNP0103).
[Abdul] I will submit another Generator library for creating the 
platform devices in ACPI namespace.
>
> ---
>
> Same comment about than for the other patches about adding objects to
> the common Arch namespace.`
>
[Abdul] This Arch namespace changes are non-disruptive and wont cause 
any failure to existing ARM namespace.

I'll submit a separate patch for acpiview to parse the HPET and WSMT table.

>
> On 2/20/24 07:48, Abdul Lateef Attar wrote:
>> From: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
>>
>> Adds generic ACPI HPET table generator library.
>> Register/Deregister HPET table.
>> Update the HPET table during boot as per specification.
>>
>> Cc: Sami Mujawar <Sami.Mujawar@arm.com>
>> Cc: Pierre Gondois <pierre.gondois@arm.com>
>> Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
>> ---
>>   DynamicTablesPkg/DynamicTables.dsc.inc        |   2 +
>>   DynamicTablesPkg/DynamicTablesPkg.ci.yaml     |   3 +-
>>   DynamicTablesPkg/Include/AcpiTableGenerator.h |   1 +
>>   .../Library/Acpi/AcpiHpetLib/AcpiHpetLib.inf  |  38 ++++
>>   .../Library/Acpi/AcpiHpetLib/HpetGenerator.c  | 208 ++++++++++++++++++
>>   5 files changed, 251 insertions(+), 1 deletion(-)
>>   create mode 100644 
>> DynamicTablesPkg/Library/Acpi/AcpiHpetLib/AcpiHpetLib.inf
>>   create mode 100644 
>> DynamicTablesPkg/Library/Acpi/AcpiHpetLib/HpetGenerator.c
>>
>> diff --git a/DynamicTablesPkg/DynamicTables.dsc.inc 
>> b/DynamicTablesPkg/DynamicTables.dsc.inc
>> index 5ec9ffac06..af70785520 100644
>> --- a/DynamicTablesPkg/DynamicTables.dsc.inc
>> +++ b/DynamicTablesPkg/DynamicTables.dsc.inc
>> @@ -35,6 +35,7 @@
>>     # Generators
>>     #
>>     DynamicTablesPkg/Library/Acpi/AcpiFadtLib/AcpiFadtLib.inf
>> +  DynamicTablesPkg/Library/Acpi/AcpiHpetLib/AcpiHpetLib.inf
>>
>>     #
>>     # Dynamic Table Factory Dxe
>> @@ -42,6 +43,7 @@
>> DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDxe.inf 
>> {
>>       <LibraryClasses>
>> NULL|DynamicTablesPkg/Library/Acpi/AcpiFadtLib/AcpiFadtLib.inf
>> + NULL|DynamicTablesPkg/Library/Acpi/AcpiHpetLib/AcpiHpetLib.inf
>>     }
>>
>>   [Components.ARM, Components.AARCH64]
>> diff --git a/DynamicTablesPkg/DynamicTablesPkg.ci.yaml 
>> b/DynamicTablesPkg/DynamicTablesPkg.ci.yaml
>> index 1ad5540e24..cacdaa1df6 100644
>> --- a/DynamicTablesPkg/DynamicTablesPkg.ci.yaml
>> +++ b/DynamicTablesPkg/DynamicTablesPkg.ci.yaml
>> @@ -53,7 +53,8 @@
>>               "EmbeddedPkg/EmbeddedPkg.dec",
>>               "DynamicTablesPkg/DynamicTablesPkg.dec",
>>               "MdeModulePkg/MdeModulePkg.dec",
>> -            "MdePkg/MdePkg.dec"
>> +            "MdePkg/MdePkg.dec",
>> +            "PcAtChipsetPkg/PcAtChipsetPkg.dec"
>>           ],
>>           # For host based unit tests
>>           "AcceptableDependencies-HOST_APPLICATION":[
>> diff --git a/DynamicTablesPkg/Include/AcpiTableGenerator.h 
>> b/DynamicTablesPkg/Include/AcpiTableGenerator.h
>> index d0eda011c3..18b5f99f47 100644and
>> --- a/DynamicTablesPkg/Include/AcpiTableGenerator.h
>> +++ b/DynamicTablesPkg/Include/AcpiTableGenerator.h
>> @@ -99,6 +99,7 @@ typedef enum StdAcpiTableId {
>>     EStdAcpiTableIdSsdtCpuTopology,               ///< SSDT Cpu Topology
>>     EStdAcpiTableIdSsdtPciExpress,                ///< SSDT Pci 
>> Express Generator
>>     EStdAcpiTableIdPcct,                          ///< PCCT Generator
>> +  EStdAcpiTableIdHpet,                          ///< HPET Generator
>>     EStdAcpiTableIdMax
>>   } ESTD_ACPI_TABLE_ID;
>>
>> diff --git 
>> a/DynamicTablesPkg/Library/Acpi/AcpiHpetLib/AcpiHpetLib.inf 
>> b/DynamicTablesPkg/Library/Acpi/AcpiHpetLib/AcpiHpetLib.inf
>> new file mode 100644
>> index 0000000000..74a1358ffe
>> --- /dev/null
>> +++ b/DynamicTablesPkg/Library/Acpi/AcpiHpetLib/AcpiHpetLib.inf
>> @@ -0,0 +1,38 @@
>> +## @file
>> +#  HPET Table Generator
>> +#
>> +#  Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
>> +#
>> +#  SPDX-License-Identifier: BSD-2-Clause-Patent
>> +##
>> +
>> +[Defines]
>> +  INF_VERSION    = 1.27
>> +  BASE_NAME      = AcpiHpetLib
>> +  FILE_GUID      = 4E75F653-C356-48B3-B32C-D1B901ECF90A
>> +  VERSION_STRING = 1.0
>> +  MODULE_TYPE    = DXE_DRIVER
>> +  LIBRARY_CLASS  = NULL|DXE_DRIVER
>> +  CONSTRUCTOR    = AcpiHpetLibConstructor
>> +  DESTRUCTOR     = AcpiHpetLibDestructor
>> +
>> +[Sources]
>> +  HpetGenerator.c
>> +
>> +[Packages]
>> +  DynamicTablesPkg/DynamicTablesPkg.dec
>> +  EmbeddedPkg/EmbeddedPkg.dec
>
> I think the dependency could be deleted, along with:
> HpetGenerator.c:19:#include <Library/AcpiLib.h>
>
>> +  MdeModulePkg/MdeModulePkg.dec
>> +  MdePkg/MdePkg.dec
>> +  PcAtChipsetPkg/PcAtChipsetPkg.dec
>
> (for Sami)
> A dependency over the PcAtChipsetPkg is introduced here.
>
>> +
>> +[LibraryClasses]
>> +  BaseLib
>> +  DebugLib
>> +  IoLib
>> +  PcdLib
>> +
>> +[Pcd]
>> +  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorId
>> +  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorRevision
>> +  gPcAtChipsetPkgTokenSpaceGuid.PcdHpetBaseAddress
>
>
> [snip]


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



  reply	other threads:[~2024-02-28 12:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-20  6:48 [edk2-devel] [PATCH v1 0/3] DynamicTablesPkg: Adds generic FADT, HPET and WSMT table generators Abdul Lateef Attar via groups.io
2024-02-20  6:48 ` [edk2-devel] [PATCH v1 1/3] DynamicTablesPkg: Adds ACPI FADT Table generator Abdul Lateef Attar via groups.io
2024-02-27 16:02   ` PierreGondois
2024-02-20  6:48 ` [edk2-devel] [PATCH v1 2/3] DynamicTablesPkg: Adds ACPI HPET " Abdul Lateef Attar via groups.io
2024-02-27 16:02   ` PierreGondois
2024-02-28 12:53     ` Abdul Lateef Attar via groups.io [this message]
2024-02-20  6:48 ` [edk2-devel] [PATCH v1 3/3] DynamicTablesPkg: Adds ACPI WSMT " Abdul Lateef Attar via groups.io
2024-02-27 16:02   ` PierreGondois

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=0fd9d8ab-c33d-4d28-aae6-3a8dd34b1910@amd.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