Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp946253pxb; Wed, 1 Sep 2021 13:24:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwfYHtpBkXFvD5JBdTrQ6nSdh3hQkXb21H2mnLB6yy/OI1nU83aCd9xzz1jM/oV+U8bygI X-Received: by 2002:a05:6638:d1:: with SMTP id w17mr1243099jao.33.1630527853744; Wed, 01 Sep 2021 13:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630527853; cv=none; d=google.com; s=arc-20160816; b=xAqSEjR66FsxnuJm+8nN42qAjdwFsZh32e/gXwj6WBjK3ZunK4y3QvShMeonjJGFnh NB5SlyJFgfAgkd8fuidm4ndhp565INCTjzhs1sjBYpeeYqU7KOrMyqommOahEP1WEF1I FtNen8GXyMF2tKg2kyqBQrZHodq2IQPOFBEWqCs5SYB+vn88DuIBTZAp3XGrLCp0TGKk Et/E83JVu1J7RxNrhxKYxDV4U/gnYQ4V42SXVfIcVV+uhxdxvTiwufonOHuB6jHUqLWp dKF+9OugGjDZ+5Ipfn6yBw6R3zM2XlbeL6hqC26Fq2IynBChhC67ihg1L/H1HGGB+Y+E ejjA== 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=MN8A84FtJZYLcjJOsAhof11b/DtEYUBV+PxXI/9y4CI=; b=Gc0E8Tm/zjn+oCa4fNROrNQ1QeZjjhr2NIFr9Pv9hXQJOeQFfAYZPlOs4qwOwJ/at6 KjhrFabBT7VhtEvX+mfUEczk23z/kjpA7Kr+CFJIOO6fhhjkE7fMfVWz3jHe5LgPlbCj BykqafeqDltewT6S5lCcKTQxKErs9nCDJDN8iyictZQp9pgqgn54TOxb4H+mkyFLSBAU zIIXf5rO3GUuGOxzIbdQFvwbuoaiBD9tYVl4xYK4RoyfEXpivPk9FNKxtPpDnUYSNgVZ Lbi3UL1Mehq+yeIu/7l48KkOQT/IWtw6D9B250gfhk15RKldxJp32UG5HE6benqxs6PJ sGQg== 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 a26si497128ios.66.2021.09.01.13.24.02; Wed, 01 Sep 2021 13:24:13 -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 S1343611AbhIATec (ORCPT + 99 others); Wed, 1 Sep 2021 15:34:32 -0400 Received: from mail-ot1-f52.google.com ([209.85.210.52]:40804 "EHLO mail-ot1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244879AbhIATe2 (ORCPT ); Wed, 1 Sep 2021 15:34:28 -0400 Received: by mail-ot1-f52.google.com with SMTP id 107-20020a9d0bf4000000b0051b8be1192fso1107581oth.7; Wed, 01 Sep 2021 12:33:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MN8A84FtJZYLcjJOsAhof11b/DtEYUBV+PxXI/9y4CI=; b=QegkAfuyT+Iqwsa/wkUcPKB/ENaiTT2bMZbsVFjWW7HDqd+LqwxycMzsw+A3C88uyF QhQTNMR2ADTdDunXKPfkda0bc0UpXOLIpBvHcMFkmtm1BBHetJbrEZWhVowyloW2zxXf mmy1YkA5ZURVwTMS6tlrUOwwZlsR/KHJqnqNYPtoY9z1F+2lZHaEeZ2JVjiElfV9PTXU oBKEfEdceE4rchVtOT0PY0u+hYgUaL2EcHWCD34BZRusyw5q2uCvOF9gJsv1FPGNFzvI gIE2wBCAs1DCbvR/XEvFGiPg1UY13sTSE2K5rAEfbTkHeGSgOxKpXXjxSYlVCQGEGLyT xZyA== X-Gm-Message-State: AOAM531BoEkkcLWorT+kez/hO0kXjXK8n+BNLjt7IjV1epiCJPnMU7He QMZ4vdFXTknWfcDxkbPbFRI8VRR2X0cPdWqoP0A= X-Received: by 2002:a9d:705d:: with SMTP id x29mr944614otj.260.1630524811473; Wed, 01 Sep 2021 12:33:31 -0700 (PDT) MIME-Version: 1.0 References: <20210824122054.29481-1-joro@8bytes.org> In-Reply-To: <20210824122054.29481-1-joro@8bytes.org> From: "Rafael J. Wysocki" Date: Wed, 1 Sep 2021 21:33:20 +0200 Message-ID: Subject: Re: [PATCH v3 0/4] PCI/ACPI: Simplify PCIe _OSC feature negotiation To: Joerg Roedel Cc: Bjorn Helgaas , "Rafael J . Wysocki" , Len Brown , Linux PCI , ACPI Devel Maling List , Linux Kernel Mailing List , Joerg Roedel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 2:21 PM Joerg Roedel wrote: > > From: Joerg Roedel > > Hi, > > here is the third version of my patches to simplify the _OSC > negotiation of PCIe features between Linux and the firmware. > > This version is a complete rewrite, so there is no changelog to the > previous version. Patches 1-3 are cleanups and small restructurings of > the code as a preparation for patch 4. > > The last patch gets rid of the dedicated _OSC query to check for _OSC > support and merges that functionality into acpi_pci_osc_control_set(). > > This allows to simplify and/or remove other functions and consilidate > error handling in negotiate_os_control(). > > I have tested the patches with and without 'pcie_ports=compat' and > found no regressions on my test machine. I have reviewed the patches, so if you want me to queue up this series, please let me know. Thanks, Rafael > Joerg Roedel (4): > PCI/ACPI: Remove OSC_PCI_SUPPORT_MASKS and OSC_PCI_CONTROL_MASKS > PCI/ACPI: Move supported and control calculations to separaten > functions > PCI/ACPI: Move _OSC query checks to separate function > PCI/ACPI: Check for _OSC support in acpi_pci_osc_control_set() > > drivers/acpi/pci_root.c | 161 +++++++++++++++++++++------------------- > include/linux/acpi.h | 2 - > 2 files changed, 84 insertions(+), 79 deletions(-) > > -- > 2.32.0 >