All of lore.kernel.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Doug Thompson <norsk5@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Subject: [PATCH 2/2] EDAC: K8 Memory scrubbing patch
Date: Wed, 3 Jan 2007 20:24:59 +0100	[thread overview]
Message-ID: <eb0f8bb9742f0c4f179dae77700fa997@kernel.crashing.org> (raw)
In-Reply-To: <411976.37299.qm@web50112.mail.yahoo.com>

>    One would also expect that cache scrubbing requires hardware
>    support.

You could just write-back invalidate the whole cache
periodically if there is no explicit hardware support
for cache scrubbing.  Less efficient, sure :-)

> Signed-off-by: doug thompson <norsk5@xmission.com>

Shouldn't you spell your name correctly (with capitalisation)
in the sign off?  It being a formal thing and all.

Some spelling and coding style nits:

> +/* Valid scrub rates for the K8 hardware memory scrubber. We map
> +   maps the scrubbing bandwith to a valid bit pattern. The 'set'

"map maps"

> +   Currently, we only do scrubbing of sdram - the caches are assumed
> +   to be excercised always by running code and if the scrubber is done

"excercised"

> +	   search for the bandwith that is eq or gt than the

"bandwith"

And please just write "greater or equal".

> +	for (i=0; scrubrates[i].bandwidth != SDRATE_EOD; i++) {

i = 0;

> +	/* find the bandwith matching the memory scrubber configuration

"bandwith" again

> +	for (i=0; scrubrates[i].bandwidth != SDRATE_EOD; i++) {

i = 0;

> +	/* the bit pattern is invalid - we might fix it
> +	   by applying the slowest scrub rate as this is
> +	   closest to the valid value, but we do not!

Why not?

> +	if (scrubrates[i].bandwidth == SDRATE_EOD) {
> +		edac_printk(KERN_WARNING, EDAC_MC,
> +				"Invalid sdram scrub control value: %d \n",

Space before the newline.

>  /* FIXME - stolen from msr.c - the calls in msr.c could be exported */

So fix it :-)


Segher


      reply	other threads:[~2007-01-03 19:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-03  0:14 Subject: [PATCH 2/2] EDAC: K8 Memory scrubbing patch Doug Thompson
2007-01-03 19:24 ` Segher Boessenkool [this message]

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=eb0f8bb9742f0c4f179dae77700fa997@kernel.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=norsk5@yahoo.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.