Received: by 10.223.185.116 with SMTP id b49csp6946361wrg; Wed, 28 Feb 2018 19:30:29 -0800 (PST) X-Google-Smtp-Source: AG47ELuwSqJDsMrhYx/0bPr07x4dEVUZau8n0GawLQ+LkQTSdydGLcME5eIDnySpUazXEu+eFDVd X-Received: by 10.99.43.88 with SMTP id r85mr359340pgr.276.1519875028488; Wed, 28 Feb 2018 19:30:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519875028; cv=none; d=google.com; s=arc-20160816; b=mt0DG05ncOvCRMx28CaA4MvPUuMMIvIl4ZsTTUQFkfg3og3zEaOyt00eo9pPM4fgVD +3u3bv8EGvJOx66fTb+aNp/jbIapP6JKVDQjzIXMYZXbCbMZyeaelyICgICZRvcPwXU/ q1vb5XZxc4FhLh51zRjGo6K4fubp7X81jiwOZcctbOw1J214wHQDXJ1AAts26yQRk/CY waO7wcTzGc6oAmjddmy3KtDuncrzrSuZJ6GcSesH38q5x0NDqtVRzpxH1btdvIXPYbMq NiaD0CM5LvWbMTRIK2qrFfdGylHPvCbdxtmwJBSr4XIPPY5SHXD+ep5qRI7IR+onPXOp 02tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=bC4zIu1YTNwQXsITDQNP7Q9Khn/A3ia4hokIVo0lYXo=; b=dM6zGpu8jD2vC8gtli1GFe2+QbJ9tpoAIPmYAzSEyZkEeCNhRC+BRaWZjXl/a7O4M0 BUkq2YMDDJtwoSmlNz0vTIFg1j9vTZHKP98IkydRFb4ypqvSeLlQ73hveyhuZwE8ZlMl IONmVTxrA1j7FvdYJRlBymR3i1B/V+YnSrLfRvoEYK4kIBgbock30Tn/F1mvugO+14V/ cw34WLYt3ss9UQsl7Mrb1RRJqJ0b+s4AEA5EHVGHAwYu+/bfbIKBx5AJXuRqNG2riKOP WcectNb8Cv9c52w44SmrDSVKWXWakS82v0yCD+dCkXmiaqWhJmjPnyP2vsSEYYy36unE oWpw== 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 o11si1848812pgp.757.2018.02.28.19.30.13; Wed, 28 Feb 2018 19:30:28 -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 S965745AbeCAD25 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 28 Feb 2018 22:28:57 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:55280 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965657AbeCAD2z (ORCPT ); Wed, 28 Feb 2018 22:28:55 -0500 Received: from localhost (pool-173-77-163-229.nycmny.fios.verizon.net [173.77.163.229]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 51EFF1099FE87; Wed, 28 Feb 2018 19:28:54 -0800 (PST) Date: Wed, 28 Feb 2018 22:28:53 -0500 (EST) Message-Id: <20180228.222853.1570972177848923005.davem@davemloft.net> To: helgaas@kernel.org 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() From: David Miller In-Reply-To: <20180228230828.GR127842@bhelgaas-glaptop.roam.corp.google.com> References: <1519053858.7876.84.camel@infradead.org> <20180219.103025.1676484157305869188.davem@davemloft.net> <20180228230828.GR127842@bhelgaas-glaptop.roam.corp.google.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 28 Feb 2018 19:28:54 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Helgaas Date: Wed, 28 Feb 2018 17:08:29 -0600 > 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? The bottom line is that David W.'s patch would break sparc so we don't want this.