Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4182023imw; Tue, 19 Jul 2022 01:09:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uOrvPuzqocgp7xGaII8VaGJ8G7a4fDUks/2dAX44XKGVKUW4ZGuaQTnDfpxZsmtnA3LT3N X-Received: by 2002:a17:90b:3744:b0:1ef:966d:1ff1 with SMTP id ne4-20020a17090b374400b001ef966d1ff1mr43930718pjb.210.1658218172353; Tue, 19 Jul 2022 01:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658218172; cv=none; d=google.com; s=arc-20160816; b=aPt6yrPwiXRWLUkpUo1rZjvq5oPawZD28GAEG5UTZUwuSE35GPf4uSgJbWlKO7I1BS P6ac3VH3jcPRUvy0ZwEOdPwVSXg6njtMavj4kScg0Xn6onsLvf+/N9rWWcnbam2DsdoH LTKA54fBuDO2uzqhYqLH+jouZG+tLbBVoZBrigI519P2tg13lkb4ME0nTcuHHboQ49Ws viPml2jT7O5lrerNocAfNKfBIgHihgNW3JnVp0jNrsaIhYDdnLKOCuPr4jRF3gs+kb9u qTDGBvAP4PJdT0VX2BW8+WC8yVFRROVbWK6MIKAOhQxtdWmRJo0l6ScW+qRyDBikpZ1C 2weA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=E91+Wb7+uyjtlBZ7IVCwRXm7MYFqOjlqY5LUfoIgm+w=; b=X6xb9cZITsrs8AkwnOGZWHbgoLAJfdYBy4xwMXqbANgyPV2x1YZ7KBIlIenzAHzz1g 3/4/MRIAuhxwjAPdEXp5boD1tvCI02OW9csDyflMrL/wmf5zsGP4WDt4GdGbqz7Y7LbR feyMFgFIwAHtqkTWHx0/BKWFKyv3qDanyRM5zmSg3E64AHwqj03yIEwuJYyOU07vSq6L 1VU2nbrOv6QP5ZmOev62xgrxsENFHMiGiGU86yR1tv24bGaxGU/5WXNpyHWQFxC4POHd goNrRBmQo3V037zl3BJm8fMClYxkNaHLcv+9AwPlK8DXJLAOGP7MeuY0Mkgi0HvuJpYb 372Q== 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 k18-20020a170902c41200b0015d180d0710si20107259plk.26.2022.07.19.01.09.17; Tue, 19 Jul 2022 01:09:32 -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 S236560AbiGSHqX (ORCPT + 99 others); Tue, 19 Jul 2022 03:46:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232085AbiGSHqU (ORCPT ); Tue, 19 Jul 2022 03:46:20 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E9CF22532; Tue, 19 Jul 2022 00:46:18 -0700 (PDT) Received: from mail-yw1-f180.google.com ([209.85.128.180]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1Mg6i8-1napXy1zRe-00hiJM; Tue, 19 Jul 2022 09:46:16 +0200 Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-31dfe25bd49so94755227b3.2; Tue, 19 Jul 2022 00:46:15 -0700 (PDT) X-Gm-Message-State: AJIora9xv1V6445pTlUMk3XevKq+sssi4rBtfZ5xUI19oFcCyBlG5LwA ok/pgLbdjDKVyjLmVdS8kLyaiMYNI95J3y2VLXM= X-Received: by 2002:a81:1914:0:b0:31c:e12a:f33a with SMTP id 20-20020a811914000000b0031ce12af33amr34887188ywz.209.1658216774978; Tue, 19 Jul 2022 00:46:14 -0700 (PDT) MIME-Version: 1.0 References: <20220717033453.2896843-1-shorne@gmail.com> <20220717033453.2896843-3-shorne@gmail.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 19 Jul 2022 09:45:58 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it To: Stafford Horne Cc: Arnd Bergmann , Christoph Hellwig , LKML , Catalin Marinas , Will Deacon , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Richard Weinberger , Anton Ivanov , Johannes Berg , Bjorn Helgaas , Linux ARM , linux-csky@vger.kernel.org, linux-riscv , linux-um , linux-pci , linux-arch Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:6Wsbwu5+/Md0neanrtNmqGmxxhxkKwehWq/5AFSS6561YGKDWOK 4yVOQr1uiPyk1OHWow5WyiqTvdgIK9bNlys0oZYmNPMc1Rly77q7t2qYUjOqpfqvZ7zodfe PUq4E21derg05mubU0FVuW4Zmi+H5cz5qKJue1BELa8Abt2Z5OAt9cF/Mfmx4I7SjskMvXL YSMWCTYchqAdUmFydJW/w== X-UI-Out-Filterresults: notjunk:1;V03:K0:M3/Ty2MYcKw=:c8NLiwITQfbvzv1FCRulYV oQLMLSCrI5sQ4Z679DdOtXgYLTkCAHJejxlX34vfPmXZQTdWoIDwGYKYJq710r5usU3G8pwOo KjM0+zZzwQImCBzOinuPaCuhTybjmTOPcF+TE/0L4qgp55LEbKiQtPkmR1WOhssXpPueKEtsB C3xcLdGp29jaGrkxyJBaeOr63GN6UlZCfpG/fiylkdNJh4UZr3rWBh+9BeGNuXtVRVaFMLcla YpFkvD/9gS11xfOcgSrYHtoDZzDKhIiWlVn9buQzqfvSnypwK84DFN1y2FLsDiprVkWRs2gEH bgaNVVW2Pax0M8uJegUh9Mk1WpoyttJUeWHXP7qYx6HMqr8Z5hUbTXZM4A6a25hb3kozK2rM2 W4beARS5KzBV9WvBxAQxzYLCW2+xWabxZI1tWbFuZzc4sVYQ3l3NwelqhFCsosPQE/2zKrguN V0L7CNgc471nHFZLeV0M+c4ZOvHuV0MpiRlKJZ3tIYujmxkF0A26OBMixhR7yjHeJJFw3KLsR g5yncPe89L4lDvvIa68HK9+Wmg5R4g5jLA9wOT3iuPvE5jHHdaJx/FX1lRcGMoyFzbDQr1nOl RmaR+gLo3zhbWIZkqEbFo4MaaAMrOBauWaEpBZPEeNtVDPjRRhLGPDVAlRGhhn/5TvWq40UOD S+8wbv06+6S+kDZvz6euq6T8CkhWgMLqm1gauv8unWFFWjmLi7E0J+W0RWS48TjK+FcOdNe2j xoblL9+s8p6MLjuePejwzEi/kj7GHZMxWkHK4Lx89FMs/USETjWKE+RTaYDdQ4i//it03j4LB ZmnEMO6PJ63PJaIL4QvR5WPk8h/PQXjeKE8Iu5HTc07a1MHKdnQhh/6nhRhafi1UgxfjHtw69 1boV4xNM3HG+Vll82jCQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 On Tue, Jul 19, 2022 at 1:19 AM Stafford Horne wrote: > On Mon, Jul 18, 2022, 3:56 PM Arnd Bergmann wrote: >> >> As mentioned before, it would be even better to just remove it >> entirely from everything except x86, and enclose the four >> references in an explicit "#ifdef X86_32". The variable declaration >> only exists because drivers/pci/quirks.c is compiled on all >> architecture, but the individual quirk is only active based on >> the PCI device ID of certain early PCI-ISA bridges. > > > Ok, I was thinking of that route but once I saw the pci device IDs I > wasn't so sure it was limited to x86. I'll go ahead with that approach. Ok, thanks! I checked all the PCI IDs yesterday, and I'm fairly sure they are x86 specific. While some related products are general-purpose PCI-ISA bridges that have shown up on mips or arm boards, the ones listed here should all be safe. Arnd