From patchwork Fri Mar 29 15:50:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 232447 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A0CCE2C00B8 for ; Sat, 30 Mar 2013 02:55:02 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ULba7-0005v9-4e; Fri, 29 Mar 2013 15:51:07 +0000 Received: from mail-wg0-f44.google.com ([74.125.82.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ULba2-0005uP-2S for linux-arm-kernel@lists.infradead.org; Fri, 29 Mar 2013 15:51:04 +0000 Received: by mail-wg0-f44.google.com with SMTP id z12so509693wgg.11 for ; Fri, 29 Mar 2013 08:50:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding:x-gm-message-state; bh=vAVMj6bmla8SWf1n3KxAJLxWQSH0ndCUhCt/DiaVpHg=; b=h9TV3ZZbPZPGqF0+mZrSkshQelIvKGyeREkWtMGYJ5sdSbiKlMk1JtEQCwkWPs3WXt Q17I+3d9L5oJzRJuiDoIvpzsT/8lMnkqNJAPOuZhkRWm/c1Pqe9/8NSeZQYjY4s/eFBm DatlLh/j/6PZU3j6eneIxVnY+IxMDAgbvwzAdC1/wYFUrpHkqaGlDI6ZEB4lf1cHCa0L Gcb64lCOO5O/P3Kx2yHA5dqbrXdnYAjR8Mley11UfyQ1B267wPc6x6VOsVIM0isy3+IM M8WXaV+h66oXy+2VC1htY4RztQU3BRyplp/cW71meGZptmy9smgofyn5ZIiO1ERJ4OiB BtPQ== X-Received: by 10.194.103.72 with SMTP id fu8mr4265426wjb.42.1364572259050; Fri, 29 Mar 2013 08:50:59 -0700 (PDT) Received: from [192.168.1.13] (AToulouse-654-1-486-7.w92-146.abo.wanadoo.fr. [92.146.77.7]) by mx.google.com with ESMTPS id q13sm3939459wie.0.2013.03.29.08.50.56 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 08:50:58 -0700 (PDT) Message-ID: <5155B85F.6030808@linaro.org> Date: Fri, 29 Mar 2013 16:50:55 +0100 From: Daniel Lezcano User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: Santosh Shilimkar Subject: How to facilitate the cpuidle drivers to go to the same direction (Was: Re: [PATCH 4/9] ARM: OMAP4: cpuidle: fix wrong driver initialization) References: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> <1364553095-25110-4-git-send-email-daniel.lezcano@linaro.org> <51556F1D.5030208@ti.com> <515570DF.5010608@linaro.org> <51558723.1050904@ti.com> <5155AEE7.106@ti.com> In-Reply-To: <5155AEE7.106@ti.com> X-Gm-Message-State: ALoCoQnoVLyBG8J8/DT/vbsAtVgyf7ry7flY3yZ2QrpqmKnsqXMBe2yP67/1XYz4xFxMS3AGJr7+ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130329_115102_393310_48CCB25B X-CRM114-Status: GOOD ( 29.69 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.44 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Deepthi Dharwar , Lists linaro-kernel , Russell King - ARM Linux , swarren@wwwdotorg.org, benh@kernel.crashing.org, linux-pm@vger.kernel.org, Patch Tracking , "Nori, Sekhar" , Amit Kucheria , "Rafael J. Wysocki" , linux-tegra@vger.kernel.org, lethal@linux-sh.org, Rajendra Nayak , Olof Johansson , horms+renesas@verge.net.au, Arnd Bergmann , Lists LAKML , Len Brown X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org On 03/29/2013 04:10 PM, Santosh Shilimkar wrote: > On Friday 29 March 2013 06:20 PM, Amit Kucheria wrote: >> On Fri, Mar 29, 2013 at 5:50 PM, Santosh Shilimkar >> wrote: >>> On Friday 29 March 2013 05:26 PM, Amit Kucheria wrote: >>>> On Fri, Mar 29, 2013 at 4:15 PM, Daniel Lezcano >>>> wrote: >>>>> On 03/29/2013 11:38 AM, Santosh Shilimkar wrote: >>>>>> On Friday 29 March 2013 04:01 PM, Daniel Lezcano wrote: >>>>>>> The driver is initialized several times. This is wrong and if the >>>>>>> return code of the function was checked, it will return -EINVAL. >>>>>>> >>>>>>> Move this initialization out of the loop. >>>>>>> >>>>>>> Signed-off-by: Daniel Lezcano >>>>>>> --- >>>>>> Fix for this is already and v2 of the patch is here [1] >>>>> >>>>> Ah, ok. Thanks for reviewing the patch. >>>>> >>>>> Can we find a solution to have a single entry point to sumbit patches >>>>> for all the cpuidle drivers ? >>>>> >>>>> Otherwise, consolidating them is a pain: a patch for the samsung tree, >>>>> another one for the at91 tree, etc ... and wait for all the trees to >>>>> sync before continuing to consolidate the code. >>>>> >>>>> Wouldn't be worth to move these drivers under the PM umbrella instead of >>>>> the SoC specific code ? >>>>> >>>>> Any idea to simplify the cpuidle consolidation and maintenance ? >>>> >>>> Adding Arnd and Olof to this discussion since atleast the ARM drivers >>>> go through their arm-soc tree. >>>> >>>> Given the work you're putting in to consolidate the drivers, perhaps >>>> they can insist that idle drivers get acked by you? >>>> >>> Not to create controversy but as a general rule there is nothing >>> like *insisting* ack on patches for merge apart from the official >>> maintainers(gate keepers). >>> >>> Having said that, its always good to get more reviews and acks so >>> that better code gets merged. >>> >>> This just my personal opinion. >> >> I'm not asking for special treatment here. :) I'm requesting one set >> of maintainers (arm-soc maintainers) to push back on changes that >> don't get platform idle drivers in sync with the consolidation work >> that is currently ongoing. >> >> This will speed up the process since it is hard to track every >> SoC-specific list for these changes. Some platform maintainers might >> not even be aware of it (those that Daniel hasn't modified yet). A >> similar approach seems to have worked for common clock, DT, pinmux, >> etc. >> > Every patch gets pulled into arm-soc/arm-core has to be posted on > LAKML. So as long as everybody follows that rule, there is no need to > track every SoC lists. And what I have seen so far every this rule > has been followed well. (Added Benjamin, Deepthi and Paul) I don't think everybody is following this rule, patches go to the SoC maintainer's tree without sometimes going through lakml. Furthermore, there is not only ARM, there is also acpi_idle, intel_idle, pseries_idle and sh_idle, respectively located in: drivers/acpi/processor_idle.c drivers/acpi/processor_driver.c drivers/idle/intel_idle.c These ones above are under linux-pm, that is Rafael, like cpuidle, even if it is not marked in the MAINTAINERS file, so that should be ok. And there is also: arch/sh/kernel/cpu/shmobile/cpuidle.c arch/powerpc/platforms/pseries/processor_idle.c And hopefully, some others in the right place, calxeda_idle and kirwood_idle located in drivers/cpuidle. In the maintainer file, there is no information about cpuidle at all. For example, if someone modify the cpuidle framework allowing to consolidate the code across the different drivers, we have to wait for the merge before using the new api into the different drivers. If we follow strictly the path of the merge tree we fall into a scenario where consolidating the drivers takes a loooooong time. From my POV, *all* the cpuidle drivers must go under drivers/cpuidle, like cpufreq and pass through a single entry point to apply the patches, so the cpuidle framework and the drivers are always synced. If everyone agree and we reach this consensus, then we can work to move these drivers to a single place. I think Amit was suggesting to Cc me in the meantime, so while we are moving these drivers to this place, I can help to ensure we go to the same direction. For example, Arnd Cc'ed me about the zynq cpuidle driver when it has been posted and, after review, it appeared it was totally obsolete wrt the modifications we did this year. I propose first to add an entry in MAINTAINERS: Does it make sense ? Thanks -- Daniel diff --git a/MAINTAINERS b/MAINTAINERS index 4cf5fd3..5b5ab87 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2206,6 +2206,15 @@ S: Maintained F: drivers/cpufreq/ F: include/linux/cpufreq.h +CPU IDLE DRIVERS +M: Rafael J. Wysocki +L: cpuidle@vger.kernel.org +L: linux-pm@vger.kernel.org +S: Maintained +F: drivers/cpuidle/ +F: include/linux/cpuidle.h + CPUID/MSR DRIVER M: "H. Peter Anvin" S: Maintained