[edk2-devel] [PATCH edk2-platforms v3 16/16] ManageabilityPkg: Check PLDM completion code

2023-10-23 Thread Konstantin Aladyshev
is invalid. Signed-off-by: Konstantin Aladyshev --- .../Universal/PldmProtocol/Common/PldmProtocolCommon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Features/ManageabilityPkg/Universal/PldmProtocol/Common/PldmProtocolCommon.c b/Features/ManageabilityPkg/Universal

[edk2-devel] [PATCH edk2-platforms v3 15/16] PldmSmbiosTransferDxe: Implement Set PLDM terminus ID API

2023-10-23 Thread Konstantin Aladyshev
From: Abner Chang Currently all PLDM functions inside the PLDM_SMBIOS_TRANSFER_PROTOCOL use PLDM terminus PCDs for the MCTP addressing. Add additional function to the protocol API to provide user a way to use custom TIDs. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev

[edk2-devel] [PATCH edk2-platforms v3 12/16] PldmProtocolDxe: Correct TID argument usage

2023-10-23 Thread Konstantin Aladyshev
custom TIDs either via PldmSubmit function arguments or by calling PldmSetTerminus API. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- .../Include/Library/BasePldmProtocolLib.h | 16 ++ .../Include/Protocol/PldmProtocol.h | 18 +++--- .../PldmProtocolLibrary

[edk2-devel] [PATCH edk2-platforms v3 13/16] ManageabilityPkg/PldmProtocol: Remove PLDM command table

2023-10-23 Thread Konstantin Aladyshev
the response buffer size handling. Also update the message for error conditions. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- .../PldmProtocol/Common/PldmProtocolCommon.c | 100 +++--- .../PldmProtocol/Common/PldmProtocolCommon.h | 3 + .../Universal/PldmProtocol/Dxe

[edk2-devel] [PATCH edk2-platforms v3 14/16] ManageabilityPkg: Return error on PLDM header check fails

2023-10-23 Thread Konstantin Aladyshev
Currently PldmSubmit command returns EFI_SUCCESS even if the response header checks have failed. Correct the code to return errors in such cases. Signed-off-by: Konstantin Aladyshev --- .../Universal/PldmProtocol/Common/PldmProtocolCommon.c | 9 ++--- 1 file changed, 6 insertions(+), 3

[edk2-devel] [PATCH edk2-platforms v3 11/16] ManageabilityPkg: Add PLDM terminus PCDs

2023-10-23 Thread Konstantin Aladyshev
From: Abner Chang Add PLDM source and destination terminus IDs for transmiting PLDM message. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- Features/ManageabilityPkg/ManageabilityPkg.dec | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Features/ManageabilityPkg

[edk2-devel] [PATCH edk2-platforms v3 08/16] ManageabilityPkg: Don't check MCTP header fields if transfer has failed

2023-10-23 Thread Konstantin Aladyshev
If MCTP KCS communication has failed we need to abort MCTP transfer function before checking any MCTP header data. Signed-off-by: Konstantin Aladyshev --- .../MctpProtocol/Common/MctpProtocolCommon.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

[edk2-devel] [PATCH edk2-platforms v3 10/16] ManageabilityPkg: Return error on multiple-packet MCTP responses

2023-10-23 Thread Konstantin Aladyshev
Since the current driver doesn't yet support handling of multiple-packet MCTP responses, return EFI_UNSUPPORTED error in such cases. Signed-off-by: Konstantin Aladyshev --- .../MctpProtocol/Common/MctpProtocolCommon.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[edk2-devel] [PATCH edk2-platforms v3 09/16] ManageabilityPkg: Use correct constants for PLDM header checks

2023-10-23 Thread Konstantin Aladyshev
Currently PldmProtocol code uses magic numbers in the PLDM header checks. Since PLDM headers have all the necessary definitions replace magic numbers with the appropriate defines. Signed-off-by: Konstantin Aladyshev --- .../Universal/PldmProtocol/Common/PldmProtocolCommon.c| 8 1

[edk2-devel] [PATCH edk2-platforms v3 05/16] ManageabilityPkg: Correct typo in MCTP destination EID field

2023-10-23 Thread Konstantin Aladyshev
Correct wrong structure member used for MCTP destination EID. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- .../Universal/PldmProtocol/Common/PldmProtocolCommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Features/ManageabilityPkg

[edk2-devel] [PATCH edk2-platforms v3 06/16] ManageabilityPkg: Update the algorithm of using MCTP endpoint ID PCD

2023-10-23 Thread Konstantin Aladyshev
values only if the pointers are NULL. Signed-off-by: Konstantin Aladyshev Signed-off-by: Abner Chang --- .../Include/Protocol/MctpProtocol.h | 12 -- .../Dxe/ManageabilityTransportMctp.c | 4 +- .../MctpProtocol/Common/MctpProtocolCommon.c | 4 +- .../Universal

[edk2-devel] [PATCH edk2-platforms v3 07/16] ManageabilityPkg: Correct value for the MCTP TAG_OWNER response bit

