All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinguyen@kernel.org>
To: thor.thayer@linux.intel.com, bp@alien8.de, mchehab@kernel.org,
	robh+dt@kernel.org, mark.rutland@arm.com,
	catalin.marinas@arm.com, will.deacon@arm.com
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-edac@vger.kernel.org
Subject: [2/3] edac: altera: Add support for Stratix10 SDRAM EDAC
Date: Wed, 25 Apr 2018 21:14:27 -0500	[thread overview]
Message-ID: <2d310ff0-fa0e-e432-ae11-ba34080b4f6e@kernel.org> (raw)

On 04/24/2018 01:35 PM, thor.thayer@linux.intel.com wrote:
> From: Thor Thayer <thor.thayer@linux.intel.com>
> 
> Add support for SDRAM ECC on the Stratix10 platform to
> the EDAC device driver. Although Stratix10 is very similar
> to the Arria10, hypervisor support for Stratix10 SDRAM ECC
> requires the use of SMC calls to a higher priority
> exception level to handle some register reads/writes.
> 
> Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
> ---
>  drivers/edac/Kconfig       |   2 +-
>  drivers/edac/altera_edac.c | 459 +++++++++++++++++++++++++++++++++++++++++++++
>  drivers/edac/altera_edac.h | 114 +++++++++++

Does it make sense to have the support for this in separate files?

>  3 files changed, 574 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig
> index 3c4017007647..3c66b02b2473 100644
> --- a/drivers/edac/Kconfig
> +++ b/drivers/edac/Kconfig
> @@ -379,7 +379,7 @@ config EDAC_THUNDERX
>  
>  config EDAC_ALTERA
>  	bool "Altera SOCFPGA ECC"
> -	depends on EDAC=y && ARCH_SOCFPGA
> +	depends on EDAC=y && (ARCH_SOCFPGA || ARM64)

Should the ARM64 dependency just be ARCH_STRATIX10?

>  	help
>  	  Support for error detection and correction on the
>  	  Altera SOCs. This must be selected for SDRAM ECC.
> diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
> index 11d6419788c2..7ed885379719 100644
> --- a/drivers/edac/altera_edac.c
> +++ b/drivers/edac/altera_edac.c
> @@ -1,4 +1,5 @@
>  /*
> + *  Copyright (C) 2017-2018, Intel Corporation

If you're updating the license header, would it make sense to convert to
SPDX?

Dinh
---
To unsubscribe from this list: send the line "unsubscribe linux-edac" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: dinguyen@kernel.org (Dinh Nguyen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/3] edac: altera: Add support for Stratix10 SDRAM EDAC
Date: Wed, 25 Apr 2018 21:14:27 -0500	[thread overview]
Message-ID: <2d310ff0-fa0e-e432-ae11-ba34080b4f6e@kernel.org> (raw)
In-Reply-To: <1524594959-5259-3-git-send-email-thor.thayer@linux.intel.com>



On 04/24/2018 01:35 PM, thor.thayer at linux.intel.com wrote:
> From: Thor Thayer <thor.thayer@linux.intel.com>
> 
> Add support for SDRAM ECC on the Stratix10 platform to
> the EDAC device driver. Although Stratix10 is very similar
> to the Arria10, hypervisor support for Stratix10 SDRAM ECC
> requires the use of SMC calls to a higher priority
> exception level to handle some register reads/writes.
> 
> Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
> ---
>  drivers/edac/Kconfig       |   2 +-
>  drivers/edac/altera_edac.c | 459 +++++++++++++++++++++++++++++++++++++++++++++
>  drivers/edac/altera_edac.h | 114 +++++++++++

Does it make sense to have the support for this in separate files?

>  3 files changed, 574 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig
> index 3c4017007647..3c66b02b2473 100644
> --- a/drivers/edac/Kconfig
> +++ b/drivers/edac/Kconfig
> @@ -379,7 +379,7 @@ config EDAC_THUNDERX
>  
>  config EDAC_ALTERA
>  	bool "Altera SOCFPGA ECC"
> -	depends on EDAC=y && ARCH_SOCFPGA
> +	depends on EDAC=y && (ARCH_SOCFPGA || ARM64)

Should the ARM64 dependency just be ARCH_STRATIX10?

>  	help
>  	  Support for error detection and correction on the
>  	  Altera SOCs. This must be selected for SDRAM ECC.
> diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
> index 11d6419788c2..7ed885379719 100644
> --- a/drivers/edac/altera_edac.c
> +++ b/drivers/edac/altera_edac.c
> @@ -1,4 +1,5 @@
>  /*
> + *  Copyright (C) 2017-2018, Intel Corporation

If you're updating the license header, would it make sense to convert to
SPDX?

Dinh

WARNING: multiple messages have this Message-ID (diff)
From: Dinh Nguyen <dinguyen@kernel.org>
To: thor.thayer@linux.intel.com, bp@alien8.de, mchehab@kernel.org,
	robh+dt@kernel.org, mark.rutland@arm.com,
	catalin.marinas@arm.com, will.deacon@arm.com
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-edac@vger.kernel.org
Subject: Re: [PATCH 2/3] edac: altera: Add support for Stratix10 SDRAM EDAC
Date: Wed, 25 Apr 2018 21:14:27 -0500	[thread overview]
Message-ID: <2d310ff0-fa0e-e432-ae11-ba34080b4f6e@kernel.org> (raw)
In-Reply-To: <1524594959-5259-3-git-send-email-thor.thayer@linux.intel.com>



On 04/24/2018 01:35 PM, thor.thayer@linux.intel.com wrote:
> From: Thor Thayer <thor.thayer@linux.intel.com>
> 
> Add support for SDRAM ECC on the Stratix10 platform to
> the EDAC device driver. Although Stratix10 is very similar
> to the Arria10, hypervisor support for Stratix10 SDRAM ECC
> requires the use of SMC calls to a higher priority
> exception level to handle some register reads/writes.
> 
> Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
> ---
>  drivers/edac/Kconfig       |   2 +-
>  drivers/edac/altera_edac.c | 459 +++++++++++++++++++++++++++++++++++++++++++++
>  drivers/edac/altera_edac.h | 114 +++++++++++

Does it make sense to have the support for this in separate files?

>  3 files changed, 574 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig
> index 3c4017007647..3c66b02b2473 100644
> --- a/drivers/edac/Kconfig
> +++ b/drivers/edac/Kconfig
> @@ -379,7 +379,7 @@ config EDAC_THUNDERX
>  
>  config EDAC_ALTERA
>  	bool "Altera SOCFPGA ECC"
> -	depends on EDAC=y && ARCH_SOCFPGA
> +	depends on EDAC=y && (ARCH_SOCFPGA || ARM64)

Should the ARM64 dependency just be ARCH_STRATIX10?

>  	help
>  	  Support for error detection and correction on the
>  	  Altera SOCs. This must be selected for SDRAM ECC.
> diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
> index 11d6419788c2..7ed885379719 100644
> --- a/drivers/edac/altera_edac.c
> +++ b/drivers/edac/altera_edac.c
> @@ -1,4 +1,5 @@
>  /*
> + *  Copyright (C) 2017-2018, Intel Corporation

If you're updating the license header, would it make sense to convert to
SPDX?

Dinh

             reply	other threads:[~2018-04-26  2:14 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26  2:14 Dinh Nguyen [this message]
2018-04-26  2:14 ` [PATCH 2/3] edac: altera: Add support for Stratix10 SDRAM EDAC Dinh Nguyen
2018-04-26  2:14 ` Dinh Nguyen
  -- strict thread matches above, loose matches on Subject: below --
2018-04-26 15:06 [1/3] Documentation: dt: socfpga: Add Stratix10 ECC Manager binding Rob Herring
2018-04-26 15:06 ` [PATCH 1/3] " Rob Herring
2018-04-26 15:06 ` Rob Herring
2018-04-26 15:01 [1/3] " Dinh Nguyen
2018-04-26 15:01 ` [PATCH 1/3] " Dinh Nguyen
2018-04-26 15:01 ` Dinh Nguyen
2018-04-26 14:58 [1/3] " thor.thayer
2018-04-26 14:58 ` [PATCH 1/3] " Thor Thayer
2018-04-26 14:58 ` Thor Thayer
2018-04-26 14:43 [1/3] " thor.thayer
2018-04-26 14:43 ` [PATCH 1/3] " Thor Thayer
2018-04-26 14:43 ` Thor Thayer
2018-04-26 14:42 [2/3] edac: altera: Add support for Stratix10 SDRAM EDAC thor.thayer
2018-04-26 14:42 ` [PATCH 2/3] " Thor Thayer
2018-04-26 14:42 ` Thor Thayer
2018-04-26  6:08 [2/3] " Borislav Petkov
2018-04-26  6:08 ` [PATCH 2/3] " Borislav Petkov
2018-04-26  6:08 ` Borislav Petkov
2018-04-26  2:16 [1/3] Documentation: dt: socfpga: Add Stratix10 ECC Manager binding Dinh Nguyen
2018-04-26  2:16 ` [PATCH 1/3] " Dinh Nguyen
2018-04-26  2:16 ` Dinh Nguyen
2018-04-24 18:35 [3/3] arm64: dts: stratix10: add sdram ecc thor.thayer
2018-04-24 18:35 ` [PATCH 3/3] " thor.thayer
2018-04-24 18:35 ` thor.thayer at linux.intel.com
2018-04-24 18:35 [2/3] edac: altera: Add support for Stratix10 SDRAM EDAC thor.thayer
2018-04-24 18:35 ` [PATCH 2/3] " thor.thayer
2018-04-24 18:35 ` thor.thayer at linux.intel.com
2018-04-24 18:35 [1/3] Documentation: dt: socfpga: Add Stratix10 ECC Manager binding thor.thayer
2018-04-24 18:35 ` [PATCH 1/3] " thor.thayer
2018-04-24 18:35 ` thor.thayer at linux.intel.com
2018-04-24 18:35 [PATCH 0/3] Add SDRAM ECC support for Stratix10 thor.thayer at linux.intel.com
2018-04-24 18:35 ` thor.thayer

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=2d310ff0-fa0e-e432-ae11-ba34080b4f6e@kernel.org \
    --to=dinguyen@kernel.org \
    --cc=bp@alien8.de \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-edac@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mchehab@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=thor.thayer@linux.intel.com \
    --cc=will.deacon@arm.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.