linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@kernel.org
To: linux-usb@vger.kernel.org
Subject: [Bug 215890] Regression in 5.18: bcm5974 trackpad causes error: xhci_hcd rejecting DMA map of vmalloc memory
Date: Thu, 12 May 2022 16:36:40 +0000	[thread overview]
Message-ID: <bug-215890-208809-24z8MYRVTo@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-215890-208809@https.bugzilla.kernel.org/>

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

--- Comment #7 from Satadru Pramanik (satadru@umich.edu) ---
After bisection:
git bisect good
f5ff79fddf0efecca538046b5cc20fb3ded2ec4f is the first bad commit
commit f5ff79fddf0efecca538046b5cc20fb3ded2ec4f
Author: Christoph Hellwig <hch@lst.de>
Date:   Sat Feb 26 16:40:21 2022 +0100

    dma-mapping: remove CONFIG_DMA_REMAP

    CONFIG_DMA_REMAP is used to build a few helpers around the core
    vmalloc code, and to use them in case there is a highmem page in
    dma-direct, and to make dma coherent allocations be able to use
    non-contiguous pages allocations for DMA allocations in the dma-iommu
    layer.

    Right now it needs to be explicitly selected by architectures, and
    is only done so by architectures that require remapping to deal
    with devices that are not DMA coherent.  Make it unconditional for
    builds with CONFIG_MMU as it is very little extra code, but makes
    it much more likely that large DMA allocations succeed on x86.

    This fixes hot plugging a NVMe thunderbolt SSD for me, which tries
    to allocate a 1MB buffer that is otherwise hard to obtain due to
    memory fragmentation on a heavily used laptop.

    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: Robin Murphy <robin.murphy@arm.com>

 arch/arm/Kconfig          |  2 +-
 arch/xtensa/Kconfig       |  2 +-
 drivers/iommu/dma-iommu.c | 14 +++++---------
 kernel/dma/Kconfig        |  7 +------
 kernel/dma/Makefile       |  2 +-
 kernel/dma/direct.c       | 18 +++++++-----------
 6 files changed, 16 insertions(+), 29 deletions(-)

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

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

  parent reply	other threads:[~2022-05-12 16:36 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26 22:42 [Bug 215890] New: Regression in 5.18: bcm5974 trackpad causes error: xhci_hcd rejecting DMA map of vmalloc memory bugzilla-daemon
2022-05-02 14:19 ` [Bug 215890] " bugzilla-daemon
2022-05-04  8:42 ` [Bug 215890] New: " Thorsten Leemhuis
2022-05-13  8:24   ` Thorsten Leemhuis
2022-05-13 10:37     ` Christoph Hellwig
2022-05-13 10:47       ` Christoph Hellwig
2022-05-04  8:42 ` [Bug 215890] " bugzilla-daemon
2022-05-09  0:50 ` bugzilla-daemon
2022-05-10  8:48 ` bugzilla-daemon
2022-05-10 20:50 ` bugzilla-daemon
2022-05-11  5:44   ` Greg KH
2022-05-11  5:44 ` bugzilla-daemon
2022-05-12 16:36 ` bugzilla-daemon [this message]
2022-05-13  8:24 ` bugzilla-daemon
2022-05-13 10:37 ` bugzilla-daemon
2022-05-13 10:47 ` bugzilla-daemon
2022-05-13 13:21 ` bugzilla-daemon
2022-05-13 13:33 ` bugzilla-daemon
2022-05-13 13:50 ` bugzilla-daemon
2022-05-13 15:22 ` bugzilla-daemon
2022-05-15 21:38 ` bugzilla-daemon
2022-05-16  3:27 ` bugzilla-daemon
2022-05-16 10:23 ` bugzilla-daemon
2022-05-16 11:39 ` bugzilla-daemon
2022-05-16 12:16 ` bugzilla-daemon
2022-05-16 12:17 ` bugzilla-daemon
2022-05-18  7:48 ` bugzilla-daemon
2022-05-25 17:58 ` bugzilla-daemon
2022-06-03 13:45 ` bugzilla-daemon
2022-06-06 13:22 ` bugzilla-daemon
2022-06-16 10:38 ` bugzilla-daemon
2022-06-16 10:59 ` bugzilla-daemon
2022-06-16 11:21 ` bugzilla-daemon
2022-07-26 15:12 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-215890-208809-24z8MYRVTo@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).