From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932252AbdBUSZR (ORCPT ); Tue, 21 Feb 2017 13:25:17 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:34031 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753504AbdBUSXo (ORCPT ); Tue, 21 Feb 2017 13:23:44 -0500 MIME-Version: 1.0 In-Reply-To: <20170221181849.GG8605@leverpostej> References: <1487622809-25127-1-git-send-email-geert+renesas@glider.be> <1487622809-25127-4-git-send-email-geert+renesas@glider.be> <20170221110712.GB5021@amd> <20170221172012.GD8605@leverpostej> <20170221181849.GG8605@leverpostej> From: Geert Uytterhoeven Date: Tue, 21 Feb 2017 19:23:42 +0100 X-Google-Sender-Auth: eLgwZKwv-arEf4gLLAKUguqqEeE Message-ID: Subject: Re: [PATCH/RFC 3/6] drivers: firmware: psci: Implement shallow suspend mode To: Mark Rutland Cc: Sudeep Holla , Pavel Machek , Geert Uytterhoeven , Lorenzo Pieralisi , Lina Iyer , John Stultz , Thomas Gleixner , "Rafael J . Wysocki" , Len Brown , Rob Herring , Magnus Damm , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux-Renesas , Linux PM list , "linux-kernel@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 Hi Mark, On Tue, Feb 21, 2017 at 7:18 PM, Mark Rutland wrote: >> On top of that, the Linux PM subsystem allows to configure wakeup by writing >> "enabled" to a device's "wakeup" file in sysfs. Or you can use ethtool for >> Wake-on-LAN. > > Sure; userspace can always do something silly here. Not that silly: you can wake up using these sources, but not necessarily from all states. > As I mentioned in my other reply, we could/should add an interface to > allow userspace to determine if it has a guaranteed wakeup, which would > allow us to do the right thing. Right. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [PATCH/RFC 3/6] drivers: firmware: psci: Implement shallow suspend mode Date: Tue, 21 Feb 2017 19:23:42 +0100 Message-ID: References: <1487622809-25127-1-git-send-email-geert+renesas@glider.be> <1487622809-25127-4-git-send-email-geert+renesas@glider.be> <20170221110712.GB5021@amd> <20170221172012.GD8605@leverpostej> <20170221181849.GG8605@leverpostej> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170221181849.GG8605@leverpostej> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Mark Rutland Cc: Len Brown , Lorenzo Pieralisi , Geert Uytterhoeven , "devicetree@vger.kernel.org" , Magnus Damm , Linux PM list , "Rafael J . Wysocki" , "linux-kernel@vger.kernel.org" , Linux-Renesas , Rob Herring , John Stultz , "linux-arm-kernel@lists.infradead.org" , Pavel Machek , Sudeep Holla , Thomas Gleixner , Lina Iyer List-Id: devicetree@vger.kernel.org Hi Mark, On Tue, Feb 21, 2017 at 7:18 PM, Mark Rutland wrote: >> On top of that, the Linux PM subsystem allows to configure wakeup by writing >> "enabled" to a device's "wakeup" file in sysfs. Or you can use ethtool for >> Wake-on-LAN. > > Sure; userspace can always do something silly here. Not that silly: you can wake up using these sources, but not necessarily from all states. > As I mentioned in my other reply, we could/should add an interface to > allow userspace to determine if it has a guaranteed wakeup, which would > allow us to do the right thing. Right. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: MIME-Version: 1.0 In-Reply-To: <20170221181849.GG8605@leverpostej> References: <1487622809-25127-1-git-send-email-geert+renesas@glider.be> <1487622809-25127-4-git-send-email-geert+renesas@glider.be> <20170221110712.GB5021@amd> <20170221172012.GD8605@leverpostej> <20170221181849.GG8605@leverpostej> From: Geert Uytterhoeven Date: Tue, 21 Feb 2017 19:23:42 +0100 Message-ID: Subject: Re: [PATCH/RFC 3/6] drivers: firmware: psci: Implement shallow suspend mode To: Mark Rutland Cc: Sudeep Holla , Pavel Machek , Geert Uytterhoeven , Lorenzo Pieralisi , Lina Iyer , John Stultz , Thomas Gleixner , "Rafael J . Wysocki" , Len Brown , Rob Herring , Magnus Damm , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux-Renesas , Linux PM list , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: Hi Mark, On Tue, Feb 21, 2017 at 7:18 PM, Mark Rutland wrote: >> On top of that, the Linux PM subsystem allows to configure wakeup by writing >> "enabled" to a device's "wakeup" file in sysfs. Or you can use ethtool for >> Wake-on-LAN. > > Sure; userspace can always do something silly here. Not that silly: you can wake up using these sources, but not necessarily from all states. > As I mentioned in my other reply, we could/should add an interface to > allow userspace to determine if it has a guaranteed wakeup, which would > allow us to do the right thing. Right. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From mboxrd@z Thu Jan 1 00:00:00 1970 From: geert@linux-m68k.org (Geert Uytterhoeven) Date: Tue, 21 Feb 2017 19:23:42 +0100 Subject: [PATCH/RFC 3/6] drivers: firmware: psci: Implement shallow suspend mode In-Reply-To: <20170221181849.GG8605@leverpostej> References: <1487622809-25127-1-git-send-email-geert+renesas@glider.be> <1487622809-25127-4-git-send-email-geert+renesas@glider.be> <20170221110712.GB5021@amd> <20170221172012.GD8605@leverpostej> <20170221181849.GG8605@leverpostej> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Mark, On Tue, Feb 21, 2017 at 7:18 PM, Mark Rutland wrote: >> On top of that, the Linux PM subsystem allows to configure wakeup by writing >> "enabled" to a device's "wakeup" file in sysfs. Or you can use ethtool for >> Wake-on-LAN. > > Sure; userspace can always do something silly here. Not that silly: you can wake up using these sources, but not necessarily from all states. > As I mentioned in my other reply, we could/should add an interface to > allow userspace to determine if it has a guaranteed wakeup, which would > allow us to do the right thing. Right. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds