Received: by 10.223.185.116 with SMTP id b49csp6758197wrg; Wed, 28 Feb 2018 15:10:46 -0800 (PST) X-Google-Smtp-Source: AH8x225QfS4zbgvxNXA52vvlC1zUYTJhyB24ZLavZdMA5hOKe428gsu2AVeemf/8YlKDyNCCUsqr X-Received: by 2002:a17:902:788e:: with SMTP id q14-v6mr19723771pll.396.1519859446343; Wed, 28 Feb 2018 15:10:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519859446; cv=none; d=google.com; s=arc-20160816; b=b4QFPTdwrw7XH0qWUiKIOC3QQ5x3sICKz3X+pGs5bZ80hbbnfQ4MdnOjefUTtl1Zhy rymrB/KzDyuv6VuunEFJljWl2DREdEAP/MQFLqPYFvUTmNkmYfauPag97Qaa7bx4J4Cp nzz+pUUOA0/imgME099O/jP+wlKj4E+JI7AejNFAYP5q7CXIV0H6jU08LEVf+mqSpTvm fIiH6Vq4H4yQ9TAFJAO6CJ4CmDx0HhzLCQcceQsEhPY8sqVPIoTVYA+EJxyxVbuO9u63 xnURFrRgtLIEcLrYzhgakair2u5Cp33vwwCsY8K/SYyE5DHVPk2vU//vg23jTjFLyF9H PfaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dmarc-filter :arc-authentication-results; bh=DyRbnKBeZL/w73dbSKyw9rZNhNQVa9TaWmo9hXwKW5k=; b=i9+xFUoqHXJrOrfOAb5/9qKwKJd8O0INf9Ta/gyWVdooqwrhs5gefsjO/WXDzldVj6 aX9v3ABdb4Ne/Ek6M2E2XLtn23FnEETsAYuaAogjrUC2xlL50HZd3Mj/Tdd+D5d91Iau 3T1IFkuhMuht1heFawYIdU2/bxEMUcW4noo4f4QFKdQNiDpBhNdcwKzN2LPkWFbHaYlZ +W6rXEj/7t0yDU8Os3LJSqvvI0htFVQlVWNmpgj2YSu5lanw02aLZcslNqjHj+ho7GmH vYhRjYXFNIpcBxFkguzCT4jMwDNkKJhSmSymWvDiV/U/MvqZYc8v6kQWG3NL7khM5n2r TWmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u19-v6si2022333plq.120.2018.02.28.15.10.31; Wed, 28 Feb 2018 15:10:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964896AbeB1XIc (ORCPT + 99 others); Wed, 28 Feb 2018 18:08:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:58718 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964867AbeB1XIa (ORCPT ); Wed, 28 Feb 2018 18:08:30 -0500 Received: from localhost (unknown [69.55.156.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D4AFC214EE; Wed, 28 Feb 2018 23:08:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4AFC214EE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Wed, 28 Feb 2018 17:08:29 -0600 From: Bjorn Helgaas To: David Miller Cc: dwmw2@infradead.org, sparclinux@vger.kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH] sparc: Use generic pci_mmap_resource_range() Message-ID: <20180228230828.GR127842@bhelgaas-glaptop.roam.corp.google.com> References: <1519045452-22645-1-git-send-email-dwmw@amazon.co.uk> <20180219.094951.2098243214524004486.davem@davemloft.net> <1519053858.7876.84.camel@infradead.org> <20180219.103025.1676484157305869188.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180219.103025.1676484157305869188.davem@davemloft.net> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 19, 2018 at 10:30:25AM -0500, David Miller wrote: > From: David Woodhouse > Date: Mon, 19 Feb 2018 15:24:18 +0000 > > >> For one, the sparc specific code allows mmap'ing any address range > >> within a PCI bus device.??The generic code does not allow that. > > > > > > You mean any address range in a given PCI bus even if there is no > > actual device with a BAR at the corresponding address? > > > > Would I be right to assume this was only available through the legacy > > procfs API? I think it should be possible to accommodate it, and it > > does look like I'd missed this requirement the first time round; thanks > > for pointing it out. > > It was probably the case that only procfs could do it. > > It is the mechanism by which we were able to let the X server poke > around in VGA ISA space. It does a bus I/O space map for the bus > device above the VGA card. What's the bottom line? Do we want this for sparc? If so, do you want to take it, Dave M, or would you like me to?