public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "wenyi,xie" <xiewenyi2@huawei.com>
To: Leif Lindholm <leif@nuviainc.com>, <devel@edk2.groups.io>
Cc: <ard.biesheuvel@arm.com>, <songdongkuang@huawei.com>,
	<rebecca@nuviainc.com>
Subject: Re: [edk2-devel] [PATCH edk2-Platform v1 1/1] Hisilicon:Fix header file issues
Date: Mon, 9 Aug 2021 16:42:17 +0800	[thread overview]
Message-ID: <d46fba6b-3bd1-14ae-0200-9ca35fa15e5d@huawei.com> (raw)
In-Reply-To: <20210804122442.xh6r3vpguwy3lazq@leviathan>

Hi Leif,

According to your advice, I have changed the name of header to OemHisiMiscLib and snet the v2 patch to you. Please help reviewing it when you are free.

Thanks
Wenyi


On 2021/8/4 20:24, Leif Lindholm wrote:
> +Rebecca
> 
> Apologies for slow response, this arrived while I was on holiday.
> 
> On Tue, Jun 22, 2021 at 20:33:25 +0800, wenyi,xie via groups.io wrote:
>> EDK2 has removed header file ArmLibPrivate.h, so need to
>> use ArmLib.h instead. A new file OemMiscLib.h is added
>> to EDK2, its name is same with the header file in
>> Hisilicon\Include and it will being included first. So
>> some undefined issue occured and need to change the order
>> of header files.
> 
> Ugh, oops. Yes. So, we used the Hisilicon Smbios implementation to
> create what is intended to become a fully generic module,
> ArmPkg/Universal/Smbios/, and ended up keeping that header name.
> Sorry about that.
> 
> However, moving around packages to make one identically named file be
> picked over another is not the right solution. Could you possibly
> rename your existing header? OemMiscHisi.h?
> 
> Best Regards,
> 
> Leif
> 
>> Cc: Leif Lindholm <leif@nuviainc.com>
>> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
>> Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com>
>> ---
>>  Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf                  |  2 +-
>>  Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf             |  2 +-
>>  Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf                 |  2 +-
>>  Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf                 |  2 +-
>>  Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf |  2 +-
>>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf               |  2 +-
>>  Silicon/Hisilicon/Hi1610/Drivers/PcieInit1610/PcieInitDxe.inf                  |  2 +-
>>  Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.h      | 13 -------------
>>  Silicon/Hisilicon/Hi1616/Pptt/Pptt.h                                           |  2 +-
>>  Silicon/Hisilicon/Hi1620/Pptt/Pptt.h                                           |  2 +-
>>  10 files changed, 9 insertions(+), 22 deletions(-)
>>
>> diff --git a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf
>> index 1f992024acc2..f1b21ae80f3c 100644
>> --- a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf
>> +++ b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf
>> @@ -20,12 +20,12 @@
>>    EarlyConfigPeimD03.c
>>  
>>  [Packages]
>> +  Silicon/Hisilicon/HisiPkg.dec
>>    MdePkg/MdePkg.dec
>>    MdeModulePkg/MdeModulePkg.dec
>>  
>>    ArmPkg/ArmPkg.dec
>>    Silicon/Hisilicon/HisiliconNonOsi.dec
>> -  Silicon/Hisilicon/HisiPkg.dec
>>  
>>  [LibraryClasses]
>>    PeimEntryPoint
>> diff --git a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf
>> index ab14597d8b75..728b33e85030 100644
>> --- a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf
>> +++ b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf
>> @@ -21,11 +21,11 @@
>>    BoardFeature2PHi1610Strings.uni
>>  
>>  [Packages]
>> +  Silicon/Hisilicon/HisiPkg.dec
>>    MdePkg/MdePkg.dec
>>    MdeModulePkg/MdeModulePkg.dec
>>    ArmPkg/ArmPkg.dec
>>    Silicon/Hisilicon/HisiliconNonOsi.dec
>> -  Silicon/Hisilicon/HisiPkg.dec
>>  
>>  [LibraryClasses]
>>    BaseMemoryLib
>> diff --git a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf
>> index d471102199ee..8a605b417be8 100644
>> --- a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf
>> +++ b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf
>> @@ -21,11 +21,11 @@
>>    OemMiscLibD05.c
>>  
>>  [Packages]
>> +  Silicon/Hisilicon/HisiPkg.dec
>>    ArmPkg/ArmPkg.dec
>>    MdeModulePkg/MdeModulePkg.dec
>>    MdePkg/MdePkg.dec
>>    Silicon/Hisilicon/HisiliconNonOsi.dec
>> -  Silicon/Hisilicon/HisiPkg.dec
>>  
>>  [LibraryClasses]
>>    BaseMemoryLib
>> diff --git a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf
>> index 59373a968523..1121550b40c4 100644
>> --- a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf
>> +++ b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf
>> @@ -21,12 +21,12 @@
>>    OemMiscLibD06.c
>>  
>>  [Packages]
>> +  Silicon/Hisilicon/HisiPkg.dec
>>    ArmPkg/ArmPkg.dec
>>    MdeModulePkg/MdeModulePkg.dec
>>    MdePkg/MdePkg.dec
>>    Platform/Hisilicon/D06/D06.dec
>>    Silicon/Hisilicon/HisiliconNonOsi.dec
>> -  Silicon/Hisilicon/HisiPkg.dec
>>  
>>  [LibraryClasses]
>>    BaseMemoryLib
>> diff --git a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
>> index 99eea93b7988..2c3c1ff51408 100644
>> --- a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
>> +++ b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
>> @@ -21,12 +21,12 @@
>>    ProcessorSubClass.c
>>  
>>  [Packages]
>> +  Silicon/Hisilicon/HisiPkg.dec
>>    ArmPkg/ArmPkg.dec
>>    MdePkg/MdePkg.dec
>>    MdeModulePkg/MdeModulePkg.dec
>>  
>>    Silicon/Hisilicon/HisiliconNonOsi.dec
>> -  Silicon/Hisilicon/HisiPkg.dec
>>  
>>  [LibraryClasses]
>>    UefiDriverEntryPoint
>> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
>> index 9c795b5fd401..99cc8fc4c14e 100644
>> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
>> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
>> @@ -48,11 +48,11 @@
>>    ./Type09/MiscSystemSlotDesignationFunction.c
>>  
>>  [Packages]
>> +  Silicon/Hisilicon/HisiPkg.dec
>>    ArmPkg/ArmPkg.dec
>>    MdePkg/MdePkg.dec
>>    MdeModulePkg/MdeModulePkg.dec
>>    Silicon/Hisilicon/HisiliconNonOsi.dec
>> -  Silicon/Hisilicon/HisiPkg.dec
>>  
>>  [LibraryClasses]
>>    PcdLib
>> diff --git a/Silicon/Hisilicon/Hi1610/Drivers/PcieInit1610/PcieInitDxe.inf b/Silicon/Hisilicon/Hi1610/Drivers/PcieInit1610/PcieInitDxe.inf
>> index 25d301f210ba..921dae6dd80a 100644
>> --- a/Silicon/Hisilicon/Hi1610/Drivers/PcieInit1610/PcieInitDxe.inf
>> +++ b/Silicon/Hisilicon/Hi1610/Drivers/PcieInit1610/PcieInitDxe.inf
>> @@ -21,10 +21,10 @@
>>    PcieInitLib.c
>>  
>>  [Packages]
>> +  Silicon/Hisilicon/HisiPkg.dec
>>    MdePkg/MdePkg.dec
>>    MdeModulePkg/MdeModulePkg.dec
>>    ArmPkg/ArmPkg.dec
>> -  Silicon/Hisilicon/HisiPkg.dec
>>  
>>  [LibraryClasses]
>>    UefiDriverEntryPoint
>> diff --git a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.h b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.h
>> index 3ce180d21df3..3a51199e924b 100644
>> --- a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.h
>> +++ b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.h
>> @@ -68,19 +68,6 @@ typedef union {
>>    UINT16 Data;
>>  }CACHE_CONFIGURATION;
>>  
>> -//
>> -// Processor Status
>> -//
>> -typedef union {
>> -  struct {
>> -    UINT8 CpuStatus       :3; // Indicates the status of the processor.
>> -    UINT8 Reserved1       :3; // Reserved for future use. Should be set to zero.
>> -    UINT8 SocketPopulated :1; // Indicates if the processor socket is populated or not.
>> -    UINT8 Reserved2       :1; // Reserved for future use. Should be set to zero.
>> -  } Bits;
>> -  UINT8 Data;
>> -}PROCESSOR_STATUS_DATA;
>> -
>>  //
>>  // Processor Characteristics
>>  //
>> diff --git a/Silicon/Hisilicon/Hi1616/Pptt/Pptt.h b/Silicon/Hisilicon/Hi1616/Pptt/Pptt.h
>> index a0ad31a990db..0cb9a6e31e65 100644
>> --- a/Silicon/Hisilicon/Hi1616/Pptt/Pptt.h
>> +++ b/Silicon/Hisilicon/Hi1616/Pptt/Pptt.h
>> @@ -13,7 +13,7 @@
>>  #define _PPTT_H_
>>  
>>  #include <IndustryStandard/Acpi.h>
>> -#include <Library/ArmLib/ArmLibPrivate.h>
>> +#include <Library/ArmLib.h>
>>  #include <Library/BaseMemoryLib.h>
>>  #include <Library/DebugLib.h>
>>  #include <Library/MemoryAllocationLib.h>
>> diff --git a/Silicon/Hisilicon/Hi1620/Pptt/Pptt.h b/Silicon/Hisilicon/Hi1620/Pptt/Pptt.h
>> index 30ba5fff65ce..7d8228503dba 100644
>> --- a/Silicon/Hisilicon/Hi1620/Pptt/Pptt.h
>> +++ b/Silicon/Hisilicon/Hi1620/Pptt/Pptt.h
>> @@ -14,7 +14,7 @@
>>  
>>  #include <PlatformArch.h>
>>  #include <IndustryStandard/Acpi.h>
>> -#include <Library/ArmLib/ArmLibPrivate.h>
>> +#include <Library/ArmLib.h>
>>  #include <Library/BaseMemoryLib.h>
>>  #include <Library/DebugLib.h>
>>  #include <Library/MemoryAllocationLib.h>
>> -- 
>> 2.20.1.windows.1
>>
>>
>>
>> 
>>
>>
> .
> 

      reply	other threads:[~2021-08-09  8:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-22 12:33 [PATCH edk2-Platform v1 0/1] Hisilicon:Fix header file issues wenyi,xie
2021-06-22 12:33 ` [PATCH edk2-Platform v1 1/1] " wenyi,xie
2021-08-04 12:24   ` [edk2-devel] " Leif Lindholm
2021-08-09  8:42     ` wenyi,xie [this message]

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=d46fba6b-3bd1-14ae-0200-9ca35fa15e5d@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