ZynqMP OCM EDAC Driver

This page gives an overview of Zynqmp OCM EDAC driver which is available in Xilinx Linux distribution as drivers/edac/zybqmp_ocm_edac.c

Overview

The on-chip memory (OCM) module contains 256 KB of RAM. It supports a 128-bit AXI slave interface port. The OCM has eight exclusive access monitors that
allow the OCM to simultaneously monitor up to eight exclusive access transactions. The OCM supports high AXI read and write throughput for RAM access by
implementing the RAM as a double-width memory (256 bits). The OCM implements double-width memory to maximize the read and write bandwidth. Maximum
bandwidth is achieved when the read/write accesses are a multiple of 256 bits with 256-bit aligned addresses. The Xilinx memory protection unit (XMPU) is
supported at 4KB memory granularity. The entire 256 KB of RAM can be divided into 64 blocks (4KB each), and assigned security attributes independently.
Arbitration between the read and write channels of the OCM switch ports is performed within the OCM module. OCM supports a 64-bit ECC.

HW/IP Features

  • supports a 64-bit ECC
  • Single bit error detection and correction
  • Double bit error detection
  • Error injection support

Driver Features

  • Detects and reports the errors on OCM
  • Supports error injection for both countable and uncountable errors

Missing features, Known Issues and Limitations

  • NA


Kernel Configuration

The following config options should be enabled in order to build ZynqMP OCM EDAC driver:

Devicetree Settings

Example:

Mainline Status

Not in mainline

Testing Procedure

After linux boot, just give the below command to make sure for driver probing
This driver creates edac device controller in sysfs /sys/devices/system/edac/ directory as zynqmp_ocm

To inject CE Errors

To inject UE Errors


Expected Output



Changelog

2016.3

  • NA

2016.4

  • NA

2017.1

  • Summary
    • Fix hardcoding edac device index
  • Commits

2017.2

  • NA

2017.3

2017.4

  • NA

2018.1

  • NA

2018.2

  • NA

2018.3

  • NA

2019.1

  • NA

2019.2

  • NA

2020.1

  • NA

2020.2

  • Summary
    • Minor update - Fix incompatible parameter error
  • Commits

Related Links