Re: [edk2-devel] [PATCH edk2-platforms v6 2/7] Platform/SbsaQemu: read amount of cpus during init

2024-03-19 Thread Marcin Juszkiewicz
W dniu 19.03.2024 o 12:02, Ard Biesheuvel pisze: EDK2 starts and one of the first DXE called is SbsaQemuPlatformDxe one: How is this guaranteed? DXE are generally dispatched in the order in which they appear in the FDF, but only if all DEPEX dependencies are satisfied. DEPEXes are compiled

Re: [edk2-devel] [PATCH edk2-platforms v6 2/7] Platform/SbsaQemu: read amount of cpus during init

2024-03-19 Thread Ard Biesheuvel
On Tue, 19 Mar 2024 at 11:25, Marcin Juszkiewicz wrote: > > W dniu 15.03.2024 o 12:49, Marcin Juszkiewicz pisze: > > W dniu 14.03.2024 o 16:13, Ard Biesheuvel pisze: > > >> How is it guaranteed that other components will only see the correct > >> core count? DXE dispatch is ordered using a

Re: [edk2-devel] [PATCH edk2-platforms v6 2/7] Platform/SbsaQemu: read amount of cpus during init

2024-03-19 Thread Marcin Juszkiewicz
W dniu 15.03.2024 o 12:49, Marcin Juszkiewicz pisze: W dniu 14.03.2024 o 16:13, Ard Biesheuvel pisze: How is it guaranteed that other components will only see the correct core count? DXE dispatch is ordered using a dependency graph, so all users of this PCD should never execute before this

Re: [edk2-devel] [PATCH edk2-platforms v6 2/7] Platform/SbsaQemu: read amount of cpus during init

2024-03-15 Thread Marcin Juszkiewicz
W dniu 14.03.2024 o 16:13, Ard Biesheuvel pisze: +++ b/Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.inf @@ -1,7 +1,7 @@ ## @file # This driver effectuates SbsaQemu platform configuration settings # -# Copyright (c) 2019, Linaro Ltd. All rights reserved. +#

Re: [edk2-devel] [PATCH edk2-platforms v6 2/7] Platform/SbsaQemu: read amount of cpus during init

2024-03-14 Thread Ard Biesheuvel
On Wed, 6 Mar 2024 at 12:42, Marcin Juszkiewicz wrote: > > We read it once and store in Pcd for future use. > > Signed-off-by: Marcin Juszkiewicz > --- > .../SbsaQemu/Drivers/SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.inf | 4 +++- > .../SbsaQemu/Drivers/SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.c

[edk2-devel] [PATCH edk2-platforms v6 2/7] Platform/SbsaQemu: read amount of cpus during init

2024-03-06 Thread Marcin Juszkiewicz
We read it once and store in Pcd for future use. Signed-off-by: Marcin Juszkiewicz --- .../SbsaQemu/Drivers/SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.inf | 4 +++- .../SbsaQemu/Drivers/SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.c | 9 + 2 files changed, 8 insertions(+), 5 deletions(-)