[PATCH] lib: sbi: Fix PMP entry detetcion mechanism
Vincent Chen
vincent.chen at sifive.com
Tue Oct 27 05:25:33 EDT 2020
On Tue, Oct 27, 2020 at 4:03 PM Anup Patel <Anup.Patel at wdc.com> wrote:
>
>
>
> > -----Original Message-----
> > From: opensbi <opensbi-bounces at lists.infradead.org> On Behalf Of Vincent
> > Chen
> > Sent: 27 October 2020 13:24
> > To: opensbi at lists.infradead.org
> > Cc: vincent.chen at sifive.com
> > Subject: [PATCH] lib: sbi: Fix PMP entry detetcion mechanism
> >
> > The granularity of PMP access control settings is platform-specific. If the
> > granularity is greater than 4 bytes, the current mechanism will not work
> > because the return value will be forced to be granularity alignment so that
> > the returned value is not equal to the written value. This patch writes
> > PMP_ADDR_MASK to each PMP addr registers and checks the return value
> > that is unequaled to zero to identify whether this PMP entry is support or
> > not.
>
> This was initially fixed by Pragnesh for SiFive Unleashed platform and finally
> it has been fixed correctly by Atish.
>
> Can you try latest OpenSBI repo ?
>
> Regards,
> Anup
>
Sure, Thanks.
Regards,
Vincent
More information about the opensbi
mailing list