Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4609544pxv; Tue, 6 Jul 2021 05:14:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxku/b8fGHSl++Q9AjhmMoGTLVF6N4VGItObDYJPGt/DT6U0cGT5vHepVjmm/mFxOB3Bdmr X-Received: by 2002:a05:6402:7cc:: with SMTP id u12mr1147595edy.156.1625573662162; Tue, 06 Jul 2021 05:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625573662; cv=none; d=google.com; s=arc-20160816; b=VjlEnaMqVPY9LDHQv7PbSF1wMW9v1L9Ph3XEWF6p9qwxK+dfaXb1UdlUwoFQAMRxTW Yfksz3N5oYqNR+HfgwFKeFNuWs6mkjQJjVQnrWSJA4si3220kCsxCuPAIS9Sy+jsLet8 bTQ8YeNIwbro1hQLqB5GI4XYyipRH1y51q8tFoCY2d0oJrYAW753FesOtyiD8tRNerGX K5QNX1raD1EiABAHNFGQu7wqwwq6WJIhUsmG8ygfNatFC7AIWmVvYm7Jg3RxwwWMLq3/ 2MshFrqH3vUXR5Fe4mvg2UCpoiDRZOftOda2OrkFjFFBZvpmSpJ30P/O22hKZQezuQPH q3bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=3YoxdveW96zitPFCsXQksLUkD2mJeXyu7txC5o9CsP8=; b=s9PdTp57jrt5XW/2tIQhN/shpECa+XstrlbFGMNvMcICIqIxsx6HeSTqq4BlESW6GF PEIhAI88IxkYF160C26uZTTSAN4RwjGjiO3FRlMpfBrBDATprDRw9pdiWQAB3Rgz7Gg9 BANMl8g5XXci/cy18JzK96QbLPZfaoXrokhfA8QwKuHMeCmnBtEbT6lweee3CVqUbHMa 3Sw+3m6Wlc1RoLLyal21c+S0CGedztfvn1N8P600+jbvslg6DCKrCES090CLwFjdBlqL E+LqO/8aY2BXfYgP1WN8jGrtPprrpWMmxVuRfCePQz7vKo58dsY+xtJXYYJ94tVbjfFS 9Cyw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si17455956ejj.130.2021.07.06.05.13.58; Tue, 06 Jul 2021 05:14:22 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243906AbhGFMKK (ORCPT + 99 others); Tue, 6 Jul 2021 08:10:10 -0400 Received: from angie.orcam.me.uk ([78.133.224.34]:60388 "EHLO angie.orcam.me.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238015AbhGFLiT (ORCPT ); Tue, 6 Jul 2021 07:38:19 -0400 Received: by angie.orcam.me.uk (Postfix, from userid 500) id 0B6BD920110; Tue, 6 Jul 2021 13:35:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 08FB69200CE; Tue, 6 Jul 2021 13:35:40 +0200 (CEST) Date: Tue, 6 Jul 2021 13:35:39 +0200 (CEST) From: "Maciej W. Rozycki" To: Nikolai Zhubr cc: Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Arnd Bergmann , x86@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/PCI: Handle PIRQ routing tables with no router device given In-Reply-To: <60E43052.8040802@gmail.com> Message-ID: References: <60E43052.8040802@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Nikolai, > > PIRQ routing tables provided by the PCI BIOS usually specify the PCI > > vendor:device ID as well as the bus address of the device implementing > > the PIRQ router, e.g.: > [...] > > linux-x86-pirq-router-nodev.diff > > This one throws a panic in bus_find_device() here. > I can not yet get a good printout because scrollback does not work. > Maybe it is because of 4.14 kernel, and in order to apply it I had to change > pci_get_domain_bus_and_slot back to pci_get_bus_and_slot. > I'll try to also test with 5.x kernel later today. Umm, my bad; I missed the initialisation of `dev' for `for_each_pci_dev'. I have posted v2, with another `dev'-related fix as well. Please try that instead, and sorry for the mess-up. Maciej