Received: by 10.223.185.116 with SMTP id b49csp3882010wrg; Mon, 19 Feb 2018 07:31:35 -0800 (PST) X-Google-Smtp-Source: AH8x224YCqEIJJiEL1BO7vq53E5HiIQDT++37C3A8nbtr3TE/eNoPwcAOFb6/pLCMYjobQRaNOlp X-Received: by 2002:a17:902:9893:: with SMTP id s19-v6mr14368839plp.101.1519054295702; Mon, 19 Feb 2018 07:31:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519054295; cv=none; d=google.com; s=arc-20160816; b=UX0mlH7FWGThE1g1493+512YXnyyTTVlRscr0+O4q94qa4Gv+/Qy6qD8rupU05uDOw 6qEsc7CY/TiRgyAlOTyLxVEnkQirhgXjtDaUtyFrGps1y2l75hFMWhNikPjjtIMBqqn6 2hqV8dh4mMeZlaKKSynHnrMyqxBk3Npt9qKMWsnnNLwaUnTNuGb26d7bj7TV3h5ksUod McnDqiYuo9LD1R4Sr/FAqBwFfgulohytWON9DzX1RxxKv+nYAqK2DCkkk8z2mPdogOQi 9NmYHDZjJ6XGW8XWtH9yt7Bv++6930yTsOMUZVTU9ArmAStM9B5sl0Byq0jqPdHdX4iz jxcA== 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=Eoy64UfaEiUMxgmBN0rXr6WBr8oZ+5NR07W5Mc9cc7g=; b=Hl5TeVe4VmdpuQPlN9rj9Xnx99guP6JNoW2uX4O0kINMk4qqOSmztsd9g+kwiJs25u /IsxjT7/tvZ3kpmELu9vMGDC+YY/Py41Ub0gOy5i2L4HneE7CX9nQ7+6NvukKRsTMe6V ksm3dsNmoqrrDPcy3/XEXmGYpYWQ5TYt9R0T1SEeCSysm1mlXUAmeUKobVRP6UTqogTM 7munJ/TDZugS63vpX1AuYOnueKrRHO/WlANP+OHHlpMW31sjuYM5P7gUd1KnCcFpLVMH wDawghq/pVAcZHyv+mScRWz/qLNuhGnXfY68+jVV6mKBDAF5HhMqNnr21LZvjDsfkShG 5XgA== 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 r11-v6si5529726pls.318.2018.02.19.07.31.20; Mon, 19 Feb 2018 07:31:35 -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 S1753158AbeBSPa3 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Feb 2018 10:30:29 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:60308 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753132AbeBSPa1 (ORCPT ); Mon, 19 Feb 2018 10:30:27 -0500 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (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 5BD0013CD65F0; Mon, 19 Feb 2018 07:30:26 -0800 (PST) Date: Mon, 19 Feb 2018 10:30:25 -0500 (EST) Message-Id: <20180219.103025.1676484157305869188.davem@davemloft.net> To: dwmw2@infradead.org Cc: 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: <1519053858.7876.84.camel@infradead.org> References: <1519045452-22645-1-git-send-email-dwmw@amazon.co.uk> <20180219.094951.2098243214524004486.davem@davemloft.net> <1519053858.7876.84.camel@infradead.org> 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]); Mon, 19 Feb 2018 07:30:26 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.