Blame SOURCES/5d00690583860313916825ce891a7b0d8005a0f9.patch
|
David Johansen |
447ac5 |
commit 5d00690583860313916825ce891a7b0d8005a0f9
|
|
David Johansen |
45192c |
Author: Cong Wang <xiyou.wangcong@gmail.com>
|
|
David Johansen |
45192c |
Date: Fri Feb 28 12:37:15 2020 -0800
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
Match rankX in ras-mc-ctl
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
According to kernel doc:
|
|
David Johansen |
45192c |
https://www.kernel.org/doc/html/v4.10/admin-guide/ras.html
|
|
David Johansen |
45192c |
mcX directory contains either dimmX or rankX directories.
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
|
|
David Johansen |
45192c |
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in
|
|
David Johansen |
447ac5 |
index 54ab180..ff38143 100755
|
|
David Johansen |
45192c |
--- a/util/ras-mc-ctl.in
|
|
David Johansen |
45192c |
+++ b/util/ras-mc-ctl.in
|
|
David Johansen |
45192c |
@@ -247,7 +247,7 @@ sub parse_dimm_nodes
|
|
David Johansen |
45192c |
$mc =~ s,.*mc(\d+).*,$1,;
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
my $dimm = $file;
|
|
David Johansen |
45192c |
- $dimm =~ s,.*dimm(\d+).*,$1,;
|
|
David Johansen |
45192c |
+ $dimm =~ s,.*(rank|dimm)(\d+).*,$2,;
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
open IN, $file;
|
|
David Johansen |
45192c |
my $location = <IN>;
|