Andrei Emeltchenko
365be4540b
edac: ibecc: Add supported SKU device IDs
...
List all supported device IDs found in External Design Specification
Volume 1 which have IBECC supported.
Fixes #33543
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-03-22 13:05:01 -04:00
Andrei Emeltchenko
3f4a41946a
edac: shell: Add test_default command
...
Add setting default inject test parameters.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-02-19 16:06:29 +02:00
Andrei Emeltchenko
4bbcd1433e
edac: shell: Update shell commands comments
...
Correct commands descriptions in comments
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-02-19 16:06:29 +02:00
Andrei Emeltchenko
8a71b16f93
edac: Update shell commands
...
Add error_type and trigger shell commands and remove outdated ctrl.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-02-04 09:37:42 -05:00
Andrei Emeltchenko
47dd65bc97
edac: Rename PCI_ENDPOINT to PCI_HOST_BRIDGE
...
Use PCI_HOST_BRIDGE macro.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-02-04 09:37:42 -05:00
Andrei Emeltchenko
c0dd472cd7
edac: Do not use BDF and PCI IDs from DTS
...
Use autoconfiguration instead of DT hardcoding.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-02-04 09:37:42 -05:00
Andrei Emeltchenko
89a253b052
edac: Use Device Tree values for BDF and PCI VID
...
Start using DTS values for PCI Vendor ID and PCI BDF. For the PCI
Device ID we do not use DTS since this would require changing overlay
for different SKU board.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-02-04 09:37:42 -05:00
Andrei Emeltchenko
73bf31f028
edac: Remove magic numbers
...
Use proper defines instead of magic numbers.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00
Andrei Emeltchenko
311732a0a0
edac: Replace DEVICE_AND_API_INIT with DEVICE_DEFINE
...
Since DEVICE_AND_API_INIT was recently deprecated replace with correct
version.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00
Andrei Emeltchenko
f4582b9478
edac: Add error data information to callback parameter
...
Add extra error data information to callback parameter. Add tests for
testing the data provided.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00
Andrei Emeltchenko
ae25a9926c
edac: Remove extra logging
...
Remove unneeded extra logging.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00
Andrei Emeltchenko
064c9fe40f
edac: Use helpers to read / write IBECC registers
...
Use helpers ibecc_{read,write}_reg{32,64}.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00
Andrei Emeltchenko
2dc413aa74
edac: Split EDAC set ctrl to set error_type and error_trigger
...
Split setting EDAC IBECC ctrl to setting error_type and
error_trigger to make it easier for other platforms.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00
Andrei Emeltchenko
f80628ba96
edac: Generalize EDAC API
...
Replace addr with param1 and addr_mask with param2 for get / set types
of functions. Those names are more general and allow to implement
error injections for other platforms.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00
Andrei Emeltchenko
f7f2dd85be
edac: shell: Add EDAC shell
...
Add EDAC shell module which would be included in the EDAC sample.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00
Andrei Emeltchenko
2b30d04eef
edac: ibecc: Add EDAC IBECC driver
...
Add In-Band ECC driver. Supported in ehl_crb board.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00
Andrei Emeltchenko
d4d278da0a
edac: Add Zephyr EDAC configuration
...
Add Kconfig for EDAC.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-01-21 08:34:07 -05:00