Re: incomplete MJPG frames through dwc2 USB host

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

 



Hi Andrea,

On 9/15/2017 1:34 PM, Andrea Di Chiara wrote:
> Hi,
> I'm using a RK3288 rockchip board whit kernel rockchip-linux release-4.4.
> It has two USB host and one of them has a DW controller. If I connect a
> UVC camera on it, I get into an incomplete MJPG frame error when enable
> stream with a image format greater or equal than 1920x1080. There isn't
> any related error on dmseg log, even if I enable CONFIG_USB_DWC2_DEBUG.
> So I can check that issue only processing MJPG data or showing that frame.
>
> I'm certain it isn't a camera problem cause if I connect it to the other
> ECHI controller USB port it work properly. I thought it was an bandwidth
> issue cause if I reduce image format the problem disappear. Could it be
> so? If not, what could it be the problem?
>
> This is rk3288.dtsi usb hosts config
>
>         usb_host0_ehci: usb@ff500000 {
>                 compatible = "generic-ehci";
>                 reg = <0xff500000 0x100>;
>                 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
>                 clocks = <&cru HCLK_USBHOST0>;
>                 clock-names = "usbhost";
>                 phys = <&usbphy1>;
>                 phy-names = "usb";
>                 status = "disabled";
>         };
>
>         usb_host1: usb@ff540000 {
>                 compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb",
>                                 "snps,dwc2";
>                 reg = <0xff540000 0x40000>;
>                 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
>                 clocks = <&cru HCLK_USBHOST1>;
>                 clock-names = "otg";
>                 dr_mode = "host";
>                 phys = <&usbphy2>;
>                 phy-names = "usb2-phy";
>                 status = "disabled";
>         };
>
> thank you for the attention,
> best regards
> Andrea
>
>
>
> Software Department
> software@xxxxxxxxx
>
> -------------------------------------------------------------------------------------------------------------
> TESEO spa            via Agnelli, 49              63900 FERMO (FM) ITALY
> Tel. +39 0734 628818   --    Fax. +39 0734 628816
>
> Disclaimer: This electronic mail transmission may contain legally privileged and/or confidential information. Do not read this if you are not the person(s) named. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you receive this transmission by mistake destroy the original transmission and its attachments without reading or saving in any manner.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  https://urldefense.proofpoint.com/v2/url?u=http-3A__vger.kernel.org_majordomo-2Dinfo.html&d=DwIDaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=6z9Al9FrHR_ZqbbtSAsD16pvOL2S3XHxQnSzq8kusyI&m=njoBgj7h5w8eomFq_6xzn10dBtuDtjftyZbxdGCjgEI&s=ZQGDeZanbc8q01Cfi_sFgKWlOlgi9DAKmvkuyHQaHNI&e=
>

Could you please provide more details on observed issue. In which mode 
dwc core works: Slave, Buffer DMA or Descriptor DMA? USB speed: high or 
full? Split transfers? ISOC IN EP details: max packet size, number of 
additional packets? Packet count per (micro)frame and average total 
transfer size in (micro)frame in case of 1920x1080? dmesg log also will 
be usefull.

Thanks,
Minas

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux