Bug 112701 - WARNING on resume from suspend
Summary: WARNING on resume from suspend
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Bluetooth (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: linux-bluetooth@vger.kernel.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-20 15:07 UTC by Orion Poplawski
Modified: 2016-03-19 17:05 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.4.2
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Test Patch (795 bytes, patch)
2016-03-19 06:06 UTC, nickkrause
Details | Diff

Description Orion Poplawski 2016-02-20 15:07:36 UTC
On wakeup from suspend I get:

[80122.355127] Bluetooth: hci0: BCM: chip id 110
[80122.371116] Bluetooth: hci0: BCM4350C5
[80122.372119] Bluetooth: hci0: BCM (003.006.007) build 0000
[80122.372125] ------------[ cut here ]------------
[80122.372136] WARNING: CPU: 3 PID: 1941 at drivers/base/firmware_class.c:1147 _request_firmware+0xa74/0xaa0()
[80122.372186] Modules linked in: 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 tun ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter bnep hid_multitouch snd_hda_codec_hdmi x86_pkg_temp_thermal intel_powerclamp dell_led coretemp kvm_intel vfat fat kvm irqbypass crct10dif_pclmul i2c_designware_platform crc32_pclmul i2c_designware_core snd_hda_codec_realtek snd_hda_codec_generic dell_wmi sparse_keymap aesni_intel dell_laptop lrw gf128mul dcdbas glue_helper ablk_helper cryptd snd_hda_intel snd_hda_codec brcmfmac snd_hda_core snd_hwdep snd_seq brcmutil snd_seq_device cfg80211 rtsx_pci_ms snd_pcm memstick uvcvideo joydev input_leds videobuf2_vmalloc pcspkr
[80122.372236]  videobuf2_memops videobuf2_v4l2 snd_timer sg videobuf2_core v4l2_common snd btusb btrtl videodev i2c_i801 soundcore mei_me processor_thermal_device idma64 virt_dma intel_soc_dts_iosf iosf_mbi mei shpchp hci_uart intel_lpss_pci btbcm btqca wmi btintel bluetooth intel_lpss_acpi int3403_thermal intel_lpss int340x_thermal_zone rfkill int3400_thermal acpi_thermal_rel acpi_pad acpi_als kfifo_buf industrialio binfmt_misc nfsd nfs_acl lockd auth_rpcgss grace sunrpc ip_tables xfs libcrc32c sd_mod rtsx_pci_sdmmc mmc_core crc32c_intel serio_raw i915 i2c_algo_bit ahci libahci rtsx_pci drm_kms_helper mfd_core syscopyarea sysfillrect sysimgblt fb_sys_fops libata drm i2c_hid video fjes
[80122.372240] CPU: 3 PID: 1941 Comm: kworker/u9:0 Not tainted 4.4.2-1.el7.elrepo.x86_64 #1
[80122.372242] Hardware name: Dell Inc. XPS 13 9350/0YT4WT, BIOS 1.2.3 01/08/2016
[80122.372263] Workqueue: hci0 hci_power_on [bluetooth]
[80122.372268]  0000000000000000 0000000085d9646b ffff8801284f3be8 ffffffff81327ae0
[80122.372271]  0000000000000000 ffff8801284f3c20 ffffffff8107c816 ffff8801284f3d08
[80122.372274]  00000000fffffff5 ffff880179a867c0 ffff88017b440840 0000000000000000
[80122.372275] Call Trace:
[80122.372283]  [<ffffffff81327ae0>] dump_stack+0x44/0x64
[80122.372289]  [<ffffffff8107c816>] warn_slowpath_common+0x86/0xc0
[80122.372294]  [<ffffffff8107c95a>] warn_slowpath_null+0x1a/0x20
[80122.372299]  [<ffffffff81481854>] _request_firmware+0xa74/0xaa0
[80122.372341]  [<ffffffff814818b1>] request_firmware+0x31/0x50
[80122.372345]  [<ffffffffa02b4af2>] btbcm_setup_patchram+0x252/0x760 [btbcm]
[80122.372350]  [<ffffffff814d1b00>] ? usb_autopm_put_interface+0x30/0x40
[80122.372365]  [<ffffffffa04fd0cb>] hci_dev_do_open+0x3fb/0x540 [bluetooth]
[80122.372371]  [<ffffffff810a640d>] ? ttwu_do_activate.constprop.87+0x5d/0x70
[80122.372386]  [<ffffffffa04ffa20>] hci_power_on+0x40/0x1d0 [bluetooth]
[80122.372390]  [<ffffffff810e6464>] ? lock_timer_base.isra.33+0x54/0x70
[80122.372396]  [<ffffffff810945fc>] process_one_work+0x14c/0x3c0
[80122.372400]  [<ffffffff81094e34>] worker_thread+0x114/0x470
[80122.372405]  [<ffffffff81094d20>] ? rescuer_thread+0x310/0x310
[80122.372408]  [<ffffffff8109a938>] kthread+0xd8/0xf0
[80122.372412]  [<ffffffff8109a860>] ? kthread_park+0x60/0x60
[80122.372415]  [<ffffffff816e4d0f>] ret_from_fork+0x3f/0x70
[80122.372418]  [<ffffffff8109a860>] ? kthread_park+0x60/0x60
[80122.372421] ---[ end trace 63efb974c041a34d ]---
[80122.372425] bluetooth hci0: firmware: brcm/BCM-0a5c-6412.hcd will not be loaded
[80122.372429] Bluetooth: hci0: BCM: Patch brcm/BCM-0a5c-6412.hcd not found
[80122.430198] Restarting tasks ... done.

# ls -l /lib/firmware/brcm/BCM-0a5c-6412.hcd
-rw-rw-r--. 1 root root 7477 Feb 17 07:58 /lib/firmware/brcm/BCM-0a5c-6412.hcd

created with:

7z x 9350_Network_Driver_XMJK7_WN32_12.0.1.720_A00.EXE
./hex2hcd/hex2hcd Win32/BCM4350C5_003.006.007.0095.1703.hex BCM-0a5c-6412.hcd
Comment 1 nickkrause 2016-03-19 06:06:53 UTC
Created attachment 209821 [details]
Test Patch
Comment 2 nickkrause 2016-03-19 06:06:59 UTC
Seems it's either a NULL pointer deference and this may fix the issue.

Note You need to log in before you can comment on or make changes to this bug.