Skip to content

MdeModulePkg: fix check for NVM command set in NVMe drivers#2637

Closed
LittleFox94 wants to merge 2 commits intotianocore:masterfrom
LittleFox94:nvme-fix-cap-css-check
Closed

MdeModulePkg: fix check for NVM command set in NVMe drivers#2637
LittleFox94 wants to merge 2 commits intotianocore:masterfrom
LittleFox94:nvme-fix-cap-css-check

Conversation

@LittleFox94
Copy link
Copy Markdown

Fix the check for NVMe command set being supported by the controller.

Was problematic with qemu (6.2.0, Debian 1:6.2+dfsg-3), which sets 0xC1
in that register, making the OVMF think the NVMe controller does not
support NVMe.

Uncovered by commit 9dd14fc, which
changed the number of bits included in the Css register from 4 to 8.

Signed-off-by: Mara Sophie Grosch [email protected]

@LittleFox94 LittleFox94 force-pushed the nvme-fix-cap-css-check branch 4 times, most recently from 370bbef to 5cae05f Compare March 21, 2022 17:15
@LittleFox94 LittleFox94 changed the title MdeModulePkg/NvmExpressDxe: fix check for Cap.Css MdeModulePkg: fix check for NVM command set in NVMe drivers Mar 23, 2022
Fix the check for NVMe command set being supported by the controller.

Was problematic with qemu (6.2.0, Debian 1:6.2+dfsg-3), which sets 0xC1
in that register, making the OVMF think the NVMe controller does not
support NVMe.

Uncovered by commit 9dd14fc, which
changed the number of bits included in the Css register from 4 to 8.

Signed-off-by: Mara Sophie Grosch <[email protected]>
Previous commit fixed that check in DXE, this one now for PEI.

Signed-off-by: Mara Sophie Grosch <[email protected]>
@LittleFox94 LittleFox94 force-pushed the nvme-fix-cap-css-check branch from 372688a to badc89c Compare March 23, 2022 19:10
@LittleFox94
Copy link
Copy Markdown
Author

Merged via #2682

@LittleFox94 LittleFox94 deleted the nvme-fix-cap-css-check branch March 25, 2022 09:21
ricardosalveti added a commit to ricardosalveti/meta-lmp that referenced this pull request Oct 28, 2022
Backport patches already applied in main and latest edk2 stable in order
to fix NVME usage with recent QEMU versions, as described at
tianocore/edk2#2637.

Signed-off-by: Ricardo Salveti <[email protected]>
ricardosalveti added a commit to foundriesio/meta-lmp that referenced this pull request Oct 28, 2022
Backport patches already applied in main and latest edk2 stable in order
to fix NVME usage with recent QEMU versions, as described at
tianocore/edk2#2637.

Signed-off-by: Ricardo Salveti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant