From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: Wesley Cheng <quic_wcheng@quicinc.com>,
mathias.nyman@intel.com, gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
quic_jackp@quicinc.com, stable@vger.kernel.org
Subject: Re: [PATCH] usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer
Date: Tue, 12 Sep 2023 14:33:20 +0300 [thread overview]
Message-ID: <7c388791-e4cd-28da-3d98-5cc233bec165@linux.intel.com> (raw)
In-Reply-To: <20230911234122.1408-1-quic_wcheng@quicinc.com>
On 12.9.2023 2.41, Wesley Cheng wrote:
> As mentioned in:
> commit 474ed23a6257 ("xhci: align the last trb before link if it is
> easily splittable.")
>
> A bounce buffer is utilized for ensuring that transfers that span across
> ring segments are aligned to the EP's max packet size. However, the device
> that is used to map the DMA buffer to is currently using the XHCI HCD,
> which does not carry any DMA operations in certain configrations.
> Migration to using the sysdev entry was introduced for DWC3 based
> implementations where the IOMMU operations are present.
>
> Replace the reference to the controller device to sysdev instead. This
> allows the bounce buffer to be properly mapped to any implementations that
> have an IOMMU involved.
>
> cc: <stable@vger.kernel.org>
> Fixes: 4c39d4b949d3 ("usb: xhci: use bus->sysdev for DMA configuration")
> Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
> ---
Thanks, adding to queue
-Mathias
prev parent reply other threads:[~2023-09-12 11:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 23:41 [PATCH] usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer Wesley Cheng
2023-09-12 11:33 ` Mathias Nyman [this message]
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=7c388791-e4cd-28da-3d98-5cc233bec165@linux.intel.com \
--to=mathias.nyman@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=quic_jackp@quicinc.com \
--cc=quic_wcheng@quicinc.com \
--cc=stable@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