From: sashiko-bot@kernel.org
To: "Wesley Cheng" <wesley.cheng@oss.qualcomm.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v5 2/4] usb: xhci: Allocate sideband ring segments with dma_alloc_coherent()
Date: Tue, 03 Nov 2026 23:56:23 +0000 [thread overview]
Message-ID: <sashiko-outbox-196257@kernel.org> (raw)
In-Reply-To: <20261103-16k_offload_v1_b4-v5-2-67184126e91c@oss.qualcomm.com>
> Ring segments are normally allocated from a shared DMA pool sized and
> aligned to TRB_SEGMENT_SIZE (4096 bytes). On kernels built with a
> larger PAGE_SIZE (e.g. 16K or 64K page arches), multiple segments can
> share the same physical page.
>
> A sideband client that maps a ring buffer directly via the IOMMU
> (which operates at page granularity) would then also expose any other
> ring segment sharing that page, as well as the dma_pool bookkeeping
> kept in free blocks, to the entity handling the offloaded endpoints.
>
> Add a no_pool_alloc flag for endpoints and rings, which has the ring
> segments allocated with dma_alloc_coherent() instead of from
> xhci->segment_pool. Coherent allocations are page aligned, so each of
> these segments gets a page of its own. When PAGE_SIZE is larger than
> TRB_SEGMENT_SIZE, xhci_sideband_add_endpoint() sets the flag for the
> [ ... ]
> the endpoint already has a ring.
>
> Suggested-by: Mathias Nyman <mathias.nyman@linux.intel.com>
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Wesley Cheng <wesley.cheng@oss.qualcomm.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103-16k_offload_v1_b4-v5-0-67184126e91c@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-11-03 23:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 23:39 [PATCH v5 0/4] Add larger page size support for USB audio offload path Wesley Cheng
2026-11-03 23:39 ` [PATCH v5 1/4] usb: xhci: sideband: fix ring sg table for sub-page TRB segments Wesley Cheng
2026-11-03 23:46 ` sashiko-bot
2026-11-03 23:39 ` [PATCH v5 2/4] usb: xhci: Allocate sideband ring segments with dma_alloc_coherent() Wesley Cheng
2026-11-03 23:56 ` sashiko-bot [this message]
2026-11-03 23:39 ` [PATCH v5 3/4] ALSA: usb-audio: qcom: tag sideband endpoints before ring allocation Wesley Cheng
2026-11-03 23:55 ` sashiko-bot
2026-11-03 23:39 ` [PATCH v5 4/4] ALSA: usb-audio: qcom: fix xfer ring IOMMU unmap on 16K+ page kernels Wesley Cheng
2026-11-04 0:00 ` sashiko-bot
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=sashiko-outbox-196257@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wesley.cheng@oss.qualcomm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.