Convert RISC-V intc device to a bus, and establish parent-child relationships with IMSIC
That would allow to propagate PIC_INIT_SECONDARY() call to the child
This is similar to what gicv5 does with IRS department
Differential D59813
riscv intc: convert to a bus Authored by br on Fri, Sep 18, 2:30 PM. Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions I think this comment by @mmel is most useful I've written this several times in other reviews, I think. Initialization of PICs on secondary cores must be coordinated with the parent PIC and must follow the PIC hierarchy. Imho, the only way to do this correctly is implement this in pic_init_secondary() for each PIC driver. BTW - most real systems have multiple PIC instances - GICv3 has multiple functions/departments, each of which is a separate PIC, each PCI driver should contain a PIC. And it's not uncommon for a hierarchy to have 3 or 4 nodes. Comment Actions You're definitely right, from an INTRNG point of view. Thanks.
| ||||||||||||||||||||||||||||||||||