LoongArch: fix HT RX INT TRANS register not initialized

upstream: no

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: 4fe09071db ("LoongArch: Old BPI compatibility")
Reported-by: Qianwen Li <liqianwen@loongson.cn>
Signed-off-by: Hongchen Zhang <zhanghongchen@loongson.cn>
Signed-off-by: Ming Wang <wangming01@loongson.cn>
This commit is contained in:
Hongchen Zhang 2024-06-05 09:26:18 +08:00 committed by Jianping Liu
parent a522e3024a
commit 2912daeb77
1 changed files with 7 additions and 0 deletions

View File

@ -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);