Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3708657pxv; Mon, 5 Jul 2021 03:57:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytqfW3VosZAlJ+kJxwFqANouh/CiH6WmirxsR0hVkIqm74ySszVAESvkAdcJghArWmXoD6 X-Received: by 2002:a92:8e45:: with SMTP id k5mr10875983ilh.116.1625482621993; Mon, 05 Jul 2021 03:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625482621; cv=none; d=google.com; s=arc-20160816; b=bD1Mj1tfkKoEU9JL8Ceg4zDX6ytHHcrfsKSZHAif8JPE2pvqQmzSvusDr57fKfn8qg qs9yowxNQD42YvSp6vw0a17FDC/3kpG/5XSv8pixEGxdnbakzfbTbq6SqQCqikb6u0NI S7QK/+Kq/w3Ubw4mi7VHMjENvf6PRBHj3LbRlORBjf+leIjQzEB6TfPOUgflaXVqVTCc rxdOP6NzMzBC/lhVlVSec3yh/SaBCTREubVtTrb+zg0QOgxx2we1o0OpEa7pecKhG6dc w+KV0dpQW5zX4/bydV1EvsBTWYbB51amovfao99FKqdmpgMB45zYj2JsJExXBZn1eUMZ uyqg== 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=vXzbibF6HqLvkulq32C4aVhxUvQvIhr0gcLw1gTuEhE=; b=mqNSHdPVf9EeFzaJxq+RQUIpSFpBLl4vZMy0kaDrcL1yRmsd0WEAXFkvaXAgpdccNX wrZpY3De2le1wJvPFpv0rsdMZGKcvyaXKvcnsW5a+FuCvb9CTJXm1+ge0BTsfAeJzVrm 4H9k+C3hQpWZMC3DQ0FRGQ/SYaM5l8E54U336/BRKHT5CB/P7RUU/F6VCzz//DsM9ZZo JtZTIdZIiHJmYMxwU7EVx61auy0qhlUkH4VwTO/GHBYYGKpDxwr0bljrHkOTbZW5vABe 3NsEAYCrgZG2jQh3VWQfgzH9+jDFoLi4bAewney6zOX317hsyiic+M9Rg7SHrtVnFn0q toIw== 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 a4si13306801ild.162.2021.07.05.03.56.50; Mon, 05 Jul 2021 03:57:01 -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 S231248AbhGEK5c (ORCPT + 99 others); Mon, 5 Jul 2021 06:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230511AbhGEK5b (ORCPT ); Mon, 5 Jul 2021 06:57:31 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C33C5C061574; Mon, 5 Jul 2021 03:54:54 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id BE50C92009D; Mon, 5 Jul 2021 12:54:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id B823892009B; Mon, 5 Jul 2021 12:54:51 +0200 (CEST) Date: Mon, 5 Jul 2021 12:54:51 +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 RFC 0/2] x86/PCI: SiS PIRQ router updates In-Reply-To: Message-ID: References: <60DF4C75.7020609@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 On Sat, 3 Jul 2021, Maciej W. Rozycki wrote: > > > Nikolai, can you please give it a hit with the extra debug patch as > > > requested in my other message? > > > > With > > linux-x86-pirq-router-sis85c503.diff applied > > linux-x86-pirq-router-sis85c497.diff applied > > and DEBUG 1 in arch/x86/include/asm/pci_x86.h > > here is new log: > > > > https://pastebin.com/n3udQgcq > > > > My feeling is that something went a bit wrong because: > > > > 8139too 0000:00:0d.0: can't route interrupt > > More important is actually the previous line: > > PCI: Attempting to find IRQ router for [0000:0000] > > meaning that the PIRQ structure defined by the BIOS has not specified the > vendor:device ID pair for the router [1039:0496] which we match against. So it's actually both the vendor:device ID pair and the bus address that matter here. I've now posted a patch I am fairly sure about that combined with the earlier changes it will fix your issue. I have verified it in a simulated environment where the PIRQ routing table has an invalid vendor ID given, with correct results produced: PCI: Attempting to find IRQ router for [0000:0000] PCI: Trying IRQ router for [8086:1250] PCI: Trying IRQ router for [8086:7000] pci 0000:00:07.0: SIO/PIIX/ICH IRQ router [8086:7000] Please let me know of the outcome. Maciej