Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod From: Geert Uytterhoeven Newsgroups: linux.kernel Subject: Re: [PATCH/RFC 3/6] drivers: firmware: psci: Implement shallow suspend mode Date: Tue, 21 Feb 2017 17:30:02 +0100 Message-ID: References: Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=9huLWGuemBi4kokRdDwZxKYO4F5lXWA9ISgbO9qWGmA=; b=q38fwCEJlUEaLGJ0cs6Yfs5slj29OFskaK/bVEIDCCeqciPi5ZY8WQn0gA51cxGGmg gdRcct/yDvKBNJty93CC6NiouIedqPtBl5siw2yqPY1OqSkoBiI1R6NGRx2LzOqU3fdk +eFFYppqWIuibUWkEgwtwH4t506nT9cChAySyAOIAareMFR3/D5l1xiwLQ5PwIiKcYVQ Gg7K22UHYfOAWX8Au5MWPC3FdvuUhDsvQDG/DPRQxNpZRHsHuKp7aqjl3jO1gWPOTjq9 56tyQf80d2oGbskshMkMjlPt+qh/iPeizNJ67mmz9uz9+oPB3DkntVgTRrCpX3n8vf5H /UOw== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=9huLWGuemBi4kokRdDwZxKYO4F5lXWA9ISgbO9qWGmA=; b=Lr3/slZGP94+oDB6kFKr+tQxAnJRPEWuJgarVNtIqd3DHQ9SU/qX/Gp5+uclvyWXbb YaFsD3+uILH8xBWC6W4XHXSO+UgaXEtoe1JWes81EoyA7LeYMc6MqccciCI+KhXFn5W2 O+umPCcFD5oIUBDGwrlVWAHipWB2KTH8lAclegJSJMNYrq1XMD0MPo4HDA+sZwRHELbR O2yrxk0qLpRwOhYk2g3qvmMWovgtxf0SvVeRIByL9TZrABL6qGTK8ln+kSSJNuTbKhMu k15qU85qmbI16njNvOUpzOhz2TPOlDpJDRFPSmt2G75WZ3MBJ4sdX+9BZOD3x4xg/zwI xVLw== X-Gm-Message-State: AMke39lpd8ReNs5yvIoes73HlXPobr67m8kEmn8xZvLSg1czJq4Fa49dAQbL4/xzMfGoyAtG8OZu3JIzg5LWTg== X-Received: by 10.107.34.213 with SMTP id i204mr22257973ioi.203.1487694230128; Tue, 21 Feb 2017 08:23:50 -0800 (PST) MIME-Version: 1.0 X-Google-Sender-Auth: 81VylLWp--4iUBkqUgWNeTlIKCs Content-Type: text/plain; charset=UTF-8 Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 44 Organization: linux.* mail to news gateway X-Original-Cc: Geert Uytterhoeven , Lorenzo Pieralisi , Mark Rutland , Lina Iyer , John Stultz , Thomas Gleixner , "Rafael J . Wysocki" , Len Brown , Pavel Machek , Rob Herring , Magnus Damm , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux-Renesas , Linux PM list , "linux-kernel@vger.kernel.org" X-Original-Date: Tue, 21 Feb 2017 17:23:48 +0100 X-Original-Message-ID: X-Original-References: <1487622809-25127-1-git-send-email-geert+renesas@glider.be> <1487622809-25127-4-git-send-email-geert+renesas@glider.be> <08c5dcf3-9d7c-33ff-f801-8f94f630f49b@arm.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1585500 Hi Sudeep, On Tue, Feb 21, 2017 at 11:42 AM, Sudeep Holla wrote: > On 20/02/17 20:33, Geert Uytterhoeven wrote: >> Enable support for "shallow" suspend mode, also known as "Standby" or >> "Power-On Suspend". >> >> As secondary CPU cores are taken offline, "shallow" suspend mode saves >> slightly more power than "s2idle", but less than "deep" suspend mode. >> However, unlike "deep" suspend mode, "shallow" suspend mode can be used >> regardless of the presence of support for PSCI_SYSTEM_SUSPEND, which is >> an optional API in PSCI v1.0. >> >> List the available system suspend modes: >> >> $ cat /sys/power/mem_sleep >> s2idle shallow [deep] >> >> Suspend to "shallow" mode: >> >> $ echo shallow > /sys/power/mem_sleep >> $ echo mem > /sys/power/state >> > > I don't have the links to such previous attempts handy, but we have Don't worry, I did read earlier discussions about implementing shallow mode. > more elegant alternative options(suspend-to-idle) and any such attempts > to hack around the PSCI will be NACKed. "s2idle" does not power down secondary CPU cores, so this is an improvement. "deep" may not support configured wake-up sources, which is a bug. 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