<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Not enough resources USB3 iMX8QM RAW camera</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Not-enough-resources-USB3-iMX8QM-RAW-camera/m-p/1745363#M214630</link>
    <description>&lt;P&gt;We have not tested this on the MEK board, I don't have one available at the moment but we're working on trying it with this setup as well. Because of that, I wouldn't say it's not reproducible on the MEK, it's very likely reproducible. USB3 works, it's this specific camera that presents the stated problem however, as mentioned before, the same camera works without issues on the iMX8MP.&lt;/P&gt;&lt;P&gt;The 5.15.129 kernel is built from the toradex_5.15-2.2.x-imx branch (&lt;A href="https://git.toradex.com/cgit/linux-toradex.git/log/?h=toradex_5.15-2.2.x-imx" target="_blank"&gt;https://git.toradex.com/cgit/linux-toradex.git/log/?h=toradex_5.15-2.2.x-imx&lt;/A&gt;) which is based on &lt;A href="https://github.com/Freescale/linux-fslc/tree/5.15-2.2.x-imx" target="_blank"&gt;https://github.com/Freescale/linux-fslc/tree/5.15-2.2.x-imx&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;Is there any reason to believe this was a problem before and should be fixed in some NXP kernel branch?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 16:49:18 GMT</pubDate>
    <dc:creator>rbeims</dc:creator>
    <dc:date>2023-10-24T16:49:18Z</dc:date>
    <item>
      <title>Not enough resources USB3 iMX8QM RAW camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Not-enough-resources-USB3-iMX8QM-RAW-camera/m-p/1743698#M214504</link>
      <description>&lt;P&gt;We have been facing an issue that makes it impossible to use USB3 full HD cameras connected to the iMX8QM. Whenever we start any kind of capture on one of these devices, we get the following output on the kernel logs:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;[ 2544.355298] usb 2-1: Not enough host controller resources for new device state. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[ 2544.362664] usb 2-1: Not enough bandwidth for altsetting 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;This is the pipeline we use for testing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw, width=1920, height=1080, format=YUY2, framerate=30/1 ! autovideosink&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;We're using kernel version 5.15.129 for the tests.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Here's what I tried so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;1) connected the same camera to an iMX8MP based module, and in this case the same pipeline works without problems&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2) traced the kernel to find out where the issue is being reported. I found out that we get to the point where the command to configure the endpoint is issued, but the controller returns a "Resource Error" back:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;387 &amp;lt;idle&amp;gt;-0 [000] d.h2. 656.475330: xhci_inc_deq: EVENT 0000000006a2d056: enq 0x00000000ffffc000(0x00000000ffffc000) deq 0x00000000ffffc640(0x00000000ffffc000) segs 1 stream 0 free_trbs 254 bounce 0 cycle 0&lt;BR /&gt;388 v4l2src0:src-871 [002] ..... 656.677979: xhci_ring_alloc: ISOC 0000000096db72d7: enq 0x00000000fff94000(0x00000000fff94000) deq 0x00000000fff94000(0x00000000fff94000) segs 2 stream 0 free_trbs 509 bounce 1024 cycle 1&lt;BR /&gt;389 v4l2src0:src-871 [002] ..... 656.677988: xhci_add_endpoint: State disabled mult 3 max P. Streams 0 interval 125 us max ESIT payload 33792 CErr 0 Type Isoc IN burst 10 maxp 1024 deq 00000000fff94001 avg trb len 33792&lt;BR /&gt;390 v4l2src0:src-871 [002] d..1. 656.697918: xhci_configure_endpoint_ctrl_ctx: Add: slot 1in&lt;BR /&gt;391 v4l2src0:src-871 [002] d..1. 656.697925: xhci_configure_endpoint: RS 00000 super-speed Ctx Entries 15 MEL 0 us Port# 2/0 [TT Slot 0 Port# 0 TTT 0 Intr 0] Addr 0 State enabled/disabled&lt;BR /&gt;392 v4l2src0:src-871 [002] d..1. 656.697935: xhci_queue_trb: CMD: Configure Endpoint Command: ctx 00000000fffd9000 slot 4 flags d: C&lt;BR /&gt;393 v4l2src0:src-871 [002] d..1. 656.697939: xhci_inc_enq: CMD 000000004e4d6336: enq 0x00000000ffffe030(0x00000000ffffe000) deq 0x00000000ffffe020(0x00000000ffffe000) segs 1 stream 0 free_trbs 253 bounce 0 cycle 1&lt;BR /&gt;394 v4l2src0:src-871 [002] d..1. 656.697944: xhci_ring_host_doorbell: Ring doorbell for Command Ring 0&lt;BR /&gt;395 &amp;lt;idle&amp;gt;-0 [000] d.h2. 656.697992: xhci_handle_event: EVENT: TRB 00000000ffffe020 status 'Resource Error' len 0 slot 4 ep 0 type 'Command Completion Event' flags e:c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I attached the full trace output from a pipeline start.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also, here's the output from lsusb -t:&lt;/P&gt;&lt;P&gt;root@apalis-imx8-06852132:~# lsusb -t&lt;BR /&gt;/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M&lt;BR /&gt;|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/3p, 480M&lt;BR /&gt;|__ Port 1: Dev 3, If 0, Class=Wireless, Driver=btusb, 480M&lt;BR /&gt;|__ Port 1: Dev 3, If 1, Class=Wireless, Driver=btusb, 480M&lt;BR /&gt;/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M&lt;BR /&gt;|__ Port 1: Dev 2, If 0, Class=Video, Driver=uvcvideo, 5000M&lt;BR /&gt;|__ Port 1: Dev 2, If 1, Class=Video, Driver=uvcvideo, 5000M&lt;BR /&gt;|__ Port 1: Dev 2, If 2, Class=Audio, Driver=snd-usb-audio, 5000M&lt;BR /&gt;|__ Port 1: Dev 2, If 3, Class=Audio, Driver=snd-usb-audio, 5000M&lt;BR /&gt;/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M&lt;/P&gt;&lt;P&gt;I also attached the output of lsusb -v.&lt;/P&gt;&lt;P&gt;Is there a limitation in the cdns usb3 controller that would limit this kind of device to be connected?&lt;/P&gt;&lt;P&gt;Is there a configuration somewhere that we can use to add whatever resources are missing in this case?&lt;/P&gt;&lt;P&gt;Is there a way to find out exactly what resource is missing?&lt;/P&gt;&lt;P&gt;Any help will be appreciated,&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 12:51:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Not-enough-resources-USB3-iMX8QM-RAW-camera/m-p/1743698#M214504</guid>
      <dc:creator>rbeims</dc:creator>
      <dc:date>2023-10-20T12:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Not enough resources USB3 iMX8QM RAW camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Not-enough-resources-USB3-iMX8QM-RAW-camera/m-p/1745296#M214626</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;So the issue of usb3.0 camera not working is reproduced on your board, but it works on mek board, The 5.15.129 is not released version from nxp, so you should port the driver code on this version.&lt;/P&gt;
&lt;P&gt;Have you tried to connect the usb3.0 camera on 8qm mek board?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 14:41:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Not-enough-resources-USB3-iMX8QM-RAW-camera/m-p/1745296#M214626</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-10-24T14:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Not enough resources USB3 iMX8QM RAW camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Not-enough-resources-USB3-iMX8QM-RAW-camera/m-p/1745363#M214630</link>
      <description>&lt;P&gt;We have not tested this on the MEK board, I don't have one available at the moment but we're working on trying it with this setup as well. Because of that, I wouldn't say it's not reproducible on the MEK, it's very likely reproducible. USB3 works, it's this specific camera that presents the stated problem however, as mentioned before, the same camera works without issues on the iMX8MP.&lt;/P&gt;&lt;P&gt;The 5.15.129 kernel is built from the toradex_5.15-2.2.x-imx branch (&lt;A href="https://git.toradex.com/cgit/linux-toradex.git/log/?h=toradex_5.15-2.2.x-imx" target="_blank"&gt;https://git.toradex.com/cgit/linux-toradex.git/log/?h=toradex_5.15-2.2.x-imx&lt;/A&gt;) which is based on &lt;A href="https://github.com/Freescale/linux-fslc/tree/5.15-2.2.x-imx" target="_blank"&gt;https://github.com/Freescale/linux-fslc/tree/5.15-2.2.x-imx&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;Is there any reason to believe this was a problem before and should be fixed in some NXP kernel branch?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 16:49:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Not-enough-resources-USB3-iMX8QM-RAW-camera/m-p/1745363#M214630</guid>
      <dc:creator>rbeims</dc:creator>
      <dc:date>2023-10-24T16:49:18Z</dc:date>
    </item>
  </channel>
</rss>

