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

Move UFS spec headers into MdePkg/IndustryStandard files and update to UFS 4.0 #6438

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

zurcher
Copy link
Contributor

@zurcher zurcher commented Nov 13, 2024

Description

The spec-based header definitions for UFS drivers are currently in two identical private header files. This change set moves the definitions into the IndustryStandard folder with two separate files tracking relevant UFS spec documents. This will allow for future spec updates to be made in a single location, and allows for other drivers to access these definitions.
Additionally, this set updates Ufs.h to the UFS 4.0 spec.

  • Breaking change?
    • Breaking change - Does this PR cause a break in build or boot behavior?
    • Examples: Does it add a new library class or move a module to a different repo.
  • Impacts security?
    • Security - Does this PR have a direct security impact?
    • Examples: Crypto algorithm change or buffer overflow fix.
  • Includes tests?
    • Tests - Does this PR include any explicit test code?
    • Examples: Unit tests or integration tests.

How This Was Tested

Added UfsBlockIoPei and UfsPassThruDxe to OvmfPkg, and built successfully.

Integration Instructions

Drivers can now include <IndustryStandard/Ufs.h> to interact with UFS interfaces such as <Protocol/UfsDeviceConfig.h>.

@zurcher zurcher force-pushed the ufs_spec branch 4 times, most recently from 3e20d36 to fedc825 Compare November 16, 2024 00:06
@zurcher zurcher changed the title Move UFS spec headers into MdePkg/IndustryStandard files Move UFS spec headers into MdePkg/IndustryStandard files and update to UFS 4.0 Nov 16, 2024
@zurcher
Copy link
Contributor Author

zurcher commented Nov 16, 2024

This PR contains 3 separate commits that should be kept separate, and not merged into a single commit.

These files are direct ports from the (identical) files:
MdeModulePkg\Bus\Ufs\UfsBlockIoPei\UfsHci.h
MdeModulePkg\Bus\Ufs\UfsPassThruDxe\UfsPassThruHci.h

Signed-off-by: Christopher Zurcher <[email protected]>
Remove duplicate private header files and reference UFS spec definitions
from the IndustryStandard folder.

Signed-off-by: Christopher Zurcher <[email protected]>
Signed-off-by: Christopher Zurcher <[email protected]>
@zurcher
Copy link
Contributor Author

zurcher commented Dec 13, 2024

@lgao4 Can you help move this PR forward?

@lgao4 lgao4 added the push Auto push patch series in PR if all checks pass label Dec 16, 2024
@lgao4 lgao4 merged commit 7936ffa into tianocore:master Dec 16, 2024
124 checks passed
@zurcher zurcher deleted the ufs_spec branch December 16, 2024 19:00
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.

2 participants