* [PATCH] riscv: Fix definition of _PAGE_NOCACHE_THEAD
@ 2024-02-27 12:44 Fei Wu
2024-02-27 12:44 ` Alexandre Ghiti
0 siblings, 1 reply; 3+ messages in thread
From: Fei Wu @ 2024-02-27 12:44 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, guoren, jszhang, linux-riscv,
linux-kernel
Cc: Fei Wu
_PAGE_NOCACHE_THEAD is not used but the definition is wrong.
Signed-off-by: Fei Wu <fei2.wu@intel.com>
---
arch/riscv/include/asm/pgtable-64.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/include/asm/pgtable-64.h b/arch/riscv/include/asm/pgtable-64.h
index b42017d76924..b99bd66107a6 100644
--- a/arch/riscv/include/asm/pgtable-64.h
+++ b/arch/riscv/include/asm/pgtable-64.h
@@ -136,7 +136,7 @@ enum napot_cont_order {
* 10010 - IO Strongly-ordered, Non-cacheable, Non-bufferable, Shareable, Non-trustable
*/
#define _PAGE_PMA_THEAD ((1UL << 62) | (1UL << 61) | (1UL << 60))
-#define _PAGE_NOCACHE_THEAD ((1UL < 61) | (1UL << 60))
+#define _PAGE_NOCACHE_THEAD ((1UL << 61) | (1UL << 60))
#define _PAGE_IO_THEAD ((1UL << 63) | (1UL << 60))
#define _PAGE_MTMASK_THEAD (_PAGE_PMA_THEAD | _PAGE_IO_THEAD | (1UL << 59))
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] riscv: Fix definition of _PAGE_NOCACHE_THEAD
2024-02-27 12:44 [PATCH] riscv: Fix definition of _PAGE_NOCACHE_THEAD Fei Wu
@ 2024-02-27 12:44 ` Alexandre Ghiti
2024-02-27 12:47 ` Wu, Fei
0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Ghiti @ 2024-02-27 12:44 UTC (permalink / raw)
To: Fei Wu, paul.walmsley, palmer, aou, guoren, jszhang, linux-riscv,
linux-kernel
Hi Fei,
On 27/02/2024 13:44, Fei Wu wrote:
> _PAGE_NOCACHE_THEAD is not used but the definition is wrong.
>
> Signed-off-by: Fei Wu <fei2.wu@intel.com>
> ---
> arch/riscv/include/asm/pgtable-64.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/include/asm/pgtable-64.h b/arch/riscv/include/asm/pgtable-64.h
> index b42017d76924..b99bd66107a6 100644
> --- a/arch/riscv/include/asm/pgtable-64.h
> +++ b/arch/riscv/include/asm/pgtable-64.h
> @@ -136,7 +136,7 @@ enum napot_cont_order {
> * 10010 - IO Strongly-ordered, Non-cacheable, Non-bufferable, Shareable, Non-trustable
> */
> #define _PAGE_PMA_THEAD ((1UL << 62) | (1UL << 61) | (1UL << 60))
> -#define _PAGE_NOCACHE_THEAD ((1UL < 61) | (1UL << 60))
> +#define _PAGE_NOCACHE_THEAD ((1UL << 61) | (1UL << 60))
> #define _PAGE_IO_THEAD ((1UL << 63) | (1UL << 60))
> #define _PAGE_MTMASK_THEAD (_PAGE_PMA_THEAD | _PAGE_IO_THEAD | (1UL << 59))
>
This fix is already in -fixes:
https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/?id=c21f014818600ae017f97ee087e7c136b1916aa7
Thanks,
Alex
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] riscv: Fix definition of _PAGE_NOCACHE_THEAD
2024-02-27 12:44 ` Alexandre Ghiti
@ 2024-02-27 12:47 ` Wu, Fei
0 siblings, 0 replies; 3+ messages in thread
From: Wu, Fei @ 2024-02-27 12:47 UTC (permalink / raw)
To: Alexandre Ghiti, paul.walmsley, palmer, aou, guoren, jszhang,
linux-riscv, linux-kernel
On 2/27/2024 8:44 PM, Alexandre Ghiti wrote:
> Hi Fei,
>
> On 27/02/2024 13:44, Fei Wu wrote:
>> _PAGE_NOCACHE_THEAD is not used but the definition is wrong.
>>
>> Signed-off-by: Fei Wu <fei2.wu@intel.com>
>> ---
>> arch/riscv/include/asm/pgtable-64.h | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/riscv/include/asm/pgtable-64.h
>> b/arch/riscv/include/asm/pgtable-64.h
>> index b42017d76924..b99bd66107a6 100644
>> --- a/arch/riscv/include/asm/pgtable-64.h
>> +++ b/arch/riscv/include/asm/pgtable-64.h
>> @@ -136,7 +136,7 @@ enum napot_cont_order {
>> * 10010 - IO Strongly-ordered, Non-cacheable, Non-bufferable,
>> Shareable, Non-trustable
>> */
>> #define _PAGE_PMA_THEAD ((1UL << 62) | (1UL << 61) | (1UL <<
>> 60))
>> -#define _PAGE_NOCACHE_THEAD ((1UL < 61) | (1UL << 60))
>> +#define _PAGE_NOCACHE_THEAD ((1UL << 61) | (1UL << 60))
>> #define _PAGE_IO_THEAD ((1UL << 63) | (1UL << 60))
>> #define _PAGE_MTMASK_THEAD (_PAGE_PMA_THEAD | _PAGE_IO_THEAD |
>> (1UL << 59))
>>
>
>
> This fix is already in -fixes:
> https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/?id=c21f014818600ae017f97ee087e7c136b1916aa7
>
Thank you Alex, got it.
Fei.
> Thanks,
>
> Alex
>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-27 12:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-27 12:44 [PATCH] riscv: Fix definition of _PAGE_NOCACHE_THEAD Fei Wu
2024-02-27 12:44 ` Alexandre Ghiti
2024-02-27 12:47 ` Wu, Fei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox