Re: [edk2-devel] [PATCH edk2-platforms v3 4/4] SbsaQemu: disable XHCI in DSDT if not present

2023-10-17 Thread Marcin Juszkiewicz
W dniu 18.10.2023 o 05:28, Nhi Pham pisze: Hi Marcin, There is a nitpicking below. Other than, it looks good to me. Acked-by: Nhi Pham a/Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c b/Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c index

Re: [edk2-devel] [PATCH edk2-platforms 00/10] MTCP-over-KCS support

2023-10-17 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] For entire series, Reviewed-by: Abner Chang Hi Aladyshev, Could you please provide the corresponding branch somewhere that contains the latest version of this patch set? Then I can move forward to merge it after edk2 portion is merged. Thanks for this

Re: [edk2-devel] [PATCH 1/2] MdePkg/Mctp.h: Correct typo in structure member name

2023-10-17 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Reviewed-by: Abner Chang > -Original Message- > From: Konstantin Aladyshev > Sent: Monday, October 16, 2023 9:18 PM > To: devel@edk2.groups.io > Cc: michael.d.kin...@intel.com; gaolim...@byosoft.com.cn; > zhiguang@intel.com; Chang, Abner ;

Re: [edk2-devel] [PATCH 2/2] MdePkg/Pldm.h: Add define for the PLDM response flag

2023-10-17 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Reviewed-by: Abner Chang > -Original Message- > From: Konstantin Aladyshev > Sent: Monday, October 16, 2023 9:18 PM > To: devel@edk2.groups.io > Cc: michael.d.kin...@intel.com; gaolim...@byosoft.com.cn; > zhiguang@intel.com; Chang, Abner ;

Re: [edk2-devel] [edk2-platforms][PATCH 2/2] OutOfBandManagement/IpmiFeaturePKg: Remove IpmiCommandLib.h from IpmiFeaturePkg

2023-10-17 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Hi Nate and Liming, Please help to review this patch. Thanks Abner > -Original Message- > From: devel@edk2.groups.io On Behalf Of Chang, > Abner via groups.io > Sent: Tuesday, October 10, 2023 4:22 PM > To: devel@edk2.groups.io > Cc: Attar, AbdulLateef

Re: [edk2-devel] [edk2-platforms][PATCH 1/2] ManageabilityPkg/Ipmi: Remove IpmiCommandLib.h from ManageabilityPkg

2023-10-17 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Hi Reviewers, Please help to review this patch. Thanks Abner > -Original Message- > From: devel@edk2.groups.io On Behalf Of Chang, > Abner via groups.io > Sent: Tuesday, October 10, 2023 4:22 PM > To: devel@edk2.groups.io > Cc: Attar, AbdulLateef

Re: [edk2-devel] [PATCH 2/2] MdeModulePkg/Include: API of IPMI Get System Interface Capabilities

2023-10-17 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Hi maintainers, Please help to review this. I also would like to propose myself and one more person as the maintainers of some manageability C header files under both MdePkg and MdeModulePkg. Such as Pldm, IPMI and etc.. How do you think? Thanks Abner >

Re: [edk2-devel] [PATCH 1/2] MdePkg/Include: Definitions of IPMI Get System Interface Capabilities

