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

MdeModulePkg/SmbiosDxe: Fix BcdRevision is not match with SMBIOS version #4771

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

liencx
Copy link
Contributor

@liencx liencx commented Aug 30, 2023

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4544

These value of Major/Minor version are updated from SMBIOS memory data, but BCD Revision is updated from PCD PcdSmbiosVersion. We should also update BCD Revision from SMBIOS memory data, to ensure that get consistent version value.

Cc: Zhiguang Liu zhiguang.liu@intel.com
Reviewed-by: Gua Guo gua.guo@intel.com
Reviewed-by: Dandan Bi dandan.bi@intel.com
Reviewed-by: Michael D Kinney michael.d.kinney@intel.com
Cc: Star Zeng star.zeng@intel.com
Cc: Zhichao Gao zhichao.gao@intel.com
Signed-off-by: HoraceX Lien horacex.lien@intel.com

@liencx liencx force-pushed the master_fix_smbios_bcdrevision branch 3 times, most recently from 3d8900d to cfacc10 Compare August 31, 2023 09:36
@liencx liencx force-pushed the master_fix_smbios_bcdrevision branch 4 times, most recently from 527f7ef to 04287cd Compare September 13, 2023 13:28
Comment on lines +1075 to +1078
EntryPointStructureData.SmbiosBcdRevision = 0;
if ((mPrivateData.Smbios.MajorVersion <= 9) && (mPrivateData.Smbios.MinorVersion <= 9)) {
EntryPointStructureData.SmbiosBcdRevision = ((mPrivateData.Smbios.MajorVersion & 0x0f) << 4) | (mPrivateData.Smbios.MinorVersion & 0x0f);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is major code changes.

@liencx liencx force-pushed the master_fix_smbios_bcdrevision branch 4 times, most recently from 8185302 to d2745fc Compare September 25, 2023 05:35
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4544

These value of Major/Minor version are updated from SMBIOS memory data,
but BCD Revision is updated from PCD PcdSmbiosVersion.
We should also update BCD Revision from SMBIOS memory data,
to ensure that get consistent version value.

Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Reviewed-by: Gua Guo <gua.guo@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: HoraceX Lien <horacex.lien@intel.com>
@liencx liencx force-pushed the master_fix_smbios_bcdrevision branch from d2745fc to ae9bc62 Compare September 25, 2023 09:02
@gguo11837463 gguo11837463 added the push Auto push patch series in PR if all checks pass label Sep 26, 2023
@mergify mergify bot merged commit be971fc into tianocore:master Sep 26, 2023
103 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants