Re: usb: gadget: dwc2: RK3308: Transmission to EP OUT stalls at larger packet size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pavel,

On 2/5/24 18:35, Pavel Hofman wrote:
> 
>>
> It really looks like some DMA performance issue. Stream 980 bytes/ 250us 
> (bInterval=2) is bitperfect, no dropped packets. While 24 bytes/125us 
> (bInterval=1) gets stuck. IIUC the DMA is not capable of copying packets 
> every 125us. Please is there any chance to tweak the performance to 
> handle the 125us packets reliably?
> 
> Thanks a lot!

Quick analysis.
1. In dmesg seen BNA (buffer not available) interrupt which mean driver 
not prepare DMA descriptor on time.
2. For a try please disable debug printing from g_audio:
[ 2080.107701] u_audio_iso_complete: iso_complete status(-61) 0/1000
3. Please try run device in Buffer DMA instead of Descriptor DMA:
p->g_dma_desc = hw->dma_desc_enable;
replace to:
p->g_dma_desc = 0;

Thanks,
Minas





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux