[PATCH 0/2] Not to clear all the bits of mip

Anup Patel apatel at ventanamicro.com
Wed Feb 1 00:43:57 PST 2023


On Wed, Feb 1, 2023 at 1:52 PM Nick Hu <nick.hu at sifive.com> wrote:
>
> On Tue, Jan 17, 2023 at 4:14 PM Nick Hu <nick.hu at sifive.com> wrote:
>>
>> In generic behavior of QEMU, if we clear the mip.SEIP and the pendings of
>> PLIC still exist, the QEMU may not set the mip.SEIP back immediately. So
>> interrupts won't be handled anymore until the next new device interrupt
>> arrived. We should only clear the SSIP and STIP which set by SW. The rest
>> of the bits should be decided by HW.
>>
>> Nick Hu (2):
>>   firmware: Not to clear all the MIP
>>   lib: sbi_hsm: Use csr_set to restore the MIP
>>
>>  firmware/fw_base.S | 10 ++++++++--
>>  lib/sbi/sbi_hsm.c  |  2 +-
>>  2 files changed, 9 insertions(+), 3 deletions(-)
>>
>> --
>> 2.34.1
>>
> Hi Anup,
>
> Do you have any suggestions on the patches?

This is next on my list. I will review it soon.

Regards,
Anup



More information about the opensbi mailing list