public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH]: Recognize HWCAP_SPARC_BLKINIT
@ 2006-02-24 23:37 David S. Miller
  2006-02-25  1:49 ` Roland McGrath
  2006-02-25  1:59 ` Roland McGrath
  0 siblings, 2 replies; 5+ messages in thread
From: David S. Miller @ 2006-02-24 23:37 UTC (permalink / raw)
  To: libc-hacker


SUN4V Niagara processors have a load-twin/block-init-store capability
which is indicated by bit 6 in the HWCAP_* mask from the kernel.

Add recognition of that value to glibc, and ask it to use "v9v"
in the library search path.

2006-02-24  David S. Miller  <davem@sunset.davemloft.net>

	* elf/elf.h: Add HWCAP_SPARC_BLKINIT.
	* sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: Add "v9v"
	entry to _dl_sparc32_cap_flags.
	* sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Add
	HWCAP_SPARC_BLKINIT to HWCAP_IMPORTANT.
	* sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: Add "v9v"
	entry to _dl_sparc32_cap_flags.
	* sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Add
	HWCAP_SPARC_BLKINIT to HWCAP_IMPORTANT.

--- ./elf/elf.h.~1~	2006-02-23 16:01:13.000000000 -0800
+++ ./elf/elf.h	2006-02-23 16:01:18.000000000 -0800
@@ -1258,6 +1258,7 @@ typedef struct
 #define HWCAP_SPARC_MULDIV	8
 #define HWCAP_SPARC_V9		16	/* The cpu is v9, so v8plus is ok.  */
 #define HWCAP_SPARC_ULTRA3	32
+#define HWCAP_SPARC_BLKINIT	64	/* Sun4v with block-init/load-twin. */
 
 /* MIPS R3000 specific definitions.  */
 
--- ./sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c.~1~	2006-02-23 16:01:14.000000000 -0800
+++ ./sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c	2006-02-23 16:01:18.000000000 -0800
@@ -47,11 +47,11 @@
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_sparc32_cap_flags
 #else
-PROCINFO_CLASS const char _dl_sparc32_cap_flags[6][7]
+PROCINFO_CLASS const char _dl_sparc32_cap_flags[7][7]
 #endif
 #ifndef PROCINFO_DECL
 = {
-    "flush", "stbar", "swap", "muldiv", "v9", "ultra3"
+    "flush", "stbar", "swap", "muldiv", "v9", "ultra3", "v9v"
   }
 #endif
 #if !defined SHARED || defined PROCINFO_DECL
--- ./sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h.~1~	2006-02-23 16:01:14.000000000 -0800
+++ ./sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h	2006-02-23 16:01:18.000000000 -0800
@@ -62,7 +62,7 @@ _dl_string_hwcap (const char *str)
   return -1;
 };
 
-#define HWCAP_IMPORTANT (HWCAP_SPARC_V9|HWCAP_SPARC_ULTRA3)
+#define HWCAP_IMPORTANT (HWCAP_SPARC_V9|HWCAP_SPARC_ULTRA3|HWCAP_SPARC_BLKINIT)
 
 /* There are no different platforms defined.  */
 #define _dl_platform_string(idx) ""
--- ./sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c.~1~	2006-02-23 16:01:14.000000000 -0800
+++ ./sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c	2006-02-23 16:01:18.000000000 -0800
@@ -47,11 +47,11 @@
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_sparc64_cap_flags
 #else
-PROCINFO_CLASS const char _dl_sparc64_cap_flags[6][7]
+PROCINFO_CLASS const char _dl_sparc64_cap_flags[7][7]
 #endif
 #ifndef PROCINFO_DECL
 = {
-    "flush", "stbar", "swap", "muldiv", "v9", "ultra3"
+    "flush", "stbar", "swap", "muldiv", "v9", "ultra3", "v9v"
   }
 #endif
 #if !defined SHARED || defined PROCINFO_DECL
--- ./sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h.~1~	2006-02-23 16:01:14.000000000 -0800
+++ ./sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h	2006-02-23 16:01:18.000000000 -0800
@@ -63,7 +63,7 @@ _dl_string_hwcap (const char *str)
   return -1;
 };
 
-#define HWCAP_IMPORTANT (HWCAP_SPARC_ULTRA3)
+#define HWCAP_IMPORTANT (HWCAP_SPARC_ULTRA3|HWCAP_SPARC_BLKINIT)
 
 /* There are no different platforms defined.  */
 #define _dl_platform_string(idx) ""

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

* Re: [PATCH]: Recognize HWCAP_SPARC_BLKINIT
  2006-02-24 23:37 [PATCH]: Recognize HWCAP_SPARC_BLKINIT David S. Miller
@ 2006-02-25  1:49 ` Roland McGrath
  2006-02-25  1:51   ` David S. Miller
  2006-02-25  1:59 ` Roland McGrath
  1 sibling, 1 reply; 5+ messages in thread
From: Roland McGrath @ 2006-02-25  1:49 UTC (permalink / raw)
  To: David S. Miller; +Cc: libc-hacker

> SUN4V Niagara processors have a load-twin/block-init-store capability
> which is indicated by bit 6 in the HWCAP_* mask from the kernel.

I don't see HWCAP_SPARC_BLKINIT in current Linus kernel sources.
Have the name and value been firmly agreed to?


Thanks,
Roland

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

* Re: [PATCH]: Recognize HWCAP_SPARC_BLKINIT
  2006-02-25  1:49 ` Roland McGrath
@ 2006-02-25  1:51   ` David S. Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David S. Miller @ 2006-02-25  1:51 UTC (permalink / raw)
  To: roland; +Cc: libc-hacker

From: Roland McGrath <roland@redhat.com>
Date: Fri, 24 Feb 2006 17:49:01 -0800 (PST)

> > SUN4V Niagara processors have a load-twin/block-init-store capability
> > which is indicated by bit 6 in the HWCAP_* mask from the kernel.
> 
> I don't see HWCAP_SPARC_BLKINIT in current Linus kernel sources.
> Have the name and value been firmly agreed to?

Yes, I maintain the sparc64 port and the values will be added by this
tree:

	master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6.17.git

once Linus opens up the 2.6.17 development phase.

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

* Re: [PATCH]: Recognize HWCAP_SPARC_BLKINIT
  2006-02-25  1:59 ` Roland McGrath
@ 2006-02-25  1:59   ` David S. Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David S. Miller @ 2006-02-25  1:59 UTC (permalink / raw)
  To: roland; +Cc: libc-hacker

From: Roland McGrath <roland@redhat.com>
Date: Fri, 24 Feb 2006 17:59:05 -0800 (PST)

> I consolidated the sparc dl-procinfo stuff to avoid the duplication,
> and the merged in your addition.

Thanks Roland.

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

* Re: [PATCH]: Recognize HWCAP_SPARC_BLKINIT
  2006-02-24 23:37 [PATCH]: Recognize HWCAP_SPARC_BLKINIT David S. Miller
  2006-02-25  1:49 ` Roland McGrath
@ 2006-02-25  1:59 ` Roland McGrath
  2006-02-25  1:59   ` David S. Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Roland McGrath @ 2006-02-25  1:59 UTC (permalink / raw)
  To: David S. Miller; +Cc: libc-hacker

I consolidated the sparc dl-procinfo stuff to avoid the duplication,
and the merged in your addition.


Thanks,
Roland

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

end of thread, other threads:[~2006-02-25  1:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-24 23:37 [PATCH]: Recognize HWCAP_SPARC_BLKINIT David S. Miller
2006-02-25  1:49 ` Roland McGrath
2006-02-25  1:51   ` David S. Miller
2006-02-25  1:59 ` Roland McGrath
2006-02-25  1:59   ` David S. Miller

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).