The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Peter Tyser <ptyser@xes-inc.com>
To: Doug Thompson <norsk5@yahoo.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	dougthompson@xmission.com, alan@lxorguk.ukuu.org.uk,
	linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
	Thomas Gleixner <tglx@linutronix.de>, Andi Kleen <ak@suse.de>
Subject: Re: [PATCH 3/3] EDAC Add e752x parameter for sysbus_parity selection
Date: Fri, 21 Mar 2008 17:56:47 -0500	[thread overview]
Message-ID: <1206140207.4490.19.camel@localhost.localdomain> (raw)
In-Reply-To: <920687.59522.qm@web50104.mail.re2.yahoo.com>

> > > +
> > > +	/* Allow module paramter override, else see if CPU supports parity */
> > > +	if (sysbus_parity != -1) {
> > > +		enable = sysbus_parity;
> > > +	} else if (cpu_id[0] &&
> > > +		   ((strstr(cpu_id, "Pentium") && strstr(cpu_id, " M ")) ||
> > > +		    (strstr(cpu_id, "Celeron") && strstr(cpu_id, " M ")) ||
> > > +		    (strstr(cpu_id, "Core") && strstr(cpu_id, "Duo")))) {
> > > +		e752x_printk(KERN_INFO, "System Bus Parity not "
> > > +			     "supported by CPU, disabling\n");
> > > +		enable = 0;
> > > +	}
> > 
> > Is that the best way of working out whether the CPU supports system bus
> > parity?  We do have cpu capability infrastructure in x86 core and I'd have
> > thought it would be better for x86 core to work this out, set the suitable
> > flag and have clients (ie: EDAC) test that flag?
> > 

The above implementation was the only way I could think of to
dynamically determine if hardware supported system bus parity at
runtime.  I agree that adding a new x86 cpu capability flag for system
bus parity support would be an ideal way to support this feature for use
by subsystems such as EDAC.  However, there are a whole lot of possible
x86 CPU/Northbridge combinations and I could think of no clean way to
easily determine which of those combinations do or don't support system
bus parity.  The logic needed to compare the incredibly large number of
CPU and Northbridge combinations seems rather daunting...

The current patch was manageable in that only a few CPU/Northbridge
combinations needed to be accounted for and a module parameter would
allow for a manual override if necessary.

If others have suggestions as far as a more generic or generally cleaner
approach, I'd be happy to implement and test.


      reply	other threads:[~2008-03-21 23:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-19 20:55 [PATCH 3/3] EDAC Add e752x parameter for sysbus_parity selection dougthompson
2008-03-21 21:35 ` Andrew Morton
2008-03-21 21:48   ` Doug Thompson
2008-03-21 22:56     ` Peter Tyser [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=1206140207.4490.19.camel@localhost.localdomain \
    --to=ptyser@xes-inc.com \
    --cc=ak@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=dougthompson@xmission.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=norsk5@yahoo.com \
    --cc=tglx@linutronix.de \
    /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