Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports KCS command register declare #286

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Eathonhsu
Copy link
Contributor

@Eathonhsu Eathonhsu commented Mar 15, 2025

Description

KCS data and command registers may be decoded as "discontinuous," so a new PCD is added to manage the command register.

For example:

IO 62h/66h as KCS data and command registers.

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

This modification does not affect the original operation.
If the system declares CA2h/CA3h, make sure the IPMI KCS works as expected.

Integration Instructions

If your system KCS data and command registers may be decoded as "discontinuous," please refer this:

Example:

IO 62h/66h as KCS data and command registers.

  gIpmiFeaturePkgTokenSpaceGuid.PcdIpmiIoBaseAddress|0x62|UINT16|0xF0000009
  gIpmiFeaturePkgTokenSpaceGuid.PcdIpmiIoCmdRegister|0x66|UINT16|0xF000000A

The IPMI device:
Original
IPMC_ORI
Modification
IPMC_MOD

KCS data and command registers may be decode "discontinuous",
so a new PCD is added to manage the command register.

For example:

IO 62h/66h as KCS data and command registers.
@github-actions github-actions bot added the impact:non-functional Does not have a functional impact label Mar 15, 2025
@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2025

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 28.07%. Comparing base (3132e4b) to head (9286a86).

Files with missing lines Patch % Lines
...pmiFeaturePkg/Library/IpmiTransportLibKcs/KcsBmc.c 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #286      +/-   ##
==========================================
+ Coverage   27.92%   28.07%   +0.14%     
==========================================
  Files          41       41              
  Lines        3019     3003      -16     
  Branches      404      404              
==========================================
  Hits          843      843              
+ Misses       2164     2148      -16     
  Partials       12       12              
Flag Coverage Δ
IpmiFeaturePkg 28.07% <0.00%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Bmc ACPI supports being decoded as a "discontinuous" case.

Removed the dynamic update IO decode in the BmcAcpi DXE driver.

The new way is FixedAtBuild PCD filled in the ASL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact:non-functional Does not have a functional impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants