From patchwork Fri Aug 21 15:51:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clint Sbisa X-Patchwork-Id: 11729875 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 767D2722 for ; Fri, 21 Aug 2020 15:53:57 +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 5004D207BB for ; Fri, 21 Aug 2020 15:53:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LrpXUj21"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="DJUVqsyW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5004D207BB 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+patchwork-linux-arm=patchwork.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:MIME-Version: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:In-Reply-To:References:List-Owner; bh=/Zi9qI5LbBdvPodiy4yp+c7E8hYkg/l8slTcSjLZUsQ=; b=LrpXUj21tCGaYbrDGD2pKOtpcl Oqvh48rzTzZXHaN+khCey5ooNJozfCrN47byUhCrBI/ESygaqgF/jlxkIEmaeRY0lWp6TvQ1soRZm ez3qep8/HhjjFp+3bFvay8X+Zyr+k0fxWk9X7e9uFAVZb5nx4KlWiQNoIhwvHjo1sbHHTp8GMmYV6 pJCAHnGUt6WYmbh09ItXaa5fshnVLJOVthVW2FeRcXOtTKcpkLPlXv38HyyzwWhDMyrYpq5sHHpuC wpwiZVdnz9rN5rFK7jK/BwFAkIsYbb1vj2SXpPWYB41G1N4wT7Q0A/1R1gphcL+XN+5DwKYG1mUlI 7mNmCZyA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k99Kl-0006Et-PF; Fri, 21 Aug 2020 15:52:03 +0000 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k99Ki-0006EP-Jv for linux-arm-kernel@lists.infradead.org; Fri, 21 Aug 2020 15:52:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1598025121; x=1629561121; h=date:from:to:cc:subject:message-id:mime-version; bh=eH58IyTxq1bGrzWsPvkVg+srdd+BLp80k+swpu7gV3M=; b=DJUVqsyWDYhchFSQsNiiA4zTtvglsbxUO+YbABqKsE0uWrdSw/7UXl9M NUbJUEjCwn1bLURleRoouednMZVrPWEuXIJOw76N2PsWnZ3LXIYQLbsc4 UtIjeQieShY8rlZ0RtupnibixED9GgyRjcXDDeCkJvKs1waiVKeoOrbKv A=; 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 Subject: [PATCH] arm64: Enable PCI write-combine resources under sysfs Message-ID: <20200821155154.umharcbew46hkhuq@amazon.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200821_115200_722308_47F1DB75 X-CRM114-Status: GOOD ( 12.33 ) X-Spam-Score: -12.7 (------------) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-12.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [72.21.196.25 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -7.5 USER_IN_DEF_SPF_WL From: address is in the default SPF white-list -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [72.21.196.25 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender 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, Clint Sbisa Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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;