Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3484de7b authored by Huacai Chen's avatar Huacai Chen Committed by Ralf Baechle
Browse files

MIPS: Loongson-3: Reserve 32MB for RS780E integrated GPU



Due to datasheet, reserving 0xff800000~0xffffffff (8MB below 4GB) is
not enough for RS780E integrated GPU's TOM (top of memory) registers
and MSI/MSI-x memory region, so we reserve 0xfe000000~0xffffffff (32MB
below 4GB).

Signed-off-by: default avatarHuacai Chen <chenhc@lemote.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Steven J . Hill <sjhill@realitydiluted.com>
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12889/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a95d0692
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -213,10 +213,10 @@ static void __init node_mem_init(unsigned int node)
		BOOTMEM_DEFAULT);

	if (node == 0 && node_end_pfn(0) >= (0xffffffff >> PAGE_SHIFT)) {
		/* Reserve 0xff800000~0xffffffff for RS780E integrated GPU */
		/* Reserve 0xfe000000~0xffffffff for RS780E integrated GPU */
		reserve_bootmem_node(NODE_DATA(node),
				(node_addrspace_offset | 0xff800000),
				8 << 20, BOOTMEM_DEFAULT);
				(node_addrspace_offset | 0xfe000000),
				32 << 20, BOOTMEM_DEFAULT);
	}

	sparse_memory_present_with_active_regions(node);