Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2046567ybz; Sat, 2 May 2020 13:53:20 -0700 (PDT) X-Google-Smtp-Source: APiQypIGYBqF7k4wM+UhEE0XSqNwV3jSMgi7L/B2LH+JOda8BdhfQolvNb62SzktyWtC4Qe/j0lm X-Received: by 2002:aa7:d342:: with SMTP id m2mr8648938edr.130.1588452800101; Sat, 02 May 2020 13:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588452800; cv=none; d=google.com; s=arc-20160816; b=t+N4LZ8FRva2dBfwjA4kKpRsUgaQqokw5nj4EOuw0ZSoHv7uW7FsL+98RWwd3xclU7 FDkIL+Xd6NDSXc5Q6hfIUVCQ1hN8fhnenpDtqV6R0JMwB19kku8eHMVPy9pIAPgN/Db4 irdeDGCGTQRgkk6i4UbBpW7Sgd9EqNJD7fbx9P2dcKRAxcB/msIAaEv+qIvqdeEgUXGr htvFBTT97kMFV0ggKRwmFWbyZDaeGfMh7hfoveggGsY5mb07MEzaAd/vU37ZMHcjxFzx 3krCQaoarua2q2adwj5mNBn7K759x6t0thMscOR7fwM48SQKzYDfb7IKtr61Rc326OAO 7olQ== 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=7s/4VcNmw1wJVQ1beU53IUkohldspgncL00MxHfRDtc=; b=Jl265SsCaFXs0l29XWtHQud/hNRUC7aejp72Tc3aCbEYP5O+n+S3VOEENmt/Hjx22g lX43d2t7g98AaTj5tnPq3JhEmvc67uC7g4MoyT4AN43hJZTl+zG97QbVzeepO2NSxM95 cQZlT5yOWbDYVXGsqHTRbfrAE+sYZDiyiM5AHO05FbZUBiNgD7AHd7dsMK48d6VE1Mb6 EgMSaZYCYTrkJYLZCD2WqAhqZkanaGVhCmtdetf6G6kSAu1De7RgTPqboaysUZLYgI0a U+1w3yIkAynGEr/ZXeP7GMc8wFe8+F5qUyKce+fmuD+ddeDrSFGbxpdvHV3LTKzyNK6Y BMXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ewx0eis3; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c16si3798721edw.172.2020.05.02.13.52.54; Sat, 02 May 2020 13:53:20 -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=@gmail.com header.s=20161025 header.b=ewx0eis3; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728537AbgEBUsr (ORCPT + 99 others); Sat, 2 May 2020 16:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728472AbgEBUsr (ORCPT ); Sat, 2 May 2020 16:48:47 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C146C061A0C; Sat, 2 May 2020 13:48:46 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id g4so5869996ljl.2; Sat, 02 May 2020 13:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7s/4VcNmw1wJVQ1beU53IUkohldspgncL00MxHfRDtc=; b=ewx0eis3GDwHmOvVENFcmg9kjEyLj36dLMtAzUTSqHgUB+5HxuvcNVZ/egsYw85Khe yNQzEaUOnQlHNTdB9izwQqQE8UAIsvMU+LwNaCln1kjHR9CxmooE5Dsec/eIEEdhftsy qXi235uE3IwSIFP8iLYNwf9xgqSPv1Nvvjrz7PYpGu69m05S7/5ISTl0E5quQ11MDq2m Yxd5H+IKx0XRAxdc5clTC0y+ZnyaBeK71wuy01yklRNvsN8xUePNSjaF76bR0/tfq8q9 9crj4zy4VPswdthr+08b1QZquKkRkB4PZ4TgSNuCpMAqi+vbFg1WEQ+AfFE2PI2ddUzk YilQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7s/4VcNmw1wJVQ1beU53IUkohldspgncL00MxHfRDtc=; b=HOhEDqYoUu3uKufILGLqss7q6EZucAog7DPyBBEOy7cUMgEy8FohhBHx+4bRxp1HgT eC7ojM/mO9f/d4/pgG/cZeaoFjxXMi1BoZN5VlNOYEDohN7NYDamangMBp1VP0aB+4Ct qhLGGn2sesU4GKQ7t6UHKBFkJm+1tB4gkDfC/D8kaSgjuXP+ic9659Z71u6mGci10m5t fMvKdtdypdb9LhLXTDQySjXW1AbAx/V7t8DVfBb0RCMwOiQsAQ4GMlt/Ynk9DrQPS5Q0 CS0u8ZHXzKTIRsV/yQDs+eK84DQaM0+fBFMmhTvvrFB7RRZnTs8ApbxOH5nQFYc9oslI A1+w== X-Gm-Message-State: AGi0PuZrMlN+Tnt7iBuhQT6yiYSK3NzE+W0ZMu+8VLNtO2rHDpGiJHmF BS94qMZLTqH832XwnuVa88N7Pvqy X-Received: by 2002:a05:651c:107a:: with SMTP id y26mr6065337ljm.80.1588452524597; Sat, 02 May 2020 13:48:44 -0700 (PDT) Received: from [192.168.2.145] (ppp91-78-208-152.pppoe.mtu-net.ru. [91.78.208.152]) by smtp.googlemail.com with ESMTPSA id q125sm4572080ljb.34.2020.05.02.13.48.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 May 2020 13:48:43 -0700 (PDT) Subject: Re: [RFC PATCH v11 6/9] media: tegra: Add Tegra210 Video input driver To: Sowjanya Komatineni , thierry.reding@gmail.com, jonathanh@nvidia.com, frankc@nvidia.com, hverkuil@xs4all.nl, sakari.ailus@iki.fi, helen.koike@collabora.com Cc: sboyd@kernel.org, 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: <1588197606-32124-1-git-send-email-skomatineni@nvidia.com> <668d9b65-9590-cc97-41c3-2c1a5cfbbe61@nvidia.com> <289d9c92-383f-3257-de7b-46179724285a@nvidia.com> <9aa64f21-7b23-7228-b5eb-d2ff092682ad@nvidia.com> <668cc4a0-2c81-0d87-b801-9fbf64e19137@nvidia.com> <525e481b-9137-6fdd-bbf9-3779a5704e6b@nvidia.com> <4f095181-2338-3b71-316c-f8bbfc7865cc@nvidia.com> <50e872bb-913a-7b47-3264-af6b1cedb0e2@nvidia.com> <6ae2d00d-7955-d12b-5b56-955ef72ece26@nvidia.com> <1767e50f-efb7-5e89-22f6-0917821b660d@nvidia.com> <235a4cd4-4d4a-04b8-6c65-43a4dba48a0b@nvidia.com> <5d847770-dad9-8f18-67b5-c1ba79084957@nvidia.com> From: Dmitry Osipenko Message-ID: <4abf30e0-fed9-ba39-ae38-350789bce99d@gmail.com> Date: Sat, 2 May 2020 23:48:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <5d847770-dad9-8f18-67b5-c1ba79084957@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 02.05.2020 19:55, Sowjanya Komatineni пишет: > Also stop stream ioctl request happens during suspend where both threads > will be stopped properly. done thread stop happens only after finishing > all outstanding buffers. Do you mean that V4L core takes care of stopping the streami on suspend and re-starting it on resume from suspend? > Stop stream request happens from streaming applications so even without > driver suspend/resume implementation currently, streaming will be > stopped prior to system  suspend where both threads will be stopped > properly (after finishing out standing buffers) and will be resumed by > application on system resume All userspace is frozen on suspend. System suspension is transparent for userspace applications. I'm not sure what you're meaning here. > Also tested suspending while streaming with this unconditional freeze, I > don't see any issue as application stops stream where v4l_streamoff gets > executed during suspend and on resume streaming starts where > v4l_streamon happens. > > So, I don't see any issue with existing implementation of unconditional > freeze. I don't understand why freezing is needed at all if V4L core takes care of stopping the stream on suspend, what is the point? If there is no real point, then let's make threads non-freezable and done with that.