tests/nvme: Remove test output for passthrough error logging
Subsystems (2)
PATCH 1/1 tests/nvme: Remove test output for passthrough error logging
Commit d7ac8dca938c ("nvme: quiet user passthrough command errors") disabled error logging for passthrough commands so the associated error output in nvme/039.out should be removed.
When an error logging opt-in mechanism for passthrough commands is provided, the error output can be added back.
--- tests/nvme/039.out | 2 -- 1 file changed, 2 deletions(-)
tests/nvme/039.out +0 -2
@@ -2,6 +2,4 @@ Running nvme/039 Read(0x2) @ LBA 0, 1 blocks, Unrecovered Read Error (sct 0x2 / sc 0x81) DNR Read(0x2) @ LBA 0, 1 blocks, Unknown (sct 0x3 / sc 0x75) DNR Write(0x1) @ LBA 0, 1 blocks, Write Fault (sct 0x2 / sc 0x80) DNR - Identify(0x6), Access Denied (sct 0x2 / sc 0x86) DNR - Unknown(0x96), Invalid Command Opcode (sct 0x0 / sc 0x1) DNR Test complete
Signature · 1 line
2.31.1
Quoted 9 lines · Alan Adamson
Commit
d7ac8dca938c("nvme: quiet user passthrough command errors") disabled error logging for passthrough commands so the associated error output in nvme/039.out should be removed.When an error logging opt-in mechanism for passthrough commands is provided, the error output can be added back.
Signed-off-by Alan Adamson <[email protected]>---
Shinichiro, I think this should fix the issue.
-ck
Quoted 6 lines · Alan Adamson
Commit
d7ac8dca938c("nvme: quiet user passthrough command errors") disabled error logging for passthrough commands so the associated error output in nvme/039.out should be removed.When an error logging opt-in mechanism for passthrough commands is provided, the error output can be added back.
Thanks for this quick action. This two-steps approach looks good for me.
I confirmed the fix avoids the failure with v6.1-rc5 kernel. Also, I observe this fix makes the test case fail with v6.0 kernel. I suggest to skip the test case with kernel v6.0 or older, applying the hunk below. Could you repost v2 with this change? Or if you want, I can apply it together with v1. Please let me know your preference.
tests/nvme/039 +1 -0
@@ -14,6 +14,7 @@ QUICK=1 requires() { _have_program nvme + _have_kver 6 1 _have_kernel_option FAULT_INJECTION && \ _have_kernel_option FAULT_INJECTION_DEBUG_FS }
Signature · 1 line
Shin'ichiro Kawasaki
Keith Busch
maintainerQuoted 8 lines · Shinichiro Kawasaki
Quoted 6 lines · Alan Adamson
Commit
d7ac8dca938c("nvme: quiet user passthrough command errors") disabled error logging for passthrough commands so the associated error output in nvme/039.out should be removed.When an error logging opt-in mechanism for passthrough commands is provided, the error output can be added back.
Quoted 7 lines
Thanks for this quick action. This two-steps approach looks good for me.
I confirmed the fix avoids the failure with v6.1-rc5 kernel. Also, I observe this fix makes the test case fail with v6.0 kernel. I suggest to skip the test case with kernel v6.0 or older, applying the hunk below. Could you repost v2 with this change? Or if you want, I can apply it together with v1. Please let me know your preference.
It sounds like some future case might allow these errors to log in some circumstances, so I'm not sure the test case should be so dependent on seeing or not seeing these messages. Is there a mechanism to say these are optional messages that may or may not show up?
Quoted 21 lines · Keith Busch
Quoted 8 lines · Shinichiro Kawasaki
Quoted 6 lines · Alan Adamson
Commit
d7ac8dca938c("nvme: quiet user passthrough command errors") disabled error logging for passthrough commands so the associated error output in nvme/039.out should be removed.When an error logging opt-in mechanism for passthrough commands is provided, the error output can be added back.
Quoted 7 lines
Thanks for this quick action. This two-steps approach looks good for me.
I confirmed the fix avoids the failure with v6.1-rc5 kernel. Also, I observe this fix makes the test case fail with v6.0 kernel. I suggest to skip the test case with kernel v6.0 or older, applying the hunk below. Could you repost v2 with this change? Or if you want, I can apply it together with v1. Please let me know your preference.
Quoted 4 lines
It sounds like some future case might allow these errors to log in some circumstances, so I'm not sure the test case should be so dependent on seeing or not seeing these messages. Is there a mechanism to say these are optional messages that may or may not show up?
We could just remove the tests for now which would also work for pre-6.1 and add them back when the future case shows up (Hopefully soon - I’m working on it). The test will be changed to test the opted-in and opted-out mechanism.
Alan
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
I confirmed the fix avoids the failure with v6.1-rc5 kernel. Also, I observe this fix makes the test case fail with v6.0 kernel. I suggest to skip the test case with kernel v6.0 or older, applying the hunk below. Could you repost v2 with this change? Or if you want, I can apply it together with v1. Please let me know your preference.
Quoted 9 lines
Quoted 4 lines
It sounds like some future case might allow these errors to log in some circumstances, so I'm not sure the test case should be so dependent on seeing or not seeing these messages. Is there a mechanism to say these are optional messages that may or may not show up?
We could just remove the tests for now which would also work for pre-6.1 and add them back when the future case shows up (Hopefully soon - I’m working on it). The test will be changed to test the opted-in and opted-out mechanism.
This seems to be the right thing to add the testcase with right feature upstream than fixing the broken testcase creating compatibility issues.
-ck