[Bug 215890] New: Regression in 5.18: bcm5974 trackpad causes error: xhci_hcd rejecting DMA map of vmalloc memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=215890

            Bug ID: 215890
           Summary: Regression in 5.18: bcm5974 trackpad causes error:
                    xhci_hcd rejecting DMA map of vmalloc memory
           Product: Drivers
           Version: 2.5
    Kernel Version: 5.18-rc4
          Hardware: Intel
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: USB
          Assignee: drivers_usb@xxxxxxxxxxxxxxxxxxxxxx
          Reporter: satadru@xxxxxxxxx
        Regression: No

The Apple BCM5974 trackpad & keyboard show up in sudo libinput list-devices
when booted into 5.17.4.

In 5.18-rc4, the keyboard works, but the trackpad does not. libinput
list-devices shows the keyboard, but not the trackpad.

This error shows up in dmesg:

[    7.144632] ------------[ cut here ]------------
[    7.144635] xhci_hcd 0000:00:14.0: rejecting DMA map of vmalloc memory
[    7.144648] WARNING: CPU: 6 PID: 969 at include/linux/dma-mapping.h:326
usb_hcd_map_urb_for_dma+0x4c0/0x4f0
[    7.144656] Modules linked in: mei_hdcp x86_pkg_temp_thermal
intel_powerclamp snd_hda_codec_cirrus snd_hda_codec_generic ledtrig_audio
snd_hda_codec_hdmi btusb btrtl wl(POE) kvm_intel btbcm snd_seq_midi
snd_hda_intel btintel snd_seq_midi_event btmtk kvm bluetooth snd_intel_dspcfg
snd_intel_sdw_acpi rapl applesmc snd_rawmidi ecdh_generic snd_hda_codec
intel_cstate ecc joydev mei_me bcm5974 snd_hda_core input_leds cfg80211
efi_pstore(+) snd_hwdep apple_mfi_fastcharge snd_seq snd_pcm mei snd_seq_device
snd_timer snd sbs(+) soundcore acpi_als industrialio_triggered_buffer sbshc
kfifo_buf apple_gmux industrialio mac_hid apple_bl facetimehd(OE)
videobuf2_dma_sg videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc
coretemp ipmi_devintf ipmi_msghandler msr parport_pc ppdev lp parport ip_tables
x_tables autofs4 zfs(POE) zunicode(POE) zzstd(OE) zlua(OE) zavl(POE) icp(POE)
zcommon(POE) znvpair(POE) spl(OE) z3fold lz4 lz4_compress hid_logitech_hidpp
hid_apple hid_logitech_dj hid_generic
[    7.144716]  usbhid hid i915 nouveau mxm_wmi wmi drm_buddy i2c_algo_bit
drm_ttm_helper ttm drm_dp_helper cec rc_core drm_kms_helper uas syscopyarea
usb_storage sysfillrect crct10dif_pclmul crc32_pclmul ghash_clmulni_intel
sysimgblt fb_sys_fops aesni_intel nvme crypto_simd i2c_i801 cryptd drm
nvme_core thunderbolt lpc_ich i2c_smbus xhci_pci xhci_pci_renesas video
[    7.144742] CPU: 6 PID: 969 Comm: systemd-udevd Tainted: P           OE    
5.18.0-rc4 #1
[    7.144745] Hardware name: Apple Inc. MacBookPro11,3/Mac-2BD1B31983FE1663,
BIOS 432.60.3.0.0 10/27/2021
[    7.144746] RIP: 0010:usb_hcd_map_urb_for_dma+0x4c0/0x4f0
[    7.144752] Code: 50 c6 05 dd fd 8a 01 01 4d 85 f6 75 03 4d 8b 32 4c 89 d7
e8 42 6f ef ff 4c 89 f2 48 c7 c7 e8 3d 43 96 48 89 c6 e8 0f f7 36 00 <0f> 0b e9
58 ff ff ff 48 8b 35 32 e9 4a 01 e9 ae fe ff ff 48 8b 35
[    7.144754] RSP: 0018:ffffb4494abd7978 EFLAGS: 00010286
[    7.144756] RAX: 0000000000000000 RBX: 0000000000000000 RCX:
ffffa0ae6f3a05a8
[    7.144757] RDX: 00000000ffffffd8 RSI: 0000000000000027 RDI:
ffffa0ae6f3a05a0
[    7.144759] RBP: ffffb4494abd79b0 R08: 0000000000000003 R09:
0000000000000001
[    7.144760] R10: ffffffffffffffff R11: 0000000000000001 R12:
ffffa0ab16e42900
[    7.144761] R13: ffffa0ab1e092000 R14: ffffa0ab0155cec0 R15:
00000000000001de
[    7.144762] FS:  00007f7696c778c0(0000) GS:ffffa0ae6f380000(0000)
knlGS:0000000000000000
[    7.144764] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    7.144766] CR2: 00007f76975c1f06 CR3: 000000011eda6005 CR4:
00000000001706e0
[    7.144767] Call Trace:
[    7.144771]  <TASK>
[    7.144774]  xhci_map_urb_for_dma+0x14c/0x2b0
[    7.144783]  usb_hcd_submit_urb+0x98/0xc70
[    7.144785]  ? __slab_free+0xbf/0x310
[    7.144789]  ? usb_control_msg+0xfc/0x140
[    7.144792]  usb_submit_urb+0x24f/0x6c0
[    7.144797]  bcm5974_start_traffic+0x4c/0xa0 [bcm5974]
[    7.144801]  bcm5974_open+0x44/0x90 [bcm5974]
[    7.144803]  input_open_device+0x8d/0xe0
[    7.144806]  evdev_open+0x1cc/0x200
[    7.144809]  chrdev_open+0xc4/0x240
[    7.144813]  ? cdev_device_add+0x90/0x90
[    7.144815]  do_dentry_open+0x157/0x380
[    7.144819]  vfs_open+0x2d/0x30
[    7.144823]  path_openat+0xb5b/0x12b0
[    7.144826]  ? page_add_file_rmap+0x81/0x300
[    7.144829]  ? filemap_map_pages+0x148/0x7a0
[    7.144833]  do_filp_open+0xb6/0x160
[    7.144836]  ? __check_object_size+0x128/0x160
[    7.144840]  do_sys_openat2+0x9b/0x160
[    7.144842]  __x64_sys_openat+0x56/0x90
[    7.144844]  do_syscall_64+0x59/0x80
[    7.144848]  ? irqentry_exit_to_user_mode+0x9/0x20
[    7.144850]  ? irqentry_exit+0x33/0x40
[    7.144852]  ? exc_page_fault+0x87/0x170
[    7.144854]  ? asm_exc_page_fault+0x8/0x30
[    7.144858]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[    7.144861] RIP: 0033:0x7f76974096eb
[    7.144864] Code: 25 00 00 41 00 3d 00 00 41 00 74 4b 64 8b 04 25 18 00 00
00 85 c0 75 67 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00
f0 ff ff 0f 87 91 00 00 00 48 8b 54 24 28 64 48 2b 14 25
[    7.144866] RSP: 002b:00007ffff8b30d00 EFLAGS: 00000246 ORIG_RAX:
0000000000000101
[    7.144868] RAX: ffffffffffffffda RBX: 0000000000000000 RCX:
00007f76974096eb
[    7.144870] RDX: 0000000000080902 RSI: 0000558ac9a4b030 RDI:
00000000ffffff9c
[    7.144871] RBP: 0000558ac9a4b030 R08: 0000000000000000 R09:
0000000000000000
[    7.144872] R10: 0000000000000000 R11: 0000000000000246 R12:
0000000000080902
[    7.144873] R13: 00007ffff8b30da0 R14: 0000558ac9925570 R15:
0000558ac992557a
[    7.144875]  </TASK>
[    7.144876] ---[ end trace 0000000000000000 ]---


When modprobe -r bcm5974 ; sleep 10 ; modprobe bcm5974 is run, I get this in
the dmesg:


[  672.699368] usbcore: deregistering interface driver bcm5974
[  672.755704] xhci_hcd 0000:00:14.0: dma_pool_free buffer-512,
00000000e2a5fe53/0xffffffffffffffff (bad dma)
[  676.513776] input: bcm5974 as
/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.2/input/input35
[  676.513925] usbcore: registered new interface driver bcm5974


lspci -tv
-[0000:00]-+-00.0  Intel Corporation Crystal Well DRAM Controller
           +-01.0-[01]--+-00.0  NVIDIA Corporation GK107M [GeForce GT 750M Mac
Edition]
           |            \-00.1  NVIDIA Corporation GK107 HDMI Audio Controller
           +-01.1-[06-9c]----00.0-[07-6c]--+-00.0-[08]----00.0  Intel
Corporation DSL5520 Thunderbolt 2 NHI [Falcon Ridge 4C 2013]
           |                               +-03.0-[09-39]--
           |                               +-04.0-[3a]--
           |                               +-05.0-[3b-6b]--
           |                               \-06.0-[6c]--
           +-02.0  Intel Corporation Crystal Well Integrated Graphics
Controller
           +-03.0  Intel Corporation Crystal Well HD Audio Controller
           +-14.0  Intel Corporation 8 Series/C220 Series Chipset Family USB
xHCI
           +-16.0  Intel Corporation 8 Series/C220 Series Chipset Family MEI
Controller #1
           +-1b.0  Intel Corporation 8 Series/C220 Series Chipset High
Definition Audio Controller
           +-1c.0-[02]--
           +-1c.2-[03]----00.0  Broadcom Inc. and subsidiaries BCM4360 802.11ac
Wireless Network Adapter
           +-1c.3-[04]----00.0  Broadcom Inc. and subsidiaries 720p FaceTime HD
Camera
           +-1c.4-[05]----00.0  Micron/Crucial Technology P2 NVMe PCIe SSD
           +-1f.0  Intel Corporation HM87 Express LPC Controller
           \-1f.3  Intel Corporation 8 Series/C220 Series Chipset Family SMBus
Controller

Relevant libinput list-devices from 5.17.4:
Device:           Apple Inc. Apple Internal Keyboard / Trackpad
Kernel:           /dev/input/event6
Group:            6
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           bcm5974
Kernel:           /dev/input/event9
Group:            6
Seat:             seat0, default
Size:             107x75mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    button-areas *clickfinger 
Disable-w-typing: enabled
Accel profiles:   flat *adaptive
Rotation:         n/a

Relevant libinput list-devices from 5.18-rc4:

Device:           Apple Inc. Apple Internal Keyboard / Trackpad
Kernel:           /dev/input/event9
Group:            6
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux