Received: by 10.192.165.148 with SMTP id m20csp2738554imm; Sun, 6 May 2018 23:38:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpdfxSD0k3h/MXnBisGVJ7Imo86PwNNWKHP4QaMA56Ac5q7gZ3jA/OfybdPmCTLPFmK3hcx X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr27204023plk.41.1525675129947; Sun, 06 May 2018 23:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525675129; cv=none; d=google.com; s=arc-20160816; b=oIOT/qgagd5BcIDt6wFp+Y9e2ZzYSvTvOzbUASxhGTAlPxUm33O83nC330PiOljHlu W2GKLo799eLbkc+TbzcGqKY2Pp1zE9H9Bf926fv3yaKfqYmpYmT3quAh/9LbEF4gBm80 nafY/f36BUGAoe7FD5QR5Bckz16EH6qOI+8BcQsp8vO8I9pXTqwU8BVwZsW1U7GH1c0E NeD/lYr/tgI4xWZTc/OeKxktU7vjD1wSU19NZPUf94tXHW43rvNF7kzE+JNQ0yu4vnHE KjH3l2A4czYXwsErkMYOofQmEKblhkHq2TCqobbcg8GohaGBwTmtZwLvtqR1+pAqFjb4 AKDw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=FciUKzsXZUufywSXJJBJ72wyAr4Bv/HiviIwr3jXBJo=; b=lZE4LxNZe2mmylf0LSf5Or6qyWDrnsKrVjVHOYfF62RmjKTWiCGkze9HJ8Tq4hdjxF YLRvGI2TQg+ZMnaInah/7URqc0i5FaQXVZdjVsodItWEGnWjBXqeJdTCMQY8pbce5WJ7 /mhb0jjJgIbw6uwKz1G5w6ehAvwy3KZiVm6MGWHrnSXqn9J17j5z5IRocAnxH08S/VcT BnviJiGrzBFBe/jIbN19RNX0NtY4D1l+cyOPo8lj3EGXiXMbphu4T9v8AVMCimF1ek0p pCRKeTpkJrFz+MvYHN4yt9et8AnrerlaiCxvo57iU5sEGDnrQ0eaFlWy9JOEayTLBX3D h1kw== ARC-Authentication-Results: i=1; mx.google.com; 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 1-v6si6404764plx.236.2018.05.06.23.38.35; Sun, 06 May 2018 23:38:49 -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; 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 S1751907AbeEGGiW (ORCPT + 99 others); Mon, 7 May 2018 02:38:22 -0400 Received: from guitar.tcltek.co.il ([192.115.133.116]:60176 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751135AbeEGGiU (ORCPT ); Mon, 7 May 2018 02:38:20 -0400 Received: from tarshish (unknown [10.0.8.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id EFAB5440A8D; Mon, 7 May 2018 09:38:15 +0300 (IDT) Date: Mon, 7 May 2018 09:38:14 +0300 From: Baruch Siach To: Tomasz Figa 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, Heiko =?utf-8?Q?St=C3=BCbner?= , Chen Jacob , =?utf-8?B?6ZmI5Z+O?= , Allon Huang Subject: Re: [PATCH v6 05/17] media: rkisp1: add Rockchip ISP1 subdev driver Message-ID: <20180507063814.vweb4p3nfgnoc3td@tarshish> References: <20180308094807.9443-1-jacob-chen@iotwrt.com> <20180308094807.9443-6-jacob-chen@iotwrt.com> <20180503090909.o3dyhukzs2y7em5z@tarshish> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tomasz, On Mon, May 07, 2018 at 06:13:27AM +0000, Tomasz Figa wrote: > On Thu, May 3, 2018 at 6:09 PM Baruch Siach wrote: > > 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 Thanks for the reference. It looks like the iommu driver part is in Linus' tree already. The DT part is in the v4.18-armsoc/dts32 branch of Heiko's tree. Am I missing anything? Anyway, I'll take a look. Thanks again, baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -