edac: xgene: fix cpuid abuse
Subsystems (3)
PATCH 1/1 edac: xgene: fix cpuid abuse
The new x-gene EDAC driver incorrectly tried to figure out the version of one of its IP blocks by looking at the version of the CPU core, which is only vagely related.
This removes the incorrect code and instead uses the version of the IP block in the compatible string where it belongs.
Found using build testing on x86, which does not provide the arm64 cpuid interface.
This version is based on Arnd original version.
--- .../devicetree/bindings/edac/apm-xgene-edac.txt | 3 +- drivers/edac/xgene_edac.c | 55 +++----------------- 2 files changed, 10 insertions(+), 48 deletions(-)
Documentation/devicetree/bindings/edac/apm-xgene-edac.txt +2 -1
@@ -25,7 +25,8 @@ Required properties for memory controller subnode: - memory-controller : Instance number of the memory controller. Required properties for PMD subnode: -- compatible : Shall be "apm,xgene-edac-pmd". +- compatible : Shall be "apm,xgene-edac-pmd" or + "apm,xgene-edac-pmd-v2". - reg : First resource shall be the PMD resource. - pmd-controller : Instance number of the PMD controller.
drivers/edac/xgene_edac.c +8 -47
91 lines not on this page · raw message
Signature · 1 line
1.7.1
Borislav Petkov
maintainerPATCH 1/1 edac: xgene: fix cpuid abuse
Quoted 11 lines · Loc Ho
The new x-gene EDAC driver incorrectly tried to figure out the version of one of its IP blocks by looking at the version of the CPU core, which is only vagely related.
This removes the incorrect code and instead uses the version of the IP block in the compatible string where it belongs.
Found using build testing on x86, which does not provide the arm64 cpuid interface.
This version is based on Arnd original version.
... and I applied it and restored Arnd's authorship as this is his patch.
I have added you to the Signed-off-by chain and documented the changes you did, as such handling should be documented properly in the history and the path of this patch upstream, see below.
It passes all *config builds on x86 so I'd guess we're ok. Will appear in linux-next tomorrow, let's see what breaks now. :-)
---
From: Arnd Bergmann <[email protected]>
Date: Mon, 1 Jun 2015 16:09:35 -0600
Subject: [PATCH] EDAC, xgene: Fix cpuid abuse
The new x-gene EDAC driver incorrectly tried to figure out the version of one of its IP blocks by looking at the version of the CPU core, which is only vagely related.
This removes the incorrect code and instead uses the version of the IP block in the compatible string where it belongs.
Found using build testing on x86, which does not provide the arm64 cpuid interface.
--- .../devicetree/bindings/edac/apm-xgene-edac.txt | 3 +- drivers/edac/xgene_edac.c | 55 ++++------------------ 2 files changed, 10 insertions(+), 48 deletions(-)
Documentation/devicetree/bindings/edac/apm-xgene-edac.txt +2 -1
@@ -25,7 +25,8 @@ Required properties for memory controller subnode: - memory-controller : Instance number of the memory controller. Required properties for PMD subnode: -- compatible : Shall be "apm,xgene-edac-pmd". +- compatible : Shall be "apm,xgene-edac-pmd" or + "apm,xgene-edac-pmd-v2". - reg : First resource shall be the PMD resource. - pmd-controller : Instance number of the PMD controller.
drivers/edac/xgene_edac.c +8 -47
91 lines not on this page · raw message
Signature · 8 lines
2.3.5
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--