Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp72424imn; Fri, 1 Jul 2022 10:09:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ummto0isQgf0UJ7DMl9A2kFV6zfhbpZ8lUm87JXWEOXeaRHMl+CuzkRL4OryY2HrW2UKPp X-Received: by 2002:a17:90b:33cd:b0:1ed:5a2b:8d1d with SMTP id lk13-20020a17090b33cd00b001ed5a2b8d1dmr17444361pjb.202.1656695368155; Fri, 01 Jul 2022 10:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656695368; cv=none; d=google.com; s=arc-20160816; b=LXJpVnBXEB7UesCdqYYVIe2K+rX/KVT1R0mrm6Lb/5v3f/f5LKCQuZgW5L2InLGVe+ imhrDh5yfhLnofjJySRAxG6NO9LCPBLL6JgU8ZiaqBO5XuBjpZmnGvYpqgoZgHaj03NR D8kz5n2L1ihlvmNajs2Iwi6ummG95SOx65tArneLxpt8aLafhdCVvnRMkQ5dP47sxDR4 CwrpL/H9d7k4OJAIuUc6OUdnkMtKXYBBrq34zamwxjAo21MiLTUoD3ST1QsoE3Yoodzi 4IjHu7vhTVcynKJ/7Su4zLkEoorEqGjsasRJcPEsn5OlR/Li3PS0a+ghSvaW/CRamQLy JOJQ== 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=Ju6Rhmb2uLyNMIKVJVDW5aSKym0njsNG9oV/KWnucos=; b=ql9Tekugmno3w8XDsnF7XAVZ+Dk09LLm4/KS+dWC63I/NuRxaUagB+9pMMOSyNxEm1 AEPlDyu8osSDYRJo+Ou39sgt1HFTsE+bfgGYvI2oj60Iyy6OjHXzMaRvCvu02kZHgyZ9 Bzq0m3b+2GIoFGWGUe2L2vBv2OeYj6H+p/bY/0aMpZD1NELBo0t+AgSc817NcvCun9tb fUHt/5fBBq7tFNKAsHKSZPb4WNaEdfThqPlxBnAzD4dba48W8VtXKZjlJ4+whbHUA9fq cstLyJox2/0ft09xtfu5DLgMIitfbTearr84IaubirEAbPoqaAGQpxgGWlTET/la0DIe E6+Q== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a63f242000000b003fe22d6bdc4si1959533pgk.802.2022.07.01.10.09.01; Fri, 01 Jul 2022 10:09:28 -0700 (PDT) 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231704AbiGAQQ7 (ORCPT + 99 others); Fri, 1 Jul 2022 12:16:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230483AbiGAQQ6 (ORCPT ); Fri, 1 Jul 2022 12:16:58 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 74D503E0D2; Fri, 1 Jul 2022 09:16:57 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 82D12113E; Fri, 1 Jul 2022 09:16:57 -0700 (PDT) Received: from pierre123.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9577C3F66F; Fri, 1 Jul 2022 09:16:55 -0700 (PDT) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Bjorn Helgaas , "Rafael J. Wysocki" , Len Brown , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH RESEND v1 0/2] Make _PRS and _SRS methods optional Date: Fri, 1 Jul 2022 18:16:22 +0200 Message-Id: <20220701161624.2844305-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 The PCI legacy interrupts can be described with link devices, cf ACPI 6.4, s6.2.13 "_PRT (PCI Routing Table)". Link devices can have optional _SRS/_PRS methods to set the interrupt. In PCI Firmware Specification Revision 3.3, s4.3.2.1. "Resource Setting": """ A non-configurable device only specifies _CRS. However, if they are configurable, devices include _PRS to indicate the possible resource setting and _SRS to allow OSPM to specify a new resource allocation for the device. """ However, _PRS/_SRS methods are checked in drivers/acpi/pci_link.c, and the driver aborts if they are absent. E.g.: When _PRS is missing: ACPI: \_SB_.PCI0.LNKA: _CRS 36 not found in _PRS ACPI: \_SB_.PCI0.LNKA: No IRQ available. Try pci=noacpi or acpi=off Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=215560 Pierre Gondois (2): ACPI/PCI: Make _SRS optional for link device ACPI/PCI: Make _PRS optional for link device drivers/acpi/pci_link.c | 46 ++++++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 14 deletions(-) -- 2.25.1