Commit a6921a4a authored by Hongchen Zhang's avatar Hongchen Zhang
Browse files

LoongArch: fix HT RX INT TRANS register not initialized

LoongArch inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9V21T


CVE: NA

------------------------------------------------------------------

When we boot Loongson-TC542F0 3C5000 4-Node dual bridge machine, boot
failed with no root partition found. The reason is HT RX INT TRANS
register not initialized, So we initialize it.

Fixes: db5bb24a ("LoongArch: Old BPI compatibility")
Reported-by: default avatarQianwen Li <liqianwen@loongson.cn>
Signed-off-by: default avatarHongchen Zhang <zhanghongchen@loongson.cn>
parent b1acaf02
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -127,6 +127,13 @@ void __init init_IRQ(void)
	int i, ret;
	unsigned int order = get_order(IRQ_STACK_SIZE);
	struct page *page;
	unsigned long node;

	if (!acpi_gbl_reduced_hardware) {
		for_each_node(node)
			writel(0x40000000 | (node << 12),
				(volatile void __iomem *)(0x80000efdfb000274UL + (node<<44)));
	}

	clear_csr_ecfg(ECFG0_IM);
	clear_csr_estat(ESTATF_IP);