public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ardb@kernel.org>
To: u-boot@lists.denx.de
Subject: [PATCH 1/5] arm: enable allocate-on-read for LPAE's DCACHE_WRITEBACK
Date: Sat,  6 Jun 2020 19:15:30 +0200	[thread overview]
Message-ID: <20200606171534.736365-2-ardb@kernel.org> (raw)
In-Reply-To: <20200606171534.736365-1-ardb@kernel.org>

The LPAE version of DCACHE_WRITEBACK is currently defined as no-allocate
for both reads and writes, which deviates from the non-LPAE definition,
and mostly defeats the purpose of enabling the caches in the first place.

So align LPAE with !LPAE, and enable allocate-on-read.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
 arch/arm/include/asm/system.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h
index 7a40b56acdca..21b26557d28b 100644
--- a/arch/arm/include/asm/system.h
+++ b/arch/arm/include/asm/system.h
@@ -445,7 +445,7 @@ static inline void set_dacr(unsigned int val)
  * Memory types
  */
 #define MEMORY_ATTRIBUTES	((0x00 << (0 * 8)) | (0x88 << (1 * 8)) | \
-				 (0xcc << (2 * 8)) | (0xff << (3 * 8)))
+				 (0xee << (2 * 8)) | (0xff << (3 * 8)))
 
 /* options available for data cache on each page */
 enum dcache_option {
-- 
2.26.2

  reply	other threads:[~2020-06-06 17:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-06 17:15 [PATCH 0/5] Fixes for running U-boot under QEMU/KVM Ard Biesheuvel
2020-06-06 17:15 ` Ard Biesheuvel [this message]
2020-06-06 20:14   ` [PATCH 1/5] arm: enable allocate-on-read for LPAE's DCACHE_WRITEBACK Heinrich Schuchardt
2020-06-06 23:17     ` Ard Biesheuvel
2020-06-06 23:46       ` Heinrich Schuchardt
2020-06-06 17:15 ` [PATCH 2/5] arm: qemu: enable LPAE on 32-bit Ard Biesheuvel
2020-06-06 20:32   ` Heinrich Schuchardt
2020-06-06 20:49     ` Heinrich Schuchardt
2020-06-07  8:59       ` Ard Biesheuvel
2020-06-07 11:03         ` Heinrich Schuchardt
2020-06-07 11:04           ` Ard Biesheuvel
2020-06-06 17:15 ` [PATCH 3/5] arm: qemu: implement enable_caches() Ard Biesheuvel
2020-06-06 20:50   ` Heinrich Schuchardt
2020-06-08 13:17     ` Tom Rini
2020-06-06 17:15 ` [PATCH 4/5] arm: qemu: disable the EFI workaround for older GRUB Ard Biesheuvel
2020-06-06 20:53   ` Heinrich Schuchardt
2020-06-06 17:15 ` [PATCH 5/5] arm: qemu: override flash accessors to use virtualizable instructions Ard Biesheuvel
2020-06-06 21:08   ` Heinrich Schuchardt
2020-06-06 22:59     ` Ard Biesheuvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200606171534.736365-2-ardb@kernel.org \
    --to=ardb@kernel.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox