Ubuntu 15.04 [genwqe_start] err: could not setup servicelayer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Utopic |
Fix Released
|
Undecided
|
Chris J Arges | ||
Vivid |
Fix Released
|
High
|
Unassigned |
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_
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_
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 <email address hidden> - 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-
[ 3.330906] genwqe 0001:00:02.0: enabling device (0140 -> 0142)
[ 3.332443] genwqe 0001:00:02.0: ibm,query-
[ 3.333159] genwqe 0001:00:02.0: ibm,create-
[ 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/
license: GPL
version: 2.0.15
description: GenWQE Card
author: Michal Jung <email address hidden>
author: Joerg-Stephan Vogt <email address hidden>
author: Michael Ruettger <email address hidden>
author: Frank Haverkamp <email address hidden>
srcversion: 69FBCA52AFAF3B7
alias: pci:v00001014d0
alias: pci:v00001014d0
alias: pci:v00001014d0
alias: pci:v00001014d0
alias: pci:v00001014d0
alias: pci:v00001014d0
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:
sig_hashalgo: sha512
Contact Information = <email address hidden>, Frank Haverkamp <email address hidden>
---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 <email address hidden>, Frank Haverkamp <email address hidden>:
-Attach sysctl -a output output to the bug.
== Comment: #2 - Frank Haverkamp <email address hidden> - 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 <email address hidden> - 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 206c5f60a3d902b
Patched affecting the driver are usually prefixed with GenWQE or genwqe
7276883f1f98cd0
was the one which fixed the problem introduced by
a30d0108b09ae46
So please have a look how we convince the Ubuntu folks to update their version of the code. Thanks.
== Comment: #5 - Christian Rund <email address hidden> - 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:
make: Entering directory '/usr/src/
CC [M] /home/crund/
CC [M] /home/crund/
CC [M] /home/crund/
CC [M] /home/crund/
CC [M] /home/crund/
CC [M] /home/crund/
LD [M] /home/crund/
Building modules, stage 2.
MODPOST 1 modules
CC /home/crund/
LD [M] /home/crund/
make: Leaving directory '/usr/src/
crund@tulg3:
Password:
root@tulg3:
genwqe driver version: 2.0.25
Device Name/Type: 0001:00:02.0 Physical CardIdx: 0
SLU/APP Config : 0x00000b0330342
Build Date : 2/26/2014
Base Clock : 175 MHz
Arch/SVN Release: 3/b
Bitstream : 1
Related branches
affects: | ubuntu → linux (Ubuntu) |
tags: | added: cherry-pick |
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in linux (Ubuntu Vivid): | |
status: | Triaged → Fix Released |
Changed in linux (Ubuntu Utopic): | |
assignee: | nobody → Chris J Arges (arges) |
status: | New → In Progress |
description: | updated |
Changed in linux (Ubuntu Utopic): | |
status: | In Progress → Fix Committed |
tags: |
added: targetmilestone-inin1504 removed: targetmilestone-inin--- |
Default Comment by Bridge