Re: od_set_powersave_bias: NULL pointer dereference

2013-06-27 Thread Jacob Shin
On Thu, Jun 27, 2013 at 08:50:44PM +0530, Viresh Kumar wrote: > BTW, your v1 is already applied and sent to Linus. So, > you need to send only fixup now. Here is the fixup delta patch, thanks! : ---8<--- >From 133f670aa1dc450fd37ba39081d046bf238c507b Mon Sep 17 00:00:00 2001 From

Re: od_set_powersave_bias: NULL pointer dereference

2013-06-27 Thread Jacob Shin
On Thu, Jun 27, 2013 at 08:39:12PM +0530, Viresh Kumar wrote: > On 27 June 2013 20:25, Jacob Shin wrote: > > diff --git a/drivers/cpufreq/cpufreq_ondemand.c > > b/drivers/cpufreq/cpufreq_ondemand.c > > index 4b9bb5d..93eb5cb 100644 > > --- a/drivers/cpufreq/cpufreq_o

Re: od_set_powersave_bias: NULL pointer dereference

2013-06-27 Thread Jacob Shin
On Thu, Jun 27, 2013 at 12:32:36PM +0530, Viresh Kumar wrote: > On 26 June 2013 23:27, Jacob Shin wrote: > > On Wed, Jun 26, 2013 at 08:02:29PM +0530, Viresh Kumar wrote: > >> On 26 June 2013 19:58, Jacob Shin wrote: > >> > On Wed, Jun 26, 2013 at 12:18:

[tip:x86/microcode] x86, microcode, amd: Another early loading fixup

2013-06-26 Thread tip-bot for Jacob Shin
Commit-ID: 9608d33b8210c993af4430d661a6474946480c9b Gitweb: http://git.kernel.org/tip/9608d33b8210c993af4430d661a6474946480c9b Author: Jacob Shin AuthorDate: Thu, 20 Jun 2013 09:52:50 -0500 Committer: H. Peter Anvin CommitDate: Wed, 26 Jun 2013 14:55:37 -0700 x86, microcode, amd

Re: od_set_powersave_bias: NULL pointer dereference

2013-06-26 Thread Jacob Shin
On Wed, Jun 26, 2013 at 08:02:29PM +0530, Viresh Kumar wrote: > On 26 June 2013 19:58, Jacob Shin wrote: > > On Wed, Jun 26, 2013 at 12:18:27PM +0530, Viresh Kumar wrote: > > >> I am not sure if this is enough. What if we had ondemand as the > >> governor in

Re: [PATCH V3 0/2] x86/microcode/amd: early loading fixes

2013-06-26 Thread Jacob Shin
On Thu, Jun 20, 2013 at 10:24:14AM -0500, Jacob Shin wrote: > On Thu, Jun 20, 2013 at 10:16:16AM -0500, Jacob Shin wrote: > > On Thu, Jun 20, 2013 at 12:30:53PM +0200, Ingo Molnar wrote: > > > > > > * Jacob Shin wrote: > > > > > > > On Fri, Ju

Re: od_set_powersave_bias: NULL pointer dereference

2013-06-26 Thread Jacob Shin
On Wed, Jun 26, 2013 at 08:02:29PM +0530, Viresh Kumar wrote: > On 26 June 2013 19:58, Jacob Shin wrote: > > On Wed, Jun 26, 2013 at 12:18:27PM +0530, Viresh Kumar wrote: > > >> I am not sure if this is enough. What if we had ondemand as the > >> governor in

Re: od_set_powersave_bias: NULL pointer dereference

2013-06-26 Thread Jacob Shin
On Wed, Jun 26, 2013 at 12:18:27PM +0530, Viresh Kumar wrote: > On 25 June 2013 21:49, Jacob Shin wrote: > > Yes, so sorry about that, it looks like I failed to test with: > > No problem, it happens :) > > > CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y > > CON

Re: od_set_powersave_bias: NULL pointer dereference

2013-06-25 Thread Jacob Shin
_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_X86_AMD_FREQ_SENSITIVITY=m The following patch fixes this, Tim, could you please test ? : ---8<--- >From 3c727b1f775448599e67c5fb2121d79448e80c90 Mon Sep 17 00:00:00 2001 From: Jacob Shin Date: Tue, 25 Jun 2013 10:40:5

Re: [PATCH V3 0/2] x86/microcode/amd: early loading fixes

2013-06-20 Thread Jacob Shin
On Thu, Jun 20, 2013 at 10:16:16AM -0500, Jacob Shin wrote: > On Thu, Jun 20, 2013 at 12:30:53PM +0200, Ingo Molnar wrote: > > > > * Jacob Shin wrote: > > > > > On Fri, Jun 07, 2013 at 09:22:18PM -0500, Jacob Shin wrote: > > > > This patchset addre

Re: [PATCH V3 0/2] x86/microcode/amd: early loading fixes

2013-06-20 Thread Jacob Shin
On Thu, Jun 20, 2013 at 12:30:53PM +0200, Ingo Molnar wrote: > > * Jacob Shin wrote: > > > On Fri, Jun 07, 2013 at 09:22:18PM -0500, Jacob Shin wrote: > > > This patchset addreses two problems with early loading on AMD. > > > > > > First, feedb

[tip:x86/microcode] x86, microcode, amd: Make find_ucode_in_initrd() __init

2013-06-12 Thread tip-bot for Jacob Shin
Commit-ID: 275bbe2e299f1820ec8faa443d689469a9e6ecc5 Gitweb: http://git.kernel.org/tip/275bbe2e299f1820ec8faa443d689469a9e6ecc5 Author: Jacob Shin AuthorDate: Wed, 5 Jun 2013 15:13:55 -0500 Committer: H. Peter Anvin CommitDate: Wed, 5 Jun 2013 13:56:47 -0700 x86, microcode, amd: Make

