mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: heinz@auto.tuwien.ac.at (Heinz Deinhart)
Cc: goemon@anime.net (Dan Hollis), linux-kernel@vger.kernel.org
Subject: Re: K7/Athlon optimizations and Sacrifices to the Great Ones.
Date: Fri, 7 Sep 2001 21:52:27 +0100 (BST)	[thread overview]
Message-ID: <E15fSbz-0002Uv-00@the-village.bc.nu> (raw)
In-Reply-To: <Pine.LNX.4.33.0109071856530.6747-100000@xenon.auto.tuwien.ac.at> from "Heinz Deinhart" at Sep 07, 2001 07:03:43 PM

> I did some trial and error modifications to mmx.c and found out
> that this one makes my athlons happy (but must admin i have
> no clue why). it seems to run stable now.
> 
> --- linux-2.4.9/arch/i386/lib/mmx.c	Tue May 22 19:23:16 2001
> +++ linux-2.4.9-ac6-hack/arch/i386/lib/mmx.c	Sat Sep  8 00:51:33 2001
> @@ -194,6 +194,9 @@
>  		: : "r" (from), "r" (to) : "memory");
>  		from+=64;
>  		to+=64;
> +	__asm__ __volatile__ (
> +		"  sfence \n" : :
> +	);
>  	}
>  	for(i=(4096-320)/64; i<4096/64; i++)
>  	{
> 

You are effectively continually stalling the processor so that the fast
streaming memory transfers dont occur. Instead you start, block, start,
block, ...

Alan

  reply	other threads:[~2001-09-07 20:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-06 19:51 Nicholas Knight
2001-09-06 20:21 ` Alan Cox
2001-09-06 20:32   ` Dan Hollis
2001-09-06 23:24     ` David Hollister
2001-09-07 17:03     ` Heinz Deinhart
2001-09-07 20:52       ` Alan Cox [this message]
2001-09-07  8:30 ` VDA
2001-09-07 16:25 ` Jussi Laako

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E15fSbz-0002Uv-00@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=goemon@anime.net \
    --cc=heinz@auto.tuwien.ac.at \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®