From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0217AC433EF for ; Thu, 31 Mar 2022 07:41:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232305AbiCaHnY (ORCPT ); Thu, 31 Mar 2022 03:43:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231135AbiCaHnX (ORCPT ); Thu, 31 Mar 2022 03:43:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331BC62BE9 for ; Thu, 31 Mar 2022 00:41:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B3AB3B81FDC for ; Thu, 31 Mar 2022 07:41:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 58F16C340F3 for ; Thu, 31 Mar 2022 07:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648712493; bh=qQJpM2CUPn4gaf90eJKscSt0OUk9F8EVmhHmxiV6YzA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=e7QgY5Yuesuzt4xMuHrBcdOf9SH4aIh3BzxgCwoz79NBnAAPtoS3J6/gFGKvthqrc KkRPN5fsObXwhtUULNPS7sfVjSL+JRVxq5I3gF1SM1G6sQlmRDQg0bUDLkBkn4yTw1 glVbpMvg8vz3DY/WbqkKjOATxwKa6aOtfedLjQfazxFJalq+ggmdh/KEwuaJSfIUBe vRQUq5Eh9ZGl+6/pe05mAKw30mD/D/+nd3hUOvQ3BG4PcO2d8uT8MhxcQ9Z6MiebLW T3A0PgyCPnRbQG9P2kX8Z7sxF0m/zC7AvJBSh9k8rrtERociStSdBtC9IIjwTdaHBW qF8Ax7JjW4peA== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id 2B3C3C05FD2; Thu, 31 Mar 2022 07:41:33 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-usb@vger.kernel.org Subject: [Bug 215740] kernel warning: DMA-API: xhci_hcd: cacheline tracking EEXIST, overlapping mappings aren't supported Date: Thu, 31 Mar 2022 07:41:32 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo drivers_usb@kernel-bugs.kernel.org X-Bugzilla-Product: Drivers X-Bugzilla-Component: USB X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: regressions@leemhuis.info X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: drivers_usb@kernel-bugs.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=3D215740 --- Comment #3 from The Linux kernel's regression tracker (Thorsten Leemhui= s) (regressions@leemhuis.info) --- Hey Christoph, Marek, Greg! Below warning was reported to bugzilla.kernel.org more than a week ago; to quote the important parts here: > https://bugzilla.kernel.org/show_bug.cgi?id=3D215740 > > DMA-API: xhci_hcd 0000:09:00.3: cacheline tracking EEXIST, overlapping > mappings aren't supported > WARNING: CPU: 4 PID: 69 at kernel/dma/debug.c:570 > add_dma_entry+0x1c7/0x250 > [...] > Call Trace: > > dma_map_page_attrs+0x82/0x250 > ? _raw_spin_unlock_irqrestore+0x30/0x60 > usb_hcd_map_urb_for_dma+0x3eb/0x4f0 > usb_hcd_submit_urb+0x9b/0xb90 > ? lockdep_init_map_type+0x62/0x260 > usb_start_wait_urb+0x55/0x130 > usb_control_msg+0xc9/0x110 > hub_ext_port_status+0x89/0x110 > hub_event+0x1e4/0x1920 See the full quote below for details. According to a bugzilla.redhat.com ticket linked in the report this started to happen with 5.14. A second user there also confirmed the problem that still seems to happen with recent 5.17 pre-releases. Searching on lore revealed that others have hit this warning as well in the past few months: https://lore.kernel.org/all/65271fd1-1c1c-f2ad-9b0f-60174e791eaa@linux.inte= l.com/ https://lore.kernel.org/all/5cd6fc87-0f8d-0b9b-42be-8180540a94e7@gmail.com/ https://lore.kernel.org/all/CABXGCsP-JJAUh-SV0u1ALu5+awxcWT3BsQ=3DFzKrqb+9H= Ok2EUA@mail.gmail.com/ Does anyone have a idea what might be wrong here? If not, I guess we should ask one of the reporters to bisect this. Anyway, to ensure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, my Linux kernel regression tracking bot: #regzbot ^introduced v5.13..v5.14 #regzbot title dma or usb: warning "DMA-API: xhci_hcd ... cacheline tracking EEXIST, overlapping mappings aren't supported" #regzbot from: Andrew #regzbot link: https://bugzilla.kernel.org/show_bug.cgi?id=3D215740 #regzbot https://bugzilla.redhat.com/show_bug.cgi?id=3D2021242 #regzbot ignore-activity Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) P.S.: As the Linux kernel's regression tracker I'm getting a lot of reports on my table. I can only look briefly into most of them and lack knowledge about most of the areas they concern. I thus unfortunately will sometimes get things wrong or miss something important. I hope that's not the case here; if you think it is, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight. On 24.03.22 16:18, bugzilla-daemon@kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=3D215740 >=20 > Bug ID: 215740 > Summary: kernel warning: DMA-API: xhci_hcd: cacheline tracking > EEXIST, overlapping mappings aren't supported > Product: Drivers > Version: 2.5 > Kernel Version: 5.17 > Hardware: All > OS: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: USB > Assignee: drivers_usb@kernel-bugs.kernel.org > Reporter: travneff@gmail.com > Regression: No >=20 > Created attachment 300612 > --> https://bugzilla.kernel.org/attachment.cgi?id=3D300612&action=3Dedit > full dmesg log with the warning >=20 > I have this kernel trace often while PC booting: >=20 > DMA-API: xhci_hcd 0000:09:00.3: cacheline tracking EEXIST, overlapping > mappings aren't supported > WARNING: CPU: 4 PID: 69 at kernel/dma/debug.c:570 > add_dma_entry+0x1c7/0x250 > Modules linked in: bpf_preload > CPU: 4 PID: 69 Comm: kworker/4:1 Not tainted 5.17.0 #1 > Hardware name: ASUS System Product Name/TUF GAMING B550M-PLUS, BIOS 2= 423 > 08/10/2021 > Workqueue: usb_hub_wq hub_event > RIP: 0010:add_dma_entry+0x1c7/0x250 > Code: ff 0f 84 97 00 00 00 48 8b 5f 50 48 85 db 75 03 48 8b 1f e8 4b = 53 > 80 > 00 48 89 c6 48 89 da 48 c7 c7 58 b3 84 94 e8 27 21 ca 00 <0f> 0b 48 85 ed= 0f > 85 > 69 d2 ca 00 8b 05 88 a0 30 02 85 c0 0f 85 f4 > RSP: 0018:ffff9cadc0c9ba88 EFLAGS: 00010292 > RAX: 0000000000000060 RBX: ffff9173d2c49ea0 RCX: 0000000000000000 > RDX: 0000000000000001 RSI: 00000000ffffdfff RDI: 00000000ffffffff > RBP: ffff9173d11a5e80 R08: 0000000000000000 R09: ffff9cadc0c9b8c0 > R10: ffff9cadc0c9b8b8 R11: ffffffff95165128 R12: 0000000000000000 > R13: 0000000000000001 R14: 0000000000000206 R15: 00000000046882ee > FS: 0000000000000000(0000) GS:ffff9182a8200000(0000) > knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007fce5d52a130 CR3: 0000000119b28000 CR4: 0000000000350ee0 > Call Trace: > > dma_map_page_attrs+0x82/0x250 > ? _raw_spin_unlock_irqrestore+0x30/0x60 > usb_hcd_map_urb_for_dma+0x3eb/0x4f0 > usb_hcd_submit_urb+0x9b/0xb90 > ? lockdep_init_map_type+0x62/0x260 > usb_start_wait_urb+0x55/0x130 > usb_control_msg+0xc9/0x110 > hub_ext_port_status+0x89/0x110 > hub_event+0x1e4/0x1920 > ? lock_acquire+0xe0/0x2d0 > ? lock_is_held_type+0xea/0x140 > process_one_work+0x29b/0x5f0 > worker_thread+0x4f/0x390 > ? process_one_work+0x5f0/0x5f0 > kthread+0xf5/0x120 > ? kthread_complete_and_exit+0x20/0x20 > ret_from_fork+0x22/0x30 > >=20 > My usb devices: >=20 > $ lsusb -t > /: Bus 04.Port 1: Dev 1, Class=3Droot_hub, Driver=3Dxhci_hcd/4p, 100= 00M > |__ Port 4: Dev 2, If 0, Class=3DHub, Driver=3Dhub/4p, 5000M > |__ Port 4: Dev 3, If 0, Class=3DHub, Driver=3Dhub/4p, 5000M > |__ Port 2: Dev 4, If 0, Class=3DMass Storage, Driver=3Du= as, > 5000M > |__ Port 4: Dev 5, If 0, Class=3DHub, Driver=3Dhub/4p, 50= 00M > |__ Port 4: Dev 6, If 0, Class=3DHub, Driver=3Dhub/4p= , 5000M > /: Bus 03.Port 1: Dev 1, Class=3Droot_hub, Driver=3Dxhci_hcd/4p, 480M > |__ Port 2: Dev 2, If 3, Class=3DApplication Specific Interface, > Driver=3D, > 12M > |__ Port 2: Dev 2, If 1, Class=3DVendor Specific Class, Driver=3D= btusb, > 12M > |__ Port 2: Dev 2, If 2, Class=3DVendor Specific Class, Driver=3D= btusb, > 12M > |__ Port 2: Dev 2, If 0, Class=3DVendor Specific Class, Driver=3D= btusb, > 12M > |__ Port 4: Dev 3, If 0, Class=3DHub, Driver=3Dhub/4p, 480M > |__ Port 1: Dev 12, If 0, Class=3DCommunications, Driver=3Dcd= c_ether, > 480M > |__ Port 1: Dev 12, If 1, Class=3DCDC Data, Driver=3Dcdc_ethe= r, 480M > |__ Port 4: Dev 4, If 0, Class=3DHub, Driver=3Dhub/4p, 480M > |__ Port 4: Dev 5, If 0, Class=3DHub, Driver=3Dhub/4p, 48= 0M > |__ Port 3: Dev 6, If 1, Class=3DHuman Interface Devi= ce, > Driver=3Dusbhid, 1.5M > |__ Port 3: Dev 6, If 0, Class=3DHuman Interface Devi= ce, > Driver=3Dusbhid, 1.5M > |__ Port 4: Dev 7, If 0, Class=3DHub, Driver=3Dhub/4p= , 480M > |__ Port 2: Dev 8, If 0, Class=3DHuman Interface > Device, > Driver=3Dusbfs, 1.5M > |__ Port 3: Dev 9, If 0, Class=3DVendor Specific = Class, > Driver=3D, 480M > |__ Port 4: Dev 10, If 0, Class=3DImaging, Driver= =3D, > 480M > /: Bus 02.Port 1: Dev 1, Class=3Droot_hub, Driver=3Dxhci_hcd/4p, 100= 00M > /: Bus 01.Port 1: Dev 1, Class=3Droot_hub, Driver=3Dxhci_hcd/10p, 48= 0M > |__ Port 6: Dev 2, If 2, Class=3DHuman Interface Device, Driver= =3Dusbhid, > 12M > |__ Port 6: Dev 2, If 0, Class=3DVendor Specific Class, Driver=3D= , 12M > |__ Port 7: Dev 3, If 0, Class=3DHub, Driver=3Dhub/4p, 480M >=20 > $ lsusb > Bus 004 Device 006: ID 2109:0812 VIA Labs, Inc. VL812 Hub > Bus 004 Device 005: ID 2109:0812 VIA Labs, Inc. VL812 Hub > Bus 004 Device 004: ID 0578:0578 Intrinsix Corp. KingSpec > Bus 004 Device 003: ID 2109:0812 VIA Labs, Inc. VL812 Hub > Bus 004 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub > Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > Bus 003 Device 010: ID 1004:633e LG Electronics, Inc. LM-X420xxx/G2/G3 > Android Phone (MTP/download mode) > Bus 003 Device 009: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU > 802.11a/b/g/n/ac 2T2R DB WLAN Adapter > Bus 003 Device 008: ID 0463:ffff MGE UPS Systems UPS > Bus 003 Device 007: ID 2109:2812 VIA Labs, Inc. VL812 Hub > Bus 003 Device 006: ID 046d:c30e Logitech, Inc. UltraX Keyboard (Y-BL= 49) > Bus 003 Device 005: ID 2109:2812 VIA Labs, Inc. VL812 Hub > Bus 003 Device 004: ID 2109:2812 VIA Labs, Inc. VL812 Hub > Bus 003 Device 012: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB > Ethernet/RNDIS Gadget > Bus 003 Device 003: ID 2109:2812 VIA Labs, Inc. VL812 Hub > Bus 003 Device 002: ID 0b05:17cb ASUSTek Computer, Inc. Broadcom > BCM20702A0 > Bluetooth > Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub > Bus 001 Device 002: ID 0b05:1939 ASUSTek Computer, Inc. AURA LED > Controller > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >=20 > Kernel is built from > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > at v5.17 tag (f443e374ae131c168a065ea1748feac6b2e76613) >=20 > Also reproduces for my distro kernel: > https://bugzilla.redhat.com/show_bug.cgi?id=3D2021242 > --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.=