* Test Unit Ready translation seems wrong in latest driver
@ 2017-07-24 21:52 Sathya Prakash Veerichetty
2017-07-24 22:01 ` Keith Busch
0 siblings, 1 reply; 4+ messages in thread
From: Sathya Prakash Veerichetty @ 2017-07-24 21:52 UTC (permalink / raw)
The TUR translation returns LUN not ready when the controller is ready in
the latest code whereas in the old code it returns LUN not ready only when
the controller is not ready (proper behavior).
The patch [PATCH 11/47] nvme: split a new struct nvme_ctrl out of struct
nvme_dev seeded the issue by missing the !.
@@ -2295,9 +2288,7 @@ static int nvme_trans_test_unit_ready(struct nvme_ns
*ns,
struct sg_io_hdr *hdr,
u8 *cmd)
{
- struct nvme_dev *dev = ns->dev;
-
- if (!(readl(dev->bar + NVME_REG_CSTS) & NVME_CSTS_RDY))
+ if (nvme_ctrl_ready(ns->ctrl))
return nvme_trans_completion(hdr,
SAM_STAT_CHECK_CONDITION,
NOT_READY,
SCSI_ASC_LUN_NOT_READY,
SCSI_ASCQ_CAUSE_NOT_REPORTABLE);
Thanks
Sathya
^ permalink raw reply [flat|nested] 4+ messages in thread* Test Unit Ready translation seems wrong in latest driver
2017-07-24 21:52 Test Unit Ready translation seems wrong in latest driver Sathya Prakash Veerichetty
@ 2017-07-24 22:01 ` Keith Busch
2017-07-24 22:21 ` Sathya Prakash Veerichetty
0 siblings, 1 reply; 4+ messages in thread
From: Keith Busch @ 2017-07-24 22:01 UTC (permalink / raw)
On Mon, Jul 24, 2017@03:52:16PM -0600, Sathya Prakash Veerichetty wrote:
> The TUR translation returns LUN not ready when the controller is ready in
> the latest code whereas in the old code it returns LUN not ready only when
> the controller is not ready (proper behavior).
The latest code doesn't have a translation for TUR at all.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Test Unit Ready translation seems wrong in latest driver
2017-07-24 22:01 ` Keith Busch
@ 2017-07-24 22:21 ` Sathya Prakash Veerichetty
2017-07-24 22:45 ` Keith Busch
0 siblings, 1 reply; 4+ messages in thread
From: Sathya Prakash Veerichetty @ 2017-07-24 22:21 UTC (permalink / raw)
My bad, I was referring to 4.12. So there will not be any support to SCSI
translation at all or is there a different interface?
Thanks
Sathya
-----Original Message-----
From: Keith Busch [mailto:keith.busch@intel.com]
Sent: Monday, July 24, 2017 4:02 PM
To: Sathya Prakash Veerichetty
Cc: linux-nvme at lists.infradead.org; hch at lst.de
Subject: Re: Test Unit Ready translation seems wrong in latest driver
On Mon, Jul 24, 2017 at 03:52:16PM -0600, Sathya Prakash Veerichetty
wrote:
> The TUR translation returns LUN not ready when the controller is ready
> in the latest code whereas in the old code it returns LUN not ready
> only when the controller is not ready (proper behavior).
The latest code doesn't have a translation for TUR at all.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-24 22:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-24 21:52 Test Unit Ready translation seems wrong in latest driver Sathya Prakash Veerichetty
2017-07-24 22:01 ` Keith Busch
2017-07-24 22:21 ` Sathya Prakash Veerichetty
2017-07-24 22:45 ` Keith Busch
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.