[tip:x86/microcode] x86, microcode, amd: Allow multiple families' bin files appended together

2013-06-12 Thread tip-bot for Jacob Shin
Commit-ID: cd1c32ca969ebfd65e61312c988223bb14f09c2e Gitweb: http://git.kernel.org/tip/cd1c32ca969ebfd65e61312c988223bb14f09c2e Author: Jacob Shin AuthorDate: Wed, 5 Jun 2013 15:13:56 -0500 Committer: H. Peter Anvin CommitDate: Wed, 5 Jun 2013 13:56:55 -0700 x86, microcode, amd: Allow

Re: [PATCH V3 0/2] x86/microcode/amd: early loading fixes

2013-06-12 Thread Jacob Shin
On Fri, Jun 07, 2013 at 09:22:18PM -0500, Jacob Shin wrote: > This patchset addreses two problems with early loading on AMD. > > First, feedback from Yinghai that find_ucode_in_initrd() should be > marked __init: > https://lkml.org/lkml/2013/6/4/695 > > And second, feedba

Re: [PATCH 11/11] cpufreq: X86_AMD_FREQ_SENSITIVITY: select CPU_FREQ_TABLE

2013-06-12 Thread Jacob Shin
On Wed, Jun 12, 2013 at 01:45:18PM +0530, Viresh Kumar wrote: > This CPUFreq driver uses APIs from freq_table.c and so must select > CPU_FREQ_TABLE. > Ah, thanks for cathcing this! > Cc: Jacob Shin > Signed-off-by: Viresh Kumar Acked-by: Jacob Shin > --- > drivers/cp

[PATCH V3 0/2] x86/microcode/amd: early loading fixes

2013-06-07 Thread Jacob Shin
and size of the microcode container file Jacob Shin (2): x86/microcode/amd: make find_ucode_in_initrd() __init x86/microcode/amd: allow multiple families' bin files appended together arch/x86/kernel/microcode_amd_early.c | 170 - 1 file changed

[PATCH V3 2/2] x86/microcode/amd: allow multiple families' bin files appended together

2013-06-07 Thread Jacob Shin
Add support for parsing through multiple families' microcode patch container binary files appended together when early loading. This is already supported on Intel. Reported-by: Henrique de Moraes Holschuh Signed-off-by: Jacob Shin --- arch/x86/kernel/microcode_amd_early.c |

[PATCH V3 1/2] x86/microcode/amd: make find_ucode_in_initrd() __init

2013-06-07 Thread Jacob Shin
Change find_ucode_in_initrd() to __init and only let BSP call it during cold boot. This is the right thing to do because only BSP will see initrd loaded by the boot loader. APs will offset into initrd_start to find the microcode patch binary. Reported-by: Yinghai Lu Signed-off-by: Jacob Shin

Re: [PATCH V3 4/4] microcode/x86/amd: early microcode patch loading support for AMD

2013-06-06 Thread Jacob Shin
On Thu, Jun 06, 2013 at 12:10:42AM +0200, Borislav Petkov wrote: > On Fri, May 31, 2013 at 08:15:12PM -0500, Jacob Shin wrote: > > Any thoughts on this Boris? > > Looks ok to me - I'm assuming you're testing all this new code on all > families...? Thanks, I have sent

[PATCH V2 2/2] x86/microcode/amd: allow multiple families' bin files appended together

2013-06-06 Thread Jacob Shin
Add support for parsing through multiple families' microcode patch container binary files appended together when early loading. This is already supported on Intel. Reported-by: Henrique de Moraes Holschuh Signed-off-by: Jacob Shin --- arch/x86/kernel/microcode_amd_early.c |

[PATCH V2 0/2] x86/microcode/amd: early loading fixes

2013-06-06 Thread Jacob Shin
together, whereas the current AMD implementation lacks this support: https://lkml.org/lkml/2013/5/31/4 V2: * test for !initrd_start before using it * use __pa() instead of __pa_nodebug() on AP load * fixed calculation of start offset and size of the microcode container file Jacob Shin (2): x86

[PATCH V2 1/2] x86/microcode/amd: make find_ucode_in_initrd() __init

2013-06-06 Thread Jacob Shin
Change find_ucode_in_initrd() to __init and only let BSP call it during cold boot. This is the right thing to do because only BSP will see initrd loaded by the boot loader. APs will offset into initrd_start to find the microcode patch binary. Reported-by: Yinghai Lu Signed-off-by: Jacob Shin

Re: [PATCH 0/2] x86/microcode/amd: early loading fixes

2013-06-06 Thread Jacob Shin
On Thu, Jun 06, 2013 at 12:18:33AM +0200, Borislav Petkov wrote: > On Wed, Jun 05, 2013 at 03:13:54PM -0500, Jacob Shin wrote: > > This patchset addreses two problems with early loading on AMD. > > It would be nice if, in the future, you put the maintainers of this > driver t

[PATCH 0/2] x86/microcode/amd: early loading fixes

2013-06-05 Thread Jacob Shin
together, whereas the current AMD implementation lacks this support: https://lkml.org/lkml/2013/5/31/4 Jacob Shin (2): x86/microcode/amd: make find_ucode_in_initrd() __init x86/microcode/amd: allow multiple families' bin files appended together arch/x86/kernel/microcode_amd_early.c |

[PATCH 1/2] x86/microcode/amd: make find_ucode_in_initrd() __init

2013-06-05 Thread Jacob Shin
Change find_ucode_in_initrd() to __init and only let BSP call it during cold boot. This is the right thing to do because only BSP will see initrd loaded by the boot loader. APs will offset into initrd_start to find the microcode patch binary. Reported-by: Yinghai Lu Signed-off-by: Jacob Shin

[PATCH 2/2] x86/microcode/amd: allow multiple families' bin files appended together

