All of lore.kernel.org
 help / color / mirror / Atom feed
* nvmet_set_error ignores error_loc NVMET_NO_ERROR_LOC
@ 2021-03-16  8:57 Engel, Amit
  2021-03-16 18:26 ` Chaitanya Kulkarni
  2021-04-02  7:35 ` Hou Pu
  0 siblings, 2 replies; 5+ messages in thread
From: Engel, Amit @ 2021-03-16  8:57 UTC (permalink / raw)
  To: linux-nvme, Sagi Grimberg; +Cc: Anner, Ran

Hello,
A question regarding Get Log Page - Error Information lid 01h:
According to nvme spec 1.4,  bytes 15:14 refer to 'Parameter Error Location'
"If the error is not specific to a particular command, then this field shall be set to FFFFh"

In the current implementation, nvmet_req_init initializes req->error_loc to NVMET_NO_ERROR_LOC (((u16)-1))
Then nvmet_set_error has this condition:

if (!ctrl || req->error_loc == NVMET_NO_ERROR_LOC)
	return;

means that the error log will not contain errors that don't specify error_loc
is that expected ? 
don't we expect that param_error_location log page field will be set to FFFFh in case there is no other valid req->error_loc ?

Thanks,
Amit Engel
 




_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

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

end of thread, other threads:[~2021-04-04  6:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16  8:57 nvmet_set_error ignores error_loc NVMET_NO_ERROR_LOC Engel, Amit
2021-03-16 18:26 ` Chaitanya Kulkarni
2021-04-02  7:35 ` Hou Pu
2021-04-02 23:07   ` Chaitanya Kulkarni
2021-04-04  6:25   ` Engel, Amit

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.