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=-9.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_ALL,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS 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 ECF2EC433DF for ; Thu, 27 Aug 2020 14:43:35 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 BC8F42087D for ; Thu, 27 Aug 2020 14:43:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jwHs1DrU"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="UiT2noPj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC8F42087D Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: 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=5poHe96Dl+hiav7XI+MdadRR+Mqp0QxOBNUTiPOn1i8=; b=jwHs1DrU0JxpNpR7NKjJYfjZ5 NRcZ/j1GSXfyowsKbQBoI5fgsl3kfLsB62I3Mnmk2pmy39RMok+CGkXKoYF1qZ1d8FmClnxBRpkcw 3wIsGF3nR5CW+Fj5k8k9KEjSwNYNNsKHdKHIwx/+qgA77eE99NuOjMnUkzBrtSEicIGvobtQg0CuE oflPg8WGa/zqGjwc0RJcaCNOHlVHjdI1tuDrR11NX/IGIJ3mO6f4BmO64V44auAEJPKrD0yZMQTkR LsHOf0d5smlOnI7jjy4cOD9wPcOfdMMVGpAFUOlWTa3Ozdi2Q1nuCm2sN+yRNI9U5I4oY3oggOafv uMZDLf1Og==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBJ5x-0004tJ-Ax; Thu, 27 Aug 2020 14:41:41 +0000 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBJ5u-0004s9-09 for linux-arm-kernel@lists.infradead.org; Thu, 27 Aug 2020 14:41:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1598539298; x=1630075298; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=unv0Tfgwvb0KrAP7CtFheOrORuCI+KCsaG06ffbe73s=; b=UiT2noPjVo/06VywV55BaEM8ORCNqoDHL/pCm9avJ68ymCLRkFzSlxnk 11XnV8jYO39ho+rTx/EIDLMIrS606Q1gfoZJiHvJtdcccrQYVMuW0wPdu fsB3EdgOWyd8OqW+KXIxw/uxi6HfSH6agSecrLWtf1X64nUY+rEpwnhvU s=; X-IronPort-AV: E=Sophos;i="5.76,359,1592870400"; d="scan'208";a="50441316" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 27 Aug 2020 14:41:35 +0000 Received: from EX13MTAUEE001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com (Postfix) with ESMTPS id 8F52BA222F; Thu, 27 Aug 2020 14:41:34 +0000 (UTC) Received: from EX13D08UEE001.ant.amazon.com (10.43.62.126) by EX13MTAUEE001.ant.amazon.com (10.43.62.226) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 27 Aug 2020 14:41:33 +0000 Received: from EX13MTAUEA002.ant.amazon.com (10.43.61.77) by EX13D08UEE001.ant.amazon.com (10.43.62.126) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 27 Aug 2020 14:41:33 +0000 Received: from dev-dsk-csbisa-2a-37939146.us-west-2.amazon.com (172.19.34.216) by mail-relay.amazon.com (10.43.61.169) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 27 Aug 2020 14:41:33 +0000 Received: by dev-dsk-csbisa-2a-37939146.us-west-2.amazon.com (Postfix, from userid 800212) id 2ADE31A3; Thu, 27 Aug 2020 14:41:32 +0000 (UTC) Date: Thu, 27 Aug 2020 14:41:32 +0000 From: Clint Sbisa To: Catalin Marinas , Will Deacon Subject: Re: [PATCH] arm64: Enable PCI write-combine resources under sysfs Message-ID: <20200827144132.ob6ugfrebfgbxwxc@amazon.com> References: <20200821155154.umharcbew46hkhuq@amazon.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200821155154.umharcbew46hkhuq@amazon.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200827_104138_233864_A16A95F0 X-CRM114-Status: GOOD ( 22.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, Ali Saidi , David Woodhouse , Guy Tzalik , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Aug 21, 2020 at 03:51:54PM +0000, Clint Sbisa wrote: > Using write-combine is crucial for performance of PCI devices where > significant amounts of transactions go over PCI BARs. > > arm64 supports write-combine PCI mappings, so the appropriate define > has been added which will expose write-combine mappings under sysfs > for prefetchable PCI resources. > > Signed-off-by: Clint Sbisa > --- > arch/arm64/include/asm/pci.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/include/asm/pci.h b/arch/arm64/include/asm/pci.h > index 70b323cf8300..b33ca260e3c9 100644 > --- a/arch/arm64/include/asm/pci.h > +++ b/arch/arm64/include/asm/pci.h > @@ -17,6 +17,7 @@ > #define pcibios_assign_all_busses() \ > (pci_has_flag(PCI_REASSIGN_ALL_BUS)) > > +#define arch_can_pci_mmap_wc() 1 > #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 > > extern int isa_dma_bridge_buggy; > -- > 2.23.3 > Ping. Let me know if any more info is needed. Clint _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel