mbox series

[v2,0/4] Updates for ARM tunings

Message ID 1706820353-6967-1-git-send-email-mark.hatle@kernel.crashing.org
Headers show
Series Updates for ARM tunings | expand

Message

Mark Hatle Feb. 1, 2024, 8:45 p.m. UTC
From: Mark Hatle <mark.hatle@amd.com>

cortexa78 missing seems to be an oversight.  It (according to wikipedia) is a
successor to the cortexa77 which already exists.  This was created by
copying the cortexa77 and changing it to be a78.  A test system was build to
verify no obvious issues with the toolchain.

The remaining three changes are related.  I've got a need for a cortex-r5 and
cortex-r52 that enables the hard-float calling convention (this might also
be useful to others with other cortex-r and maybe even cortex-m processors,
but I'm not in a position to know this outside of my specific need.)

tune-cortexr5 simply adds an hf variant that adds the callconvention-hard.
Since there is no armv7r-vfp3d16 w/ this, the package_arch list is more
limited then the regular r5.

tune-cortexr52 requires the change to feature-arm-vfp to allow the setting
when 'simd' is enabled (since we don't specify vfp or neon).  Otherwise
this follows the same convention as the r5 change.

v2:
Rebase cortex-a78 tune based on current master-next branch.  THis addresses
Khem's comment.

Mark Hatle (4):
  tune-cortexa78.inc: Add cortexa78 tune, based on cortexa77
  feature-arm-vfp.inc: Allow hard-float on newer simd targets
  tune-cortexr5: Add hard-float variant
  tune-cortexr52: Add hard-float variant

 .../include/arm/armv7r/tune-cortexr5.inc        |  5 +++++
 .../include/arm/armv8-2a/tune-cortexa78.inc     | 17 +++++++++++++++++
 .../include/arm/armv8r/tune-cortexr52.inc       |  5 +++++
 .../machine/include/arm/feature-arm-vfp.inc     |  3 ++-
 4 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 meta/conf/machine/include/arm/armv8-2a/tune-cortexa78.inc

Comments

Khem Raj Feb. 1, 2024, 8:51 p.m. UTC | #1
this series looks ok to me on top of master-next.

On Thu, Feb 1, 2024 at 12:47 PM Mark Hatle
<mark.hatle@kernel.crashing.org> wrote:
>
> From: Mark Hatle <mark.hatle@amd.com>
>
> cortexa78 missing seems to be an oversight.  It (according to wikipedia) is a
> successor to the cortexa77 which already exists.  This was created by
> copying the cortexa77 and changing it to be a78.  A test system was build to
> verify no obvious issues with the toolchain.
>
> The remaining three changes are related.  I've got a need for a cortex-r5 and
> cortex-r52 that enables the hard-float calling convention (this might also
> be useful to others with other cortex-r and maybe even cortex-m processors,
> but I'm not in a position to know this outside of my specific need.)
>
> tune-cortexr5 simply adds an hf variant that adds the callconvention-hard.
> Since there is no armv7r-vfp3d16 w/ this, the package_arch list is more
> limited then the regular r5.
>
> tune-cortexr52 requires the change to feature-arm-vfp to allow the setting
> when 'simd' is enabled (since we don't specify vfp or neon).  Otherwise
> this follows the same convention as the r5 change.
>
> v2:
> Rebase cortex-a78 tune based on current master-next branch.  THis addresses
> Khem's comment.
>
> Mark Hatle (4):
>   tune-cortexa78.inc: Add cortexa78 tune, based on cortexa77
>   feature-arm-vfp.inc: Allow hard-float on newer simd targets
>   tune-cortexr5: Add hard-float variant
>   tune-cortexr52: Add hard-float variant
>
>  .../include/arm/armv7r/tune-cortexr5.inc        |  5 +++++
>  .../include/arm/armv8-2a/tune-cortexa78.inc     | 17 +++++++++++++++++
>  .../include/arm/armv8r/tune-cortexr52.inc       |  5 +++++
>  .../machine/include/arm/feature-arm-vfp.inc     |  3 ++-
>  4 files changed, 29 insertions(+), 1 deletion(-)
>  create mode 100644 meta/conf/machine/include/arm/armv8-2a/tune-cortexa78.inc
>
> --
> 2.34.1
>