Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp887821pxk; Sat, 12 Sep 2020 03:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBY+JtENEnk4/IcHVpaH01TMxtGeGuQ2sDt91w9KxAmqRFnIMUXyyGqq339zbj+oKsT5de X-Received: by 2002:a50:f418:: with SMTP id r24mr7618341edm.295.1599907843009; Sat, 12 Sep 2020 03:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599907843; cv=none; d=google.com; s=arc-20160816; b=QjoK8knROf4PqOqEJmgGQ+TA9g+s8dWGfGk6nItPF/PlLjLnqHO4LYArJ8B9NL23nv LQ2dRQmq/w3nteG0eu5fUuIWPz7K6yvN9bjBD1lsE3iJ/W6TIGptGDkJ/J0JWkm9Yhey FxsFrOjAr3LFqkCedS3hki1dnu0CZJz9BEgutnUCbhXAUhzPOZMnIYu+VpiUn65q4DkT 6PHGrgNuRmD/du1DGHz+7IInA/kpEOZKUxOgnzvka81MhVXVanqZUM0kVDbcssOU4omn M0Kbzn+PPlBgdZy76wCZn0Sxm6ONmtlbDSDucjJ953AwDHCCQ+cptnyd5x8cAz0SLokP ILtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ISGeX+oAmnEEghLwemM0/pol4ZXYMJRToq8cwGFBgBk=; b=Va6z+xlVg9Uru8Xv+boTGR+w79Ht7BKV7j01A1Fmkw6DnrRcurScDzACwf/z3lK91B 837GkJtrz4O0Kz3dKnU87I31fhRJW8tMM3qds9U7FIMc4Ngpyn+x3I5WXL33gDIZ5OT6 +hJw1mZKeAKiOJV84GD0wy31hZV3VS28n5odE/MXMjmaO0Fn+ow+92mzhCy2r9E1f4f6 x2rY3Ezxn1b1TTLMP2Yrk3uvDfVfsy+mbsapWIu/x0HBSEGt11xZtigmg1Dq/1spU3v7 9ggMTOF39k46WeIQ2VQH2QTHY3StPVgo1J5Zb2UO1x08nhiS4OK2eJ8/zVI3ZSGZwObR aefQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=toO4VsOj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si3159625edo.218.2020.09.12.03.50.19; Sat, 12 Sep 2020 03:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=toO4VsOj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725854AbgILKta (ORCPT + 99 others); Sat, 12 Sep 2020 06:49:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbgILKt2 (ORCPT ); Sat, 12 Sep 2020 06:49:28 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF43C061573 for ; Sat, 12 Sep 2020 03:49:28 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id a9so2979354pjg.1 for ; Sat, 12 Sep 2020 03:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=es-iitr-ac-in.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ISGeX+oAmnEEghLwemM0/pol4ZXYMJRToq8cwGFBgBk=; b=toO4VsOj4YdqEEyfpcBXP/p17h1Yw0lw3mFX5MGzEBwBt9tWvjbfL15FInsar/iZGa pAldd+XExjm60LVIyj5DChl89LRsl6NrJm5Apg4WYC5QjmVjSoir8O0vQb9X7XIk3cr9 z+Zy1DifeViubswPxdWD7eG+3inSgNTXql9uZjhMvBrRvJz4Eb9aEoV7kp1MDlWyy9S2 xnUFONnjSNTJPIPKo6Tk7I0WZc/kYNL+BM68HOlPEe1lxPyT0lucxUoAHuIS7J1BYEVN GakNHdQZ/y/H/Qx15HyZotGJ2hivtL9F02RAvs+U67dNhlPuEwLDyJliKGK7nvwXoRmw nMrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ISGeX+oAmnEEghLwemM0/pol4ZXYMJRToq8cwGFBgBk=; b=TjHiV/kQTQ9JXtnLpYBxqW2KcBWD1SYs1nafal1kecXih6J14WKVB2TgVIi0KkqT5S im7zi5XNfgysOWNt9mlZJI1ASM0PUtMR+TyhQlocJfokVZflxGieTmKhuQb1H4sn0Gwu 9nnBxmkLAX3fMrqlwnr6h1n7g0km/K+Hmbj00Qa93Wn2i2pJVVp5gZPKiPpojR6VD5i5 wTfd4O7eAO3SuvTGQjEdCbfV8BfgPqs4qb5pvIcS+tS288YsVUc7j1jVYlp68UCqbabt n4mBVO1ixvML84quBa3IDUNX83J6pONu1IkXOWiC90BvG2LvaAvj+jowjyLBQg6pM/MI Lq8Q== X-Gm-Message-State: AOAM531n9M5RrzBDKGAJvZcWLMjbiZNau3gp7PH41C9RA8gk/abGm+zJ NxpWOTyl6FDPSgIyUIlc8Aq0Fw== X-Received: by 2002:a17:90b:793:: with SMTP id l19mr6065203pjz.154.1599907768076; Sat, 12 Sep 2020 03:49:28 -0700 (PDT) Received: from kaaira-HP-Pavilion-Notebook ([2405:201:6801:484c:954a:305:9758:cc93]) by smtp.gmail.com with ESMTPSA id a24sm4169063pju.25.2020.09.12.03.49.25 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 12 Sep 2020 03:49:27 -0700 (PDT) Date: Sat, 12 Sep 2020 16:19:22 +0530 From: Kaaira Gupta To: Kieran Bingham Cc: Helen Koike , Shuah Khan , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/9] media: vimc: Multiple stream support in vimc Message-ID: <20200912104922.GG5022@kaaira-HP-Pavilion-Notebook> References: <20200819180442.11630-1-kgupta@es.iitr.ac.in> <3e374418-0ea1-783a-3943-0a0921d40725@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3e374418-0ea1-783a-3943-0a0921d40725@ideasonboard.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 02, 2020 at 11:51:59AM +0100, Kieran Bingham wrote: > Hi Kaaira, > > Thank you for this series. > > I have tested it, and indeed it works well, which is great work. > I know this has been hard to debug some of the code paths! Thanks for testing and helping! :D > > There are a few bits that are hard for me to understand, with the graph > walking/initialisation - so I think either some better comments or > refactoring might help there - and Dafna has suggested that there might > be a useful helper which will assist too. That needs to be checked > though, as I think your 'streamer' needs to have full visibility of the > whole pipeline, rather than just a single stream. > > I wonder if it would help to rename it to make that clearer, as > 'vimc_stream' sounds like it deals with only a single stream - but now > it deals with multiple - so the naming is a bit confusing. Hm, I too think that the name is confusing and doesn't show the correct context..is vimc_streamer_referance a better name? What name do you suggest? Thanks, Kaaira > > -- > Kieran > > On 19/08/2020 19:04, Kaaira Gupta wrote: > > This series adds supoort for two (or more) capture devices to be > > connected to the same sensors and run simultaneously. > > > > Changes since v2: > > - This series introduces new patches, namely patch 1, 2, 4, 5, > > 7, and 9 to shift multiple captures to operate at a single > > thread. > > > > Kaaira Gupta (7): > > media: vimc: Move get_source_entity to vimc-common > > media: vimc: Add get_frame callback > > media: vimc: Separate starting stream from pipeline initialisation > > media: vimc: Separate closing of stream and thread > > media: vimc: Dynamically allocate stream struct > > media: vimc: Join pipeline if one already exists > > media: vimc: Run multiple captures on same thread > > > > Niklas S?derlund (2): > > media: vimc: Add usage count to subdevices > > media: vimc: Serialize vimc_streamer_s_stream() > > > > .../media/test-drivers/vimc/vimc-capture.c | 42 +++- > > drivers/media/test-drivers/vimc/vimc-common.c | 14 ++ > > drivers/media/test-drivers/vimc/vimc-common.h | 21 +- > > .../media/test-drivers/vimc/vimc-debayer.c | 26 ++- > > drivers/media/test-drivers/vimc/vimc-scaler.c | 25 +- > > drivers/media/test-drivers/vimc/vimc-sensor.c | 17 +- > > .../media/test-drivers/vimc/vimc-streamer.c | 213 ++++++++++++------ > > .../media/test-drivers/vimc/vimc-streamer.h | 2 + > > 8 files changed, 271 insertions(+), 89 deletions(-) > > > > -- > Regards > -- > Kieran