mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@arm.com>
To: Beata Michalska <beata.michalska@arm.com>
Cc: linux-arm-kernel@lists.infradead.org, will@kernel.org,
	suzuki.poulose@arm.com, James.Morse@arm.com,
	xuewen.yan94@gmail.com, seanwang1@lenovo.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arm64: errata: Add Cortex-A725 erratum 3821522 workaround
Date: Thu, 24 Sep 2026 15:55:32 +0100	[thread overview]
Message-ID: <arU55PEnc7Gjy830@arm.com> (raw)
In-Reply-To: <20260908104800.3744507-1-beata.michalska@arm.com>

Hi Beata,

On Tue, Sep 08, 2026 at 12:47:08PM +0200, Beata Michalska wrote:
> diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h
> index b9eaf4ad70850..93f33ee078638 100644
> --- a/arch/arm64/include/asm/topology.h
> +++ b/arch/arm64/include/asm/topology.h
> @@ -17,6 +17,12 @@ int pcibus_to_node(struct pci_bus *bus);
>  
>  #include <linux/arch_topology.h>
>  
> +static inline bool this_cpu_has_broken_amu_constcnt(void)
> +{
> +	return this_cpu_has_cap(ARM64_WORKAROUND_2457168) ||
> +	       this_cpu_has_cap(ARM64_WORKAROUND_3821522);
> +}

Instead of this, please add ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT and set
it in the .capability field of a multi-cap entry. We do the same with
ARM64_WORKAROUND_REPEAT_TLBI_SYNC.

-- 
Catalin

      reply	other threads:[~2026-09-24 14:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-08 10:47 Beata Michalska
2026-09-24 14:55 ` Catalin Marinas [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=arU55PEnc7Gjy830@arm.com \
    --to=catalin.marinas@arm.com \
    --cc=James.Morse@arm.com \
    --cc=beata.michalska@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=seanwang1@lenovo.com \
    --cc=suzuki.poulose@arm.com \
    --cc=will@kernel.org \
    --cc=xuewen.yan94@gmail.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

all inboxes | Powered by JetHome®