Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rasdaemon: generic fixes and ras-mc-ctl: add support for CXL error events #149

Closed
wants to merge 10 commits into from

Conversation

shijujose4
Copy link
Contributor

  1. rasdaemon: generic fixes
    • Fix build warnings unused variable if AMP RAS errors is not enabled
    • Update memory failure action page types
  2. ras-mc-ctl: Add support for CXL error events.
    Add support for read and log following CXL error event records from the SQLite database(ras-mc_event.db).
  • CXL AER uncorrectable error events
  • CXL AER correctable error events
  • CXL overflow error events
  • CXL poison trace events
  • CXL generic trace events
  • CXL general media trace events
  • CXL DRAM trace events
  • CXL memory module trace events

…t enabled

This patch fixes following build warnings unused variable if AMP RAS errors
is not enabled(--enable-amp-ns-decode).

==================================================
ras-aer-handler.c: In function ‘ras_aer_event_handler’:
ras-aer-handler.c:72:21: warning: unused variable ‘fn’ [-Wunused-variable]
  int seg, bus, dev, fn;
                     ^~
ras-aer-handler.c:72:16: warning: unused variable ‘dev’ [-Wunused-variable]
  int seg, bus, dev, fn;
                ^~~
ras-aer-handler.c:72:11: warning: unused variable ‘bus’ [-Wunused-variable]
  int seg, bus, dev, fn;
           ^~~
ras-aer-handler.c:72:6: warning: unused variable ‘seg’ [-Wunused-variable]
  int seg, bus, dev, fn;
      ^~~
ras-aer-handler.c:71:10: warning: variable ‘sel_data’ set but not used [-Wunused-but-set-variable]
  uint8_t sel_data[5];
          ^~~~~~~~
ras-aer-handler.c:70:7: warning: unused variable ‘ipmi_add_sel’ [-Wunused-variable]
  char ipmi_add_sel[105];
       ^~~~~~~~~~~~
==================================================

Signed-off-by: Shiju Jose <[email protected]>
…age types

Update memory failure action page types corresponding to the same in
mm/memory-failure.c in the kernel.

Signed-off-by: Shiju Jose <[email protected]>
…ents

Add support for CXL AER uncorrectable events to the ras-mc-ctl tool.

Signed-off-by: Shiju Jose <[email protected]>
Add support for CXL AER correctable events to the ras-mc-ctl tool.

Signed-off-by: Shiju Jose <[email protected]>
Add support for CXL overflow events to the ras-mc-ctl tool.

Signed-off-by: Shiju Jose <[email protected]>
Add support for CXL poison events to the ras-mc-ctl tool.

Signed-off-by: Shiju Jose <[email protected]>
Add support for CXL generic events to the ras-mc-ctl tool.

Signed-off-by: Shiju Jose <[email protected]>
Add support for CXL general media events to the ras-mc-ctl tool.

Signed-off-by: Shiju Jose <[email protected]>
Add support for CXL DRAM events to the ras-mc-ctl tool.

Signed-off-by: Shiju Jose <[email protected]>
Add support for CXL memory module events to the ras-mc-ctl tool.

Signed-off-by: Shiju Jose <[email protected]>
@mchehab
Copy link
Owner

mchehab commented Jun 11, 2024

Merged, thanks!

@mchehab mchehab closed this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants