public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH][aarch64] Add thunderx2t99 and thunderx2t99p1 CPU names to tunables list
@ 2017-09-07 18:14 Steve Ellcey
  2017-09-08  8:22 ` Siddhesh Poyarekar
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Ellcey @ 2017-09-07 18:14 UTC (permalink / raw)
  To: libc-alpha

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

This patch adds thunderx2t99 and thunderx2t99p1 CPU names to the list
of cpu names that can be set by the glibc.tune.cpu tunable on aarch64.
These names and settings match gcc's
gcc/config/aarch64/aarch64-cores.def file.  Testing this patch requires
my earlier aarch64 tunables patch
(https://sourceware.org/ml/libc-alpha/2017-09/msg00111.html)
to fix how GLIBC_TUNABLES is processed.

Ok to checkin?

Steve Ellcey
sellcey@cavium.com


2017-09-07  Steve Ellcey  <sellcey@cavium.com>
	* manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
	thunderx2t99p1 to list of cpu names.
	* sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
	Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.


[-- Attachment #2: tunables-aarch64.patch --]
[-- Type: text/x-patch, Size: 1204 bytes --]

diff --git a/manual/tunables.texi b/manual/tunables.texi
index 3c19567..b1516d0 100644
--- a/manual/tunables.texi
+++ b/manual/tunables.texi
@@ -267,7 +267,8 @@ This tunable is specific to i386 and x86-64.
 @deftp Tunable glibc.tune.cpu
 The @code{glibc.tune.cpu=xxx} tunable allows the user to tell @theglibc{} to
 assume that the CPU is @code{xxx} where xxx may have one of these values:
-@code{generic}, @code{falkor}, @code{thunderxt88}.
+@code{generic}, @code{falkor}, @code{thunderxt88}, @code{thunderx2t99},
+@code{thunderx2t99p1}.
 
 This tunable is specific to aarch64.
 @end deftp
diff --git a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
index 18f5e60..19c78e6 100644
--- a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
+++ b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
@@ -28,9 +28,11 @@ struct cpu_list
 };
 
 static struct cpu_list cpu_list[] = {
-      {"falkor",	0x510FC000},
-      {"thunderxt88",	0x430F0A10},
-      {"generic", 	0x0}
+      {"falkor",	 0x510FC000},
+      {"thunderxt88",	 0x430F0A10},
+      {"thunderx2t99",   0x431F0AF0},
+      {"thunderx2t99p1", 0x420F5160},
+      {"generic", 	 0x0}
 };
 
 static uint64_t

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][aarch64] Add thunderx2t99 and thunderx2t99p1 CPU names to tunables list
  2017-09-07 18:14 [PATCH][aarch64] Add thunderx2t99 and thunderx2t99p1 CPU names to tunables list Steve Ellcey
@ 2017-09-08  8:22 ` Siddhesh Poyarekar
  0 siblings, 0 replies; 2+ messages in thread
From: Siddhesh Poyarekar @ 2017-09-08  8:22 UTC (permalink / raw)
  To: sellcey, libc-alpha

On Thursday 07 September 2017 11:44 PM, Steve Ellcey wrote:
> This patch adds thunderx2t99 and thunderx2t99p1 CPU names to the list
> of cpu names that can be set by the glibc.tune.cpu tunable on aarch64.
> These names and settings match gcc's
> gcc/config/aarch64/aarch64-cores.def file.  Testing this patch requires
> my earlier aarch64 tunables patch
> (https://sourceware.org/ml/libc-alpha/2017-09/msg00111.html)
> to fix how GLIBC_TUNABLES is processed.
> 
> Ok to checkin?
> 
> Steve Ellcey
> sellcey@cavium.com
> 
> 
> 2017-09-07  Steve Ellcey  <sellcey@cavium.com>
> 	* manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
> 	thunderx2t99p1 to list of cpu names.
> 	* sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
> 	Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
> 

Looks good.

Thanks,
Siddhesh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-08  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-07 18:14 [PATCH][aarch64] Add thunderx2t99 and thunderx2t99p1 CPU names to tunables list Steve Ellcey
2017-09-08  8:22 ` Siddhesh Poyarekar

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 read-only IMAP folder(s) and NNTP newsgroup(s).