]> www.infradead.org Git - users/mchehab/rasdaemon.git/log
users/mchehab/rasdaemon.git
5 years agorasdaemon: fix magic number issues reported by static code analysis for hip08
Xiaofei Tan [Tue, 26 Nov 2019 13:20:06 +0000 (14:20 +0100)]
rasdaemon: fix magic number issues reported by static code analysis for hip08

Fix magic number issues reported by static code analysis for hip08.

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com> Date: Tue, 26 Nov 2019 20:12:33 +0800
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: split PCIe local table decode function to reduce length
Xiaofei Tan [Tue, 26 Nov 2019 13:19:29 +0000 (14:19 +0100)]
rasdaemon: split PCIe local table decode function to reduce length

This patch splits function decode_hip08_pcie_local_error() to reduce
length. Move header decoding and register dump to single function
separately.

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com> Date: Tue, 26 Nov 2019 20:12:32 +0800
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: split OEM type2 table decode function to reduce length
Xiaofei Tan [Tue, 26 Nov 2019 13:18:55 +0000 (14:18 +0100)]
rasdaemon: split OEM type2 table decode function to reduce length

This patch splits function decode_hip08_oem_type2_error() to reduce
length. Move header decoding and register dump to single function
separately.

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com> Date: Tue, 26 Nov 2019 20:12:31 +0800
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: split OEM type1 table decode function to reduce length
Xiaofei Tan [Tue, 26 Nov 2019 13:18:09 +0000 (14:18 +0100)]
rasdaemon: split OEM type1 table decode function to reduce length

This patch splits function decode_hip08_oem_type1_error() to reduce
length. Move header decoding and register dump to single function
separately.

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com> Date: Tue, 26 Nov 2019 20:12:30 +0800
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: fix sub module name of HHA and DDRC for hip08
Xiaofei Tan [Tue, 26 Nov 2019 13:17:34 +0000 (14:17 +0100)]
rasdaemon: fix sub module name of HHA and DDRC for hip08

Fix sub module name of HHA and DDRC for hip08, and add const to the
pointer parameter 'name' of step_vendor_data_tab().

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com> Date: Tue, 26 Nov 2019 20:12:29 +0800
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: decode submodule of OEM type1 for hip08
Xiaofei Tan [Tue, 26 Nov 2019 13:16:57 +0000 (14:16 +0100)]
rasdaemon: decode submodule of OEM type1 for hip08

Decode submodule of OEM type1 for hip08, and reconstruct the functions
of geting OEM module name and submodule name.

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com> Date: Tue, 26 Nov 2019 20:12:28 +0800
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: fix an warning reported by PC-Lint
Xiaofei Tan [Mon, 25 Nov 2019 09:38:45 +0000 (10:38 +0100)]
rasdaemon: fix an warning reported by PC-Lint

This patch fixes the following warning, and no function change:

Warning -- Storage class specified after a type

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com>
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: fix the wrong declaring of 'sruct ras_events' in ras-record.h
Xiaofei Tan [Mon, 25 Nov 2019 09:33:24 +0000 (10:33 +0100)]
rasdaemon: fix the wrong declaring of 'sruct ras_events' in ras-record.h

The following warning can be found by PC-Lint when do static code
analysis to the file non-standard-hisi_hip08.c:

Warning -- Declaration of symbol 'ras' hides symbol 'ras' (line 28, file ras-record.h)

This means that the local variable name 'ras' is same as an global
variable. In fact, there is no global variable named 'ras', but an
wrong declaring in ras-record.h.

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com>
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: add support for new AMD SMCA bank types
Brian WoodsGhannam, Yazen [Fri, 1 Nov 2019 14:48:14 +0000 (15:48 +0100)]
rasdaemon: add support for new AMD SMCA bank types

Going forward, the Scalable Machine Check Architecture (SMCA) has some
updated and additional bank types which show up in Zen2.  The differing
bank types include: CS_V2, PSP_V2, SMU_V2, MP5, NBIO, and PCIE.  The V2
bank types replace the original bank types but have unique HWID/MCAtype
IDs from the originals so there's no conflicts between different
versions or other bank types.  All of the differing bank types have new
MCE descriptions which have been added as well.

CC: "mchehab+samsung@kernel.org" <mchehab+samsung@kernel.org>, "Namburu, Chandu-babu" <chandu@amd.com> # Thread-Topic: [PATCH 2/2] rasdaemon: add support for new AMD SMCA bank types
Signed-off-by: Brian Woods <brian.woods@amd.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Cc: Chandu-babu Namburu <chandu@amd.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: rename CPU_NAPLES cputype
Brian WoodsGhannam, Yazen [Fri, 1 Nov 2019 14:48:13 +0000 (15:48 +0100)]
rasdaemon: rename CPU_NAPLES cputype

Change CPU_NAPLES to CPU_AMD_SMCA to reflect that it isn't just NAPLES
that is supported, but AMD's Scalable Machine Check Architecture (SMCA).

  [ Yazen: change family check to feature check, and change CPU name. ]

CC: "mchehab+samsung@kernel.org" <mchehab+samsung@kernel.org>, "Namburu, Chandu-babu" <chandu@amd.com> # Thread-Topic: [PATCH 1/2] rasdaemon: rename CPU_NAPLES cputype
Signed-off-by: Brian Woods <brian.woods@amd.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Cc: Chandu-babu Namburu <chandu@amd.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agoBump to version 0.6.5 v0.6.5
Mauro Carvalho Chehab [Wed, 20 Nov 2019 04:34:28 +0000 (05:34 +0100)]
Bump to version 0.6.5

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: store PCIe dev name and TLP header for the aer event
Shiju Jose [Wed, 13 Nov 2019 16:31:13 +0000 (16:31 +0000)]
rasdaemon: store PCIe dev name and TLP header for the aer event

This patch adds logging and recording of the PCIe dev name and the
TLP header for the aer event.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: fix for the ras-record.c:ras_mc_prepare_stmt() failure when new fields...
Shiju Jose [Wed, 13 Nov 2019 16:31:12 +0000 (16:31 +0000)]
rasdaemon: fix for the ras-record.c:ras_mc_prepare_stmt() failure when new fields added to the sql table

rasdaemon fails in the ras_mc_prepare_stmt() function when new fields are
added to the table's db_fields on top of the existing sql table in the
system.

This patch adds solution for this issue.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: add signal handling for the cleanup
Shiju Jose [Wed, 16 Oct 2019 16:34:01 +0000 (17:34 +0100)]
rasdaemon: add signal handling for the cleanup

Presently rasdaemon would not free allocated memory and
would not do other cleanup when the rasdaemon closed
with ctrl+c or kill etc.
This patch adds handling of the signals SIGINT, SIGTERM, SIGHUP
and SIGQUIT and do necessary clean ups when receive the
specified signals.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: add closure and cleanups for the database
Shiju Jose [Wed, 16 Oct 2019 16:34:00 +0000 (17:34 +0100)]
rasdaemon: add closure and cleanups for the database

This patch adds closure and cleanups for the sqlite3 database.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: delete multiple definitions of ARRAY_SIZE
Shiju Jose [Wed, 16 Oct 2019 16:33:59 +0000 (17:33 +0100)]
rasdaemon: delete multiple definitions of ARRAY_SIZE

This patch deletes multiple definitions of ARRAY_SIZE and
move the definition to a common file.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: fix memory leak in ras-events.c:add_event_handler()
Shiju Jose [Wed, 16 Oct 2019 16:33:58 +0000 (17:33 +0100)]
rasdaemon: fix memory leak in ras-events.c:add_event_handler()

This patch rearranges the free(page) call to prevent the
memory leak when __toggle_ras_mc_event() fail.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: fix missing fclose in ras-events.c:select_tracing_timestamp()
Shiju Jose [Wed, 16 Oct 2019 16:33:57 +0000 (17:33 +0100)]
rasdaemon: fix missing fclose in ras-events.c:select_tracing_timestamp()

This patch adds fix for missing fclose() in select_tracing_timestamp()
when return fail if can't parse /proc/uptime.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: fix memory leak in ras-events.c:handle_ras_events()
Shiju Jose [Wed, 16 Oct 2019 16:33:56 +0000 (17:33 +0100)]
rasdaemon: fix memory leak in ras-events.c:handle_ras_events()

This patch fix memory leak in handle_ras_events()
when failed to trace all supported RAS events.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agorasdaemon: fix cleanup issues in ras-events.c:read_ras_event_all_cpus()
Shiju Jose [Wed, 16 Oct 2019 16:33:55 +0000 (17:33 +0100)]
rasdaemon: fix cleanup issues in ras-events.c:read_ras_event_all_cpus()

This patch fix memory leaks and close the open files if the
open_trace() or read(fds[i].fd, page, pdata[i].ras->page_size)
function calls fail.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 years agoBump to version 0.6.4 v0.6.4
Mauro Carvalho Chehab [Thu, 10 Oct 2019 17:41:15 +0000 (14:41 -0300)]
Bump to version 0.6.4

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon: support three more modules for OEM type1 error for hip08
Xiaofei Tan [Tue, 8 Oct 2019 12:38:58 +0000 (20:38 +0800)]
rasdaemon: support three more modules for OEM type1 error for hip08

Support three more modules for OEM type1 error for hip08. They are
RDE, GIC and USB.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon: add timestamp for hip08 OEM error records in sqlite3 DB
Xiaofei Tan [Tue, 8 Oct 2019 12:38:57 +0000 (20:38 +0800)]
rasdaemon: add timestamp for hip08 OEM error records in sqlite3 DB

This patch does two things:
1.Add timestamp for hip08 OEM error records in sqlite3 DB.
2.Add suffix "_v2" for hip08 OEM event names to keep compatibility
with old sqlite3 DB.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon: change submodule ID of sqlite3 DB field to text for hip08
Xiaofei Tan [Tue, 8 Oct 2019 12:38:56 +0000 (20:38 +0800)]
rasdaemon: change submodule ID of sqlite3 DB field to text for hip08

Change submodule ID of sqlite3 DB field from integer to text for hip08
to make it easier to understand by user.

For example, from:
INSERT INTO hip08_oem_type2_event VALUES(1,1,1,0,0,'SMMU',2,
'corrected','');

change to:
INSERT INTO hip08_oem_type2_event VALUES(1,1,1,0,0,'SMMU','MGMT_SMMU',
'corrected','');

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon: add underscore(_) for some logging item names for hip08
Xiaofei Tan [Tue, 8 Oct 2019 12:38:55 +0000 (20:38 +0800)]
rasdaemon: add underscore(_) for some logging item names for hip08

Add underscore(_) for some logging item names for hip08. Then we can
match and catch specific fields of the log easily if needed.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon: optimize sqlite3 DB record of register fields for hip08
Xiaofei Tan [Tue, 8 Oct 2019 12:38:54 +0000 (20:38 +0800)]
rasdaemon: optimize sqlite3 DB record of register fields for hip08

Optimize sqlite3 DB record of register fields for hip08 by combining
all register fields to one text field, which will include register name.
This will make the record easier to read.

For example, from:
INSERT INTO hip08_oem_type2_event VALUES(1,1,1,0,0,'SMMU',2,'corrected',
273058,0,-1,0,1308622858,0,0,0,0,133,0,0,NULL);

change to:
INSERT INTO hip08_oem_type2_event VALUES(1,1,1,0,0,'SMMU',2,'corrected',
'ERR_FR_0=0x42aa2 ERR_FR_1=0x0 ERR_CTRL_0=0xffffffff ERR_CTRL_1=0x0
ERR_STATUS_0=0x4e00000a ERR_STATUS_1=0x0 ERR_ADDR_0=0x0, ERR_ADDR_1=0x0
ERR_MISC0_0=0x0 ERR_MISC0_1=0x90 ERR_MISC1_0=0x0 ERR_MISC1_1=0x0');

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon: fix the issue of sqlite3 integer bind parameter mismatch
Xiaofei Tan [Thu, 8 Aug 2019 02:14:30 +0000 (10:14 +0800)]
rasdaemon: fix the issue of sqlite3 integer bind parameter mismatch

Some interger fields of arm_event and mc_event are 8 bytes width,
and sqlite3_bind_int64() should be used when restore the event to
sqlite3. But we use sqlite3_bind_int() in current code. This will
lead to an wrong value in sqlite3 DB.

This patch is to fix the issue.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoREADME: updated instructions about sending patches
Mauro Carvalho Chehab [Wed, 4 Sep 2019 23:56:35 +0000 (20:56 -0300)]
README: updated instructions about sending patches

The instructions there are a little outdated. Sergio
suggested changing just my e-mail, but let's do a better job
and use my canonical e-mail (mchehab@kernel.org), plus add the
alternative of sending patches against either github or gitlab.

Suggested-by: Sergio Gelato <sergio.gelato@astro.su.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoFix URLs to git.kernel.org repositories in README file
Sergio Gelato [Wed, 19 Sep 2018 15:10:27 +0000 (12:10 -0300)]
Fix URLs to git.kernel.org repositories in README file

Some of the URLs to repositories on git.kernel.org were out of date and
non-functional. This commit replaces them with working alternatives.

Signed-off-by: Sergio Gelato <Sergio.Gelato@astro.su.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agofix file descriptor leak in ras-report.c:setup_report_socket()
Sergio Gelato [Wed, 19 Sep 2018 14:59:35 +0000 (11:59 -0300)]
fix file descriptor leak in ras-report.c:setup_report_socket()

A running instance of rasdaemon was seen to hit the limit on open file
descriptors. Most of the the descriptors were AF_UNIX STREAM sockets.
At the same time the limit was hit, attempts by rasdaemon to open the
SQLite database started failing with SQLite error 14.

This patch avoids leaking a socket file descriptor each time the connect()
call fails.

Signed-off-by: Sergio Gelato <Sergio.Gelato@astro.su.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoparse_ras_data: initialize record.cpu before pevent_print_event().
Sergio Gelato [Wed, 19 Sep 2018 14:58:31 +0000 (11:58 -0300)]
parse_ras_data: initialize record.cpu before pevent_print_event().

pevent_print_event() prints record.cpu; make sure it's initialized.
The cpu field from pthread_data is my best guess at a suitable value:
parse_ras_data() was already printing it separately.

Signed-off-by: Sergio Gelato <Sergio.Gelato@astro.su.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoparse_ras_data: flush trace buffer immediately, not on next call
Sergio Gelato [Wed, 19 Sep 2018 14:57:42 +0000 (11:57 -0300)]
parse_ras_data: flush trace buffer immediately, not on next call

parse_ras_data() was calling fflush() before, not after printf().
As a result, information about an event would not be printed
immediately but possibly much later.

Signed-off-by: Sergio Gelato <Sergio.Gelato@astro.su.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoReplace whitespaces by tabs
Mauro Carvalho Chehab [Wed, 4 Sep 2019 23:44:55 +0000 (20:44 -0300)]
Replace whitespaces by tabs

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoras-diskerror: dev_t is in sys/types.h in musl
Henrik Riomar [Thu, 29 Aug 2019 06:54:56 +0000 (08:54 +0200)]
ras-diskerror: dev_t is in sys/types.h in musl

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoBump to version 0.6.3 v0.6.3
Mauro Carvalho Chehab [Fri, 23 Aug 2019 11:01:39 +0000 (08:01 -0300)]
Bump to version 0.6.3

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoconfigure.ac: add an option to enable all features
Mauro Carvalho Chehab [Fri, 23 Aug 2019 11:26:24 +0000 (08:26 -0300)]
configure.ac: add an option to enable all features

At least for build testing, an option to enable everything
can be handful.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoAdd newline to summary to match errors output
Geoff Winterbourne [Thu, 25 Jul 2019 20:13:50 +0000 (14:13 -0600)]
Add newline to summary to match errors output

5 years agoSwitch to kernel filters for block_rq_complete
Cong Wang [Thu, 13 Jun 2019 18:51:39 +0000 (11:51 -0700)]
Switch to kernel filters for block_rq_complete

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
5 years agoAdd disk I/O error monitoring
Cong Wang [Wed, 12 Jun 2019 20:24:49 +0000 (13:24 -0700)]
Add disk I/O error monitoring

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
5 years agoMake event filter type specific
Cong Wang [Wed, 12 Jun 2019 22:06:37 +0000 (15:06 -0700)]
Make event filter type specific

struct ras_events passed via context pointer is not per event,
therefore the per event filter must be specific to each event.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
5 years agoras-mce-handler: Add support for Hygon Dhyana family 18h processor
Pu Wen [Thu, 23 May 2019 13:00:22 +0000 (21:00 +0800)]
ras-mce-handler: Add support for Hygon Dhyana family 18h processor

The Hygon Dhyana family 18h processor is derived from AMD family 17h.
The Hygon Dhyana support to Linux is already accepted upstream[1].

Add Hygon Dhyana support to mce handler of rasdaemon in order to handle
MCE events on Hygon Dhyana platforms.

Reference:
[1] https://git.kernel.org/tip/fec98069fb72fb656304a3e52265e0c2fc9adf87

Signed-off-by: Pu Wen <puwen@hygon.cn>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoFix Perl warnings in ras-mc-ctl
Cong Wang [Thu, 13 Jun 2019 05:26:20 +0000 (22:26 -0700)]
Fix Perl warnings in ras-mc-ctl

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
5 years agorasdaemon:add logging HiSilicon HIP08 PCIe local errors
Shiju Jose [Mon, 17 Jun 2019 14:28:52 +0000 (15:28 +0100)]
rasdaemon:add logging HiSilicon HIP08 PCIe local errors

This patch adds logging for the HiSilicon HIP08 PCIe local errors.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon:add logging HiSilicon HIP08 H/W errors reported in the OEM format2
Shiju Jose [Mon, 17 Jun 2019 14:28:51 +0000 (15:28 +0100)]
rasdaemon:add logging HiSilicon HIP08 H/W errors reported in the OEM format2

This patch adds logging the HiSilicon HIP08 H/W errors reported
in the non-standard OEM format2.
These errors are from the H/W modules SMMU, HHA, HLLC, PA and DDRC.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon:add logging HiSilicon HIP08 H/W errors reported in the OEM format1
Shiju Jose [Mon, 17 Jun 2019 14:28:50 +0000 (15:28 +0100)]
rasdaemon:add logging HiSilicon HIP08 H/W errors reported in the OEM format1

This patch adds logging the HiSilicon HIP08 H/W errors reported
in the non-standard OEM format1.
These errors are from the H/W modules MN, PLL, SLLC, AA, SIOE,
POE, DISP, LPC, SAS and SATA.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon: update iteration logic for the non-standard error decoding functions
Shiju Jose [Mon, 17 Jun 2019 14:28:49 +0000 (15:28 +0100)]
rasdaemon: update iteration logic for the non-standard error decoding functions

This patch updates the iteration logic for the non-standard
error decoding functions.

Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon: rearrange HiSilicon HIP07 decoding function table
Shiju Jose [Mon, 17 Jun 2019 14:28:48 +0000 (15:28 +0100)]
rasdaemon: rearrange HiSilicon HIP07 decoding function table

This patch rearranges the decoding function table for the
HiSilicon HIP07 non-standard errors.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agorasdaemon:print non-standard error data if not decoded
Shiju Jose [Mon, 17 Jun 2019 14:28:47 +0000 (15:28 +0100)]
rasdaemon:print non-standard error data if not decoded

This patch change printing non-standard error data
only if not decoded.

Suggested-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoras-mce-handler: fix mcgstatus message print
Mauro Carvalho Chehab [Tue, 11 Jun 2019 18:01:38 +0000 (15:01 -0300)]
ras-mce-handler: fix mcgstatus message print

As warned by clang, the test there is wrong:

ras-mce-handler.c:344:9: warning: address of array 'e->mcgstatus_msg' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (e->mcgstatus_msg)
        ~~  ~~~^~~~~~~~~~~~~

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoTravis: enable all possible features
Mauro Carvalho Chehab [Tue, 11 Jun 2019 17:58:23 +0000 (14:58 -0300)]
Travis: enable all possible features

Several of those are arm-specific, but, as the goal here is just
to compile-test, enable them all.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoras-events: fix a warning when built without devlink
Mauro Carvalho Chehab [Tue, 11 Jun 2019 17:56:08 +0000 (14:56 -0300)]
ras-events: fix a warning when built without devlink

ras-events.c:667:8: warning: unused variable ‘filter_str’ [-Wunused-variable]
  667 |  char *filter_str = NULL;
      |        ^~~~~~~~~~

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agofix rasdaemon high CPU usage when part of CPUs offline
Ying Lv [Wed, 15 May 2019 03:15:42 +0000 (11:15 +0800)]
fix rasdaemon high CPU usage when part of CPUs offline

When we set part of CPU core offline, such as by setting the kernel cmdline
maxcpus = N(N is less than the total number of system CPU cores).
And then, we will observe that the CPU usage of some rasdaemon threads
is very close to 100.

This is because when part of CPU offline, poll in read_ras_event_all_cpus func
will fallback to pthread way.
Offlined CPU thread will return negative value when read trace_pipe_raw,
negative return value will covert to positive value because of 'unsigned size'.
So code will always go into 'size > 0' branch, and the CPU usage is too high.

Here, variable size uses int type will go to the right branch.

Fiexs: eff7c9e0("ras-events: Only use pthreads for collect if poll() not available")
Reported-by: Zhipeng Xie <xiezhipeng1@huawei.com>
Signed-off-by: Ying Lv <lvying6@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoMerge branch 'congwang-devlink'
Mauro Carvalho Chehab [Tue, 11 Jun 2019 17:53:15 +0000 (14:53 -0300)]
Merge branch 'congwang-devlink'

* congwang-devlink:
  TravisCI: add support for devlink build
  libtrace: Fix get_field_str() for dynamic strings
  Add devlink filter and net_dev_xmit_timeout
  Add devlink events

5 years agoTravisCI: add support for devlink build
Mauro Carvalho Chehab [Tue, 11 Jun 2019 17:44:22 +0000 (14:44 -0300)]
TravisCI: add support for devlink build

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agoMerge branch 'devlink' of https://github.com/congwang/rasdaemon into congwang-devlink
Mauro Carvalho Chehab [Tue, 11 Jun 2019 17:42:17 +0000 (14:42 -0300)]
Merge branch 'devlink' of https://github.com/congwang/rasdaemon into congwang-devlink

* 'devlink' of https://github.com/congwang/rasdaemon:
  libtrace: Fix get_field_str() for dynamic strings
  Add devlink filter and net_dev_xmit_timeout
  Add devlink events

5 years agoAdd support for Travis CI builds
Mauro Carvalho Chehab [Tue, 11 Jun 2019 17:32:02 +0000 (14:32 -0300)]
Add support for Travis CI builds

Let it be built with Travis CI when merged at github.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
5 years agolibtrace: Fix get_field_str() for dynamic strings
Cong Wang [Sun, 2 Jun 2019 03:52:19 +0000 (20:52 -0700)]
libtrace: Fix get_field_str() for dynamic strings

This cherry-picks the libtraceevent commit d777f8de99b0
("tools lib traceevent: Fix get_field_str() for dynamic strings")
from Linux kernel git repo.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
5 years agoAdd devlink filter and net_dev_xmit_timeout
Cong Wang [Sun, 2 Jun 2019 00:16:54 +0000 (17:16 -0700)]
Add devlink filter and net_dev_xmit_timeout

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
5 years agoAdd devlink events
Cong Wang [Thu, 25 Apr 2019 20:21:19 +0000 (13:21 -0700)]
Add devlink events

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
6 years agoMerge branch 'cnamburu-naples-support'
Mauro Carvalho Chehab [Fri, 26 Apr 2019 12:30:55 +0000 (09:30 -0300)]
Merge branch 'cnamburu-naples-support'

* cnamburu-naples-support:
  rasdaemon: add support for AMD Scalable MCA

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6 years agorasdaemon: add support for AMD Scalable MCA
Chandu-babu Namburu [Wed, 30 Jan 2019 15:06:45 +0000 (20:36 +0530)]
rasdaemon: add support for AMD Scalable MCA

Add logic here to decode errors from all known IP blocks for
AMD Scalable MCA supported processors

Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Chandu-babu Namburu <chandu@amd.com>
6 years agoBump to version 0.6.2 v0.6.2
Mauro Carvalho Chehab [Tue, 14 Aug 2018 17:06:06 +0000 (14:06 -0300)]
Bump to version 0.6.2

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6 years agoINSTALL: update it from auto-generated data
Mauro Carvalho Chehab [Tue, 14 Aug 2018 16:57:44 +0000 (13:57 -0300)]
INSTALL: update it from auto-generated data

There were some changes on new autotools for the INSTALL file
Update it to match them.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6 years agoChangeLog: Reorder to place new stuff at the beginning
Mauro Carvalho Chehab [Tue, 14 Aug 2018 16:56:45 +0000 (13:56 -0300)]
ChangeLog: Reorder to place new stuff at the beginning

It is easier to read a changelog from the new to the oldest
entry.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6 years agorasdaemon: ras-mc-ctl: add option to show error counts
Aristeu Rozanski [Wed, 1 Aug 2018 20:29:58 +0000 (16:29 -0400)]
rasdaemon: ras-mc-ctl: add option to show error counts

In some scenarios it might not be desirable to have a daemon running
to parse and store the errors provided by EDAC and only having the
number of CEs and UEs is enough. This patch implements this feature
as an ras-mc-ctl option.

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6 years agomce-amd-k8: be sure to not go past error_msg buffer
Mauro Carvalho Chehab [Tue, 14 Aug 2018 16:13:54 +0000 (13:13 -0300)]
mce-amd-k8: be sure to not go past error_msg buffer

As warned by gcc:

mce-amd-k8.c: In function ‘decode_k8_generic_errcode’:
mce-amd-k8.c:136:30: warning: ‘) ’ directive output may be truncated writing 2 bytes into a region of size between 0 and 4095 [-Wformat-truncation=]
   mce_snprintf(e->error_msg, "(%s) ", tmp_buf);
                              ^~~~~~~
ras-mce-handler.h:104:29: note: in definition of macro ‘mce_snprintf’
  snprintf(buf + __n, __len, fmt,  ##arg);  \
                             ^~~
ras-mce-handler.h:104:2: note: ‘snprintf’ output between 4 and 4099 bytes into a destination of size 4096
  snprintf(buf + __n, __len, fmt,  ##arg);  \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mce-amd-k8.c:136:3: note: in expansion of macro ‘mce_snprintf’
   mce_snprintf(e->error_msg, "(%s) ", tmp_buf);
   ^~~~~~~~~~~~

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6 years agoras-report: avoid copying after addr.sun_path
Mauro Carvalho Chehab [Tue, 14 Aug 2018 16:10:10 +0000 (13:10 -0300)]
ras-report: avoid copying after addr.sun_path

As warned by gcc:

ras-report.c: In function ‘setup_report_socket’:
ras-report.c:36:2: warning: ‘strncpy’ output truncated before terminating nul copying 25 bytes from a string of the same length [-Wstringop-truncation]
  strncpy(addr.sun_path, ABRT_SOCKET, strlen(ABRT_SOCKET));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The strncpy logic there is wrong. Fix it and be sure to have a NUL
terminated string filled at addr.sun_path.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6 years agomce-intel-*: fix a warning when using FIELD(<num>, NULL)
Mauro Carvalho Chehab [Tue, 14 Aug 2018 16:06:27 +0000 (13:06 -0300)]
mce-intel-*: fix a warning when using FIELD(<num>, NULL)

Internally, FIELD() macro checks the size of an array, by
using ARRAY_SIZE. Well, this macro causes a division by zero
if NULL is used, as its type is void, as warned:

mce-intel-dunnington.c:30:2: note: in expansion of macro ‘FIELD’
  FIELD(17, NULL),
  ^~~~~
ras-mce-handler.h:28:33: warning: division ‘sizeof (void *) / sizeof (void)’ does not compute the number of array elements [-Wsizeof-pointer-div]
 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(*(x)))
                                 ^
bitfield.h:37:51: note: in expansion of macro ‘ARRAY_SIZE’
 #define FIELD(start_bit, name) { start_bit, name, ARRAY_SIZE(name) }
                                                   ^~~~~~~~~~

While this warning is harmless, it may prevent seeing more serios
warnings. So, add a FIELD_NULL(<num>) macro to avoid that.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6 years agorasdaemon: use separate string array for error status
Thomas Tai [Mon, 14 May 2018 14:33:48 +0000 (10:33 -0400)]
rasdaemon: use separate string array for error status

The bit field description for correctable status register
and uncorrectable status register are different. Using a
single aer_errors string array will cause bit[12] to
overlap and thus recording the wrong description.
Using a separate variable to switch between correctable
and uncorrectable error is needed.

Signed-off-by: Thomas Tai <thomas.tai@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6 years agorasdaemon: fix PCIe AER error type
Thomas Tai [Mon, 14 May 2018 14:33:47 +0000 (10:33 -0400)]
rasdaemon: fix PCIe AER error type

The error types between PCIe AER and CPU Machine Check are
different. when handling aer_event, the PCIe AER error
type should be used. Add an enum to match the kernel
PCIe AER and use it to decode the error type.

Signed-off-by: Thomas Tai <thomas.tai@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7 years agoBump version to 0.6.1 v0.6.1
Mauro Carvalho Chehab [Wed, 25 Apr 2018 10:33:39 +0000 (07:33 -0300)]
Bump version to 0.6.1

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7 years agorasdaemon: Update DIMM labels for 2-socket servers
Shubhrata Priya [Tue, 17 Apr 2018 20:17:58 +0000 (20:17 +0000)]
rasdaemon: Update DIMM labels for 2-socket servers

Update labels for some 2-socket DellEMC servers.

Signed-off-by: Charles Rose <charles.rose@dell.com>
Signed-off-by: Shubhrata Priya <shubhrata.priyadarsh@dell.com>
Tested-by: Shubhrata Priya <shubhrata.priyadarsh@dell.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7 years agorasdaemon: Add Skylake Xeon MSCOD values
Greg Edwards [Wed, 28 Mar 2018 22:10:46 +0000 (16:10 -0600)]
rasdaemon: Add Skylake Xeon MSCOD values

Based on mcelog commits e4aca6312aee ("Add support to decode MSCOD
values for Skylake server") and 34f03e306c36 ("mcelog: Change name of
skylake interconnect from QPI to UPI").

Signed-off-by: Greg Edwards <gedwards@ddn.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7 years agorasdaemon: ARM: fully initialize ras_arm_event
Aristeu Rozanski [Fri, 2 Feb 2018 15:20:48 +0000 (10:20 -0500)]
rasdaemon: ARM: fully initialize ras_arm_event

Issue found by covscan:

1. rasdaemon-0.4.1/ras-arm-handler.c:32: var_decl: Declaring variable "ev" without initializer.
16. rasdaemon-0.4.1/ras-arm-handler.c:81: uninit_use_in_call: Using uninitialized value "ev.error_count" when calling "ras_store_arm_record".
23. rasdaemon-0.4.1/ras-record.c:243:2: read_parm_fld: Reading a parameter field.

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7 years agoUpdate my email
Mauro Carvalho Chehab [Wed, 25 Apr 2018 10:20:08 +0000 (07:20 -0300)]
Update my email

As I'll stop using mchehab@s-opensource.com (and already
stopped using @osg.samsung for some sime), update all e-mail
occurrences.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7 years agomce-intel-p4-p6: prevent build errors with -Werror=format-security v0.6.0
Mauro Carvalho Chehab [Sat, 14 Oct 2017 10:26:30 +0000 (07:26 -0300)]
mce-intel-p4-p6: prevent build errors with -Werror=format-security

On Fedora, -Werror=format-security is now used on packages, with
causes the following build error:

mce-intel-p4-p6.c: In function 'p4_decode_model':
mce-intel-p4-p6.c:130:4: error: format not a string literal and no format arguments [-Werror=format-security]
    mce_snprintf(e->error_msg, p4_model[i].str);
    ^~~~~~~~~~~~
cc1: some warnings being treated as errors

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agoBump to version 0.6.0
Mauro Carvalho Chehab [Sat, 14 Oct 2017 09:25:12 +0000 (06:25 -0300)]
Bump to version 0.6.0

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon.spec: add other --enable options
Mauro Carvalho Chehab [Sat, 14 Oct 2017 09:47:53 +0000 (06:47 -0300)]
rasdaemon.spec: add other --enable options

As we use the rasdaemon.spec in order to check if everything
is ok, add the new --enable-foo options there.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agoMakefile: add new rasdaemon headers
Mauro Carvalho Chehab [Sat, 14 Oct 2017 09:42:17 +0000 (06:42 -0300)]
Makefile: add new rasdaemon headers

Those are needed for make "distdir" tarball creation.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon: update bugs report information
Mauro Carvalho Chehab [Sat, 14 Oct 2017 09:26:54 +0000 (06:26 -0300)]
rasdaemon: update bugs report information

I don't work at Red Hat since 2013. My e-mail address there
has long gone! Replace it to my kernel.org e-mail, as this
is more permanent.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agoconfigure.ac: display if ARM error report is enabled
Mauro Carvalho Chehab [Sat, 14 Oct 2017 09:12:45 +0000 (06:12 -0300)]
configure.ac: display if ARM error report is enabled

changeset 5662e5376adc ("rasdaemon: add support for ARM events")
added a new ./configure argument. Display if it is enabled or
not.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon: add support for ARM events
Tyler Baicar [Tue, 12 Sep 2017 20:58:25 +0000 (14:58 -0600)]
rasdaemon: add support for ARM events

Add support to handle the ARM kernel trace events
which cover RAS ARM processor errors.

[V4]: fix arm_event_tab usage

Change-Id: Ife99c97042498d5fad4d9b8e873ecfba6a47947d
Signed-off-by: Tyler Baicar <tbaicar@codeaurora.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agoconfigure.ac: show if Hisilicon error report are enabled
Mauro Carvalho Chehab [Sat, 14 Oct 2017 09:07:53 +0000 (06:07 -0300)]
configure.ac: show if Hisilicon error report are enabled

As changeset b856c89a11d7 ("rasdaemon:add support for
Hisilicon non-standard error decoder") added a new
configurable error report, show if it is enabled or not.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon:add support for Hisilicon non-standard error decoder
shiju.jose@huawei.com [Wed, 4 Oct 2017 09:11:21 +0000 (10:11 +0100)]
rasdaemon:add support for Hisilicon non-standard error decoder

1. This patch add support to decode the non-standard
error information for Hisilicon HIP07 SAS HW module.
2. Add stub decoder for Hislicon HIP07 HNS HW module.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon:add support for non-standard error decoder
shiju.jose@huawei.com [Wed, 4 Oct 2017 09:11:08 +0000 (10:11 +0100)]
rasdaemon:add support for non-standard error decoder

This patch add support to decode the non-standard
error information.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon: Update DIMM labels for Intel Skylake servers
Charles.Rose@dell.com [Fri, 11 Aug 2017 20:09:10 +0000 (20:09 +0000)]
rasdaemon: Update DIMM labels for Intel Skylake servers

Update labels for Intel Skylake based Dell PowerEdge servers.

Signed-off-by: Charles Rose <charles_rose@dell.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agoconfigure.ac: print if CPER non-standard logs are enabled
Mauro Carvalho Chehab [Fri, 11 Aug 2017 20:48:05 +0000 (17:48 -0300)]
configure.ac: print if CPER non-standard logs are enabled

Now that we have a parser for CPER non-standard errors,
display if such option is enabled.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon: add support for non standard CPER section events
Tyler Baicar [Mon, 12 Jun 2017 22:16:04 +0000 (16:16 -0600)]
rasdaemon: add support for non standard CPER section events

Add support to handle the non standard CPER section kernel trace
events which cover RAS errors who's section type is unknown.

Signed-off-by: Tyler Baicar <tbaicar@codeaurora.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agoBump to version 0.5.9 v0.5.9
Mauro Carvalho Chehab [Thu, 8 Jun 2017 09:29:49 +0000 (06:29 -0300)]
Bump to version 0.5.9

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon.spec.in: update it to reflect current needs
Mauro Carvalho Chehab [Thu, 8 Jun 2017 09:46:11 +0000 (06:46 -0300)]
rasdaemon.spec.in: update it to reflect current needs

Keep it more or less in sync with the Fedora version of it,
in order to allow it to be built with the new-ver.sh script.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon: add Knights Mill model
Aristeu Rozanski [Thu, 4 May 2017 18:02:53 +0000 (14:02 -0400)]
rasdaemon: add Knights Mill model

Knights Mill is similar to Knights Landing and can use the same code.

Signed-off-by: Aristeu Rozanski <aris@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agorasdaemon: Update DIMM labels for Dell Servers
Charles.Rose@dell.com [Tue, 6 Jun 2017 21:42:21 +0000 (21:42 +0000)]
rasdaemon: Update DIMM labels for Dell Servers

Updated to include Dell PowerEdge Servers that are current.
Note the use of Product field instead of Model. Tested on
multiple Dell PowerEdge servers.

Signed-off-by: Charles Rose <charles_rose@dell.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
7 years agoconfigure.ac: report enabled features
Mauro Carvalho Chehab [Thu, 8 Jun 2017 09:05:48 +0000 (06:05 -0300)]
configure.ac: report enabled features

We're starting to have too many optional features. Report
what options are enabled at the end of ./configure output.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
8 years agoUpdate it to point to the new repository
Mauro Carvalho Chehab [Tue, 14 Mar 2017 12:32:12 +0000 (09:32 -0300)]
Update it to point to the new repository

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
9 years agoBump version to 0.5.8 v0.5.8
Mauro Carvalho Chehab [Fri, 15 Apr 2016 10:07:11 +0000 (07:07 -0300)]
Bump version to 0.5.8

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
9 years agoAdd Broadwell EP/EX MSCOD values
Aristeu Rozanski [Fri, 8 Apr 2016 19:07:19 +0000 (15:07 -0400)]
Add Broadwell EP/EX MSCOD values

Based on mcelog commit id 32252e9c37e97ea5083d90d2cf194bb85a4a0cda.

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
9 years agoAdd Broadwell DE MSCOD values
Aristeu Rozanski [Fri, 8 Apr 2016 19:07:18 +0000 (15:07 -0400)]
Add Broadwell DE MSCOD values

Based on mcelog commit id 32252e9c37e97ea5083d90d2cf194bb85a4a0cda.

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
9 years agoBump version to 0.5.7 v0.5.7
Mauro Carvalho Chehab [Fri, 5 Feb 2016 17:24:42 +0000 (15:24 -0200)]
Bump version to 0.5.7

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
9 years agomce-intel-knl: Fix CodingStyle
Mauro Carvalho Chehab [Fri, 5 Feb 2016 17:15:18 +0000 (15:15 -0200)]
mce-intel-knl: Fix CodingStyle

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
9 years agorasdaemon: Add support for Knights Landing processor
Marcin Koss [Thu, 3 Dec 2015 14:19:47 +0000 (15:19 +0100)]
rasdaemon: Add support for Knights Landing processor

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>