Skip to content

Commit

Permalink
LoongArch: fix HT RX INT TRANS register not initialized
Browse files Browse the repository at this point in the history
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: db5bb24abc8d ("LoongArch: Old BPI compatibility")
Reported-by: Qianwen Li <[email protected]>
Signed-off-by: Hongchen Zhang <[email protected]>
Signed-off-by: Yanteng Si <[email protected]>
  • Loading branch information
Yanteng Si authored and opsiff committed Jul 25, 2024
1 parent 7dffb10 commit 910b256
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/loongarch/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,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);
Expand Down

0 comments on commit 910b256

Please sign in to comment.