From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030882Ab2CNOXx (ORCPT ); Wed, 14 Mar 2012 10:23:53 -0400 Received: from na3sys009aog105.obsmtp.com ([74.125.149.75]:50385 "EHLO na3sys009aog105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756527Ab2CNOXu convert rfc822-to-8bit (ORCPT ); Wed, 14 Mar 2012 10:23:50 -0400 From: Kevin Hilman To: Colin Cross Cc: Len Brown , linux-kernel@vger.kernel.org, Amit Kucheria , linux-tegra@vger.kernel.org, linux-pm@lists.linux-foundation.org, linux-omap@vger.kernel.org, Arjan van de Ven , linux-arm-kernel@lists.infradead.org Subject: Re: [linux-pm] [PATCH 0/3] coupled cpuidle state support Organization: Texas Instruments, Inc. References: <1324426147-16735-1-git-send-email-ccross@android.com> <4F1929E9.7070707@linaro.org> <8762e8kqi6.fsf@ti.com> Date: Wed, 14 Mar 2012 07:23:59 -0700 In-Reply-To: (Colin Cross's message of "Tue, 13 Mar 2012 17:47:20 -0700") Message-ID: <87mx7jjm68.fsf@ti.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Colin Cross writes: > On Tue, Mar 13, 2012 at 5:28 PM, Colin Cross wrote: >> On Tue, Mar 13, 2012 at 4:52 PM, Kevin Hilman wrote: [...] >>> >>> Checking the ready_count seemed like an easy way to do this, but did you >>> have any other mechanisms in mind for CPUs to communicate that they've >>> exited/aborted? >> >> Why not set a flag from CPU1 when it exits the low power state, and >> have CPU0 spin on the powerdomain register or the flag?  You can then >> use the parallel barrier function to ensure both cpus have seen the >> flag and reset it to 0 before returning. > > I realized the parallel barrier helper was not included in the patch > set I posted, it will be in the next patch set. Do you have an ETA for the next patchset? I'll be glad to give it a spin on OMAP4. > Short version, no caller to cpuidle_coupled_parallel_barrier will > return before all cpus in the coupled set have called it. It allows > you to resynchronize the cpus after an abort to ensure they have all > seen the abort flag before clearing it and returning, leaving > everything in the correct state for the next idle attempt. OK, this sounds like it will work well for what I need. Kevin