[Kernel-packages] [Bug 1702768] Re: Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

2017-11-21 Thread Leonardo Garcia
*** This bug is a duplicate of bug 1701272 ***
https://bugs.launchpad.net/bugs/1701272

Joseph,

Disregard my last comment.

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

Title:
  Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

Status in The Ubuntu-power-systems project:
  In Progress
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Zesty:
  In Progress

Bug description:
  ---Problem Description---
  When enabling SRIOV with kernel 4.10.0-26-generic in power will see this 
stack trace:
  [ 2084.079575] [ cut here ]
  [ 2084.079583] WARNING: CPU: 120 PID: 734 at 
/build/linux-TAhFXm/linux-4.10.0/arch/powerpc/platforms/powernv/npu-dma.c:78 
pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079584] Modules linked in: mst_pciconf(OE) mst_pci(OE) xt_CHECKSUM 
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 
nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT 
nf_reject_ipv4 xt_tcpudp kvm_hv kvm_pr kvm ebtable_filter ebtables 
ip6table_filter ip6_tables iptable_filter rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) 
ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) mlx4_ib(OE) binfmt_misc bridge stp llc 
ipmi_powernv ipmi_devintf ipmi_msghandler powernv_rng powernv_op_panel 
uio_pdrv_genirq leds_powernv uio ibmpowernv vmx_crypto sunrpc ib_iser(OE) 
rdma_cm(OE) iw_cm(OE) ib_cm(OE) ib_core(OE) configfs iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi knem(OE) ip_tables x_tables autofs4 btrfs raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
  [ 2084.079640]  xor raid6_pq libcrc32c raid1 raid0 multipath linear 
mlx4_en(OE) ses enclosure scsi_transport_sas crc32c_vpmsum tg3 mlx5_core(OE) 
mlx4_core(OE) ipr devlink mlx_compat(OE)
  [ 2084.079658] CPU: 120 PID: 734 Comm: kworker/120:0 Tainted: GW  OE  
 4.10.0-26-generic #30-Ubuntu
  [ 2084.079663] Workqueue: events work_for_cpu_fn
  [ 2084.079665] task: c00fee60dc00 task.stack: c00fee534000
  [ 2084.079666] NIP: c009c210 LR: c009d404 CTR: 

  [ 2084.079668] REGS: c00fee537700 TRAP: 0700   Tainted: GW  OE
(4.10.0-26-generic)
  [ 2084.079669] MSR: 9282b033 
  [ 2084.079677]   CR: 42004428  XER: 2000
  [ 2084.079678] CFAR: c009d400 SOFTE: 1
 GPR00: c009d404 c00fee537980 c145d100 

 GPR04:  0aa6 c01fff70 
00049188
 GPR08: 0007 0001 0001 

 GPR12: 2200 cfbc3800 c010ef48 
c00ff70ec540
 GPR16: c00ffa622c58 c00ffa622a10 c00ffa6229a0 
0001
 GPR20:  c1318de8 c0d700e8 
0001
 GPR24: c0d6f070 c0d6f050 c3d02000 
c3d02098
 GPR28: c00e92680060 081f  

  [ 2084.079702] NIP [c009c210] pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079704] LR [c009d404] pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079705] Call Trace:
  [ 2084.079708] [c00fee5379b0] [c009d404] 
pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079710] [c00fee537a80] [c0096c74] 
pnv_pci_ioda_dma_set_mask+0xa4/0x150
  [ 2084.079714] [c00fee537b00] [c00291a0] dma_set_mask+0x40/0xc0
  [ 2084.079728] [c00fee537b20] [d000143531e4] init_one+0x33c/0x6a0 
[mlx5_core]
  [ 2084.079732] [c00fee537bd0] [c066ba9c] 
local_pci_probe+0x6c/0x140
  [ 2084.079734] [c00fee537c60] [c01016b8] work_for_cpu_fn+0x38/0x60
  [ 2084.079737] [c00fee537c90] [c01061a0] 
process_one_work+0x2b0/0x5a0
  [ 2084.079740] [c00fee537d20] [c0106780] worker_thread+0x2f0/0x650
  [ 2084.079742] [c00fee537dc0] [c010f0a4] kthread+0x164/0x1b0
  [ 2084.079746] [c00fee537e30] [c000b4e8] 
ret_from_kernel_thread+0x5c/0x74
  [ 2084.079747] Instruction dump:
  [ 2084.079748] 7c0802a6 fbe1fff8 f8010010 f821ffd1 7c690074 7929d182 0b09 
2fa3
  [ 2084.079753] 419e0060 e8630330 7c690074 7929d182 <0b09> 2fa3 
419e0048 7c852378
  [ 2084.079759] ---[ end trace 7bf01a937efd69d8 ]---

  This issue was introduced by this  commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c3b89effc281704d5395282c800c45e453235f6
 (Subject: powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev )

  and the solution will be to add this commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=377aa6b0efbaa29cfeecd8b9244641217f9544ca

  which reads: "powerpc/npu-dma: Remove spurious 

[Kernel-packages] [Bug 1702768] Re: Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

2017-09-14 Thread Joseph Salisbury
*** This bug is a duplicate of bug 1701272 ***
https://bugs.launchpad.net/bugs/1701272

@lagarcia,  This bug is a duplicate of bug 1701272 and that bug is Fix
Released.  Do you still see 17.04 or 17.10 exhibiting this bug?

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

Title:
  Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

Status in The Ubuntu-power-systems project:
  In Progress
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Zesty:
  In Progress

Bug description:
  ---Problem Description---
  When enabling SRIOV with kernel 4.10.0-26-generic in power will see this 
stack trace:
  [ 2084.079575] [ cut here ]
  [ 2084.079583] WARNING: CPU: 120 PID: 734 at 
/build/linux-TAhFXm/linux-4.10.0/arch/powerpc/platforms/powernv/npu-dma.c:78 
pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079584] Modules linked in: mst_pciconf(OE) mst_pci(OE) xt_CHECKSUM 
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 
nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT 
nf_reject_ipv4 xt_tcpudp kvm_hv kvm_pr kvm ebtable_filter ebtables 
ip6table_filter ip6_tables iptable_filter rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) 
ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) mlx4_ib(OE) binfmt_misc bridge stp llc 
ipmi_powernv ipmi_devintf ipmi_msghandler powernv_rng powernv_op_panel 
uio_pdrv_genirq leds_powernv uio ibmpowernv vmx_crypto sunrpc ib_iser(OE) 
rdma_cm(OE) iw_cm(OE) ib_cm(OE) ib_core(OE) configfs iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi knem(OE) ip_tables x_tables autofs4 btrfs raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
  [ 2084.079640]  xor raid6_pq libcrc32c raid1 raid0 multipath linear 
mlx4_en(OE) ses enclosure scsi_transport_sas crc32c_vpmsum tg3 mlx5_core(OE) 
mlx4_core(OE) ipr devlink mlx_compat(OE)
  [ 2084.079658] CPU: 120 PID: 734 Comm: kworker/120:0 Tainted: GW  OE  
 4.10.0-26-generic #30-Ubuntu
  [ 2084.079663] Workqueue: events work_for_cpu_fn
  [ 2084.079665] task: c00fee60dc00 task.stack: c00fee534000
  [ 2084.079666] NIP: c009c210 LR: c009d404 CTR: 

  [ 2084.079668] REGS: c00fee537700 TRAP: 0700   Tainted: GW  OE
(4.10.0-26-generic)
  [ 2084.079669] MSR: 9282b033 
  [ 2084.079677]   CR: 42004428  XER: 2000
  [ 2084.079678] CFAR: c009d400 SOFTE: 1
 GPR00: c009d404 c00fee537980 c145d100 

 GPR04:  0aa6 c01fff70 
00049188
 GPR08: 0007 0001 0001 

 GPR12: 2200 cfbc3800 c010ef48 
c00ff70ec540
 GPR16: c00ffa622c58 c00ffa622a10 c00ffa6229a0 
0001
 GPR20:  c1318de8 c0d700e8 
0001
 GPR24: c0d6f070 c0d6f050 c3d02000 
c3d02098
 GPR28: c00e92680060 081f  

  [ 2084.079702] NIP [c009c210] pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079704] LR [c009d404] pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079705] Call Trace:
  [ 2084.079708] [c00fee5379b0] [c009d404] 
pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079710] [c00fee537a80] [c0096c74] 
pnv_pci_ioda_dma_set_mask+0xa4/0x150
  [ 2084.079714] [c00fee537b00] [c00291a0] dma_set_mask+0x40/0xc0
  [ 2084.079728] [c00fee537b20] [d000143531e4] init_one+0x33c/0x6a0 
[mlx5_core]
  [ 2084.079732] [c00fee537bd0] [c066ba9c] 
local_pci_probe+0x6c/0x140
  [ 2084.079734] [c00fee537c60] [c01016b8] work_for_cpu_fn+0x38/0x60
  [ 2084.079737] [c00fee537c90] [c01061a0] 
process_one_work+0x2b0/0x5a0
  [ 2084.079740] [c00fee537d20] [c0106780] worker_thread+0x2f0/0x650
  [ 2084.079742] [c00fee537dc0] [c010f0a4] kthread+0x164/0x1b0
  [ 2084.079746] [c00fee537e30] [c000b4e8] 
ret_from_kernel_thread+0x5c/0x74
  [ 2084.079747] Instruction dump:
  [ 2084.079748] 7c0802a6 fbe1fff8 f8010010 f821ffd1 7c690074 7929d182 0b09 
2fa3
  [ 2084.079753] 419e0060 e8630330 7c690074 7929d182 <0b09> 2fa3 
419e0048 7c852378
  [ 2084.079759] ---[ end trace 7bf01a937efd69d8 ]---

  This issue was introduced by this  commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c3b89effc281704d5395282c800c45e453235f6
 (Subject: powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev )

  and the solution will be to add this commit:
  

[Kernel-packages] [Bug 1702768] Re: Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

2017-09-14 Thread Andrew Cloke
*** This bug is a duplicate of bug 1701272 ***
https://bugs.launchpad.net/bugs/1701272

This bug is marked as a duplicate of
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1701272 which is
marked as "Fix Released" for 17.04.

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

Title:
  Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

Status in The Ubuntu-power-systems project:
  In Progress
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Zesty:
  In Progress

Bug description:
  ---Problem Description---
  When enabling SRIOV with kernel 4.10.0-26-generic in power will see this 
stack trace:
  [ 2084.079575] [ cut here ]
  [ 2084.079583] WARNING: CPU: 120 PID: 734 at 
/build/linux-TAhFXm/linux-4.10.0/arch/powerpc/platforms/powernv/npu-dma.c:78 
pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079584] Modules linked in: mst_pciconf(OE) mst_pci(OE) xt_CHECKSUM 
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 
nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT 
nf_reject_ipv4 xt_tcpudp kvm_hv kvm_pr kvm ebtable_filter ebtables 
ip6table_filter ip6_tables iptable_filter rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) 
ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) mlx4_ib(OE) binfmt_misc bridge stp llc 
ipmi_powernv ipmi_devintf ipmi_msghandler powernv_rng powernv_op_panel 
uio_pdrv_genirq leds_powernv uio ibmpowernv vmx_crypto sunrpc ib_iser(OE) 
rdma_cm(OE) iw_cm(OE) ib_cm(OE) ib_core(OE) configfs iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi knem(OE) ip_tables x_tables autofs4 btrfs raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
  [ 2084.079640]  xor raid6_pq libcrc32c raid1 raid0 multipath linear 
mlx4_en(OE) ses enclosure scsi_transport_sas crc32c_vpmsum tg3 mlx5_core(OE) 
mlx4_core(OE) ipr devlink mlx_compat(OE)
  [ 2084.079658] CPU: 120 PID: 734 Comm: kworker/120:0 Tainted: GW  OE  
 4.10.0-26-generic #30-Ubuntu
  [ 2084.079663] Workqueue: events work_for_cpu_fn
  [ 2084.079665] task: c00fee60dc00 task.stack: c00fee534000
  [ 2084.079666] NIP: c009c210 LR: c009d404 CTR: 

  [ 2084.079668] REGS: c00fee537700 TRAP: 0700   Tainted: GW  OE
(4.10.0-26-generic)
  [ 2084.079669] MSR: 9282b033 
  [ 2084.079677]   CR: 42004428  XER: 2000
  [ 2084.079678] CFAR: c009d400 SOFTE: 1
 GPR00: c009d404 c00fee537980 c145d100 

 GPR04:  0aa6 c01fff70 
00049188
 GPR08: 0007 0001 0001 

 GPR12: 2200 cfbc3800 c010ef48 
c00ff70ec540
 GPR16: c00ffa622c58 c00ffa622a10 c00ffa6229a0 
0001
 GPR20:  c1318de8 c0d700e8 
0001
 GPR24: c0d6f070 c0d6f050 c3d02000 
c3d02098
 GPR28: c00e92680060 081f  

  [ 2084.079702] NIP [c009c210] pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079704] LR [c009d404] pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079705] Call Trace:
  [ 2084.079708] [c00fee5379b0] [c009d404] 
pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079710] [c00fee537a80] [c0096c74] 
pnv_pci_ioda_dma_set_mask+0xa4/0x150
  [ 2084.079714] [c00fee537b00] [c00291a0] dma_set_mask+0x40/0xc0
  [ 2084.079728] [c00fee537b20] [d000143531e4] init_one+0x33c/0x6a0 
[mlx5_core]
  [ 2084.079732] [c00fee537bd0] [c066ba9c] 
local_pci_probe+0x6c/0x140
  [ 2084.079734] [c00fee537c60] [c01016b8] work_for_cpu_fn+0x38/0x60
  [ 2084.079737] [c00fee537c90] [c01061a0] 
process_one_work+0x2b0/0x5a0
  [ 2084.079740] [c00fee537d20] [c0106780] worker_thread+0x2f0/0x650
  [ 2084.079742] [c00fee537dc0] [c010f0a4] kthread+0x164/0x1b0
  [ 2084.079746] [c00fee537e30] [c000b4e8] 
ret_from_kernel_thread+0x5c/0x74
  [ 2084.079747] Instruction dump:
  [ 2084.079748] 7c0802a6 fbe1fff8 f8010010 f821ffd1 7c690074 7929d182 0b09 
2fa3
  [ 2084.079753] 419e0060 e8630330 7c690074 7929d182 <0b09> 2fa3 
419e0048 7c852378
  [ 2084.079759] ---[ end trace 7bf01a937efd69d8 ]---

  This issue was introduced by this  commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c3b89effc281704d5395282c800c45e453235f6
 (Subject: powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev )

  and the solution will be to add this commit:
  

[Kernel-packages] [Bug 1702768] Re: Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

2017-07-12 Thread Joseph Salisbury
*** This bug is a duplicate of bug 1701272 ***
https://bugs.launchpad.net/bugs/1701272

** This bug has been marked a duplicate of bug 1701272
   New NVLINK2 patches

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

Title:
  Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

Status in The Ubuntu-power-systems project:
  In Progress
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Zesty:
  In Progress

Bug description:
  ---Problem Description---
  When enabling SRIOV with kernel 4.10.0-26-generic in power will see this 
stack trace:
  [ 2084.079575] [ cut here ]
  [ 2084.079583] WARNING: CPU: 120 PID: 734 at 
/build/linux-TAhFXm/linux-4.10.0/arch/powerpc/platforms/powernv/npu-dma.c:78 
pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079584] Modules linked in: mst_pciconf(OE) mst_pci(OE) xt_CHECKSUM 
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 
nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT 
nf_reject_ipv4 xt_tcpudp kvm_hv kvm_pr kvm ebtable_filter ebtables 
ip6table_filter ip6_tables iptable_filter rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) 
ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) mlx4_ib(OE) binfmt_misc bridge stp llc 
ipmi_powernv ipmi_devintf ipmi_msghandler powernv_rng powernv_op_panel 
uio_pdrv_genirq leds_powernv uio ibmpowernv vmx_crypto sunrpc ib_iser(OE) 
rdma_cm(OE) iw_cm(OE) ib_cm(OE) ib_core(OE) configfs iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi knem(OE) ip_tables x_tables autofs4 btrfs raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
  [ 2084.079640]  xor raid6_pq libcrc32c raid1 raid0 multipath linear 
mlx4_en(OE) ses enclosure scsi_transport_sas crc32c_vpmsum tg3 mlx5_core(OE) 
mlx4_core(OE) ipr devlink mlx_compat(OE)
  [ 2084.079658] CPU: 120 PID: 734 Comm: kworker/120:0 Tainted: GW  OE  
 4.10.0-26-generic #30-Ubuntu
  [ 2084.079663] Workqueue: events work_for_cpu_fn
  [ 2084.079665] task: c00fee60dc00 task.stack: c00fee534000
  [ 2084.079666] NIP: c009c210 LR: c009d404 CTR: 

  [ 2084.079668] REGS: c00fee537700 TRAP: 0700   Tainted: GW  OE
