Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp707119rwb; Thu, 10 Nov 2022 06:30:29 -0800 (PST) X-Google-Smtp-Source: AMsMyM4HSkyDwUVkYg+0/uDD/MI+Qj2beW9MdV4xNP68H+EKST6e6KgVnhXkbCKHJ5UTsZ596RwA X-Received: by 2002:a05:6402:518a:b0:464:5ec3:c5a with SMTP id q10-20020a056402518a00b004645ec30c5amr31967271edd.90.1668090629081; Thu, 10 Nov 2022 06:30:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668090629; cv=none; d=google.com; s=arc-20160816; b=I9JsjYNeFtdp9WM954o8LbYnTYE29cAaaRNJnIpioI8VnBZjSjVy5c0cirajDyOc53 BSr/9Rw7gc39uCyBjWtQc72wF1l1ZgTARZy1whtUO2sHAfXBaIAF5TY+R1zVmHf9ic3p jULGtROkrx+CxA4kxWU7turYRPWsJ6Cc/9YDNs1FdhxY2BfxU4UQkSv0GlewAt3nrHKx K/Otp/IobBK/bdDcbLpLOB24hWLSkXCMuBe8v/zEUZzYuYO0ReIMEktBYhSXZMTtqZlf aDwkxp/xOZuz1HacsStxOqDyMJGhQHI8v5N/z7AtJCgFWjC7esVbAfA/42hRqKf1/Fk5 bgHw== 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=rIs9e1BKYfHnxeqChoNi5kM8KufBx4TfhxYcyeWECJE=; b=kJjEDv2luvJ/a/LMSZyNIAmm3DB4Y3+c5bT0J1umb/w+JdEENkVGC1AaH2Q6yibeGj FYvaXBgOoVsKYxUPV3ee4igoOTwInMYNrcJLHP38yk+sGQ0f8tpjc08pkXQya9lBGtnB Nxgip6m6I3GhWda696Mbhy3kqG+tGjoSEyvl9WKwNpfAaWZLNBoUgAcaUupU7iH13p+W G1JfhO3ihy1Sk2+K0lltbFKhHn5T5tPthgTMKeO2/X8mOT0zW7hdPyHEQsNf1FBfuhuI /usL4vdfeVph+98Ii6WnUw5mL+c1aekJxqar/0HNXFqkKA2ipdi62VjKZ06X8h6BjRZm EacA== 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 b8-20020a056402278800b0045928479b71si22277947ede.405.2022.11.10.06.30.04; Thu, 10 Nov 2022 06:30:29 -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 S230097AbiKJNFS convert rfc822-to-8bit (ORCPT + 92 others); Thu, 10 Nov 2022 08:05:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbiKJNFP (ORCPT ); Thu, 10 Nov 2022 08:05:15 -0500 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47DF11A225; Thu, 10 Nov 2022 05:05:15 -0800 (PST) Received: by mail-qt1-f169.google.com with SMTP id hh9so820057qtb.13; Thu, 10 Nov 2022 05:05:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RxTYnsjXo5H4D39/ukAjznyyf8nDU99QCOa9bcJlVXQ=; b=nLNvtXpAF0dxgh0auEXhKyfDBRTHZ8a2NWsahPpI0rhME/4c0CFyy/ZuiOZHaIGejF 1mYDBraJbWtsFWbK5sim89hWWx2z8rQsCVcjM/uY0N3oIPGpl6+0exgM1Zh2PEpT+D2R nG20tISJoeU1JOYywutFRh7GPlkEgbP2yEKpbWH13U9xc+SsdOBd4lruVhwIFDl1DtuF t7FfUW7o6k7pSJzEo6G7MgvYDeFWB6o80+0UwY1Elm1Yb7QPcLwbBn069xzgRzXS/YE2 bjPWUiVTXVwjB9FFKhpNcbnw9mObZ6aZ5FshLUJ87oCQjzgJ4PUOULbRuyUcHXt8la3N o1Bw== X-Gm-Message-State: ACrzQf1CpFCmKLm7kk8kimWHtTZu4ty8/qS8fmW54k80mk76372D0LKK xi7S5kzq/RMKGqN4FzokKdX5H0uz1jJMbmjmy+o= X-Received: by 2002:a05:622a:4c07:b0:3a5:27ec:6dd3 with SMTP id ey7-20020a05622a4c0700b003a527ec6dd3mr43797482qtb.411.1668085514333; Thu, 10 Nov 2022 05:05:14 -0800 (PST) MIME-Version: 1.0 References: <20221025061437.17571-1-zhangzekun11@huawei.com> <91e13efd-2de9-6fa1-188f-ec74958fff99@huawei.com> In-Reply-To: <91e13efd-2de9-6fa1-188f-ec74958fff99@huawei.com> From: "Rafael J. Wysocki" Date: Thu, 10 Nov 2022 14:05:02 +0100 Message-ID: Subject: Re: [PATCH RFC] ACPI: container: Add power domain control methods To: "zhangzekun (A)" Cc: "Rafael J. Wysocki" , lenb@kernel.org, patchwork@huawei.com, wangkefeng.wang@huawei.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, guohanjun@huawei.com, wanghuiqiang@huawei.com, lihuisong@huawei.com 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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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 Thu, Nov 10, 2022 at 1:13 PM zhangzekun (A) wrote: > > Kindly ping. I'm not going to apply this patch if that's what you're asking about. Please have a look at LPI which is the ACPI way of doing what you want. If you need to extend the support for it in the kernel, please do so. If you need to extend the definition of LPI in the ACPI specification, there is also a way to do that. What you are trying to do would require extending the container device definition in the specification anyway. > 在 2022/10/29 1:07, Rafael J. Wysocki 写道: > > On Tue, Oct 25, 2022 at 8:17 AM Zhang Zekun wrote: > >> Platform devices which supports power control are often required to be > >> power off/on together with the devices in the same power domain. However, > >> there isn't a generic driver that support the power control logic of > >> these devices. > > Not true. > > > > There is the ACPI power resources interface designed to represent > > power domains that is well supported and used in the industry. > > > > If it doesn't work for you, explain why. > > >