Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2956159imw; Sun, 17 Jul 2022 21:59:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sEkamlTHdD6hVEb1UWQfr2guggvGGkhE+l/3EXKXlWaHVH2c1AhMwRBm1O7Jz9do0mfLTz X-Received: by 2002:a17:903:24e:b0:16b:a02d:41fc with SMTP id j14-20020a170903024e00b0016ba02d41fcmr26723856plh.121.1658120356992; Sun, 17 Jul 2022 21:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658120356; cv=none; d=google.com; s=arc-20160816; b=sJSarlmlZqW/jl86+SlPbh6aNTjtV3AEiAtkEwAmvszBNz9WWmKaQV3sjN3woUnzI+ ZfytE+0CLhXW2WKqGoSMn3YMEac6EXaTH07KgLHlxSN3NrlP+hDYktu0owh6h7TL8h3P LZq+BN+Q3HgCy94KSpf9KRJW83vEDhyXgz4EsO7SIOwEGGF1qKIR7JoQN8GZz35Q+2YE PtMuslxvhltTEIc1jmTbg1qkgLde9OWXJATRsfTPQa37Ffy6uwR/8GapVvT6Ep9xSYSE qCxguSnaOBDFNDwcGuz2hXQI88DmL3MDT+gQIgLoEyV260LkCFKKMuihzG2daz7bVE7T w9DQ== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=h1dNvGxjCE8fsWPX0rqsPsfL/JqXGMXn4wNKGsUwRbg=; b=vfGDapxXMBw2vyTowK6DKapg81cXQ/WciEL9z7XlMsbIUlg9moqVCrbeyPUdt/Nud7 qLs7kDa6V1pc4ueoDN+CfytyuX+HJEmPViDZobeDCy1cQs0A9w7TevsEnXx/D6sML3GV 65kwEHnAOunsxiXtJqZ4oo5KBrMqkuZRbIhE0eejU8D4zMgde6jcahhgCv6BUkgRih8x l4NnSbsUkcMD+Pbv097wW2Rec75nRyT/Llv5eTR1KWY/q04GvZwlZcWPa6HXmLdMd3oU GF2hVy3n0wpvW0J2FQl+dFh2dibLqL4qDqmpxNW8zFbZu+UGFHQVMpN5bxvWIWhoM4+H bn5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=IFLwUHjS; 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 j62-20020a638041000000b00410702fefc1si4878756pgd.542.2022.07.17.21.59.00; Sun, 17 Jul 2022 21:59:16 -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=@infradead.org header.s=bombadil.20210309 header.b=IFLwUHjS; 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 S232873AbiGREhR (ORCPT + 99 others); Mon, 18 Jul 2022 00:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbiGREhQ (ORCPT ); Mon, 18 Jul 2022 00:37:16 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF6BD10545; Sun, 17 Jul 2022 21:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=h1dNvGxjCE8fsWPX0rqsPsfL/JqXGMXn4wNKGsUwRbg=; b=IFLwUHjSJ+aCRPMOv5C0EA3tlT 8dCgyvAsBnZ/3yGLB8/vuVFYv83v7RAI1pTwZ/qUzcR1EMmP3egyL5RCXAhVjjYzXOGriYXCnbjfr FTTqMy1cM9/ZoL7u+biUCoKMvqa7ylAsgfW2I+sw6mqMCciU9BYuQXjPO8yWJIKgrpgkbAIG6klb3 PnL6HQjJa+BfZ8Om+OQZ06PjVIu3H/GD+1SZvoR44ZSE4aS02PAvNHHfJJT+B7CXAdrTqjFITMq/Q xwgAGbEfhkfHofIDrOkNWm0XZgIIWcBBt5pP3ZZG+ikYlqAKEvGxUs9z7QtBrYHGlquL4ixkFpzPY IQu1pHFA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDIVM-00Atct-TK; Mon, 18 Jul 2022 04:37:12 +0000 Date: Sun, 17 Jul 2022 21:37:12 -0700 From: Christoph Hellwig To: Stafford Horne Cc: LKML , Arnd Bergmann , 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 v2 2/2] asm-generic: Add new pci.h and use it Message-ID: References: <20220717033453.2896843-1-shorne@gmail.com> <20220717033453.2896843-3-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220717033453.2896843-3-shorne@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Sun, Jul 17, 2022 at 12:34:53PM +0900, Stafford Horne wrote: > Two things to note are: > > - isa_dma_bridge_buggy, traditionally this is defined in asm/dma.h but > these architectures avoid creating that file and add the definition > to asm/pci.h. This doesn't have anyting to do with PCI support. I think adding a separate header just for this that always stubs it out unless a config option is set (which x86 then selects) is the besy idea here. I also think the isa_dma_bridge_buggy needs to move out of the PCI code as well.