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

ipmitool to be used with AER only on Ampere Altra platforms #56

Open
wants to merge 61 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
43a78ea
ipmitool to be used with AER only on Ampere Altra platforms
RocheWilliam Nov 9, 2021
f3f4d9c
Enrich ras_report_aer_ipmi_init() comments.
RocheWilliam Dec 6, 2021
b14b901
rasdaemon: fix compile against musl libc
stintel Sep 1, 2021
fc3f8de
rasdaemon: ras-mc-ctl: Fix script to parse dimm sizes
muralimk-amd Jul 27, 2021
c66be8e
Update ras-mc-ctl manpage to match current options
justinvreeland Nov 3, 2021
ae89390
add labels for asrock x570 motherboard
stevenj Dec 7, 2021
a7068c7
rasdaemon.service.in: comment out syslog.target
evils Dec 11, 2021
8c5d37d
rasdaemon: Fix the issue of sprintf data type mismatch in uuid_le()
Oct 20, 2021
3b6f56b
rasdaemon: Fix the issue of command option -r for hip08
Oct 20, 2021
81d0497
rasdaemon: Fix some print format issues for hisi common error section
Oct 20, 2021
6d29781
rasdaemon: Add some modules supported by hisi common error section
Oct 20, 2021
4067e28
Makefile.am: clean output from misc/*.in
mchehab Apr 1, 2022
4a57930
misc/rasdaemon.spec.in: fix some issues on it
mchehab Apr 1, 2022
5b75569
Bump version to 0.6.8
mchehab Apr 1, 2022
29820f5
rasdaemon: use the new block_rq_error tracepoint
yang-shi Apr 4, 2022
d4d734d
libtrace: Use XSI version of strerror_r on non glibc systems
kraj Aug 31, 2022
f71ecea
rasdaemon: ras-report: fix possible but unlikely file descriptor leak
aristeu Jan 19, 2023
632c15f
rasdaemon: mce-amd-smca: properly limit bank types
aristeu Jan 19, 2023
fe52450
rasdaemon: ras-memory-failure-handler: handle localtime() failure cor…
aristeu Jan 19, 2023
4e35e7c
rasdaemon: Support cpu fault isolation for corrected errors
Lostwayzxc Feb 23, 2022
28fd2bb
rasdaemon: Support cpu fault isolation for recoverable errors
Lostwayzxc Feb 23, 2022
c5c0796
rasdaemon: Modify recording Hisilicon common error data
shijujose4 Mar 2, 2022
b00b8d2
rasdaemon: ras-mc-ctl: Modify error statistics for HiSilicon KunPeng9…
shijujose4 Feb 24, 2022
ceac760
rasdaemon: ras-mc-ctl: Reformat error info of the HiSilicon Kunpeng920
shijujose4 Mar 5, 2022
96a9942
rasdaemon: ras-mc-ctl: Add printing usage if necessary parameters are…
shijujose4 Mar 5, 2022
01c2453
rasdaemon: ras-mc-ctl: Add support to display the HiSilicon vendor er…
shijujose4 Mar 5, 2022
db4bf0a
rasdaemon: ras-mc-ctl: Relocate reading and display Kunpeng920 errors…
shijujose4 Mar 7, 2022
9e10a2d
rasdaemon: ras-mc-ctl: Updated HiSilicon platform name
shijujose4 Apr 28, 2022
b05a49d
rasdaemon: Fix for a memory out-of-bounds issue and optimized code to…
shijujose4 Apr 28, 2022
d6cecbe
rasdaemon: Add four modules supported by HiSilicon common section
Oct 31, 2022
82a0a7f
labels/asus: add ASUS TUF GAMING B450-PLUS II
dgcampea Dec 19, 2022
ccfb4bf
configure.ac: fix bashisms
thesamesam Dec 29, 2022
49e6791
INSTALL: update from latest version of it
mchehab Jan 21, 2023
a2f8b73
.gitignore: add the auto-generated "compile" file
mchehab Jan 21, 2023
b6992fa
Bump version to 0.7.0
mchehab Jan 21, 2023
768bdb4
Add a release workflow
mchehab Jan 21, 2023
106ef7b
on_tag.yml: use a different approach to upload artifact
mchehab Jan 22, 2023
a65f9be
Convert to use libtraceevent
mchehab Jan 21, 2023
c14a515
Adjust indentations
mchehab Jan 21, 2023
6b51a2e
Remove the old libtrace
mchehab Jan 21, 2023
973bd64
ci.yml: add libtraceevent-dev dependency
mchehab Jan 21, 2023
83f2312
configure.ac: get rid of obsolete macros
mchehab Jan 21, 2023
0b242e6
Makefile.am: enable all options on make distcheck
mchehab Jan 21, 2023
20dd76a
README: Update instructions about how to contribute
mchehab Jan 23, 2023
6ad5c83
rasdaemon: Fix poll() on per_cpu trace_pipe_raw blocks indefinitely
shijujose4 Feb 4, 2023
d79c076
Makefile.am: fix mock build target
mchehab Feb 18, 2023
bb63ff9
misc/rasdaemon.spec.in: add libtraceevent requirement
mchehab Feb 18, 2023
eea1e38
Convert README to markdown format
mchehab Feb 18, 2023
aaccd37
labels/asrock: add X399D8A-2T
tictooc Feb 11, 2023
2647640
Bump version to 0.8.0
mchehab Feb 18, 2023
73cd1b1
ChangeLog: do some minor updates
mchehab Feb 18, 2023
be4ec11
ci.yml: fix workflow to build rasdaemon
mchehab Feb 18, 2023
9809066
Fix create release workflow
mchehab Feb 18, 2023
48a6d13
configure.ac: fix bashisms
thesamesam Feb 19, 2023
d7583fb
rasdaemon: fix table create if some cpus are offline
shijujose4 Mar 5, 2023
02e4960
ras-mc-ctl: add option to exclude old events from reports
m-sundman Apr 20, 2023
ac737e5
rasdaemon: Move definition for BIT and BIT_ULL to a common file
shijujose4 Jan 16, 2023
87c6384
rasdaemon: Add support for the CXL poison events
shijujose4 Mar 31, 2023
9ffa38e
rasdaemon: Add support for the CXL AER uncorrectable errors
shijujose4 Mar 17, 2023
a9049ef
rasdaemon: Add support for the CXL AER correctable errors
shijujose4 Mar 17, 2023
7ca3126
ipmitool to be used with AER only on Ampere Altra platforms
RocheWilliam Nov 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: prepare
run: |
sudo apt-get update
sudo apt-get install -y build-essential sqlite3
sudo apt-get install -y build-essential libsqlite3-dev sqlite3 libtraceevent-dev libtraceevent1
- name: build
run: |
autoreconf -vfi
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/gen_release.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/perl

my $body_path = shift or die "Need a file name to store the release body";

my $ver;

open IN, "configure.ac" or die;
while (<IN>) {
if (m/^[^\#]*AC_INIT\s*\(\s*\[\s*RASdaemon\s*\]\s*,\s*\[?(\d+[\.\d]+)/) {
$ver=$1;
last;
}
}
close IN or die "can't open configure.ac";

die "Can't get version from configure.ac" if (!$ver);

sub gen_version() {
print "$ver\n";

open IN, "ChangeLog" or return "error opening ChangeLog";
open OUT, ">$body_path" or return "error creating $body_path";
while (<IN>) {
last if (m/$ver/);
}
while (<IN>) {
next if (m/^$/);
last if (m/^\S/);

my $ln = $_;
$ln =~ s/^\s+\*/-/;
print OUT $ln;
}
close OUT or return "error closing $body_path";

return "";
}

my $ret = gen_version();

die($ret) if ($ret ne "");
50 changes: 50 additions & 0 deletions .github/workflows/on_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Create release on tag

on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v[0-9]+*'

jobs:
release:
name: Create Release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v2
- name: Release changelog
run: |
.github/workflows/gen_release.pl body_file.tmp > version
echo "version=$(cat version)" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: body_file.tmp
draft: false
prerelease: true
- name: prepare
run: |
sudo apt-get update
sudo apt-get install -y build-essential sqlite3 libtraceevent-dev libtraceevent1
- name: Create Source Package for version ${{ env.version }}
run: |
autoreconf -vfi
./configure --enable-all
make dist-bzip2
- name: upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: mchehab/upload-release-asset@v1.0.3
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: rasdaemon-${{ env.version }}.tar.bz2
asset_name: rasdaemon-${{ env.version }}.tar.bz2
asset_content_type: application/bzip2
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.deps/
autom4te.cache/
SRPMS/
misc/rasdaemon.spec
misc/ras-mc-ctl.service
misc/rasdaemon.service
Makefile
Makefile.in
compile
config.h
config.h.in
config.h.in~
Expand Down
50 changes: 50 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
2023-02-18 Mauro Carvalho Chehab <mchehab@kernel.org>
- Version 0.8.0

* This version now uses libtraceevent. Since its beginning,
rasdaemon came with an early version of this library. Now,
instead of keeping it embedded, use it from the system's
package.
* Fix mock build target and rasdaemon.spec.in
* Update README with instructions about contributing and
convert to markdown
* Fix a regression with Kernel 6.1-rc6
* make distcheck now works
* Add labels for ASRockRack model X399D8A-2T

2023-01-21 Mauro Carvalho Chehab <mchehab@kernel.org>
- Version 0.7.0

* Add labels for ASUS TUF GAMING B450-PLUS II
* Add four modules supported by HiSilicon common section
* Updated HiSilicon platform name
* Relocate reading and display Kunpeng920 errors to under Kunpeng9xx
* Add support to display the HiSilicon vendor errors for a specified module
* Add printing usage if necessary parameters are not passed for the vendor-error options
* Reformat error info of the HiSilicon Kunpeng920
* Modify error statistics for HiSilicon KunPeng9xx common errors
* Modify recording Hisilicon common error data
* Support cpu fault isolation for recoverable errors
* Support cpu fault isolation for corrected errors
* Use XSI version of strerror_r on non glibc systems
* Use the new block_rq_error tracepoint
* Fix bank limit types check
* Properly handle localtime() failure
* Fix for a memory out-of-bounds issue and optimized code to remove duplicate function.
* Fix possible but unlikely file descriptor leak
* Fix bashisms

2022-04-12 Mauro Carvalho Chehab <mchehab@kernel.org>
- Version 0.6.8

* Fix some issues related to sysconfigdir
* Some fixes for hisi boards
* Update ras-mc-ctl manpage to match current options
* Fix ras-mc-ctl when parsing some dimm sizes
* New asrock x570 motherboard label
* New Supermicro labels
* Support MCE for AMD CPU family 19h
* Add new SMCA bank types with error decoding
* Add error handling for Ampere-specific errors.
* Add support for multi-arch builds

2021-05-26 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
- Version 0.6.7

Expand Down
6 changes: 3 additions & 3 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Installation Instructions
*************************

Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
Foundation, Inc.
Copyright (C) 1994-1996, 1999-2002, 2004-2017, 2020-2021 Free
Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
Expand Down Expand Up @@ -225,7 +225,7 @@ order to use an ANSI C compiler:

and if that doesn't work, install pre-built binaries of GCC for HP-UX.

HP-UX 'make' updates targets which have the same time stamps as their
HP-UX 'make' updates targets which have the same timestamps as their
prerequisites, which makes it generally unusable when shipped generated
files such as 'configure' are involved. Use GNU 'make' instead.

Expand Down
27 changes: 22 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-all
ACLOCAL_AMFLAGS=-I m4
SUBDIRS = libtrace util man
SUBDIRS = util man
SYSTEMD_SERVICES_IN = misc/rasdaemon.service.in misc/ras-mc-ctl.service.in
SYSTEMD_SERVICES = $(SYSTEMD_SERVICES_IN:.service.in=.service)
EXTRA_DIST = $(SYSTEMD_SERVICES_IN) misc/rasdaemon.env

CLEANFILES= \
misc/ras-mc-ctl.service \
misc/rasdaemon.service

DISTCLEANFILES = misc/rasdaemon.spec

# This rule is needed because \@sbindir\@ is expanded to \${exec_prefix\}/sbin
# during ./configure phase, therefore it is not possible to add .service.in
# files to AC_CONFIG_FILES in configure.ac
Expand Down Expand Up @@ -61,15 +68,25 @@ if WITH_MEMORY_CE_PFA
rasdaemon_SOURCES += rbtree.c ras-page-isolation.c
endif
if WITH_AMP_NS_DECODE
rasdaemon_SOURCES += non-standard-ampere.c
rasdaemon_SOURCES += non-standard-ampere.c dmi_processor_info.c
endif
if WITH_CPU_FAULT_ISOLATION
rasdaemon_SOURCES += ras-cpu-isolation.c queue.c
endif
rasdaemon_LDADD = -lpthread $(SQLITE3_LIBS) libtrace/libtrace.a

if WITH_CXL
rasdaemon_SOURCES += ras-cxl-handler.c
endif

rasdaemon_LDADD = -lpthread $(SQLITE3_LIBS) $(LIBTRACEEVENT_LIBS)
rasdaemon_CFLAGS = $(SQLITE3_CFLAGS) $(LIBTRACEEVENT_CFLAGS)

include_HEADERS = config.h ras-events.h ras-logger.h ras-mc-handler.h \
ras-aer-handler.h ras-mce-handler.h ras-record.h bitfield.h ras-report.h \
ras-extlog-handler.h ras-arm-handler.h ras-non-standard-handler.h \
ras-devlink-handler.h ras-diskerror-handler.h rbtree.h ras-page-isolation.h \
non-standard-hisilicon.h non-standard-ampere.h ras-memory-failure-handler.h
non-standard-hisilicon.h non-standard-ampere.h ras-memory-failure-handler.h \
ras-cxl-handler.h ras-cpu-isolation.h queue.h

# This rule can't be called with more than one Makefile job (like make -j8)
# I can't figure out a way to fix that
Expand All @@ -85,7 +102,7 @@ srpm: dist-bzip2
rpmbuild -bs misc/@PACKAGE@.spec

mock: srpm
mock `rpm --eval %{_topdir}`/SRPMS/@PACKAGE@-@PACKAGE_VERSION@*.src.rpm
mock --resultdir="./SRPMS" `rpm --eval %{_topdir}`/SRPMS/@PACKAGE@-@PACKAGE_VERSION@*.src.rpm

rpmlint:
rpmlint misc/@PACKAGE@.spec `rpm --eval %{_topdir}`/SRPMS/@PACKAGE@-@PACKAGE_VERSION@*.src.rpm `rpm --eval %{_topdir}`/RPMS/*/@PACKAGE@-@PACKAGE_VERSION@*.rpm
Expand Down
Loading