2013-06-05 Thread Jacob Shin
Add support for parsing through multiple families' microcode patch container binary files appended together when early loading. This is already supported on Intel. Reported-by: Henrique de Moraes Holschuh Signed-off-by: Jacob Shin --- arch/x86/kernel/microcode_amd_early.c |

Re: [tip:x86/microcode] x86, microcode, amd: Fix warnings and errors on with CONFIG_MICROCODE=m

2013-06-04 Thread Jacob Shin
On Tue, Jun 04, 2013 at 04:36:00PM -0500, Jacob Shin wrote: > On Tue, Jun 04, 2013 at 02:02:43PM -0700, Yinghai Lu wrote: > > On Fri, May 31, 2013 at 2:59 PM, tip-bot for Jacob Shin > > wrote: > > > Commit-ID: 6b3389ac21b5e557b957f1497d0ff22bf733e8c3 >

Re: [tip:x86/microcode] x86, microcode, amd: Fix warnings and errors on with CONFIG_MICROCODE=m

2013-06-04 Thread Jacob Shin
On Tue, Jun 04, 2013 at 02:02:43PM -0700, Yinghai Lu wrote: > On Fri, May 31, 2013 at 2:59 PM, tip-bot for Jacob Shin > wrote: > > Commit-ID: 6b3389ac21b5e557b957f1497d0ff22bf733e8c3 > > Gitweb: > > http://git.kernel.org/tip/6b3389ac21b5e557b957f1497d0ff22bf733e8

Re: [PATCH V3 4/4] microcode/x86/amd: early microcode patch loading support for AMD

2013-05-31 Thread Jacob Shin
On Fri, May 31, 2013 at 06:30:39PM -0300, Henrique de Moraes Holschuh wrote: > On Fri, 31 May 2013, Andreas Herrmann wrote: > > On Fri, May 31, 2013 at 01:26:49AM -0300, Henrique de Moraes Holschuh wrote: > > > On Thu, 30 May 2013, Jacob Shin wrote: > > > > m

[tip:x86/microcode] x86, microcode, amd: Fix warnings and errors on with CONFIG_MICROCODE=m

2013-05-31 Thread tip-bot for Jacob Shin
Commit-ID: 6b3389ac21b5e557b957f1497d0ff22bf733e8c3 Gitweb: http://git.kernel.org/tip/6b3389ac21b5e557b957f1497d0ff22bf733e8c3 Author: Jacob Shin AuthorDate: Fri, 31 May 2013 01:53:24 -0500 Committer: H. Peter Anvin CommitDate: Fri, 31 May 2013 13:56:58 -0700 x86, microcode, amd: Fix

Re: [PATCH V3 4/4] microcode/x86/amd: early microcode patch loading support for AMD

2013-05-31 Thread Jacob Shin
On Fri, May 31, 2013 at 01:26:49AM -0300, Henrique de Moraes Holschuh wrote: > On Thu, 30 May 2013, Jacob Shin wrote: > > mkdir initrd > > cd initrd > > -mkdir kernel > > -mkdir kernel/x86 > > -mkdir kernel/x86/microcode > > -cp ../microcode.bin kernel/x

Re: [tip:x86/microcode] x86, microcode, amd: Early microcode patch loading support for AMD

2013-05-31 Thread Jacob Shin
On Fri, May 31, 2013 at 08:13:09AM -0700, H. Peter Anvin wrote: > If you send a patch with text above the patch, please include a scissor > line: > > ---8<--- > > ... above the patch so that git tools can process it. Ah okay, sorry about that, will do so from now on. Yinghai, Boris, sorry if yo

Re: [tip:x86/microcode] x86, microcode, amd: Early microcode patch loading support for AMD

2013-05-31 Thread Jacob Shin
On Fri, May 31, 2013 at 10:41:33AM +0200, Borislav Petkov wrote: > On Thu, May 30, 2013 at 08:31:08PM -0700, tip-bot for Jacob Shin wrote: > > Commit-ID: 757885e94a22bcc82beb9b1445c95218cb20ceab > > Gitweb: > > http://git.kernel.org/tip/757885e94a22bcc82beb9b1445c952

Re: [tip:x86/microcode] x86, microcode, amd: Early microcode patch loading support for AMD

2013-05-31 Thread Jacob Shin
On Thu, May 30, 2013 at 11:10:23PM -0700, Yinghai Lu wrote: > On Thu, May 30, 2013 at 8:31 PM, tip-bot for Jacob Shin > wrote: > > Commit-ID: 757885e94a22bcc82beb9b1445c95218cb20ceab > > Gitweb: > > http://git.kernel.org/tip/757885e94a22bcc82beb9b1445c95218cb20ce

[tip:x86/microcode] x86, microcode, amd: Early microcode patch loading support for AMD

2013-05-30 Thread tip-bot for Jacob Shin
Commit-ID: 757885e94a22bcc82beb9b1445c95218cb20ceab Gitweb: http://git.kernel.org/tip/757885e94a22bcc82beb9b1445c95218cb20ceab Author: Jacob Shin AuthorDate: Thu, 30 May 2013 14:09:19 -0500 Committer: H. Peter Anvin CommitDate: Thu, 30 May 2013 20:19:25 -0700 x86, microcode, amd

[tip:x86/microcode] x86, microcode, amd: Refactor functions to prepare for early loading

2013-05-30 Thread tip-bot for Jacob Shin
Commit-ID: a76096a6571d5389376753c2e18b30a9791fa072 Gitweb: http://git.kernel.org/tip/a76096a6571d5389376753c2e18b30a9791fa072 Author: Jacob Shin AuthorDate: Thu, 30 May 2013 14:09:18 -0500 Committer: H. Peter Anvin CommitDate: Thu, 30 May 2013 20:19:25 -0700 x86, microcode, amd

[tip:x86/microcode] x86, microcode: Vendor abstract out save_microcode_in_initrd()

2013-05-30 Thread tip-bot for Jacob Shin
Commit-ID: f2b3ee820a9f2368d7f8842ad7da062dfe86e199 Gitweb: http://git.kernel.org/tip/f2b3ee820a9f2368d7f8842ad7da062dfe86e199 Author: Jacob Shin AuthorDate: Thu, 30 May 2013 14:09:17 -0500 Committer: H. Peter Anvin CommitDate: Thu, 30 May 2013 20:19:25 -0700 x86, microcode: Vendor

[PATCH V3 0/4] x86/microcode: early microcode patch loading support on AMD

2013-05-30 Thread Jacob Shin
. * Added AMD blurb to Documentation/x86/early-microcode.txt V2: * Fixed warnings when compiling without early loading * Picked up a typo fix [PATCH 1/4] from Boris Borislav Petkov (1): x86, microcode, intel: Correct typo in printk Jacob Shin (3): x86/microcode: vendor abstract out

[PATCH V3 3/4] x86/microcode/amd: refactor functions to prepare for early loading

2013-05-30 Thread Jacob Shin
In preparation work for early loading, refactor some common functions that will be shared, and move some struct defines to a common header file. Signed-off-by: Jacob Shin --- arch/x86/include/asm/microcode_amd.h | 64 arch/x86/kernel/microcode_amd.c | 111

[PATCH V3 4/4] microcode/x86/amd: early microcode patch loading support for AMD

2013-05-30 Thread Jacob Shin
Add early microcode patch loading support for AMD. Signed-off-by: Jacob Shin --- Documentation/x86/early-microcode.txt | 11 +- arch/x86/Kconfig | 14 +- arch/x86/include/asm/microcode_amd.h | 14 ++ arch/x86/kernel/Makefile |1 + arch/x86/kernel

[PATCH V3 2/4] x86/microcode: vendor abstract out save_microcode_in_initrd()

2013-05-30 Thread Jacob Shin
Currently save_microcode_in_initrd() is declared in vendor neutural microcode.h file, but defined in vendor specific microcode_intel_early.c file. Vendor abstract it out to microcode_core_early.c with a wrapper function. Signed-off-by: Jacob Shin --- arch/x86/include/asm/microcode_intel.h

[PATCH V3 1/4] x86, microcode, intel: Correct typo in printk

2013-05-30 Thread Jacob Shin
From: Borislav Petkov User-visible so correct it. Signed-off-by: Borislav Petkov Signed-off-by: Jacob Shin --- arch/x86/kernel/microcode_intel_early.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/microcode_intel_early.c b/arch/x86/kernel

Re: [PATCH V2 3/3] x86/microcode: early microcode patch loading support on AMD

2013-05-28 Thread Jacob Shin
On Wed, May 29, 2013 at 12:45:29AM +0200, Borislav Petkov wrote: > On Thu, May 23, 2013 at 10:40:18AM -0500, Jacob Shin wrote: > > Add support for early microcode patch loading on AMD. > > > > Signed-off-by: Jacob Shin > > --- > > arch/x86/Kconfig

Re: [PATCH V2 3/3] x86/microcode: early microcode patch loading support on AMD

2013-05-24 Thread Jacob Shin
On Fri, May 24, 2013 at 03:33:38PM +, Yu, Fenghua wrote: > > From: Jacob Shin [mailto:jacob.s...@amd.com] > > Add support for early microcode patch loading on AMD. > > > > Signed-off-by: Jacob Shin > > --- > > arch/x86/Kconfig

Re: [PATCH V2 0/3] x86/microcode: early microcode patch loading support on AMD

2013-05-24 Thread Jacob Shin
On Fri, May 24, 2013 at 10:29:48AM +0200, Borislav Petkov wrote: > On Thu, May 23, 2013 at 04:23:01PM -0500, Jacob Shin wrote: > > On Thu, May 23, 2013 at 09:01:21PM +, Yu, Fenghua wrote: > > > > From: Jacob Shin [mailto:jacob.s...@amd.com] > > > > The follow

Re: [PATCH V2 2/3] x86, microcode, intel: Correct typo in printk

2013-05-24 Thread Jacob Shin
On Fri, May 24, 2013 at 10:43:50AM +0200, Borislav Petkov wrote: > On Thu, May 23, 2013 at 10:40:17AM -0500, Jacob Shin wrote: > > From: Borislav Petkov > > > > User-visible so correct it. > > > > Signed-off-by: Borislav Petkov > > Signed-off-by: J

Re: [PATCH V2 0/3] x86/microcode: early microcode patch loading support on AMD

2013-05-23 Thread Jacob Shin
On Thu, May 23, 2013 at 09:01:21PM +, Yu, Fenghua wrote: > > From: Jacob Shin [mailto:jacob.s...@amd.com] > > The following patchset adds early microcode patch loading support on > > AMD systems, on top of the framework introduced by: > > https://lkml.org/lkml/2012/1

[PATCH V2 0/3] x86/microcode: early microcode patch loading support on AMD

2013-05-23 Thread Jacob Shin
, microcode, intel: Correct typo in printk Jacob Shin (2): x86/microcode: vendor abstract out save_microcode_in_initrd() x86/microcode: early microcode patch loading support on AMD arch/x86/Kconfig| 16 +- arch/x86/include/asm/microcode.h|1 - arch/x86/include

[PATCH V2 3/3] x86/microcode: early microcode patch loading support on AMD

2013-05-23 Thread Jacob Shin
Add support for early microcode patch loading on AMD. Signed-off-by: Jacob Shin --- arch/x86/Kconfig | 16 +- arch/x86/include/asm/microcode.h |1 - arch/x86/include/asm/microcode_amd.h | 17 ++ arch/x86/include/asm/microcode_intel.h |1 + arch/x86

[PATCH V2 1/3] x86/microcode: vendor abstract out save_microcode_in_initrd()

2013-05-23 Thread Jacob Shin
Currently save_microcode_in_initrd() is declared in vendor neutural microcode.h file, but defined in vendor specific microcode_intel_early.c file. Vendor abstract it out to microcode_core_early.c with a wrapper function. Signed-off-by: Jacob Shin --- arch/x86/include/asm/microcode_intel.h

[PATCH V2 2/3] x86, microcode, intel: Correct typo in printk

2013-05-23 Thread Jacob Shin
From: Borislav Petkov User-visible so correct it. Signed-off-by: Borislav Petkov Signed-off-by: Jacob Shin --- arch/x86/kernel/microcode_intel_early.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/microcode_intel_early.c b/arch/x86/kernel

Re: [PATCH 1/2] x86/microcode: vendor abstract out save_microcode_in_initrd()

2013-05-23 Thread Jacob Shin
On Thu, May 23, 2013 at 09:54:23AM +0200, Borislav Petkov wrote: > On Wed, May 22, 2013 at 08:15:33PM -0500, Jacob Shin wrote: > > Currently save_microcode_in_initrd() is declared in vendor neutural > > microcode.h file, but defined in vendor specific > > microcode_intel

[PATCH 1/2] x86/microcode: vendor abstract out save_microcode_in_initrd()

2013-05-22 Thread Jacob Shin
Currently save_microcode_in_initrd() is declared in vendor neutural microcode.h file, but defined in vendor specific microcode_intel_early.c file. Vendor abstract it out to microcode_core_early.c with a wrapper function. Signed-off-by: Jacob Shin --- arch/x86/include/asm/microcode_intel.h

[PATCH 0/2] x86/microcode: early microcode patch loading support on AMD

2013-05-22 Thread Jacob Shin
The following patchset adds early microcode patch loading support on AMD systems, on top of the framework introduced by: https://lkml.org/lkml/2012/12/21/193 Jacob Shin (2): x86/microcode: vendor abstract out save_microcode_in_initrd() x86/microcode: early microcode patch loading support on

[PATCH 2/2] x86/microcode: early microcode patch loading support on AMD

2013-05-22 Thread Jacob Shin
Add support for early microcode patch loading on AMD. Signed-off-by: Jacob Shin --- arch/x86/Kconfig | 14 +- arch/x86/include/asm/microcode_amd.h | 14 ++ arch/x86/kernel/microcode_amd.c| 335 arch/x86/kernel

Re: Drop WARN on AMD lack of perfctrs

2013-05-21 Thread Jacob Shin
ntly the code doesn't work for Fam16h afaict, so I didn't wreck > that did I? Hi, right, Family 16h does not have perfctr_core, instead it still has the 4 legacy performance counter registers just like Family 10h, and so does not have any special constraints as 15h's perfctr_co

[PATCH V4 0/3] perf/x86/amd: AMD Family 16h Data Breakpoint Extensions

2013-04-27 Thread Jacob Shin
of changing userland API and in kernel turn bp_len into proper AMD hardware breakpoint address mask. V2: Per Oleg's suggestions: * Moved testing of bp_addr_mask to validate_hw_breakpoint() * Changed perf tool syntax to mem:[/addr_mask][:access] Jacob Shin (3): perf/x86/a

[PATCH 2/3] perf tools: allow user to specify hardware breakpoint bp_len

2013-04-27 Thread Jacob Shin
Currently bp_len is given a default value of 4. Allow user to override it: $ perf stat -e mem:0x1000/8 ^ bp_len If no value is given, it will default to 4 as it did before. Signed-off-by: Jacob Shin --- tools/perf/Documentation/perf

[PATCH 1/3] perf/x86/amd: AMD support for bp_len > HW_BREAKPOINT_LEN_8

2013-04-27 Thread Jacob Shin
from Oleg Nesterov Signed-off-by: Jacob Shin --- arch/x86/include/asm/cpufeature.h |2 ++ arch/x86/include/asm/debugreg.h |5 arch/x86/include/asm/hw_breakpoint.h |1 + arch/x86/include/uapi/asm/msr-index.h |4 +++ arch/x86/kernel/cpu/amd.c | 19

Re: [PATCH 1/3] perf/x86/amd: AMD support for bp_len > HW_BREAKPOINT_LEN_8

2013-04-27 Thread Jacob Shin
On Sat, Apr 27, 2013 at 06:10:28PM +0200, Oleg Nesterov wrote: > On 04/27, Jacob Shin wrote: > > > > On Sat, Apr 27, 2013 at 05:05:10PM +0200, Oleg Nesterov wrote: > > > ... > > > > + if (info->mask) > > > > + set_dr_a

[PATCH 3/3] perf tools: add hardware breakpoint bp_len test cases

2013-04-27 Thread Jacob Shin
Signed-off-by: Jacob Shin --- tools/perf/tests/parse-events.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index 88e2f44..4fd0f96 100644 --- a/tools/perf/tests/parse-events.c

Re: [PATCH 2/3] perf tools: allow user to specify hardware breakpoint bp_len

2013-04-27 Thread Jacob Shin
On Sat, Apr 27, 2013 at 07:34:24PM +0200, Oleg Nesterov wrote: > On 04/27, Oleg Nesterov wrote: > > > > On 04/26, Jacob Shin wrote: > > > > > > @@ -518,12 +518,10 @@ int parse_events_add_breakpoint(struct list_head > > > **list, int *idx, >

Re: [PATCH 1/3] perf/x86/amd: AMD support for bp_len > HW_BREAKPOINT_LEN_8

2013-04-27 Thread Jacob Shin
On Sat, Apr 27, 2013 at 05:05:10PM +0200, Oleg Nesterov wrote: > On 04/26, Jacob Shin wrote: > > > > Implement hardware breakpoint address mask for AMD Family 16h and > > above processors. CPUID feature bit indicates hardware support for > > DRn_ADDR_MASK MSRs. These ma

[PATCH 1/3] perf/x86/amd: AMD support for bp_len > HW_BREAKPOINT_LEN_8

2013-04-26 Thread Jacob Shin
from Oleg Nesterov Signed-off-by: Jacob Shin --- arch/x86/include/asm/cpufeature.h |2 ++ arch/x86/include/asm/debugreg.h |5 arch/x86/include/asm/hw_breakpoint.h |1 + arch/x86/include/uapi/asm/msr-index.h |4 +++ arch/x86/kernel/cpu/amd.c | 19

[PATCH 0/3] perf/x86/amd: AMD Family 16h Data Breakpoint Extensions

2013-04-26 Thread Jacob Shin
Per Oleg's suggestions: * Moved testing of bp_addr_mask to validate_hw_breakpoint() * Changed perf tool syntax to mem:[/addr_mask][:access] Jacob Shin (3): perf/x86/amd: AMD support for bp_len > HW_BREAKPOINT_LEN_8 perf tools: allow user to specify hardware breakpoint bp_len perf tools: add h

[PATCH 2/3] perf tools: allow user to specify hardware breakpoint bp_len

2013-04-26 Thread Jacob Shin
Currently bp_len is given a default value of 4. Allow user to override it: $ perf stat -e mem:0x1000/8 ^ bp_len If no value is given, it will default to 4 as it did before. Signed-off-by: Jacob Shin --- tools/perf/Documentation/perf

[PATCH 3/3] perf tools: add hardware breakpoint bp_len test cases

2013-04-26 Thread Jacob Shin
Signed-off-by: Jacob Shin --- tools/perf/tests/parse-events.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index 88e2f44..4fd0f96 100644 --- a/tools/perf/tests/parse-events.c

Re: [PATCH V2 1/4] perf: Add hardware breakpoint address mask

2013-04-26 Thread Jacob Shin
On Fri, Apr 26, 2013 at 05:20:44PM +0100, Will Deacon wrote: > Hi Jacob, > > On Fri, Apr 26, 2013 at 12:19:11AM +0100, Jacob Shin wrote: > > On Thu, Apr 25, 2013 at 10:17:35AM -0700, H. Peter Anvin wrote: > > > On 04/25/2013 10:06 AM, Oleg Nesterov wrote: > > > &g

Re: [PATCH V2 1/4] perf: Add hardware breakpoint address mask

2013-04-25 Thread Jacob Shin
On Thu, Apr 25, 2013 at 10:17:35AM -0700, H. Peter Anvin wrote: > On 04/25/2013 10:06 AM, Oleg Nesterov wrote: > >> > >> The downside is that in userland perf tool we need differing documentation > >> on what the mask syntax means for each architecture. > > > > Personally I think this is acceptabl

Re: [PATCH V2 1/4] perf: Add hardware breakpoint address mask

2013-04-25 Thread Jacob Shin
On Thu, Apr 25, 2013 at 05:10:35PM +0200, Oleg Nesterov wrote: > On 04/25, Frederic Weisbecker wrote: > > > > 2013/4/23 Jacob Shin : > > > @@ -286,7 +286,10 @@ struct perf_event_attr { > > > __u64 config1; /* extension of config */ >

Re: [PATCH V2 1/4] perf: Add hardware breakpoint address mask

2013-04-24 Thread Jacob Shin
On Wed, Apr 24, 2013 at 10:48:53AM +0100, Will Deacon wrote: > On Tue, Apr 23, 2013 at 04:18:46PM +0100, Jacob Shin wrote: > > On Tue, Apr 23, 2013 at 04:02:40PM +0100, Will Deacon wrote: > > > On Tue, Apr 23, 2013 at 03:40:57PM +0100, Jacob Shin wrote: > > > > >

Re: [PATCH V2 1/4] perf: Add hardware breakpoint address mask

2013-04-23 Thread Jacob Shin
On Tue, Apr 23, 2013 at 04:02:40PM +0100, Will Deacon wrote: > On Tue, Apr 23, 2013 at 03:40:57PM +0100, Jacob Shin wrote: > > On Tue, Apr 23, 2013 at 09:34:23AM -0500, Jacob Shin wrote: > > > On Tue, Apr 23, 2013 at 10:54:37AM +0100, Will Deacon wrote: > > > > Can

Re: [PATCH V2 1/4] perf: Add hardware breakpoint address mask

2013-04-23 Thread Jacob Shin
On Tue, Apr 23, 2013 at 09:34:23AM -0500, Jacob Shin wrote: > On Tue, Apr 23, 2013 at 10:54:37AM +0100, Will Deacon wrote: > > Hi Jacob, > > > > On Tue, Apr 23, 2013 at 08:57:02AM +0100, Jacob Shin wrote: > > > Some architectures (for us, AMD Family 16h) allow for

Re: [PATCH V2 1/4] perf: Add hardware breakpoint address mask

2013-04-23 Thread Jacob Shin
On Tue, Apr 23, 2013 at 10:54:37AM +0100, Will Deacon wrote: > Hi Jacob, > > On Tue, Apr 23, 2013 at 08:57:02AM +0100, Jacob Shin wrote: > > Some architectures (for us, AMD Family 16h) allow for "don't care" bit > > mask to further qualify a hardware breakpo

Re: [PATCH V2 1/4] perf: Add hardware breakpoint address mask

2013-04-23 Thread Jacob Shin
On Tue, Apr 23, 2013 at 03:18:44PM +0200, Oleg Nesterov wrote: > On 04/23, Jacob Shin wrote: > > > > +__weak int arch_validate_hwbkpt_addr_mask(struct perf_event *bp) > > +{ > > + return bp->attr.bp_addr_mask == 0; > > +} > > + > > static

[PATCH V2 2/4] perf/x86/amd: AMD implementation for hardware breakpoint address mask

2013-04-23 Thread Jacob Shin
Implement hardware breakpoint address mask for AMD Family 16h (and any other future) processors. CPUID feature bit indicates the hardware support for DRn_ADDR_MASK MSRs. Signed-off-by: Jacob Shin --- arch/x86/include/asm/cpufeature.h |2 ++ arch/x86/include/asm/debugreg.h |5

[PATCH V2 0/4] perf: Add support for hardware breakpoint address masks

2013-04-23 Thread Jacob Shin
* Changed perf tool syntax to mem:[/addr_mask][:access] Jacob Shin (2): perf: Add hardware breakpoint address mask perf/x86/amd: AMD implementation for hardware breakpoint address mask Suravee Suthikulpanit (2): perf tools: Add hardware breakpoint address mask event parser perf tools: Add

[PATCH V2 1/4] perf: Add hardware breakpoint address mask

2013-04-23 Thread Jacob Shin
Some architectures (for us, AMD Family 16h) allow for "don't care" bit mask to further qualify a hardware breakpoint address, in order to trap on range of addresses. Update perf uapi to add bp_addr_mask field. Signed-off-by: Jacob Shin --- include/uapi/linux/perf_event.h |

[PATCH V2 4/4] perf tools: Add hardware breakpoint address mask test cases

2013-04-23 Thread Jacob Shin
From: Suravee Suthikulpanit Signed-off-by: Suravee Suthikulpanit Signed-off-by: Jacob Shin --- tools/perf/tests/parse-events.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index

[PATCH V2 3/4] perf tools: Add hardware breakpoint address mask event parser

2013-04-23 Thread Jacob Shin
From: Suravee Suthikulpanit Allow perf tool to pass in breakpoint address mask to match an address range, i.e.: $ perf stat -e mem:0x1000/0xf:w a.out Will count writes to [0x1000 ~ 0x1010) Signed-off-by: Suravee Suthikulpanit Signed-off-by: Jacob Shin --- tools/perf/Documentation/perf

Re: [PATCH 2/5] perf, x86: AMD implementation for hardware breakpoint address mask

2013-04-22 Thread Jacob Shin
On Sun, Apr 21, 2013 at 07:19:21PM +0200, Oleg Nesterov wrote: > Not a comment, but the question... > > On 04/09, Jacob Shin wrote: > > > > --- a/arch/x86/include/asm/hw_breakpoint.h > > +++ b/arch/x86/include/asm/hw_breakpoint.h > > @@ -14,6 +14,7 @@ struct arch

Re: [PATCH 1/5] perf: Add hardware breakpoint address mask

2013-04-22 Thread Jacob Shin
On Mon, Apr 22, 2013 at 04:37:15PM -0500, Jacob Shin wrote: > On Sun, Apr 21, 2013 at 07:02:02PM +0200, Oleg Nesterov wrote: > > On 04/20, Jacob Shin wrote: > > > > > > On Sat, Apr 20, 2013 at 06:53:34PM +0200, Oleg Nesterov wrote: > > > > > > >

Re: [PATCH 1/5] perf: Add hardware breakpoint address mask

2013-04-22 Thread Jacob Shin
On Sun, Apr 21, 2013 at 07:02:02PM +0200, Oleg Nesterov wrote: > On 04/20, Jacob Shin wrote: > > > > On Sat, Apr 20, 2013 at 06:53:34PM +0200, Oleg Nesterov wrote: > > > > > > And does attr.bp_len "contribute" to the mask? > > > > > > I

[tip:perf/core] perf/x86/amd: Fix AMD NB and L2I "uncore" support

2013-04-22 Thread tip-bot for Jacob Shin
Commit-ID: 94f4db3590893c600506105b88dab581c7f6f5c8 Gitweb: http://git.kernel.org/tip/94f4db3590893c600506105b88dab581c7f6f5c8 Author: Jacob Shin AuthorDate: Sun, 21 Apr 2013 13:06:27 -0500 Committer: Ingo Molnar CommitDate: Mon, 22 Apr 2013 10:10:55 +0200 perf/x86/amd: Fix AMD NB and

[tip:perf/core] perf/x86/amd: Remove old-style NB counter support from perf_event_amd.c

2013-04-22 Thread tip-bot for Jacob Shin
Commit-ID: 0cf5f4323b1b51ecca3e952f95110e03ea611882 Gitweb: http://git.kernel.org/tip/0cf5f4323b1b51ecca3e952f95110e03ea611882 Author: Jacob Shin AuthorDate: Mon, 15 Apr 2013 12:21:22 -0500 Committer: Ingo Molnar CommitDate: Sun, 21 Apr 2013 17:21:59 +0200 perf/x86/amd: Remove old

Re: [tip:perf/core] perf/x86/amd: Add support for AMD NB and L2I " uncore" counters

2013-04-21 Thread Jacob Shin
On Sun, Apr 21, 2013 at 07:02:32PM +0200, Borislav Petkov wrote: > On Sun, Apr 21, 2013 at 05:48:36AM -0700, tip-bot for Jacob Shin wrote: > > Commit-ID: c43ca5091a374c1f6778bd7e4a39a5a10735a917 > > Gitweb: > > http://git.kernel.org/tip/c43ca5091a374c1f6778bd7e4a39a5

Re: [tip:perf/core] perf/x86/amd: Add support for AMD NB and L2I " uncore" counters

2013-04-21 Thread Jacob Shin
On Sun, Apr 21, 2013 at 07:02:32PM +0200, Borislav Petkov wrote: > On Sun, Apr 21, 2013 at 05:48:36AM -0700, tip-bot for Jacob Shin wrote: > > Commit-ID: c43ca5091a374c1f6778bd7e4a39a5a10735a917 > > Gitweb: > > http://git.kernel.org/tip/c43ca5091a374c1f6778bd7e4a39a5

Re: [tip:perf/core] perf/x86/amd: Add support for AMD NB and L2I " uncore" counters

2013-04-21 Thread Jacob Shin
On Sun, Apr 21, 2013 at 05:48:36AM -0700, tip-bot for Jacob Shin wrote: > Commit-ID: c43ca5091a374c1f6778bd7e4a39a5a10735a917 > Gitweb: http://git.kernel.org/tip/c43ca5091a374c1f6778bd7e4a39a5a10735a917 > Author: Jacob Shin > AuthorDate: Fri, 19 Apr 2013 16:34:28 -0500 > C

[tip:perf/core] perf/x86/amd: Add support for AMD NB and L2I " uncore" counters

2013-04-21 Thread tip-bot for Jacob Shin
Commit-ID: c43ca5091a374c1f6778bd7e4a39a5a10735a917 Gitweb: http://git.kernel.org/tip/c43ca5091a374c1f6778bd7e4a39a5a10735a917 Author: Jacob Shin AuthorDate: Fri, 19 Apr 2013 16:34:28 -0500 Committer: Ingo Molnar CommitDate: Sun, 21 Apr 2013 11:01:24 +0200 perf/x86/amd: Add support

Re: [PATCH 1/5] perf: Add hardware breakpoint address mask

2013-04-20 Thread Jacob Shin
On Sat, Apr 20, 2013 at 06:53:34PM +0200, Oleg Nesterov wrote: > On 04/09, Jacob Shin wrote: > > > > The following patchset adds address masks to existing perf hardware > > breakpoint mechanism to allow trapping on an address range (currently > > only single address)

Re: [PATCH 1/5] perf: Add hardware breakpoint address mask

2013-04-20 Thread Jacob Shin
On Sat, Apr 20, 2013 at 06:22:23PM +0200, Oleg Nesterov wrote: > On 04/09, Jacob Shin wrote: > > > > @@ -612,6 +612,9 @@ static int hw_breakpoint_add(struct perf_event *bp, int > > flags) > > if (!(flags & PERF_EF_START)) > > bp->hw.stat

Re: [PATCH 2/2] perf, amd: support for AMD NB and L2I "uncore" counters.

2013-04-19 Thread Jacob Shin
On Fri, Apr 19, 2013 at 08:55:24PM +0200, Peter Zijlstra wrote: > On Fri, 2013-04-19 at 09:41 -0500, Jacob Shin wrote: > > > > Thank you again, for taking the time. > > Ah something I just remembered, could you do a patch like the below > one? That makes things like perf

Re: [PATCH 2/2] perf, amd: support for AMD NB and L2I "uncore" counters.

2013-04-19 Thread Jacob Shin
On Fri, Apr 19, 2013 at 02:27:16PM +0200, Peter Zijlstra wrote: > On Thu, 2013-04-18 at 11:33 -0500, Jacob Shin wrote: > > > Okay, here is V2 which does that. Thanks again in advance for taking > > the time to look it over. > > Awesome, looks good on a first read.. I&

Re: [PATCH 0/5] perf: Add support for hardware breakpoint address masks

2013-04-18 Thread Jacob Shin
On Tue, Apr 16, 2013 at 11:36:20AM +0200, Ingo Molnar wrote: > > * Jacob Shin wrote: > > > On Tue, Apr 09, 2013 at 12:21:48PM -0500, Jacob Shin wrote: > > > The following patchset adds address masks to existing perf hardware > > > breakpoint mechanism to a

Re: [PATCH 2/2] perf, amd: support for AMD NB and L2I "uncore" counters.

2013-04-18 Thread Jacob Shin
On Thu, Apr 18, 2013 at 01:28:54PM +0200, Peter Zijlstra wrote: > On Mon, 2013-04-15 at 12:21 -0500, Jacob Shin wrote: > > Add support for AMD Family 15h [and above] northbridge performance > > counters. MSRs 0xc0010240 ~ 0xc0010247 are shared across all cores > > that share

Re: [PATCH 0/2] perf, amd: support for AMD NB and L2I "uncore" counters.

2013-04-17 Thread Jacob Shin
On Mon, Apr 15, 2013 at 12:21:21PM -0500, Jacob Shin wrote: > Per Ingo and Peter Z's request: > https://lkml.org/lkml/2013/4/10/267 > > This patchset removes the NB counter support from perf_event_amd.c and > creates a new PMU instead to add support for both AMD NB and L2I &

[PATCH 1/2] perf, amd: remove NB counter support from perf_event_amd.c

2013-04-15 Thread Jacob Shin
Support for NB counters, MSRs 0xc0010240 ~ 0xc0010247, will be moved to perf_event_amd_uncore.c in a follow up patch. AMD Family 10h NB events (events 0xe0 ~ 0xff, on MSRs 0xc001000 ~ 0xc001007) will still continue to be handled by perf_event_amd.c Signed-off-by: Jacob Shin --- arch/x86/kernel

Re: [PATCH 0/5] perf: Add support for hardware breakpoint address masks

2013-04-15 Thread Jacob Shin
On Tue, Apr 09, 2013 at 12:21:48PM -0500, Jacob Shin wrote: > The following patchset adds address masks to existing perf hardware > breakpoint mechanism to allow trapping on an address range (currently > only single address) on supported architectures. > > perf uapi is u

[PATCH 2/2] perf, amd: support for AMD NB and L2I "uncore" counters.

2013-04-15 Thread Jacob Shin
common L2 cache. We do not enable counter overflow interrupts. Sampling mode and per-thread events are not supported. Signed-off-by: Jacob Shin --- arch/x86/include/asm/cpufeature.h |2 + arch/x86/include/uapi/asm/msr-index.h |4 + arch/x86/kernel/cpu/Makefile

[PATCH 0/2] perf, amd: support for AMD NB and L2I "uncore" counters.

2013-04-15 Thread Jacob Shin
Per Ingo and Peter Z's request: https://lkml.org/lkml/2013/4/10/267 This patchset removes the NB counter support from perf_event_amd.c and creates a new PMU instead to add support for both AMD NB and L2I counters. Jacob Shin (2): perf, amd: remove NB counter support from perf_event_

  1   2   3   4   >