Marking Vivid as fix released because it will be rebased on 3.18 soon
and have these commits anyway

** Changed in: linux (Ubuntu Vivid)
       Status: Triaged => Fix Released

-- 
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/1392021

Title:
  Ubuntu 15.04 [genwqe_start] err: could not setup servicelayer

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Utopic:
  Fix Released
Status in linux source package in Vivid:
  Fix Released

Bug description:
  [Impact]
  The IBM GenWQE Accelerator Adapter does not work correctly in the latest 3.16 
kernel.

  [Test Case]
  1) Create a guest system on PowerKVM using image disk file, install from 
virutal SCSI DVD. Especially assign the GenWQE card via PCI passthrough.
  2) Start up the guest
  3) lspci -knd :044b
  3) dmesg|grep genwqe
  4) ) modprobe genwqe_card.ko
      No module is assigned to the card
  5) ls -l /dev/genwq* shows no file at all.
      One device file would be expected here.

  [Fix]
  The following patches cleanly cherry-pick into 3.16
  1451f41 GenWQE: Support blocking when DDCB queue is busy
  08e4906 GenWQE: Fix problem when reading HSI and Retc
  d9c11d4 GenWQE: Fix checkpatch complaints
  bc407dd GenWQE: Check return code of pci_sriov_enable
  2d880cc GenWQE: Do not modify return code of genwqe_set_interrupt_capability
  26d8f6f GenWQE: Update author information
  64df2ec GenWQE: Remove sysfs entry for driver version
  95a8825 GenWQE: Check pci_get_totalvfs return code
  32182cd misc: remove DEFINE_PCI_DEVICE_TABLE usage
  5b35b20 GenWQE: Remove unnecessary include
  7276883 misc/GenWQE: fix pci_enable_msi usage
  d584f69 GenWQE: Increase driver version number
  93b772b GenWQE: Improve hardware error recovery
  fb14545 GenWQE: Add support for EEH error recovery
  c1f732a GenWQE: Add sysfs interface for bitstream reload

  --

  == Comment: #0 - Christian Rund <christian.r...@de.ibm.com> - 2014-11-11 
10:45:12 ==
  ---Problem Description---
  In our opinion the 2.0.15 version of the IBM GenWQE Accelerator Adapter 
driver part of Ubuntu 15.04 is not working. A higher version would be needed. 
The driver is part of the linux-image-extra-3.16.0-24-generic package.

  [    3.330906] genwqe 0001:00:02.0: enabling device (0140 -> 0142)
  [    3.332443] genwqe 0001:00:02.0: ibm,query-pe-dma-windows(26200000) 1 
8000000 20000001 returned 0
  [    3.333159] genwqe 0001:00:02.0: ibm,create-pe-dma-window(27200000) 1 
8000000 20000001 10 1f returned -1 (liobn = 0x0 starting addr = 0 0)
  [    4.403223] genwqe 0001:00:02.0: [genwqe_start] err: could not setup 
servicelayer!
  [    4.403333] genwqe 0001:00:02.0: err: cannot start card services! (err=-5)
  [    4.404471] genwqe: probe of 0001:00:02.0 failed with error -5
  [321140.194392] genwqe_card: module verification failed: signature and/or  
required key missing - tainting kernel

  modinfo genwqe_card
  filename:       
/lib/modules/3.16.0-24-generic/kernel/drivers/misc/genwqe/genwqe_card.ko
  license:        GPL
  version:        2.0.15
  description:    GenWQE Card
  author:         Michal Jung <mij...@de.ibm.com>
  author:         Joerg-Stephan Vogt <jsv...@de.ibm.com>
  author:         Michael Ruettger <mich...@ibmra.de>
  author:         Frank Haverkamp <ha...@linux.vnet.ibm.com>
  srcversion:     69FBCA52AFAF3B71342E43B
  alias:          pci:v00001014d0000044Bsv00001014sd0000044Bbc12sc00i00*
  alias:          pci:v00001014d00000000sv00000000sd0000035Fbc12sc00i00*
  alias:          pci:v00001014d0000044Bsv00000000sd0000035Fbc12sc00i00*
  alias:          pci:v00001014d00000000sv00000000sd00000000bc12sc00i00*
  alias:          pci:v00001014d0000044Bsv00000000sd00000000bc12sc00i00*
  alias:          pci:v00001014d0000044Bsv00001014sd0000035Fbc12sc00i00*
  depends:        crc-itu-t
  intree:         Y
  vermagic:       3.16.0-24-generic SMP mod_unload modversions
  signer:         Magrathea: Glacier signing key
  sig_key:        32:F4:D0:34:89:C6:7C:D7:71:67:94:F6:0C:00:D7:F7:E8:D2:78:0E
  sig_hashalgo:   sha512

  Contact Information = christian.r...@de.ibm.com, Frank Haverkamp
  haver...@de.ibm.com

  ---uname output---
  Linux tulg3 3.16.0-24-generic #32-Ubuntu SMP Tue Oct 28 13:06:19 UTC 2014 
ppc64le ppc64le ppc64le GNU/Linux

  ---Additional Hardware Info---
  0001:00:02.0 Processing accelerators: IBM GenWQE Accelerator Adapter
  Class: 1200  VendorID: 1014   DeviceId: 044b assigned to the PowerKVM guest 
via PCI passthrough (vfio-pci)

  Machine Type = 8284-22A PowerKVM

  ---Debugger---
  A debugger is not configured

  ---Steps to Reproduce---
   1) Create a guest system on PowerKVM using image disk file, install from 
virutal SCSI DVD. Especially assign the GenWQE card via PCI passthrough.
  2) Start up the guest
  3) lspci -knd :044b
  3) dmesg|grep genwqe
  4) ) modprobe genwqe_card.ko
      No module is assigned to the card
  5) ls -l /dev/genwq* shows no file at all.
      One device file would be expected here.

  Stack trace output:
   no

  Oops output:
   no

  System Dump Info:
    The system is not configured to capture a system dump.

  *Additional Instructions for christian.r...@de.ibm.com, Frank Haverkamp 
haver...@de.ibm.com:
  -Attach sysctl -a output output to the bug.

  == Comment: #2 - Frank Haverkamp <haver...@de.ibm.com> - 2014-11-12 05:09:24 
==
  Christian and I tried out CVS version of the driver and that works. Ubuntu 
picked and unfortunate intermediate version of the driver which had broken irq 
registration. This was fixed later by Sebastian Ott and Kleber and I added on 
top of that some more patches which did cleanups and more importantly added 
System p specific recovery features e.g. like EEH handlers and a method to 
reload the bitstream for p.

  Therefore it would be great if someone could have the Ubuntu folks
  pickup the latest version from Kernel.org.

  I know that Greg KH has a good version of the code in his tree. We
  need to check if that has made it yet into Linux version (both should
  be the same).

  == Comment: #3 - Frank Haverkamp <haver...@de.ibm.com> - 2014-11-12 07:58:03 
==
  Christian has checked the linux.git version of the genwqe_card driver 
compiled against his Ubuntu kernel and found it working.

  SHA is 206c5f60a3d902bc4b56dab2de3e88de5eb06108.
  Patched affecting the driver are usually prefixed with GenWQE or genwqe

  7276883f1f98cd0a92fdc049f69bdc0912f7fc16 misc/GenWQE: fix pci_enable_msi usage
  was the one which fixed the problem introduced by
  a30d0108b09ae46d24594a2e699c4dad21bb4af4 Use pci_enable_msi_exact() instead 
of pci_enable_msi_block()

  So please have a look how we convince the Ubuntu folks to update their
  version of the code. Thanks.

  == Comment: #5 - Christian Rund <christian.r...@de.ibm.com> - 2014-11-12 
08:26:17 ==
  Confirm that version 2.0.25 built against the mainline kernel is working for 
us.
  Used given SHA based on Linux 3.18-rc4, paid attention to the new 
genwqe_card.h file.

  To make matters worse the picked 2.0.15 version leads to system hung soon 
after the dmesg messages described above (i.e. when the genwqe_card module is 
loaded).
  Thus raising priority to P2 normal.

  Hope Franks and my comments answer 'more info'. Setting state back to
  open.

  crund@tulg3:~/driver-core/drivers/misc/genwqe$ make -C 
/lib/modules/3.16.0-24-generic/build 
SUBDIRS=/home/crund/driver-core/drivers/misc/genwqe 
EXTRA_CFLAGS="-I/home/crund/driver-core/include/uapi -Wuninitialized 
-DCONFIG_GENWQE_PLATFORM_ERROR_RECOVERY=1" modules
  make: Entering directory '/usr/src/linux-headers-3.16.0-24-generic'
    CC [M]  /home/crund/driver-core/drivers/misc/genwqe/card_base.o
    CC [M]  /home/crund/driver-core/drivers/misc/genwqe/card_dev.o
    CC [M]  /home/crund/driver-core/drivers/misc/genwqe/card_ddcb.o
    CC [M]  /home/crund/driver-core/drivers/misc/genwqe/card_sysfs.o
    CC [M]  /home/crund/driver-core/drivers/misc/genwqe/card_debugfs.o
    CC [M]  /home/crund/driver-core/drivers/misc/genwqe/card_utils.o
    LD [M]  /home/crund/driver-core/drivers/misc/genwqe/genwqe_card.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC      /home/crund/driver-core/drivers/misc/genwqe/genwqe_card.mod.o
    LD [M]  /home/crund/driver-core/drivers/misc/genwqe/genwqe_card.ko
  make: Leaving directory '/usr/src/linux-headers-3.16.0-24-generic'
  crund@tulg3:~/driver-core/drivers/misc/genwqe$ su
  Password:
  root@tulg3:/home/crund/driver-core/drivers/misc/genwqe# cat 
/sys/kernel/debug/genwqe/genwqe0_card/info
  genwqe driver version: 2.0.25
      Device Name/Type: 0001:00:02.0 Physical CardIdx: 0
      SLU/APP Config  : 0x00000b0330342260/0x00000002475a4950
      Build Date      : 2/26/2014
      Base Clock      : 175 MHz
      Arch/SVN Release: 3/b
      Bitstream       : 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1392021/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to