Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965571AbcKKVkz (ORCPT ); Fri, 11 Nov 2016 16:40:55 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:33788 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934163AbcKKVkv (ORCPT ); Fri, 11 Nov 2016 16:40:51 -0500 MIME-Version: 1.0 In-Reply-To: <20161111194041.GA111624@google.com> References: <1478801227-65527-1-git-send-email-briannorris@chromium.org> <20161110184910.GA135921@google.com> <20161110204911.GK27724@atomide.com> <20161110213038.GA108490@google.com> <20161111164753.GD7138@atomide.com> <20161111194041.GA111624@google.com> From: "Rafael J. Wysocki" Date: Fri, 11 Nov 2016 22:40:50 +0100 X-Google-Sender-Auth: 4yv2qRCl5mVarGcqWKaT0RnZgXQ Message-ID: Subject: Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs To: Brian Norris Cc: Tony Lindgren , Dmitry Torokhov , "Rafael J . Wysocki" , Pavel Machek , Len Brown , Greg Kroah-Hartman , lkml , Brian Norris , "linux-pm@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1621 Lines: 36 On Fri, Nov 11, 2016 at 8:40 PM, Brian Norris wrote: > On Fri, Nov 11, 2016 at 08:47:54AM -0800, Tony Lindgren wrote: >> But sounds like the threaded IRQ is not your concern and you mostly > > Right, threaded is OK for this; it's not performance critical. It just > highlighted the fact that its completion is not synchronized with > anything. > >> care about getting the right time for the wake up interrupt. > > Not "time", per se, but blame. But that blame is timing related: if it > comes after the system finished resuming, then it's useless, since > user-space won't know to come back and check later. > >> The wakeup interrupt controller knows something happened earlier, >> so maybe it could report that time if queried somehow? > > Sort of. We have /sys/power/pm_wakeup_irq already. But it's really less > useful to get IRQ-level stats for this, than to get device info. AFAICT, > there's no machine-readable association between IRQs and devices; the > best you can get is by parsing the names in /proc/interrupts. > > Or, if we really want to say that's sufficient, then maybe we should > kill all the device-level wakeup stats in sysfs... (Is that what the > flamewar was all about? I hope I'm not poking the hornet's nest.) Do you mean the wakeup_* attributes in /power/ ? If so, then they are in there, because they were asked for by people at the time they were introduced (I can't recall exactly who wanted them, though), but if they are not useful to anyone after all (and I guess that this is the case), they can just go away as far as I'm concerned. Thanks, Rafael