Re: [PATCH 2/4] x86/mce/amd: Introduce deferred error interrupt handler

2015-05-04 Thread Aravind Gopalakrishnan
On 5/4/2015 1:46 PM, Borislav Petkov wrote: For deferred errors, the workaround is a little different as it applies to only the given family/model right now. If the workaround needs to be applied for future processors, we can extend the family check for those right? Or, you can do the check for

Re: [PATCH 0/1] speeding up cpu_up()

2015-05-04 Thread Aravind Gopalakrishnan
On 5/3/2015 11:13 AM, Aravind Gopalakrishnan wrote: On 5/1/15 7:42 PM, Aravind Gopalakrishnan wrote: On 5/1/15 5:47 PM, Borislav Petkov wrote: Aravind and I could probably test on a couple of AMD boxes to narrow down. @Aravind, see here: https://lkml.kernel.org/r

Re: [PATCH 0/1] speeding up cpu_up()

2015-05-03 Thread Aravind Gopalakrishnan
On 5/1/15 7:42 PM, Aravind Gopalakrishnan wrote: On 5/1/15 5:47 PM, Borislav Petkov wrote: On Fri, May 01, 2015 at 02:42:39PM -0700, Len Brown wrote: On Mon, Apr 20, 2015 at 12:15 AM, Ingo Molnar wrote: So instead of playing games with an ancient delay, I'd suggest we install the 10 msec

Re: [PATCH 0/1] speeding up cpu_up()

2015-05-03 Thread Aravind Gopalakrishnan
On 5/1/15 7:42 PM, Aravind Gopalakrishnan wrote: On 5/1/15 5:47 PM, Borislav Petkov wrote: On Fri, May 01, 2015 at 02:42:39PM -0700, Len Brown wrote: On Mon, Apr 20, 2015 at 12:15 AM, Ingo Molnar mi...@kernel.org wrote: So instead of playing games with an ancient delay, I'd suggest we

Re: [PATCH 0/1] speeding up cpu_up()

2015-05-01 Thread Aravind Gopalakrishnan
On 5/1/15 5:47 PM, Borislav Petkov wrote: On Fri, May 01, 2015 at 02:42:39PM -0700, Len Brown wrote: On Mon, Apr 20, 2015 at 12:15 AM, Ingo Molnar wrote: So instead of playing games with an ancient delay, I'd suggest we install the 10 msec INIT assertion wait as a platform quirk instead,

Re: [PATCH 1/4] x86/mce: Define 'SUCCOR' cpuid bit

2015-05-01 Thread Aravind Gopalakrishnan
On 5/1/2015 5:25 AM, Borislav Petkov wrote: On Thu, Apr 30, 2015 at 09:49:22AM -0500, Aravind Gopalakrishnan wrote: SUCCOR stands for S/W UnCorrectable error COntainment and Recovery. It indicates support for data poisoning in HW and deferred error interrupts. struct mce_vendor_flags

Re: [PATCH 2/4] x86/mce/amd: Introduce deferred error interrupt handler

2015-05-01 Thread Aravind Gopalakrishnan
On 5/1/2015 4:36 AM, Borislav Petkov wrote: On Thu, Apr 30, 2015 at 11:16:30PM -0500, Aravind Gopalakrishnan wrote: I used the term as it is an interrupt due to the deferred error. Would 'deferred_err_interrupt' be more apt? Maybe 'irq_deferred_error_count' for the counter? Yeah, I think

Re: [PATCH 0/4] Enable deferred error interrupts

2015-05-01 Thread Aravind Gopalakrishnan
On 5/1/2015 2:18 AM, Ingo Molnar wrote: * Aravind Gopalakrishnan wrote: Newer AMD processors can generate deferred errors and can be configured to generate APIC interrupts on such events. What's the wider context of this? What is it good for? I suspect it's MCE related, but only from

Re: [PATCH 0/1] speeding up cpu_up()

2015-05-01 Thread Aravind Gopalakrishnan
On 5/1/15 5:47 PM, Borislav Petkov wrote: On Fri, May 01, 2015 at 02:42:39PM -0700, Len Brown wrote: On Mon, Apr 20, 2015 at 12:15 AM, Ingo Molnar mi...@kernel.org wrote: So instead of playing games with an ancient delay, I'd suggest we install the 10 msec INIT assertion wait as a platform

Re: [PATCH 1/4] x86/mce: Define 'SUCCOR' cpuid bit

2015-05-01 Thread Aravind Gopalakrishnan
On 5/1/2015 5:25 AM, Borislav Petkov wrote: On Thu, Apr 30, 2015 at 09:49:22AM -0500, Aravind Gopalakrishnan wrote: SUCCOR stands for S/W UnCorrectable error COntainment and Recovery. It indicates support for data poisoning in HW and deferred error interrupts. struct mce_vendor_flags

Re: [PATCH 0/4] Enable deferred error interrupts

2015-05-01 Thread Aravind Gopalakrishnan
On 5/1/2015 2:18 AM, Ingo Molnar wrote: * Aravind Gopalakrishnan aravind.gopalakrish...@amd.com wrote: Newer AMD processors can generate deferred errors and can be configured to generate APIC interrupts on such events. What's the wider context of this? What is it good for? I suspect it's MCE

Re: [PATCH 2/4] x86/mce/amd: Introduce deferred error interrupt handler

2015-05-01 Thread Aravind Gopalakrishnan
On 5/1/2015 4:36 AM, Borislav Petkov wrote: On Thu, Apr 30, 2015 at 11:16:30PM -0500, Aravind Gopalakrishnan wrote: I used the term as it is an interrupt due to the deferred error. Would 'deferred_err_interrupt' be more apt? Maybe 'irq_deferred_error_count' for the counter? Yeah, I think

Re: [PATCH 2/4] x86/mce/amd: Introduce deferred error interrupt handler

2015-04-30 Thread Aravind Gopalakrishnan
On 4/30/15 3:41 PM, Andy Lutomirski wrote: On Thu, Apr 30, 2015 at 7:49 AM, Aravind Gopalakrishnan wrote: Changes introduced in the patch- - Assign vector number 0xf4 for Deferred errors - Declare deferred_interrupt, allocate gate and bind it to DEFERRED_APIC_VECTOR. - Declare

[PATCH 4/4] x86/mce/amd: Rename setup_APIC_mce

2015-04-30 Thread Aravind Gopalakrishnan
'setup_APIC_mce' doesn't give us an indication of why we are going to program LVT. Make that explicit by renaming it to setup_APIC_mce_threshold so we know. No functional change is introduced. Signed-off-by: Aravind Gopalakrishnan --- arch/x86/kernel/cpu/mcheck/mce_amd.c | 4 ++-- 1 file

[PATCH 3/4] x86, irq: Cleanup ordering of vector numbers

2015-04-30 Thread Aravind Gopalakrishnan
Enforcing proper descending order of vector number assignments here. No functional change. Signed-off-by: Aravind Gopalakrishnan --- arch/x86/include/asm/irq_vectors.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86

[PATCH 1/4] x86/mce: Define 'SUCCOR' cpuid bit

2015-04-30 Thread Aravind Gopalakrishnan
-off-by: Aravind Gopalakrishnan --- arch/x86/include/asm/mce.h | 3 ++- arch/x86/kernel/cpu/mcheck/mce.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index 1f5a86d..dfcb664 100644 --- a/arch/x86/include/asm/mce.h

[PATCH 2/4] x86/mce/amd: Introduce deferred error interrupt handler

2015-04-30 Thread Aravind Gopalakrishnan
Deferred error interrupt stats on /proc/interrupts by incrementing irq_deferred_count Signed-off-by: Aravind Gopalakrishnan --- arch/x86/include/asm/entry_arch.h| 3 + arch/x86/include/asm/hardirq.h | 3 + arch/x86/include/asm/hw_irq.h| 2 + arch/x86/include/asm

[PATCH 0/4] Enable deferred error interrupts

2015-04-30 Thread Aravind Gopalakrishnan
are introduced. Aravind Gopalakrishnan (4): x86/mce: Define 'SUCCOR' cpuid bit x86/mce/amd: Introduce deferred error interrupt handler x86, irq: Cleanup ordering of vector numbers x86/mce/amd: Rename setup_APIC_mce arch/x86/include/asm/entry_arch.h| 3 + arch/x86/include/asm/hardirq.h

[PATCH 0/4] Enable deferred error interrupts

2015-04-30 Thread Aravind Gopalakrishnan
are introduced. Aravind Gopalakrishnan (4): x86/mce: Define 'SUCCOR' cpuid bit x86/mce/amd: Introduce deferred error interrupt handler x86, irq: Cleanup ordering of vector numbers x86/mce/amd: Rename setup_APIC_mce arch/x86/include/asm/entry_arch.h| 3 + arch/x86/include/asm/hardirq.h

[PATCH 4/4] x86/mce/amd: Rename setup_APIC_mce

2015-04-30 Thread Aravind Gopalakrishnan
'setup_APIC_mce' doesn't give us an indication of why we are going to program LVT. Make that explicit by renaming it to setup_APIC_mce_threshold so we know. No functional change is introduced. Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/kernel/cpu/mcheck

[PATCH 3/4] x86, irq: Cleanup ordering of vector numbers

2015-04-30 Thread Aravind Gopalakrishnan
Enforcing proper descending order of vector number assignments here. No functional change. Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/include/asm/irq_vectors.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/include

[PATCH 1/4] x86/mce: Define 'SUCCOR' cpuid bit

2015-04-30 Thread Aravind Gopalakrishnan
-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/include/asm/mce.h | 3 ++- arch/x86/kernel/cpu/mcheck/mce.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index 1f5a86d..dfcb664 100644

[PATCH 2/4] x86/mce/amd: Introduce deferred error interrupt handler

2015-04-30 Thread Aravind Gopalakrishnan
Deferred error interrupt stats on /proc/interrupts by incrementing irq_deferred_count Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/include/asm/entry_arch.h| 3 + arch/x86/include/asm/hardirq.h | 3 + arch/x86/include/asm/hw_irq.h

Re: [PATCH 2/4] x86/mce/amd: Introduce deferred error interrupt handler

2015-04-30 Thread Aravind Gopalakrishnan
On 4/30/15 3:41 PM, Andy Lutomirski wrote: On Thu, Apr 30, 2015 at 7:49 AM, Aravind Gopalakrishnan aravind.gopalakrish...@amd.com wrote: Changes introduced in the patch- - Assign vector number 0xf4 for Deferred errors - Declare deferred_interrupt, allocate gate and bind

[PATCH] x86, amd: Set X86_FEATURE_EXTD_APICID for future processors

2015-04-27 Thread Aravind Gopalakrishnan
safely postulate that future AMD processors will support 8-bit APIC IDs and we can simply set that feature bit on them, without the PCI access. Signed-off-by: Aravind Gopalakrishnan --- arch/x86/kernel/cpu/amd.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH] x86, amd: Set X86_FEATURE_EXTD_APICID for future processors

2015-04-27 Thread Aravind Gopalakrishnan
safely postulate that future AMD processors will support 8-bit APIC IDs and we can simply set that feature bit on them, without the PCI access. Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/kernel/cpu/amd.c | 12 ++-- 1 file changed, 10 insertions(+), 2

[tip:x86/cleanups] x86/iommu: Fix header comments regarding standard and _FINISH macros

2015-04-09 Thread tip-bot for Aravind Gopalakrishnan
Commit-ID: b44915927ca88084a7292e4ddd4cf91036f365e1 Gitweb: http://git.kernel.org/tip/b44915927ca88084a7292e4ddd4cf91036f365e1 Author: Aravind Gopalakrishnan AuthorDate: Thu, 9 Apr 2015 10:51:48 +0200 Committer: Ingo Molnar CommitDate: Thu, 9 Apr 2015 10:56:31 +0200 x86/iommu: Fix

[tip:x86/cleanups] x86/iommu: Fix header comments regarding standard and _FINISH macros

2015-04-09 Thread tip-bot for Aravind Gopalakrishnan
Commit-ID: b44915927ca88084a7292e4ddd4cf91036f365e1 Gitweb: http://git.kernel.org/tip/b44915927ca88084a7292e4ddd4cf91036f365e1 Author: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com AuthorDate: Thu, 9 Apr 2015 10:51:48 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Thu

[PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros

2015-04-08 Thread Aravind Gopalakrishnan
ix that. Signed-off-by: Aravind Gopalakrishnan --- arch/x86/include/asm/iommu_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h index f42a047..16845d4 100644 --- a/arch/x86/include/asm/iommu_table.h ++

[PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros

2015-04-08 Thread Aravind Gopalakrishnan
-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/include/asm/iommu_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h index f42a047..16845d4 100644 --- a/arch/x86/include/asm

[PATCH V2] x86/gart: Check for GART support before accessing GART registers

2015-04-07 Thread Aravind Gopalakrishnan
bail early as they don't have GART. Signed-off-by: Aravind Gopalakrishnan Reviewed-by: Suravee Suthikulpanit Cc: Joerg Rodel Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: Bjorn Helgaas Cc: x86-ml --- Changes in V2: - move amd_gart_present() before any other checks as it's least

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-07 Thread Aravind Gopalakrishnan
On 4/7/2015 9:57 AM, Borislav Petkov wrote: On Tue, Apr 07, 2015 at 09:46:26AM -0500, Aravind Gopalakrishnan wrote: Okay. I'll do that and correct the typos Ingo pointed out earlier and resend. Btw, I think you should do the same in early_gart_iommu_check() too. Doing the testing this way

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-07 Thread Aravind Gopalakrishnan
On 4/7/2015 7:34 AM, Borislav Petkov wrote: On Mon, Apr 06, 2015 at 06:10:22PM -0500, Aravind Gopalakrishnan wrote: So what happens if !early_pci_allowed() but the GART is present? We'll set amd_northbridges.flags |= AMD_NB_GART, but won't run any of the setup code in aperture_64.c, right

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-07 Thread Aravind Gopalakrishnan
On 4/7/2015 7:34 AM, Borislav Petkov wrote: On Mon, Apr 06, 2015 at 06:10:22PM -0500, Aravind Gopalakrishnan wrote: So what happens if !early_pci_allowed() but the GART is present? We'll set amd_northbridges.flags |= AMD_NB_GART, but won't run any of the setup code in aperture_64.c, right

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-07 Thread Aravind Gopalakrishnan
On 4/7/2015 9:57 AM, Borislav Petkov wrote: On Tue, Apr 07, 2015 at 09:46:26AM -0500, Aravind Gopalakrishnan wrote: Okay. I'll do that and correct the typos Ingo pointed out earlier and resend. Btw, I think you should do the same in early_gart_iommu_check() too. Doing the testing this way

[PATCH V2] x86/gart: Check for GART support before accessing GART registers

2015-04-07 Thread Aravind Gopalakrishnan
bail early as they don't have GART. Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com Reviewed-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com Cc: Joerg Rodel j...@8bytes.org Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: H. Peter Anvin h

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-06 Thread Aravind Gopalakrishnan
On 4/2/2015 1:19 PM, Ingo Molnar wrote: + if (amd_gart_present()) amd_northbridges.flags |= AMD_NB_GART; /* diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c index 76164e173a24..1cb170b06853 100644 --- a/arch/x86/kernel/aperture_64.c +++

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-06 Thread Aravind Gopalakrishnan
On 4/2/2015 1:19 PM, Ingo Molnar wrote: + if (amd_gart_present()) amd_northbridges.flags |= AMD_NB_GART; /* diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c index 76164e173a24..1cb170b06853 100644 --- a/arch/x86/kernel/aperture_64.c +++

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-02 Thread Aravind Gopalakrishnan
On 4/2/2015 11:53 AM, Borislav Petkov wrote: On Thu, Apr 02, 2015 at 11:23:17AM -0500, Aravind Gopalakrishnan wrote: Sure, will do that and resend. No need - I can amend the local copy I have here. Okay. Thanks! -Aravind. -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-02 Thread Aravind Gopalakrishnan
On 4/2/2015 11:06 AM, Ingo Molnar wrote: We get "AGP:" messages on kernel logs like this- [0.00] AGP: Node 0: aperture [bus addr 0x-0x01ff] (32MB) [0.00] AGP: Your BIOS doesn't leave a aperture memory hole [0.00] AGP: Please enable the IOMMU option in the

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-02 Thread Aravind Gopalakrishnan
On 4/2/2015 5:01 AM, Ingo Molnar wrote: * Aravind Gopalakrishnan wrote: GART registers are not present in newer processors (Fam15h, Model 10h and later). So, avoid accesses to GART registers in PCI config space by returning early in early_gart_iommu_check() and gart_iommu_hole_init() if GART

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-02 Thread Aravind Gopalakrishnan
On 4/2/2015 5:01 AM, Ingo Molnar wrote: * Aravind Gopalakrishnan aravind.gopalakrish...@amd.com wrote: GART registers are not present in newer processors (Fam15h, Model 10h and later). So, avoid accesses to GART registers in PCI config space by returning early in early_gart_iommu_check

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-02 Thread Aravind Gopalakrishnan
On 4/2/2015 11:06 AM, Ingo Molnar wrote: We get AGP: messages on kernel logs like this- [0.00] AGP: Node 0: aperture [bus addr 0x-0x01ff] (32MB) [0.00] AGP: Your BIOS doesn't leave a aperture memory hole [0.00] AGP: Please enable the IOMMU option in the BIOS

Re: [PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-02 Thread Aravind Gopalakrishnan
On 4/2/2015 11:53 AM, Borislav Petkov wrote: On Thu, Apr 02, 2015 at 11:23:17AM -0500, Aravind Gopalakrishnan wrote: Sure, will do that and resend. No need - I can amend the local copy I have here. Okay. Thanks! -Aravind. -- To unsubscribe from this list: send the line unsubscribe linux

[PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-01 Thread Aravind Gopalakrishnan
function so we can use it here as well as in amd_nb.c Tested the patch on Fam10h and Fam15h Model 00h-fh and this code runs fine. On Fam15h Model 60h-6fh and on Fam16h, we bail early as they don't have GART. Signed-off-by: Aravind Gopalakrishnan Reviewed-by: Suravee Suthikulpanit --- arch/x86

[PATCH] x86, aperture: Check for GART before accessing GART registers

2015-04-01 Thread Aravind Gopalakrishnan
function so we can use it here as well as in amd_nb.c Tested the patch on Fam10h and Fam15h Model 00h-fh and this code runs fine. On Fam15h Model 60h-6fh and on Fam16h, we bail early as they don't have GART. Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com Reviewed-by: Suravee

[PATCH] x86, mce, severity: Fix warning about intended braces

2015-03-31 Thread Aravind Gopalakrishnan
y Boris. No functional changes are introduced by the patch Reported-by: Dan Carpenter Signed-off-by: Aravind Gopalakrishnan --- arch/x86/kernel/cpu/mcheck/mce-severity.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce-severity.c b/arch/x86

[PATCH] x86, mce, severity: Fix warning about intended braces

2015-03-31 Thread Aravind Gopalakrishnan
. No functional changes are introduced by the patch Reported-by: Dan Carpenter dan.carpen...@oracle.com Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/kernel/cpu/mcheck/mce-severity.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86

Re: [PATCH] MAINTAINERS: Change x86 microcode loader maintainer

2015-03-30 Thread Aravind Gopalakrishnan
On 3/30/2015 4:43 AM, Borislav Petkov wrote: On Mon, Mar 30, 2015 at 11:26:34AM +0200, Geert Uytterhoeven wrote: On Sun, Mar 29, 2015 at 3:56 PM, Borislav Petkov wrote: From: Borislav Petkov Let's make it official - I've been doing this for a while now anyway. Signed-off-by: Borislav

Re: [PATCH] MAINTAINERS: Change x86 microcode loader maintainer

2015-03-30 Thread Aravind Gopalakrishnan
On 3/30/2015 4:43 AM, Borislav Petkov wrote: On Mon, Mar 30, 2015 at 11:26:34AM +0200, Geert Uytterhoeven wrote: On Sun, Mar 29, 2015 at 3:56 PM, Borislav Petkov b...@alien8.de wrote: From: Borislav Petkov b...@suse.de Let's make it official - I've been doing this for a while now anyway.

Re: [PATCH V3 1/2] x86, mce, severities: Add AMD severities function

2015-03-24 Thread Aravind Gopalakrishnan
On 3/24/2015 10:18 AM, Borislav Petkov wrote: On Tue, Mar 24, 2015 at 10:02:33AM -0500, Aravind Gopalakrishnan wrote: I think the clean way to fix this would be to move the line to [patch 2/2]. Besides, we would need a new patch 2 anyway as the patch application would fail due to changes

Re: [PATCH V3 1/2] x86, mce, severities: Add AMD severities function

2015-03-24 Thread Aravind Gopalakrishnan
On 3/24/2015 3:30 AM, Borislav Petkov wrote: On Mon, Mar 23, 2015 at 10:42:52AM -0500, Aravind Gopalakrishnan wrote: +/* keeping mce_severity_amd in sync with AMD error scope heirarchy table */ Which table do you mean? I changed it to: /* * See AMD Error Scope Hierarchy table in a newer

Re: [PATCH V3 1/2] x86, mce, severities: Add AMD severities function

2015-03-24 Thread Aravind Gopalakrishnan
On 3/24/2015 3:30 AM, Borislav Petkov wrote: On Mon, Mar 23, 2015 at 10:42:52AM -0500, Aravind Gopalakrishnan wrote: +/* keeping mce_severity_amd in sync with AMD error scope heirarchy table */ Which table do you mean? I changed it to: /* * See AMD Error Scope Hierarchy table in a newer

Re: [PATCH V3 1/2] x86, mce, severities: Add AMD severities function

2015-03-24 Thread Aravind Gopalakrishnan
On 3/24/2015 10:18 AM, Borislav Petkov wrote: On Tue, Mar 24, 2015 at 10:02:33AM -0500, Aravind Gopalakrishnan wrote: I think the clean way to fix this would be to move the line to [patch 2/2]. Besides, we would need a new patch 2 anyway as the patch application would fail due to changes

[PATCH V3 2/2] x86, mce, severities: Define mce_severity function pointer

2015-03-23 Thread Aravind Gopalakrishnan
Luck Signed-off-by: Aravind Gopalakrishnan --- Changes from V2: (per Boris suggestion) - use mce_severity_intel for default and only override it for AMD systems - remove switch and use simple if for checking if we are on AMD processor arch/x86/include/asm/mce.h| 2 ++ arch

[PATCH V3 1/2] x86, mce, severities: Add AMD severities function

2015-03-23 Thread Aravind Gopalakrishnan
of the flags field. This is based off of work by Boris Petkov. Testing details: Tested the patch for any regressions on Fam10h, Model 9h (Greyhound) Fam15h: Models 0h-0fh (Orochi), 30h-3fh (Kaveri) and 60h-6fh (Carrizo), Fam16h Model 00h-0fh (Kabini) Signed-off-by: Aravind Gopalakrishnan --- Changes

[PATCH V3 0/2] Rework mce_severity

2015-03-23 Thread Aravind Gopalakrishnan
Patch1: Introduce AMD severities function Patch2: Initialise mce_severity function pointer to mce_severity_intel and override it to mce_severity_amd on AMD systems Aravind Gopalakrishnan (2): x86, mce, severities: Add AMD severities function x86, mce, severities: Define mce_severity

Re: [PATCH V2 2/2] x86, mce, severities: Define mce_severity function pointer

2015-03-23 Thread Aravind Gopalakrishnan
On 3/21/2015 1:10 AM, Borislav Petkov wrote: On Fri, Mar 20, 2015 at 09:35:26PM -0500, Aravind Gopalakrishnan wrote: Other function pointers in the mce code like unexpected_machine_check and default_threshold_interrupt are assigned to the respective function pointers when they are defined

Re: [PATCH V2 2/2] x86, mce, severities: Define mce_severity function pointer

2015-03-23 Thread Aravind Gopalakrishnan
On 3/21/2015 1:10 AM, Borislav Petkov wrote: On Fri, Mar 20, 2015 at 09:35:26PM -0500, Aravind Gopalakrishnan wrote: Other function pointers in the mce code like unexpected_machine_check and default_threshold_interrupt are assigned to the respective function pointers when they are defined

[PATCH V3 0/2] Rework mce_severity

2015-03-23 Thread Aravind Gopalakrishnan
Patch1: Introduce AMD severities function Patch2: Initialise mce_severity function pointer to mce_severity_intel and override it to mce_severity_amd on AMD systems Aravind Gopalakrishnan (2): x86, mce, severities: Add AMD severities function x86, mce, severities: Define mce_severity

[PATCH V3 2/2] x86, mce, severities: Define mce_severity function pointer

2015-03-23 Thread Aravind Gopalakrishnan
Luck tony.l...@intel.com Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- Changes from V2: (per Boris suggestion) - use mce_severity_intel for default and only override it for AMD systems - remove switch and use simple if for checking if we are on AMD processor arch/x86

[PATCH V3 1/2] x86, mce, severities: Add AMD severities function

2015-03-23 Thread Aravind Gopalakrishnan
of the flags field. This is based off of work by Boris Petkov. Testing details: Tested the patch for any regressions on Fam10h, Model 9h (Greyhound) Fam15h: Models 0h-0fh (Orochi), 30h-3fh (Kaveri) and 60h-6fh (Carrizo), Fam16h Model 00h-0fh (Kabini) Signed-off-by: Aravind Gopalakrishnan

Re: [PATCH V2 2/2] x86, mce, severities: Define mce_severity function pointer

2015-03-20 Thread Aravind Gopalakrishnan
On 3/20/15 5:31 PM, Luck, Tony wrote: + default: + WARN_ONCE(1, "WTF!?"); + break; You meant to type: mce_severity = mce_severity_default; just there, right? Other function pointers in the mce code like unexpected_machine_check and

[PATCH V2 2/2] x86, mce, severities: Define mce_severity function pointer

2015-03-20 Thread Aravind Gopalakrishnan
cleaner to do it this way. Suggested-by: Tony Luck Signed-off-by: Aravind Gopalakrishnan --- arch/x86/include/asm/mce.h| 2 ++ arch/x86/kernel/cpu/mcheck/mce-internal.h | 3 ++- arch/x86/kernel/cpu/mcheck/mce-severity.c | 35 ++- arch/x86/kernel/cpu

[PATCH V2 0/2] Rework mce_severity

2015-03-20 Thread Aravind Gopalakrishnan
Patch1: Introduce AMD severities function Patch2: Initialise mce_severity function pointer to choose between Intel or AMD grading mechanisms Aravind Gopalakrishnan (2): x86, mce, severities: Add AMD severities function x86, mce, severities: Define mce_severity function pointer arch

[PATCH V2 1/2] x86, mce, severities: Add AMD severities function

2015-03-20 Thread Aravind Gopalakrishnan
of the flags field. This is based off of work by Boris Petkov. Testing details: Tested the patch for any regressions on F15hM0h-0fh (Orochi) and F15hM60h-6fh (Carrizo) and it works fine. Signed-off-by: Aravind Gopalakrishnan --- Changes from V1: - Test mce_flags.overflow_recov once instead of multiple

Re: [PATCH] x86, mce, severities: Add AMD severities function

2015-03-20 Thread Aravind Gopalakrishnan
On 3/19/2015 12:15 PM, Luck, Tony wrote: It would be best if what Tony suggested comes ontop of your patch with his Suggested-by: tag. This ordering should be also the easiest wrt functionality and bisectability. Ok, I'll have it ready and send out a V2 by tomorrow if there are no other

Re: [PATCH V2 2/2] x86, mce, severities: Define mce_severity function pointer

2015-03-20 Thread Aravind Gopalakrishnan
On 3/20/15 5:31 PM, Luck, Tony wrote: + default: + WARN_ONCE(1, WTF!?); + break; You meant to type: mce_severity = mce_severity_default; just there, right? Other function pointers in the mce code like unexpected_machine_check and

Re: [PATCH] x86, mce, severities: Add AMD severities function

2015-03-20 Thread Aravind Gopalakrishnan
On 3/19/2015 12:15 PM, Luck, Tony wrote: It would be best if what Tony suggested comes ontop of your patch with his Suggested-by: tag. This ordering should be also the easiest wrt functionality and bisectability. Ok, I'll have it ready and send out a V2 by tomorrow if there are no other

[PATCH V2 0/2] Rework mce_severity

2015-03-20 Thread Aravind Gopalakrishnan
Patch1: Introduce AMD severities function Patch2: Initialise mce_severity function pointer to choose between Intel or AMD grading mechanisms Aravind Gopalakrishnan (2): x86, mce, severities: Add AMD severities function x86, mce, severities: Define mce_severity function pointer arch

[PATCH V2 1/2] x86, mce, severities: Add AMD severities function

2015-03-20 Thread Aravind Gopalakrishnan
of the flags field. This is based off of work by Boris Petkov. Testing details: Tested the patch for any regressions on F15hM0h-0fh (Orochi) and F15hM60h-6fh (Carrizo) and it works fine. Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- Changes from V1: - Test

[PATCH V2 2/2] x86, mce, severities: Define mce_severity function pointer

2015-03-20 Thread Aravind Gopalakrishnan
cleaner to do it this way. Suggested-by: Tony Luck tony.l...@intel.com Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/include/asm/mce.h| 2 ++ arch/x86/kernel/cpu/mcheck/mce-internal.h | 3 ++- arch/x86/kernel/cpu/mcheck/mce-severity.c | 35

Re: [PATCH] x86, mce, severities: Add AMD severities function

2015-03-19 Thread Aravind Gopalakrishnan
On 3/19/2015 10:53 AM, Borislav Petkov wrote: On Thu, Mar 19, 2015 at 09:41:01AM -0500, Aravind Gopalakrishnan wrote: Ok, I'll work on this and prepend the changes to the current version of the patch. Would you prefer the changes be in a separate patch or lump it in along with current version

Re: [PATCH] x86, mce, severities: Add AMD severities function

2015-03-19 Thread Aravind Gopalakrishnan
On 3/19/2015 4:29 AM, Borislav Petkov wrote: On Thu, Mar 19, 2015 at 12:01:32AM +, Luck, Tony wrote: One other thought. Instead of the run-time test to see if this is an AMD processor on every call to this function, would it be cleaner to: 1) Rename existing mce_severity() function to

Re: [PATCH] x86, mce, severities: Add AMD severities function

2015-03-19 Thread Aravind Gopalakrishnan
On 3/19/2015 4:29 AM, Borislav Petkov wrote: On Thu, Mar 19, 2015 at 12:01:32AM +, Luck, Tony wrote: One other thought. Instead of the run-time test to see if this is an AMD processor on every call to this function, would it be cleaner to: 1) Rename existing mce_severity() function to

Re: [PATCH] x86, mce, severities: Add AMD severities function

2015-03-19 Thread Aravind Gopalakrishnan
On 3/19/2015 10:53 AM, Borislav Petkov wrote: On Thu, Mar 19, 2015 at 09:41:01AM -0500, Aravind Gopalakrishnan wrote: Ok, I'll work on this and prepend the changes to the current version of the patch. Would you prefer the changes be in a separate patch or lump it in along with current version

Re: [PATCH] x86, mce, severities: Add AMD severities function

2015-03-17 Thread Aravind Gopalakrishnan
On 3/17/2015 5:20 AM, Borislav Petkov wrote: On Mon, Mar 16, 2015 at 12:16:04PM -0500, Aravind Gopalakrishnan wrote: +/* keeping amd_mce_severity in sync with AMD error scope heirarchy table */ +static int amd_mce_severity(struct mce *m, enum context ctx) +{ + /* Processor Context Corrupt

Re: [PATCH] x86, mce, severities: Add AMD severities function

2015-03-17 Thread Aravind Gopalakrishnan
On 3/17/2015 5:20 AM, Borislav Petkov wrote: On Mon, Mar 16, 2015 at 12:16:04PM -0500, Aravind Gopalakrishnan wrote: +/* keeping amd_mce_severity in sync with AMD error scope heirarchy table */ +static int amd_mce_severity(struct mce *m, enum context ctx) +{ + /* Processor Context Corrupt

[PATCH] x86, mce, severities: Add AMD severities function

2015-03-16 Thread Aravind Gopalakrishnan
of the flags field. This is based off of work by Boris Petkov. Testing details: Tested the patch for any regressions on F15hM0h-0fh (Orochi) and F15hM60h-6fh (Carrizo) and it works fine. Signed-off-by: Aravind Gopalakrishnan --- arch/x86/include/asm/mce.h| 6 arch/x86/kernel/cpu

[PATCH] x86, mce, severities: Add AMD severities function

2015-03-16 Thread Aravind Gopalakrishnan
of the flags field. This is based off of work by Boris Petkov. Testing details: Tested the patch for any regressions on F15hM0h-0fh (Orochi) and F15hM60h-6fh (Carrizo) and it works fine. Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/include/asm/mce.h

[tip:perf/core] perf/x86/amd/ibs: Convert force_ibs_eilvt_setup() to void

2015-02-18 Thread tip-bot for Aravind Gopalakrishnan
Commit-ID: c796b205b88c775fd220c1a63390bac6a8cdda3f Gitweb: http://git.kernel.org/tip/c796b205b88c775fd220c1a63390bac6a8cdda3f Author: Aravind Gopalakrishnan AuthorDate: Fri, 23 Jan 2015 12:19:35 -0600 Committer: Ingo Molnar CommitDate: Wed, 18 Feb 2015 17:01:46 +0100 perf/x86/amd/ibs

[tip:perf/core] perf/x86/amd/ibs: Convert force_ibs_eilvt_setup() to void

2015-02-18 Thread tip-bot for Aravind Gopalakrishnan
Commit-ID: c796b205b88c775fd220c1a63390bac6a8cdda3f Gitweb: http://git.kernel.org/tip/c796b205b88c775fd220c1a63390bac6a8cdda3f Author: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com AuthorDate: Fri, 23 Jan 2015 12:19:35 -0600 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed

[PATCH V2] x86, mce, amd: Enable interrupts by default if HW capable

2015-02-02 Thread Aravind Gopalakrishnan
gested-by: Borislav Petkov Signed-off-by: Aravind Gopalakrishnan --- Changes in V2: - earlier changes regarding removal of bank == 4 check and removal of 'interrupt_enable' attribute causes regressions. Fixed that. - moving setting of threshold_limit and comment style fixes are not di

[PATCH V2] x86, mce, amd: Enable interrupts by default if HW capable

2015-02-02 Thread Aravind Gopalakrishnan
-by: Borislav Petkov b...@suse.de Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- Changes in V2: - earlier changes regarding removal of bank == 4 check and removal of 'interrupt_enable' attribute causes regressions. Fixed that. - moving setting of threshold_limit

[PATCH] x86, mce, amd: Enable interrupts by default if HW capable

2015-01-23 Thread Aravind Gopalakrishnan
ble is set by default - echo 0 > interrupt_enable clears IntType of respective register - Forcing error count to go over threshold_limit generates APIC interrupt and edac mce_amd catches it fine Signed-off-by: Aravind Gopalakrishnan --- arch/x86/kernel/cpu/mcheck/m

[PATCH] perf/x86/amd/ibs: Convert force_ibs_eilvt_setup to void

2015-01-23 Thread Aravind Gopalakrishnan
The caller of force_ibs_eilvt_setup() is ibs_eilvt_setup() which does not care about the return values. So, marking it void and cleaning up the return statements. Signed-off-by: Aravind Gopalakrishnan --- arch/x86/kernel/cpu/perf_event_amd_ibs.c | 12 +--- 1 file changed, 5 insertions

[PATCH] perf/x86/amd/ibs: Convert force_ibs_eilvt_setup to void

2015-01-23 Thread Aravind Gopalakrishnan
The caller of force_ibs_eilvt_setup() is ibs_eilvt_setup() which does not care about the return values. So, marking it void and cleaning up the return statements. Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/kernel/cpu/perf_event_amd_ibs.c | 12

[PATCH] x86, mce, amd: Enable interrupts by default if HW capable

2015-01-23 Thread Aravind Gopalakrishnan
by default - echo 0 interrupt_enable clears IntType of respective register - Forcing error count to go over threshold_limit generates APIC interrupt and edac mce_amd catches it fine Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/kernel/cpu/mcheck/mce_amd.c

Re: [PATCH] x86, cpu, amd: Use 8-bit extractor for NodeId field

2015-01-20 Thread Aravind Gopalakrishnan
On 1/19/2015 12:21 PM, Borislav Petkov wrote: On Mon, Jan 19, 2015 at 12:18:58PM -0600, Aravind Gopalakrishnan wrote: The NodeId field in cpuid_ecx(0x801e) is a 8 bit field. Although current extractor works fine, it will break if/when the most significant 5 bits ever get used. So, lets

Re: [PATCH] x86, cpu, amd: Use 8-bit extractor for NodeId field

2015-01-20 Thread Aravind Gopalakrishnan
On 1/19/2015 12:21 PM, Borislav Petkov wrote: On Mon, Jan 19, 2015 at 12:18:58PM -0600, Aravind Gopalakrishnan wrote: The NodeId field in cpuid_ecx(0x801e) is a 8 bit field. Although current extractor works fine, it will break if/when the most significant 5 bits ever get used. So, lets

[PATCH] x86, cpu, amd: Use 8-bit extractor for NodeId field

2015-01-19 Thread Aravind Gopalakrishnan
Identifiers Signed-off-by: Aravind Gopalakrishnan --- arch/x86/kernel/cpu/amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index a220239..9942b83 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c

[PATCH] x86, cpu, amd: Use 8-bit extractor for NodeId field

2015-01-19 Thread Aravind Gopalakrishnan
Identifiers Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- arch/x86/kernel/cpu/amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index a220239..9942b83 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b

question regarding -D flag in perf stat

2015-01-14 Thread Aravind Gopalakrishnan
Hi all, I had a question regarding the intention of the -D flag after looking at perf stat numbers of the following workload: main(){ int a=5, b=6; int i; #pragma omp for schedule(dynamic) for (i=0; i<1000; i++){ b=b+a; } return 0; } _Stats without delay:_ # perf stat -e

question regarding -D flag in perf stat

2015-01-14 Thread Aravind Gopalakrishnan
Hi all, I had a question regarding the intention of the -D flag after looking at perf stat numbers of the following workload: main(){ int a=5, b=6; int i; #pragma omp for schedule(dynamic) for (i=0; i1000; i++){ b=b+a; } return 0; } _Stats without delay:_ # perf stat -e

Re: [PATCH 0/3] Fix MCE handling for AMD multi-node processors

2015-01-07 Thread Aravind Gopalakrishnan
On 1/7/2015 11:06 AM, Borislav Petkov wrote: On Tue, Jan 06, 2015 at 05:54:15PM -0600, Aravind Gopalakrishnan wrote: But we still need to change the error injection interfaces in mce_amd_inj: mce_amd_inj triggers a #MC on the cpu number that the user specifies on debugfs. For any error other

Re: [PATCH 0/3] Fix MCE handling for AMD multi-node processors

2015-01-07 Thread Aravind Gopalakrishnan
On 1/7/2015 11:06 AM, Borislav Petkov wrote: On Tue, Jan 06, 2015 at 05:54:15PM -0600, Aravind Gopalakrishnan wrote: But we still need to change the error injection interfaces in mce_amd_inj: mce_amd_inj triggers a #MC on the cpu number that the user specifies on debugfs. For any error other

Re: [PATCH 0/3] Fix MCE handling for AMD multi-node processors

2015-01-06 Thread Aravind Gopalakrishnan
On 12/23/2014 1:41 PM, Aravind Gopalakrishnan wrote: On 12/22/2014 5:19 PM, Borislav Petkov wrote: On Mon, Dec 22, 2014 at 02:56:47PM -0600, Aravind Gopalakrishnan wrote: On 12/22/2014 2:15 PM, Borislav Petkov wrote: On Mon, Dec 22, 2014 at 02:10:09PM -0600, Aravind Gopalakrishnan wrote

Re: [PATCH 0/3] Fix MCE handling for AMD multi-node processors

2015-01-06 Thread Aravind Gopalakrishnan
On 12/23/2014 1:41 PM, Aravind Gopalakrishnan wrote: On 12/22/2014 5:19 PM, Borislav Petkov wrote: On Mon, Dec 22, 2014 at 02:56:47PM -0600, Aravind Gopalakrishnan wrote: On 12/22/2014 2:15 PM, Borislav Petkov wrote: On Mon, Dec 22, 2014 at 02:10:09PM -0600, Aravind Gopalakrishnan wrote

Re: [PATCH 0/3] Fix MCE handling for AMD multi-node processors

2014-12-23 Thread Aravind Gopalakrishnan
On 12/22/2014 5:19 PM, Borislav Petkov wrote: On Mon, Dec 22, 2014 at 02:56:47PM -0600, Aravind Gopalakrishnan wrote: On 12/22/2014 2:15 PM, Borislav Petkov wrote: On Mon, Dec 22, 2014 at 02:10:09PM -0600, Aravind Gopalakrishnan wrote: When a MCE happens that is to be logged onto bank 4

Re: [PATCH 0/3] Fix MCE handling for AMD multi-node processors

2014-12-23 Thread Aravind Gopalakrishnan
On 12/22/2014 5:19 PM, Borislav Petkov wrote: On Mon, Dec 22, 2014 at 02:56:47PM -0600, Aravind Gopalakrishnan wrote: On 12/22/2014 2:15 PM, Borislav Petkov wrote: On Mon, Dec 22, 2014 at 02:10:09PM -0600, Aravind Gopalakrishnan wrote: When a MCE happens that is to be logged onto bank 4

<    1   2   3   4   5   6   7   >