[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/7] riscv/sifive_u: Add L2-LIM cache memory
From: |
Alistair Francis |
Subject: |
Re: [PATCH v2 1/7] riscv/sifive_u: Add L2-LIM cache memory |
Date: |
Fri, 27 Sep 2019 14:47:04 -0700 |
On Fri, Sep 27, 2019 at 12:57 AM Bin Meng <address@hidden> wrote:
>
> On Fri, Sep 27, 2019 at 8:52 AM Alistair Francis
> <address@hidden> wrote:
> >
> > On reset only a single L2 cache way is enabled, the others are exposed
> > as memory that can be used by early boot firmware. This L2 region is
> > generally disabled using the WayEnable register at a later stage in the
> > boot process. To allow firmware to target QEMU and the HiFive Unleashed
> > let's add the L2 LIM (LooselyIntegrated Memory).
> >
> > Ideally we would want to adjust the size of this chunk of memory as the
> > L2 Cache Controller WayEnable register is incremented. Unfortunately I
> > don't see a nice way to handle reducing or blocking out the L2 LIM while
> > still allowing it be re returned to all enabled from a reset.
> >
> > Signed-off-by: Alistair Francis <address@hidden>
> > ---
>
> Please include a changelog in the future. otherwise it's hard to track
> what is changed between patch versions.
I normally just include one in the cover letter, individual patch
change logs can be a bit of a pain to maintain. I'll try to do a
better job in the future.
Alistair
>
> > hw/riscv/sifive_u.c | 16 ++++++++++++++++
> > include/hw/riscv/sifive_u.h | 1 +
> > 2 files changed, 17 insertions(+)
> >
>
> Reviewed-by: Bin Meng <address@hidden>
- [PATCH v2 0/7] RISC-V: Add more machine memory, Alistair Francis, 2019/09/26
- [PATCH v2 2/7] riscv/sifive_u: Add QSPI memory region, Alistair Francis, 2019/09/26
- [PATCH v2 1/7] riscv/sifive_u: Add L2-LIM cache memory, Alistair Francis, 2019/09/26
- [PATCH v2 3/7] riscv/sifive_u: Manually define the machine, Alistair Francis, 2019/09/26
- [PATCH v2 5/7] riscv/virt: Manually define the machine, Alistair Francis, 2019/09/26
- [PATCH v2 4/7] riscv/sifive_u: Add the start-in-flash property, Alistair Francis, 2019/09/26
- [PATCH v2 7/7] riscv/virt: Jump to pflash if specified, Alistair Francis, 2019/09/26
- [PATCH v2 6/7] riscv/virt: Add the PFlash CFI01 device, Alistair Francis, 2019/09/26