[Kernel-packages] [Bug 1702768] Comment bridged from LTC Bugzilla

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

--- Comment From lagar...@br.ibm.com 2017-11-21 12:48 EDT---
Joseph,

Has this been released already?

-- 
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: "p

[Kernel-packages] [Bug 1702768] Comment bridged from LTC Bugzilla

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

--- Comment From lagar...@br.ibm.com 2017-11-21 12:51 EDT---
Hi Joseph,

Sorry, I just saw that the latest comments never reached IBM Bugzilla.
Closing this one from IBM side as well. Thanks!

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

[Kernel-packages] [Bug 1702768] Comment bridged from LTC Bugzilla

2017-07-10 Thread bugproxy
--- Comment From cls...@us.ibm.com 2017-07-10 15:54 EDT---
(In reply to comment #5)
> 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?

I tried this kernel and it is ok.
[  128.224664] (0004:01:00.0): E-Switch: E-Switch enable SRIOV: nvfs(1) mode (1)
[  128.234634] (0004:01:00.0): E-Switch: SRIOV enabled: active vports(2)
[  128.234818] mlx5_core 0004:01:00.0: VF BAR0: [mem 
0x2400-0x2401 64bit pref] shifted to [mem 
0x2400-0x2401 64bit pref] (Disabling 1 VFs shifted by 0)
[  128.234836] pci 0004:01: 0.2: [PE# 00] VF 0004:01:00.2 associated with PE#0
[  128.235086] pci 0004:01: 0.2: [PE# 00] Setting up 32-bit TCE table at 
0..8000
[  128.238861] pci 0004:01: 0.2: [PE# 00] Setting up window#0 0..7fff 
pg=1000
[  128.238972] pci 0004:01: 0.2: [PE# 00] Enabling 64-bit DMA bypass
[  128.344614] pci 0004:01:00.2: [15b3:1014] type 00 class 0x02
[  128.344942] pci 0004:01:00.2: Max Payload Size set to 512 (was 128, max 512)
[  128.345403] iommu: Adding device 0004:01:00.2 to group 6
[  128.345871] mlx5_core 0004:01:00.2: enabling device ( -> 0002)
[  128.345907] mlx5_core 0004:01:00.2: Using 64-bit DMA iommu bypass
[  128.346076] mlx5_core 0004:01:00.2: firmware version: 12.20.1010
[  128.902589] mlx5_core 0004:01:00.2: MLX5E: StrdRq(0) RqSz(1024) StrdSz(1) 
RxCqeCmprss(0)
[  128.903017] mlx5_core 0004:01:00.2: Assigned random MAC address 
2a:fc:b7:49:03:1b
[  129.007113] mlx5_core 0004:01:00.2 enP4p1s0f2: renamed from eth0
[  129.015731] mlx5_ib: Mellanox Connect-IB Infiniband driver v2.2-1 (Feb 2014)

uname -a
4.10.0-26-generic #30~lp1702768 SMP Mon Jul 10 18:37:50 UTC 2017 ppc64le 
ppc64le ppc64le GNU/Linux

-- 
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_bypas

[Kernel-packages] [Bug 1702768] Comment bridged from LTC Bugzilla

2017-08-04 Thread bugproxy
*** This bug is a duplicate of bug 1701272 ***
https://bugs.launchpad.net/bugs/1701272

--- Comment From lagar...@br.ibm.com 2017-08-04 21:34 EDT---
jsalisbury,

This one might also apply to Ubuntu 16.04.3 as well.

-- 
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=377aa6b0efbaa29cfeecd8b9244641217f

[Kernel-packages] [Bug 1702768] Comment bridged from LTC Bugzilla

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

--- Comment From lagar...@br.ibm.com 2017-09-14 08:47 EDT---
Joseph,

Any updates on this one? At this point in time I am not even sure it is
worthwhile to provide a fix for Ubuntu 17.04. We should target Ubuntu
17.10 probably.

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