Skip to contentSkip to conversation

x86, mce: Consolidate AMD mcheck initialization

PATCH Superseded Aravind Gopalakrishnan 2 participants 4 messages May 21, 2014 – May 27, 2014

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86, mce: Consolidate AMD mcheck initialization

amd_k8.c did a lot of common work and very little K8 specific work. So merge init functions of amd_f10.c and amd_k8.c and move it into the common amd_mcheck_init handler. With that done, there is not much left in either files, so fold all code into just one file - mce_amd.c

While at it, update the comments regarding documentation with correct URL's and revision numbers.

Also, update copyright info.

---
 xen/arch/x86/cpu/mcheck/Makefile  |    2 -
 xen/arch/x86/cpu/mcheck/amd_f10.c |  118 ---------------------------
 xen/arch/x86/cpu/mcheck/amd_k8.c  |  117 ---------------------------
 xen/arch/x86/cpu/mcheck/mce_amd.c |  162 +++++++++++++++++++++++++++++++++----
 4 files changed, 147 insertions(+), 252 deletions(-)
 delete mode 100644 xen/arch/x86/cpu/mcheck/amd_f10.c
 delete mode 100644 xen/arch/x86/cpu/mcheck/amd_k8.c
xen/arch/x86/cpu/mcheck/Makefile +0 -2
index c8cd5f9..0d63ff9 100644
@@ -1,6 +1,4 @@
 obj-y += amd_nonfatal.o
-obj-y += amd_k8.o
-obj-y += amd_f10.o
 obj-y += mce_amd.o
 obj-y += mcaction.o
 obj-y += barrier.o
xen/arch/x86/cpu/mcheck/amd_f10.c deleted +0 -118

118 lines not on this page · raw message

xen/arch/x86/cpu/mcheck/amd_k8.c deleted +0 -117

117 lines not on this page · raw message

xen/arch/x86/cpu/mcheck/mce_amd.c +147 -15

191 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 21.05.14 at 23:06, <[email protected]> wrote:

amd_k8.c did a lot of common work and very little K8 specific work. So merge init functions of amd_f10.c and amd_k8.c and move it into the common amd_mcheck_init handler. With that done, there is not much left in either files, so fold all code into just one file - mce_amd.c

While at it, update the comments regarding documentation with correct URL's and revision numbers.

Quoted 8 lines

Also, update copyright info.

---
 xen/arch/x86/cpu/mcheck/Makefile  |    2 -
 xen/arch/x86/cpu/mcheck/amd_f10.c |  118 ---------------------------
 xen/arch/x86/cpu/mcheck/amd_k8.c  |  117 ---------------------------
 xen/arch/x86/cpu/mcheck/mce_amd.c |  162 +++++++++++++++++++++++++++++++++----

Content-wise this looks fine, but most of the additions to mce_amd.c need cleaning up coding-style-wise.

Jan

#2 lore raw
Quoted 12 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · On 21.05.14 at 23:06, <[email protected]> wrote:

amd_k8.c did a lot of common work and very little K8 specific work. So merge init functions of amd_f10.c and amd_k8.c and move it into the common amd_mcheck_init handler. With that done, there is not much left in either files, so fold all code into just one file - mce_amd.c

While at it, update the comments regarding documentation with correct URL's and revision numbers.

Also, update copyright info.

Quoted 10 lines
Quoted 6 lines
---
  xen/arch/x86/cpu/mcheck/Makefile  |    2 -
  xen/arch/x86/cpu/mcheck/amd_f10.c |  118 ---------------------------
  xen/arch/x86/cpu/mcheck/amd_k8.c  |  117 ---------------------------
  xen/arch/x86/cpu/mcheck/mce_amd.c |  162 +++++++++++++++++++++++++++++++++----

Content-wise this looks fine, but most of the additions to mce_amd.c need cleaning up coding-style-wise.

Hmm. Okay, I'll clean it up and resend.

Thanks,
-Aravind.

#3 lore raw
In reply to Jan Beulich
Quoted 12 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · On 21.05.14 at 23:06, <[email protected]> wrote:

amd_k8.c did a lot of common work and very little K8 specific work. So merge init functions of amd_f10.c and amd_k8.c and move it into the common amd_mcheck_init handler. With that done, there is not much left in either files, so fold all code into just one file - mce_amd.c

While at it, update the comments regarding documentation with correct URL's and revision numbers.

Also, update copyright info.

Quoted 9 lines
Quoted 6 lines
---
  xen/arch/x86/cpu/mcheck/Makefile  |    2 -
  xen/arch/x86/cpu/mcheck/amd_f10.c |  118 ---------------------------
  xen/arch/x86/cpu/mcheck/amd_k8.c  |  117 ---------------------------
  xen/arch/x86/cpu/mcheck/mce_amd.c |  162 +++++++++++++++++++++++++++++++++----

Content-wise this looks fine, but most of the additions to mce_amd.c need cleaning up coding-style-wise.

Done. Think I caught it all..
Sending it out as V2.

Thanks,
-Aravind.