2023-10-23 Thread Konstantin Aladyshev
Currently the MCTP TAG_OWNER bit is checked against 1 both in MTCP request and response. According to the MTCP Base specification in case of the MCTP response the TAG_OWNER bit should be equal to 0. Correct MCTP_MESSAGE_TAG_OWNER_RESPONSE flag value to fix the issue. Signed-off-by: Konstantin

[edk2-devel] [PATCH edk2-platforms v3 04/16] ManageabilityPkg: Check header fields in the MCTP response

2023-10-23 Thread Konstantin Aladyshev
Add checks for the MCTP header fields in the MCTP response. Signed-off-by: Konstantin Aladyshev --- .../MctpProtocol/Common/MctpProtocolCommon.c | 82 +++ 1 file changed, 82 insertions(+) diff --git a/Features/ManageabilityPkg/Universal/MctpProtocol/Common

[edk2-devel] [PATCH edk2-platforms v3 03/16] ManageabilityPkg: Support both MCTP and IPMI in KCS tranport library

2023-10-23 Thread Konstantin Aladyshev
. Modify Manageability KCS transport library code to check which message is processed (IPMI or MCTP) and handle each case correctly based on its own specification. Tested: - The IPMI KCS communication is tested by Abner Chang, - The MCTP KCS communication is tested by Konstantin Aladyshev on the AMD

[edk2-devel] [PATCH edk2-platforms v3 02/16] ManageabilityPkg: Check MCTP EIDs for reserved values

2023-10-23 Thread Konstantin Aladyshev
MTCP base specification marks EIDs 1-7 as reserved. Therefore return EFI_INVALID_PARAMETER if such EIDs were provided to the MctpSubmitMessage function. Signed-off-by: Konstantin Aladyshev Signed-off-by: Abner Chang --- .../Universal/MctpProtocol/Dxe/MctpProtocol.c | 17 + 1

[edk2-devel] [PATCH edk2-platforms v3 01/16] ManageabilityPkg: Add definition for the MCTP KCS TRAILER structure

2023-10-23 Thread Konstantin Aladyshev
Currently there is only a definition for the MCTP KCS HEADER structure. Add definition for the MCTP KCS TRAILER structure as well. Signed-off-by: Konstantin Aladyshev Signed-off-by: Abner Chang --- .../Library/ManageabilityTransportMctpLib.h| 5 + .../MctpProtocol/Common

[edk2-devel] [PATCH edk2-platforms v3 00/16] MTCP-over-KCS support

2023-10-23 Thread Konstantin Aladyshev
. Modify Manageability KCS transport library code to check which message is processed (IPMI or MCTP) and handle each case correctly based on its own specification. This patch is a result of a joint effort from the Konstantin Aladyshev and Abner Chang . Tested: PLDM communication between the HOST

[edk2-devel] [PATCH edk2-platforms v2 15/15] PldmSmbiosTransferDxe: Implement Set PLDM terminus ID API

2023-10-20 Thread Konstantin Aladyshev
From: Abner Chang Currently all PLDM functions inside the PLDM_SMBIOS_TRANSFER_PROTOCOL use PLDM terminus PCDs for the MCTP addressing. Add additional function to the protocol API to provide user a way to use custom TIDs. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev

[edk2-devel] [PATCH edk2-platforms v2 14/15] ManageabilityPkg: Return error on PLDM header check fails

2023-10-20 Thread Konstantin Aladyshev
Currently PldmSubmit command returns EFI_SUCCESS even if the response header checks have failed. Correct the code to return errors in such cases. Signed-off-by: Konstantin Aladyshev --- .../Universal/PldmProtocol/Common/PldmProtocolCommon.c | 9 ++--- 1 file changed, 6 insertions(+), 3

[edk2-devel] [PATCH edk2-platforms v2 13/15] ManageabilityPkg/PldmProtocol: Remove PLDM command table

2023-10-20 Thread Konstantin Aladyshev
the response buffer size handling. Also update the message for error conditions. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- .../PldmProtocol/Common/PldmProtocolCommon.c | 100 +++--- .../PldmProtocol/Common/PldmProtocolCommon.h | 3 + .../Universal/PldmProtocol/Dxe

[edk2-devel] [PATCH edk2-platforms v2 12/15] PldmProtocolDxe: Correct TID argument usage

2023-10-20 Thread Konstantin Aladyshev
custom TIDs either via PldmSubmit function arguments or by calling PldmSetTerminus API. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- .../Include/Library/BasePldmProtocolLib.h | 16 ++ .../Include/Protocol/PldmProtocol.h | 18 +++--- .../PldmProtocolLibrary

[edk2-devel] [PATCH edk2-platforms v2 11/15] ManageabilityPkg: Add PLDM terminus PCDs

2023-10-20 Thread Konstantin Aladyshev
From: Abner Chang Add PLDM source and destination terminus IDs for transmiting PLDM message. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- Features/ManageabilityPkg/ManageabilityPkg.dec | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Features/ManageabilityPkg

[edk2-devel] [PATCH edk2-platforms v2 10/15] ManageabilityPkg: Return error on multiple-packet MCTP responses

2023-10-20 Thread Konstantin Aladyshev
Since the current driver doesn't yet support handling of multiple-packet MCTP responses, return EFI_UNSUPPORTED error in such cases. Signed-off-by: Konstantin Aladyshev --- .../MctpProtocol/Common/MctpProtocolCommon.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[edk2-devel] [PATCH edk2-platforms v2 09/15] ManageabilityPkg: Use correct constants for PLDM header checks

2023-10-20 Thread Konstantin Aladyshev
Currently PldmProtocol code uses magic numbers in the PLDM header checks. Since PLDM headers have all the necessary definitions replace magic numbers with the appropriate defines. Signed-off-by: Konstantin Aladyshev --- .../Universal/PldmProtocol/Common/PldmProtocolCommon.c| 8 1

[edk2-devel] [PATCH edk2-platforms v2 08/15] ManageabilityPkg: Don't check MCTP header fields if transfer has failed

2023-10-20 Thread Konstantin Aladyshev
If MCTP KCS communication has failed we need to abort MCTP transfer function before checking any MCTP header data. Signed-off-by: Konstantin Aladyshev --- .../MctpProtocol/Common/MctpProtocolCommon.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

[edk2-devel] [PATCH edk2-platforms v2 07/15] ManageabilityPkg: Correct value for the MCTP TAG_OWNER response bit

2023-10-20 Thread Konstantin Aladyshev
Currently the MCTP TAG_OWNER bit is checked against 1 both in MTCP request and response. According to the MTCP Base specification in case of the MCTP response the TAG_OWNER bit should be equal to 0. Correct MCTP_MESSAGE_TAG_OWNER_RESPONSE flag value to fix the issue. Signed-off-by: Konstantin

[edk2-devel] [PATCH edk2-platforms v2 06/15] ManageabilityPkg: Update the algorithm of using MCTP endpoint ID PCD

2023-10-20 Thread Konstantin Aladyshev
values only if the pointers are NULL. Signed-off-by: Konstantin Aladyshev Signed-off-by: Abner Chang --- .../Include/Protocol/MctpProtocol.h | 12 -- .../Dxe/ManageabilityTransportMctp.c | 4 +- .../MctpProtocol/Common/MctpProtocolCommon.c | 4 +- .../Universal

[edk2-devel] [PATCH edk2-platforms v2 04/15] ManageabilityPkg: Check header fields in the MCTP response

2023-10-20 Thread Konstantin Aladyshev
Add checks for the MCTP header fields in the MCTP response. Signed-off-by: Konstantin Aladyshev --- .../MctpProtocol/Common/MctpProtocolCommon.c | 82 +++ 1 file changed, 82 insertions(+) diff --git a/Features/ManageabilityPkg/Universal/MctpProtocol/Common

[edk2-devel] [PATCH edk2-platforms v2 05/15] ManageabilityPkg: Correct typo in MCTP destination EID field

2023-10-20 Thread Konstantin Aladyshev
Correct wrong structure member used for MCTP destination EID. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- .../Universal/PldmProtocol/Common/PldmProtocolCommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Features/ManageabilityPkg

[edk2-devel] [PATCH edk2-platforms v2 03/15] ManageabilityPkg: Support both MCTP and IPMI in KCS tranport library

2023-10-20 Thread Konstantin Aladyshev
. Modify Manageability KCS transport library code to check which message is processed (IPMI or MCTP) and handle each case correctly based on its own specification. Tested: - The IPMI KCS communication is tested by Abner Chang, - The MCTP KCS communication is tested by Konstantin Aladyshev on the AMD

[edk2-devel] [PATCH edk2-platforms v2 02/15] ManageabilityPkg: Check MCTP EIDs for reserved values

2023-10-20 Thread Konstantin Aladyshev
MTCP base specification marks EIDs 1-7 as reserved. Therefore return EFI_INVALID_PARAMETER if such EIDs were provided to the MctpSubmitMessage function. Signed-off-by: Konstantin Aladyshev Signed-off-by: Abner Chang --- .../Universal/MctpProtocol/Dxe/MctpProtocol.c | 17 + 1

[edk2-devel] [PATCH edk2-platforms v2 00/15] MTCP-over-KCS support

2023-10-20 Thread Konstantin Aladyshev
. Modify Manageability KCS transport library code to check which message is processed (IPMI or MCTP) and handle each case correctly based on its own specification. This patch is a result of a joint effort from the Konstantin Aladyshev and Abner Chang . Tested: PLDM communication between the HOST

[edk2-devel] [PATCH edk2-platforms v2 01/15] ManageabilityPkg: Add definition for the MCTP KCS TRAILER structure

2023-10-20 Thread Konstantin Aladyshev
Currently there is only a definition for the MCTP KCS HEADER structure. Add definition for the MCTP KCS TRAILER structure as well. Signed-off-by: Konstantin Aladyshev Signed-off-by: Abner Chang --- .../Library/ManageabilityTransportMctpLib.h| 5 + .../MctpProtocol/Common

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

2023-10-18 Thread Konstantin Aladyshev
, Konstantin Aladyshev On Wed, Oct 18, 2023 at 6:45 AM Chang, Abner wrote: > > [AMD Official Use Only - General] > > Code update is on > https://github.com/changab/edk2-platforms/tree/MCTP_OVER_KCS_UPDATE, the last > commit. > > Abner > > > -Original Message

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

2023-10-17 Thread Konstantin Aladyshev
minor observation, there are actually 2 reserved values for the TID according to the specification: 0x00 and 0xff. Best regards, Konstantin Aladyshev On Tue, Oct 17, 2023 at 6:41 AM Chang, Abner wrote: > > [AMD Official Use Only - General] > > Hi Aladyshev, > I had updated code accord

[edk2-devel] [PATCH edk2-platforms 07/10] ManageabilityPkg: Correct value for the MCTP TAG_OWNER response bit

2023-10-16 Thread Konstantin Aladyshev
Currently the MCTP TAG_OWNER bit is checked against 1 both in MTCP request and response. According to the MTCP Base specification in case of the MCTP response the TAG_OWNER bit should be equal to 0. Correct MCTP_MESSAGE_TAG_OWNER_RESPONSE flag value to fix the issue. Signed-off-by: Konstantin

[edk2-devel] [PATCH edk2-platforms 10/10] ManageabilityPkg: Return error on multiple-packet MCTP responses

2023-10-16 Thread Konstantin Aladyshev
Since the current driver doesn't yet support handling of multiple-packet MCTP responses, return EFI_UNSUPPORTED error in such cases. Signed-off-by: Konstantin Aladyshev --- .../MctpProtocol/Common/MctpProtocolCommon.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[edk2-devel] [PATCH edk2-platforms 09/10] ManageabilityPkg: Use correct constants for PLDM header checks

2023-10-16 Thread Konstantin Aladyshev
Currently PldmProtocol code uses magic numbers in the PLDM header checks. Since PLDM headers have all the necessary definitions replace magic numbers with the appropriate defines. Signed-off-by: Konstantin Aladyshev --- .../Universal/PldmProtocol/Common/PldmProtocolCommon.c| 8 1

[edk2-devel] [PATCH edk2-platforms 06/10] ManageabilityPkg: Update the algorithm of using MCTP endpoint ID PCD

2023-10-16 Thread Konstantin Aladyshev
values only if the pointers are NULL. Signed-off-by: Konstantin Aladyshev Signed-off-by: Abner Chang --- .../Include/Protocol/MctpProtocol.h | 12 -- .../Dxe/ManageabilityTransportMctp.c | 4 +- .../MctpProtocol/Common/MctpProtocolCommon.c | 4 +- .../Universal

[edk2-devel] [PATCH edk2-platforms 08/10] ManageabilityPkg: Don't check MCTP header fields if transfer has failed

2023-10-16 Thread Konstantin Aladyshev
If MCTP KCS communication has failed we need to abort MCTP transfer function before checking any MCTP header data. Signed-off-by: Konstantin Aladyshev --- .../MctpProtocol/Common/MctpProtocolCommon.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

[edk2-devel] [PATCH edk2-platforms 05/10] ManageabilityPkg: Correct typo in MCTP destination EID field

2023-10-16 Thread Konstantin Aladyshev
Correct wrong structure member used for MCTP destination EID. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- .../Universal/PldmProtocol/Common/PldmProtocolCommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Features/ManageabilityPkg

[edk2-devel] [PATCH edk2-platforms 04/10] ManageabilityPkg: Check header fields in the MCTP response

2023-10-16 Thread Konstantin Aladyshev
Add checks for the MCTP header fields in the MCTP response. Signed-off-by: Konstantin Aladyshev --- .../MctpProtocol/Common/MctpProtocolCommon.c | 82 +++ 1 file changed, 82 insertions(+) diff --git a/Features/ManageabilityPkg/Universal/MctpProtocol/Common

[edk2-devel] [PATCH edk2-platforms 03/10] ManageabilityPkg: Support both MCTP and IPMI in KCS tranport library

2023-10-16 Thread Konstantin Aladyshev
. Modify Manageability KCS transport library code to check which message is processed (IPMI or MCTP) and handle each case correctly based on its own specification. Tested: - The IPMI KCS communication is tested by Abner Chang, - The MCTP KCS communication is tested by Konstantin Aladyshev on the AMD

[edk2-devel] [PATCH edk2-platforms 01/10] ManageabilityPkg: Add definition for the MCTP KCS TRAILER structure

2023-10-16 Thread Konstantin Aladyshev
Currently there is only a definition for the MCTP KCS HEADER structure. Add definition for the MCTP KCS TRAILER structure as well. Signed-off-by: Konstantin Aladyshev Signed-off-by: Abner Chang --- .../Library/ManageabilityTransportMctpLib.h| 5 + .../MctpProtocol/Common

[edk2-devel] [PATCH edk2-platforms 02/10] ManageabilityPkg: Check MCTP EIDs for reserved values

2023-10-16 Thread Konstantin Aladyshev
MTCP base specification marks EIDs 1-7 as reserved. Therefore return EFI_INVALID_PARAMETER if such EIDs were provided to the MctpSubmitMessage function. Signed-off-by: Konstantin Aladyshev Signed-off-by: Abner Chang --- .../Universal/MctpProtocol/Dxe/MctpProtocol.c | 17 + 1

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

2023-10-16 Thread Konstantin Aladyshev
. Modify Manageability KCS transport library code to check which message is processed (IPMI or MCTP) and handle each case correctly based on its own specification. This patch is a result of a joint effort from the Konstantin Aladyshev and Abner Chang . Tested: PLDM communication between the HOST

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

2023-10-16 Thread Konstantin Aladyshev
The PLDM protocol uses Request bit to help differentiate between PLDM request and response messages. Currently the Pldm.h header only have a flag for the request message. Add a flag for the response message as well. Signed-off-by: Konstantin Aladyshev --- MdePkg/Include/IndustryStandard/Pldm.h

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

2023-10-16 Thread Konstantin Aladyshev
Correct MCTP_TRANSPORT_HEADER structure field 'SourceEndpointIdId' to 'SourceEndpointId'. Signed-off-by: Abner Chang Signed-off-by: Konstantin Aladyshev --- MdePkg/Include/IndustryStandard/Mctp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Include

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

2023-10-14 Thread Konstantin Aladyshev
t; firm? As a part of my job I develop UEFI and BMC firmware. But all the open-source work that I do I perform on my own free time. So you can count me as an individual contributor) Best regards, Konstantin Aladyshev On Sat, Oct 14, 2023 at 11:06 AM Chang, Abner wrote: > > [AMD Off

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

2023-10-13 Thread Konstantin Aladyshev
them and provide feedback. Also I wanted to ask if you plan to work on the required changes yourself, or am I on my own from here?) Best regards, Konstantin Aladyshev On Wed, Oct 11, 2023 at 8:58 AM Chang, Abner wrote: > > [AMD Official Use Only - General] > > Hi Aladyshev, > Here

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

2023-10-05 Thread Konstantin Aladyshev
error information to the user? I've also created PRs for your edk2/edk2-platforms forks with some things that I've found today. https://github.com/changab/edk2/pull/1 https://github.com/changab/edk2-platforms/pull/6 Best regards, Konstantin Aladyshev On Thu, Oct 5, 2023 at 3:31 PM Konstantin

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

2023-10-05 Thread Konstantin Aladyshev
) Because only the PldmSmbios protocol code should know such information as expected response sizes for its commands. Best regards, Konstantin Aladyshev On Thu, Oct 5, 2023 at 3:19 PM Konstantin Aladyshev wrote: > > Also I see that the 'PldmProtocolCommon' code contains array of > expected

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

2023-10-05 Thread Konstantin Aladyshev
/PldmProtocolCommon.c#L261 This means that right now I can't execute my simple 'GetPLDMTypes' command through the 'PldmSubmit' protocol function. Best regards, Konstantin Aladyshev On Thu, Oct 5, 2023 at 12:55 PM Konstantin Aladyshev wrote: > > Shouldn't we update the PLDM protocol's 'Pldm

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

2023-10-05 Thread Konstantin Aladyshev
://github.com/tianocore/edk2-platforms/blob/d6e36a151ff8365cdc55a6914cc5e6138d5788dc/Features/ManageabilityPkg/Universal/PldmProtocol/Common/PldmProtocolCommon.c#L121 Best regards, Konstantin Aladyshev On Thu, Oct 5, 2023 at 7:03 AM Chang, Abner wrote: > > [AMD Official Use Only - G

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

2023-10-04 Thread Konstantin Aladyshev
the code is pushed to the torvalds/linux, it would be picked up by the openbmc/linux automatically. Best regards, Konstantin Aladyshev On Wed, Oct 4, 2023 at 7:12 PM Chang, Abner wrote: > > [AMD Official Use Only - General] > > > That is great, and I'm surprised there are some build

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

2023-10-04 Thread Konstantin Aladyshev
ERVED_ENDPOINT_END_ID) + (MctpDestinationEndpointId <= MCTP_RESERVED_ENDPOINT_END_ID) ) { DEBUG ((DEBUG_ERROR, "%a: The value of MCTP destination EID (%x) is reserved.\n", func, MctpDestinationEndpointId)); return EFI_INVALID_PARAMETER; ``` Best regards, Konstantin Al

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

2023-09-28 Thread Konstantin Aladyshev
are reserved. It is critical that we do not use them since MCTP Linux kernel subsystem checks that part. So we probably need to add some check to the `MctpSubmitCommand` that would verify that we don't use reserved EIDs. Best regards, Konstantin Aladyshev On Thu, Sep 21, 2023 at 5:32 AM Chang

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

2023-09-08 Thread Konstantin Aladyshev
driver. Best regards, Konstantin Aladyshev On Fri, Sep 1, 2023 at 8:58 AM Chang, Abner wrote: > > [AMD Official Use Only - General] > > See my answer below, > > > -Original Message- > > From: devel@edk2.groups.io On Behalf Of > > Konstantin Aladyshev via grou

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

2023-08-31 Thread Konstantin Aladyshev
ta OPTIONAL, IN OUT UINT32 *ResponseDataSize OPTIONAL ``` Should we include MCTP_TRANSPORT_HEADER/MCTP_MESSAGE_HEADER to this output or not? Best regards, Konstantin Aladyshev On Thu, Aug 31, 2023 at 6:52 PM Chang, Abner wrote: > > [AMD Official Use Only - Gen

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

2023-08-31 Thread Konstantin Aladyshev
MESSAGE_HEADER? Do we need to check them here as well? Or do we need to check them somewhere upper the call stack? Best regards, Konstantin Aladyshev On Thu, Aug 31, 2023 at 7:59 AM Chang, Abner wrote: > > [AMD Official Use Only - General] > > Hi Aladyshev, > > > -Origina

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

2023-08-30 Thread Konstantin Aladyshev
be used both for IPMI and MCTP, how should we deal with this? Best regards, Konstantin Aladyshev On Wed, Aug 23, 2023 at 5:18 AM Chang, Abner wrote: > > [AMD Official Use Only - General] > > Please see my answers inline. > > > -Original Message- > > From: disc..

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

2023-08-22 Thread Konstantin Aladyshev
, Konstantin Aladyshev On Tue, Aug 22, 2023 at 7:26 PM Chang, Abner wrote: > > [AMD Official Use Only - General] > > Hi Aladyshev, > We use library class to specify the desire transport interface for the > management protocol, such as MCTP, PLDM and IPMI. This way we can flexibly >

[edk2-devel] PLDM messages via MCTP over KCS

2023-08-22 Thread Konstantin Aladyshev
y to resolve this? There are no platforms in the repo that actually implement PLDM/MCTP functionality, so there is no example that I can use as a reference. Best regards, Konstantin Aladyshev -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Onl

Re: [edk2-devel] [PATCH] Fix cyclic dependency error on OptionROM build

2023-01-17 Thread Konstantin Aladyshev
sday, January 17, 2023 1:05 PM > To: Jake Garver ; Konstantin Aladyshev > ; devel@edk2.groups.io > Cc: Gao, Liming ; Chen, Christine > > Subject: Re: [edk2-devel] [PATCH] Fix cyclic dependency error on OptionROM > build > > > > Reviewed-by: Bob Feng > >

Re: [edk2-devel] [PATCH] Fix cyclic dependency error on OptionROM build

2023-01-15 Thread Konstantin Aladyshev
Hello! Sorry to bother everyone. It's been over a month. Can we merge this? Best regards, Konstantin Aladyshev On Tue, Dec 13, 2022 at 9:47 PM Jake Garver wrote: > > Thanks, Konstantin, > > I approve this version. > > Thanks, > Jake > ___

Re: [edk2-devel] [PATCH] Revert "BaseTools/Conf: Fix Dynamic-Library-File template"

2022-12-13 Thread Konstantin Aladyshev
Thanks Jake! I've also verified that this change is enough to fix the cycle dependency issue. I've sent an updated patch to the mailing list. Best regards, Konstantin Aladyshev On Tue, Dec 13, 2022 at 6:42 PM Jake Garver wrote: > > Hi, Konstantin, > > Thanks for working wit

[edk2-devel] [PATCH] Fix cyclic dependency error on OptionROM build

2022-12-13 Thread Konstantin Aladyshev
EDKII build system supports OptionROM generation if particular PCI_* defines are present in the module INF file: ``` [Defines] ... PCI_VENDOR_ID = <...> PCI_DEVICE_ID = <...> PCI_CLASS_CODE = <...> PCI_REVISION = <...>

Re: [edk2-devel] [PATCH] Revert "BaseTools/Conf: Fix Dynamic-Library-File template"

2022-12-12 Thread Konstantin Aladyshev
to reproduce the issue. Normally the build system should compile the driver code fine and then call the EfiRom utility to produce the OptionROM image. But with the d372ab585a2cdc5348af5f701c56c631235fe698 in place the driver build fails. Best regards, Konstantin Aladyshev On Mon, Dec 12, 2022 at 6:35 PM

[edk2-devel] [PATCH] Revert "BaseTools/Conf: Fix Dynamic-Library-File template"

2022-12-12 Thread Konstantin Aladyshev
Revert commit d372ab585a2cdc5348af5f701c56c631235fe698. EdkII build system supports OptionROM generation if particular PCI_* defines are present in the module INF file: ``` [Defines] ... PCI_VENDOR_ID = <...> PCI_DEVICE_ID = <...> PCI_CLASS_CODE

Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes

2022-09-22 Thread Konstantin Aladyshev
regards, Konstantin Aladyshev On Thu, Sep 22, 2022 at 7:12 PM Kinney, Michael D wrote: > > If the goal is to support a mix of graphical and serial consoles both with > high text resolutions, then your patch is appropriate. > > It looks like you are observing some unexpec

Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes

2022-09-22 Thread Konstantin Aladyshev
RT options are checked again. Also there is a menu "Boot Maintenance Manager -> Console Options -> Console Output Mode Select" that has "Set Console Output Mode", and it is always "80x25" without any options for me. Best regards, Konstantin Aladyshev On Wed, Sep

Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes

2022-09-21 Thread Konstantin Aladyshev
; at runtime works just fine: ``` Shell> mode 240 56 ``` After that the text output starts using the full screen. Best regards, Konstantin Aladyshev On Wed, Sep 21, 2022 at 4:46 AM Kinney, Michael D wrote: > > Tera Term works. > > Mike > > > -Original Message-

[edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes

2022-09-19 Thread Konstantin Aladyshev
reen space. Signed-off-by: Konstantin Aladyshev --- MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c index e2d779c783..6b7b970

[edk2-devel] [PATCH] BaseTools: Correct BPDG tool error prints

2022-09-05 Thread Konstantin Aladyshev
Popen communication returns bytestrings. It is necessary to perform decode on these strings before passing them to the EdkLogger that works with ordinary strings. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/Python/Common/VpdInfoFile.py | 4 ++-- 1 file changed, 2 insertions(+), 2

[edk2-devel] [PATCH] MdeModulePkg/UefiHiiLib: Fix typo

2022-09-01 Thread Konstantin Aladyshev
Fix typo in the set default value action define name: DEFAUTL -> DEFAULT Signed-off-by: Konstantin Aladyshev --- MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c b/MdeModule

Re: [edk2-devel] [PATCH v2] BaseTools: Support COMPAT16 section generation

2022-08-31 Thread Konstantin Aladyshev
he change is good. Reviewed-by: Liming Gao > > Besides, how do you find this issue? Have you such test case or usage? > > Thanks > Liming > > -邮件原件- > > 发件人: devel@edk2.groups.io 代表 Konstantin > > Aladyshev > > 发送时间: 2022年8月30日 18:20 > > 收件人: dev

[edk2-devel] [PATCH v2] BaseTools: Correct initialization data size check for array PCDs

2022-08-30 Thread Konstantin Aladyshev
Currently it is not possible to initialize all elements in the array PCD. For example, this PCD would result to a build failure: gTokenSpaceGuid.PcdArray|{0x11, 0x22}|UINT8[2]|0x4C4CB9A3 Correct logical operator in the initialization data size checks to fix the issue. Signed-off-by: Konstantin

[edk2-devel] [PATCH v2] BaseTools: Add missing spaces for PCD expression values in AutoGenC

2022-08-30 Thread Konstantin Aladyshev
*|0x Produces these strings in AutoGenC: <...> _gPcd_<...>_PcdArray[4] = {0x44, 0x33, 0x22, 0x11}; <...> _gPcd_<...>_PcdArrayByExpression[4] = {0x44,0x33,0x22,0x11}; Add missing space character between the array elements to unify PCD value formatting. Signed-off-

[edk2-devel] [PATCH v2] BaseTools: Support COMPAT16 section generation

2022-08-30 Thread Konstantin Aladyshev
Currently COMPAT16 section type is not recognized and GenSec is called without the "-s [SectionType]" argument. Add COMPAT16 type to the SectionType dictionary to fix the issue. Now this syntax works correctly: ``` FILE FREEFORM = { SECTION COMPAT16 = } ``` Signed-off-by:

[edk2-devel] [PATCH v2] BaseTools: Add support for SUBTYPE_GUID section generation

2022-08-30 Thread Konstantin Aladyshev
corresponds to EDKII "[FV] section" documentation from the FDF Specification: ``` SECTION SUBTYPE_GUID = ``` Signed-off-by: Konstantin Aladyshev --- .../Source/Python/CommonDataClass/FdfClass.py | 12 +++ BaseTools/Source/Python/GenFds/FdfParser.py | 22 ++ .../Pyt

[edk2-devel] [PATCH v2] BaseTools/GenFds: Correct file type set for the PIC section

2022-08-30 Thread Konstantin Aladyshev
Corrently the set of file types for the PIC section contains two duplicate values. Replace the duplicate value with the correct one to fix the issue. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/Python/GenFds/FdfParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[edk2-devel] [PATCH 6/6] BaseTools/VolInfo: Update copyright information

2022-08-30 Thread Konstantin Aladyshev
Add Konstantin Aladyshev to the copyright header. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c index 28c6806cf0..428011ca04 100644

[edk2-devel] [PATCH 5/6] BaseTools/VolInfo: Parse apriori files

2022-08-30 Thread Konstantin Aladyshev
Output file GUIDs from the DXE and PEI apriori files. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 74 1 file changed, 74 insertions(+) diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c index

[edk2-devel] [PATCH 4/6] BaseTools/VolInfo: Update file and section type strings

2022-08-30 Thread Konstantin Aladyshev
Change SMM to MM in naming according to the recent PI specifications. Remove trailing whitespaces in some strings. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BaseTools/Source/C

[edk2-devel] [PATCH 3/6] BaseTools/VolInfo: Increase GUID base name string

2022-08-30 Thread Konstantin Aladyshev
The current string lenght (=60) is not enough for cases where basename is a path to Build folder. Drop custom define and use MAX_LINE_LEN from the BaseTools codebase instead. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 4 +--- 1 file changed, 1 insertion(+), 3

[edk2-devel] [PATCH 2/6] BaseTools/VolInfo: Correct buffer for GenCrc32 tool

2022-08-30 Thread Konstantin Aladyshev
itself. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c index b5760d185e..4628e756d7 100644 --- a/BaseTools/Source/C/VolInfo

[edk2-devel] [PATCH 1/6] BaseTools/VolInfo: Fix EFI_SECTION_GUID_DEFINED parsing

2022-08-30 Thread Konstantin Aladyshev
the issue. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c index 135924e028..b5760d185e 100644 --- a/BaseTools/Source/C

[edk2-devel] [PATCH] BaseTools: Correct initialization data size check for array PCDs

2022-08-02 Thread Konstantin Aladyshev
Currently it is not possible to initialize all elements in the array PCD. For example, this PCD would result to a build failure: gTokenSpaceGuid.PcdArray|{0x11, 0x22}|UINT8[2]|0x4C4CB9A3 Correct logical operator in the initialization data size checks to fix the issue. Signed-off-by: Konstantin

[edk2-devel] [PATCH] BaseTools: Add missing spaces for PCD expression values in AutoGenC

2022-08-01 Thread Konstantin Aladyshev
*|0x Produces these strings in AutoGenC: <...> _gPcd_<...>_PcdArray[4] = {0x44, 0x33, 0x22, 0x11}; <...> _gPcd_<...>_PcdArrayByExpression[4] = {0x44,0x33,0x22,0x11}; Add missing space character between the array elements to unify PCD value formatting. Signed-off-

Re: [edk2-devel] [PATCH] BaseTools/VolInfo: Correct buffer for GenCrc32 tool

2022-07-29 Thread Konstantin Aladyshev
EFI_GUIDED_SECTION_PROCESSING_REQUIRED=1 and DataOffset points to the very start of data right after the EFI_GUID_DEFINED_SECTION header. But in the case of GenCrc32 we can just set EFI_GUIDED_SECTION_PROCESSING_REQUIRED=0 and point DataOffset to the (EFI_GUID_DEFINED_SECTION + 4 bytes). Best regards, Konstantin Aladyshev

[edk2-devel] [PATCH] MdeModulePkg/DumpDynPcd: Remove unsupported format specifiers

2022-07-27 Thread Konstantin Aladyshev
-by: Konstantin Aladyshev --- .../Application/DumpDynPcd/DumpDynPcd.c | 28 +-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/MdeModulePkg/Application/DumpDynPcd/DumpDynPcd.c b/MdeModulePkg/Application/DumpDynPcd/DumpDynPcd.c index b8571c4556..013198963e 100644

[edk2-devel] [PATCH] BaseTools/GenFds: Correct file type set for the PIC section

2022-07-25 Thread Konstantin Aladyshev
Corrently the set of file types for the PIC section contains two duplicate values. Replace the duplicate value with the correct one to fix the issue. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/Python/GenFds/FdfParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[edk2-devel] [PATCH] BaseTools/VolInfo: Update copyright information

2022-07-24 Thread Konstantin Aladyshev
Add Konstantin Aladyshev to the copyright header. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c index 28c6806cf0..428011ca04 100644

Re: [edk2-devel] [PATCH] BaseTools/VolInfo: Parse apriori files

2022-07-24 Thread Konstantin Aladyshev
Hi, Bob! How should I update it? Should I increase a year for the Intel Corporation like this ``` Copyright (c) 1999 - 2022, Intel Corporation. All rights reserved. ``` Or should I enter my name on another string? ``` Copyright (c) 2022, Konstantin Aladyshev ``` Best regards, Konstantin

[edk2-devel] [PATCH] BaseTools/VolInfo: Parse apriori files

2022-07-22 Thread Konstantin Aladyshev
Output file GUIDs from the DXE and PEI apriori files. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 74 1 file changed, 74 insertions(+) diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c index

[edk2-devel] [PATCH] BaseTools/VolInfo: Update file and section type strings

2022-07-22 Thread Konstantin Aladyshev
Change SMM to MM in naming according to the recent PI specifications. Remove trailing whitespaces in some strings. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BaseTools/Source/C

[edk2-devel] [PATCH] BaseTools/VolInfo: Increase GUID base name string

2022-07-21 Thread Konstantin Aladyshev
The current string lenght (=60) is not enough for cases where basename is a path to Build folder. Drop custom define and use MAX_LINE_LEN from the BaseTools codebase instead. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 4 +--- 1 file changed, 1 insertion(+), 3

[edk2-devel] [PATCH] BaseTools: Support COMPAT16 section generation

2022-07-21 Thread Konstantin Aladyshev
Currently COMPAT16 section type is not recognized and GenSec is called without the "-s [SectionType]" argument. Add COMPAT16 type to the SectionType dictionary to fix the issue. Now this syntax works correctly: ``` FILE FREEFORM = { SECTION COMPAT16 = } ``` Signed-off-by:

[edk2-devel] [PATCH] BaseTools/GenSec: Support EFI_SECTION_FREEFORM_SUBTYPE_GUID sections

2022-07-20 Thread Konstantin Aladyshev
Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/GenSec/GenSec.c | 171 - 1 file changed, 169 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/C/GenSec/GenSec.c b/BaseTools/Source/C/GenSec/GenSec.c index 35a1ac64ea..d86cc197cc 100644

[edk2-devel] [PATCH] BaseTools: Add support for SUBTYPE_GUID section generation

2022-07-20 Thread Konstantin Aladyshev
corresponds to EDKII "[FV] section" documentation from the FDF Specification: ``` SECTION SUBTYPE_GUID = ``` Signed-off-by: Konstantin Aladyshev --- .../Source/Python/CommonDataClass/FdfClass.py | 12 +++ BaseTools/Source/Python/GenFds/FdfParser.py | 22 ++ .../Pyt

  1   2   >