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

[Rebase & FF] 202405: Nvme Alternative Queue #941

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

VivianNK
Copy link
Contributor

@VivianNK VivianNK commented Jun 24, 2024

Description

Picked/squashed the following commits:

9837db3
0a5a1d9
e397168
2d602b3

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

How This Was Tested

Changes from release/202311

Integration Instructions

N/A

@VivianNK VivianNK added impact:non-functional Does not have a functional impact and removed impact:non-functional Does not have a functional impact labels Jun 26, 2024
@VivianNK VivianNK requested a review from os-d June 27, 2024 22:35
@VivianNK VivianNK force-pushed the release/202405 branch 4 times, most recently from f28ea23 to c3a814c Compare July 16, 2024 00:10
@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2024

Codecov Report

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

Please upload report for BASE (release/202405@b71a1df). Learn more about missing BASE report.

Files Patch % Lines
...dulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c 0.00% 17 Missing ⚠️
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c 0.00% 5 Missing ⚠️
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c 0.00% 4 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##             release/202405     #941   +/-   ##
=================================================
  Coverage                  ?    0.85%           
=================================================
  Files                     ?     1425           
  Lines                     ?   357003           
  Branches                  ?     4391           
=================================================
  Hits                      ?     3037           
  Misses                    ?   353244           
  Partials                  ?      722           
Flag Coverage Δ
MdeModulePkg 0.24% <0.00%> (?)
MdePkg 3.30% <ø> (?)
NetworkPkg 0.55% <ø> (?)
UefiCpuPkg 2.90% <ø> (?)

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.

@VivianNK VivianNK force-pushed the release/202405 branch 2 times, most recently from 7b574f9 to df05147 Compare July 16, 2024 16:57
@VivianNK VivianNK enabled auto-merge (rebase) July 16, 2024 17:37
@VivianNK VivianNK added the type:enhancement New feature or pull request label Jul 16, 2024
chris-oo and others added 2 commits July 16, 2024 15:52
…pecific devices

Add a new PCD that toggles between the old driver behavior and new behavior that uses a different hardcoded queue size to support specific devices.  Default behavior should not change.

MdeModulePkg/NvmExpressDxe: Improve NVMe controller init robustness

It has been observed that some faulty NVMe devices may return
invalid values. The code in NvmExpressDxe recognizes the controller
is not responding correctly and issues an ASSERT() often in DEBUG
builds or a reset in RELEASE builds.

The following changes are made to NvmeControllerInit() to prevent a
faulty NVMe device from halting the overall boot:

1. Check the Vendor ID and Device ID to verify they are read properly
   and if not, return EFI_DEVICE_ERROR
2. Replace the ASSERT() when Memory Page Size Minimum (Cap.Mpsmin)
   with an error message and return EFI_DEVICE_ERROR

Signed-off-by: Michael Kubacki <[email protected]>

MdeModulePkg/NvmExpressDxe: Correct function parameter modifer

Updates the `Cap` parameter for `ReadNvmeControllerCapabilities()`
to be `OUT` since the buffer pointed to is written within the
function.

Signed-off-by: Michael Kubacki <[email protected]>
Adds missing structure member documentation.

Signed-off-by: Michael Kubacki <[email protected]>
@VivianNK VivianNK merged commit bf0854e into microsoft:release/202405 Jul 16, 2024
30 checks passed
@VivianNK VivianNK deleted the release/202405 branch July 16, 2024 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants