Received: by 10.192.165.148 with SMTP id m20csp2741076imm; Sun, 6 May 2018 23:42:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqyh6oHSDezohm5xKl9SMGIITVFvNaVCyN0A8xXdqTNN/Xkpq93sa7ruGJLmacV2AN8k3BP X-Received: by 10.98.63.78 with SMTP id m75mr35286420pfa.176.1525675351740; Sun, 06 May 2018 23:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525675351; cv=none; d=google.com; s=arc-20160816; b=cLXarx1xilh8l6xrU8EpyhZ2Lh+neUcYPBDqLqmXuWu1LpvUmiH2dLMYJIv9d8+U+M OAitMj9K8d5boqNsSFP5EHO4+mp2zTpXvd9Yn4tMJE4/xrgvzH2zsPptMCWaa8+hZXDO nZKzb6W2MpIGlYYfFoOXxZISGhhyuegE4fqjhapAXqtkxPUkavJSMkYkepTqORU7imim krjfc4N2Dwsf5RMHZx3xtWj7sQyU+hems2+nghygipWQFBL0R1PddFjsfl5wg/ZN59YZ wa1fsnUamiI+VblNTz80txJDLsT6SDJVcT5Cv5i09qfBQONeUjE7ggCa2z6TVmd2nvMr SuPA== 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=R9RcT3cgzNb/dn2B7ajesMFvnpmitrXEvoIVAAhYM8E=; b=bfDle20FsSVc1/h0dRjUWLHpoEHaQ8B9KX8HNb6YLAdCi6+BrjdV5pugYs2PfueK+m GlM0Pew7nWM0XuJCnqKgl227fcQILObnFz2gVf1yM3WLkeLbeJLwE9lOcj/DhRwZaUKI OL7Hca4QlGhj36nfez9QElh66x/gzuwkZjsPxePXlh9erT2LUJv0HuBTW4ykaiu0PIGy oyTxfaSpD1cEhgRrtLpJEhwjVG7eeemdthihm89eqnRxGEllU+6tgya902lpaI3mreMU YMaHbjBGWcjmOntBnCu8rZY5gshYtZrvv7usss2eIXpC85+gFp17uuvhEYCrPBOT1FyG 1mOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RnJE6IbM; 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 x12-v6si18349982pln.97.2018.05.06.23.42.17; Sun, 06 May 2018 23:42:31 -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=RnJE6IbM; 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 S1751887AbeEGGmH (ORCPT + 99 others); Mon, 7 May 2018 02:42:07 -0400 Received: from mail-vk0-f67.google.com ([209.85.213.67]:33476 "EHLO mail-vk0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732AbeEGGmE (ORCPT ); Mon, 7 May 2018 02:42:04 -0400 Received: by mail-vk0-f67.google.com with SMTP id q189-v6so16769345vkb.0 for ; Sun, 06 May 2018 23:42:03 -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=R9RcT3cgzNb/dn2B7ajesMFvnpmitrXEvoIVAAhYM8E=; b=RnJE6IbM9YdpAGYdasnITJFqYpS3BShx/A4FKybYoEqHfhKAjd/JEEpGrSUx9DHvIL XWiuxkDAEA6oHhZsuggu4WE4RHW2ydNp/tSOuz4Onjy5WmGGrW0gJNtKbX/BkuZq2Oy7 SadyUQH1yKDELKLIa/2Q/bYcN+NWi91a64VYw= 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=R9RcT3cgzNb/dn2B7ajesMFvnpmitrXEvoIVAAhYM8E=; b=pA0FgJV2+Y+Zr3W/8qpG/GJBRgbsVramMmq2HGGVw6wwPxEFhEuGse1cmKvRqv2JMu ws+qDRATdU+mlLYIJGm8knLCw9G1TYVekPN0YxG8J3zvzaCj8fEVQMndLejBmBrSFmXu ZLhxZx3o1aVMi6t4cN2rBF70HOXYe4EZHmbM41hRyyvc2HDU2q3eR8RAB5Afft30JNma 3WGC+BmI0JzHkrbz+HHn8M8rT3WbpXzT0+l72+ziLVKJl+iLA5C4qk5BJOLGQeyu41Ba 4srxtICE/iH7J5MP82pqMgGgtdcQseLnJY1+eIvXXJvL1bQGLkB+aGoOvlO1ZU3lOqq5 +VyQ== X-Gm-Message-State: ALQs6tAUJ/UsFd8ELstwSe0NSrQBTAFmijYAciIe2ptaAZ1C7juj1OWX Bux6Gx4IESuDMHPNUny7++y0ndIiVFY= X-Received: by 2002:a1f:b09:: with SMTP id 9-v6mr16620350vkl.17.1525675323249; Sun, 06 May 2018 23:42:03 -0700 (PDT) Received: from mail-ua0-f176.google.com (mail-ua0-f176.google.com. [209.85.217.176]) by smtp.gmail.com with ESMTPSA id l134-v6sm6598927vki.46.2018.05.06.23.42.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 23:42:02 -0700 (PDT) Received: by mail-ua0-f176.google.com with SMTP id v17so8382251uak.6 for ; Sun, 06 May 2018 23:42:02 -0700 (PDT) X-Received: by 10.176.93.230 with SMTP id l38mr31252568uag.56.1525675321608; Sun, 06 May 2018 23:42:01 -0700 (PDT) MIME-Version: 1.0 References: <20180308094807.9443-1-jacob-chen@iotwrt.com> <20180308094807.9443-6-jacob-chen@iotwrt.com> <20180503090909.o3dyhukzs2y7em5z@tarshish> <20180507063814.vweb4p3nfgnoc3td@tarshish> In-Reply-To: <20180507063814.vweb4p3nfgnoc3td@tarshish> From: Tomasz Figa Date: Mon, 07 May 2018 06:41:50 +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 On Mon, May 7, 2018 at 3:38 PM Baruch Siach wrote: > 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? You're right, most of the series made it in time for 4.17. However, the DT part (precisely, the clocks properties added to IOMMU nodes) is crucial for the fixes to be effective. > Anyway, I'll take a look. Thanks for testing. :) (Forgot to mention in my previous email...) Best regards, Tomasz