Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2686580pxb; Tue, 24 Aug 2021 05:23:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHds3b8CUixGhxOVzLiLs6EcG7VAqkGpghdGiZ9Oczfs3D/guBX5xAzJM+dUMHwqGjCc55 X-Received: by 2002:a17:906:c1c9:: with SMTP id bw9mr40859239ejb.3.1629807798417; Tue, 24 Aug 2021 05:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629807798; cv=none; d=google.com; s=arc-20160816; b=zG22flwDOPxrlXGOe4H5rqiqw6438qVZ8qXD2Q9NuA2SeqipZoQI/q0iYDKx1S1Qq2 oxqEm2FK54i6v9uThOC/T7uvm0Qy5zfOdlCywJHcrMa65ZmPfCwCcFTu3Xe6R3GJMbXc oj8n0ZgKiTXXU5bxJqxp6BGOFnH3AYwz2PzRp6rg+6Aatxn9UejbTwQ7lyyHVjASAuGk QxbwweAX0sv8RY0GNrxT7FtRBRMcyyTX2dm2KAqcUzpni7rYs7oIGxHUzBXvSPLIlI4r 1gWSbduiTqVrb8iug1kSaRpG1iQGr0X+SwQSFTP0JYQNucFI/i6WLLgXSo85RX2wODsu 9wcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=EUcPyd/Xb/YhKDRucnbFrbT9YRMgn9yPWtijj5GtC7U=; b=0cUzKrq5dtxdeSw5QS35G3j5/1T3MW6lLxIr7IwdbMzjZtqoOT5zxAMzebR6+EKPD1 SaiE02ujedsZxqqHuT9EUNRNzkt+esldJm9ysmppPogOLmEPj6LecSQTVXSpfs4AHM9H 8a6sOQSZto0o9t/xyt2Uz774DOixD5a4QdXuzvql4MFBULSE5/hDlB/IMhJsLMberNDz CtpYnzsCCU2lFuRifiSBIR+XlX9L+rcy0/eDWa+Hgifvbx9nyVLsiQEyFWgqcljSfnHZ 8/dV/CnS0V+yC9yXFM905jRu8vP6FyoaLqC72vJBR5oXNFzu3eYL7fw0jOQcdPRR68l1 zldw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si16662052edy.419.2021.08.24.05.22.55; Tue, 24 Aug 2021 05:23:18 -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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237211AbhHXMVr (ORCPT + 99 others); Tue, 24 Aug 2021 08:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237036AbhHXMVr (ORCPT ); Tue, 24 Aug 2021 08:21:47 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B35EC061757; Tue, 24 Aug 2021 05:21:03 -0700 (PDT) Received: from cap.home.8bytes.org (p4ff2b1ea.dip0.t-ipconnect.de [79.242.177.234]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by theia.8bytes.org (Postfix) with ESMTPSA id 49C16ED; Tue, 24 Aug 2021 14:20:59 +0200 (CEST) From: Joerg Roedel To: Bjorn Helgaas , "Rafael J . Wysocki" , Len Brown Cc: linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, joro@8bytes.org, jroedel@suse.de Subject: [PATCH v3 0/4] PCI/ACPI: Simplify PCIe _OSC feature negotiation Date: Tue, 24 Aug 2021 14:20:50 +0200 Message-Id: <20210824122054.29481-1-joro@8bytes.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Please review. Thanks, Joerg 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