Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp267053pxb; Thu, 17 Feb 2022 03:47:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTKTi6Tk2Ux93llZm7fDZ50bdcH9noFn6u2cFDD4LFiKdLPHUpF2X1k7ZNPGKsKnhF3MhC X-Received: by 2002:a63:6c43:0:b0:373:7202:6e13 with SMTP id h64-20020a636c43000000b0037372026e13mr2203199pgc.110.1645098468533; Thu, 17 Feb 2022 03:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645098468; cv=none; d=google.com; s=arc-20160816; b=Vfx0StTD5TrhsGISJrTiJgMPiQ47UtQuW4ewt3URz4IBsdsAarTmT+BbIhJ2+zlhSH m1equ2rypirmElxUsKgqqBmyMU55ZgptStkarXfpzzdVKEJ6Fa665OV9kGXEIZyIxaNt ZIQsu9ThBilX6lWKj8Rge4lTOw6SmBkfkvaEJw9A+4q1vSLwER9vg5pF5RqVBXWVmrjE kGES5YkMhSceiWXKLLXNbc3o7aXA+wQWckVc+h/9k04N4wC//yAFWNMnvzCcgVOJT1e5 55vH7fPxL+x2RYp54/f9XWCgl4yupMDxRDf4MEeEda1jjAm5ckdhjJzvuoiUFCOpeZV6 bPtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OO8O5AkWPhI/5yGYSTEQp+LjZetKZnyQ+pZ7++XrzEA=; b=OKUjWSv8Ubk1qFzLRxvkb+zQ0iEy6jUABGQo5Gg2UEVINikXT7tRQ/tWhh9aWUJZpq A1ALLPMCXRLc5rb4Op7pl22crAh/e2dBIhLgyAtG3RekmmLMR9CDE1lHXgTlgL6FWOhV /RWL3Yy+MFGGqUTBzDIfQ+odkE89iaXEKAWAKxwjZz1Y4a/lsnweXtTc8vEYbCjcKSvF TxcnhvJjXU5Td/CVLSivoEqQbLhYQfW0JByVoouWtMtKGHg0kz2oSH5Zz0pANtfMcmd9 C0lgYtBgOksd12aQZC006y1IzgJdnYKt1nJLcGus/Uy4BG3rdPJ9rakvyXSBw7gUKrYG lirg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=X8w7in6J; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 82si8552048pgb.538.2022.02.17.03.47.33; Thu, 17 Feb 2022 03:47:48 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=X8w7in6J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239059AbiBQKNR (ORCPT + 99 others); Thu, 17 Feb 2022 05:13:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236012AbiBQKNP (ORCPT ); Thu, 17 Feb 2022 05:13:15 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 140AB143469; Thu, 17 Feb 2022 02:13:01 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id n24so7474925ljj.10; Thu, 17 Feb 2022 02:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=OO8O5AkWPhI/5yGYSTEQp+LjZetKZnyQ+pZ7++XrzEA=; b=X8w7in6JtN9+vwIDY375tbKdJ6/kAXjQzoJEMNX/aRNZ/xldyGjWjXODYmSy5mi1RE IVBvYSJ5Q0hWoh3euDgluS6hajxAwota0SjPBhdLfholDQzq33VHuJfcHHzCkXGyz8tb MDBzs6ibY/EGdDqB/ff2GewtKr6TpYHNqvy5y4L9nhOeKSaVrEEfVSAdHs3oIc8/KGvy BUoC/Ntz4HLIebyoKI3bup9qeurRZrprpsOzzaMBNquRHtxpasWvx6s1xD7yjJ47gW7a aqMUkT2VhDOvjwLmzIlZFje3GuDLrgVXuDJcvjJJbqm/WRU77L4UMZYg+2nxY7fnS64M 8wzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=OO8O5AkWPhI/5yGYSTEQp+LjZetKZnyQ+pZ7++XrzEA=; b=7pr47jE/gdAdaDrCCfyYmBUiEIX35Jia+LTn+J6qHiHUFJ3a6Bm/wYJfBtMgD80XM7 08+9aZXK57FDzfN0oNQNxysoi9K3/Z9SCmgPPmMAqi5DvgiNWbWGtT1Psubir4+SXU+o gRV+UCMI/bHhNXyFqqq4EYldR+1mU0vky+FWzW805Nb6ZzUABhsqUHBgWy3W64kJuagb xrQofwp652Cdq7wqG1Ppo7wdJLFt4fCdhv7dcE/6F5zEC0gt38PkKdGWMDRMUqoHH14A Lbe+x56E4n+G+Qrx8fdAHjTSmjCd/nzEYPt6JB/gtxXm0ufp6JJ870vKPi7kBlYpJT/q PKYw== X-Gm-Message-State: AOAM531lg7CNRkr5GP49SV/u3DBjyETkU9AirEe1YGwbGmOKQGR7AOrk mSTXBVd88G2R12+sHTThCSLVPemO/hU= X-Received: by 2002:a05:651c:1544:b0:246:1887:cf4c with SMTP id y4-20020a05651c154400b002461887cf4cmr917179ljp.118.1645092779295; Thu, 17 Feb 2022 02:12:59 -0800 (PST) Received: from [192.168.2.145] (109-252-138-165.dynamic.spd-mgts.ru. [109.252.138.165]) by smtp.googlemail.com with ESMTPSA id o10sm5079173lfl.116.2022.02.17.02.12.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Feb 2022 02:12:58 -0800 (PST) Message-ID: <4f0d1b50-9f55-dd81-f0c7-f5e0dfd75c2a@gmail.com> Date: Thu, 17 Feb 2022 13:12:57 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v6 00/21] Introduce power-off+restart call chain API Content-Language: en-US To: Helge Deller , "Rafael J. Wysocki" Cc: 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" , 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=?= References: <20220130233718.21544-1-digetx@gmail.com> <635e8121-fca4-580c-6af5-d9317a2eee1b@gmail.com> From: Dmitry Osipenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 16.02.2022 23:30, Helge Deller пишет: > On 2/16/22 13:25, Rafael J. Wysocki wrote: >> 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. No worries, we're not in a rush. >> 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? The platforms that didn't provide ack so far are: SH, x86, IA64, MIPS and NDS32. At least x86 and MIPS are alive, not sure why maintainers didn't bother to answer yet. > I did looked into the whole patch set after applying it locally. > > While I agree a new combined API is good, and the beginning looked promising, > after some time I started to ask myself if the whole infrastructure might > be a little overdesigned. > > Anyway, I tested it and it works for me on parisc. > And it's probably better than what we have today. Thank you!