mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yazen Ghannam <yazen.ghannam@amd.com>
To: Rama devi Veggalam <rama.devi.veggalam@amd.com>
Cc: bp@alien8.de, tony.luck@intel.com, michal.simek@amd.com,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org,
	devicetree@vger.kernel.org, james.morse@arm.com,
	mchehab@kernel.org, rric@kernel.org, git@amd.com
Subject: Re: [PATCH v5 0/3] EDAC: Add Xilinx XilSEM error monitoring driver
Date: Wed, 25 Nov 2026 10:48:28 -0500	[thread overview]
Message-ID: <20261125154828.GG2156781@yaz-khff2.amd.com> (raw)
In-Reply-To: <1795313124-2138932-1-git-send-email-rama.devi.veggalam@amd.com>

On Sun, Nov 22, 2026 at 07:35:21AM +0530, Rama devi Veggalam wrote:
> Add a driver for XilSEM (Xilinx Soft Error Mitigation) on Versal and
> Versal NET devices. XilSEM runs as part of the Platform Loader and
> Manager (PLM) on the PMC and monitors Configuration RAM (CRAM) and the
> NoC Programming Interface (NPI) for correctable and uncorrectable
> errors. The driver reports these errors to the EDAC core and provides
> sysfs attributes to control scans, inject CRAM errors and read status.
> It is a separate driver, matched through a single "xlnx,xilsem"
> compatible, because XilSEM is common to Versal and Versal NET. Only
> monolithic devices are supported.
> 
> Note on CE reporting after a bitstream reload:
> The PLM clears the XilSEM RTCA, including the CE count, when a new
> bitstream is loaded. The driver reads the CE count to find the CEs that
> are new since its last report, and takes a count below the saved one as
> a reload. A reload is not detected if the count has already reached or
> passed the saved value when the callback runs, so the CEs up to the
> saved value are not reported, and the EDAC CE count is too low by that
> number. No CE is reported that did not happen. The RTCA does not
> indicate that a reload happened. A complete fix needs a reload counter
> in the RTCA, added in the XilSEM and PLM source, which the driver can
> compare. This driver is not changed for it.
> 
> Note on xlnx_unregister_event():
> xsem_edac_remove() unregisters the event and then frees its state, which
> is the normal sequence for an event manager client. It is only safe if
> xlnx_unregister_event() does not return while a callback is still
> running on another CPU, and the event manager does not guarantee that
> today: it walks its callback list from the SGI handler without RCU or a
> lock. The missing wait belongs in the event manager, where one fix
> covers every client, so this driver is not changed. A fix in the event
> manager is planned. Until it lands, unbinding the driver while error
> events are being raised is not safe. The probe path is not affected,
> because the event is registered as the last step of probe.
> 
> This series contains:
> - A new devicetree binding for the "xlnx,xilsem" compatible.
> - The firmware (EEMI) interface and the XilSEM error event node IDs
>   and masks.
> - The EDAC driver, with its sysfs ABI documentation in the same patch.
> 
> Changes in v5:
> - Moved the XilSEM binding out of the Versal DDRMC EDAC yaml into its
>   own xilsem yaml, with a single "xlnx,xilsem" compatible.
> - Moved the driver out of versal_edac.c into a separate xilsem_edac
>   driver.
> - Limited support to monolithic devices and documented it in the binding
>   and ABI.
> - Added the xlnx_unregister_event() and CE reload notes above.
> - Added the L: linux-edac entry to MAINTAINERS.
> 
> Rama devi Veggalam (3):
>   dt-bindings: edac: Add Xilinx XilSEM
>   firmware: xilinx: Add XilSEM firmware interface
>   edac: Add Xilinx XilSEM error monitoring driver
> 

Hi Rama,

Did you look into the "platform driver" idea?

If so, how did it compare to this DT solution?

Thanks,
Yazen

      parent reply	other threads:[~2026-11-25 15:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22  2:05 Rama devi Veggalam
2026-11-22  2:05 ` [PATCH v5 1/3] dt-bindings: edac: Add Xilinx XilSEM Rama devi Veggalam
2026-11-22 16:00   ` Krzysztof Kozlowski
2026-11-22  2:05 ` [PATCH v5 2/3] firmware: xilinx: Add XilSEM firmware interface Rama devi Veggalam
2026-11-22  2:05 ` [PATCH v5 3/3] edac: Add Xilinx XilSEM error monitoring driver Rama devi Veggalam
2026-11-25 15:48 ` Yazen Ghannam [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=20261125154828.GG2156781@yaz-khff2.amd.com \
    --to=yazen.ghannam@amd.com \
    --cc=bp@alien8.de \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=git@amd.com \
    --cc=james.morse@arm.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=michal.simek@amd.com \
    --cc=rama.devi.veggalam@amd.com \
    --cc=robh@kernel.org \
    --cc=rric@kernel.org \
    --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®