Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp105374ybx; Tue, 29 Oct 2019 15:07:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsPaJ1jb7knLgYgfTYDNlX/jS5qiJKzOR4pmadMPMpYaJWW6E6lRifIzw2jHdMAbMexS3F X-Received: by 2002:a50:8a90:: with SMTP id j16mr29075561edj.283.1572386879003; Tue, 29 Oct 2019 15:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572386878; cv=none; d=google.com; s=arc-20160816; b=isajSkIglXENKIiohVz7JjPN6ILRGKLBlPC0qhsyYNQ0sYP/EuScbFLoZblYSqGf7j zqn6IxwqwrRU9IaLB5JGaUwohKVpZtg81jC+Z+Vdv/52mc84EWJ4j41PDHVdOdzL8NQ6 6i6O9IVOj2Ady6kiVk6lOhT6nItBDm+ty/5t+xBo71rIsKn826dhBjUJ2/3wsNNGpLma qk3NP14JEMV0jDzOC/1JxcjTx1x2qfFohCuEP8xWj0EOJPI6L9QaU/wiSNcaSrt9tdbP WmvqDRIjHuQclOdZxzgfdAqM0k2ZXVsENhH0pEfu8t6QfWrxt7Nn7UmLi77b0I1yzAMf 4LBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=nwhfZYhnN27LIQBM/KoZeiKWC6znPOqAS333x8flg1A=; b=UKFh5zTss86/ERuh6BR19fpwOeZiKrKblqN2xpTGNA9ykshLaRJVenqOZ/kHdtOckJ mHhaPxLBbbvj7m+6QfryXmt+R8mt/KJwdnoL+m58lf0d0J/5ouzg9A570x+US51qj1tM AWKfcfw57SHYESobhz2Mnb1P7AWD19Gwo8rQ66jXGxAyaX0VM/VYqrtm3M/mFuGC+qWU eFHOz91V/RJAqNi9MgvJ8Y1oQv+QCCAQ28OrTHqn7qIg+oHj9zEXlBDhTgfWG2qvfLrD ubvJ+dCTGw19qM4gCBUN1HTH1JMRIB6iSTTEbbQi/D5kkFUX7KkCsA3Qx5vYgkyaW3mm 6u5w== 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 g3si9191913ejw.13.2019.10.29.15.07.35; Tue, 29 Oct 2019 15:07:58 -0700 (PDT) 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 S1726982AbfJ2SWl (ORCPT + 99 others); Tue, 29 Oct 2019 14:22:41 -0400 Received: from utopia.booyaka.com ([74.50.51.50]:45992 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbfJ2SWk (ORCPT ); Tue, 29 Oct 2019 14:22:40 -0400 Received: (qmail 19504 invoked by uid 1019); 29 Oct 2019 18:22:39 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 29 Oct 2019 18:22:39 -0000 Date: Tue, 29 Oct 2019 18:22:39 +0000 (UTC) From: Paul Walmsley To: Yash Shah cc: "Paul Walmsley ( Sifive)" , "logang@deltatee.com" , "sorear2@gmail.com" , "aou@eecs.berkeley.edu" , "alex@ghiti.fr" , "gregkh@linuxfoundation.org" , "catalin.marinas@arm.com" , "Palmer Dabbelt \\( Sifive\\)" , "linux-kernel@vger.kernel.org" , "rppt@linux.ibm.com" , Sachin Ghadi , "Anup.Patel@wdc.com" , Greentime Hu , "linux-riscv@lists.infradead.org" , "will@kernel.org" , "tglx@linutronix.de" , "allison@lohutok.net" Subject: RE: [PATCH v2] RISC-V: Add PCIe I/O BAR memory mapping In-Reply-To: Message-ID: References: <1571992163-6811-1-git-send-email-yash.shah@sifive.com> User-Agent: Alpine 2.21.999 (DEB 260 2018-02-26) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Oct 2019, Yash Shah wrote: > > On Fri, 25 Oct 2019, Yash Shah wrote: > > > > > For legacy I/O BARs (non-MMIO BARs) to work correctly on RISC-V Linux, > > > we need to establish a reserved memory region for them, so that > > > drivers that wish to use the legacy I/O BARs can issue reads and > > > writes against a memory region that is mapped to the host PCIe > > > controller's I/O BAR mapping. > > > > > > Signed-off-by: Yash Shah > > > > Thanks. And just to confirm: this is a fix, right? Without this > > patch, legacy PCIe I/O resources won't be accessible on RISC-V? > > Yes, this is a fix. Thanks, queued for v5.4-rc. - Paul