Re: [PATCH] usbip: set the dma mask to 64bit default for vhci-driver
From: Zongmin Zhou
Date: Fri Apr 25 2025 - 04:09:51 EST
Dear Greg and Christoph:
This patch is the simple solution for the issue described in below link:
https://lore.kernel.org/all/20250219092555.112631-1-min_halo@xxxxxxx/
This issue has been discussed at length with Shuah.
As Christoph said,vhci-hcd is a virtual hci,
but it serves as a bridge to connect virtual USB devices to the real USB
controller.
Since the commit d74ffae8b8dd is applied on kernel v5.3,
the virtual USB devices's max_sectors size is limited since v5.3.
Just because on vhci-hcd, the dma mask setting follows the platform
device default setting(32-bit).
So I want to get the real USB controller dma mask to set on vhci-hcd
driver,
or set to 64 by default,to fix the max_sectors limited issue
on virtual USB device since the commit d74ffae8b8dd applied.
Thanks.
On 2025/4/22 15:24, Christoph Hellwig wrote:
On Tue, Apr 22, 2025 at 02:34:09PM +0800, Zongmin Zhou wrote:
From: Zongmin Zhou <zhouzongmin@xxxxxxxxxx>
fix usb device limited max_sectors when use usbip protocol
As far as I can tell this is a virtual HCI and can't perform DMA.
Thus nothing should use DMA API calls on it and the mask is irrelevant.