Patch "LoongArch: Fix reserving screen info memory for above-4G firmware" has been added to the 6.12-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

    LoongArch: Fix reserving screen info memory for above-4G firmware

to the 6.12-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:
     loongarch-fix-reserving-screen-info-memory-for-above.patch
and it can be found in the queue-6.12 subdirectory.

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



commit 7e2a735d283fe40eee22482ca3343a52853d4028
Author: Huacai Chen <chenhuacai@xxxxxxxxxx>
Date:   Mon Dec 2 16:42:07 2024 +0800

    LoongArch: Fix reserving screen info memory for above-4G firmware
    
    [ Upstream commit 55dc2f8f263448f1e6c7ef135d08e640d5a4826e ]
    
    Since screen_info.lfb_base is a __u32 type, an above-4G address need an
    ext_lfb_base to present its higher 32bits. In init_screen_info() we can
    use __screen_info_lfb_base() to handle this case for reserving screen
    info memory.
    
    Signed-off-by: Xuefeng Zhao <zhaoxuefeng@xxxxxxxxxxx>
    Signed-off-by: Jianmin Lv <lvjianmin@xxxxxxxxxxx>
    Signed-off-by: Tianyang Zhang <zhangtianyang@xxxxxxxxxxx>
    Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/loongarch/kernel/efi.c b/arch/loongarch/kernel/efi.c
index 2bf86aeda874..de21e72759ee 100644
--- a/arch/loongarch/kernel/efi.c
+++ b/arch/loongarch/kernel/efi.c
@@ -95,7 +95,7 @@ static void __init init_screen_info(void)
 	memset(si, 0, sizeof(*si));
 	early_memunmap(si, sizeof(*si));
 
-	memblock_reserve(screen_info.lfb_base, screen_info.lfb_size);
+	memblock_reserve(__screen_info_lfb_base(&screen_info), screen_info.lfb_size);
 }
 
 void __init efi_init(void)




[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