Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756551AbbLARnn (ORCPT ); Tue, 1 Dec 2015 12:43:43 -0500 Received: from foss.arm.com ([217.140.101.70]:37569 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751894AbbLARnm (ORCPT ); Tue, 1 Dec 2015 12:43:42 -0500 Subject: Re: [PATCH v2 5/5] ACPI / processor_idle: Add support for Low Power Idle(LPI) states To: "Prakash, Prashanth" , Ashwin Chaugule References: <1438710406-3822-1-git-send-email-sudeep.holla@arm.com> <1442411963-14398-1-git-send-email-sudeep.holla@arm.com> <1442411963-14398-6-git-send-email-sudeep.holla@arm.com> <565DD7A6.1000802@codeaurora.org> Cc: Sudeep Holla , linux acpi , "Rafael J. Wysocki" , lkml , linux-ia64@vger.kernel.org, x86@kernel.org, Al Stone , Lorenzo Pieralisi , Mahesh Sivasubramanian , wufan@codeaurora.org From: Sudeep Holla Organization: ARM Message-ID: <565DDC46.6020707@arm.com> Date: Tue, 1 Dec 2015 17:43:34 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <565DD7A6.1000802@codeaurora.org> Content-Type: text/plain; charset=utf-8; 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: 1644 Lines: 39 Hi Prashanth, On 01/12/15 17:23, Prakash, Prashanth wrote: > Hi Sudeep, >>> +static void combine_lpi_states(struct acpi_processor_lpi *l_lpi, >>> + struct acpi_processor_lpi *p_lpi, >>> + struct acpi_processor_lpi *c_lpi) >>> +{ >>> + c_lpi->min_residency = max(l_lpi->min_residency, p_lpi->min_residency); >>> + c_lpi->wake_latency = l_lpi->wake_latency + p_lpi->wake_latency; >>> + c_lpi->enable_parent_state = p_lpi->enable_parent_state; >>> + c_lpi->entry_method = l_lpi->entry_method; >>> + c_lpi->address = l_lpi->address + p_lpi->address; >>> + c_lpi->index = p_lpi->index; >>> + c_lpi->flags = p_lpi->flags; >>> + c_lpi->arch_flags = p_lpi->arch_flags; >>> + strncpy(c_lpi->desc, l_lpi->desc, ACPI_CX_DESC_LEN); >>> + strncat(c_lpi->desc, "+", ACPI_CX_DESC_LEN); >>> + strncat(c_lpi->desc, p_lpi->desc, ACPI_CX_DESC_LEN); >>> +} > I suppose you meant to use strl* instead of strn* operations. Below is a > simple patch to fix these. Can you please fold these changes into your next > version as well? > Thanks for reporting, I had fixed it already as I ran into same issue when I was playing around with the description string in the LPI tables. Just adding some comments to the code now where ever it's not so obvious, will post it tomorrow. -- Regards, Sudeep -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/