Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp156789pxb; Thu, 31 Mar 2022 02:01:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6QBGV1glTK4Sa8+TUUPd+cGbvdZ+MSYC0RXl35nsYngbnuvhRsRIbBu1zBZPw6Z4OCDyF X-Received: by 2002:a05:6402:50c7:b0:419:534f:bbd7 with SMTP id h7-20020a05640250c700b00419534fbbd7mr15212179edb.209.1648717312785; Thu, 31 Mar 2022 02:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648717312; cv=none; d=google.com; s=arc-20160816; b=niJG+Mnw/l81XGwwWmPU61H1Isom5Ow+0qmCbbEKbclqeXe4ZSWO5WeHxoGjZ9ACqm mCteOVJLkwIWyeZwAf5egH4l0l4J19rw9/GA8nalB0WH0Iiy2x4lVAaeADm8jWsfG5xo KxfMkEj8IPwysDCVDwBYB9lU9r8h3E47yJAASjQ1jzo1SysZsJxBvjdm3lNNGBsQpExD 5vTccvi+w02RuC0IgSjlS8MwCwV+7DoVFcsfoF5dAjM2ZqDLGGv+it5EOyHrIvAwwvWz Qy9Zh8Qwx1ud1FIKVIUsNv6PJytrfugYGk+cc7bRU8Dqwv6L/WaDTXPRhF8YEa+J7Nl+ VJvg== 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:message-id:subject:cc:to :from:date; bh=0RQcDLRnWjltdeo9nGhTAEg29dYjT7kDxk5jFngGxmo=; b=m4k27SoRqmW9c0jpN+F72CrK/br8zNY06mPVAKteMh+XxpptEbQBIQo/1TIv9DFCjc DNGZdHyV5dsdia8KHRkZ2jI4HBJxBE1drW9sWZy87TImJ2Vauk3VqOYZA1BXUcJs9gfX UIOlWbXfjMluzsFunRSSIwT2qLJsUDXV1Uc7CfouBaCtyAW61zQt01dCQWu5qU2Id37c ofVUNwvjq1neT+srUDh3sksnGVOI9xzIZ9a3I3A9p/PZX3typOBsR30uJC/XldQpldOM ZsvA8FOu/MqPJhz+CC1cI88MYTFIwfCdXGAqjlz3qX4lyEsjKhPiRZwIZezm+EicHgpd ujYA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc27-20020a1709071c1b00b006e48d140c28si4925965ejc.506.2022.03.31.02.01.26; Thu, 31 Mar 2022 02:01:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231928AbiCaHNL (ORCPT + 99 others); Thu, 31 Mar 2022 03:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231926AbiCaHMy (ORCPT ); Thu, 31 Mar 2022 03:12:54 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CE5944A38; Thu, 31 Mar 2022 00:10:52 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 8937A92009E; Thu, 31 Mar 2022 09:10:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 81ADF92009D; Thu, 31 Mar 2022 08:10:51 +0100 (BST) Date: Thu, 31 Mar 2022 08:10:51 +0100 (BST) From: "Maciej W. Rozycki" To: Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" cc: Arnd Bergmann , Nikolai Zhubr , Michal Necasek , Dmitry Osipenko , Linus Torvalds , x86@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/5] x86/PCI: Improve $PIR and add $IRT PIRQ routing support Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HDRS_LCASE, 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 Hi, This is an updated patch series with a fix applied to what is now 3/5 for a bug that was reported by Dmitry (thanks!) having triggered with his x86-64 setup and then nailed down by Linus (also thanks!). Additionally as suggested by Linus a fix has been added, for a preexisting problem with the routing table not being verified to stay whole within the BIOS memory range, that has become 1/5, expanding the whole series from 4 to 5 changes now. In the course of that addition a couple of coding style issues have been consumed, shrinking what has now become 5/5. The cover letter has been updated accordingly throughout. First 1/5 handles $PIR PIRQ routing tables that lack router device information, fixing the inability to route interrupts with a system using the SiS85C497 ISA bridge. Then 2/5 adds support for the $IRT PIRQ routing table format invented by AMI before Microsoft has come up with its own $PIR format. These formats are very similar to each other, but the $IRT format does not provide for router device information, so this change relies on 1/5. It has turned out needed to route interrupts with a system using the ALi M1487 ISA Bus Controller device, discussed earlier on in a discussion thread around: . This change has been verified with an artificially created $IRT table. Then 3/5 adds a range check for Then 3/4 corrects our link value interpretation for said M1487 device according to Nikolai's findings with his system reported here: . Finally 4/4 corrects a couple of coding style issues around though not immediately within code changed by 2/4 so as to make the style consistent. See individual change descriptions for further details. Credit to Michal (cc-ed) for helping me chase documentation for the $IRT table format. Please apply. Maciej