From: Rama devi Veggalam <rama.devi.veggalam@amd.com>
To: <bp@alien8.de>, <tony.luck@intel.com>, <michal.simek@amd.com>,
<robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>
Cc: <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>,
Rama devi Veggalam <rama.devi.veggalam@amd.com>
Subject: [PATCH v5 0/3] EDAC: Add Xilinx XilSEM error monitoring driver
Date: Sun, 22 Nov 2026 07:35:21 +0530 [thread overview]
Message-ID: <1795313124-2138932-1-git-send-email-rama.devi.veggalam@amd.com> (raw)
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
.../ABI/testing/sysfs-devices-xilsem-edac | 188 +++++
.../devicetree/bindings/edac/xlnx,xilsem.yaml | 53 ++
MAINTAINERS | 12 +
drivers/edac/Kconfig | 16 +
drivers/edac/Makefile | 1 +
drivers/edac/xilsem_edac.c | 859 +++++++++++++++++++++
drivers/edac/xilsem_edac.h | 131 ++++
drivers/firmware/xilinx/Makefile | 2 +-
drivers/firmware/xilinx/zynqmp-sem.c | 142 ++++
drivers/soc/xilinx/xlnx_event_manager.c | 16 +-
include/linux/firmware/xlnx-zynqmp-sem.h | 127 +++
include/linux/firmware/xlnx-zynqmp.h | 50 ++
12 files changed, 1594 insertions(+), 3 deletions(-)
create mode 100644 Documentation/ABI/testing/sysfs-devices-xilsem-edac
create mode 100644 Documentation/devicetree/bindings/edac/xlnx,xilsem.yaml
create mode 100644 drivers/edac/xilsem_edac.c
create mode 100644 drivers/edac/xilsem_edac.h
create mode 100644 drivers/firmware/xilinx/zynqmp-sem.c
create mode 100644 include/linux/firmware/xlnx-zynqmp-sem.h
--
1.9.5
next reply other threads:[~2026-11-22 2:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 2:05 Rama devi Veggalam [this message]
2026-11-22 2:05 ` [PATCH v5 1/3] dt-bindings: edac: Add Xilinx XilSEM Rama devi Veggalam
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
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=1795313124-2138932-1-git-send-email-rama.devi.veggalam@amd.com \
--to=rama.devi.veggalam@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=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®