From patchwork Tue Sep 12 10:03:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 112284 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp5674666edi; Tue, 12 Sep 2017 03:05:56 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBd/RNXcFLY3vU01vhs9Jk0LEnCabu3yIDbqNlMHcqCZly9ChW3jOi824XNCw4RpcEdFSde X-Received: by 10.107.27.205 with SMTP id b196mr1227620iob.239.1505210756038; Tue, 12 Sep 2017 03:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505210756; cv=none; d=google.com; s=arc-20160816; b=lupPoVNob4W0SD/A2+y40jym285GZ+Jr2shJ/SVOJ+Hf2UQ7M376QcKwg2sTsiTG55 R3Mpd6hU0lKGLL67TMjbdqYw1rWml1iYbdZaAQgim8SWJ4el4NRKQ5Uzl29cpHmQM5Cp 5zyRZ7D/fAxUMCsGngb2vv0iVsG34BCGN2LZXGTDBU6PeBSqmj+u3XW7G5T/21NJs+se AewtP+sBLIvMShehzC69VGrQ5t4ipomFdIVAgSF0AoJdT/0LtXrHe5MtRZUESnjgDLn1 n7YZioVFU9O6BdhH5v/QirIlUAKKwFeP4hP6yJJgifTuFKIWjor8UZAjTvvgLhbZPa+G 4KIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=MuD6x1Hym5GS+zx0NirtQgh44QHeaPyatEa3c5zVUps=; b=bkTojr8keweTmDMUxdubRvupb5c+de7KQVsX1LGRSsPYru1wfCgLm9my1RbrhsZkaP 9Cqf3VEMRYg9XWzvYyQp4Ruz7yiCspZ6Nbpz+XIGw9eZlk3LVevzDf7AUHNSQVJjllky CeksCKW8FEpaqZgag5REYKtoi9qtShMSA8rXxTTTF6CgHHcbE9Kp8fGzY6mgVgVXIa3l wUj9vngI6+A6Atto6bfOy6nMA+LaM6iCaV5md/vPv3lNc5/6PkPx2YhQyXxY67C/yUvJ vBhZHcbRGxjUGHfhWuntYvVaMzvelRZ/FEGxBUqnMr9at++anxcL9R6jlXAqnXIlaiYU 46Wg== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id r5si10399019itr.160.2017.09.12.03.05.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 03:05:56 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dri2y-00036g-24; Tue, 12 Sep 2017 10:04:00 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dri2w-00033r-RE for xen-devel@lists.xen.org; Tue, 12 Sep 2017 10:03:58 +0000 Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id 77/0F-02023-E01B7B95; Tue, 12 Sep 2017 10:03:58 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRWlGSWpSXmKPExsVysyfVTZd34/Z Ig2+PpS2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oy9N64zF+zhrPi67x1TA+NW9i5GLg4hgc2M Ep/O7WWGcE4zSqzb/ZKli5GTg01AU+LO509MILaIgLTEtc+XGUFsZoFIicMffrCD2MICARLvX lwGq2ERUJWYeuEkWC+vgKXEu79vmUFsCQF5iV1tF1lBbE6g+IqPv9hAbCEBC4nvL38wTmDkXs DIsIpRozi1qCy1SNfQQi+pKDM9oyQ3MTNH19DAVC83tbg4MT01JzGpWC85P3cTI9DDDECwg7F pu+chRkkOJiVR3t/C2yOF+JLyUyozEosz4otKc1KLDzHKcHAoSfD6rwfKCRalpqdWpGXmAEMN Ji3BwaMkwiu0ASjNW1yQmFucmQ6ROsWoy9Fx8+4fJiGWvPy8VClx3gyQGQIgRRmleXAjYGF/i VFWSpiXEegoIZ6C1KLczBJU+VeM4hyMSsK8GiBTeDLzSuA2vQI6ggnoCJ5LW0COKElESEk1ME ormTQXvnw5j7nlpYjvA17d2bfZKopeSafvzjz/SHUCr6zDM0XlOW06FfOvrf/yYcHSDtH9xyu M+Zr2eImZhK1Tk71bFbv92izP6xYr9/1hm73iqXxYhP/pj+r3L1w8VTN1o0Cd25Nrwtv3XI/x 6tZ4Vi9htGr/96C1rz64Zb/mrHMJf2zDYaTEUpyRaKjFXFScCAA6gOQ+dgIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-12.tower-206.messagelabs.com!1505210636!74831598!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests=UPPERCASE_25_50 X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 1559 invoked from network); 12 Sep 2017 10:03:57 -0000 Received: from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-12.tower-206.messagelabs.com with SMTP; 12 Sep 2017 10:03:57 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9CEF61529; Tue, 12 Sep 2017 03:03:56 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AE5A63F578; Tue, 12 Sep 2017 03:03:55 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 12 Sep 2017 11:03:20 +0100 Message-Id: <20170912100330.2168-15-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170912100330.2168-1-julien.grall@arm.com> References: <20170912100330.2168-1-julien.grall@arm.com> Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v2 14/24] xen/arm: page: Use directly BUFFERABLE and drop DEV_WC X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" DEV_WC is only used for PAGE_HYPERVISOR_WC and does not bring much improvement. Signed-off-by: Julien Grall Reviewed-by: Andre Przywara --- Changes in v2: - Remove DEV_WC from the comment as well - Add Andre's reviewed-by --- xen/include/asm-arm/page.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xen/include/asm-arm/page.h b/xen/include/asm-arm/page.h index d7939bb944..ee0422579b 100644 --- a/xen/include/asm-arm/page.h +++ b/xen/include/asm-arm/page.h @@ -34,8 +34,6 @@ * ?? 101 * reserved 110 * WRITEALLOC 111 1111 1111 -- Write-back write-allocate - * - * DEV_WC 001 (== BUFFERABLE) */ #define MAIR0VAL 0xeeaa4400 #define MAIR1VAL 0xff000004 @@ -55,11 +53,10 @@ #define WRITEBACK 0x3 #define DEV_SHARED 0x4 #define WRITEALLOC 0x7 -#define DEV_WC BUFFERABLE #define PAGE_HYPERVISOR (WRITEALLOC) #define PAGE_HYPERVISOR_NOCACHE (DEV_SHARED) -#define PAGE_HYPERVISOR_WC (DEV_WC) +#define PAGE_HYPERVISOR_WC (BUFFERABLE) /* * Defines for changing the hypervisor PTE .ro and .nx bits. This is only to be