Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp352924pxa; Fri, 21 Aug 2020 08:55:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMROD57TKuLhJJWVf+QwN3JgO8QljsqK6kVYmNDfrP9l0kUtRTsWi/3EV///S043laonrp X-Received: by 2002:a17:907:2805:: with SMTP id eb5mr3446024ejc.139.1598025340987; Fri, 21 Aug 2020 08:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598025340; cv=none; d=google.com; s=arc-20160816; b=JPn2AkDwsCztvWqoYZtxUhYVTK8lbeamHT3UETrb/2SPKqik+V7OJ8uheNcZINptLp o5kS7FOpT87yusK/VFi6qVsdJnGkbqQC0tgiX/lmgYyYdsGvES6ZfEKOKhDUn35briM4 n+/sqLEI1ESxWuvmbYkP3AWjRZrsGm85A44x4038TFVBLpwMCPUfgoYCVlPcD8A5/Sh5 MTkMNZsVwYFn5+cPU4eEX7PudfpQKMMNEQnLm5cF7D3DRkvXEtlnSKYg51pCng3wlUA6 O9MZBGqsIdSsjTxNY6RDvqRUvMbHJw6/mkiF03JfGSKCkejmUujb5lmXKPhRlHa6bG5e Q2AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=eH58IyTxq1bGrzWsPvkVg+srdd+BLp80k+swpu7gV3M=; b=AqiTk0x7hVUVz7yZAsDC62NdCkmPgp5P8lxu8aogSVLCR18dOOCOx7pAKxnNVYSLhr 7TuULJQqJde4dbzwAQ9UsBgLTajzLgc93o6cAV+/J/WAwaQORBCUPSwVQYCOYCmPo9pi vkM/XA7gA1IQe8WuXu7yA0Gju4A2XtY3bKKyk2z1TcVtkLZeZyYV2b+K63w5E8CprzJN xfol15wLRSbnV91me11wrG44wZyJec+rrqf805gsfDGPS4TUR85sfvxiL5LGmo9XdHnr xcbZHffzvyrUTSeLuuehRA+HkVZiGYxpHq3v7KBGM+bnSNJlfhlDUr+3crGEJNpPBd2g 4cCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=sHQPk2hV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si643487ejr.56.2020.08.21.08.55.16; Fri, 21 Aug 2020 08:55:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=sHQPk2hV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727824AbgHUPwF (ORCPT + 99 others); Fri, 21 Aug 2020 11:52:05 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:13446 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727864AbgHUPv6 (ORCPT ); Fri, 21 Aug 2020 11:51:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1598025118; x=1629561118; h=date:from:to:cc:subject:message-id:mime-version; bh=eH58IyTxq1bGrzWsPvkVg+srdd+BLp80k+swpu7gV3M=; b=sHQPk2hVkKMprmi/6bnklZfqXvkeneV81jidkCAd5dHP0Q/DxBBaDa3e 6VTZo3p+AUMsOyFhjv0x3ZtnNMTevAE3cW8EFw+J1jS9rdO0GJjYxGbOt FRHWQFzLknn59Euuc9ClECAGlKyDMawLyyjSlElDSDV21dJkRDOoSIGYs I=; X-IronPort-AV: E=Sophos;i="5.76,337,1592870400"; d="scan'208";a="49153842" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2c-c6afef2e.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 21 Aug 2020 15:51:55 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2c-c6afef2e.us-west-2.amazon.com (Postfix) with ESMTPS id D4EA0A23A8; Fri, 21 Aug 2020 15:51:54 +0000 (UTC) Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 21 Aug 2020 15:51:54 +0000 Received: from EX13MTAUWB001.ant.amazon.com (10.43.161.207) by EX13d01UWB002.ant.amazon.com (10.43.161.136) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 21 Aug 2020 15:51:54 +0000 Received: from dev-dsk-csbisa-2a-37939146.us-west-2.amazon.com (172.19.34.216) by mail-relay.amazon.com (10.43.161.249) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 21 Aug 2020 15:51:54 +0000 Received: by dev-dsk-csbisa-2a-37939146.us-west-2.amazon.com (Postfix, from userid 800212) id 688F2E622; Fri, 21 Aug 2020 15:51:54 +0000 (UTC) Date: Fri, 21 Aug 2020 15:51:54 +0000 From: Clint Sbisa To: Catalin Marinas , Will Deacon CC: Clint Sbisa , Benjamin Herrenschmidt , Ali Saidi , David Woodhouse , "Guy Tzalik" , , Subject: [PATCH] arm64: Enable PCI write-combine resources under sysfs Message-ID: <20200821155154.umharcbew46hkhuq@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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