Patch "MIPS: fix local_irq_{disable,enable} in asmmacro.h" has been added to the 5.10-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

    MIPS: fix local_irq_{disable,enable} in asmmacro.h

to the 5.10-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:
     mips-fix-local_irq_-disable-enable-in-asmmacro.h.patch
and it can be found in the queue-5.10 subdirectory.

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



commit c678fa94cd241cba49b7aa0ed8476ebd6cda9bf8
Author: Huang Pei <huangpei@xxxxxxxxxxx>
Date:   Tue Mar 23 10:34:02 2021 +0800

    MIPS: fix local_irq_{disable,enable} in asmmacro.h
    
    [ Upstream commit 05c4e2721d7af0df7bc1378a23712a0fd16947b5 ]
    
    commit ba9196d2e005 ("MIPS: Make DIEI support as a config option")
    use CPU_HAS_DIEI to indicate whether di/ei is implemented correctly,
    without this patch, "local_irq_disable" from entry.S in 3A1000
    (with buggy di/ei) lose protection of commit e97c5b609880 ("MIPS:
    Make irqflags.h functions preempt-safe for non-mipsr2 cpus")
    
    Fixes: ba9196d2e005 ("MIPS: Make DIEI support as a config option")
    Signed-off-by: Huang Pei <huangpei@xxxxxxxxxxx>
    Signed-off-by: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/mips/include/asm/asmmacro.h b/arch/mips/include/asm/asmmacro.h
index 86f2323ebe6b..ca83ada7015f 100644
--- a/arch/mips/include/asm/asmmacro.h
+++ b/arch/mips/include/asm/asmmacro.h
@@ -44,8 +44,7 @@
 	.endm
 #endif
 
-#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_CPU_MIPSR5) || \
-    defined(CONFIG_CPU_MIPSR6)
+#ifdef CONFIG_CPU_HAS_DIEI
 	.macro	local_irq_enable reg=t0
 	ei
 	irq_enable_hazard



[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