(4.10.0-26-generic)
  [ 2084.079669] MSR: 9282b033 
  [ 2084.079677]   CR: 42004428  XER: 2000
  [ 2084.079678] CFAR: c009d400 SOFTE: 1
 GPR00: c009d404 c00fee537980 c145d100 

 GPR04:  0aa6 c01fff70 
00049188
 GPR08: 0007 0001 0001 

 GPR12: 2200 cfbc3800 c010ef48 
c00ff70ec540
 GPR16: c00ffa622c58 c00ffa622a10 c00ffa6229a0 
0001
 GPR20:  c1318de8 c0d700e8 
0001
 GPR24: c0d6f070 c0d6f050 c3d02000 
c3d02098
 GPR28: c00e92680060 081f  

  [ 2084.079702] NIP [c009c210] pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079704] LR [c009d404] pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079705] Call Trace:
  [ 2084.079708] [c00fee5379b0] [c009d404] 
pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079710] [c00fee537a80] [c0096c74] 
pnv_pci_ioda_dma_set_mask+0xa4/0x150
  [ 2084.079714] [c00fee537b00] [c00291a0] dma_set_mask+0x40/0xc0
  [ 2084.079728] [c00fee537b20] [d000143531e4] init_one+0x33c/0x6a0 
[mlx5_core]
  [ 2084.079732] [c00fee537bd0] [c066ba9c] 
local_pci_probe+0x6c/0x140
  [ 2084.079734] [c00fee537c60] [c01016b8] work_for_cpu_fn+0x38/0x60
  [ 2084.079737] [c00fee537c90] [c01061a0] 
process_one_work+0x2b0/0x5a0
  [ 2084.079740] [c00fee537d20] [c0106780] worker_thread+0x2f0/0x650
  [ 2084.079742] [c00fee537dc0] [c010f0a4] kthread+0x164/0x1b0
  [ 2084.079746] [c00fee537e30] [c000b4e8] 
ret_from_kernel_thread+0x5c/0x74
  [ 2084.079747] Instruction dump:
  [ 2084.079748] 7c0802a6 fbe1fff8 f8010010 f821ffd1 7c690074 7929d182 0b09 
2fa3
  [ 2084.079753] 419e0060 e8630330 7c690074 7929d182 <0b09> 2fa3 
419e0048 7c852378
  [ 2084.079759] ---[ end trace 7bf01a937efd69d8 ]---

  This issue was introduced by this  commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c3b89effc281704d5395282c800c45e453235f6
 (Subject: powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev )

  and the solution will be to add this commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=377aa6b0efbaa29cfeecd8b9244641217f9544ca

  which 

[Kernel-packages] [Bug 1702768] Re: Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

2017-07-11 Thread Joseph Salisbury
** Also affects: linux (Ubuntu Zesty)
   Importance: Undecided
   Status: New

** Changed in: linux (Ubuntu Zesty)
   Status: New => In Progress

** Changed in: linux (Ubuntu Zesty)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Zesty)
 Assignee: (unassigned) => Joseph Salisbury (jsalisbury)

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

Title:
  Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

Status in The Ubuntu-power-systems project:
  In Progress
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Zesty:
  In Progress

Bug description:
  ---Problem Description---
  When enabling SRIOV with kernel 4.10.0-26-generic in power will see this 
stack trace:
  [ 2084.079575] [ cut here ]
  [ 2084.079583] WARNING: CPU: 120 PID: 734 at 
/build/linux-TAhFXm/linux-4.10.0/arch/powerpc/platforms/powernv/npu-dma.c:78 
pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079584] Modules linked in: mst_pciconf(OE) mst_pci(OE) xt_CHECKSUM 
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 
nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT 
nf_reject_ipv4 xt_tcpudp kvm_hv kvm_pr kvm ebtable_filter ebtables 
ip6table_filter ip6_tables iptable_filter rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) 
ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) mlx4_ib(OE) binfmt_misc bridge stp llc 
ipmi_powernv ipmi_devintf ipmi_msghandler powernv_rng powernv_op_panel 
uio_pdrv_genirq leds_powernv uio ibmpowernv vmx_crypto sunrpc ib_iser(OE) 
rdma_cm(OE) iw_cm(OE) ib_cm(OE) ib_core(OE) configfs iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi knem(OE) ip_tables x_tables autofs4 btrfs raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
  [ 2084.079640]  xor raid6_pq libcrc32c raid1 raid0 multipath linear 
mlx4_en(OE) ses enclosure scsi_transport_sas crc32c_vpmsum tg3 mlx5_core(OE) 
mlx4_core(OE) ipr devlink mlx_compat(OE)
  [ 2084.079658] CPU: 120 PID: 734 Comm: kworker/120:0 Tainted: GW  OE  
 4.10.0-26-generic #30-Ubuntu
  [ 2084.079663] Workqueue: events work_for_cpu_fn
  [ 2084.079665] task: c00fee60dc00 task.stack: c00fee534000
  [ 2084.079666] NIP: c009c210 LR: c009d404 CTR: 

  [ 2084.079668] REGS: c00fee537700 TRAP: 0700   Tainted: GW  OE
(4.10.0-26-generic)
  [ 2084.079669] MSR: 9282b033 
  [ 2084.079677]   CR: 42004428  XER: 2000
  [ 2084.079678] CFAR: c009d400 SOFTE: 1
 GPR00: c009d404 c00fee537980 c145d100 

 GPR04:  0aa6 c01fff70 
00049188
 GPR08: 0007 0001 0001 

 GPR12: 2200 cfbc3800 c010ef48 
c00ff70ec540
 GPR16: c00ffa622c58 c00ffa622a10 c00ffa6229a0 
0001
 GPR20:  c1318de8 c0d700e8 
0001
 GPR24: c0d6f070 c0d6f050 c3d02000 
c3d02098
 GPR28: c00e92680060 081f  

  [ 2084.079702] NIP [c009c210] pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079704] LR [c009d404] pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079705] Call Trace:
  [ 2084.079708] [c00fee5379b0] [c009d404] 
pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079710] [c00fee537a80] [c0096c74] 
pnv_pci_ioda_dma_set_mask+0xa4/0x150
  [ 2084.079714] [c00fee537b00] [c00291a0] dma_set_mask+0x40/0xc0
  [ 2084.079728] [c00fee537b20] [d000143531e4] init_one+0x33c/0x6a0 
[mlx5_core]
  [ 2084.079732] [c00fee537bd0] [c066ba9c] 
local_pci_probe+0x6c/0x140
  [ 2084.079734] [c00fee537c60] [c01016b8] work_for_cpu_fn+0x38/0x60
  [ 2084.079737] [c00fee537c90] [c01061a0] 
process_one_work+0x2b0/0x5a0
  [ 2084.079740] [c00fee537d20] [c0106780] worker_thread+0x2f0/0x650
  [ 2084.079742] [c00fee537dc0] [c010f0a4] kthread+0x164/0x1b0
  [ 2084.079746] [c00fee537e30] [c000b4e8] 
ret_from_kernel_thread+0x5c/0x74
  [ 2084.079747] Instruction dump:
  [ 2084.079748] 7c0802a6 fbe1fff8 f8010010 f821ffd1 7c690074 7929d182 0b09 
2fa3
  [ 2084.079753] 419e0060 e8630330 7c690074 7929d182 <0b09> 2fa3 
419e0048 7c852378
  [ 2084.079759] ---[ end trace 7bf01a937efd69d8 ]---

  This issue was introduced by this  commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c3b89effc281704d5395282c800c45e453235f6
 (Subject: powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev )

  and the solution will be to 

[Kernel-packages] [Bug 1702768] Re: Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

2017-07-10 Thread Frank Heimes
** Changed in: ubuntu-power-systems
   Status: New => In Progress

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

Title:
  Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

Status in The Ubuntu-power-systems project:
  In Progress
Status in linux package in Ubuntu:
  In Progress

Bug description:
  ---Problem Description---
  When enabling SRIOV with kernel 4.10.0-26-generic in power will see this 
stack trace:
  [ 2084.079575] [ cut here ]
  [ 2084.079583] WARNING: CPU: 120 PID: 734 at 
/build/linux-TAhFXm/linux-4.10.0/arch/powerpc/platforms/powernv/npu-dma.c:78 
pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079584] Modules linked in: mst_pciconf(OE) mst_pci(OE) xt_CHECKSUM 
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 
nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT 
nf_reject_ipv4 xt_tcpudp kvm_hv kvm_pr kvm ebtable_filter ebtables 
ip6table_filter ip6_tables iptable_filter rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) 
ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) mlx4_ib(OE) binfmt_misc bridge stp llc 
ipmi_powernv ipmi_devintf ipmi_msghandler powernv_rng powernv_op_panel 
uio_pdrv_genirq leds_powernv uio ibmpowernv vmx_crypto sunrpc ib_iser(OE) 
rdma_cm(OE) iw_cm(OE) ib_cm(OE) ib_core(OE) configfs iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi knem(OE) ip_tables x_tables autofs4 btrfs raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
  [ 2084.079640]  xor raid6_pq libcrc32c raid1 raid0 multipath linear 
mlx4_en(OE) ses enclosure scsi_transport_sas crc32c_vpmsum tg3 mlx5_core(OE) 
mlx4_core(OE) ipr devlink mlx_compat(OE)
  [ 2084.079658] CPU: 120 PID: 734 Comm: kworker/120:0 Tainted: GW  OE  
 4.10.0-26-generic #30-Ubuntu
  [ 2084.079663] Workqueue: events work_for_cpu_fn
  [ 2084.079665] task: c00fee60dc00 task.stack: c00fee534000
  [ 2084.079666] NIP: c009c210 LR: c009d404 CTR: 

  [ 2084.079668] REGS: c00fee537700 TRAP: 0700   Tainted: GW  OE
(4.10.0-26-generic)
  [ 2084.079669] MSR: 9282b033 
  [ 2084.079677]   CR: 42004428  XER: 2000
  [ 2084.079678] CFAR: c009d400 SOFTE: 1
 GPR00: c009d404 c00fee537980 c145d100 

 GPR04:  0aa6 c01fff70 
00049188
 GPR08: 0007 0001 0001 

 GPR12: 2200 cfbc3800 c010ef48 
c00ff70ec540
 GPR16: c00ffa622c58 c00ffa622a10 c00ffa6229a0 
0001
 GPR20:  c1318de8 c0d700e8 
0001
 GPR24: c0d6f070 c0d6f050 c3d02000 
c3d02098
 GPR28: c00e92680060 081f  

  [ 2084.079702] NIP [c009c210] pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079704] LR [c009d404] pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079705] Call Trace:
  [ 2084.079708] [c00fee5379b0] [c009d404] 
pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079710] [c00fee537a80] [c0096c74] 
pnv_pci_ioda_dma_set_mask+0xa4/0x150
  [ 2084.079714] [c00fee537b00] [c00291a0] dma_set_mask+0x40/0xc0
  [ 2084.079728] [c00fee537b20] [d000143531e4] init_one+0x33c/0x6a0 
[mlx5_core]
  [ 2084.079732] [c00fee537bd0] [c066ba9c] 
local_pci_probe+0x6c/0x140
  [ 2084.079734] [c00fee537c60] [c01016b8] work_for_cpu_fn+0x38/0x60
  [ 2084.079737] [c00fee537c90] [c01061a0] 
process_one_work+0x2b0/0x5a0
  [ 2084.079740] [c00fee537d20] [c0106780] worker_thread+0x2f0/0x650
  [ 2084.079742] [c00fee537dc0] [c010f0a4] kthread+0x164/0x1b0
  [ 2084.079746] [c00fee537e30] [c000b4e8] 
ret_from_kernel_thread+0x5c/0x74
  [ 2084.079747] Instruction dump:
  [ 2084.079748] 7c0802a6 fbe1fff8 f8010010 f821ffd1 7c690074 7929d182 0b09 
2fa3
  [ 2084.079753] 419e0060 e8630330 7c690074 7929d182 <0b09> 2fa3 
419e0048 7c852378
  [ 2084.079759] ---[ end trace 7bf01a937efd69d8 ]---

  This issue was introduced by this  commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c3b89effc281704d5395282c800c45e453235f6
 (Subject: powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev )

  and the solution will be to add this commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=377aa6b0efbaa29cfeecd8b9244641217f9544ca

  which reads: "powerpc/npu-dma: Remove spurious WARN_ON when a PCI device has 
no of_node"
   
  Requesting fix inclusion in 17.04 and probably 16.04.3.

  ---uname 

[Kernel-packages] [Bug 1702768] Re: Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

2017-07-10 Thread Joseph Salisbury
I built a test kernel with a pick of commit 377aa6b0efba.  The test
kernel can be downloaded from:

http://kernel.ubuntu.com/~jsalisbury/lp1702768/

Can you test this kernel and see if it resolves this bug?

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

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

** Changed in: linux (Ubuntu)
 Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) => 
Joseph Salisbury (jsalisbury)

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

Title:
  Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

Status in The Ubuntu-power-systems project:
  New
Status in linux package in Ubuntu:
  In Progress

Bug description:
  ---Problem Description---
  When enabling SRIOV with kernel 4.10.0-26-generic in power will see this 
stack trace:
  [ 2084.079575] [ cut here ]
  [ 2084.079583] WARNING: CPU: 120 PID: 734 at 
/build/linux-TAhFXm/linux-4.10.0/arch/powerpc/platforms/powernv/npu-dma.c:78 
pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079584] Modules linked in: mst_pciconf(OE) mst_pci(OE) xt_CHECKSUM 
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 
nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT 
nf_reject_ipv4 xt_tcpudp kvm_hv kvm_pr kvm ebtable_filter ebtables 
ip6table_filter ip6_tables iptable_filter rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) 
ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) mlx4_ib(OE) binfmt_misc bridge stp llc 
ipmi_powernv ipmi_devintf ipmi_msghandler powernv_rng powernv_op_panel 
uio_pdrv_genirq leds_powernv uio ibmpowernv vmx_crypto sunrpc ib_iser(OE) 
rdma_cm(OE) iw_cm(OE) ib_cm(OE) ib_core(OE) configfs iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi knem(OE) ip_tables x_tables autofs4 btrfs raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
  [ 2084.079640]  xor raid6_pq libcrc32c raid1 raid0 multipath linear 
mlx4_en(OE) ses enclosure scsi_transport_sas crc32c_vpmsum tg3 mlx5_core(OE) 
mlx4_core(OE) ipr devlink mlx_compat(OE)
  [ 2084.079658] CPU: 120 PID: 734 Comm: kworker/120:0 Tainted: GW  OE  
 4.10.0-26-generic #30-Ubuntu
  [ 2084.079663] Workqueue: events work_for_cpu_fn
  [ 2084.079665] task: c00fee60dc00 task.stack: c00fee534000
  [ 2084.079666] NIP: c009c210 LR: c009d404 CTR: 

  [ 2084.079668] REGS: c00fee537700 TRAP: 0700   Tainted: GW  OE
(4.10.0-26-generic)
  [ 2084.079669] MSR: 9282b033 
  [ 2084.079677]   CR: 42004428  XER: 2000
  [ 2084.079678] CFAR: c009d400 SOFTE: 1
 GPR00: c009d404 c00fee537980 c145d100 

 GPR04:  0aa6 c01fff70 
00049188
 GPR08: 0007 0001 0001 

 GPR12: 2200 cfbc3800 c010ef48 
c00ff70ec540
 GPR16: c00ffa622c58 c00ffa622a10 c00ffa6229a0 
0001
 GPR20:  c1318de8 c0d700e8 
0001
 GPR24: c0d6f070 c0d6f050 c3d02000 
c3d02098
 GPR28: c00e92680060 081f  

  [ 2084.079702] NIP [c009c210] pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079704] LR [c009d404] pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079705] Call Trace:
  [ 2084.079708] [c00fee5379b0] [c009d404] 
pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079710] [c00fee537a80] [c0096c74] 
pnv_pci_ioda_dma_set_mask+0xa4/0x150
  [ 2084.079714] [c00fee537b00] [c00291a0] dma_set_mask+0x40/0xc0
  [ 2084.079728] [c00fee537b20] [d000143531e4] init_one+0x33c/0x6a0 
[mlx5_core]
  [ 2084.079732] [c00fee537bd0] [c066ba9c] 
local_pci_probe+0x6c/0x140
  [ 2084.079734] [c00fee537c60] [c01016b8] work_for_cpu_fn+0x38/0x60
  [ 2084.079737] [c00fee537c90] [c01061a0] 
process_one_work+0x2b0/0x5a0
  [ 2084.079740] [c00fee537d20] [c0106780] worker_thread+0x2f0/0x650
  [ 2084.079742] [c00fee537dc0] [c010f0a4] kthread+0x164/0x1b0
  [ 2084.079746] [c00fee537e30] [c000b4e8] 
ret_from_kernel_thread+0x5c/0x74
  [ 2084.079747] Instruction dump:
  [ 2084.079748] 7c0802a6 fbe1fff8 f8010010 f821ffd1 7c690074 7929d182 0b09 
2fa3
  [ 2084.079753] 419e0060 e8630330 7c690074 7929d182 <0b09> 2fa3 
419e0048 7c852378
  [ 2084.079759] ---[ end trace 7bf01a937efd69d8 ]---

  This issue was introduced by this  commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c3b89effc281704d5395282c800c45e453235f6
 (Subject: 

[Kernel-packages] [Bug 1702768] Re: Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

2017-07-10 Thread Joseph Salisbury
** 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/1702768

Title:
  Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

Status in The Ubuntu-power-systems project:
  New
Status in linux package in Ubuntu:
  New

Bug description:
  ---Problem Description---
  When enabling SRIOV with kernel 4.10.0-26-generic in power will see this 
stack trace:
  [ 2084.079575] [ cut here ]
  [ 2084.079583] WARNING: CPU: 120 PID: 734 at 
/build/linux-TAhFXm/linux-4.10.0/arch/powerpc/platforms/powernv/npu-dma.c:78 
pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079584] Modules linked in: mst_pciconf(OE) mst_pci(OE) xt_CHECKSUM 
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 
nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT 
nf_reject_ipv4 xt_tcpudp kvm_hv kvm_pr kvm ebtable_filter ebtables 
ip6table_filter ip6_tables iptable_filter rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) 
ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) mlx4_ib(OE) binfmt_misc bridge stp llc 
ipmi_powernv ipmi_devintf ipmi_msghandler powernv_rng powernv_op_panel 
uio_pdrv_genirq leds_powernv uio ibmpowernv vmx_crypto sunrpc ib_iser(OE) 
rdma_cm(OE) iw_cm(OE) ib_cm(OE) ib_core(OE) configfs iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi knem(OE) ip_tables x_tables autofs4 btrfs raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
  [ 2084.079640]  xor raid6_pq libcrc32c raid1 raid0 multipath linear 
mlx4_en(OE) ses enclosure scsi_transport_sas crc32c_vpmsum tg3 mlx5_core(OE) 
mlx4_core(OE) ipr devlink mlx_compat(OE)
  [ 2084.079658] CPU: 120 PID: 734 Comm: kworker/120:0 Tainted: GW  OE  
 4.10.0-26-generic #30-Ubuntu
  [ 2084.079663] Workqueue: events work_for_cpu_fn
  [ 2084.079665] task: c00fee60dc00 task.stack: c00fee534000
  [ 2084.079666] NIP: c009c210 LR: c009d404 CTR: 

  [ 2084.079668] REGS: c00fee537700 TRAP: 0700   Tainted: GW  OE
(4.10.0-26-generic)
  [ 2084.079669] MSR: 9282b033 
  [ 2084.079677]   CR: 42004428  XER: 2000
  [ 2084.079678] CFAR: c009d400 SOFTE: 1
 GPR00: c009d404 c00fee537980 c145d100 

 GPR04:  0aa6 c01fff70 
00049188
 GPR08: 0007 0001 0001 

 GPR12: 2200 cfbc3800 c010ef48 
c00ff70ec540
 GPR16: c00ffa622c58 c00ffa622a10 c00ffa6229a0 
0001
 GPR20:  c1318de8 c0d700e8 
0001
 GPR24: c0d6f070 c0d6f050 c3d02000 
c3d02098
 GPR28: c00e92680060 081f  

  [ 2084.079702] NIP [c009c210] pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079704] LR [c009d404] pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079705] Call Trace:
  [ 2084.079708] [c00fee5379b0] [c009d404] 
pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079710] [c00fee537a80] [c0096c74] 
pnv_pci_ioda_dma_set_mask+0xa4/0x150
  [ 2084.079714] [c00fee537b00] [c00291a0] dma_set_mask+0x40/0xc0
  [ 2084.079728] [c00fee537b20] [d000143531e4] init_one+0x33c/0x6a0 
[mlx5_core]
  [ 2084.079732] [c00fee537bd0] [c066ba9c] 
local_pci_probe+0x6c/0x140
  [ 2084.079734] [c00fee537c60] [c01016b8] work_for_cpu_fn+0x38/0x60
  [ 2084.079737] [c00fee537c90] [c01061a0] 
process_one_work+0x2b0/0x5a0
  [ 2084.079740] [c00fee537d20] [c0106780] worker_thread+0x2f0/0x650
  [ 2084.079742] [c00fee537dc0] [c010f0a4] kthread+0x164/0x1b0
  [ 2084.079746] [c00fee537e30] [c000b4e8] 
ret_from_kernel_thread+0x5c/0x74
  [ 2084.079747] Instruction dump:
  [ 2084.079748] 7c0802a6 fbe1fff8 f8010010 f821ffd1 7c690074 7929d182 0b09 
2fa3
  [ 2084.079753] 419e0060 e8630330 7c690074 7929d182 <0b09> 2fa3 
419e0048 7c852378
  [ 2084.079759] ---[ end trace 7bf01a937efd69d8 ]---

  This issue was introduced by this  commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c3b89effc281704d5395282c800c45e453235f6
 (Subject: powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev )

  and the solution will be to add this commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=377aa6b0efbaa29cfeecd8b9244641217f9544ca

  which reads: "powerpc/npu-dma: Remove spurious WARN_ON when a PCI device has 
