Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp357493imu; Thu, 8 Nov 2018 03:10:14 -0800 (PST) X-Google-Smtp-Source: AJdET5dcK9KvY9blryu4bn1ehpP3MgV48/yEgPjL/6+Qpc6vdI1EMnkjKFgvNYdiCckKuESnDtxw X-Received: by 2002:a62:1f13:: with SMTP id f19-v6mr4119638pff.168.1541675414194; Thu, 08 Nov 2018 03:10:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541675414; cv=none; d=google.com; s=arc-20160816; b=skqnfIuZRVT0YPiWcOV2iD9x0LXlCweIWPrNNqukL4VHfnpMjyjZ1K+K4pZkC1p5sU +DDoqCc0Wfly7t6bkFLHqnxwardciOCNW3iCcG8q87SLdIyQ7s+Q6sBlRbtVvvV/AZJq /IEGIZoj7/xSlruRFfB3H4vsFufqBmS+nTKQIqmFBzTLxVjGYHHNB22WGkLKW5Bfhast DoorbfAXMxQLZjva8E0597kKGzbEydlUH9AzcON00Dj8Q+lMey61FnAPAtlXkSf4TlAu xIzMpiXpB8Bo4JVF8blkaD+3th/x/2QyzoNKXPCvPc4dh9bn58xWnQUChnezp/32Nu+X wQiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=Jh+TPwUjEZmGc14dCDcKbC39suRDG/TmQcp7a9qQ1TA=; b=DUbOuC8bsBEdF39lz5GdCFaXy+QeYeXrQf8wEhHdEvg2RofkbDJ41eUoH5wJURsU/D qInR8jO2l1nfeu1nBbh+5sW4JTVds+/xZPeYxaTFjLI3Fpq4FLbLQWuIlqPwpDTArppo stYg/LdZaqkJ5WAns6uPV3X0+N8QjrrOaAgKeJ/fSzxGt+gMs1acdihVOxk8MvPZFrkL fNwQ/7XPFEUlMgDeXIs0udJH9y5DVX0A6BDcogk6F/0BmcxbO3NvGZYAdoAFNtw/uJ+G 1op4fa7v8PHrr1xs11KV7Pprlojkes9+t7QG0TyDCsAMSDa2nVi4keVw/fXPDQfI6HKS jBkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b="C/V4OE5w"; 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 k8-v6si3573823pgj.192.2018.11.08.03.09.51; Thu, 08 Nov 2018 03:10:14 -0800 (PST) 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=fail header.i=@kemnade.info header.s=20180802 header.b="C/V4OE5w"; 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 S1726938AbeKHUoW (ORCPT + 99 others); Thu, 8 Nov 2018 15:44:22 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:47452 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726274AbeKHUoW (ORCPT ); Thu, 8 Nov 2018 15:44:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Jh+TPwUjEZmGc14dCDcKbC39suRDG/TmQcp7a9qQ1TA=; b=C/V4OE5w6Kx7vwaWL9O082cu7 qbWpGet2GLdYnAjz1V+DGsG93avRstDp41mzUhS6JImPcVQSEGU3BfL8uZzswW780pZZj2RCLZILR EVYP4TatjXjmXmLei12xDFZyp9qdsONSCejLA65AiI3h+AnREfeV0nMCIQ98uE7tHTnPo=; Received: from [2a02:790:ff:1019:7ee9:d3ff:fe1f:a246] (helo=localhost) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKiBZ-0005oA-QT; Thu, 08 Nov 2018 12:09:18 +0100 Received: from [::1] (helo=localhost) by localhost with esmtp (Exim 4.89) (envelope-from ) id 1gKiBU-0004ov-TV; Thu, 08 Nov 2018 12:09:13 +0100 Date: Thu, 8 Nov 2018 12:08:47 +0100 From: Andreas Kemnade To: Tero Kristo Cc: , , , , , , , , Subject: Re: [PATCH 2/2] arm: omap_hwmod disable ick autoidling when a hwmod requires that Message-ID: <20181108120847.1ef7ec02@kemnade.info> In-Reply-To: References: <20181004203817.22101-1-andreas@kemnade.info> <20181004203817.22101-3-andreas@kemnade.info> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/DNrPM6vl+hRXWj1jQJVW_UG"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/DNrPM6vl+hRXWj1jQJVW_UG Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, On Thu, 8 Nov 2018 12:26:08 +0200 Tero Kristo wrote: > On 04/10/2018 23:38, Andreas Kemnade wrote: > > Deny autoidle for hwmods with the OCPIF_SWSUP_IDLE flag, > > that makes hwmods working properly which cannot handle > > autoidle properly in lower power states. > > Affected is e. g. the omap_hdq. > > Since an ick might have mulitple users, autoidle is disabled > > when an individual user requires that rather than in > > _setup_iclk_autoidle. dss_ick is an example for that. > >=20 > > Signed-off-by: Andreas Kemnade > > --- > > arch/arm/mach-omap2/omap_hwmod.c | 16 ++++++++++++---- > > 1 file changed, 12 insertions(+), 4 deletions(-) > >=20 > > diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/oma= p_hwmod.c > > index bb641e6c93d0..0078b0e1d242 100644 > > --- a/arch/arm/mach-omap2/omap_hwmod.c > > +++ b/arch/arm/mach-omap2/omap_hwmod.c > > @@ -986,8 +986,10 @@ static int _enable_clocks(struct omap_hwmod *oh) > > clk_enable(oh->_clk); > > =20 > > list_for_each_entry(os, &oh->slave_ports, node) { > > - if (os->_clk && (os->flags & OCPIF_SWSUP_IDLE)) > > + if (os->_clk && (os->flags & OCPIF_SWSUP_IDLE)) { > > + omap2_clk_deny_idle(os->_clk); =20 >=20 > I think calling this unconditionally across all platforms / clock types=20 > might cause problems. Checking kernel, am33xx seems to have one clock=20 > with this flag that is not of omap2 type. Do we have any testing data=20 > that this doesn't break things? >=20 Somehow I have missed that am33xx clock. I have not tested it on that platform. Concerning am3xxx I have only a beaglebone block but it not am33xx I guess. So I have to recheck I guess. But I think the intention of this flag was to control autoidle vs. sw-controlled idle according to... [...] > > if (os->flags & OCPIF_SWSUP_IDLE) { > > - /* XXX omap_iclk_deny_idle(c); */ > > + /* this comment. So we need a if (clock_is_omap2()) or something like that or remove that flag from any other clocks? Regards, Andreas --Sig_/DNrPM6vl+hRXWj1jQJVW_UG Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE7sDbhY5mwNpwYgrAfb1qx03ikyQFAlvkGT8ACgkQfb1qx03i kyRPvA/+O3wf6sLIltlhj735JbtwBPTRgBqSE3bhiI0zhdEqGBCGC1yDF1NDRKxQ ALw1g1MRyLbswezPvJhxbuvF3c3kSpPbGRjVNRW15ypI9gOeu6k05m1Ikj1I6J0p tsYiL0oEIWi37pynfT3oQerS7sUxBKCp7Nf2OU0HMrsVNFLMVVUlJBm2WUv07RuM lOJefgdVH5VElEsrjb+Ug/0l1lD8DxC8Cs01oD8Yr7zT06npPtOgOTCvWDPsEMZS DFddlAcPju4gblQ5Ihf3jDxc7sqlKyqnt2wZy9yAS/tCGDmcvU+6AbTEgwC4p6IN SM3KpMmRiaL0SQWZYW9NLPFFWlXl8QIaPaITlG/ZN5aG8dqIEmMUE5hjqHTu6e6s rUfbcI6RmJ/11HlQC6ONBArIvQ2NSk4G9Myj/lcBoHtJtqE5sRXr3sAs/60FbWMa hcB7wiXl7XrUTYYjAj7AbEJQO/CuArtc6OrL1wbo5guNmcBXOOc8KnNARhJdsaLq gtBkQWovGZQ8E/6tjTU1q7U+UEFgS8OcTneR/791q9nDocKZgm73CX8jZSo6mOHU Kwzat2k2VgqqwV1m9+7upJk5o8Ov3hDk2y2RtfJkdUw4K2aqiEBi0bBUAKb4IZPf 6stpkeWo0GJaBhkHy6T4Jujy/GZoxG8+uFd+6VXkOBneAy7Qyck= =AU3Q -----END PGP SIGNATURE----- --Sig_/DNrPM6vl+hRXWj1jQJVW_UG--