From b5b4cab5f60fc4f3b6f93cfb20f61853c4904cd9 Mon Sep 17 00:00:00 2001 From: renxichen Date: Wed, 20 Dec 2023 10:33:07 +0800 Subject: [PATCH] Change DDR4 to DDR for i10nm platforms --- ...R4-string-to-DDR-for-i10nm-platforms.patch | 41 +++++++++++++++++++ mcelog.spec | 7 +++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 backport-mcelog-Change-DDR4-string-to-DDR-for-i10nm-platforms.patch diff --git a/backport-mcelog-Change-DDR4-string-to-DDR-for-i10nm-platforms.patch b/backport-mcelog-Change-DDR4-string-to-DDR-for-i10nm-platforms.patch new file mode 100644 index 0000000..c7e7a7a --- /dev/null +++ b/backport-mcelog-Change-DDR4-string-to-DDR-for-i10nm-platforms.patch @@ -0,0 +1,41 @@ +From 41ad98a81cc2c1a85dfdbff16eafe153b99e7866 Mon Sep 17 00:00:00 2001 +From: Tony Luck +Date: Fri, 3 Dec 2021 09:44:04 -0800 +Subject: [PATCH] mcelog: Change "DDR4" string to "DDR" for i10nm platforms + +There are i10nm platforms that support DDR5 as well as some that support +DDR4. + +Change the DDR4 string to DDR to avoid confusion. + +Signed-off-by: Tony Luck +Signed-off-by: Andi Kleen +--- + i10nm.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/i10nm.c b/i10nm.c +index b629c27..3a0e97c 100644 +--- a/i10nm.c ++++ b/i10nm.c +@@ -191,7 +191,7 @@ static char *imc_1[] = { + }; + + static char *imc_2[] = { +- [0x00] = "DDR4 command / address parity error", ++ [0x00] = "DDR command / address parity error", + [0x20] = "HBM command / address parity error", + [0x21] = "HBM data parity error", + }; +@@ -204,7 +204,7 @@ static char *imc_8[] = { + [0x00] = "DDR-T bad request", + [0x01] = "DDR Data response to an invalid entry", + [0x02] = "DDR data response to an entry not expecting data", +- [0x03] = "DDR4 completion to an invalid entry", ++ [0x03] = "DDR completion to an invalid entry", + [0x04] = "DDR-T completion to an invalid entry", + [0x05] = "DDR data/completion FIFO overflow", + [0x06] = "DDR-T ERID correctable parity error", +-- +2.27.0 + diff --git a/mcelog.spec b/mcelog.spec index 60ae2f4..1149daf 100644 --- a/mcelog.spec +++ b/mcelog.spec @@ -5,7 +5,7 @@ Name: mcelog Version: 179 -Release: 5 +Release: 6 Epoch: 3 Summary: Linux kernel machine check handling middleware License: GPLv2 @@ -17,6 +17,7 @@ Source3: mcelog.conf Patch0:backport-fix-the-buf-not-freed-in-read_field.patch Patch1:backport-fix-warnings-in-sysfs.patch +Patch2:backport-mcelog-Change-DDR4-string-to-DDR-for-i10nm-platforms.patch ExclusiveArch: i686 x86_64 BuildRequires: bison flex systemd gcc psmisc @@ -38,6 +39,7 @@ driver error recovery handler and PCIE AER core handler. %setup -q -n %{name}-%{last_tar_version} -a 1 -a 2 %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build make CFLAGS="$RPM_OPT_FLAGS -Wl,-z,relro,-z,now -fpie" LDFLAGS="-Wl,-z,relro,-z,now -fpie -pie" @@ -88,6 +90,9 @@ rm -rf $RPM_BUILD_ROOT %attr(0644,root,root) %{_mandir}/*/* %changelog +* Wed Dec 20 2023 renhongxun - 3:179-6 +- Change DDR4 to DDR for i10nm platforms + * Tue Jun 20 2023 zhangnan - 3:179-5 - enable check only during obs build -- Gitee