From patchwork Tue May 14 12:24:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 164183 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2555050ili; Tue, 14 May 2019 05:26:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyJ3Gl0U6GejT7p3Rl4JYtvCmekCyxsW6iFrh24xgYeM2KiU+smC407WMqtaoYH5pnU8L4 X-Received: by 2002:a24:dd88:: with SMTP id t130mr3107324itf.172.1557836771022; Tue, 14 May 2019 05:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557836771; cv=none; d=google.com; s=arc-20160816; b=rhLFo1LgUSi06IgKvcA3YDhP5tquKHIwzfK4Vn4W+JZ5catpf63vnGAl8aYKXS4K5s O7tp21U7YbWYbWTrPfL9Px0a5eQrJoq/fVcJ3TRpmrzEcdtdcYX255IAcOY6ASKqe5re ziUvwpi4ECQVSewmFHfiyZSa4J9UraSlGhzpVR5JJfUMvbQfYHSF+oeX39mHQDPpCvGr iBLXDMNLyLuWeTdcXljT+I2N0ZTX/EgIFP7hfuxdi2HcKjDuTBwJme3KWWxo6HCisrIu T2RuRFG6HoL8i6+UOhLW6Xv8ZRSnEMaj6lEtsyMwA2V5IEEejhSoRsU9EC7943/bj2QV qegQ== 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:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from; bh=rKH6b2vJKj4RaNahOIvZ5cHDJ9vsSUsddb3fOXvecRA=; b=kM0opo0DkDkPpgab/blejDuIOqqxXznFoaMifSshzilDtd3TpaUS5ipVs8LtYqSnki TL4IlQ8BK3hbyp6NcK8PVi3dglGi5mHLzHp1p7bVIEeQpQba/cqKhJSoFI2HiPIW7/qc q7/5dE+wOOrz0BvOaj57AtKtvprD88UOPF6wT/rVXcpF/NbddHoq/ZrZ/rNiffaJOvG8 juTwpARssXfwprmoGkZ+xtdTbpCxiXLEeYG9oYcOw+b/AiUtG7SOIT5SsMPdR+PjqOxd OoyKKRRYbRqik34OBaSGfEJISTbJUuszjJZqIyXbmcJh+C+hPkpWRhB6Lfb2EycfsDxK v/JA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id g6si9326747jag.17.2019.05.14.05.26.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 05:26:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hQWUk-0002lj-2Y; Tue, 14 May 2019 12:25:22 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hQWUh-0002iP-Uz for xen-devel@lists.xenproject.org; Tue, 14 May 2019 12:25:19 +0000 X-Inumbo-ID: 56168141-7643-11e9-8980-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 56168141-7643-11e9-8980-bc764e045a96; Tue, 14 May 2019 12:25:19 +0000 (UTC) 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 F000C15AD; Tue, 14 May 2019 05:25:18 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B16AA3F71E; Tue, 14 May 2019 05:25:17 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 14 May 2019 13:24:48 +0100 Message-Id: <20190514122456.28559-12-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190514122456.28559-1-julien.grall@arm.com> References: <20190514122456.28559-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH MM-PART2 RESEND v2 11/19] xen/arm32: head: Don't set MAIR0 and MAIR1 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Oleksandr_Tyshchenko@epam.com, Julien Grall , Stefano Stabellini , Andrii Anisov MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The co-processor registers MAIR0 and MAIR1 are managed by EL1. So there are no need to initialize them during Xen boot. Signed-off-by: Julien Grall Reviewed-by: Andrii Anisov Reviewed-by: Stefano Stabellini --- Changes in v2 - Add Andrii's reviewed-by --- xen/arch/arm/arm32/head.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S index d42a13556c..3448817aab 100644 --- a/xen/arch/arm/arm32/head.S +++ b/xen/arch/arm/arm32/head.S @@ -212,8 +212,6 @@ cpu_init_done: /* Set up memory attribute type tables */ ldr r0, =MAIR0VAL ldr r1, =MAIR1VAL - mcr CP32(r0, MAIR0) - mcr CP32(r1, MAIR1) mcr CP32(r0, HMAIR0) mcr CP32(r1, HMAIR1)