From: Will Deacon <will.deacon@arm.com>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: mark.rutland@arm.com, vladimir.murzin@arm.com,
catalin.marinas@arm.com, linux-kernel@vger.kernel.org,
Andre Przywara <andre.przywara@arm.com>,
dave.martin@arm.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/7] arm64: capabilities: Merge entries for ARM64_WORKAROUND_CLEAN_CACHE
Date: Wed, 5 Dec 2018 15:02:52 +0000 [thread overview]
Message-ID: <20181205150252.GB16171@arm.com> (raw)
In-Reply-To: <1543598286-2663-2-git-send-email-suzuki.poulose@arm.com>
On Fri, Nov 30, 2018 at 05:18:00PM +0000, Suzuki K Poulose wrote:
> We have two entries for ARM64_WORKAROUND_CLEAN_CACHE capability :
>
> 1) ARM Errata 826319, 827319, 824069, 819472 on A53 r0p[012]
> 2) ARM Errata 819472 on A53 r0p[01]
>
> Both have the same work around. Merge these entries to avoid
> duplicate entries for a single capability. Add a new Kconfig
> entry to control the "capability" entry to make it easier
> to handle combinations of the CONFIGs.
>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: Andre Przywara <andre.przywara@arm.com>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
> ---
> arch/arm64/Kconfig | 7 +++++++
> arch/arm64/include/asm/cputype.h | 1 +
> arch/arm64/kernel/cpu_errata.c | 28 ++++++++++++++++------------
> 3 files changed, 24 insertions(+), 12 deletions(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index 787d785..ad69e15 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -313,9 +313,13 @@ menu "Kernel Features"
>
> menu "ARM errata workarounds via the alternatives framework"
>
> +config ARM64_WORKAROUND_CLEAN_CACHE
> + def_bool n
> +
> config ARM64_ERRATUM_826319
> bool "Cortex-A53: 826319: System might deadlock if a write cannot complete until read data is accepted"
> default y
> + select ARM64_WORKAROUND_CLEAN_CACHE
> help
> This option adds an alternative code sequence to work around ARM
> erratum 826319 on Cortex-A53 parts up to r0p2 with an AMBA 4 ACE or
> @@ -337,6 +341,7 @@ config ARM64_ERRATUM_826319
> config ARM64_ERRATUM_827319
> bool "Cortex-A53: 827319: Data cache clean instructions might cause overlapping transactions to the interconnect"
> default y
> + select ARM64_WORKAROUND_CLEAN_CACHE
> help
> This option adds an alternative code sequence to work around ARM
> erratum 827319 on Cortex-A53 parts up to r0p2 with an AMBA 5 CHI
> @@ -358,6 +363,7 @@ config ARM64_ERRATUM_827319
> config ARM64_ERRATUM_824069
> bool "Cortex-A53: 824069: Cache line might not be marked as clean after a CleanShared snoop"
> default y
> + select ARM64_WORKAROUND_CLEAN_CACHE
> help
> This option adds an alternative code sequence to work around ARM
> erratum 824069 on Cortex-A53 parts up to r0p2 when it is connected
> @@ -380,6 +386,7 @@ config ARM64_ERRATUM_824069
> config ARM64_ERRATUM_819472
> bool "Cortex-A53: 819472: Store exclusive instructions might cause data corruption"
> default y
> + select ARM64_WORKAROUND_CLEAN_CACHE
> help
> This option adds an alternative code sequence to work around ARM
> erratum 819472 on Cortex-A53 parts up to r0p1 with an L2 cache
> diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h
> index 12f93e4d..2e26375 100644
> --- a/arch/arm64/include/asm/cputype.h
> +++ b/arch/arm64/include/asm/cputype.h
> @@ -151,6 +151,7 @@ struct midr_range {
> .rv_max = MIDR_CPU_VAR_REV(v_max, r_max), \
> }
>
> +#define MIDR_REV_RANGE(m, v, r_min, r_max) MIDR_RANGE(m, v, r_min, v, r_max)
What's the point of this macro?
Will
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Will Deacon <will.deacon@arm.com>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, catalin.marinas@arm.com,
dave.martin@arm.com, mark.rutland@arm.com,
vladimir.murzin@arm.com, Andre Przywara <andre.przywara@arm.com>
Subject: Re: [PATCH v2 1/7] arm64: capabilities: Merge entries for ARM64_WORKAROUND_CLEAN_CACHE
Date: Wed, 5 Dec 2018 15:02:52 +0000 [thread overview]
Message-ID: <20181205150252.GB16171@arm.com> (raw)
In-Reply-To: <1543598286-2663-2-git-send-email-suzuki.poulose@arm.com>
On Fri, Nov 30, 2018 at 05:18:00PM +0000, Suzuki K Poulose wrote:
> We have two entries for ARM64_WORKAROUND_CLEAN_CACHE capability :
>
> 1) ARM Errata 826319, 827319, 824069, 819472 on A53 r0p[012]
> 2) ARM Errata 819472 on A53 r0p[01]
>
> Both have the same work around. Merge these entries to avoid
> duplicate entries for a single capability. Add a new Kconfig
> entry to control the "capability" entry to make it easier
> to handle combinations of the CONFIGs.
>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: Andre Przywara <andre.przywara@arm.com>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
> ---
> arch/arm64/Kconfig | 7 +++++++
> arch/arm64/include/asm/cputype.h | 1 +
> arch/arm64/kernel/cpu_errata.c | 28 ++++++++++++++++------------
> 3 files changed, 24 insertions(+), 12 deletions(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index 787d785..ad69e15 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -313,9 +313,13 @@ menu "Kernel Features"
>
> menu "ARM errata workarounds via the alternatives framework"
>
> +config ARM64_WORKAROUND_CLEAN_CACHE
> + def_bool n
> +
> config ARM64_ERRATUM_826319
> bool "Cortex-A53: 826319: System might deadlock if a write cannot complete until read data is accepted"
> default y
> + select ARM64_WORKAROUND_CLEAN_CACHE
> help
> This option adds an alternative code sequence to work around ARM
> erratum 826319 on Cortex-A53 parts up to r0p2 with an AMBA 4 ACE or
> @@ -337,6 +341,7 @@ config ARM64_ERRATUM_826319
> config ARM64_ERRATUM_827319
> bool "Cortex-A53: 827319: Data cache clean instructions might cause overlapping transactions to the interconnect"
> default y
> + select ARM64_WORKAROUND_CLEAN_CACHE
> help
> This option adds an alternative code sequence to work around ARM
> erratum 827319 on Cortex-A53 parts up to r0p2 with an AMBA 5 CHI
> @@ -358,6 +363,7 @@ config ARM64_ERRATUM_827319
> config ARM64_ERRATUM_824069
> bool "Cortex-A53: 824069: Cache line might not be marked as clean after a CleanShared snoop"
> default y
> + select ARM64_WORKAROUND_CLEAN_CACHE
> help
> This option adds an alternative code sequence to work around ARM
> erratum 824069 on Cortex-A53 parts up to r0p2 when it is connected
> @@ -380,6 +386,7 @@ config ARM64_ERRATUM_824069
> config ARM64_ERRATUM_819472
> bool "Cortex-A53: 819472: Store exclusive instructions might cause data corruption"
> default y
> + select ARM64_WORKAROUND_CLEAN_CACHE
> help
> This option adds an alternative code sequence to work around ARM
> erratum 819472 on Cortex-A53 parts up to r0p1 with an L2 cache
> diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h
> index 12f93e4d..2e26375 100644
> --- a/arch/arm64/include/asm/cputype.h
> +++ b/arch/arm64/include/asm/cputype.h
> @@ -151,6 +151,7 @@ struct midr_range {
> .rv_max = MIDR_CPU_VAR_REV(v_max, r_max), \
> }
>
> +#define MIDR_REV_RANGE(m, v, r_min, r_max) MIDR_RANGE(m, v, r_min, v, r_max)
What's the point of this macro?
Will
next prev parent reply other threads:[~2018-12-05 15:03 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-30 17:17 [PATCH v2 0/7] arm64: capabilities: Optimize checking and enabling Suzuki K Poulose
2018-11-30 17:17 ` Suzuki K Poulose
2018-11-30 17:18 ` [PATCH v2 1/7] arm64: capabilities: Merge entries for ARM64_WORKAROUND_CLEAN_CACHE Suzuki K Poulose
2018-11-30 17:18 ` Suzuki K Poulose
2018-12-05 15:02 ` Will Deacon [this message]
2018-12-05 15:02 ` Will Deacon
2018-12-05 17:14 ` Suzuki K Poulose
2018-12-05 17:14 ` Suzuki K Poulose
2018-12-06 9:58 ` Will Deacon
2018-12-06 9:58 ` Will Deacon
2018-11-30 17:18 ` [PATCH v2 2/7] arm64: capabilities: Merge duplicate Cavium erratum entries Suzuki K Poulose
2018-11-30 17:18 ` Suzuki K Poulose
2018-11-30 17:18 ` [PATCH v2 3/7] arm64: capabilities: Merge duplicate entries for Qualcomm erratum 1003 Suzuki K Poulose
2018-11-30 17:18 ` Suzuki K Poulose
2018-11-30 17:18 ` [PATCH v2 4/7] arm64: capabilities: Speed up capability lookup Suzuki K Poulose
2018-11-30 17:18 ` Suzuki K Poulose
2018-11-30 17:18 ` [PATCH v2 5/7] arm64: capabilities: Optimize this_cpu_has_cap Suzuki K Poulose
2018-11-30 17:18 ` Suzuki K Poulose
2018-11-30 17:18 ` [PATCH v2 6/7] arm64: capabilities: Use linear array for detection and verification Suzuki K Poulose
2018-11-30 17:18 ` Suzuki K Poulose
2018-11-30 17:18 ` [PATCH v2 7/7] arm64: capabilities: Batch cpu_enable callbacks Suzuki K Poulose
2018-11-30 17:18 ` Suzuki K Poulose
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=20181205150252.GB16171@arm.com \
--to=will.deacon@arm.com \
--cc=andre.przywara@arm.com \
--cc=catalin.marinas@arm.com \
--cc=dave.martin@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=suzuki.poulose@arm.com \
--cc=vladimir.murzin@arm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.