Received: by 10.223.176.5 with SMTP id f5csp1745724wra; Thu, 8 Feb 2018 02:48:36 -0800 (PST) X-Google-Smtp-Source: AH8x226KlMYEPoJEADnf9kN8BRyIgQav/RSKCtu28JTKff24X3Fatk0h8Pi/RB29pXvph9t1P7AS X-Received: by 10.99.3.82 with SMTP id 79mr151096pgd.5.1518086916088; Thu, 08 Feb 2018 02:48:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518086916; cv=none; d=google.com; s=arc-20160816; b=rvfk2UvklTGG1o97dldYwZjgCNeEfOJpGU5ytgH/IDQPgpdtA/Jxw6cBWjv0HATLiW 7c0SAxZPMgEvfWladCWAleD7JMHFFRF5CY9oDvwXvQipU0YPEse55lnl28+nBUvpXYvN opVgsN/tqNDV1hiidc52uQCRAJUYNw50KcksyzTcTzD4BkKxT2gTHxMy/rvzwzcetf78 B7oeRsP8PC867cEAhbv1EKEQLgf8p0zHZABwMp4RMqVdxlnbmi/fIYgweY7EOPHLJNXU KGskdCcJHGOJqZisl/pgEPLa/fuFHy28TLYbnci6oSL0BhIWmVKWHKi5HQBYQHeu1vsP OEgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=CimNKpHGuhBz8/YtkYj7YyTsMgE8RFgcPMXiyn08maI=; b=Rnxd4mrAgwHu6Fkv2Sfyr7FtX9J8tddWRUrz/CAppavRHxM06/oTTnKQjv83wv//BN q83NoGylSH2iHNxMwz03tzSCdoMkcIDANwPUj/hA/44BotwaYZAGT4TYIRKreSV5lKFE Tp/Nxtc1pP3azkXTzD2MYqfVvt0JDTFb6lQK8FcxaZvba73zmiuuDlqwiz6ZGiV90cop QXtJgG5e5JcqfzqJajwqkNiKMl3OFUaMRi+T9dE5y2dIDindpZiGs7FhpQ+SG/ZTny68 k8ppt8eqkj0UBC5is2yKUCN1ZrN6SSwEEoEq1B3EmxyULC8jEGGpaSzmjnOEwmoQvhCl up2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si1176645pgv.822.2018.02.08.02.48.22; Thu, 08 Feb 2018 02:48:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752022AbeBHKrF (ORCPT + 99 others); Thu, 8 Feb 2018 05:47:05 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:59847 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751079AbeBHKrD (ORCPT ); Thu, 8 Feb 2018 05:47:03 -0500 Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1ejjjG-00032x-M9; Thu, 08 Feb 2018 11:46:58 +0100 Message-ID: <1518086816.4359.4.camel@pengutronix.de> Subject: Re: [PATCH v8 0/7] TDA1997x HDMI video reciver From: Philipp Zabel To: Hans Verkuil , Tim Harvey Cc: linux-media , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo , Steve Longerbeam , Hans Verkuil , Mauro Carvalho Chehab Date: Thu, 08 Feb 2018 11:46:56 +0100 In-Reply-To: References: <1517948874-21681-1-git-send-email-tharvey@gateworks.com> <605fd4a8-43ab-c566-57b6-abb1c9f8f0f8@xs4all.nl> <7cf38465-7a79-5d81-a995-9acfbacf5023@xs4all.nl> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-02-07 at 23:19 +0100, Hans Verkuil wrote: > On 02/07/2018 11:05 PM, Tim Harvey wrote: > > On Wed, Feb 7, 2018 at 1:09 AM, Hans Verkuil wrote: > > > On 02/07/18 09:22, Hans Verkuil wrote: > > > > On 02/07/2018 12:29 AM, Tim Harvey wrote: > > > > > Media Controller ioctls: > > > > > fail: v4l2-test-media.cpp(141): ent.function == > > > > > MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN > > > > > > > > Weird, this shouldn't happen. I'll look into this a bit more. > > > > > > Can you run 'mc_nextgen_test -e -i' and post the output? > > > > > > It's found in contrib/test. > > > > > > > root@ventana:~# ./v4l-utils/contrib/test/mc_nextgen_test -e -i > > Device: imx-media (driver imx-media) > > Bus: > > version: 0 > > number of entities: 24 > > number of interfaces: 24 > > number of pads: 48 > > number of links: 50 > > entity entity#1: 'unknown entity type' adv7180 2-0020, 1 pad(s), 1 source(s) > > entity entity#3: 'unknown entity type' tda19971 2-0048, 1 pad(s), 1 source(s) > > entity entity#5: 'unknown entity type' ipu1_vdic, 3 pad(s), 2 sink(s), > > 1 source(s) > > entity entity#9: 'unknown entity type' ipu2_vdic, 3 pad(s), 2 sink(s), > > 1 source(s) > > entity entity#13: 'unknown entity type' ipu1_ic_prp, 3 pad(s), 1 > > sink(s), 2 source(s) > > entity entity#17: 'unknown entity type' ipu1_ic_prpenc, 2 pad(s), 1 > > sink(s), 1 source(s) > > entity entity#20: 'V4L I/O' ipu1_ic_prpenc capture, 1 pad(s), 1 sink(s) > > entity entity#26: 'unknown entity type' ipu1_ic_prpvf, 2 pad(s), 1 > > sink(s), 1 source(s) > > entity entity#29: 'V4L I/O' ipu1_ic_prpvf capture, 1 pad(s), 1 sink(s) > > entity entity#35: 'unknown entity type' ipu2_ic_prp, 3 pad(s), 1 > > sink(s), 2 source(s) > > entity entity#39: 'unknown entity type' ipu2_ic_prpenc, 2 pad(s), 1 > > sink(s), 1 source(s) > > entity entity#42: 'V4L I/O' ipu2_ic_prpenc capture, 1 pad(s), 1 sink(s) > > entity entity#48: 'unknown entity type' ipu2_ic_prpvf, 2 pad(s), 1 > > sink(s), 1 source(s) > > entity entity#51: 'V4L I/O' ipu2_ic_prpvf capture, 1 pad(s), 1 sink(s) > > entity entity#57: 'unknown entity type' ipu1_csi0, 3 pad(s), 1 > > sink(s), 2 source(s) > > entity entity#61: 'V4L I/O' ipu1_csi0 capture, 1 pad(s), 1 sink(s) > > entity entity#67: 'unknown entity type' ipu1_csi1, 3 pad(s), 1 > > sink(s), 2 source(s) > > entity entity#71: 'V4L I/O' ipu1_csi1 capture, 1 pad(s), 1 sink(s) > > entity entity#77: 'unknown entity type' ipu2_csi0, 3 pad(s), 1 > > sink(s), 2 source(s) > > entity entity#81: 'V4L I/O' ipu2_csi0 capture, 1 pad(s), 1 sink(s) > > entity entity#87: 'unknown entity type' ipu2_csi1, 3 pad(s), 1 > > sink(s), 2 source(s) > > entity entity#91: 'V4L I/O' ipu2_csi1 capture, 1 pad(s), 1 sink(s) > > entity entity#97: 'unknown entity type' ipu1_csi0_mux, 3 pad(s), 2 > > sink(s), 1 source(s) > > entity entity#101: 'unknown entity type' ipu2_csi1_mux, 3 pad(s), 2 > > sink(s), 1 source(s) > > Yuck. So nobody in imx (and adv7180!) is setting a valid function. > And I see the mc_nextgen_test.c doesn't know all the latest functions > anyway. That's probably because for most of the entities it's a bit unclear which function should be assigned. ipu[12]_csi[01]_mux are video multiplexers, so MEDIA_ENT_F_VID_MUX. I thought those should already be set correctly in the video-mux driver. ipu[12]_csi[01] are the interfaces to the outside parallel busses, but they can also 'downscale' by skipping, skip frames and pack or expand pixels from the bus into the internal FIFOs that lead to the next element. These are not MEDIA_ENT_F_VID_IF_BRIDGE, are they? ipu[12]_vdic are mainly deinterlacers, so a new function MEDIA_ENT_F_PROC_VIDEO_DEINTERLACER ? These entities could also be used as composers in a mem2mem scenario (MEDIA_ENT_F_PROC_VIDEO_COMPOSER ?), but this is currently not supported. ipu[12]_ic_prp is just a tee element that feeds both ipu[12]_ic_prpenc and ipu[12]_ic_prpvf. These are both scalers and colorspace converters. MEDIA_ENT_F_PROC_VIDEO_SCALER ? MEDIA_ENT_F_PROC_VIDEO_PIXEL_ENC_CONV ? "ipu[12]_csi[01] capture" are the DMA elements writing to memory, so MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER ? > That's what happens when you don't have compliance tests, nobody bothers > to fill stuff like that in. Anyway, that explains the v4l2-compliance error > you got (although I should improve the error to also mentioned the entity > in question). In other words, it's not you, it's them :-) regards Philipp