Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2950418ybd; Thu, 27 Jun 2019 23:49:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFpCoggGKknRt1sKpNGiiJqcYDICDpdc0NXKaSaMx6LfnPEifqpwPKzHyS9x1yj2J990Df X-Received: by 2002:a65:56c5:: with SMTP id w5mr7601462pgs.434.1561704574892; Thu, 27 Jun 2019 23:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561704574; cv=none; d=google.com; s=arc-20160816; b=tjpyre3tNe0FeKZz+xXyFwnzEm3/aHgrR0mui/Cqj2B24PKMpYI/uuTLwiSqa65NEY H8tsDoYFO+cqDGkhLyBzOP6uU9R787TD4+TohbXBF5gYVtxK8RqTGzGqnhcGx0jY4cEH wfi5Va4otkk8rWAoG6vqnbKKYQMylDgAh0/SNZIAZVMQOAjsSuNZYWWXBVVyb03U5D6r Cp5OpF8xhGLMY5rFbZg5JNNUKDD3SwCwwOSWolitV9qibLYdOAtBMwp0q/yILQZF823j W74Y141pd9EKgyYA6LdRsYyQnqbhtITIwbNGqxanVyIZ0LtlctI661cXK2se2vC9HR8j C+yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=vNzSpyCeiJD8tnYdLvYVnJzOtUmTDCs0azG1DiRFc54=; b=TkvK2aGbkNffSFSturgKtW6962KyeV8EUl88A41I8d0PLXCVeeDR8bujLQTy1skQ5g p7qHVW44IowSkGy97m7KKCbY6ZeAxdMdmzFWmoZlR7BeID5/xk4CWIf1w53URqCbIx4R 0ByhEnWk62QiD8glpuV9qIotv3Z/cLDnzT/+BMa35n5WVrVN10e64IxKRx12l4h6E8Tm ropSzkqvlRDo8BTdFrdP3apZA1Rft6RwOovv3MG9k7wFhRIV7QLnTPOU/c2dGBg3312X SBjjoy5t4LrankubirIPbrXCZxfPUqXcucQyyjzJGz+NyJmwh53Nxe9IfG0sm75vO9mB LzfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=N9FmcEUf; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si1599994pfg.233.2019.06.27.23.49.18; Thu, 27 Jun 2019 23:49:34 -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=@samsung.com header.s=mail20170921 header.b=N9FmcEUf; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727243AbfF1Gss (ORCPT + 99 others); Fri, 28 Jun 2019 02:48:48 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:55720 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbfF1Gss (ORCPT ); Fri, 28 Jun 2019 02:48:48 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20190628064845epoutp04ab3f891d2a3bb2bc07b33b3e360f9be5~sSf3YY9EF0801108011epoutp04I for ; Fri, 28 Jun 2019 06:48:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20190628064845epoutp04ab3f891d2a3bb2bc07b33b3e360f9be5~sSf3YY9EF0801108011epoutp04I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1561704525; bh=vNzSpyCeiJD8tnYdLvYVnJzOtUmTDCs0azG1DiRFc54=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=N9FmcEUfMCCZUPPme6SNazaV8BEEvOrV7QCJsuY3Jo7oVebnE7hye7EN59A9YLKKQ sGbzsNWE6YhWvXr3+7EtoEP1W2i0xyLwB+k20lCfqnTttR96KzOGjklzX+ivrOqUx1 9ZOdpN+5lrhXAHtGaAx2bhXSpeoOONElwiY/PQg8= Received: from epsmges1p3.samsung.com (unknown [182.195.40.158]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20190628064842epcas1p36f9028705a15def52fd754ed95356758~sSf05fDJ82626126261epcas1p3y; Fri, 28 Jun 2019 06:48:42 +0000 (GMT) X-AuditID: b6c32a37-f31ff7000000102f-8f-5d15b84aba39 Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id E1.4A.04143.A48B51D5; Fri, 28 Jun 2019 15:48:42 +0900 (KST) Mime-Version: 1.0 Subject: RE: [PATCH v3 02/22] PM / devfreq: tegra30: Keep interrupt disabled while governor is stopped Reply-To: myungjoo.ham@samsung.com From: MyungJoo Ham To: Dmitry Osipenko , Thierry Reding , Kyungmin Park , Chanwoo Choi , Jonathan Hunter , Tomeu Vizoso CC: "linux-pm@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-kernel@vger.kernel.org" X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20190627211115.21138-3-digetx@gmail.com> X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20190628064842epcms1p37e66e5fa52885ef7461b439bd336e60f@epcms1p3> Date: Fri, 28 Jun 2019 15:48:42 +0900 X-CMS-MailID: 20190628064842epcms1p37e66e5fa52885ef7461b439bd336e60f Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 101P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMJsWRmVeSWpSXmKPExsWy7bCmnq7XDtFYg54GTYuXhzQtrn95zmqx +uNjRouWWYtYLM42vWG3uLxrDpvF594jjBadX2axWfzcNY/Fom/tJTYHLo8dd5cweuycdZfd o7f5HZtH35ZVjB6fN8kFsEZl22SkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl 5qbaKrn4BOi6ZeYAHaWkUJaYUwoUCkgsLlbSt7Mpyi8tSVXIyC8usVVKLUjJKbAs0CtOzC0u zUvXS87PtTI0MDAyBSpMyM748vACe8EPjoqp3++wNDDuZ+9i5OCQEDCRODibrYuRi0NIYAej xKl9TWBxXgFBib87hLsYOTmEBTIk7v+9zAxiCwkoSTTc3McMEdeX6HiwjRHEZhPQldi64S4L yBwRgd+MEnt3PmYFcZgFdjJKvNtynx2kSkKAV2JG+1MWCFtaYvvyrWDdnAJmEnfOXGGCiItK 3Fz9lh3Gfn9sPiOELSLReu8sM4QtKPHg525GmDkzpvyHmlktcW36YnaQxRICLYwSvaunQBXp S5yZe5INxOYV8JWYcnY12DIWAVWJC/s2s0HUuEh8bv0GFmcWkJfY/nYOMygkmAU0Jdbv0oco UZTY+XsuI8wvDRt/s6OzmQX4JN597WGFie+Y9wTqLzWJQ7uXQNXLSJyevpB5AqPSLERYz0Ky eBbC4gWMzKsYxVILinPTU4sNC4yRY3cTIziBapnvYNxwzucQowAHoxIPr8JOkVgh1sSy4src Q4wSHMxKIryS54BCvCmJlVWpRfnxRaU5qcWHGE2B/p/ILCWanA9M7nkl8YamRsbGxhYmhmam hoZK4rzx3DdjhATSE0tSs1NTC1KLYPqYODilGhjjY36E6kjyTeL1EnyYxrdaQm8mR31Dyb1j cSeOOIjscVBxYv0yu2HHl1c3dy14bvSXgX1pz53GWWKOvReeumS+muUkl+D+57Cm0Yv4Rx+d +hedd3Yu25i5Kda61eHrtp6aAwnv2NbHaFu3LNitHL/13TfBxdXLlfJ5A69u7/lWsGv38o47 fR1KLMUZiYZazEXFiQAgylkstgMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190627211230epcas5p2504c225e67a823a586768a2749248b72 References: <20190627211115.21138-3-digetx@gmail.com> <20190627211115.21138-1-digetx@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >There is no real need to keep interrupt always-enabled, will be nicer >to keep it disabled while governor is inactive. > >Suggested-by: Thierry Reding >Signed-off-by: Dmitry Osipenko >--- > drivers/devfreq/tegra30-devfreq.c | 43 ++++++++++++++++--------------- > 1 file changed, 22 insertions(+), 21 deletions(-) > >diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c >index a27300f40b0b..5e2b133babdd 100644 >--- a/drivers/devfreq/tegra30-devfreq.c >+++ b/drivers/devfreq/tegra30-devfreq.c [] >@@ -416,8 +417,6 @@ static void tegra_actmon_start(struct tegra_devfreq *tegra) > { > unsigned int i; > >- disable_irq(tegra->irq); >- > actmon_writel(tegra, ACTMON_SAMPLING_PERIOD - 1, > ACTMON_GLB_PERIOD_CTRL); > I think this has nothing to do with "keep it disabled while governor is inactive." And this looks dangerous because it disables the safety measure of disabling interrupt while you touch some looking-critical registers. Anyway, as I do not know the internals of Tegra SoC, I cannot sure. Cheers, MyungJoo