From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 388ABC43387 for ; Tue, 8 Jan 2019 14:53:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 003DE20685 for ; Tue, 8 Jan 2019 14:53:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="LEgSk6+G" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728138AbfAHOxh (ORCPT ); Tue, 8 Jan 2019 09:53:37 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:58084 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727662AbfAHOxg (ORCPT ); Tue, 8 Jan 2019 09:53:36 -0500 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5C6F0586; Tue, 8 Jan 2019 15:53:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1546959213; bh=V3uJS8Mj7U1c1qwOU6hLGAGj4Q3ceW8WxEVgpnjnApM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LEgSk6+Gdpz9u9VjTSvx9TZtfR3AjOA8zLxF2DZItLhhWJPYP8nQVF3FDH0sjHMou /RhFRhslO4Uu1QDoo/bgmhWdeJMoISs4+dQxqjyHpW+zJgGNn5Z/h5dgKWur3CKqBP eCsC2w2IymwJCPUydnDRb9wNGU0Uft5B3bDDDZ1w= From: Laurent Pinchart To: Mauro Carvalho Chehab , Mikhail Gavrilov Cc: linux-media@vger.kernel.org Subject: Re: Kernel error "Unknown pixelformat 0x00000000" occurs when I start capture video Date: Tue, 08 Jan 2019 16:54:41 +0200 Message-ID: <386743082.UsI2JZZ8BA@avalon> Organization: Ideas on Board Oy In-Reply-To: <20190108124532.5159b90a@coco.lan> References: <20190108124532.5159b90a@coco.lan> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hello, On Tuesday, 8 January 2019 16:45:37 EET Mauro Carvalho Chehab wrote: > Em Sun, 6 Jan 2019 01:05:16 +0500 Mikhail Gavrilov escreveu: > > Hi folks! > > Every time when I start capture video from external capture card > > Avermedia Live Gamer ULTRA GC553 > > (https://www.avermedia.com/gaming/product/game_capture/live_gamer_ultra= _gc > > 553) >=20 > What's the driver used by this device? >=20 > A quick browsing at the Avermedia page you pointed, it indicates that this > should be using the UVC driver: >=20 > "The LGU takes full advantage of UVC technology, which > basically standardizes video drivers across Windows and Mac. > In other words, all you need to do is plug your LGU to > your PC or Mac and it=E2=80=99s ready to record and stream." >=20 > So, I *suspect* that it uses the uvcvideo driver, but better to > double check. Given the full kernel log part of the original message, [ 5.184850] uvcvideo: Unknown video format=20 30313050-0000-0010-8000-00aa00389b71 [ 5.184882] uvcvideo: Found UVC 1.00 device Live Gamer Ultra-Video (07ca: 0553) [ 5.201323] uvcvideo 4-3:1.0: Entity type for entity Extension 3 was not= =20 initialized! [ 5.201348] uvcvideo 4-3:1.0: Entity type for entity Processing 2 was no= t=20 initialized! [ 5.201367] uvcvideo 4-3:1.0: Entity type for entity Camera 1 was not=20 initialized! [ 5.201505] input: Live Gamer Ultra-Video: Live Ga as /devices/ pci0000:00/0000:00:07.1/0000:0c:00.3/usb4/4-3/4-3:1.0/input/input16 [ 5.201646] usbcore: registered new interface driver uvcvideo [ 5.203637] USB Video Class driver (1.1.1) This is a UVC device. > > I got kernel error "Unknown pixelformat 0x00000000". > > It look like false positive because I am able record video with OBS in > > 4K resolution from another Linux machine or PS 4 Pro if I select > > video format "Planar YVU 4:2:0" or "YU12 (Emulated)" > > But very unpleasant to see this error in kernel log. > >=20 > > $ uname -r > > 4.20.0-1.fc30.x86_64 > >=20 > > $ lsusb > > Bus 004 Device 007: ID 07ca:0553 AVerMedia Technologies, Inc. Mikhail, could you please post the output of lsusb -v -d 07ca:0553 if possible running as root ? > > [ 75.985776] ------------[ cut here ]------------ > > [ 75.985780] Unknown pixelformat 0x00000000 > > [ 75.985813] WARNING: CPU: 12 PID: 3175 at > > drivers/media/v4l2-core/v4l2-ioctl.c:1342 v4l_enum_fmt+0xfc0/0x1380 > > [videodev] > > [ 75.985814] Modules linked in: nls_utf8 isofs fuse rfcomm > > xt_CHECKSUM ipt_MASQUERADE tun bridge stp llc devlink > > nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter > > ip6t_REJECT nf_reject_ipv6 xt_conntrack ebtable_nat ip6table_nat > > nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat > > nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security > > nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nfnetlink > > ebtable_filter ebtables ip6table_filter ip6_tables cmac bnep sunrpc > > xfs vfat fat libcrc32c edac_mce_amd arc4 kvm_amd kvm r8822be(C) > > snd_hda_codec_realtek snd_hda_codec_generic irqbypass > > snd_hda_codec_hdmi snd_hda_intel snd_hda_codec mac80211 snd_usb_audio > > crct10dif_pclmul snd_hda_core snd_usbmidi_lib crc32_pclmul snd_hwdep > > snd_rawmidi snd_seq snd_seq_device uvcvideo snd_pcm > > ghash_clmulni_intel btusb videobuf2_vmalloc videobuf2_memops btrtl > > videobuf2_v4l2 btbcm eeepc_wmi videobuf2_common btintel asus_wmi > > sparse_keymap bluetooth video videodev wmi_bmof joydev > > [ 75.985838] snd_timer cfg80211 media k10temp snd sp5100_tco > > i2c_piix4 soundcore ecdh_generic ccp rfkill pcc_cpufreq gpio_amdpt > > gpio_generic acpi_cpufreq binfmt_misc uas usb_storage hid_sony > > ff_memless amdgpu hid_logitech_hidpp chash amd_iommu_v2 gpu_sched > > drm_kms_helper ttm drm igb crc32c_intel hid_logitech_dj dca nvme > > i2c_algo_bit nvme_core wmi pinctrl_amd > > [ 75.985854] CPU: 12 PID: 3175 Comm: obs Tainted: G C > > 4.20.0-1.fc30.x86_64 #1 > > [ 75.985856] Hardware name: System manufacturer System Product > > Name/ROG STRIX X470-I GAMING, BIOS 1103 11/16/2018 > > [ 75.985862] RIP: 0010:v4l_enum_fmt+0xfc0/0x1380 [videodev] > > [ 75.985863] Code: c6 4b 79 b5 c0 e9 55 f1 ff ff 48 c7 c6 09 7c b5 > > c0 3d 56 50 38 30 0f 84 43 f1 ff ff 89 c6 48 c7 c7 1c 7d b5 c0 e8 3a > > 3b 57 f9 <0f> 0b 41 80 7c 24 0c 00 0f 85 45 f1 ff ff 41 8b 44 24 2c 49 > > 8d 7c > > [ 75.985865] RSP: 0018:ffffa52889277cb8 EFLAGS: 00010286 > > [ 75.985867] RAX: 0000000000000000 RBX: 0000000000000001 RCX: > > 0000000000000006 [ 75.985868] RDX: 0000000000000007 RSI: > > 0000000000000086 RDI: ffff964cbeb168c0 [ 75.985869] RBP: > > 0000000000000000 R08: 0000000000000005 R09: 0000000000000007 [ =20 > > 75.985870] R10: 0000000000000000 R11: ffffffffbb99e22d R12: > > ffffa52889277dc0 [ 75.985872] R13: ffffffffc05079e0 R14: > > ffff964c8a790600 R15: ffffffffffffffed [ 75.985873] FS:=20 > > 00007f0c1eab1f00(0000) GS:ffff964cbeb00000(0000) knlGS:0000000000000000 > > [ 75.985875] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > [ 75.985876] CR2: 00007f0c08197294 CR3: 000000078795e000 CR4: > > 00000000003406e0 [ 75.985877] Call Trace: > > [ 75.985885] __video_do_ioctl+0x174/0x3b0 [videodev] > > [ 75.985889] ? page_add_file_rmap+0xa0/0x2d0 > > [ 75.985892] ? alloc_set_pte+0x293/0x660 > > [ 75.985897] video_usercopy+0x253/0x5a0 [videodev] > > [ 75.985903] ? copy_overflow+0x20/0x20 [videodev] > > [ 75.985906] ? selinux_file_ioctl+0x161/0x200 > > [ 75.985911] v4l2_ioctl+0x45/0x50 [videodev] > > [ 75.985914] do_vfs_ioctl+0xa4/0x630 > > [ 75.985916] ksys_ioctl+0x60/0x90 > > [ 75.985918] __x64_sys_ioctl+0x16/0x20 > > [ 75.985921] do_syscall_64+0x5b/0x160 > > [ 75.985924] entry_SYSCALL_64_after_hwframe+0x44/0xa9 > > [ 75.985926] RIP: 0033:0x7f0c2454014d > > [ 75.985928] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e > > fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 > > 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 0b 5d 0c 00 f7 d8 64 89 > > 01 48 > > [ 75.985929] RSP: 002b:00007ffe01cdc5f8 EFLAGS: 00000246 ORIG_RAX: > > 0000000000000010 > > [ 75.985931] RAX: ffffffffffffffda RBX: 00007f0c08197280 RCX: > > 00007f0c2454014d [ 75.985932] RDX: 00007ffe01cdc660 RSI: > > 00000000c0405602 RDI: 0000000000000027 [ 75.985933] RBP: > > 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 [ =20 > > 75.985934] R10: 0000000000000000 R11: 0000000000000246 R12: > > 0000000000000007 [ 75.985935] R13: 0000000000000001 R14: > > 00007ffe01cdc630 R15: 000055a982fdf6e0 [ 75.985937] ---[ end trace > > 26d01f03c564a254 ]--- > >=20 > >=20 > > Is it possible to fix this error? >=20 > I suspect that the UVC descriptors are pointing to another format that > the driver currently doesn't recognize, but I would be expecting to see > some message with: >=20 > Unknown video format xxxxxxx >=20 > printed as well, if this is, indeed, using the uvcdriver. =2D-=20 Regards, Laurent Pinchart