linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Help with string.S
@ 2000-07-08 22:57 Dan Malek
  2000-07-08 23:57 ` Dan Malek
  2000-07-10  6:14 ` Daniel Marmier
  0 siblings, 2 replies; 13+ messages in thread
From: Dan Malek @ 2000-07-08 22:57 UTC (permalink / raw)
  To: linuxppc-dev


I found the source of the 4xx and 8xx troubles in the 2.4.xx kernel.
The functions in arch/ppc/lib/string.S are broken for anything other
than 32-byte cache lines.  I am making the changes, but it would be
nice to have someone else look at this as well.  There are lots of
assumptions outside of the apparent parameters that the cache is
32-bytes.


Thanks.


	-- Dan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Help with string.S
@ 2000-08-16  7:26 Graham Stoney
  2000-08-16 16:22 ` tom_gall
  2000-08-17 19:28 ` Dan Malek
  0 siblings, 2 replies; 13+ messages in thread
From: Graham Stoney @ 2000-08-16  7:26 UTC (permalink / raw)
  To: dan; +Cc: linuxppc-dev


Casting our minds back to July, Dan Malek wrote:
> OK, I think I am bailing out here.  For some reason, if I remove
> the 'dcbz' instructions on the MPC8xx processor the world is just
> a better place.  I don't know why, maybe because of some of the
> TLB mapping, but I can't find a reason.

What was the eventual outcome of this?  I've been doing some 2.2.13
kernel profiling on the 860, and __copy_tofrom_user is coming up as a
hotspot.
I tried dropping in the new improved version from
linux-2.4.0-test7-pre4, and none of the 8xx mods are in there: it'l only
work for 32 byte cache lines.

I hacked it around and found the same as you: it won't work with the
dcbz in there, and of course it doesn't run any faster than the old
version without it.  It's certainly getting more complex in there, and I
see your point about whether the extra code will actually make it run
any faster, especially on 8xx CPUs with small I-caches. I'd be keen to
test whatever you've come up with to see if it's actually better than
the old 2.2 code on 8xx CPUs.

It sounds like a few people have at least had a shot at adding support
for other than 32 byte cache lines, but none have propagated into the
official kernels; how does that happen anyway?

Thanks,
Graham

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-08-17 19:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-08 22:57 Help with string.S Dan Malek
2000-07-08 23:57 ` Dan Malek
2000-07-10  6:14 ` Daniel Marmier
2000-07-10 15:17   ` David Edelsohn
2000-07-10 22:42   ` Dan Malek
2000-07-11  5:50     ` Daniel Marmier
2000-07-13 18:52       ` Dan Malek
2000-07-11 10:06     ` Adrian Cox
2000-07-11 15:53       ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2000-08-16  7:26 Graham Stoney
2000-08-16 16:22 ` tom_gall
2000-08-17  0:50   ` Graham Stoney
2000-08-17 19:28 ` Dan Malek

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 NNTP newsgroup(s).