On Fri, Nov 24, 2023 at 8:33 AM 谢 波 <xiebo_60@xxxxxxxx> wrote: > > Hello all, > > > I have a question regarding the handling of potential issues during the MSI interrupt sending process. It appears that if the APLIC target register's value is modified during the MSI interrupt sending process, it could potentially lead to MSI interrupt send failures. The code doesn't seem to account for this scenario or take appropriate measures. > > I am reaching out to seek clarification on whether this situation has been considered and if there are specific reasons for not addressing it in the code. Your insights into this matter would be highly appreciated. > > Thank you for your time, and I look forward to your response. This has been taken care of in the IMSIC driver in the irq_set_affinity() because the IMSIC driver manages the re-writing of MSI messages upon IRQ affinity changes. Please look at PATCH7 and PATCH8 of the "[PATCH v11 00/14] Linux RISC-V AIA Support" series. (Refer, https://www.spinics.net/lists/devicetree/msg643764.html) Regards, Anup > > Best regards > > >