* [PATCH] resource: change MEMATTRS_NORMAL to MEMATTR_WB
@ 2025-12-15 8:36 Ahmad Fatoum
2025-12-15 9:14 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-12-15 8:36 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
Other EFI loaders (EDK-II, U-Boot) only set WB (Write-Back) for normal
memory. Let's follow suit for barebox.
This introduces no functional change yet, as these attributes will only
be put to use with the incoming EFI loader support.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
include/linux/ioport.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
index 2a006c4c6a31..20c72e1b6cbb 100644
--- a/include/linux/ioport.h
+++ b/include/linux/ioport.h
@@ -135,7 +135,7 @@ enum resource_memtype {
#define MEMATTR_RO 0x00020000 /* read-only */
#define MEMATTR_SP 0x00040000 /* specific-purpose */
-#define MEMATTRS_NORMAL (MEMATTR_UC | MEMATTR_WT | MEMATTR_WC | MEMATTR_WB)
+#define MEMATTRS_NORMAL (MEMATTR_WB)
#define MEMATTRS_RW (MEMATTRS_NORMAL | MEMATTR_XP)
#define MEMATTRS_RO (MEMATTRS_NORMAL | MEMATTR_XP | MEMATTR_RO)
#define MEMATTRS_RX (MEMATTRS_NORMAL | MEMATTR_RO)
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] resource: change MEMATTRS_NORMAL to MEMATTR_WB
2025-12-15 8:36 [PATCH] resource: change MEMATTRS_NORMAL to MEMATTR_WB Ahmad Fatoum
@ 2025-12-15 9:14 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-12-15 9:14 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Mon, 15 Dec 2025 09:36:33 +0100, Ahmad Fatoum wrote:
> Other EFI loaders (EDK-II, U-Boot) only set WB (Write-Back) for normal
> memory. Let's follow suit for barebox.
>
> This introduces no functional change yet, as these attributes will only
> be put to use with the incoming EFI loader support.
>
>
> [...]
Applied, thanks!
[1/1] resource: change MEMATTRS_NORMAL to MEMATTR_WB
https://git.pengutronix.de/cgit/barebox/commit/?id=0c4c28671256 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-15 9:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-15 8:36 [PATCH] resource: change MEMATTRS_NORMAL to MEMATTR_WB Ahmad Fatoum
2025-12-15 9:14 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox