arm64: snapdragon: WARNING: CPU: 0 PID: 1 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate

Bug #1797143 reported by Paolo Pisati
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Cosmic
Fix Released
Undecided
Unassigned

Bug Description

Impact:

During boot on a Dragonboard410c using a recent Cosmic kernel:

...
[ 0.071535] WARNING: CPU: 0 PID: 1 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xe4/0xf0
[ 0.071541] Modules linked in:
[ 0.071552] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.18.0-8-snapdragon #9
[ 0.071558] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 0.071566] pstate: 60400005 (nZCv daif +PAN -UAO)
[ 0.071575] pc : gic_irq_domain_translate+0xe4/0xf0
[ 0.071582] lr : gic_irq_domain_alloc+0x58/0xc0
[ 0.071588] sp : ffff0000080337d0
[ 0.071594] x29: ffff0000080337d0 x28: 0000000000000000
[ 0.071604] x27: ffff000008033938 x26: 0000000000000001
[ 0.071615] x25: 00000000006080c0 x24: ffff000009a6ef70
[ 0.071625] x23: ffff000009a48708 x22: 0000000000000025
[ 0.071636] x21: ffff00000803384c x20: ffff000008033850
[ 0.071647] x19: ffff000008033938 x18: 0000000000000001
[ 0.071658] x17: 0000000000000000 x16: 0000000000000000
[ 0.071668] x15: ffffffffffffffff x14: ffff000009a48708
[ 0.071679] x13: ffff80003a4c2703 x12: 0000000000000038
[ 0.071690] x11: 0101010101010101 x10: 0000000000000040
[ 0.071700] x9 : ffff000009a6e9d8 x8 : ffff80003b0016f8
[ 0.071710] x7 : 0000000000000000 x6 : ffff80003b0016d0
[ 0.071721] x5 : ffff80003b001820 x4 : ffff00000857b4f8
[ 0.071731] x3 : ffff00000803384c x2 : 0000000000000000
[ 0.071741] x1 : 0000000000000057 x0 : 0000000000000000
[ 0.071751] Call trace:
[ 0.071759] gic_irq_domain_translate+0xe4/0xf0
[ 0.071767] gic_irq_domain_alloc+0x58/0xc0
[ 0.071777] __irq_domain_alloc_irqs+0x150/0x338
[ 0.071786] irq_create_fwspec_mapping+0x118/0x318
[ 0.071794] irq_create_of_mapping+0x7c/0xa8
[ 0.071803] of_irq_get+0x88/0xe0
[ 0.071812] of_irq_to_resource+0x48/0x108
[ 0.071821] of_irq_to_resource_table+0x54/0x70
[ 0.071829] of_device_alloc+0x110/0x1e0
[ 0.071837] of_platform_device_create_pdata+0x60/0xe0
[ 0.071846] of_platform_bus_create+0x2bc/0x4b0
[ 0.071854] of_platform_bus_create+0x31c/0x4b0
[ 0.071862] of_platform_populate+0x8c/0x140
[ 0.071872] of_platform_default_populate_init+0xb4/0xd0
[ 0.071880] do_one_initcall+0x54/0x1e0
[ 0.071890] kernel_init_freeable+0x254/0x2f8
[ 0.071898] kernel_init+0x18/0x110
[ 0.071907] ret_from_fork+0x10/0x18
[ 0.071913] ---[ end trace dc768b294fafe4b4 ]---
...

remove the usage of IRQ_TYPE_NONE to fix loud warnings from
patch (83a86fbb5b56b "irqchip/gic: Loudly complain about
the use of IRQ_TYPE_NONE").

The same was done in commit 242579dd0829 ("arm64: dts: msm8996: fix gic_irq_domain_translate warnings") and commit c16e78b8e862("arm64: dts: msm8916: fix gic_irq_domain_translate warnings") upstream, so fix the same issue in our forward-ported Qualcomm BSP code.

Fix:

Apply the attached patch and recompile

How to test:

Boot the patched kernel and check for the above WARNING in dmesg

Regression potential:

None, it's mechanical modification to silence a WARNING

CVE References

Revision history for this message
Paolo Pisati (p-pisati) wrote :
Changed in linux (Ubuntu):
status: New → Invalid
status: Invalid → Confirmed
Revision history for this message
Paolo Pisati (p-pisati) wrote :

Ignore the above patch, this is the patch with the correct buglink.

tags: added: patch
Stefan Bader (smb)
Changed in linux (Ubuntu Cosmic):
status: Confirmed → Fix Committed
Revision history for this message
Brad Figg (brad-figg) wrote :

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-cosmic' to 'verification-done-cosmic'. If the problem still exists, change the tag 'verification-needed-cosmic' to 'verification-failed-cosmic'.

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-cosmic
Paolo Pisati (p-pisati)
tags: added: verification-done-cosmic
removed: verification-needed-cosmic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 4.18.0-11.12

---------------
linux (4.18.0-11.12) cosmic; urgency=medium

  * linux: 4.18.0-11.12 -proposed tracker (LP: #1799445)

  * arm64: snapdragon: WARNING: CPU: 0 PID: 1 arch/arm64/kernel/setup.c:271
    reserve_memblock_reserved_regions (LP: #1797139)
    - SAUCE: arm64: Fix /proc/iomem for reserved but not memory regions

  * arm64: snapdragon: WARNING: CPU: 0 PID: 1 at drivers/irqchip/irq-gic.c:1016
    gic_irq_domain_translate (LP: #1797143)
    - SAUCE: arm64: dts: msm8916: camms: fix gic_irq_domain_translate warnings

  * The front MIC can't work on the Lenovo M715 (LP: #1797292)
    - ALSA: hda/realtek - Fix the problem of the front MIC on the Lenovo M715

  * Provide mode where all vCPUs on a core must be the same VM (LP: #1792957)
    - KVM: PPC: Book3S HV: Provide mode where all vCPUs on a core must be the same
      VM

  * fscache: bad refcounting in fscache_op_complete leads to OOPS (LP: #1797314)
    - SAUCE: fscache: Fix race in decrementing refcount of op->npages

  * hns3: autoneg settings get lost on down/up (LP: #1797654)
    - net: hns3: Fix for information of phydev lost problem when down/up

  * not able to unwind the stack from within __kernel_clock_gettime in the Linux
    vDSO (LP: #1797963)
    - powerpc/vdso: Correct call frame information

  * Signal 7 error when running GPFS tracing in cluster (LP: #1792195)
    - powerpc/mm/books3s: Add new pte bit to mark pte temporarily invalid.
    - powerpc/mm/radix: Only need the Nest MMU workaround for R -> RW transition

  * Support Edge Gateway's WIFI LED (LP: #1798330)
    - SAUCE: mwifiex: Switch WiFi LED state according to the device status

  * Support Edge Gateway's Bluetooth LED (LP: #1798332)
    - SAUCE: Bluetooth: Support for LED on Edge Gateways

  * kvm doesn't work on 36 physical bits systems (LP: #1798427)
    - KVM: x86: fix L1TF's MMIO GFN calculation

  * CVE-2018-15471
    - xen-netback: fix input validation in xenvif_set_hash_mapping()

  * regression in 'ip --family bridge neigh' since linux v4.12 (LP: #1796748)
    - rtnetlink: fix rtnl_fdb_dump() for ndmsg header

 -- Stefan Bader <email address hidden> Tue, 23 Oct 2018 18:59:15 +0200

Changed in linux (Ubuntu Cosmic):
status: Fix Committed → Fix Released
Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Brad Figg (brad-figg) wrote :

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
Andy Whitcroft (apw)
tags: added: kernel-fixup-verification-needed-bionic
removed: verification-needed-bionic
Brad Figg (brad-figg)
tags: added: verification-needed-bionic
Revision history for this message
Andy Whitcroft (apw) wrote :

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
Brad Figg (brad-figg)
tags: added: cscc
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.