Skip to contentSkip to conversation

edac: xgene: fix cpuid abuse

PATCH New Loc Ho 2 participants 2 messages Jun 1, 2015 – Jun 2, 2015

Subsystems (3)
lore
Share & tools
lore

Loc Ho

author
#0 lore raw

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
index 480911c..78edb80 100644
@@ -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
maintainer
#1 lore raw

PATCH 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.

[ Changed subnode to "apm,xgene-edac-pmd-v2", adjusted check. ]
Cc devicetree at vger.kernel.org
Cc dougthompson at xmission.com
Cc ijc+devicetree at hellion.org.uk
Cc jcm at redhat.com
Cc linux-arm-kernel at lists.infradead.org
Cc linux-edac <[email protected]>
Cc mark.rutland at arm.com
Cc mchehab at osg.samsung.com
Cc patches at apm.com
Cc robh+dt at kernel.org
---
 .../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
index 480911c38ff9..78edb80002c8 100644
@@ -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.
--