public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-platforms][PATCH 1/1] AmpereAltraPkg: Remove MemoryAllocationLib in ArmPlatformLib
@ 2022-12-21  4:58 Nhi Pham
  2022-12-23 14:37 ` Ard Biesheuvel
  0 siblings, 1 reply; 5+ messages in thread
From: Nhi Pham @ 2022-12-21  4:58 UTC (permalink / raw)
  To: devel; +Cc: patches, quic_llindhol, ardb+tianocore, Tinh Nguyen, Nhi Pham

From: Tinh Nguyen <tinhnguyen@os.amperecomputing.com>

PrePeiCore's Arm module just added a requirement to run all library
constructors that PrePeiCore uses. One of them is included in the
constructor of the ExtractGuidedSectionLib. This constructor will build
a HOB that is not supported "at this time" and causes an error.
We don't need to use this constructor because PrePeiCore doesn't
really need this library.

This is a workaround to avoid PrePeiCore module calling
ExtractGuidedSectionLib's constructor.

Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
---
 .../AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf     | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
index a4d29379198d..a61da278c705 100644
--- a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
+++ b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
@@ -25,7 +25,6 @@ [LibraryClasses]
   ArmSmcLib
   HobLib
   IoLib
-  MemoryAllocationLib
   PL011UartLib
   PcdLib
   SerialPortLib
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [edk2-platforms][PATCH 1/1] AmpereAltraPkg: Remove MemoryAllocationLib in ArmPlatformLib
  2022-12-21  4:58 [edk2-platforms][PATCH 1/1] AmpereAltraPkg: Remove MemoryAllocationLib in ArmPlatformLib Nhi Pham
@ 2022-12-23 14:37 ` Ard Biesheuvel
  2022-12-24  4:03   ` Nhi Pham
  2023-01-17 10:09   ` Nhi Pham
  0 siblings, 2 replies; 5+ messages in thread
From: Ard Biesheuvel @ 2022-12-23 14:37 UTC (permalink / raw)
  To: Nhi Pham; +Cc: devel, patches, quic_llindhol, ardb+tianocore, Tinh Nguyen

On Wed, 21 Dec 2022 at 06:01, Nhi Pham <nhi@os.amperecomputing.com> wrote:
>
> From: Tinh Nguyen <tinhnguyen@os.amperecomputing.com>
>
> PrePeiCore's Arm module just added a requirement to run all library
> constructors that PrePeiCore uses. One of them is included in the
> constructor of the ExtractGuidedSectionLib. This constructor will build
> a HOB that is not supported "at this time" and causes an error.
> We don't need to use this constructor because PrePeiCore doesn't
> really need this library.
>
> This is a workaround to avoid PrePeiCore module calling
> ExtractGuidedSectionLib's constructor.
>
> Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
> ---
>  .../AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf     | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
> index a4d29379198d..a61da278c705 100644
> --- a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
> +++ b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
> @@ -25,7 +25,6 @@ [LibraryClasses]
>    ArmSmcLib
>    HobLib
>    IoLib
> -  MemoryAllocationLib
>    PL011UartLib
>    PcdLib
>    SerialPortLib

Hi,

Thanks for these patches - I will merge them shortly.

As an aside, do you have any news on the issue I reported recently
regarding SetTime() on Altra which crashes the system if
SetVirtualAddressMap() was not called?

https://lore.kernel.org/all/Y2o1hdZK9GGDVJsS@monolith.localdoman/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [edk2-platforms][PATCH 1/1] AmpereAltraPkg: Remove MemoryAllocationLib in ArmPlatformLib
  2022-12-23 14:37 ` Ard Biesheuvel
@ 2022-12-24  4:03   ` Nhi Pham
  2023-01-17 10:09   ` Nhi Pham
  1 sibling, 0 replies; 5+ messages in thread
From: Nhi Pham @ 2022-12-24  4:03 UTC (permalink / raw)
  To: Ard Biesheuvel, Nhi Pham
  Cc: devel, patches, quic_llindhol, ardb+tianocore, Tinh Nguyen

Thanks Ard for reviewing them.

Sorry, I'm not aware of the SetTime() issue since I have not setup my 
mailbox for receiving the Linux kernel mails. Let me forward this issue 
to appropriate UEFI team and Linux kernel team to investigate.

Thanks,

-Nhi

On 12/23/2022 9:37 PM, Ard Biesheuvel wrote:
> On Wed, 21 Dec 2022 at 06:01, Nhi Pham <nhi@os.amperecomputing.com> wrote:
>> From: Tinh Nguyen <tinhnguyen@os.amperecomputing.com>
>>
>> PrePeiCore's Arm module just added a requirement to run all library
>> constructors that PrePeiCore uses. One of them is included in the
>> constructor of the ExtractGuidedSectionLib. This constructor will build
>> a HOB that is not supported "at this time" and causes an error.
>> We don't need to use this constructor because PrePeiCore doesn't
>> really need this library.
>>
>> This is a workaround to avoid PrePeiCore module calling
>> ExtractGuidedSectionLib's constructor.
>>
>> Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
>> ---
>>   .../AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf     | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
>> index a4d29379198d..a61da278c705 100644
>> --- a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
>> +++ b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
>> @@ -25,7 +25,6 @@ [LibraryClasses]
>>     ArmSmcLib
>>     HobLib
>>     IoLib
>> -  MemoryAllocationLib
>>     PL011UartLib
>>     PcdLib
>>     SerialPortLib
> Hi,
>
> Thanks for these patches - I will merge them shortly.
>
> As an aside, do you have any news on the issue I reported recently
> regarding SetTime() on Altra which crashes the system if
> SetVirtualAddressMap() was not called?
>
> https://lore.kernel.org/all/Y2o1hdZK9GGDVJsS@monolith.localdoman/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [edk2-platforms][PATCH 1/1] AmpereAltraPkg: Remove MemoryAllocationLib in ArmPlatformLib
  2022-12-23 14:37 ` Ard Biesheuvel
  2022-12-24  4:03   ` Nhi Pham
@ 2023-01-17 10:09   ` Nhi Pham
  2023-02-02  3:48     ` Nhi Pham
  1 sibling, 1 reply; 5+ messages in thread
From: Nhi Pham @ 2023-01-17 10:09 UTC (permalink / raw)
  To: Ard Biesheuvel, quic_llindhol
  Cc: devel, patches, ardb+tianocore, Tinh Nguyen, Nhi Pham

Hi Ard and Leif,

Just a friendly ping on the patches recently posted.

Below are links to the patches including the new introduction to the 
Ampere Altra Max support that we need you to review and merge them in order:

1/ https://edk2.groups.io/g/devel/message/97671

2/ https://edk2.groups.io/g/devel/message/97670

3/ https://edk2.groups.io/g/devel/message/98277

4/ https://edk2.groups.io/g/devel/message/98435

5/ https://edk2.groups.io/g/devel/message/98436

Thanks,

Nhi

On 12/23/2022 9:37 PM, Ard Biesheuvel wrote:
> On Wed, 21 Dec 2022 at 06:01, Nhi Pham <nhi@os.amperecomputing.com> wrote:
>> From: Tinh Nguyen <tinhnguyen@os.amperecomputing.com>
>>
>> PrePeiCore's Arm module just added a requirement to run all library
>> constructors that PrePeiCore uses. One of them is included in the
>> constructor of the ExtractGuidedSectionLib. This constructor will build
>> a HOB that is not supported "at this time" and causes an error.
>> We don't need to use this constructor because PrePeiCore doesn't
>> really need this library.
>>
>> This is a workaround to avoid PrePeiCore module calling
>> ExtractGuidedSectionLib's constructor.
>>
>> Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
>> ---
>>   .../AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf     | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
>> index a4d29379198d..a61da278c705 100644
>> --- a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
>> +++ b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
>> @@ -25,7 +25,6 @@ [LibraryClasses]
>>     ArmSmcLib
>>     HobLib
>>     IoLib
>> -  MemoryAllocationLib
>>     PL011UartLib
>>     PcdLib
>>     SerialPortLib
> Hi,
>
> Thanks for these patches - I will merge them shortly.
>
> As an aside, do you have any news on the issue I reported recently
> regarding SetTime() on Altra which crashes the system if
> SetVirtualAddressMap() was not called?
>
> https://lore.kernel.org/all/Y2o1hdZK9GGDVJsS@monolith.localdoman/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [edk2-platforms][PATCH 1/1] AmpereAltraPkg: Remove MemoryAllocationLib in ArmPlatformLib
  2023-01-17 10:09   ` Nhi Pham
@ 2023-02-02  3:48     ` Nhi Pham
  0 siblings, 0 replies; 5+ messages in thread
From: Nhi Pham @ 2023-02-02  3:48 UTC (permalink / raw)
  To: Ard Biesheuvel, quic_llindhol
  Cc: devel, patches, ardb+tianocore, Tinh Nguyen, Nhi Pham

Sorry, just a gentle ping Leif as you may have missed my previous email :)

On 1/17/2023 5:09 PM, Nhi Pham wrote:
> Hi Ard and Leif,
>
> Just a friendly ping on the patches recently posted.
>
> Below are links to the patches including the new introduction to the 
> Ampere Altra Max support that we need you to review and merge them in 
> order:
>
> 1/ https://edk2.groups.io/g/devel/message/97671
>
> 2/ https://edk2.groups.io/g/devel/message/97670
>
> 3/ https://edk2.groups.io/g/devel/message/98277
>
> 4/ https://edk2.groups.io/g/devel/message/98435
>
> 5/ https://edk2.groups.io/g/devel/message/98436
>
> Thanks,
>
> Nhi
>
> On 12/23/2022 9:37 PM, Ard Biesheuvel wrote:
>> On Wed, 21 Dec 2022 at 06:01, Nhi Pham <nhi@os.amperecomputing.com> 
>> wrote:
>>> From: Tinh Nguyen <tinhnguyen@os.amperecomputing.com>
>>>
>>> PrePeiCore's Arm module just added a requirement to run all library
>>> constructors that PrePeiCore uses. One of them is included in the
>>> constructor of the ExtractGuidedSectionLib. This constructor will build
>>> a HOB that is not supported "at this time" and causes an error.
>>> We don't need to use this constructor because PrePeiCore doesn't
>>> really need this library.
>>>
>>> This is a workaround to avoid PrePeiCore module calling
>>> ExtractGuidedSectionLib's constructor.
>>>
>>> Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
>>> ---
>>> .../AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf | 1 -
>>>   1 file changed, 1 deletion(-)
>>>
>>> diff --git 
>>> a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf 
>>> b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf 
>>>
>>> index a4d29379198d..a61da278c705 100644
>>> --- 
>>> a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
>>> +++ 
>>> b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.inf
>>> @@ -25,7 +25,6 @@ [LibraryClasses]
>>>     ArmSmcLib
>>>     HobLib
>>>     IoLib
>>> -  MemoryAllocationLib
>>>     PL011UartLib
>>>     PcdLib
>>>     SerialPortLib
>> Hi,
>>
>> Thanks for these patches - I will merge them shortly.
>>
>> As an aside, do you have any news on the issue I reported recently
>> regarding SetTime() on Altra which crashes the system if
>> SetVirtualAddressMap() was not called?
>>
>> https://lore.kernel.org/all/Y2o1hdZK9GGDVJsS@monolith.localdoman/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-02  3:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-21  4:58 [edk2-platforms][PATCH 1/1] AmpereAltraPkg: Remove MemoryAllocationLib in ArmPlatformLib Nhi Pham
2022-12-23 14:37 ` Ard Biesheuvel
2022-12-24  4:03   ` Nhi Pham
2023-01-17 10:09   ` Nhi Pham
2023-02-02  3:48     ` Nhi Pham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox