From: Yu-Chien Peter Lin <peterlin@andestech.com>
To: opensbi@lists.infradead.org
Subject: [RFC PATCH] platform: generic: renesas: Add support to configure the PMA
Date: Wed, 21 Dec 2022 14:22:32 +0000 [thread overview]
Message-ID: <Y6MWqO71cISuLEOk@APC323> (raw)
In-Reply-To: <CAEUhbmW5WmNSPNNe4UWq6o7ZtOgT=9N5f2=F6L+ScLSzW_K8dQ@mail.gmail.com>
On Wed, Dec 21, 2022 at 09:23:21AM +0800, Bin Meng wrote:
> On Mon, Dec 12, 2022 at 5:44 PM Lad Prabhakar
> <prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> >
> > Add support to configure the PMA regions and create a corresponding
> > reserve memory node and propagate it to the higher boot stack.
> >
> > &L2 {
> > andestech,pma-regions = <0x0 0x58000000 0x0 0x08000000
> > (AX45MP_PMACFG_ETYP_NAPOT |
> > AX45MP_PMACFG_MTYP_MEM_NON_CACHE_BUF)>;
> > };
> >
> > PMA regions are passed as part of L2 cache node to OpenSBI, these regions
> > are parsed and configured in the OpenSBI.
> >
> > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> > ---
> > Hi All,
> >
> > This patch is based on the discussion [0] so sending this as an RFC
> > patch so that we get the Linux side of things accepeted first and once its
> > finalized I'll send a non RFC patch for this.
> >
> > [0] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20221124172207.153718-8-prabhakar.mahadev-lad.rj at bp.renesas.com/
> >
> > Cheers,
> > Prabhakar
> > ---
> > platform/generic/renesas/rzfive/objects.mk | 1 +
> > platform/generic/renesas/rzfive/rzfive-pma.c | 181 +++++++++++++++
> > platform/generic/renesas/rzfive/rzfive-pma.h | 12 +
>
> I feel we should name this to something like ax45mp-pma instead of
> rzfive-pma, as this is at the core configuration level not SoC's, no?
Agreed, Andes PMA CSRs also exist in A45MP (RV32) so it's better if we
call it andes45-pma.c and andes45_{read|write}_pma{cfg|addr} as function
name.
Any suggestion to add these functions which will be shared between the
platforms?
>
> > platform/generic/renesas/rzfive/rzfive.c | 227 +++++++++++++++++++
> > 4 files changed, 421 insertions(+)
> > create mode 100644 platform/generic/renesas/rzfive/rzfive-pma.c
> > create mode 100644 platform/generic/renesas/rzfive/rzfive-pma.h
> >
Best regards,
Peter Lin
next prev parent reply other threads:[~2022-12-21 14:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 9:44 [RFC PATCH] platform: generic: renesas: Add support to configure the PMA Lad Prabhakar
2022-12-20 22:12 ` Yu-Chien Peter Lin
2022-12-21 0:38 ` Lad, Prabhakar
2022-12-21 15:15 ` Yu-Chien Peter Lin
2022-12-21 18:19 ` Lad, Prabhakar
2022-12-22 20:16 ` Yu-Chien Peter Lin
2022-12-22 17:52 ` Lad, Prabhakar
2022-12-21 1:23 ` Bin Meng
2022-12-21 14:22 ` Yu-Chien Peter Lin [this message]
2022-12-21 18:04 ` Lad, Prabhakar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y6MWqO71cISuLEOk@APC323 \
--to=peterlin@andestech.com \
--cc=opensbi@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox