All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thor Thayer <tthayer@opensource.altera.com>
To: Borislav Petkov <bp@alien8.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>,
	<dinh.linux@gmail.com>, <dougthompson@xmission.com>,
	<mchehab@osg.samsung.com>, <linux@arm.linux.org.uk>,
	<linux-edac@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support
Date: Tue, 5 Jan 2016 14:37:48 -0600	[thread overview]
Message-ID: <568C299C.2000406@opensource.altera.com> (raw)
In-Reply-To: <20160105105857.GA3718@pd.tnic>



On 01/05/2016 04:58 AM, Borislav Petkov wrote:
> On Mon, Jan 04, 2016 at 05:42:40PM -0600, Thor Thayer wrote:
>> and then the defines are also used to conditionally include the L2 or OCRAM
>> ECC functions because everything is in one file.
>
> So?
>
> You don't have to do those funny games in the Makefile. Instead, you
> have your main CONFIG_EDAC_ALTERA_MC option and all the other CONFIG_*
> options depend on it. The ifdeffery in altera_edac.c then takes care of
> what needs to be enabled or not.
>
> However(!), your driver is not huge or something. So I still don't
> understand why you need that split and those additional config options
> and why not keep it all together in one file. What is the compelling use
> case for that split and additional complexity?
>
>> However, the highbank and octeon edacs are split into separate files for L2
>> which Dinh pointed may be cleaner for individual control.
>
> I should've nacked that split at the time.
>
OK, Thanks for the clarification.

The CONFIG_EDAC_ALTERA_MC is a little confusing because it refers to the 
Memory Controller (SDRAM) and uses that in the menu string(Altera SDRAM 
Memory Controller EDAC).

Would it be confusing to rename this CONFIG_EDAC_ALTERA, update the 
SDRAM code to check the ECC Enable bit instead of this config option and 
update the string in the menu?

I'll keep this as one file and implement your suggested changes and 
resubmit.

  reply	other threads:[~2016-01-05 20:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 20:38 [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support dinguyen
2015-11-19 18:34 ` Borislav Petkov
2016-01-04 17:17   ` Dinh Nguyen
2016-01-04 19:46     ` Borislav Petkov
2016-01-04 20:04       ` Dinh Nguyen
2016-01-04 20:30         ` Borislav Petkov
2016-01-04 20:46           ` Dinh Nguyen
2016-01-04 20:59             ` Borislav Petkov
2016-01-04 20:55               ` Dinh Nguyen
2016-01-04 21:07                 ` Borislav Petkov
2016-01-04 21:33                   ` Thor Thayer
2016-01-04 22:01                     ` Borislav Petkov
2016-01-04 23:42                       ` Thor Thayer
2016-01-05 10:58                         ` Borislav Petkov
2016-01-05 20:37                           ` Thor Thayer [this message]
2016-01-05 21:09                             ` Borislav Petkov

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=568C299C.2000406@opensource.altera.com \
    --to=tthayer@opensource.altera.com \
    --cc=bp@alien8.de \
    --cc=dinguyen@opensource.altera.com \
    --cc=dinh.linux@gmail.com \
    --cc=dougthompson@xmission.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mchehab@osg.samsung.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.