Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1984449ybl; Thu, 30 Jan 2020 09:21:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzwQOVyV9HoQyR3SZMxAsJWUP80CJHy54GJkfV3ZK9RKrgVcL7+LeYh7HdsL7NlOHGHGq+a X-Received: by 2002:a05:6808:8ca:: with SMTP id k10mr3556382oij.164.1580404914542; Thu, 30 Jan 2020 09:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580404914; cv=none; d=google.com; s=arc-20160816; b=d36EOrz85MRz3lhaDXIrGA779PbOv5QP15pQd6gciDxsSotGzNSsHp+K2nUVJbXRuP UpwmHg5m0SSQHqMa/aNXtPd6aK9Fw0kDkeMVNMkUBACxN0EaENUMdh+CPwvt23RwPq1Z ub16poMstuq7GQ6qxmdk2MjtPJxLxMldpfpbU7Nivr25ehJaAWvKAwoCRXgxI/v7NVgE EmwuLebe2I5ZDtoS5VaRaXxZel4IO/D93IU7RjeRCByKASE0Y7Dq0flkmwuUjL85yGa3 q4m82hXXqh+FC2RmpoHbKvdDGijfZk2veqi/NDDP9sxQrHtXWsO/YkU6q8lgiDw3lz89 QylA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=VvGI4mzL1+D2T1N0XX+UlimGE29f1CsZgH7u4Tm3tQI=; b=VZqhZuPnP+mLRyKcntw+2uPpdfpXg5YaVM/e4ED0mQppaHRlo/wYro4pyNr/+7i2rc Avt/jNRpzUNhb8xvfXAeqnJg6mKE71Gu3setfR8Wuzu5ts+RhohWcaqDiXYxdYf/YvpV Ee5W9O5hWg4DUgQbf2kRTOCOh+xKrjGlqZAM4FJvzJYVwPP73hxSYGi0xVfoHAeETTh6 U6AojBtrOxaYRvc/Btt2e3Mo40q106MEXLTyVwoxMTX86ix0EZ0myXhTYHxMCnJ1edGk lNr7QyEpoZtZdu8pJaWBR0tARm+vh87gQ08zhVptdbVgOAuyIDAzE1CzsVA5IDCilep0 Za9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=UPPHupye; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si3647448otp.129.2020.01.30.09.21.42; Thu, 30 Jan 2020 09:21:54 -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=@nvidia.com header.s=n1 header.b=UPPHupye; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727507AbgA3RUl (ORCPT + 99 others); Thu, 30 Jan 2020 12:20:41 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:16987 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727247AbgA3RUl (ORCPT ); Thu, 30 Jan 2020 12:20:41 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 30 Jan 2020 09:20:25 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 30 Jan 2020 09:20:40 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 30 Jan 2020 09:20:40 -0800 Received: from [10.2.164.115] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 30 Jan 2020 17:20:39 +0000 Subject: Re: [RFC PATCH v1 0/5] Add Tegra driver for video capture To: Hans Verkuil , , , CC: , , , , References: <1580235801-4129-1-git-send-email-skomatineni@nvidia.com> From: Sowjanya Komatineni Message-ID: <845c362b-e164-58eb-118c-e779be8dd4e2@nvidia.com> Date: Thu, 30 Jan 2020 09:20:38 -0800 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: X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1580404826; bh=VvGI4mzL1+D2T1N0XX+UlimGE29f1CsZgH7u4Tm3tQI=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=UPPHupye+Yz8JTINjMcHQNHBYPrRzgHvy3kVPYf8ek8dbqNs/OhIKW+uUIaZp8WSA KvFGL5KiIutVz+9vwOBk1ZUnJXXBG+JPhhRW404mwP3ZFyk4OQZA+MJZ81bSss01p0 9A3S1KQ3tmp+ruZPauZGSYLA4hv5MRRa/NPSKfCC7i4VKbW7zmbnVEqnioG9t0ywy6 Di1jonjMX/3v3HiLdupWP5ZdorVqq9oILzadc1GOs3O8WV636rlx0BNvluz+LCUBLQ 1nBq/u3OSqYTYepdmhNKGlrXI0m++gHSXpjgcmJgwXHBx8UuIL847cIcDEfJJbYm7J LqFsQx1cV8amQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I noticed the warning in queue_setup and will be removed in v2. But errors are related to not using latest host1x driver. latest host1x=20 driver changed parent member to host. So vi/csi driver also uses new member name host. Probably media_tree=20 don't have latest host1x driver On 1/30/20 6:41 AM, Hans Verkuil wrote: > External email: Use caution opening links or attachments > > > 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 =E2=80=98tegra_c= hannel_queue_setup=E2=80=99: > drivers/staging/media/tegra/tegra-channel.c:71:15: warning: unused variab= le =E2=80=98count=E2=80=99 [-Wunused-variable] > 71 | unsigned int count =3D *nbuffers; > | ^~~~~ > drivers/staging/media/tegra/tegra-channel.c: In function =E2=80=98tegra_c= hannel_init=E2=80=99: > drivers/staging/media/tegra/tegra-channel.c:518:55: error: =E2=80=98struc= t host1x_client=E2=80=99 has no member named =E2=80=98host=E2=80=99 > 518 | struct tegra_camera *cam =3D dev_get_drvdata(vi->client.host); > | ^ > make[4]: *** [scripts/Makefile.build:265: drivers/staging/media/tegra/teg= ra-channel.o] Error 1 > make[4]: *** Waiting for unfinished jobs.... > drivers/staging/media/tegra/tegra-vi.c: In function =E2=80=98tegra_vi_tpg= _graph_init=E2=80=99: > drivers/staging/media/tegra/tegra-vi.c:157:55: error: =E2=80=98struct hos= t1x_client=E2=80=99 has no member named =E2=80=98host=E2=80=99 > 157 | struct tegra_camera *cam =3D dev_get_drvdata(vi->client.host); > | ^ > drivers/staging/media/tegra/tegra-vi.c: In function =E2=80=98tegra_vi_ini= t=E2=80=99: > drivers/staging/media/tegra/tegra-csi.c: In function =E2=80=98tegra_csi_i= nit=E2=80=99: > drivers/staging/media/tegra/tegra-vi.c:213:51: error: =E2=80=98struct hos= t1x_client=E2=80=99 has no member named =E2=80=98host=E2=80=99 > 213 | struct tegra_camera *cam =3D dev_get_drvdata(client->host); > | ^~ > drivers/staging/media/tegra/tegra-csi.c:259:51: error: =E2=80=98struct ho= st1x_client=E2=80=99 has no member named =E2=80=98host=E2=80=99 > 259 | struct tegra_camera *cam =3D dev_get_drvdata(client->host); > | ^~ > drivers/staging/media/tegra/tegra-vi.c: In function =E2=80=98tegra_vi_exi= t=E2=80=99: > drivers/staging/media/tegra/tegra-vi.c:246:51: error: =E2=80=98struct hos= t1x_client=E2=80=99 has no member named =E2=80=98host=E2=80=99 > 246 | struct tegra_camera *cam =3D dev_get_drvdata(client->host); > | ^~ > drivers/staging/media/tegra/tegra-csi.c: In function =E2=80=98tegra_csi_e= xit=E2=80=99: > drivers/staging/media/tegra/tegra-csi.c:286:51: error: =E2=80=98struct ho= st1x_client=E2=80=99 has no member named =E2=80=98host=E2=80=99 > 286 | struct tegra_camera *cam =3D dev_get_drvdata(client->host); > | ^~ > > And indeed, struct host1x_client as defined in include/linux/host1x.h doe= sn't > have a 'host' field. > > Does this series depend on another patch that's not yet in mainline? > > Regards, > > Hans