public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [crosstool-ng] [patch] glibc 2.9 powerpc 860 and glibc  sysdeps/powerpc/power3/memset.S: CPU15 "dcbX" errata
@ 2009-03-28  1:32 Nye Liu
  2009-03-28 22:37 ` Yann E. MORIN
  2009-05-07  1:24 ` [crosstool-ng] [patch] powerpc 8xx eglibc-2.9 sysdeps/powerpc/memset.S: CPU15 "dcbX" errata Nye Liu
  0 siblings, 2 replies; 5+ messages in thread
From: Nye Liu @ 2009-03-28  1:32 UTC (permalink / raw)
  To: crossgcc, yann.morin.1998; +Cc: nyet

looks like same patch from
http://sourceware.org/ml/crossgcc/2008-10/msg00067.html
(glibc/2.7/290-powerpc-8xx-CPU15-errata.patch)

applies to 2.9

Index: patches/glibc/2_9/540-2.7-powerpc-8xx-CPU15-errata.patch
===================================================================
--- patches/glibc/2_9/540-2.7-powerpc-8xx-CPU15-errata.patch	(revision 0)
+++ patches/glibc/2_9/540-2.7-powerpc-8xx-CPU15-errata.patch	(revision 0)
@@ -0,0 +1,50 @@
+From glibc-2.7 290-powerpc-8xx-CPU15-errata.patch
+
+--- glibc-2.9_orig/sysdeps/powerpc/powerpc32/memset.S	2007-03-26 13:09:07.000000000 -0700
++++ glibc-2.9/sysdeps/powerpc/powerpc32/memset.S	2009-03-27 17:12:09.000000000 -0700
+@@ -112,11 +112,13 @@
+ 	clrrwi.	rALIGN, rLEN, 5
+ 	mtcrf	0x01, rLEN	/* 40th instruction from .align */
+ 
++#ifndef BROKEN_PPC_8xx_CPU15
+ /* Check if we can use the special case for clearing memory using dcbz.
+    This requires that we know the correct cache line size for this
+    processor.  Getting the __cache_line_size may require establishing GOT
+    addressability, so branch out of line to set this up.  */
+ 	beq	cr1, L(checklinesize)
++#endif
+ 
+ /* Store blocks of 32-bytes (256-bits) starting on a 32-byte boundary.
+    Can't assume that rCHR is zero or that the cache line size is either
+@@ -158,6 +160,7 @@
+ 	add	rMEMP, rMEMP, rALIGN
+ 	b	L(medium_tail2)	/* 72nd instruction from .align */
+ 
++#ifndef BROKEN_PPC_8xx_CPU15
+ 	.align	5
+ 	nop
+ /* Clear cache lines of memory in 128-byte chunks.
+@@ -191,6 +194,7 @@
+ 	bdnz	L(zloop)
+ 	beqlr	cr5
+ 	b	L(medium_tail2)
++#endif /* ! BROKEN_PPC_8xx_CPU15 */
+ 
+ 	.align	5
+ L(small):
+@@ -248,6 +252,7 @@
+ 	stw	rCHR, -8(rMEMP)
+ 	blr
+ 
++#ifndef BROKEN_PPC_8xx_CPU15
+ L(checklinesize):
+ #ifdef SHARED
+ 	mflr	rTMP
+@@ -329,6 +334,7 @@
+ L(handletail32):
+ 	clrrwi.	rALIGN, rLEN, 5
+ 	b	L(nondcbz)
++#endif /* ! BROKEN_PPC_8xx_CPU15 */
+ 
+ END (BP_SYM (memset))
+ libc_hidden_builtin_def (memset)

-- 
Nye Liu
nliu@mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: [crosstool-ng] [patch] glibc 2.9 powerpc 860 and glibc sysdeps/powerpc/power3/memset.S: CPU15 "dcbX" errata
  2009-03-28  1:32 [crosstool-ng] [patch] glibc 2.9 powerpc 860 and glibc sysdeps/powerpc/power3/memset.S: CPU15 "dcbX" errata Nye Liu
@ 2009-03-28 22:37 ` Yann E. MORIN
  2009-03-29  1:45   ` patches/glibc/2.9 vs patches/glibc/2_9 Nye Liu
  2009-05-07  1:24 ` [crosstool-ng] [patch] powerpc 8xx eglibc-2.9 sysdeps/powerpc/memset.S: CPU15 "dcbX" errata Nye Liu
  1 sibling, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2009-03-28 22:37 UTC (permalink / raw)
  To: Nye Liu; +Cc: crossgcc, nyet

Hello Nye!
Hello All!

On Saturday 28 March 2009 02:32:23 Nye Liu wrote:
> looks like same patch from
> http://sourceware.org/ml/crossgcc/2008-10/msg00067.html
> (glibc/2.7/290-powerpc-8xx-CPU15-errata.patch)
> applies to 2.9

Committed as r1449. Thank you!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'


--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* patches/glibc/2.9 vs patches/glibc/2_9
  2009-03-28 22:37 ` Yann E. MORIN
@ 2009-03-29  1:45   ` Nye Liu
  2009-03-29  9:26     ` Yann E. MORIN
  0 siblings, 1 reply; 5+ messages in thread
From: Nye Liu @ 2009-03-29  1:45 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc, nyet

Yann, why is it that patches go in 2_9 and not 2.9? in my local tree i 
had to move the patches i wanted into 2.9 for them to be applied.



--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: patches/glibc/2.9 vs patches/glibc/2_9
  2009-03-29  1:45   ` patches/glibc/2.9 vs patches/glibc/2_9 Nye Liu
@ 2009-03-29  9:26     ` Yann E. MORIN
  0 siblings, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2009-03-29  9:26 UTC (permalink / raw)
  To: crossgcc; +Cc: Nye Liu, nyet

Nye,
All,

On Sunday 29 March 2009 03:45:06 Nye Liu wrote:
> Yann, why is it that patches go in 2_9 and not 2.9? in my local tree i 
> had to move the patches i wanted into 2.9 for them to be applied.

Initially, for glibc-2.8 onward, there was no tarball available, and so
we had to retrieve the sources from CVS. And the CVS branch uses an '_'
instead of a '.'

So we had 2_9 instead of 2.9 as a version string. Hence the name of the
patch directory.

But recently (feb `09), tarballs for 2.8 and 2.9 have appeared, and
crosstool-NG now treats all version strings with a dot, and internally
replaces it with '_' when retrieving from CVS.

The patch directories were renamed only a few days ago, though. So if you
update your tree, you'll get all set up correctly, now.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'


--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* [crosstool-ng] [patch] powerpc 8xx eglibc-2.9  sysdeps/powerpc/memset.S: CPU15 "dcbX" errata
  2009-03-28  1:32 [crosstool-ng] [patch] glibc 2.9 powerpc 860 and glibc sysdeps/powerpc/power3/memset.S: CPU15 "dcbX" errata Nye Liu
  2009-03-28 22:37 ` Yann E. MORIN
@ 2009-05-07  1:24 ` Nye Liu
  1 sibling, 0 replies; 5+ messages in thread
From: Nye Liu @ 2009-05-07  1:24 UTC (permalink / raw)
  To: crossgcc, yann.morin.1998; +Cc: nyet

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

On Fri, Mar 27, 2009 at 06:32:23PM -0700, Nye Liu wrote:
> looks like same patch from
> http://sourceware.org/ml/crossgcc/2008-10/msg00067.html
> (glibc/2.7/290-powerpc-8xx-CPU15-errata.patch)
> 
> applies to 2.9

and eglibc as well...

-- 
Nye Liu
nliu@mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

[-- Attachment #2: eglibc-8xx-cpu15.patch --]
[-- Type: text/x-diff, Size: 3059 bytes --]

Index: scripts/build/libc/eglibc.sh
===================================================================
--- scripts/build/libc/eglibc.sh	(.../vendor/crosstool-ng/current)	(revision 12574)
+++ scripts/build/libc/eglibc.sh	(.../trunk/tools/crosstool-ng)	(revision 12574)
@@ -266,8 +266,16 @@
     
     CT_DoLog EXTRA "Building C library"
 
-    CT_DoExecLog ALL make
+    # eglibc build hacks
+    # http://sourceware.org/ml/crossgcc/2008-10/msg00068.html
+    case "${CT_ARCH},${CT_ARCH_CPU}" in
+        powerpc,8??)
+            CT_DoLog DEBUG "Activating support for memset on broken ppc-8xx (CPU15 erratum)"
+            EGLIBC_BUILD_ASFLAGS="-DBROKEN_PPC_8xx_CPU15";;
+    esac
 
+    CT_DoExecLog ALL make ASFLAGS="${EGLIBC_BUILD_ASFLAGS}"
+
     CT_DoLog EXTRA "Installing C library"
 
     CT_DoExecLog ALL make install install_root="${CT_SYSROOT_DIR}"

Property changes on: scripts/config.guess
___________________________________________________________________
Added: svn:executable
   + *


Property changes on: scripts/config.sub
___________________________________________________________________
Added: svn:executable
   + *

Index: patches/eglibc/2_9/100-powerpc-8xx-CPU15-errata.patch
===================================================================
--- patches/eglibc/2_9/100-powerpc-8xx-CPU15-errata.patch	(.../vendor/crosstool-ng/current)	(revision 0)
+++ patches/eglibc/2_9/100-powerpc-8xx-CPU15-errata.patch	(.../trunk/tools/crosstool-ng)	(revision 12574)
@@ -0,0 +1,49 @@
+diff -ru eglibc-2_9_orig/sysdeps/powerpc/powerpc32/memset.S eglibc-2_9/sysdeps/powerpc/powerpc32/memset.S
+--- eglibc-2_9_orig/sysdeps/powerpc/powerpc32/memset.S	2007-04-13 08:35:45.000000000 -0700
++++ eglibc-2_9/sysdeps/powerpc/powerpc32/memset.S	2009-05-06 16:52:04.000000000 -0700
+@@ -112,11 +112,13 @@
+ 	clrrwi.	rALIGN, rLEN, 5
+ 	mtcrf	0x01, rLEN	/* 40th instruction from .align */
+ 
++#ifndef BROKEN_PPC_8xx_CPU15
+ /* Check if we can use the special case for clearing memory using dcbz.
+    This requires that we know the correct cache line size for this
+    processor.  Getting the __cache_line_size may require establishing GOT
+    addressability, so branch out of line to set this up.  */
+ 	beq	cr1, L(checklinesize)
++#endif
+ 
+ /* Store blocks of 32-bytes (256-bits) starting on a 32-byte boundary.
+    Can't assume that rCHR is zero or that the cache line size is either
+@@ -158,6 +160,7 @@
+ 	add	rMEMP, rMEMP, rALIGN
+ 	b	L(medium_tail2)	/* 72nd instruction from .align */
+ 
++#ifndef BROKEN_PPC_8xx_CPU15
+ 	.align	5
+ 	nop
+ /* Clear cache lines of memory in 128-byte chunks.
+@@ -191,6 +194,7 @@
+ 	bdnz	L(zloop)
+ 	beqlr	cr5
+ 	b	L(medium_tail2)
++#endif /* ! BROKEN_PPC_8xx_CPU15 */
+ 
+ 	.align	5
+ L(small):
+@@ -248,6 +252,7 @@
+ 	stw	rCHR, -8(rMEMP)
+ 	blr
+ 
++#ifndef BROKEN_PPC_8xx_CPU15
+ L(checklinesize):
+ #ifdef SHARED
+ 	mflr	rTMP
+@@ -329,6 +334,7 @@
+ L(handletail32):
+ 	clrrwi.	rALIGN, rLEN, 5
+ 	b	L(nondcbz)
++#endif /* ! BROKEN_PPC_8xx_CPU15 */
+ 
+ END (BP_SYM (memset))
+ libc_hidden_builtin_def (memset)


[-- Attachment #3: Type: text/plain, Size: 71 bytes --]

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2009-05-07  1:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-28  1:32 [crosstool-ng] [patch] glibc 2.9 powerpc 860 and glibc sysdeps/powerpc/power3/memset.S: CPU15 "dcbX" errata Nye Liu
2009-03-28 22:37 ` Yann E. MORIN
2009-03-29  1:45   ` patches/glibc/2.9 vs patches/glibc/2_9 Nye Liu
2009-03-29  9:26     ` Yann E. MORIN
2009-05-07  1:24 ` [crosstool-ng] [patch] powerpc 8xx eglibc-2.9 sysdeps/powerpc/memset.S: CPU15 "dcbX" errata Nye Liu

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