mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinguyen@kernel.org>
To: Rounak Das <rounakdas2025@gmail.com>
Cc: bp@alien8.de, linux-edac@vger.kernel.org,
	linux-kernel@vger.kernel.org, tony.luck@intel.com
Subject: Re: [PATCH v3] EDAC/altera: use ECC manager compatible to select A10/S10 IRQ layout
Date: Thu, 18 Jun 2026 05:37:08 -0500	[thread overview]
Message-ID: <77d71af8-27b8-42ca-a6e9-f110a6289893@kernel.org> (raw)
In-Reply-To: <20260617000711.60804-1-rounakdas2025@gmail.com>



On 6/16/26 09:07, Rounak Das wrote:
> The SDMMC ECC IRQ layout selection uses CONFIG_64BIT to distinguish
> between Arria10 and Stratix10 paths. This is architecture-based,
> while the interrupt layout is a hardware property described by DT
> compatible strings.
> 
> Detect the SoC once at probe via the altr,socfpga-s10-ecc-manager
> compatible on the ECC manager node, store it under the struct
> altr_arria10_edac, and use it in altr_portb_setup() and
> altr_edac_a10_device_add() in place of CONFIG_64BIT.
> 
> Selecting on the manager compatible keeps the decision SoC-wide and
> correct for every ECC child device (OCRAM, USB, EMAC, SD/MMC),
> and avoids repeated compatible lookups. Stratix10 and
> Agilex both declare altr,socfpga-s10-ecc-manager and Arria10 does not,
> so behaviour is unchanged on all three SoCs.
> 
> Signed-off-by: Rounak Das <rounakdas2025@gmail.com>
> ---
> v3:
>   - Use compatible string altr,socfpga-s10-ecc-manager instead of
>     sdmmc-ecc (Dinh).
>   - Set it once into struct altr_arria10_edac::is_s10 to
>     avoid repeated of_device_is_compatible() calls (Dinh).
>   - Fix the checkpatch open-parenthesis alignment.
> 
> v2: https://lore.kernel.org/linux-edac/20260616081709.48774-1-rounakdas2025@gmail.com/
>   - Use legal name in Signed-off-by (Borislav).
> 
>   drivers/edac/altera_edac.c | 106 +++++++++++++++++++------------------
>   drivers/edac/altera_edac.h |   1 +
>   2 files changed, 55 insertions(+), 52 deletions(-)
> 

Were you able to test this on any HW? I tested on an Arria10 and it 
looks good. Currently, I don't have access to a 64-bit platform. so I'd 
like to wait to get access to one and test.

Thanks,
Dinh

  reply	other threads:[~2026-06-18 10:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-15 19:15 [PATCH] EDAC/altera: use SDMMC compatibles " AZ9tumas
2026-06-15 20:27 ` Borislav Petkov
2026-06-16  8:17 ` [PATCH v2] " Rounak Das
2026-06-16 14:44   ` Dinh Nguyen
     [not found]     ` <3131206B-1E30-4EED-A327-D6FD39E6C4E8@gmail.com>
2026-06-16 23:58       ` Rounak Das
2026-06-24 14:55         ` Dinh Nguyen
2026-06-17  0:07     ` [PATCH v3] EDAC/altera: use ECC manager compatible " Rounak Das
2026-06-18 10:37       ` Dinh Nguyen [this message]
2026-06-18 13:26         ` Rounak Das
2026-06-25 12:09       ` Dinh Nguyen
2026-06-26  8:22         ` Rounak Das
2026-06-26 13:42           ` Dinh Nguyen
2026-06-24  5:18   ` [PATCH v2] EDAC/altera: use SDMMC compatibles " Dinh Nguyen
2026-06-24 14:18     ` Rounak Das

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=77d71af8-27b8-42ca-a6e9-f110a6289893@kernel.org \
    --to=dinguyen@kernel.org \
    --cc=bp@alien8.de \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rounakdas2025@gmail.com \
    --cc=tony.luck@intel.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 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®