Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp52043pxh; Thu, 7 Apr 2022 13:42:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAmO0CzV+Pcl05UbqMmxDbyn1jweb0owLH3ALE9aXL8sbdToKM7DOSC3SnjaEDzAkF70RU X-Received: by 2002:a17:902:d714:b0:153:a902:e544 with SMTP id w20-20020a170902d71400b00153a902e544mr15728093ply.17.1649364160599; Thu, 07 Apr 2022 13:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364160; cv=none; d=google.com; s=arc-20160816; b=n6RgFTOTy/vZp88OTD/8v+f8kwAxiaUOwRkIKp5L4JxtZkV2d1RekFTZ7zFLCqNh8A Xj1eASSssNQBW1BHJ+K/TLXkFI5yhSpqw2LVqHHYOZ/ucGo28vkOKzzGDNbI/2U+4de7 RIbudkduieXp3LUU2mLsukCPIgwQB4eaS5/yQGtVQ1Km9Z3o6V1KmzbjqomhJQEZYl0t TC3DWXMDj/geLOoVmwF7pTX+qjBVkoBZXZXB14q12cnc/SgkDHhfU63JInBcYDPw1bHC UqJT72Vg7P4R7NdK29koOBqo5uxFpIs5V0a/p1uqMTG2m8Nds1lIviXVHoj4/T1widJV jl8g== 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=kVhc8QOcwiWMCzHgB88KY2nnueeSYOwndmBk521L81M=; b=oaSDjteQnwUxO9nD45tJMAtj4yhNQXhzYIN3aT+TIjqOxcXxAUlYtlGMOIHotrXJir +Twyj/HiUWyRRYQS2RWziMvLveY9GSIBezhKtFbSFWNYdiR7pWqqu7kvaAJSSL/P9JcU P7+vfQj2MBOyOxU568bymuUukq5kKoPhlm8wjHg0Bdxz1BuPZvvf4a9GwwmKu7GozVx0 1bXLQSy3OSctdcHS71jMzDfFqylX3vJMR0kDGHdlgkqBWixS3RPJ8xZqu8t4aDxhv4n2 te0llBVWnI3opLZEuSsscUMmGoPM5021kZef0H2evd2lAcIZ28HXTITKY0U2ym6EsR+R MT3g== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f7-20020a056a00228700b004fa3a8dff5dsi24098670pfe.20.2022.04.07.13.42.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:42:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53C983D39FE; Thu, 7 Apr 2022 12:53:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244174AbiDGNTm (ORCPT + 99 others); Thu, 7 Apr 2022 09:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241658AbiDGNTi (ORCPT ); Thu, 7 Apr 2022 09:19:38 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE2751CABFD; Thu, 7 Apr 2022 06:17:34 -0700 (PDT) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KZ21w02ShzgYFr; Thu, 7 Apr 2022 21:15:48 +0800 (CST) Received: from localhost.localdomain (10.67.164.66) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 7 Apr 2022 21:17:33 +0800 From: Yicong Yang To: , , CC: , , , , Subject: [PATCH] PCI/ACPI: Decouple the negotiation of ASPM and other PCIe services Date: Thu, 7 Apr 2022 21:16:02 +0800 Message-ID: <20220407131602.14727-1-yangyicong@hisilicon.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.164.66] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Currently we regard ASPM as a necessary PCIe service and if it's disabled by pcie_aspm=off we cannot enable other services like AER and hotplug. However the ASPM is just one of the PCIe services and other services mentioned no dependency on this. So this patch decouples the negotiation of ASPM and other PCIe services, then we can make use of other services in the absence of ASPM. Aaron Sierra tried to fix this originally: https://lore.kernel.org/linux-pci/20190702201318.GC128603@google.com/ Signed-off-by: Yicong Yang --- drivers/acpi/pci_root.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 6f9e75d14808..16fa7c5a11ad 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c @@ -37,8 +37,6 @@ static int acpi_pci_root_scan_dependent(struct acpi_device *adev) } #define ACPI_PCIE_REQ_SUPPORT (OSC_PCI_EXT_CONFIG_SUPPORT \ - | OSC_PCI_ASPM_SUPPORT \ - | OSC_PCI_CLOCK_PM_SUPPORT \ | OSC_PCI_MSI_SUPPORT) static const struct acpi_device_id root_device_ids[] = { -- 2.24.0