[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2019-07-24 Thread Brad Figg
** Tags added: cscc

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Bionic:
  Fix Released

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: linux (not installed)
  PciMultimedia:
   
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
  ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
  RelatedPackageVersions:
   linux-restricted-modules-4.15.0-10-generic N/A
   linux-backports-modules-4.15.0-10-generic  N/A
   linux-firmware 1.173
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
  Tags:  bionic
  Uname: Linux 4.15.0-10-generic x86_64
  UnreportableReason: The report belongs to a package that is not installed.
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:
   
  _MarkForUpload: False
  dmi.bios.date: 01/01/2011
  dmi.bios.vendor: Seabios
  dmi.bios.version: 0.5.1
  dmi.chassis.type: 1
  

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2019-02-14 Thread Brad Figg
This bug is awaiting verification that the kernel in -proposed solves
the problem. Please test the kernel and update this bug with the
results. If the problem is solved, change the tag 'verification-needed-
bionic' to 'verification-done-bionic'. If the problem still exists,
change the tag 'verification-needed-bionic' to 'verification-failed-
bionic'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-bionic

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Bionic:
  Fix Released

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: linux (not installed)
  PciMultimedia:
   
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
  ProcVersionSignature: Ubuntu 

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2019-02-14 Thread Andy Whitcroft
This bug was erroneously marked for verification in bionic; verification
is not required and verification-needed-bionic is being removed.

** Tags removed: verification-needed-bionic

** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Bionic:
  Fix Released

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: linux (not installed)
  PciMultimedia:
   
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
  ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
  RelatedPackageVersions:
   linux-restricted-modules-4.15.0-10-generic N/A
   linux-backports-modules-4.15.0-10-generic  N/A
   linux-firmware 1.173
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
  Tags:  bionic
  Uname: Linux 4.15.0-10-generic x86_64
  UnreportableReason: The report belongs to a package that is not installed.
  

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2019-02-14 Thread Andy Whitcroft
** Tags removed: verification-needed-bionic
** Tags added: kernel-fixup-verification-needed-bionic

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Bionic:
  Fix Released

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: linux (not installed)
  PciMultimedia:
   
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
  ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
  RelatedPackageVersions:
   linux-restricted-modules-4.15.0-10-generic N/A
   linux-backports-modules-4.15.0-10-generic  N/A
   linux-firmware 1.173
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
  Tags:  bionic
  Uname: Linux 4.15.0-10-generic x86_64
  UnreportableReason: The report belongs to a package that is not installed.
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:
   
  _MarkForUpload: False
  dmi.bios.date: 01/01/2011

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2019-02-14 Thread Brad Figg
This bug is awaiting verification that the kernel in -proposed solves
the problem. Please test the kernel and update this bug with the
results. If the problem is solved, change the tag 'verification-needed-
bionic' to 'verification-done-bionic'. If the problem still exists,
change the tag 'verification-needed-bionic' to 'verification-failed-
bionic'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-bionic

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Bionic:
  Fix Released

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: linux (not installed)
  PciMultimedia:
   
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
  ProcVersionSignature: Ubuntu 

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2018-04-23 Thread Launchpad Bug Tracker
This bug was fixed in the package linux - 4.15.0-19.20

---
linux (4.15.0-19.20) bionic; urgency=medium

  * linux: 4.15.0-19.20 -proposed tracker (LP: #1766021)

  * Kernel 4.15.0-15 breaks Dell PowerEdge 12th Gen servers (LP: #1765232)
- Revert "blk-mq: simplify queue mapping & schedule with each possisble CPU"
- Revert "genirq/affinity: assign vectors to all possible CPUs"

linux (4.15.0-18.19) bionic; urgency=medium

  * linux: 4.15.0-18.19 -proposed tracker (LP: #1765490)

  * [regression] Ubuntu 18.04:[4.15.0-17-generic #18] KVM Guest Kernel:
meltdown: rfi/fallback displacement flush not enabled bydefault (kvm)
(LP: #1765429)
- powerpc/pseries: Fix clearing of security feature flags

  * signing: only install a signed kernel (LP: #1764794)
- [Packaging] update to Debian like control scripts
- [Packaging] switch to triggers for postinst.d postrm.d handling
- [Packaging] signing -- switch to raw-signing tarballs
- [Packaging] signing -- switch to linux-image as signed when available
- [Config] signing -- enable Opal signing for ppc64el
- [Packaging] printenv -- add signing options

  * [18.04 FEAT] Sign POWER host/NV kernels (LP: #1696154)
- [Packaging] signing -- add support for signing Opal kernel binaries

  * Please cherrypick s390 unwind fix (LP: #1765083)
- s390/compat: fix setup_frame32

  * Ubuntu 18.04 installer does not detect any IPR based HDD/RAID array [S822L]
[ipr] (LP: #1751813)
- d-i: move ipr to storage-core-modules on ppc64el

  * drivers/gpu/drm/bridge/adv7511/adv7511.ko missing (LP: #1764816)
- SAUCE: (no-up) rename the adv7511 drm driver to adv7511_drm

  * Miscellaneous Ubuntu changes
- [Packaging] Add linux-oem to rebuild test blacklist.

linux (4.15.0-17.18) bionic; urgency=medium

  * linux: 4.15.0-17.18 -proposed tracker (LP: #1764498)

  * Eventual OOM with profile reloads (LP: #1750594)
- SAUCE: apparmor: fix memory leak when duplicate profile load

linux (4.15.0-16.17) bionic; urgency=medium

  * linux: 4.15.0-16.17 -proposed tracker (LP: #1763785)

  * [18.04] [bug] CFL-S(CNP)/CNL GPIO testing failed (LP: #1757346)
- [Config]: Set CONFIG_PINCTRL_CANNONLAKE=y

  * [Ubuntu 18.04] USB Type-C test failed on GLK (LP: #1758797)
- SAUCE: usb: typec: ucsi: Increase command completion timeout value

  * Fix trying to "push" an already active pool VP (LP: #1763386)
- SAUCE: powerpc/xive: Fix trying to "push" an already active pool VP

  * hisi_sas: Revert and replace SAUCE patches w/ upstream (LP: #1762824)
- Revert "UBUNTU: SAUCE: scsi: hisi_sas: export device table of v3 hw to
  userspace"
- Revert "UBUNTU: SAUCE: scsi: hisi_sas: config for hip08 ES"
- scsi: hisi_sas: modify some register config for hip08
- scsi: hisi_sas: add v3 hw MODULE_DEVICE_TABLE()

  * Realtek card reader - RTS5243 [VEN_10EC_5260] (LP: #1737673)
- misc: rtsx: Move Realtek Card Reader Driver to misc
- updateconfigs for Realtek Card Reader Driver
- misc: rtsx: Add support for RTS5260
- misc: rtsx: Fix symbol clashes

  * Mellanox [mlx5] [bionic] UBSAN: Undefined behaviour in
./include/linux/net_dim.h (LP: #1763269)
- net/mlx5e: Fix int overflow

  * apparmor bug fixes for bionic (LP: #1763427)
- apparmor: fix logging of the existence test for signals
- apparmor: make signal label match work when matching stacked labels
- apparmor: audit unknown signal numbers
- apparmor: fix memory leak on buffer on error exit path
- apparmor: fix mediation of prlimit

  * dangling symlinks to loaded apparmor policy (LP: #1755563) // apparmor bug
fixes for bionic (LP: #1763427)
- apparmor: fix dangling symlinks to policy rawdata after replacement

  * [OPAL] Assert fail:
core/mem_region.c:447:lock_held_by_me(>free_list_lock)
(LP: #1762913)
- powerpc/watchdog: remove arch_trigger_cpumask_backtrace

  * [LTC Test] Ubuntu 18.04: tm_trap_test failed on P8 compat mode guest
(LP: #1762928)
- powerpc/tm: Fix endianness flip on trap

  * Add support for RT5660 codec based sound cards on Baytrail (LP: #1657674)
- SAUCE: (no-up) ASoC: Intel: Support machine driver for RT5660 on Baytrail
- SAUCE: (no-up) ASoC: rt5660: Add ACPI support
- SAUCE: (no-up): ASoC: Intel: bytcr-rt5660: Add MCLK, quirks
- [Config] CONFIG_SND_SOC_INTEL_BYTCR_RT5660_MACH=m, CONFIG_SND_SOC_RT5660=m

  * /dev/ipmi enumeration flaky on Cavium Sabre nodes (LP: #1762812)
- i2c: xlp9xx: return ENXIO on slave address NACK
- i2c: xlp9xx: Handle transactions with I2C_M_RECV_LEN properly
- i2c: xlp9xx: Check for Bus state before every transfer
- i2c: xlp9xx: Handle NACK on DATA properly

  * [18.04 FEAT] Add kvm_stat from kernel tree (LP: #1734130)
- tools/kvm_stat: simplify the sortkey function
- tools/kvm_stat: use a namedtuple for storing the values
- tools/kvm_stat: use a more pythonic way to iterate over dictionaries
- tools/kvm_stat: 

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2018-04-05 Thread Yurii Shestakov
Hi Seth,

No, I've not reported this issue to the upstream yet. I guess somebody
from our company, who works on NVMe-OF related code in the kernel,
should do this.

To be honest I'm not sure that my fix is technically correct and takes
into account all dependencies. So that I'm fine with reverting of
32c662c58a9b9d0c99e713a14ca323a9a91c73a0.

Thank you.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Fix Committed
Status in linux source package in Bionic:
  Fix Committed

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: linux (not installed)
  PciMultimedia:
   
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
  ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
  RelatedPackageVersions:
   linux-restricted-modules-4.15.0-10-generic N/A
   linux-backports-modules-4.15.0-10-generic  N/A
   linux-firmware 1.173
  

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2018-04-05 Thread Seth Forshee
** Changed in: linux (Ubuntu Bionic)
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Fix Committed
Status in linux source package in Bionic:
  Fix Committed

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: linux (not installed)
  PciMultimedia:
   
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
  ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
  RelatedPackageVersions:
   linux-restricted-modules-4.15.0-10-generic N/A
   linux-backports-modules-4.15.0-10-generic  N/A
   linux-firmware 1.173
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
  Tags:  bionic
  Uname: Linux 4.15.0-10-generic x86_64
  UnreportableReason: The report belongs to a package that is not installed.
  UpgradeStatus: No upgrade log present (probably fresh install)
  

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2018-04-05 Thread Seth Forshee
Have you reported this upstream?

It does look to me that this dependency is working the wrong way, that
CONFIG_BLK_DEV_NVME depends on CONFIG_NVME and not the other way around.
The driver enabled by CONFIG_BLK_DEV_NVME has no entry points other than
the struct pci_driver callbacks, but it does call into the code enabled
by CONFIG_NVME.

I'm not convinced that yours is the correct fix though. I suspect that
BLK_DEV_NVME should have a "depends on NVM" or "select NVM" instead.
What I will do though is revert 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
and change BLK_DEV_NVME back to =m. You should probably follow up
upstream to get a fix in place there.

** Changed in: linux (Ubuntu Bionic)
   Status: Triaged => In Progress

** Changed in: linux (Ubuntu Bionic)
 Assignee: (unassigned) => Seth Forshee (sforshee)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Bionic:
  In Progress

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: 

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2018-03-30 Thread Yurii Shestakov
>From the KConfig tutorial:
https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt

- reverse dependencies: "select"  ["if" ]
  While normal dependencies reduce the upper limit of a symbol (see
  below), reverse dependencies can be used to force a lower limit of
  another symbol. The value of the current menu symbol is used as the
  minimal value  can be set to. If  is selected multiple
  times, the limit is set to the largest selection.
  Reverse dependencies can only be used with boolean or tristate
  symbols.
  Note:
*select should be used with care.* select will force
a symbol to a value without visiting the dependencies.
By abusing select you are able to select a symbol FOO even
if FOO depends on BAR that is not set.
In general use select only for non-visible symbols
(no prompts anywhere) and for symbols with no dependencies.
That will limit the usefulness but on the other hand avoid
the illegal configurations all over.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Triaged
Status in linux source package in Bionic:
  Triaged

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2018-03-29 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Triaged
Status in linux source package in Bionic:
  Triaged

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: linux (not installed)
  PciMultimedia:
   
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
  ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
  RelatedPackageVersions:
   linux-restricted-modules-4.15.0-10-generic N/A
   linux-backports-modules-4.15.0-10-generic  N/A
   linux-firmware 1.173
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
  Tags:  bionic
  Uname: Linux 4.15.0-10-generic x86_64
  UnreportableReason: The report belongs to a package that is not installed.
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:
   
  _MarkForUpload: False
  dmi.bios.date: 01/01/2011
  

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2018-03-29 Thread Joseph Salisbury
** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

** Also affects: linux (Ubuntu Bionic)
   Importance: Medium
   Status: Confirmed

** Changed in: linux (Ubuntu Bionic)
   Importance: Medium => High

** Changed in: linux (Ubuntu Bionic)
   Status: Confirmed => Triaged

** Tags added: kernel-da-key

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1759893

Title:
  [18.04][config] regression: nvme and nvme_core couldn't be built as
  modules starting 4.15-rc2

Status in linux package in Ubuntu:
  Triaged
Status in linux source package in Bionic:
  Triaged

Bug description:
  Some regression was introduced into NVME-related kernel configuration
  by 32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git

  In result, "nvme" and "nvme_core" drivers are built into the kernel,
  we can't build them as modules. It caused incompatibility of NMVe-OF
  target and initiator modules (nvmet, nvme-rdma) installed by Mellanox
  OFED with the inbox "nvme" driver.

  Root cause analysis.

  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...

  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y

  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME

  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200

  lightnvm: include NVM Express driver if OCSSD is selected for
  build

  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.

  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 

   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Proposed fix is following:

  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@

   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.

  
  Regards, Yurii Shestakov
  --- 
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
   crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu1
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  DistroRelease: Ubuntu 18.04
  HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  Package: linux (not installed)
  PciMultimedia:
   
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
  ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
  RelatedPackageVersions:
   linux-restricted-modules-4.15.0-10-generic N/A
   linux-backports-modules-4.15.0-10-generic  N/A
   linux-firmware 1.173
  RfKill: Error: [Errno 2] No such file or 

[Kernel-packages] [Bug 1759893] Re: [18.04][config] regression: nvme and nvme_core couldn't be built as modules starting 4.15-rc2

2018-03-29 Thread Yurii Shestakov
apport information

** Tags added: apport-collected bionic

** Description changed:

  Some regression was introduced into NVME-related kernel configuration by
  32c662c58a9b9 into 4.15-rc2, which was pulled later into ubuntu-
  bionic.git
  
  In result, "nvme" and "nvme_core" drivers are built into the kernel, we
  can't build them as modules. It caused incompatibility of NMVe-OF target
  and initiator modules (nvmet, nvme-rdma) installed by Mellanox OFED with
  the inbox "nvme" driver.
  
  Root cause analysis.
  
  In the drivers/lightnvm/Kconfig file - kernel configuration for the 
OpenChannel SSDs (lightnvm) we have:
   
  menuconfig NVM
  bool "Open-Channel SSD target support"
  depends on BLOCK && HAS_DMA && PCI
  select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  ...
  
  
  It means that BLK_DEV_NVME is selected to "y" when  NVM (CONFIG_NVM) is 
selected.
  NVM parameter is 2 state (on / off, i.e. "y" or "no"), it couldn't be built 
as a module.
  So that it triggers the change of BLK_DEV_NAME=y and NVME_CORE=y
  
  $ git blame drivers/lightnvm/Kconfig
   
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  7)depends on 
BLOCK && HAS_DMA && PCI
  32c662c58a9b9 (Rakesh Pandit   2017-10-13 14:45:55 +0200  8)select 
BLK_DEV_NVME
  
  commit 32c662c58a9b9d0c99e713a14ca323a9a91c73a0
  Author: Rakesh Pandit 
  Date:   Fri Oct 13 14:45:55 2017 +0200
  
  lightnvm: include NVM Express driver if OCSSD is selected for build
  
  Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM
  in config file before building kernel.  Also append PCI to depends as
  select doesn't automatically add dependencies.
  
  Signed-off-by: Rakesh Pandit 
  Signed-off-by: Matias Bjørling 
  Signed-off-by: Jens Axboe 
  
   drivers/lightnvm/Kconfig | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)
  
  $ git diff 32c662c58a9b9^1..32c662c58a9b9
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index ead61a93cb4e..2a953efec4e1 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,7 +4,8 @@
  
   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA
  +   depends on BLOCK && HAS_DMA && PCI
  +   select BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  
  
  Proposed fix is following:
  
  diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig
  index 2a953efec4e1..9969236314d7 100644
  --- a/drivers/lightnvm/Kconfig
  +++ b/drivers/lightnvm/Kconfig
  @@ -4,8 +4,7 @@
  
   menuconfig NVM
  bool "Open-Channel SSD target support"
  -   depends on BLOCK && HAS_DMA && PCI
  -   select BLK_DEV_NVME
  +   depends on BLOCK && HAS_DMA && PCI && BLK_DEV_NVME
  help
Say Y here to get to enable Open-channel SSDs.
  
  
  Regards, Yurii Shestakov
+ --- 
+ AlsaDevices:
+  total 0
+  crw-rw 1 root audio 116,  1 Mar 29 17:05 seq
+  crw-rw 1 root audio 116, 33 Mar 29 17:05 timer
+ AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
+ ApportVersion: 2.20.9-0ubuntu1
+ Architecture: amd64
+ ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
+ AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
+ DistroRelease: Ubuntu 18.04
+ HibernationDevice: RESUME=/dev/mapper/vg2-swap_1
+ IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
+ Lsusb:
+  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
+  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
+ MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
+ Package: linux (not installed)
+ PciMultimedia:
+  
+ ProcFB:
+  
+ ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=/dev/mapper/vg2-root ro net.ifnames=0 biosdevname=0 quiet nofb nomodeset 
console=ttyS0,115200n8
+ ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
+ RelatedPackageVersions:
+  linux-restricted-modules-4.15.0-10-generic N/A
+  linux-backports-modules-4.15.0-10-generic  N/A
+  linux-firmware 1.173
+ RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
+ Tags:  bionic
+ Uname: Linux 4.15.0-10-generic x86_64
+ UnreportableReason: The report belongs to a package that is not installed.
+ UpgradeStatus: No upgrade log present (probably fresh install)
+ UserGroups:
+  
+ _MarkForUpload: False
+ dmi.bios.date: 01/01/2011
+ dmi.bios.vendor: Seabios
+ dmi.bios.version: 0.5.1
+ dmi.chassis.type: 1
+ dmi.chassis.vendor: Bochs
+ dmi.modalias: 
dmi:bvnSeabios:bvr0.5.1:bd01/01/2011:svnQEMU:pnStandardPC(Q35+ICH9,2009):pvrpc-q35-2.0:cvnBochs:ct1:cvr:
+ dmi.product.name: Standard PC (Q35 + ICH9, 2009)
+ dmi.product.version: