-
Notifications
You must be signed in to change notification settings - Fork 662
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
After creating NS I dont see block device on linux "/dev/nvme0n1 " #177
Comments
If your controller does not support the NVMe NS Notify Async Event Request, the driver will not automatically rescan for new namespaces. To get the namespace rescan to occur, you can do that with sysfs (echo 1 > /sys/class/nvme/nvme<#>/rescan_controller or echo 1 > /sys/class/nvme/nvme<#>/reset_controller), or through ioctl using NVME_IOCTL_RESCAN or NVME_IOCTL_RESET. If you're controller supports subsystems, you can alternatively use the NVME_IOCTL_SUBSYS_RESET ioctl. We don't support showing the actual SQ entry. The driver constructs the PRPs and assigns the command ID that are private to the kernel, but you could see the remaining dwords. At the moment, though, the only commands that support that are the "io-passthru" and "admin-passthru" when you append the "--show-command" option. |
Thanks Keith for the update and all useful information. |
At least for PCIe NVMe, we don't support SGL at all due to lack of evidence that it's needed. You'd have to write or get a patch if you want to use SGLs. |
Thanks Keith for the valuable inputs. My query has been resolved :) |
I have one more query. How can i see whether nvme inbox driver supports nvme subsystem reset or not ? Can you please help to identify whether the NSSR is getting executed or not ? an do we send any message on dmesg Thanks, |
The subsystem-reset command will write "NVMe" to the NSSR register, as per spec, and as a result of that, the drive support subsystems should raise the CSTS.NSSRO flag, which will cause a dmesg to log when the driver detects that. If you're not seeing anything in the logs, your drive doesn't support subsystem resets. |
[Description]
If i create NS and attach to the NVMe controller still I dont see it in block device.
I have to unload and reload the driver again. Then i see the block device
I i want to see the SQ entry sent by the nvme cli command how can i see that ?
[Version]
Kernel version 4.11
NVMe cli 1.2
NVMe driver 1.2
The text was updated successfully, but these errors were encountered: