From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D9A1CA9EA0 for ; Fri, 25 Oct 2019 15:53:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E837A21D82 for ; Fri, 25 Oct 2019 15:53:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XbOmWw1P"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="LOsYNFJ3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E837A21D82 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:Message-ID: In-Reply-To:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9zidUNaJNzJSL52lRgqMTtODCuvhxr9pIc7jcweHr+g=; b=XbOmWw1P3nKpEu blGXTJp/wSHngKJCN60M+2HrhjmjWNzzmIPzjzWd0OcGIsVylg9MNQtzA8jE7UVA8Gs3iIHCe2Mu+ WUU75VyFT0MhBIEIwfrJZxWJg2I5oeagboVSMr+Vv93xgVYIimfw5qk1aSrfpBma2bAcNrL5phKNl CT+aiVqOI8Hh8eCB2Ta5tQWtusLt7Jw3+bDfQeQC72XiQz6EYRPGBPG5HKLqVVZERc7oGpyktVSuB oS3liXm4ZbXGXCWCP/CQ1RQrnNO24wVYIwPtpmvigcXCALVypZckAc/VAle7q+9cwi1SxGHMUDMWJ N2Q+nGz+m/jEiO3aCkIA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iO1u3-0003CM-3b; Fri, 25 Oct 2019 15:53:27 +0000 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iO1u0-0003C1-P0 for linux-riscv@lists.infradead.org; Fri, 25 Oct 2019 15:53:26 +0000 Received: by mail-io1-xd44.google.com with SMTP id 1so2976774iou.4 for ; Fri, 25 Oct 2019 08:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=BTCG2yDYkKpAkRxeGSjbivKMcUqz/dGEfEhScgVd6MY=; b=LOsYNFJ30GiYM0TVbIi0pCwCvywaMwemc8XsosqG8jQA2FDGLXmQCVlCHJvQN9NVCc 38O7VnvVlV5Rhho6slDLFCKcj2PUM3nVSu38Z54JoM9bwlEehv8aG3l/YrI7ljI/H233 t9LeZgYAKOqp9yl1JhH9vhR98y05l1Bgj/9RmdYUSy1K3Eizn0odTPD4HElXRDwW+zqa SbHUIwco2X/FvPXJPWNhZKS6+781cXqUP3IwB3C+X4AocW4H1Q3vF2qktYUZx+cdaexg a2C0S8r74ZMyiDS3299MKx7SHy122W9AkKY5QKp5mCrmhKUYYiZQGM6dcGcrnRQ4vjwV 96Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=BTCG2yDYkKpAkRxeGSjbivKMcUqz/dGEfEhScgVd6MY=; b=qP5r2cnPf0b8DijDptNSK1eUoDwekwbiwFiC2YO1nXVLQVOH2wMCuq4U38xkX0S3Ip cDwOvCeS6/azpgDfU49oOk5k/ut4GVolKwRgv1QgE0uPEjz7YLi5Yxh1XB0Ban7azsIZ ioezQbWjDq9D81ZZvqatJ/pkOywgIB4lwckdIRUGnZZnCA9jLwOl+rPtPp5G2bAwFUht UPaUfUGw/g4Xc2F41FCQysnwmmFm8JVRaI0MAyW9CixEv+qGW5T7yX7NMgr5NmL1Uwq5 V9ENeLyVM4o+unZssdwSs0IPFvMAQzuWiRykOm73GZy/IWV1KKXcKnfiDYoD2eX2ysj1 CMKQ== X-Gm-Message-State: APjAAAV1pxWNDkhJSxdtDdroKlugZMfFYGxF0SONe+Gy05jfqanvv4YR nIgD1E/a6Zy4OgvDOKNw8YHMVQ== X-Google-Smtp-Source: APXvYqyRv4NFbYB61iRVAes1oYhBMfB6E/EnuYSHHEoiWYs7t/2gjTWcjGIdGdbuzeRDIP+hxK08Dw== X-Received: by 2002:a02:6508:: with SMTP id u8mr4734969jab.28.1572018802766; Fri, 25 Oct 2019 08:53:22 -0700 (PDT) Received: from localhost ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id t9sm308318ios.66.2019.10.25.08.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 08:53:22 -0700 (PDT) Date: Fri, 25 Oct 2019 08:53:19 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Yash Shah Subject: Re: [PATCH v2] RISC-V: Add PCIe I/O BAR memory mapping In-Reply-To: <1571992163-6811-1-git-send-email-yash.shah@sifive.com> Message-ID: References: <1571992163-6811-1-git-send-email-yash.shah@sifive.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191025_085324_840890_FDCBCB20 X-CRM114-Status: UNSURE ( 7.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "sorear2@gmail.com" , "aou@eecs.berkeley.edu" , "alex@ghiti.fr" , "catalin.marinas@arm.com" , "Palmer Dabbelt \( Sifive\)" , "Anup.Patel@wdc.com" , "linux-kernel@vger.kernel.org" , "Paul Walmsley \( Sifive\)" , "rppt@linux.ibm.com" , Sachin Ghadi , "logang@deltatee.com" , Greentime Hu , "gregkh@linuxfoundation.org" , "linux-riscv@lists.infradead.org" , "will@kernel.org" , "tglx@linutronix.de" , "allison@lohutok.net" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org 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? - Paul _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv