-
Notifications
You must be signed in to change notification settings - Fork 132
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
Command stuck without any return when device not returning command result #369
Comments
Seems usually the commands stuck caused if the device not responsed and the driver retunrs an error after the timeout 60 seconds or any. Is this issue behavior mentioned same or similar with the other commands?
The command is implemented as below and static int show_registers(int argc, char **argv, struct command *cmd, struct plugin *plugin)
{
...
r = nvme_scan(NULL);
...
bar = mmap_registers(r, dev);
if (!bar) {
err = nvme_get_properties(dev_fd(dev), &bar);
... (Add) |
As far as I remember 1 & 3 was main problem to read register.
from nvme_scan Below is issue nvme show-regs master (a1d59599178a962241380b6cd62eeefd5a316816) OLD version (v2.1-rc0) issues cmd |
Thanks for sharing the issue behavior information. |
When #754 lands, we should get rid of any commands being posted via the scanning of the topology. As discussed in linux-nvme/nvme-cli#2048 next step is to try to cut down on the dependency even more. |
And the pull request has been merged, so we can close this issue. |
Currently I don't have any environment that reproduce this.
When I am able to reproduce this, will do more analysis
it was blocking "nvme_scan" not nvme_get_property.
I just remembered, I blocked nvme_get_property block to not issue command when that problem happens
I tried read with old version of nvme-cli that just read with mapping registers without nvme_scan & nvme_get_property, that works fine.
Originally posted by @sc108-lee in linux-nvme/nvme-cli#1541 (comment)
The text was updated successfully, but these errors were encountered: