Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752166AbcDZQBu (ORCPT ); Tue, 26 Apr 2016 12:01:50 -0400 Received: from foss.arm.com ([217.140.101.70]:55833 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751363AbcDZQBt (ORCPT ); Tue, 26 Apr 2016 12:01:49 -0400 Subject: Re: [PATCH v4 4/5] arm64: add support for ACPI Low Power Idle(LPI) To: "Prakash, Prashanth" , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <1461069013-13292-1-git-send-email-sudeep.holla@arm.com> <1461069013-13292-5-git-send-email-sudeep.holla@arm.com> <571F8E7D.4000706@codeaurora.org> Cc: Sudeep Holla , Lorenzo Pieralisi , Al Stone , Ashwin Chaugule , Mark Rutland From: Sudeep Holla Organization: ARM Message-ID: <571F90E7.3010801@arm.com> Date: Tue, 26 Apr 2016 17:01:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <571F8E7D.4000706@codeaurora.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 998 Lines: 40 Hi Prashanth, On 26/04/16 16:51, Prakash, Prashanth wrote: > Hi Sudeep, > > On 4/19/2016 6:30 AM, Sudeep Holla wrote: >> +struct acpi_processor_lpi *lpi; >> +int acpi_processor_ffh_lpi_enter(struct acpi_processor_lpi *lpi, int idx) >> +{ >> + int ret; >> + >> + if (!idx) { >> + cpu_do_idle(); >> + return idx; >> + } >> + >> + /* TODO cpu_pm_{enter,exit} can be done in generic code ? */ >> + ret = cpu_pm_enter(); > Can we avoid calling cpu_pm_enter and cpu_pm_exit for retention > states as it is not necessary? May be we can check LPI architecture > specific context loss flags prior to calling these. Ah right, you had mentioned this before. Sorry for missing that. Anyways, we need to get the driver reviewed before we can finalize arch specific callbacks, so I will include this change when I post next version. >> + } >> + >> + return ret ? -1 : idx; >> +} >> + > > By the way, thanks for posting these patches! > Thanks for taking look at these patches again :) -- Regards, Sudeep