Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp18030imi; Wed, 20 Jul 2022 16:02:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t/IjOi09QcHeQ0H0BoyBKLPzHU5j/LXw6ji9p8ymPy2q9680Y/xARYTMsSg7iFoQ5MWTO5 X-Received: by 2002:a63:1a18:0:b0:419:aa0d:4f9c with SMTP id a24-20020a631a18000000b00419aa0d4f9cmr31283501pga.389.1658358135072; Wed, 20 Jul 2022 16:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658358135; cv=none; d=google.com; s=arc-20160816; b=J9hd7m7be1HFr1r1np4C8fugn+RSAi46xnf05v/KrPhznHSctTN+4QdeaOvJcpdYbB EDNx8h445DJYfCzI7m4oyJV9xDu5rCXu6u5srsm/gW8NfiKe9YFNr1GOzH55GFYFH/UA bBoBBHykuIY2NVs0gUQWmB3dbT5KCayZ7h3cIoq0qg5VDtpQ1RDhfvZT2JH45okpS1Hf dAj7LrRMfGgTrDrlC5JkJuLVyOSlPP+LUYVTbNQe4CE4ralLMyJhCB8l8/29VOeucQXS lAxjRCmaxlXRN73zjOw1dNj9EOnlpzy+8eGzIbaH6vxlCNeJEfyYSxzdR6xyDeJYgoYJ eWlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=6FGyI+Qx/No4Z094f+h0TgQp+rda3BxkBkHZ8KMF1ZE=; b=tJtPBzCZdCTgGymK7Pikf4vgQgdmFmDKcqsJI+kz/Ti8VucWQeRmtmlZXTeMZ3CaHA C06EZGJPa3dfxTUsPqiNSnMWiONAQDXJiWpiX7hjaaqtl7zWkKDdJprWoMBT0/KGm4qq qx5X0w2uQ1RQzCdKnrHtvyXM6vTEYk3Gsv6oQMJQJSFy//5+UOYw5neArYKDgZgWOCt+ +yaFkHwwLIFW4m3JKdOwICN1OR3wh/l/9K0gkkomBDi+ujacfEzQc9tXVN4C4fJfoSFw uoLt2wp3pIEEo7WHLJlOSAqQxNW0wjqRPVXgC5jtmBuvlmQ4wuyEdXB7csIsMgOeqb3I VFCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="m79q/3nO"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r130-20020a632b88000000b004152331e6a2si26420pgr.829.2022.07.20.16.02.00; Wed, 20 Jul 2022 16:02:15 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="m79q/3nO"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231184AbiGTWmp (ORCPT + 99 others); Wed, 20 Jul 2022 18:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbiGTWmm (ORCPT ); Wed, 20 Jul 2022 18:42:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83753491C6; Wed, 20 Jul 2022 15:42:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0A50761D93; Wed, 20 Jul 2022 22:42:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2933FC341C7; Wed, 20 Jul 2022 22:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658356960; bh=1V98A2z1F38fHHvrHBoo3HaWj6yGKB/FnX3vGN/AvvA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=m79q/3nOeKxO56yGLe38LNngUjS5YlwsOdqK12cNE9FC0rQpA5M2cKg/8rHwh60Z5 BPAAVPRoJ5JJmqHBUcAX4ttH61aNg6RrVZ65eqZElDOUIG3z1nT5nL8QdLrXM/RAi5 y0YlLlcHVolcpqBmOq/O70j4oT9+v54KkULa09nMFF0etcuRk2rnIcjvozDv+tp+OV rqo9SjfsM4FuruB28UMpLNS7Oru40GeOfbHjKn3kYTXRQo98BK6Z3F6sfIuqGEW7Ik eCHm/TKEeRLSeVUFF5Bf/qzKi+i6Dt2/JQShBjFekRlJOmVNQaQUA+aekpY3hRDynf 2QFzdbfgbYpxg== Date: Wed, 20 Jul 2022 17:42:38 -0500 From: Bjorn Helgaas To: Stafford Horne Cc: LKML , Arnd Bergmann , Pierre Morel , Geert Uytterhoeven , Catalin Marinas , Will Deacon , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Richard Weinberger , Anton Ivanov , Johannes Berg , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org, linux-um@lists.infradead.org, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH v4 3/3] asm-generic: Add new pci.h and use it Message-ID: <20220720224238.GA1666095@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220720131934.373932-4-shorne@gmail.com> X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Wed, Jul 20, 2022 at 10:19:34PM +0900, Stafford Horne wrote: > The asm/pci.h used for many newer architectures share similar > definitions. Move the common parts to asm-generic/pci.h to allow for > sharing code. > > One thing to note: > > - ARCH_GENERIC_PCI_MMAP_RESOURCE, csky does not define this so we > undefine it after including asm-generic/pci.h. Why doesn't csky > define it? > > Suggested-by: Arnd Bergmann > Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/ > Acked-by: Pierre Morel > Acked-by: Geert Uytterhoeven > Signed-off-by: Stafford Horne > diff --git a/arch/arm64/include/asm/pci.h b/arch/arm64/include/asm/pci.h > index 0aebc3488c32..016eb6b46dc0 100644 > --- a/arch/arm64/include/asm/pci.h > +++ b/arch/arm64/include/asm/pci.h > -extern int isa_dma_bridge_buggy; Shouldn't this go in the previous patch? The only definition of a isa_dma_bridge_buggy variable is in drivers/pci/pci.c, and it's under #ifdef CONFIG_X86_32. Same for csky, riscv, um?