Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp497196ybx; Fri, 1 Nov 2019 06:49:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4gN8oZbc4cUD2K4EXdvNzR51KuSSOETN9LcF87l5zbjsvuMkGGHsBpbhp9s12Qjmi01Dm X-Received: by 2002:a17:906:49cd:: with SMTP id w13mr8279869ejv.311.1572616192986; Fri, 01 Nov 2019 06:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572616192; cv=none; d=google.com; s=arc-20160816; b=Nm1See1hj5mVQbd8WEELzOEZUzxgSb7XbxPfnXkAXwSBe0Ckav/UoaCtx78BeTSe+8 uoYyvCn+R4MZ44PeNN2dfaDUf1kTk/Mr0TYWrETGD7SNYoxgE6FO3k4jgnus2mxag+Fv 37aD4B3WdfZVedB+Ih1v6yQtxj+wW6/UkTAYbM2nK37MD3uA6EyldD0ZXp/lKWzpKymD gfm3ythyBxRfOucF4rJiOqe0RvY8qR0Wphvya44lfwqzsKJ176eMEBLLpuyFv/0DNF8w zmhrwvmUU3a+CvhNiNkT+bDy3DJkq4X7/WdwsXHr6mjj/8OIf+vtwsqH/1pdlwGExxP7 huFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ClHEOCZNpQnrcTnVEWCJjHR07pbg7qvno12Y8tH2Dy8=; b=FCKqIE2xFuS2I5PTOGhepK1ZCW2y6YVH7A7WwjAnmZjKvS0YsMB1T7pOveRdf9j7ix gbKlbaopXPP3P0PZGZT/bAqbjDXRqYhVLU2dDoxnj6ngqlYmKh4FRyYDSMO8qVZuBJOj JxzE5oGoYR+hAwN/bEIv+gDUuhUuSsvb/iyOWaFdlpbJv9hUhfnOZ/CsPsEVrpDTRUaN SYYTsSZuW7zgUEAVPF4zZBm7djezXeCJ/l90MzxdRZEt63wtDzUtKszxtM8AMZdR+Aoa MHRYeBzHahP/s6f8SNBdppaVyJQp0BgRVXZT0qYF1dunS0dSmI23NiOCwERqxAcXk1z2 1CWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=JPm8R1IH; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si5757503ejj.276.2019.11.01.06.49.29; Fri, 01 Nov 2019 06:49:52 -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=@nvidia.com header.s=n1 header.b=JPm8R1IH; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729539AbfKAMeD (ORCPT + 99 others); Fri, 1 Nov 2019 08:34:03 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:4650 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbfKAMeC (ORCPT ); Fri, 1 Nov 2019 08:34:02 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 01 Nov 2019 05:34:08 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 01 Nov 2019 05:34:01 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 01 Nov 2019 05:34:01 -0700 Received: from tbergstrom-lnx.Nvidia.com (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 1 Nov 2019 12:34:01 +0000 Received: by tbergstrom-lnx.Nvidia.com (Postfix, from userid 1000) id 2D99742966; Fri, 1 Nov 2019 14:33:59 +0200 (EET) Date: Fri, 1 Nov 2019 14:33:59 +0200 From: Peter De Schrijver To: Dmitry Osipenko CC: Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , "Daniel Lezcano" , , , Subject: Re: [PATCH v6 00/18] Consolidate and improve NVIDIA Tegra CPUIDLE driver(s) Message-ID: <20191101123359.GG27141@pdeschrijver-desktop.Nvidia.com> References: <20191015170015.1135-1-digetx@gmail.com> <20191016192133.GB26038@pdeschrijver-desktop.Nvidia.com> <72636eb3-5354-eea3-3a51-4975a04186b2@gmail.com> <53ee8bd3-5c53-f0aa-175c-7fa3024d0af5@gmail.com> <20191028140443.GA27141@pdeschrijver-desktop.Nvidia.com> <40de641f-c38e-51ee-ae27-c5db468c45b5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <40de641f-c38e-51ee-ae27-c5db468c45b5@gmail.com> X-NVConfidentiality: public User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1572611648; bh=ClHEOCZNpQnrcTnVEWCJjHR07pbg7qvno12Y8tH2Dy8=; h=X-PGP-Universal:Date:From:To:CC:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To: X-NVConfidentiality:User-Agent:X-Originating-IP:X-ClientProxiedBy; b=JPm8R1IH6Np2IGI6y3kIMTOJ1rP/8Pi2c76MBsBfFNDkpBX901NBpRClwnNreTgEA qLExi2OcAxxXyaLsmVGDlzxVKZCFbZX8+dnqSIEeaFKzH3T+m7UvU4BbDPd6CYd2Hb 2C/Nr53Dkt9wFk1K/NG0z6FRmVRTgbZzsIWOLmi7iqgl8fLUdV3nmiOu9fbcQI0bJU YCE8cefv6mBzfFUsp/YWJ1RbTDJleWRvHL3mMIK+RWYPBmJbnz3ALNrNs/8EW4VlBs 4+j7XujCFSVktQig4fJTqLqwcK1o60tENBkdb5FAQwIIbTEz26Nr2lC1jW0+SscMt2 jtOP5Lk1c2L8Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 29, 2019 at 03:47:56AM +0300, Dmitry Osipenko wrote: .. > >>>> It would be useful to switch the power state terminology to the one used > >>>> for later chips: > >>>> > >>>> LP0 becomes SC7 > >>>> LP1 becomes C1 > >>>> LP2 becomes CC7 > >>>> > >>>> Meaning of these states is as follows > >>>> > >>>> C is a core state: > >>>> > >>>> C1 clock gating > >>>> C2 not defined > >>>> C3 not defined > >>>> C4 not defined > >>>> C5 not defined > >>>> C6 not defined for ARM cores > >>>> C7 power-gating > >>>> > >>>> CC is a CPU cluster C state: > >>>> > >>>> CC1 cluster clock gated > >>>> CC2 not defined > >>>> CC3 fmax@Vmin: not used prior to Tegra186 > >>>> CC4: cluster retention: no longer supported > >>>> CC5: not defined > >>>> CC6: cluster power gating > >>>> CC7: cluster rail gating > >>>> > >>>> SC is a System C state: > >>>> > >>>> SC1: not defined > >>>> SC2: not defined > >>>> SC3: not defined > >>>> SC4: not defined > >>>> SC5: not defined > >>>> SC6: not defined > >>>> SC7: VDD_SOC off > >>> > >>> Hello Peter, > >>> > >>> But new "drivers/cpuidle/cpuidle-tegra.c" uses exactly that terminology, > >>> please see "cpuidle: Refactor and move NVIDIA Tegra20 driver into > >>> drivers/cpuidle/" and further patches. Am I missing something? Or do you > >>> want the renaming to be a separate patch? > >>> > >> > >> Or maybe you're suggesting to change the names everywhere and not only > >> in the cpuidle driver? Please clarify :) > > > > At least some of the variable and function names still say lp2? > > The cpuidle driver uses LP2 terminology for everything that comes from > the external arch / firmware includes. But it says CC6 for everything > that is internal to the driver. So yes, there is a bit of new/old > terminology mixing in the code. > > The arch code / PMC driver / TF firmware are all saying LP2. The LP2 > naming is also a part of the device-tree binding. > > It will be a lot of mess to rename the mach-tegra/pm.c code. I guess > eventually it could be moved to drivers/soc/, so maybe it will be better > to postpone the renaming until then? Or maybe add a comment somewhere indicating: LP2 = CC6 LP1 = C1 LP0 = SC7 TF predates the new naming, so that may make some sense. Peter.