From: sudeep.holla@arm.com (Sudeep Holla)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/3] Revert arm64 cache geometry
Date: Fri, 30 Oct 2015 12:27:15 +0000 [thread overview]
Message-ID: <56336223.4000807@arm.com> (raw)
In-Reply-To: <20151030115744.GC2854@e104818-lin.cambridge.arm.com>
On 30/10/15 11:57, Catalin Marinas wrote:
> On Fri, Oct 30, 2015 at 11:10:28AM +0000, Sudeep Holla wrote:
>> On 30/10/15 11:00, Catalin Marinas wrote:
>>> BTW, it looks like I don't get any cache information on Juno
>>> with 4.3-rc7, it says "Unable to detect cache hierarchy from DT
>>> for CPU 0". I thought the point of the patch you are trying to
>>> revert was to parse this information from the hardware registers.
>>> Sudeep, any idea?
>>>
>>
>> Yes you need to have updated DT from the mainline. Since the
>> architecture doesn't provide any way of detecting the cpus sharing
>> particular cache, we get that information from DT.
>>
>> If DT lacks that info we don't expose any information. It would be
>> wrong to say that a shared cache is shared by all the cpus in the
>> system. DT check was added explicitly to avoid that.
>
> OK, thanks for the information. The good thing is that use space
> should already be able to cope with cache information not present in
> sysfs.
>
True.
> So, rather than reverting this feature, for the Denver case we have
> the option of either providing full cache topology information in DT
> or providing a DT flag which states whether hardware cache ID
> information is relevant.
>
Yes at-least few L2 cache controllers where either hardware can't
provide that information or provides incorrect one, already use/override
values from DT.
We can probably patch core cacheinfo itself as PPC also completely
depends on DT(though not yet migrated to use generic cacheinfo). In that
way we can avoid calling arch code if all the information is found in DT.
> What about ACPI? Are there any provisions for specifying such
> information?
>
Not yet.
--
Regards,
Sudeep
prev parent reply other threads:[~2015-10-30 12:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-28 21:43 [PATCH 0/3] Revert arm64 cache geometry Alex Van Brunt
2015-10-28 21:43 ` [PATCH 1/3] Revert "arm64: kernel: add support for cpu cache information" Alex Van Brunt
2015-10-28 21:43 ` [PATCH 2/3] Revert "arm64: don't flag non-aliasing VIPT I-caches as aliasing" Alex Van Brunt
2015-10-28 21:43 ` [PATCH 3/3] Revert "arm64: add helper functions to read I-cache attributes" Alex Van Brunt
2015-10-29 3:22 ` [PATCH 0/3] Revert arm64 cache geometry Ard Biesheuvel
2015-10-29 11:20 ` Mark Rutland
2015-10-29 12:26 ` Ard Biesheuvel
2015-10-29 15:43 ` Russell King - ARM Linux
2015-10-29 16:28 ` Ard Biesheuvel
2015-10-29 23:06 ` Alexander Van Brunt
2015-10-29 22:54 ` Alexander Van Brunt
2015-10-30 11:18 ` Will Deacon
2015-10-29 11:29 ` Mark Rutland
2015-10-29 11:43 ` Sudeep Holla
2015-10-29 11:40 ` Will Deacon
2015-10-29 23:03 ` Alexander Van Brunt
2015-10-30 11:00 ` Catalin Marinas
2015-10-30 11:10 ` Sudeep Holla
2015-10-30 11:57 ` Catalin Marinas
2015-10-30 12:27 ` Sudeep Holla [this message]
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=56336223.4000807@arm.com \
--to=sudeep.holla@arm.com \
--cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).