no of_node"
   
  Requesting fix inclusion in 17.04 and probably 16.04.3.

  ---uname output---
  4.10.0-26-generic #30-Ubuntu SMP Tue Jun 27 

[Kernel-packages] [Bug 1702768] Re: Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

2017-07-07 Thread Frank Heimes
** Also affects: ubuntu-power-systems
   Importance: Undecided
   Status: New

** Changed in: ubuntu-power-systems
 Assignee: (unassigned) => Canonical Kernel Team (canonical-kernel-team)

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

Title:
  Ubuntu 17.04 KVM: stack trace generated when enabling SRIOV in power

Status in The Ubuntu-power-systems project:
  New
Status in linux package in Ubuntu:
  New

Bug description:
  ---Problem Description---
  When enabling SRIOV with kernel 4.10.0-26-generic in power will see this 
stack trace:
  [ 2084.079575] [ cut here ]
  [ 2084.079583] WARNING: CPU: 120 PID: 734 at 
/build/linux-TAhFXm/linux-4.10.0/arch/powerpc/platforms/powernv/npu-dma.c:78 
pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079584] Modules linked in: mst_pciconf(OE) mst_pci(OE) xt_CHECKSUM 
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 
nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT 
nf_reject_ipv4 xt_tcpudp kvm_hv kvm_pr kvm ebtable_filter ebtables 
ip6table_filter ip6_tables iptable_filter rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) 
ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) mlx4_ib(OE) binfmt_misc bridge stp llc 
ipmi_powernv ipmi_devintf ipmi_msghandler powernv_rng powernv_op_panel 
uio_pdrv_genirq leds_powernv uio ibmpowernv vmx_crypto sunrpc ib_iser(OE) 
rdma_cm(OE) iw_cm(OE) ib_cm(OE) ib_core(OE) configfs iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi knem(OE) ip_tables x_tables autofs4 btrfs raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
  [ 2084.079640]  xor raid6_pq libcrc32c raid1 raid0 multipath linear 
mlx4_en(OE) ses enclosure scsi_transport_sas crc32c_vpmsum tg3 mlx5_core(OE) 
mlx4_core(OE) ipr devlink mlx_compat(OE)
  [ 2084.079658] CPU: 120 PID: 734 Comm: kworker/120:0 Tainted: GW  OE  
 4.10.0-26-generic #30-Ubuntu
  [ 2084.079663] Workqueue: events work_for_cpu_fn
  [ 2084.079665] task: c00fee60dc00 task.stack: c00fee534000
  [ 2084.079666] NIP: c009c210 LR: c009d404 CTR: 

  [ 2084.079668] REGS: c00fee537700 TRAP: 0700   Tainted: GW  OE
(4.10.0-26-generic)
  [ 2084.079669] MSR: 9282b033 
  [ 2084.079677]   CR: 42004428  XER: 2000
  [ 2084.079678] CFAR: c009d400 SOFTE: 1
 GPR00: c009d404 c00fee537980 c145d100 

 GPR04:  0aa6 c01fff70 
00049188
 GPR08: 0007 0001 0001 

 GPR12: 2200 cfbc3800 c010ef48 
c00ff70ec540
 GPR16: c00ffa622c58 c00ffa622a10 c00ffa6229a0 
0001
 GPR20:  c1318de8 c0d700e8 
0001
 GPR24: c0d6f070 c0d6f050 c3d02000 
c3d02098
 GPR28: c00e92680060 081f  

  [ 2084.079702] NIP [c009c210] pnv_pci_get_npu_dev+0x40/0xb0
  [ 2084.079704] LR [c009d404] pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079705] Call Trace:
  [ 2084.079708] [c00fee5379b0] [c009d404] 
pnv_npu_try_dma_set_bypass+0x144/0x250
  [ 2084.079710] [c00fee537a80] [c0096c74] 
pnv_pci_ioda_dma_set_mask+0xa4/0x150
  [ 2084.079714] [c00fee537b00] [c00291a0] dma_set_mask+0x40/0xc0
  [ 2084.079728] [c00fee537b20] [d000143531e4] init_one+0x33c/0x6a0 
[mlx5_core]
  [ 2084.079732] [c00fee537bd0] [c066ba9c] 
local_pci_probe+0x6c/0x140
  [ 2084.079734] [c00fee537c60] [c01016b8] work_for_cpu_fn+0x38/0x60
  [ 2084.079737] [c00fee537c90] [c01061a0] 
process_one_work+0x2b0/0x5a0
  [ 2084.079740] [c00fee537d20] [c0106780] worker_thread+0x2f0/0x650
  [ 2084.079742] [c00fee537dc0] [c010f0a4] kthread+0x164/0x1b0
  [ 2084.079746] [c00fee537e30] [c000b4e8] 
ret_from_kernel_thread+0x5c/0x74
  [ 2084.079747] Instruction dump:
  [ 2084.079748] 7c0802a6 fbe1fff8 f8010010 f821ffd1 7c690074 7929d182 0b09 
2fa3
  [ 2084.079753] 419e0060 e8630330 7c690074 7929d182 <0b09> 2fa3 
419e0048 7c852378
  [ 2084.079759] ---[ end trace 7bf01a937efd69d8 ]---

  This issue was introduced by this  commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c3b89effc281704d5395282c800c45e453235f6
 (Subject: powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev )

  and the solution will be to add this commit:
  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=377aa6b0efbaa29cfeecd8b9244641217f9544ca

  which reads: "powerpc/npu-dma: Remove spurious WARN_ON