Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2623088pxb; Thu, 3 Feb 2022 10:21:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5pS5Ae0Q0vRnznU6QjspMJAtQYxqkkGtYVJ7MlDvX3DbQysBK0TSLSp/VjzhLdcrH2fW0 X-Received: by 2002:a17:906:c105:: with SMTP id do5mr30156162ejc.165.1643912511001; Thu, 03 Feb 2022 10:21:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643912510; cv=none; d=google.com; s=arc-20160816; b=tfacfGE51W5A+pn1yrLa5jJLC12dbv9g+V1yq4lf0C01MxtIDlKUUyzdT+imTyBT3h pmLLLONIQc2uL3+hB/Po6jscPw0043UyFlNHJCKTXrZelwlA2HWgrdDAVXxB888j9o7A X7qhm2YmXKPz7NS4IBOhq66qJAaGUJZG3/4A9qai2LOUH49aeCvDBqKuRZtrNZ3qIKaT 3NguUYsF9T8hxWdq2Ki5/ubHgYCsfECGxRUP3BCyPOJv1NCn1liCLzQomHDxh4+gQE9R wgvK+91t19Z527L/KbSeFejmGMx3LiM7mD+Jqw/APGa15wmkkNayWwrc4p7i+dlqQHDP Btbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=it/bd9GP8SweyuwYrMPemeUJ+iMlIc2pEixb7rQ3wUc=; b=CL9+5xMkfOiHTa62KCCklLZFtJkDRsPGeiG5wPFc2g6DTdeMJMjZIWPj+dnyN/2WdP Pl/ct24mMLb8LUcsdC/hS1gA1pfwzKqYqJmHC6TuFsJcvLxKyd+3F5shzdkEmvrQg3vy dys0bMWei3LbyCIYaSYGwZ0VSjPCAOtrbOXrKGneC2pqbhJ/A5g4ULgC/oRZRXTBz4Z0 iu3ttVL/tUCV6io+xKvUMfidYN8sfMR65jpAio+aoYSa87Pvmd9pggmrARpnYg4EhvLE S+Otejq0zkxNWAHeSc0QUBpT83MuozqzcH6AJxZ6gNaJ33cJUrB8THmaDFemGenBKqyO 9iAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OM5Ndl1u; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=BvfoOJMI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18si13428521ejl.151.2022.02.03.10.21.24; Thu, 03 Feb 2022 10:21:50 -0800 (PST) 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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OM5Ndl1u; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=BvfoOJMI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347208AbiBBUbM (ORCPT + 99 others); Wed, 2 Feb 2022 15:31:12 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:48962 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347133AbiBBUav (ORCPT ); Wed, 2 Feb 2022 15:30:51 -0500 Date: Wed, 02 Feb 2022 20:30:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643833849; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=it/bd9GP8SweyuwYrMPemeUJ+iMlIc2pEixb7rQ3wUc=; b=OM5Ndl1uU33mwxrjKMvorI84dy1Z7ZV2gV562YWqYkX8+MnGcyTs2BGtuyO296k6pAXO8E VChKpUTEZ/TF4NoOxzH5mvqJ6ygfEw6vU32g7wWTdnXiLj625wiifP+NR49E2VabuhNR3+ y6sXQfgvQwDsv/hP9HDTy23CivKouzIxMZoe158zlNjyoQNXDqqajZM4dHMun7UNzNVHTj 8CYCfAcW5Yq8aX0XblH/bqMLMjmRUv4ipZWRz5hoTwE/2f6etKf/YycQKYL2OtnFaK7JYh VnY3PPoytIS+xp8916+jm6sLYtjTUGf6mMO3pSwcNsXn3tZcLFDHG4mmTJbJhw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643833849; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=it/bd9GP8SweyuwYrMPemeUJ+iMlIc2pEixb7rQ3wUc=; b=BvfoOJMIUiEqtxH/6C40VA3wEUzN8wMPgag+yH3wc6Tb+zkgaqXVPdAJhrV8y78asAPzLv KcvhONFs6lEoyfCQ== From: "tip-bot2 for Maciej W. Rozycki" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/irq] x86/PCI: Include function number in $PIR table dump Cc: "Maciej W. Rozycki" , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: MIME-Version: 1.0 Message-ID: <164383384808.16921.16565325155265314016.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/irq branch of tip: Commit-ID: 9574931789945734fd8abcf99883b83a3b3b32ba Gitweb: https://git.kernel.org/tip/9574931789945734fd8abcf99883b83a3b3b32ba Author: Maciej W. Rozycki AuthorDate: Sun, 02 Jan 2022 23:24:29 Committer: Thomas Gleixner CommitterDate: Wed, 02 Feb 2022 21:27:54 +01:00 x86/PCI: Include function number in $PIR table dump Contrary to the PCI BIOS specification[1] some systems include the PCI function number for motherboard devices in their $PIR table, e.g. this is what the Tyan Tomcat IV S1564D board reports: 00:14 slot=01 0:60/deb8 1:61/deb8 2:62/deb8 3:63/deb8 00:13 slot=02 0:61/deb8 1:62/deb8 2:63/deb8 3:60/deb8 00:12 slot=03 0:62/deb8 1:63/deb8 2:60/deb8 3:61/deb8 00:11 slot=04 0:63/deb8 1:60/deb8 2:61/deb8 3:62/deb8 00:07 slot=00 0:00/deb8 1:00/deb8 2:00/deb8 3:00/deb8 00:07 slot=00 0:00/deb8 1:00/deb8 2:00/deb8 3:63/deb8 Print the function number then in the debug $PIR table dump: 00:14.0 slot=01 0:60/deb8 1:61/deb8 2:62/deb8 3:63/deb8 00:13.0 slot=02 0:61/deb8 1:62/deb8 2:63/deb8 3:60/deb8 00:12.0 slot=03 0:62/deb8 1:63/deb8 2:60/deb8 3:61/deb8 00:11.0 slot=04 0:63/deb8 1:60/deb8 2:61/deb8 3:62/deb8 00:07.1 slot=00 0:00/deb8 1:00/deb8 2:00/deb8 3:00/deb8 00:07.2 slot=00 0:00/deb8 1:00/deb8 2:00/deb8 3:63/deb8 References: [1] "PCI BIOS Specification", Revision 2.1, PCI Special Interest Group, August 26, 1994, Table 4-1 "Layout of IRQ routing table entry.", p. 12 Signed-off-by: Maciej W. Rozycki Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/alpine.DEB.2.21.2201020153230.56863@angie.orcam.me.uk --- arch/x86/pci/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/irq.c b/arch/x86/pci/irq.c index a33fe9c..b6b9853 100644 --- a/arch/x86/pci/irq.c +++ b/arch/x86/pci/irq.c @@ -135,7 +135,8 @@ static void __init pirq_peer_trick(void) #ifdef DEBUG { int j; - DBG(KERN_DEBUG "%02x:%02x slot=%02x", e->bus, e->devfn/8, e->slot); + DBG(KERN_DEBUG "%02x:%02x.%x slot=%02x", + e->bus, e->devfn / 8, e->devfn % 8, e->slot); for (j = 0; j < 4; j++) DBG(" %d:%02x/%04x", j, e->irq[j].link, e->irq[j].bitmap); DBG("\n");