Received: by 10.192.165.148 with SMTP id m20csp2721702imm; Sun, 6 May 2018 23:14:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpu7f8+JXTNXcfgbVR3/kayQSX+owOgiZABaW8iPuxa60JQ6aSoJ13HojKeJHY83Q3nNX2+ X-Received: by 2002:a17:902:189:: with SMTP id b9-v6mr37226194plb.204.1525673655584; Sun, 06 May 2018 23:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525673655; cv=none; d=google.com; s=arc-20160816; b=LF6YLvGGY1KYd+pkKbDndOvwPIaPJaLyIutWXN3ZLY6w5lUMen2IRsJdHzqw38rVa3 03AUixDq3VXxvdOROYbYvYWkw1lhkkMFzeN+lRq8GyDc01VhLZnvoI+wk3czfD7sqaVA x4Sy443XTrppU6lLLqROnocCjMz/2pFk/ga/Zv/qlvQZ9M+9qXTc/pBE0zOr+QIpGwht 9xt5f9qDIWbDvQQ49vNlWmLvQqb6bddOTQV3eeY1RTB5TZ2E6fNrWZdhdI8k4UePdTdP F6NaC/K2mc4NlsM9I+QJGIJHuDlSoESmJsOZPhO4+AeemFdR6IZTTINujf6AtMciGHYN YScA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=2LBmJ/eCLitldWCqv0i1fdZzbhgvy7GUrseC6rEqDEo=; b=RKT3BJNwe3OaFOJWJNgiTbJ0KfCyt/BGWNv/LXTmtSf70MW16B3/KWzjOIdxQc5+qx RH5BxhDnpSTD+Jh/+g51EMfVU5/DjHQlp7ZUNhJvYBE6SoCnIwC+vOmdxePFdxDq858Y ZJ1n9yIrB2vYyq0uESHnQknzPmAr6VeM/+vTNHPI6uRSBnNdYwm2m1ys700yWtlJw6Ob n8pe+f89Hdj38kEW8dw7kMvhfkxpY9ZpP8VRSQ4hBGDy6fKRaihTbfzuKchrhzEfXEkG vNFzCfejsrppbUbRuxj5w8V26sLqpEJniVG7iDIJIpSJ+HSm+fKHoLFOX1s7hhO9E8bI 2rVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aaP168fD; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i71-v6si17428391pge.436.2018.05.06.23.14.00; Sun, 06 May 2018 23:14:15 -0700 (PDT) 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=@chromium.org header.s=google header.b=aaP168fD; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751891AbeEGGNp (ORCPT + 99 others); Mon, 7 May 2018 02:13:45 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:39800 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbeEGGNl (ORCPT ); Mon, 7 May 2018 02:13:41 -0400 Received: by mail-vk0-f68.google.com with SMTP id g83-v6so16745473vkc.6 for ; Sun, 06 May 2018 23:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2LBmJ/eCLitldWCqv0i1fdZzbhgvy7GUrseC6rEqDEo=; b=aaP168fDeP7aaMu4j8AGYqLapt/z/CcbGg+0ADm0wodMPeoU/IHQmlfi4c40f0Saku QZmIUG7qJCFoZn6qJpaRc1uQAg7zXAFDYqBoP6bnn6FoCDt4A02pkvYvKGgCa0L0wCac tWEjkN6l8pCkdPw/gvwmRnkxEvv72Pj7ePHSY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2LBmJ/eCLitldWCqv0i1fdZzbhgvy7GUrseC6rEqDEo=; b=RE2in5EM/3TptA11SvKwXb07QQcNZeWisBjTS0ik9FQ13aREO4vjt46fdRE1ZN5jCQ d/CCW9ioB7MRBw+2m0w1TckBDVkAaE5uAb+aAGytHHml0eOQi2ZJbn+7IFfsnX2eetI+ n/daqEp3p2+8q/Smw+BAeuSg4qI72rmODgf2BiePoBA02dftXNsg407OVWGFSvsmj6ZZ W8CSmUcrGyGgip1T9z6LMAiwQjyS02FKzmLKnwHqpUnWSCyvvnTWBe0hMrLe8AZCJLDj VGCmdtTnpCGV3awmBqr+F5n8vRvZ5uzU8fevmiUAynbELOto816cSpz8alXbZEnyhpVY ua7w== X-Gm-Message-State: ALQs6tAS0y3hNdnH2Pmdo0cSZTgXLThrfKbA3CghgRlbc5X5fyfFED7y fQ0tB9XC2AyKUReXs5MBn6i8XjVA2p4= X-Received: by 2002:a1f:218b:: with SMTP id h133-v6mr29871921vkh.31.1525673620207; Sun, 06 May 2018 23:13:40 -0700 (PDT) Received: from mail-ua0-f170.google.com (mail-ua0-f170.google.com. [209.85.217.170]) by smtp.gmail.com with ESMTPSA id 100sm4926951uad.50.2018.05.06.23.13.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 23:13:39 -0700 (PDT) Received: by mail-ua0-f170.google.com with SMTP id y8so17646270ual.5 for ; Sun, 06 May 2018 23:13:38 -0700 (PDT) X-Received: by 10.176.49.150 with SMTP id d22mr30825827uan.51.1525673617898; Sun, 06 May 2018 23:13:37 -0700 (PDT) MIME-Version: 1.0 References: <20180308094807.9443-1-jacob-chen@iotwrt.com> <20180308094807.9443-6-jacob-chen@iotwrt.com> <20180503090909.o3dyhukzs2y7em5z@tarshish> In-Reply-To: <20180503090909.o3dyhukzs2y7em5z@tarshish> From: Tomasz Figa Date: Mon, 07 May 2018 06:13:27 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 05/17] media: rkisp1: add Rockchip ISP1 subdev driver To: baruch@tkos.co.il Cc: Jacob Chen , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Mauro Carvalho Chehab , Linux Media Mailing List , Sakari Ailus , Hans Verkuil , Shunqian Zheng , Laurent Pinchart , =?UTF-8?B?6ZKf5Lul5bSH?= , Eddie Cai , Jeffy , devicetree@vger.kernel.org, =?UTF-8?Q?Heiko_St=C3=BCbner?= , Chen Jacob , =?UTF-8?B?6ZmI5Z+O?= , Allon Huang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Baruch, On Thu, May 3, 2018 at 6:09 PM Baruch Siach wrote: > Hi Jacob, > On Thu, Mar 08, 2018 at 05:47:55PM +0800, Jacob Chen wrote: > > +static int rkisp1_isp_sd_s_power(struct v4l2_subdev *sd, int on) > > +{ > > + struct rkisp1_device *isp_dev = sd_to_isp_dev(sd); > > + int ret; > > + > > + v4l2_dbg(1, rkisp1_debug, &isp_dev->v4l2_dev, "s_power: %d\n", on); > > + > > + if (on) { > > + ret = pm_runtime_get_sync(isp_dev->dev); > > + if (ret < 0) > > + return ret; > > + > > + rkisp1_config_clk(isp_dev); > > + } else { > > + ret = pm_runtime_put(isp_dev->dev); > I commented this line out to make more than one STREAMON work. Otherwise, the > second STREAMON hangs. I guess the bug is not this driver. Probably something > in drivers/soc/rockchip/pm_domains.c. Just noting that in case you or someone > on Cc would like to investigate it further. > I tested v4.16-rc4 on the Tinkerboard. Looks like that version doesn't include the IOMMU PM and clock handling rework [1], which should fix a lot of runtime PM issues. FWIW, linux-next seems to already include it. [1] https://lkml.org/lkml/2018/3/23/44 Best regards, Tomasz