summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-image-redcore-lts/files/5.4-nvme-pci-more-info.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/linux-image-redcore-lts/files/5.4-nvme-pci-more-info.patch')
-rw-r--r--sys-kernel/linux-image-redcore-lts/files/5.4-nvme-pci-more-info.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys-kernel/linux-image-redcore-lts/files/5.4-nvme-pci-more-info.patch b/sys-kernel/linux-image-redcore-lts/files/5.4-nvme-pci-more-info.patch
new file mode 100644
index 00000000..d4c88dc0
--- /dev/null
+++ b/sys-kernel/linux-image-redcore-lts/files/5.4-nvme-pci-more-info.patch
@@ -0,0 +1,38 @@
+diff -Naur linux-5.3.1/drivers/nvme/host/pci.c linux-5.3.1-p/drivers/nvme/host/pci.c
+--- linux-5.3.1/drivers/nvme/host/pci.c 2019-09-21 07:19:47.000000000 +0200
++++ linux-5.3.1-p/drivers/nvme/host/pci.c 2019-09-27 14:46:38.567818352 +0200
+@@ -2524,8 +2524,11 @@
+ }
+
+ result = nvme_init_identify(&dev->ctrl);
+- if (result)
++ if (result) {
++ dev_warn(dev->ctrl.device,
++ "nvme_init_identify() failed\n");
+ goto out;
++ }
+
+ if (dev->ctrl.oacs & NVME_CTRL_OACS_SEC_SUPP) {
+ if (!dev->ctrl.opal_dev)
+@@ -2547,13 +2550,19 @@
+
+ if (dev->ctrl.hmpre) {
+ result = nvme_setup_host_mem(dev);
+- if (result < 0)
++ if (result < 0) {
++ dev_warn(dev->ctrl.device,
++ "hmpre - nvme_setup_host_mem() failed\n");
+ goto out;
++ }
+ }
+
+ result = nvme_setup_io_queues(dev);
+- if (result)
++ if (result) {
++ dev_warn(dev->ctrl.device,
++ "nvme_setup_io_queues() failed\n");
+ goto out;
++ }
+
+ /*
+ * Keep the controller around but remove all namespaces if we don't have