Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp825701pxb; Wed, 16 Feb 2022 05:21:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/ES9aYheaynFOv09NswQR5uhtLjfINwjs7voaS9bS0+/bEFwbaVwKKCH3yEDCb+PFcfHc X-Received: by 2002:a05:6402:d0d:b0:410:8411:216 with SMTP id eb13-20020a0564020d0d00b0041084110216mr2917753edb.316.1645017714616; Wed, 16 Feb 2022 05:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645017714; cv=none; d=google.com; s=arc-20160816; b=gWQdYxYXHZt/eeA9/9yfzRNueHcnTBDtVPOPkgOspZUPIY2WFNGNryw2xEih/IzDm+ 9bTYYEiSZO7LDnZl/whWKImVttW0ycQ83B+BTuuoV52v+OkqBMp8b0HCTlbtcS2K5o0h jQSK+N23OafMJqYzolkR0nlmJh1zePcbeIvpjO5C83QuaUdFzwIVphmb8PPKLHshUdAw ol/1N6i/UuVlsIXOLp2NqCmt6ANA2zqTUbwBVn8YNlV5O+jv4EBWp4zLxQjT5Vkryv7B BX/G+ZVTyidBcJ1wiQk4q8YVZ9YMUfetfDtcjh3mjOjOmUKayHURVMWb08ElF6o2GpMS rDtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=xtnL754Yk8JhtFLWPBvYHXgRiaE7PRUETvsoYbMLONM=; b=jDiZfRFxI/tmgNI7eno9eYLcZ6fLl9ncBTH8w63xq1BM4KuHnTnGnwbFQqm9qdibu5 Du17C4hjD8IxZ1e1gnR5iMoBhCQJJcfySzDJjlGTQtYxI5SQJgBK5pEFlvClGuLrilQh +2U2kgJ/PpoSLC1T0+6woH7t3YVyiPiu6XvoTyaj9kq1z1a+rCpQ10Y1KaJSZhJfns4L vSRDVBU9a4peyIVdAIRDuRuXLervCHAkzeffr2o68W2+ebHhyso9jq4M4XQR3wlLsgEm c463pPXV1b4AvokZA5y3l6msMRfHuV549xyqGYzxrqd1ykUf8dBSFQRQrGmvHA5EOxC2 axGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t21si1736988edv.651.2022.02.16.05.21.31; Wed, 16 Feb 2022 05:21:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233148AbiBPM0H convert rfc822-to-8bit (ORCPT + 99 others); Wed, 16 Feb 2022 07:26:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbiBPM0F (ORCPT ); Wed, 16 Feb 2022 07:26:05 -0500 Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC0B027AA10; Wed, 16 Feb 2022 04:25:53 -0800 (PST) Received: by mail-yb1-f173.google.com with SMTP id bt13so5538742ybb.2; Wed, 16 Feb 2022 04:25:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZzgKkF+Qi9uD0PohBja9X66WgBtIRyDp12JGMxNBcpY=; b=SmFG6cMNn2WzcalJa27s9eH1YqlUBva1gEkgs99/RkIpoUz6kxJSHUIqIP7IRJx6zM 2cEsy4f2xS3oirL8EQeh/CI1NAiwXnbQvdfzVfu02n721tJsL2/AuNc1vM7QZ9KWhAMM WVoauxya1DfWyx/5DmjnV0NDxwqzmH2YKw2Yf+t6ZUXasSFFCXZg/7BG+1ZKrGzN0umZ uZiKTrlruhxGMLpVdVQZOkREYLBpFIp/tUz71rL7dD2XPupu+bXIk//dgX5JMg6Q5/VF nRn8ocKmLjm8+2xI1oA4PniZi16eW6h9mhgr9cdwwmrT84vYCT32ceA88etkK8vxNX1n zXpw== X-Gm-Message-State: AOAM531dUfwXvaobtSMX/InoOCL/yhv4RMB/74kpsaF6OhowM7VW9glf GHM3ooZHTWYtAdEvXiLHWpd23aAcTie6I4M2hkA= X-Received: by 2002:a81:f008:0:b0:2d0:cd72:74e5 with SMTP id p8-20020a81f008000000b002d0cd7274e5mr2135032ywm.301.1645014353165; Wed, 16 Feb 2022 04:25:53 -0800 (PST) MIME-Version: 1.0 References: <20220130233718.21544-1-digetx@gmail.com> <635e8121-fca4-580c-6af5-d9317a2eee1b@gmail.com> In-Reply-To: <635e8121-fca4-580c-6af5-d9317a2eee1b@gmail.com> From: "Rafael J. Wysocki" Date: Wed, 16 Feb 2022 13:25:39 +0100 Message-ID: Subject: Re: [PATCH v6 00/21] Introduce power-off+restart call chain API To: Dmitry Osipenko Cc: "Rafael J. Wysocki" , Linux Kernel Mailing List , linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, "open list:BROADCOM NVRAM DRIVER" , linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, Linux-sh list , xen-devel@lists.xenproject.org, ACPI Devel Maling List , Linux PM , linux-tegra , Thierry Reding , Jonathan Hunter , Russell King , Catalin Marinas , Will Deacon , Guo Ren , Geert Uytterhoeven , Greg Ungerer , Joshua Thompson , Thomas Bogendoerfer , Sebastian Reichel , Linus Walleij , Philipp Zabel , Greentime Hu , Vincent Chen , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yoshinori Sato , Rich Felker , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "the arch/x86 maintainers" , "H. Peter Anvin" , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Len Brown , Santosh Shilimkar , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Pavel Machek , Lee Jones , Andrew Morton , Guenter Roeck , Daniel Lezcano , Andy Shevchenko , Ulf Hansson , alankao@andestech.com, "K . C . Kuen-Chern Lin" , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 15, 2022 at 11:00 PM Dmitry Osipenko wrote: > > 31.01.2022 02:36, Dmitry Osipenko пишет: > > Problem > > ------- > > > > SoC devices require power-off call chaining functionality from kernel. > > We have a widely used restart chaining provided by restart notifier API, > > but nothing for power-off. > > > > Solution > > -------- > > > > Introduce new API that provides both restart and power-off call chains. > > > > Why combine restart with power-off? Because drivers often do both. > > More practical to have API that provides both under the same roof. > > > > The new API is designed with simplicity and extensibility in mind. > > It's built upon the existing restart and reboot APIs. The simplicity > > is in new helper functions that are convenient for drivers. The > > extensibility is in the design that doesn't hardcode callback > > arguments, making easy to add new parameters and remove old. > > > > This is a third attempt to introduce the new API. First was made by > > Guenter Roeck back in 2014, second was made by Thierry Reding in 2017. > > In fact the work didn't stop and recently arm_pm_restart() was removed > > from v5.14 kernel, which was a part of preparatory work started by > > Guenter Roeck. I took into account experience and ideas from the > > previous attempts, extended and polished them. > > > Rafael and all, do you see anything critical that needs to be improved > in this v6? > > Will be great if you could take this patchset via the power tree if it > looks okay, or give an ack. I need some more time for this, sorry. I'm a bit concerned about seeing no response to this set from anyone. It looks like multiple platforms may be affected by it in principle, so doesn't anyone care?