public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ports/14595] New: memset is broken on powerpc 405
@ 2012-09-19 20:03 jgunthorpe at gmail dot com
  2012-09-19 20:20 ` [Bug ports/14595] " carlos_odonell at mentor dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jgunthorpe at gmail dot com @ 2012-09-19 20:03 UTC (permalink / raw)
  To: glibc-bugs


http://sourceware.org/bugzilla/show_bug.cgi?id=14595

             Bug #: 14595
           Summary: memset is broken on powerpc 405
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: critical
          Priority: P2
         Component: ports
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jgunthorpe@gmail.com
                CC: carlos@systemhalted.org, roland@gnu.org
    Classification: Unclassified


Created attachment 6638
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6638
fixed memset

The use_dcbz path in the hand coded assembly is assuming a 128 byte clear size
for dcbz, but dcbz uses the cache line size and 405 cores only have a 32 byte
cache line. So any clears to 0 that use the dcbz path fail to work.

Some high end PPC's have a 128 byte cache line, but all 405's are 32 byte,
see arch/powerpc/kernel/cputable.c, dcache_bsize assignments. This value
flows from the kernel to glibc's __cache_line_size value which drives
the dcbz step in the generic memset.

Attached is a patch.

Seen while testing on a 405GP.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-13 15:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-19 20:03 [Bug ports/14595] New: memset is broken on powerpc 405 jgunthorpe at gmail dot com
2012-09-19 20:20 ` [Bug ports/14595] " carlos_odonell at mentor dot com
2012-09-25 16:23 ` rsa at us dot ibm.com
2012-09-25 16:25 ` rsa at us dot ibm.com
2012-11-29 15:47 ` [Bug ports/14595] power: " carlos_odonell at mentor dot com
2012-11-29 15:51 ` rsa at us dot ibm.com
2014-06-13 13:57 ` fweimer at redhat dot com
2014-06-13 14:00 ` fweimer at redhat dot com
2014-06-13 15:36 ` jgunthorpe at gmail dot com
2014-06-13 15:44 ` fweimer at redhat dot com
2014-06-13 15:44 ` fweimer at redhat dot com

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