From: Richard Henderson <richard.henderson@linaro.org>
To: "Jonathan Cameron" <Jonathan.Cameron@Huawei.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel@nongnu.org, Gavin Shan <gshan@redhat.com>,
linuxarm@huawei.com, James Morse <james.morse@arm.com>,
"peter . maydell @ linaro . org" <peter.maydell@linaro.org>,
zhao1.liu@linux.intel.com,
Shameerali Kolothum Thodi <shameerali.kolothum.thodi@huawei.com>,
Yicong Yang <yangyicong@huawei.com>
Subject: Re: [RFC PATCH 2/5] HACK: target/arm/tcg: Add some more caches to cpu=max
Date: Wed, 23 Aug 2023 12:05:02 -0700 [thread overview]
Message-ID: <862d1957-cd73-0367-8e9c-adba16a55ab1@linaro.org> (raw)
In-Reply-To: <20230823155949.000071d2@Huawei.com>
On 8/23/23 07:59, Jonathan Cameron via wrote:
> On Mon, 14 Aug 2023 11:13:58 +0100
> Alex Bennée <alex.bennee@linaro.org> wrote:
>
>> Jonathan Cameron <Jonathan.Cameron@huawei.com> writes:
>>
>>> Used to drive the MPAM cache intialization and to exercise more
>>> of the PPTT cache entry generation code. Perhaps a default
>>> L3 cache is acceptable for max?
>>>
>>> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>>> ---
>>> target/arm/tcg/cpu64.c | 12 ++++++++++++
>>> 1 file changed, 12 insertions(+)
>>>
>>> diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c
>>> index 8019f00bc3..2af67739f6 100644
>>> --- a/target/arm/tcg/cpu64.c
>>> +++ b/target/arm/tcg/cpu64.c
>>> @@ -711,6 +711,17 @@ void aarch64_max_tcg_initfn(Object *obj)
>>> uint64_t t;
>>> uint32_t u;
>>>
>>> + /*
>>> + * Expanded cache set
>>> + */
>>> + cpu->clidr = 0x8204923; /* 4 4 4 4 3 in 3 bit fields */
>>> + cpu->ccsidr[0] = 0x000000ff0000001aull; /* 64KB L1 dcache */
>>> + cpu->ccsidr[1] = 0x000000ff0000001aull; /* 64KB L1 icache */
>>> + cpu->ccsidr[2] = 0x000007ff0000003aull; /* 1MB L2 unified cache */
>>> + cpu->ccsidr[4] = 0x000007ff0000007cull; /* 2MB L3 cache 128B line */
>>> + cpu->ccsidr[6] = 0x00007fff0000007cull; /* 16MB L4 cache 128B line */
>>> + cpu->ccsidr[8] = 0x0007ffff0000007cull; /* 2048MB L5 cache 128B line */
>>> +
>>
>> I think Peter in another thread wondered if we should have a generic
>> function for expanding the cache idr registers based on a abstract lane
>> definition.
>>
>
> Great!
>
> This response?
> https://lore.kernel.org/qemu-devel/CAFEAcA_Lzj1LEutMro72fCfqiCWtOpd+5b-YPcfKv8Bg1f+rCg@mail.gmail.com/
Followed up with
https://lore.kernel.org/qemu-devel/20230811214031.171020-6-richard.henderson@linaro.org/
r~
next prev parent reply other threads:[~2023-08-23 19:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-08 11:57 [RFC PATCH 0/5] hw/arm: MPAM Emulation + PPTT cache description Jonathan Cameron via
2023-08-08 11:57 ` [RFC PATCH 1/5] hw/acpi: Add PPTT cache descriptions Jonathan Cameron via
2023-08-14 9:50 ` Zhao Liu
2023-08-23 15:08 ` Jonathan Cameron via
2023-08-08 11:57 ` [RFC PATCH 2/5] HACK: target/arm/tcg: Add some more caches to cpu=max Jonathan Cameron via
2023-08-14 10:13 ` Alex Bennée
2023-08-23 14:59 ` Jonathan Cameron via
2023-08-23 19:05 ` Richard Henderson [this message]
2023-08-08 11:57 ` [RFC PATCH 3/5] target/arm: Add support for MPAM CPU registers Jonathan Cameron via
2023-08-08 11:57 ` [RFC PATCH 4/5] hw/arm: Add MPAM emulation Jonathan Cameron via
2023-08-08 11:57 ` [RFC PATCH 5/5] hw/arm/virt: Add MPAM MSCs for memory controllers and caches Jonathan Cameron via
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=862d1957-cd73-0367-8e9c-adba16a55ab1@linaro.org \
--to=richard.henderson@linaro.org \
--cc=Jonathan.Cameron@Huawei.com \
--cc=alex.bennee@linaro.org \
--cc=gshan@redhat.com \
--cc=james.morse@arm.com \
--cc=linuxarm@huawei.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=yangyicong@huawei.com \
--cc=zhao1.liu@linux.intel.com \
/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;
as well as URLs for NNTP newsgroup(s).