All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] tests/nvme/039: Remove passthrough command tests
@ 2022-11-16 22:39 Alan Adamson
  2022-11-17  6:50 ` Chaitanya Kulkarni
  2022-11-18  1:50 ` Shinichiro Kawasaki
  0 siblings, 2 replies; 3+ messages in thread
From: Alan Adamson @ 2022-11-16 22:39 UTC (permalink / raw)
  To: linux-block; +Cc: alan.adamson, linux-nvme, shinichiro.kawasaki

Commit d7ac8dca938c ("nvme: quiet user passthrough command errors")
disabled error logging for passthrough commands so the associated
tests should be removed.

When an error logging opt-in mechanism for passthrough commands is
provided, the tests can be added back.

Signed-off-by: Alan Adamson <alan.adamson@oracle.com>
---
 tests/nvme/039     | 3 ---
 tests/nvme/039.out | 2 --
 2 files changed, 5 deletions(-)

diff --git a/tests/nvme/039 b/tests/nvme/039
index e175055ddb06..11d6d24b6025 100755
--- a/tests/nvme/039
+++ b/tests/nvme/039
@@ -143,9 +143,6 @@ test_device() {
 	inject_invalid_status_on_read "${ns_dev}"
 	inject_write_fault_on_write "${ns_dev}"
 
-	inject_access_denied_on_identify "${ctrl_dev}"
-	inject_invalid_admin_cmd "${ctrl_dev}"
-
 	_nvme_err_inject_cleanup "${ns_dev}" "${ctrl_dev}"
 
 	echo "Test complete"
diff --git a/tests/nvme/039.out b/tests/nvme/039.out
index 162935eb1d7b..139070d22240 100644
--- a/tests/nvme/039.out
+++ b/tests/nvme/039.out
@@ -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
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] tests/nvme/039: Remove passthrough command tests
  2022-11-16 22:39 [PATCH v2] tests/nvme/039: Remove passthrough command tests Alan Adamson
@ 2022-11-17  6:50 ` Chaitanya Kulkarni
  2022-11-18  1:50 ` Shinichiro Kawasaki
  1 sibling, 0 replies; 3+ messages in thread
From: Chaitanya Kulkarni @ 2022-11-17  6:50 UTC (permalink / raw)
  To: Alan Adamson, linux-block; +Cc: linux-nvme, shinichiro.kawasaki

On 11/16/22 14:39, Alan Adamson wrote:
> Commit d7ac8dca938c ("nvme: quiet user passthrough command errors")
> disabled error logging for passthrough commands so the associated
> tests should be removed.
> 
> When an error logging opt-in mechanism for passthrough commands is
> provided, the tests can be added back.
> 
> Signed-off-by: Alan Adamson <alan.adamson@oracle.com>
> ---

Thanks for doing this, looks good.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] tests/nvme/039: Remove passthrough command tests
  2022-11-16 22:39 [PATCH v2] tests/nvme/039: Remove passthrough command tests Alan Adamson
  2022-11-17  6:50 ` Chaitanya Kulkarni
@ 2022-11-18  1:50 ` Shinichiro Kawasaki
  1 sibling, 0 replies; 3+ messages in thread
From: Shinichiro Kawasaki @ 2022-11-18  1:50 UTC (permalink / raw)
  To: Alan Adamson; +Cc: linux-block, linux-nvme

On Nov 16, 2022 / 14:39, Alan Adamson wrote:
> Commit d7ac8dca938c ("nvme: quiet user passthrough command errors")
> disabled error logging for passthrough commands so the associated
> tests should be removed.
> 
> When an error logging opt-in mechanism for passthrough commands is
> provided, the tests can be added back.
> 
> Signed-off-by: Alan Adamson <alan.adamson@oracle.com>

Thanks, applied. I confirmed it does not fail with kernel v6.0. Good :)

-- 
Shin'ichiro Kawasaki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-18  1:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 22:39 [PATCH v2] tests/nvme/039: Remove passthrough command tests Alan Adamson
2022-11-17  6:50 ` Chaitanya Kulkarni
2022-11-18  1:50 ` Shinichiro Kawasaki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.