Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp480752pxb; Thu, 23 Sep 2021 04:33:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdbRvVfkeapnWHTk/UtMoHDjpROHpoeeVBODXzlmzDnYt1sT3qc2KlnV9Lc+a36m9y6nGq X-Received: by 2002:a6b:e309:: with SMTP id u9mr3331588ioc.39.1632396782329; Thu, 23 Sep 2021 04:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632396782; cv=none; d=google.com; s=arc-20160816; b=qiTgSs66FGRErJR8xJHX+nrgZz9RiUepgt3BIc9BBZyA7J3BSkQFbrFhBqxYI/6Jx3 75n+x/351+VP622WcCoVPPWSyARDTDdS2fykKssb9j3nD4YJLN/86VJD/giwZcMvZkjA NLW69GZ6HB/lW68SOLdul6uuJ7JsFWdAlAnxwPw+ZIRBlkWKIf25yJnr6mja2HXsaixb UBN/oCSN+fk+oNRRIZYnSf8aOAqD8PYh96w0RKsikr94McA29XuRtJhTxdFlM3anmL0M 3FyhLf4QjgCG4HyNgL9+h734GKEi1mach0PUk3tSN3MmoWg7FKcTbRWehAOETzvGCdXi J28A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=mj4OxXI4XfSiJjpB6gp8VGD37CgIAndA8AQf4u3Q5R8=; b=Arj2ghoDec+/OQnda7N7Qoo90AwJZWPUkpXQs9p56iCG1BLHMQySnX/eicn7AoyrlO 4UfxE1N0ap2fik7cw+cXjvRBPyzECvz1aYDiPLM/t9u83a/YIa4KXnLYGdSVETrQVJbr 7hXHdnGf4uSuWEM9gCm4F2HW7scIJwNhnDoiCy/FZK2mJ517ZFEQfQYiZRmc9meI79Qe aKiQSpE2pEzp2NGu95KcntUQRA5oNycybBDfRO50FN+PzkLKahyNWllY1Lks+RCgVA+i u47yP61wPY6q2gahhRME+m9rU8M9qKDC/TIwgPDY6mI1Um4HbGGu4P5jdbe5wxqepPDU 8iaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si6817855ilc.19.2021.09.23.04.32.48; Thu, 23 Sep 2021 04:33:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S240595AbhIWLcL (ORCPT + 99 others); Thu, 23 Sep 2021 07:32:11 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:37411 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238930AbhIWLcL (ORCPT ); Thu, 23 Sep 2021 07:32:11 -0400 Received: by mail-ot1-f45.google.com with SMTP id r43-20020a05683044ab00b0054716b40005so1162811otv.4; Thu, 23 Sep 2021 04:30:39 -0700 (PDT) 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; bh=mj4OxXI4XfSiJjpB6gp8VGD37CgIAndA8AQf4u3Q5R8=; b=wNePgff2IzH3h/elMnNhEfkl0npvguwXZ6pXYBMgkxM4Il8/j0xFnOcvtcecGtqa21 sYguBQvunlRIxlj1JooLORcqImD1otUmJvGEr7FUi4OWerPIC/44NQzW7t/VJP7UXdTy bMO4pSQWA4sMIEI2FRTP7twEjYMnCRHS22eim4Nf6kVKGzi917wZY6ZH7d94mZtG4yAE Yna6MoO8f+jFI9H6zbhf8zScyNX1b4jfJUU7jGRxnQZFCGgQjZC7tqOwHijqppkUxN+h 70zxtKnIZRl8fdemWwALhc42VUZK+5/rKXORhPYzV8wCZaKWj+/0VndbbG2ov9fgqc1O TaaA== X-Gm-Message-State: AOAM532HKaPJwXPr7wAKPW+cBH12OVAPvPjQbci0YVQEbY5Ah39c13bP TkSpdobulLapx0ZDtQ6n5XsH1dnjw7+FfwSYOud2jLJFWbM= X-Received: by 2002:a9d:4d93:: with SMTP id u19mr3871082otk.86.1632396639512; Thu, 23 Sep 2021 04:30:39 -0700 (PDT) MIME-Version: 1.0 References: <1800633.tdWV9SEqCh@kreacher> <8879480.rMLUfLXkoz@kreacher> <069444f7-d623-fae2-5cd0-83cbbc919aff@gmail.com> In-Reply-To: <069444f7-d623-fae2-5cd0-83cbbc919aff@gmail.com> From: "Rafael J. Wysocki" Date: Thu, 23 Sep 2021 13:30:28 +0200 Message-ID: Subject: Re: [PATCH v2 2/7] PCI: ACPI: PM: Do not use pci_platform_pm_ops for ACPI To: Ferry Toth Cc: "Rafael J. Wysocki" , Linux PCI , Linux ACPI , LKML , Bjorn Helgaas , Andy Shevchenko , Mika Westerberg Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 22, 2021 at 11:31 PM Ferry Toth wrote: > > Hi, > Op 20-09-2021 om 21:17 schreef Rafael J. Wysocki: > > From: Rafael J. Wysocki > > > > Using struct pci_platform_pm_ops for ACPI adds unnecessary > > indirection to the interactions between the PCI core and ACPI PM, > > which is also subject to retpolines. > > > > Moreover, it is not particularly clear from the current code that, > > as far as PCI PM is concerned, "platform" really means just ACPI > > except for the special casess when Intel MID PCI PM is used or when > > ACPI support is disabled (through the kernel config or command line, > > or because there are no usable ACPI tables on the system). > > > > To address the above, rework the PCI PM code to invoke ACPI PM > > functions directly as needed and drop the acpi_pci_platform_pm > > object that is not necessary any more. > > > > Accordingly, update some of the ACPI PM functions in question to do > > extra checks in case the ACPI support is disabled (which previously > > was taken care of by avoiding to set the pci_platform_ops pointer > > in those cases). > > > > Signed-off-by: Rafael J. Wysocki > > --- > > > > v1 -> v2: > > * Rebase on top of the new [1/7] and move dropping struct > > pci_platform_pm_ops to a separate patch. > > I wanted to test this series on 5.15-rc2 but this patch 2/7 doesn't > apply (after 1/7 applied). Should I apply this on another tree? This is on top of https://patchwork.kernel.org/project/linux-acpi/patch/2793105.e9J7NaK4W3@kreacher/ which is not yet in any tree. Sorry for the confusion.