Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4786696ybl; Tue, 4 Feb 2020 01:53:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzi17KRvPsxSAa1mAUmIyzMIHQwrHQy5yDRtR6V/P5T0hk17W5Zs0h9iFdHuBqqAzCVFpAW X-Received: by 2002:aca:f1c6:: with SMTP id p189mr2975863oih.159.1580810003659; Tue, 04 Feb 2020 01:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580810003; cv=none; d=google.com; s=arc-20160816; b=mRLdY2O79jZOIF5u4zm3L21UTsiwEYez8U3u1tWmv98c0eUUSjp5AAjj77uRtypBWx mS7mcEiPkU4pviB4omIDq1prdFZ96lq5NJ9gNl5+pM11F2O43DRUbrbFFSRdVKjMd+WW Jn3MdTQngRGQoHW4ZUzLHEnOQlY2+Z8MrpNel61TIezG9rnu5mT3VMufPFe//+IPlSSB hlK6JLGkqfPi821ofFw9bh5zApEL8sPcqzGNT8sOqx33JkJBGWx0A896/FIQtP2tTKm/ ABsWcL7h2cfNYe99tioHN1ixiymPLPiUc1y+ik+WSU3A2mrFsRIqe1zIJfNhRDsZWfZI p5rQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=udrDG7W7XxVlZg9dFBjVJa1SeinJFWf8PYu2s1ZBzEE=; b=YCt6yCN6grV/fd2RI9CP9p4S0/VUGKI7D+HRW6qgbgqWYK+ODW9FZTUbWMk6h0TAte HxLldkP5/ESOPcT7Gvej2yugiO0FRIiyW3z7Lq9N+ML2NUSKTBDJQDO5x7g3xIFs8tZF 1ool/gUScSyEKE794eG33gmy3MV1xQsuik4IlPFjVhCLqn4NpChqiZcpVXhJf82mxRx1 gvdqJndYRLkxyi81XT5+Kjfo5CpmCA1SDzG9cYCGuM3zGUn1m5fTrCtlyT1iGRymzHEg x/wT7AXJUiu6+jqCfFJIaCJy0+WTibIzLHmYg/wZnY8XhRLw0zOYVqJW1qtxbV0VODsY +FNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b=HK499qij; 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 k125si10882637oib.212.2020.02.04.01.53.11; Tue, 04 Feb 2020 01:53:23 -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; dkim=pass header.i=@xs4all.nl header.s=s1 header.b=HK499qij; 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 S1726975AbgBDJvF (ORCPT + 99 others); Tue, 4 Feb 2020 04:51:05 -0500 Received: from lb1-smtp-cloud7.xs4all.net ([194.109.24.24]:46633 "EHLO lb1-smtp-cloud7.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbgBDJvE (ORCPT ); Tue, 4 Feb 2020 04:51:04 -0500 Received: from [IPv6:2001:420:44c1:2577:c522:bb58:9147:43ff] ([IPv6:2001:420:44c1:2577:c522:bb58:9147:43ff]) by smtp-cloud7.xs4all.net with ESMTPA id yurBiQflTVuxOyurFiI8yZ; Tue, 04 Feb 2020 10:51:01 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1580809861; bh=udrDG7W7XxVlZg9dFBjVJa1SeinJFWf8PYu2s1ZBzEE=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=HK499qijLMt0d3NsJ/R6CALFLgIH5TPDKLVv3JotVW7E7jZ07nDX/u+G3KPwDGiya 4vO23Pn04jCbJi6EvdQs9zHPgm/gaq7SPu1V1vcxUy6lHQbMxg4I6sahHsRi+zfTQj OlBSokrE5w+DUmlQcCjjnkKOK2C+brr7gVNvAFop+zpL5UXbuooWaXd0/JdVlheRAT WSE2ytobns3p7mUHPWFQ+eBzzs54fwXOfF4uZDMWcwgm/kMPMz44GEH+lILGNNy1wB BdYCKaK1svlIxvF8PyWmJJvrOHO6jzJ4YgYSL2nFmktclMlk08Wo+AM9lmyPf7R+DP KlTsvzXhDJ6uA== Subject: Re: [RFC PATCH v1 0/5] Add Tegra driver for video capture To: Thierry Reding Cc: Sowjanya Komatineni , jonathanh@nvidia.com, frankc@nvidia.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <1580235801-4129-1-git-send-email-skomatineni@nvidia.com> <20200130154246.GA2904678@ulmo> <8654e6fd-c403-6e68-e5cf-09297b5d8b5d@xs4all.nl> <20200131170351.GA3444092@ulmo> From: Hans Verkuil Message-ID: Date: Tue, 4 Feb 2020 10:50:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200131170351.GA3444092@ulmo> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfE57kH2nPdi6RuL5Tj6iVOgBB0zQcKUPr7DSyqTUxljwxpmmpytfaq19V/tG1nCy/2R9YUpxBlmWXq14r7ylSGpMXGwLU42dekPcaxldoLur6pV9KZyV bmZ3MXgxDSVJZDaKgt7TNK5D66zRoiaCRZX5ad8dvMCxEXluNKfGp5uFyV/FQYVU142nJVOFaH08xF2mBEqHFhjdE40AvLtxGARg3NkLqb4QAmPq7yJibDpd jbYvK+HxyYndRWamV7nImM/+YIe0B2UCXpV6EZYNAnC4mOl9kUte1dh5SLAr3gofV2EZC7tm/sSsMnI0nhbNf21TWdbNVNnypNqOyypbnfhnjQnjLrGOtt5z tI6TLNg3Ay3dhmS4IsjnfvfaJSyYMWgrFOGIwXRD5gmihhhAXZzUSZbJwyZoGamDeTKx6nnP8koFBr1Z+lrwCtO62ecn3QYrRGS0WPqTLjct/wdBuGrVD6Tx KZogcjGuaBQxB6g1SerbtTxl7YLyikSGJnSr1cgzLspZhnYRBQ+lgkqSKEia61J+FK2Yc5aVd0iwOep+TuQHNmUjKWZt9RJG4i9OvrbsZGroHLFI3iqtPTIr BT8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/31/20 6:03 PM, Thierry Reding wrote: > On Fri, Jan 31, 2020 at 03:29:52PM +0100, Hans Verkuil wrote: >> On 1/30/20 4:42 PM, Thierry Reding wrote: >>> On Thu, Jan 30, 2020 at 03:41:50PM +0100, Hans Verkuil wrote: >>>> Hi Sowjanya, >>>> >>>> On 1/28/20 7:23 PM, Sowjanya Komatineni wrote: >>>>> This series adds Tegra210 VI and CSI driver for built-in test pattern >>>>> generator (TPG) capture. >>>>> >>>>> Tegra210 supports max 6 channels on VI and 6 ports on CSI where each >>>>> CSI port is one-to-one mapped to VI channel for video capture. >>>>> >>>>> This series has TPG support only where it creates hard media links >>>>> between CSI subdevice and VI video device without device graphs. >>>>> >>>>> v4l2-compliance results are available below the patch diff. >>>>> >>>>> [v0]: Includes, >>>>> - Adds CSI TPG clock to Tegra210 clock driver >>>>> - Host1x video driver with VI and CSI clients. >>>>> - Support for Tegra210 only. >>>>> - VI CSI TPG support with hard media links in driver. >>>>> - Video formats supported by Tegra210 VI >>>>> - CSI TPG supported video formats >>>> >>>> I'm trying to compile this patch series using the media_tree master >>>> branch (https://git.linuxtv.org//media_tree.git), but it fails: >>>> >>>> drivers/staging/media/tegra/tegra-channel.c: In function ‘tegra_channel_queue_setup’: >>>> drivers/staging/media/tegra/tegra-channel.c:71:15: warning: unused variable ‘count’ [-Wunused-variable] >>>> 71 | unsigned int count = *nbuffers; >>>> | ^~~~~ >>>> drivers/staging/media/tegra/tegra-channel.c: In function ‘tegra_channel_init’: >>>> drivers/staging/media/tegra/tegra-channel.c:518:55: error: ‘struct host1x_client’ has no member named ‘host’ >>>> 518 | struct tegra_camera *cam = dev_get_drvdata(vi->client.host); >>>> | ^ >>>> make[4]: *** [scripts/Makefile.build:265: drivers/staging/media/tegra/tegra-channel.o] Error 1 >>>> make[4]: *** Waiting for unfinished jobs.... >>>> drivers/staging/media/tegra/tegra-vi.c: In function ‘tegra_vi_tpg_graph_init’: >>>> drivers/staging/media/tegra/tegra-vi.c:157:55: error: ‘struct host1x_client’ has no member named ‘host’ >>>> 157 | struct tegra_camera *cam = dev_get_drvdata(vi->client.host); >>>> | ^ >>>> drivers/staging/media/tegra/tegra-vi.c: In function ‘tegra_vi_init’: >>>> drivers/staging/media/tegra/tegra-csi.c: In function ‘tegra_csi_init’: >>>> drivers/staging/media/tegra/tegra-vi.c:213:51: error: ‘struct host1x_client’ has no member named ‘host’ >>>> 213 | struct tegra_camera *cam = dev_get_drvdata(client->host); >>>> | ^~ >>>> drivers/staging/media/tegra/tegra-csi.c:259:51: error: ‘struct host1x_client’ has no member named ‘host’ >>>> 259 | struct tegra_camera *cam = dev_get_drvdata(client->host); >>>> | ^~ >>>> drivers/staging/media/tegra/tegra-vi.c: In function ‘tegra_vi_exit’: >>>> drivers/staging/media/tegra/tegra-vi.c:246:51: error: ‘struct host1x_client’ has no member named ‘host’ >>>> 246 | struct tegra_camera *cam = dev_get_drvdata(client->host); >>>> | ^~ >>>> drivers/staging/media/tegra/tegra-csi.c: In function ‘tegra_csi_exit’: >>>> drivers/staging/media/tegra/tegra-csi.c:286:51: error: ‘struct host1x_client’ has no member named ‘host’ >>>> 286 | struct tegra_camera *cam = dev_get_drvdata(client->host); >>>> | ^~ >>>> >>>> And indeed, struct host1x_client as defined in include/linux/host1x.h doesn't >>>> have a 'host' field. >>>> >>>> Does this series depend on another patch that's not yet in mainline? >>> >>> Sowjanya's been working on top of linux-next, so, yes, this patch >>> depends on a change that's been merged into the DRM tree for v5.6-rc1. >>> >>> Thierry >>> >> >> Is there a specific linux-next tag that works? I tried next-20200131 but that >> failed to boot. Same problem with the mainline repo since the host1x patches >> were merged yesterday. It compiles fine, but the boot just stops. Or am I >> missing some kernel config that is now important to have? > > linux-next and mainline are currently regressing on Tegra210 (and some > Tegra124) boards. I just sent out a series that fixes the regression for > me: > > http://patchwork.ozlabs.org/project/linux-tegra/list/?series=156215 > > Please test if this works for you. If so, I'll send this to Dave as soon > as possible. Tested-by: Hans Verkuil Thank you, now it boots on mainline + this series + the new VI/CSI driver. Regards, Hans > > Thierry >