2023-10-17 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Hi maintainers, Please help to review this. Thanks Abner > -Original Message- > From: devel@edk2.groups.io On Behalf Of Chang, > Abner via groups.io > Sent: Tuesday, October 10, 2023 4:36 PM > To: devel@edk2.groups.io > Cc: Attar, AbdulLateef (Abdul

Re: [edk2-devel] [PATCH edk2-platforms v3 4/4] SbsaQemu: disable XHCI in DSDT if not present

2023-10-17 Thread Nhi Pham via groups.io
Hi Marcin, There is a nitpicking below. Other than, it looks good to me. Acked-by: Nhi Pham Regards, Nhi On 10/17/2023 8:23 PM, Marcin Juszkiewicz wrote: We need platform version to be at least 0.3 to have XHCI in virtual hardware. On older platforms there is non-working EHCI which we

[edk2-devel] Event: TianoCore Bug Triage - APAC / NAMO - Tuesday, October 17, 2023 #cal-reminder

2023-10-17 Thread Group Notification
*Reminder: TianoCore Bug Triage - APAC / NAMO* *When:* Tuesday, October 17, 2023 6:30pm to 7:30pm (UTC-07:00) America/Los Angeles *Where:*

[edk2-devel] [PATCH v3 7/7] BaseTools/Plugin/CodeQL: Enable 30 queries

2023-10-17 Thread Michael Kubacki
From: Michael Kubacki Updates the CodeQL queries opted into by edk2 to a set of queries from the standard CodeQL query package `codeql/cpp-queries`. After testing a large number of queries the included set here were found to be the most useful with the least number of false positives. Some

[edk2-devel] [PATCH v3 6/7] .pytool/CISettings: Enable CodeQL audit mode

2023-10-17 Thread Michael Kubacki
From: Michael Kubacki Since a large number of CodeQL queries are being enabled to identify issues that the community can collectively resolve, audit mode needs to be enabled to prevent the build from failing. In the future, this global audit mode can be disabled and individual packages can

[edk2-devel] [PATCH v3 5/7] .github/workflows/codeql.yml: Add CodeQL workflow

2023-10-17 Thread Michael Kubacki
From: Michael Kubacki Adds a workflow to run CodeQL against all packages built in .pytool/CISettings.py. The following is done: 1. Determine which packages to build against. Those that support are managed by .pytool/CISettings.py will be selected. For each package: 2. Determine how to

[edk2-devel] [PATCH v3 4/7] .pytool/CISettings.py: Integrate CodeQL

2023-10-17 Thread Michael Kubacki
From: Michael Kubacki Adds the `--codeql` parameter to `stuart_update` and `stuart_ci_build`. - `stuart_update --codeql` - Downloads the CodeQL CLI locally. The command will pull the appropriate binary for the host OS. - `stuart_ci_build --codeql` - Runs CodeQL during the build resulting in

[edk2-devel] [PATCH v3 3/7] BaseTools/Plugin/CodeQL: Add integration helpers

2023-10-17 Thread Michael Kubacki
From: Michael Kubacki Adds a Python module to the CodeQL plugin directory that exports functions commonly needed for Stuart-based platforms to easily enable CodeQL in their platform build. This functionality has already moved to edk2-pytool-extensions

[edk2-devel] [PATCH v3 2/7] BaseTools/Plugin/CodeQL: Add CodeQL build plugin

2023-10-17 Thread Michael Kubacki
From: Michael Kubacki Adds a CodeQL plugin that supports CodeQL in the build system. 1. CodeQlBuildPlugin - Generates a CodeQL database for a given build. 2. CodeQlAnalyzePlugin - Analyzes a CodeQL database and interprets results. 3. External dependencies - Assist with downloading the CodeQL

[edk2-devel] [PATCH v3 1/7] Remove existing CodeQL infrastructure

2023-10-17 Thread Michael Kubacki
From: Michael Kubacki CodeQL currently runs via the codeql-analysis.yml GitHub workflow which uses the `github/codeql-action/init@v2` action (pre-build) and the `github/codeql-action/analyze@v2` action (post-build) to setup the CodeQL environment and extract results. This infrastructure is

[edk2-devel] [PATCH v3 0/7] Use CodeQL CLI

2023-10-17 Thread Michael Kubacki
From: Michael Kubacki CodeQL currently runs via the codeql-analysis.yml GitHub workflow which uses the github/codeql-action/init@v2 action (pre-build) and the github/codeql-action/analyze@v2 action (post-build) to setup the CodeQL environment and extract results. This infrastructure is removed

Re: [edk2-devel] [PATCH v3 2/2] BaseTools: GenFw: auto-set nxcompat flag

2023-10-17 Thread Rebecca Cran
Thanks! Since you're okay with it, as a BaseTools maintainer I'll go ahead with that plan. -- Rebecca On 10/17/23 13:56, Joey Vagedes wrote: While I’m not a maintainer, so I don’t have much say - I don’t see an issue with your solution that rewrites the entire file as the small change I

Re: [edk2-devel] [PATCH v3 1/2] MdePkg: IndustryStandard: Add DLL Characteristics

2023-10-17 Thread Rebecca Cran
MdePkg maintainers: could you review this, and I'll be happy to merge/commit it. -- Rebecca Cran On 7/13/23 09:24, Joey Vagedes via groups.io wrote: Add the bit masks for DLL Characteristics, used within the optional header of a PE, to the PeImage.h header file. Update the Visual Studio,

Re: [edk2-devel] [PATCH v3 2/2] BaseTools: GenFw: auto-set nxcompat flag

2023-10-17 Thread Rebecca Cran
Unfortunately the patch doesn't pass CI because BaseTools/UserManuals/GenFw_Utility_Man_Page.rtf contains trailing whitespace. I'm unsure whether I can manually fix it, or if I should open it in LibreOffice and re-save it? Doing so appears to rewrite the entire file, which might not be

Re: [edk2-devel] [PATCH v5 2/2] OvmfPkg/RiscVVirt: Override for RV CPU Features

2023-10-17 Thread Laszlo Ersek
On 10/17/23 14:17, Dhaval Sharma wrote: > This PCD provides a way for platform to override any > HW features that are default enabled by previous stages > of FW (like OpenSBI). For the case where previous/prev > stage has disabled the feature, this override is not > useful and its usage should be

Re: [edk2-devel] [PATCH v5 1/2] MdePkg:Implement RISCV CMO

2023-10-17 Thread Laszlo Ersek
On 10/17/23 16:22, Laszlo Ersek wrote: > On 10/17/23 14:17, Dhaval Sharma wrote: >> Implementing code to support Cache Management Operations >> (CMO) defined by RV spec https://github.com/riscv/riscv-CMOs (28) Please do not abbreviate RISC-V as "RV". It's incredibly confusing. (29) Inconsistent

Re: [edk2-devel] [PATCH v5 2/2] OvmfPkg/RiscVVirt: Override for RV CPU Features

2023-10-17 Thread Laszlo Ersek
On 10/17/23 14:17, Dhaval Sharma wrote: > This PCD provides a way for platform to override any > HW features that are default enabled by previous stages > of FW (like OpenSBI). For the case where previous/prev > stage has disabled the feature, this override is not > useful and its usage should be

Re: [edk2-devel] [PATCH v5 1/2] MdePkg:Implement RISCV CMO

2023-10-17 Thread Laszlo Ersek
On 10/17/23 14:17, Dhaval Sharma wrote: > Implementing code to support Cache Management Operations > (CMO) defined by RV spec https://github.com/riscv/riscv-CMOs > > Notes: > 1. CMO only supports block based Operations. Meaning complete >cache flush/invd/clean Operations are not available. In

[edk2-devel] [PATCH edk2-platforms v3 3/4] SbsaQemu: initialize XHCI only if it exists

2023-10-17 Thread Marcin Juszkiewicz
We need platform version to be at least 0.3 to have XHCI in virtual hardware. On older platforms there is non-working EHCI which we ignore. Signed-off-by: Marcin Juszkiewicz --- .../SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.c| 47 +++- 1 file changed, 25 insertions(+), 22

[edk2-devel] [PATCH edk2-platforms v3 4/4] SbsaQemu: disable XHCI in DSDT if not present

2023-10-17 Thread Marcin Juszkiewicz
We need platform version to be at least 0.3 to have XHCI in virtual hardware. On older platforms there is non-working EHCI which we ignore. Set DSDT node to be disabled so operating system will not try to initialize not-existing hardware. Signed-off-by: Marcin Juszkiewicz ---

[edk2-devel] [PATCH edk2-platforms v3 2/4] SbsaQemu: add AcpiLib

2023-10-17 Thread Marcin Juszkiewicz
It will be needed for playing with disabling XHCI later. Signed-off-by: Marcin Juszkiewicz --- Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc b/Platform/Qemu/SbsaQemu/SbsaQemu.dsc index 36723e21d7b5..1e650350cb63

[edk2-devel] [PATCH edk2-platforms v3 0/4] Provide XHCI USB controller only for newer hardware

2023-10-17 Thread Marcin Juszkiewicz
Platform version 0.3 introduced XHCI USB controller instead of EHCI one. But we did it in a way that there is no in-EDK2 check for platform version (XHCI is always given). This behaviour works with Linux as it complains about being unable to initialize EHCI and goes on. Free/Net/Open BSD systems

[edk2-devel] [PATCH edk2-platforms v3 1/4] SbsaQemu: introduce macro to compare platform version

2023-10-17 Thread Marcin Juszkiewicz
We want to check "if platver < 0.3" in an easy way. --- .../IndustryStandard/SbsaQemuPlatformVersion.h | 25 1 file changed, 25 insertions(+) diff --git a/Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuPlatformVersion.h

Re: [edk2-devel] [PATCH edk2-platforms v2 0/4] Provide XHCI USB controller only for newer hardware

2023-10-17 Thread Marcin Juszkiewicz
W dniu 17.10.2023 o 13:46, Nhi Pham pisze: Then looked again at code from Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiDsdt.c and noticed UpdateStatusMethodObject() function. Copied some code and it worked. Could you please check whether we can replace the UpdateStatusMethodObject() function

[edk2-devel] [PATCH v5 2/2] OvmfPkg/RiscVVirt: Override for RV CPU Features

2023-10-17 Thread Dhaval Sharma
This PCD provides a way for platform to override any HW features that are default enabled by previous stages of FW (like OpenSBI). For the case where previous/prev stage has disabled the feature, this override is not useful and its usage should be avoided. Ard Biesheuvel Jiewen Yao Jordan

[edk2-devel] [PATCH v5 1/2] MdePkg:Implement RISCV CMO

2023-10-17 Thread Dhaval Sharma
Implementing code to support Cache Management Operations (CMO) defined by RV spec https://github.com/riscv/riscv-CMOs Notes: 1. CMO only supports block based Operations. Meaning complete cache flush/invd/clean Operations are not available. In that case we fallback on fence.i instructions.

[edk2-devel] [PATCH v5 0/2] MdePkg:Implement RISCV CMO

2023-10-17 Thread Dhaval Sharma
Implementing code to support Cache Management Operations (CMO) defined by RV spec https://github.com/riscv/riscv-CMOs Notes: CMO only supports block based Operations. Meaning complete cache flush/invd/clean Operations are not available. In that case we fallback on fence.i instructions. Rely on

Re: [edk2-devel] [edk2-platforms PATCH 1/1] AmpereAltraPkg/Ac01PcieLib: drop useless link status register read

2023-10-17 Thread Laszlo Ersek
On 10/17/23 13:38, Nhi Pham via groups.io wrote: > Thanks, Laszlo for this patch. > > Reviewed-by: Nhi Pham > > Regards, > Nhi Thank you both for reviewing; commit 7f3e7fc0b4ed. Laszlo > > On 10/17/2023 5:05 PM, Laszlo Ersek via groups.io wrote: >> Nhi says that reading

Re: [edk2-devel] [PATCH edk2-platforms v2 0/4] Provide XHCI USB controller only for newer hardware

2023-10-17 Thread Nhi Pham via groups.io
Hi Marcin, On 10/16/2023 5:06 PM, Marcin Juszkiewicz wrote: Platform version 0.3 introduced XHCI USB controller instead of EHCI one. But we did it in a way that there is no in-EDK2 check for platform version (XHCI is always given). This behaviour works with Linux as it complains about being

Re: [edk2-devel] [PATCH v2 1/1] UefiCpuPkg/BaseXApicX2ApicLib: fix CPUID_V2_EXTENDED_TOPOLOGY detection

2023-10-17 Thread Laszlo Ersek
On 10/17/23 13:28, Gerd Hoffmann wrote: > Checking the max cpuid leaf is not enough to figure whenever > CPUID_V2_EXTENDED_TOPOLOGY is supported. Intel SDM says: > >Software must detect the presence of CPUID leaf 1FH by verifying >(a) the highest leaf index supported by CPUID is >= 1FH,

Re: [edk2-devel] [edk2-platforms PATCH 1/1] AmpereAltraPkg/Ac01PcieLib: drop useless link status register read

2023-10-17 Thread Nhi Pham via groups.io
Thanks, Laszlo for this patch. Reviewed-by: Nhi Pham Regards, Nhi On 10/17/2023 5:05 PM, Laszlo Ersek via groups.io wrote: Nhi says that reading LINK_CONTROL_LINK_STATUS_REG is redundant; its only use was debugging (before commit 380b4b40c60d). Thus, we can go farther than commit

[edk2-devel] [PATCH v2 1/1] UefiCpuPkg/BaseXApicX2ApicLib: fix CPUID_V2_EXTENDED_TOPOLOGY detection

2023-10-17 Thread Gerd Hoffmann
Checking the max cpuid leaf is not enough to figure whenever CPUID_V2_EXTENDED_TOPOLOGY is supported. Intel SDM says: Software must detect the presence of CPUID leaf 1FH by verifying (a) the highest leaf index supported by CPUID is >= 1FH, and (b) CPUID.1FH:EBX[15:0] reports a non-zero

Re: [edk2-devel] [edk2-discuss] PLDM messages via MCTP over KCS

2023-10-17 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] > -Original Message- > From: Konstantin Aladyshev > Sent: Tuesday, October 17, 2023 4:54 PM > To: Chang, Abner > Cc: disc...@edk2.groups.io; devel@edk2.groups.io > Subject: Re: [edk2-devel] [edk2-discuss] PLDM messages via MCTP over KCS > > Caution:

Re: [edk2-devel] [edk2-platforms PATCH 1/1] AmpereAltraPkg/Ac01PcieLib: drop useless link status register read

2023-10-17 Thread Rebecca Cran via groups.io
On 10/17/2023 4:05 AM, Laszlo Ersek wrote: Nhi says that reading LINK_CONTROL_LINK_STATUS_REG is redundant; its only use was debugging (before commit 380b4b40c60d). Thus, we can go farther than commit 2e27c62ef000, and remove the MmioRead32() call altogether. Build-tested with "Jade.dsc". Cc:

[edk2-devel] [edk2-platforms PATCH 1/1] AmpereAltraPkg/Ac01PcieLib: drop useless link status register read

2023-10-17 Thread Laszlo Ersek
Nhi says that reading LINK_CONTROL_LINK_STATUS_REG is redundant; its only use was debugging (before commit 380b4b40c60d). Thus, we can go farther than commit 2e27c62ef000, and remove the MmioRead32() call altogether. Build-tested with "Jade.dsc". Cc: Chuong Tran Cc: Leif Lindholm Cc: Nhi Pham

Re: [edk2-devel] [PATCH 1/1] UefiCpuPkg/BaseXApicX2ApicLib: fix CPUID_V2_EXTENDED_TOPOLOGY detection

2023-10-17 Thread Gerd Hoffmann
Hi, > This is a terrible *organization* bug in the Intel SDM. [ ... ] > So, keep scrolling... a whopping 14 pages later, on page 850, we find: > > INPUT EAX = 1FH: Returns V2 Extended Topology Information > > When CPUID executes with EAX set to 1FH, the processor returns >

Re: [edk2-devel] [edk2-discuss] PLDM messages via MCTP over KCS

2023-10-17 Thread Konstantin Aladyshev
Hi Abner, In the code you are using: PLDM_TERMINUS_ID_UNASSIGNED PLDM_TERMINUS_ID_RESERVED PLDM_TERMINUS_ID_SPECIAL but I don't see any definitions for these values. I'm particularly confused about the meaning and usage of the PLDM_TERMINUS_ID_SPECIAL value. My understanding was that we give

Re: [edk2-devel] [PATCH] Basetools: Include PCD declarations from Library Instance

2023-10-17 Thread PierreGondois
Hello, FYIW: Tested-by: Pierre Gondois On 10/12/23 19:11, levi.yun wrote: The patch "[PATCH v3 1/2] StandaloneMmPkg: Make StandaloneMmCpu driver architecture independent" (https://edk2.groups.io/g/devel/message/109178) removed ArmPkg/ArmPkg.dec from the Packages section in the INF file: