Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754758AbcKJIe6 (ORCPT ); Thu, 10 Nov 2016 03:34:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45846 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753322AbcKJIe4 (ORCPT ); Thu, 10 Nov 2016 03:34:56 -0500 Subject: Re: PM regression with LED changes in next-20161109 To: Tony Lindgren , Jacek Anaszewski References: <20161109192301.GS26979@atomide.com> Cc: linux-leds@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Hans de Goede Message-ID: <621758ce-dd3f-41ad-d9b8-b8e34538700e@redhat.com> Date: Thu, 10 Nov 2016 09:34:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161109192301.GS26979@atomide.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 10 Nov 2016 08:34:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 884 Lines: 26 Hi, On 09-11-16 20:23, Tony Lindgren wrote: > Hi, > > Looks like commit 883d32ce3385 ("leds: core: Add support for poll()ing > the sysfs brightness attr for changes.") breaks runtime PM for me. > > On my omap dm3730 based test system, idle power consumption is over 70 > times higher now with this patch! It goes from about 6mW for the core > system to over 440mW during idle meaning there's some busy timer now > active. Do you have any blinking LEDs or LED triggers defined on the system ? > Reverting this patch fixes the issue. Any ideas? All I can think of is something calling led_set_brightness quite often, the patch in question makes led_set_brightness somewhat more expensive, but it should not cause such a big difference unless something is really calling led_set_brightness quite often maybe something is calling it with the same value all the time ? Regards, Hans