Patch "riscv: mm: fix NOCACHE_THEAD does not set bit[61] correctly" has been added to the 6.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    riscv: mm: fix NOCACHE_THEAD does not set bit[61] correctly

to the 6.7-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     riscv-mm-fix-nocache_thead-does-not-set-bit-61-corre.patch
and it can be found in the queue-6.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 481d3401bf550153c9a552f712017a12a7618232
Author: Yangyu Chen <cyy@xxxxxxxxxxxx>
Date:   Wed Feb 21 11:02:31 2024 +0800

    riscv: mm: fix NOCACHE_THEAD does not set bit[61] correctly
    
    [ Upstream commit c21f014818600ae017f97ee087e7c136b1916aa7 ]
    
    Previous commit dbfbda3bd6bf ("riscv: mm: update T-Head memory type
    definitions") from patch [1] missed a `<` for bit shifting, result in
    bit(61) does not set in _PAGE_NOCACHE_THEAD and leaves bit(0) set instead.
    This patch get this fixed.
    
    Link: https://lore.kernel.org/linux-riscv/20230912072510.2510-1-jszhang@xxxxxxxxxx/ [1]
    Fixes: dbfbda3bd6bf ("riscv: mm: update T-Head memory type definitions")
    Signed-off-by: Yangyu Chen <cyy@xxxxxxxxxxxx>
    Reviewed-by: Guo Ren <guoren@xxxxxxxxxx>
    Reviewed-by: Jisheng Zhang <jszhang@xxxxxxxxxx>
    Reviewed-by: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/tencent_E19FA1A095768063102E654C6FC858A32F06@xxxxxx
    Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/riscv/include/asm/pgtable-64.h b/arch/riscv/include/asm/pgtable-64.h
index 9a2c780a11e95..783837bbd8783 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))
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux