[PATCH 2/5] perf, amd: Generalize northbridge constraints code for family 15h

2012-11-26 Thread Jacob Shin
From: Robert Richter Generalize northbridge constraints code for family 10h so that later we can reuse the same code path with other AMD processor families that have the same northbridge event constraints. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu

[PATCH V3 0/5] perf, amd: Enable AMD family 15h northbridge counters

2012-11-26 Thread Jacob Shin
x27;s review * https://lkml.org/lkml/2012/11/16/484 * https://lkml.org/lkml/2012/11/26/162 V2: Separate out Robert's patches, and add properly ordered certificate of origins. Jacob Shin (3): perf, x86: Move MSR address offset calculation to architecture specific files perf, amd: Enable n

[PATCH 3/5] perf, x86: Move MSR address offset calculation to architecture specific files

2012-11-26 Thread Jacob Shin
performance counters starting at 0xc0010240. Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event.h | 21 +--- arch/x86/kernel/cpu/perf_event_amd.c | 35 ++ 2 files changed, 40 insertions(+), 16 deletions(-) diff --git a/arch/x86/kernel

[PATCH 4/5] perf, amd: Enable northbridge performance counters on AMD family 15h

2012-11-26 Thread Jacob Shin
counters, and their indexes correspond to RDPMC ECX values. Signed-off-by: Jacob Shin --- arch/x86/include/asm/cpufeature.h|2 + arch/x86/include/asm/msr-index.h |2 + arch/x86/include/asm/perf_event.h|9 +++ arch/x86/kernel/cpu/perf_event_amd.c | 131

[PATCH 1/5] perf, amd: Rework northbridge event constraints handler

2012-11-26 Thread Jacob Shin
From: Robert Richter Code simplification. No functional changes. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event_amd.c | 68 +- 1 file changed, 26 insertions(+), 42 deletions(-) diff --git a/arch/x86/kernel/cpu

[PATCH 5/5] perf, amd: Use proper naming scheme for AMD bit field definitions

2012-11-26 Thread Jacob Shin
Update these AMD bit field names to be consistent with naming convention followed by the rest of the file. Signed-off-by: Jacob Shin --- arch/x86/include/asm/perf_event.h|4 ++-- arch/x86/kernel/cpu/perf_event_amd.c |8 2 files changed, 6 insertions(+), 6 deletions(-) diff

Re: [PATCH 4/5] perf, amd: Enable northbridge performance counters on AMD family 15h

2012-11-27 Thread Jacob Shin
On Tue, Nov 27, 2012 at 01:10:51PM +0100, Robert Richter wrote: > One minor comment: > > On 26.11.12 16:48:30, Jacob Shin wrote: > > __init int amd_pmu_init(void) > > { > > /* Performance-monitoring supported from K7 and later: */ > > @@ -666,6 +749,1

Re: [PATCH 4/4] perf, amd: Enable northbridge performance counters on AMD family 15h

2012-11-28 Thread Jacob Shin
Robert, On Fri, Nov 16, 2012 at 08:32:24PM +0100, Robert Richter wrote: > On 16.11.12 13:00:30, Jacob Shin wrote: > > On Fri, Nov 16, 2012 at 07:43:44PM +0100, Robert Richter wrote: > > > On 15.11.12 15:31:53, Jacob Shin wrote: > > > > @@ -323,6 +368,16 @@ __amd_g

[PATCH V6 0/6] perf, amd: Enable AMD family 15h northbridge counters

2013-02-06 Thread Jacob Shin
Separate out Robert's patches, and add properly ordered certificate of origins. Jacob Shin (4): perf, amd: Use proper naming scheme for AMD bit field definitions perf, x86: Move MSR address offset calculation to architecture specific files perf, x86: Allow for architecture specific

[PATCH 5/6] perf, x86: Allow for architecture specific RDPMC indexes

2013-02-06 Thread Jacob Shin
Similar to config_base and event_base, allow architecture specific RDPMC ECX values. Signed-off-by: Jacob Shin Acked-by: Stephane Eranian --- arch/x86/kernel/cpu/perf_event.c |2 +- arch/x86/kernel/cpu/perf_event.h |6 ++ arch/x86/kernel/cpu/perf_event_amd.c |6

[PATCH 4/6] perf, x86: Move MSR address offset calculation to architecture specific files

2013-02-06 Thread Jacob Shin
performance counters starting at 0xc0010240. Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event.h | 21 - arch/x86/kernel/cpu/perf_event_amd.c | 42 ++ 2 files changed, 47 insertions(+), 16 deletions(-) diff --git a/arch/x86/kernel/cpu

[PATCH 2/6] perf, amd: Generalize northbridge constraints code for family 15h

2013-02-06 Thread Jacob Shin
From: Robert Richter Generalize northbridge constraints code for family 10h so that later we can reuse the same code path with other AMD processor families that have the same northbridge event constraints. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu

[PATCH 6/6] perf, amd: Enable northbridge performance counters on AMD family 15h

2013-02-06 Thread Jacob Shin
counters, these MSRs are shared between multiple cores (that share the same northbridge). We will reuse the same code path as existing family 10h northbridge event constraints handler logic to enforce this sharing. Signed-off-by: Jacob Shin --- arch/x86/include/asm/cpufeature.h |2 + arch/x86

[PATCH 1/6] perf, amd: Rework northbridge event constraints handler

2013-02-06 Thread Jacob Shin
From: Robert Richter Code simplification. No functional changes. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin Acked-by: Stephane Eranian --- arch/x86/kernel/cpu/perf_event_amd.c | 68 +- 1 file changed, 26 insertions(+), 42 deletions(-) diff

[PATCH 3/6] perf, amd: Use proper naming scheme for AMD bit field definitions

2013-02-06 Thread Jacob Shin
Update these AMD bit field names to be consistent with naming convention followed by the rest of the file. Signed-off-by: Jacob Shin Acked-by: Stephane Eranian --- arch/x86/include/asm/perf_event.h|4 ++-- arch/x86/kernel/cpu/perf_event_amd.c |8 2 files changed, 6

Re: [PATCH V6 0/6] perf, amd: Enable AMD family 15h northbridge counters

2013-02-06 Thread Jacob Shin
On Wed, Feb 06, 2013 at 11:26:23AM -0600, Jacob Shin wrote: > The following patchset enables 4 additional performance counters in > AMD family 15h processors that count northbridge events -- such as > number of DRAM accesses. > Here is the libpfm4 counterpart, Th

Re: [PATCH 6/6] perf, amd: Enable northbridge performance counters on AMD family 15h

2013-02-07 Thread Jacob Shin
On Wed, Feb 06, 2013 at 11:26:29AM -0600, Jacob Shin wrote: > On AMD family 15h processors, there are 4 new performance counters > (in addition to 6 core performance counters) that can be used for > counting northbridge events (i.e. DRAM accesses). Their bit fields are > almost iden

Re: [PATCH 6/6] perf, amd: Enable northbridge performance counters on AMD family 15h

2013-02-11 Thread Jacob Shin
On Fri, Feb 08, 2013 at 12:16:28PM +0100, Stephane Eranian wrote: > On Wed, Feb 6, 2013 at 6:26 PM, Jacob Shin wrote: > > On AMD family 15h processors, there are 4 new performance counters > > (in addition to 6 core performance counters) that can be used for > > counting no

Re: [PATCH V2 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor

2013-04-02 Thread Jacob Shin
On Tue, Apr 02, 2013 at 01:40:13PM +0200, Thomas Renninger wrote: > On Thursday, March 28, 2013 01:24:17 PM Jacob Shin wrote: > > Future AMD processors, starting with Family 16h, can provide software > > with feedback on how the workload may respond to frequency change -- &

Re: [PATCH V2 1/2] cpufreq: ondemand: allow custom powersave_bias_target function to be registered

2013-04-02 Thread Jacob Shin
On Tue, Apr 02, 2013 at 02:43:32PM +0200, Borislav Petkov wrote: > On Thu, Mar 28, 2013 at 01:24:16PM -0500, Jacob Shin wrote: > > This allows for another [arch specific] driver to hook into existing > > powersave bias function of the ondemand governor. i.e. This allows AMD > &g

Re: [PATCH V2 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor

2013-04-02 Thread Jacob Shin
On Tue, Apr 02, 2013 at 03:42:55PM +0200, Borislav Petkov wrote: > On Thu, Mar 28, 2013 at 01:24:17PM -0500, Jacob Shin wrote: > > Future AMD processors, starting with Family 16h, can provide software > > with feedback on how the workload may respond to frequency change -- &

Re: [PATCH 0/3] perf, amd: Support for Family 16h L2I Performance Counters

2013-04-02 Thread Jacob Shin
On Wed, Mar 27, 2013 at 06:07:01PM -0500, Jacob Shin wrote: > Upcoming AMD Family 16h Processors provide 4 new performance counters > to count L2 related events. Similar to northbridge counters, these new > counters are shared across multiple CPUs that share the same L2 cache. > This p

[PATCH V3 0/2] cpufreq: ondemand: add AMD specific powersave bias

2013-04-02 Thread Jacob Shin
r. * Other small changes per feedback from: https://lkml.org/lkml/2013/4/2/349 V2: * Added proper include files to amd_freq_sensitivity.c * Only register powersave_bias_target function pointer and not the entire od_ops. Jacob Shin (2): cpufreq: ondemand: allow custom powersave_bias_target han

[PATCH V3 1/2] cpufreq: ondemand: allow custom powersave_bias_target handler to be registered

2013-04-02 Thread Jacob Shin
This allows for another [arch specific] driver to hook into existing powersave bias function of the ondemand governor. i.e. This allows AMD specific powersave bias function (in a separate AMD specific driver) to aid ondemand governor's frequency transition deicisions. Signed-off-by: Jacob

[PATCH V3 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor

2013-04-02 Thread Jacob Shin
dback" to aid the ondemand governor to make better frequency change decisions by hooking into the powersave bias. Signed-off-by: Jacob Shin --- arch/x86/include/asm/cpufeature.h |1 + arch/x86/kernel/cpu/scattered.c|3 +- drivers/cpufreq/Kconfig.x86| 17 +++

Re: [PATCH V3 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor

2013-04-02 Thread Jacob Shin
On Tue, Apr 02, 2013 at 09:23:52PM +0200, Borislav Petkov wrote: > On Tue, Apr 02, 2013 at 01:11:44PM -0500, Jacob Shin wrote: > > Future AMD processors, starting with Family 16h, can provide software > > with feedback on how the workload may respond to frequency change -- &

Re: [PATCH V3 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor

2013-04-03 Thread Jacob Shin
On Tue, Apr 02, 2013 at 11:01:24PM +0200, Borislav Petkov wrote: > On Tue, Apr 02, 2013 at 10:51:51PM +0200, Thomas Renninger wrote: > > powersave_bias is undocumented in Documentation/cpu-freq/... > > I guess its use-case is for people who want to get some percent more > > power savings out of the

Re: [PATCH V3 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor

2013-04-03 Thread Jacob Shin
On Wed, Apr 03, 2013 at 07:04:56PM +0200, Borislav Petkov wrote: > On Wed, Apr 03, 2013 at 11:53:24AM -0500, Jacob Shin wrote: > > Then Thomas, Boris, would it be acceptable if enable the frequency > > feedback feature by default with a sane powersave_bias tunable value? > >

[PATCH V4 1/2] cpufreq: ondemand: allow custom powersave_bias_target handler to be registered

2013-04-04 Thread Jacob Shin
This allows for another [arch specific] driver to hook into existing powersave bias function of the ondemand governor. i.e. This allows AMD specific powersave bias function (in a separate AMD specific driver) to aid ondemand governor's frequency transition decisions. Signed-off-by: Jacob

[PATCH V4 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor

2013-04-04 Thread Jacob Shin
dback" to aid the ondemand governor to make better frequency change decisions by hooking into the powersave bias. Signed-off-by: Jacob Shin --- Documentation/cpu-freq/governors.txt | 21 + arch/x86/include/asm/cpufeature.h |1 + arch/x86/kernel/cpu/scattered.c|3 +

[PATCH V4 0/2] cpufreq: ondemand: add AMD specific powersave bias

2013-04-04 Thread Jacob Shin
y.c * Only register powersave_bias_target function pointer and not the entire od_ops. Jacob Shin (2): cpufreq: ondemand: allow custom powersave_bias_target handler to be registered cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor Do

Re: [PATCH V4 1/2] cpufreq: ondemand: allow custom powersave_bias_target handler to be registered

2013-04-04 Thread Jacob Shin
On Thu, Apr 04, 2013 at 10:06:35PM +0530, Viresh Kumar wrote: > On 4 April 2013 21:49, Jacob Shin wrote: > > diff --git a/drivers/cpufreq/cpufreq_ondemand.c > > b/drivers/cpufreq/cpufreq_ondemand.c > > > +static void od_set_powersave_bias(unsigned int powersave_bias) >

Re: [PATCH V4 1/2] cpufreq: ondemand: allow custom powersave_bias_target handler to be registered

2013-04-04 Thread Jacob Shin
On Thu, Apr 04, 2013 at 09:12:25PM +0200, Borislav Petkov wrote: > On Thu, Apr 04, 2013 at 12:18:04PM -0500, Jacob Shin wrote: > > @@ -574,6 +577,45 @@ static struct common_dbs_data od_dbs_cdata = { > > .exit = od_exit, > > }; > > > > +static void o

Re: [PATCH V4 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor

2013-04-04 Thread Jacob Shin
On Thu, Apr 04, 2013 at 09:23:23PM +0200, Borislav Petkov wrote: > On Thu, Apr 04, 2013 at 11:19:04AM -0500, Jacob Shin wrote: > > Future AMD processors, starting with Family 16h, can provide software > > with feedback on how the workload may respond to frequency change -- &

Re: [PATCH RESEND V5 0/6] perf, amd: Enable AMD family 15h northbridge counters

2013-01-24 Thread Jacob Shin
On Thu, Jan 24, 2013 at 02:31:59PM +0100, Stephane Eranian wrote: > On Thu, Jan 10, 2013 at 8:50 PM, Jacob Shin wrote: > > The following patchset enables 4 additional performance counters in > > AMD family 15h processors that count northbridge events -- such as > > nu

Re: [PATCH 04/35] x86: Clean up e820 add kernel range

2013-01-24 Thread Jacob Shin
M range will be ignored. > > Signed-off-by: Yinghai Lu > Cc: Jacob Shin Acked-by: Jacob Shin Thanks, > --- > arch/x86/kernel/setup.c | 36 ++-- > 1 file changed, 22 insertions(+), 14 deletions(-) > > diff --git a/arch/x86/kernel/se

Re: [perfmon2] [PATCH RESEND V5 0/6] perf, amd: Enable AMD family 15h northbridge counters

2013-01-25 Thread Jacob Shin
.16.6? > Are those NOT supported by your kernel patchset? Oh, you are right, they are supported. I'm not sure why I overlooked them. I will send out a V2 that includes all of those events as well. Sorry about that. -Jacob > > > On Thu, Jan 24, 2013 at 11:06 PM, Jacob Shin wrote

Re: [PATCH RESEND V5 2/6] perf, amd: Generalize northbridge constraints code for family 15h

2013-01-25 Thread Jacob Shin
On Fri, Jan 25, 2013 at 12:07:40PM +0100, Stephane Eranian wrote: > On Thu, Jan 10, 2013 at 8:50 PM, Jacob Shin wrote: > > From: Robert Richter > > > > Generalize northbridge constraints code for family 10h so that later > > we can reuse the same code path with other

Re: [PATCH RESEND V5 4/6] perf, x86: Move MSR address offset calculation to architecture specific files

2013-01-25 Thread Jacob Shin
On Fri, Jan 25, 2013 at 12:15:37PM +0100, Stephane Eranian wrote: > On Thu, Jan 10, 2013 at 8:50 PM, Jacob Shin wrote: > > Move counter index to MSR address offset calculation to architecture > > specific files. This prepares the way for perf_event_amd to enable > > counter a

Re: [PATCH 3/5] x86: Only direct map addresses that are marked as E820_RAM

2012-08-28 Thread Jacob Shin
On Fri, Aug 24, 2012 at 09:54:04PM -0700, Yinghai Lu wrote: > On Fri, Aug 24, 2012 at 9:24 PM, Jacob Shin wrote: > > On Fri, Aug 24, 2012 at 06:07:01PM -0700, Yinghai Lu wrote: > >> On Fri, Aug 24, 2012 at 4:55 PM, Jacob Shin wrote: > >> > >> looks like yo

[PATCH 1/6] x86, mm: Add page_size_mask()

2012-08-29 Thread Jacob Shin
From: Yinghai Lu detect if need to use 1G or 2M and store them in page_size_mask. Only probe them one time. Suggested-by: Ingo Molnar Signed-off-by: Yinghai Lu --- arch/x86/include/asm/pgtable.h |1 + arch/x86/kernel/setup.c|1 + arch/x86/mm/init.c | 66

[PATCH 2/6] x86, mm: Split out split_mem_range

2012-08-29 Thread Jacob Shin
From: Yinghai Lu from init_memory_mapping, so make init_memory_mapping readable. Suggested-by: Ingo Molnar Signed-off-by: Yinghai Lu --- arch/x86/mm/init.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/arch/x86/mm/init.c b/a

[PATCH 3/6] x86/mm: find_early_table_space based on memory ranges that are being mapped

2012-08-29 Thread Jacob Shin
: https://lkml.org/lkml/2012/8/11/83 Signed-off-by: Jacob Shin --- arch/x86/mm/init.c | 62 +--- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 41e615b..916b15b 100644 --- a/arch/x86

[PATCH 4/6] x86: Only direct map addresses that are marked as E820_RAM

2012-08-29 Thread Jacob Shin
Currently direct mappings are created for [ 0 to max_low_pfn< --- arch/x86/include/asm/page_types.h |9 arch/x86/kernel/setup.c | 100 +++-- arch/x86/mm/init.c|2 + arch/x86/mm/init_64.c |6 +-- 4 files changed

[PATCH 5/6] x86: Fixup code testing if a pfn is direct mapped

2012-08-29 Thread Jacob Shin
Update code that previously assumed pfns [ 0 - max_low_pfn_mapped ) and [ 4GB - max_pfn_mapped ) were always direct mapped, to now look up pfn_mapped ranges instead. Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/amd.c |6 +- arch/x86/platform/efi/efi.c |8 2 files

[PATCH V5 0/6] x86: Create direct mappings for E820_RAM only

2012-08-29 Thread Jacob Shin
://lkml.org/lkml/2012/8/22/680 * https://lkml.org/lkml/2012/8/13/512 * https://lkml.org/lkml/2012/8/9/536 * https://lkml.org/lkml/2011/10/20/323 Jacob Shin (4): x86/mm: find_early_table_space based on memory ranges that are being mapped x86: Only direct map addresses that are marked as

[PATCH 6/6] x86: if kernel .text .data .bss are not marked as E820_RAM, complain and fix

2012-08-29 Thread Jacob Shin
There could be cases where user supplied memmap=exactmap memory mappings do not mark the region where the kernel .text .data and .bss reside as E820_RAM, as reported here: https://lkml.org/lkml/2012/8/14/86 Handle it by complaining, and adding the range back into the e820. Signed-off-by: Jacob

Re: [PATCH 4/6] x86: Only direct map addresses that are marked as E820_RAM

2012-08-29 Thread Jacob Shin
On Wed, Aug 29, 2012 at 02:17:51PM -0700, Yinghai Lu wrote: > On Wed, Aug 29, 2012 at 12:04 PM, Jacob Shin wrote: > > Currently direct mappings are created for [ 0 to max_low_pfn< > and [ 4GB to max_pfn< > backed by actual DRAM. This is fine for holes under 4GB which are cov

Re: [PATCH 0/8] x86, mm: init_memory_mapping cleanup

2012-08-30 Thread Jacob Shin
On Thu, Aug 30, 2012 at 04:06:07PM -0700, Yinghai Lu wrote: > Only create mapping for E820_820 and E820_RESERVED_KERN. > > Also seperate find_early_page_table out with init_memory_mapping. > > Jacob Shin (3): > x86: if kernel .text .data .bss are not marked as E820_RAM, comp

Re: [PATCH -v3 00/14] x86, mm: init_memory_mapping cleanup

2012-09-13 Thread Jacob Shin
On Wed, Sep 05, 2012 at 03:08:15PM -0500, Jacob Shin wrote: > On Tue, Sep 04, 2012 at 10:46:17PM -0700, Yinghai Lu wrote: > > Only create mapping for E820_820 and E820_RESERVED_KERN. > > > > Seperate calculate_table_space_size and find_early_page_table out with &g

Re: [PATCH 04/13] x86, mm: Revert back good_end setting for 64bit

2012-10-03 Thread Jacob Shin
On Mon, Oct 01, 2012 at 12:00:26PM +0100, Stefano Stabellini wrote: > On Sun, 30 Sep 2012, Yinghai Lu wrote: > > After > > > > | commit 8548c84da2f47e71bbbe300f55edb768492575f7 > > | Author: Takashi Iwai > > | Date: Sun Oct 23 23:19:12 2011 +0200 > > | > > |x86: Fix S4 regression > > | > >

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-24 Thread Jacob Shin
that's a given. > > > > We can trim those ranges, though. Who cares if we lose some RAM. > > > > please check attached two patches that handle partial pages for 3.7. > > and you still need patch in >https://lkml.org/lkml/2012/8/24/469 > > to address

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-24 Thread Jacob Shin
On Wed, Oct 24, 2012 at 11:53:16AM -0700, H. Peter Anvin wrote: > On 10/24/2012 09:48 AM, Jacob Shin wrote: > > > > hpa, we need this patch: https://lkml.org/lkml/2012/8/24/469 and the above > > 2 from Yinghai to handle corner case E820 layouts. > > > > I can

Re: [tip:x86/urgent] x86, mm: Find_early_table_space based on ranges that are actually being mapped

2012-10-25 Thread Jacob Shin
d in 7b16bbf9 > > > > Could you please send a delta patch against tip:x86/urgent? > > please check attached one. Acked-by: Jacob Shin Sorry about that, I just retrofitted the patch and didn't see those lines got reverted out, Thanks! > > Thanks > > Yinghai

Re: Regression from 3.4.9 to 3.4.16 "stable" kernel

2012-10-29 Thread Jacob Shin
if (ei->type == E820_RESERVED) > > >> +continue; > > >> + > > >> +max_pfn_mapped = init_memory_mapping( > > >> +ei->addr < 1UL << 32 ? 1UL &l

Re: Regression from 3.4.9 to 3.4.16 "stable" kernel

2012-10-29 Thread Jacob Shin
On Mon, Oct 29, 2012 at 09:58:23AM -0700, Greg Kroah-Hartman wrote: > On Mon, Oct 29, 2012 at 09:47:22AM -0500, Jacob Shin wrote: > > On Mon, Oct 29, 2012 at 02:40:58PM +, Ben Hutchings wrote: > > > On Mon, 2012-10-29 at 10:22 -0400, Mark Lord wrote: > > > > On 12

Re: [PATCH -v3 00/14] x86, mm: init_memory_mapping cleanup

2012-09-05 Thread Jacob Shin
nit mapping > only for E820 RAM and E820_RESERVED_KERN. > > Could be found at: > git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git > for-x86-mm > > Thanks > Yinghai > > > Jacob Shin (4): > x86: if kernel .text .data .bss are n

Re: [PATCH -v3 14/14] x86, mm: Map ISA area with connected ram range at the same time

2012-09-06 Thread Jacob Shin
On Thu, Sep 06, 2012 at 10:22:19AM +0300, Pekka Enberg wrote: > On Wed, Sep 5, 2012 at 1:02 AM, Pekka Enberg wrote: > > > How significant is the speed gain? The "isa_done" flag makes code flow > > > more difficult to follow. > > On Wed, 5 Sep 2012, Yinghai Lu wrote: > > Not really much. > > > >

[PATCH V4 0/6] perf, amd: Enable AMD family 15h northbridge counters

2012-12-05 Thread Jacob Shin
hes. V3: Addressed the following feedback/comments from Robert's review * https://lkml.org/lkml/2012/11/16/484 * https://lkml.org/lkml/2012/11/26/162 V2: Separate out Robert's patches, and add properly ordered certificate of origins. Jacob Shin (4): perf, amd: Use proper naming schem

[PATCH 2/6] perf, amd: Generalize northbridge constraints code for family 15h

2012-12-05 Thread Jacob Shin
From: Robert Richter Generalize northbridge constraints code for family 10h so that later we can reuse the same code path with other AMD processor families that have the same northbridge event constraints. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu

[PATCH 1/6] perf, amd: Rework northbridge event constraints handler

2012-12-05 Thread Jacob Shin
From: Robert Richter Code simplification. No functional changes. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event_amd.c | 68 +- 1 file changed, 26 insertions(+), 42 deletions(-) diff --git a/arch/x86/kernel/cpu

[PATCH 4/6] perf, x86: Move MSR address offset calculation to architecture specific files

2012-12-05 Thread Jacob Shin
performance counters starting at 0xc0010240. Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event.h | 21 - arch/x86/kernel/cpu/perf_event_amd.c | 42 ++ 2 files changed, 47 insertions(+), 16 deletions(-) diff --git a/arch/x86/kernel/cpu

[PATCH 5/6] perf, x86: Allow for architecture specific RDPMC indexes

2012-12-05 Thread Jacob Shin
Similar to config_base and event_base, allow architecture specific RDPMC ECX values. Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event.c |2 +- arch/x86/kernel/cpu/perf_event.h |6 ++ arch/x86/kernel/cpu/perf_event_amd.c |6 ++ 3 files changed, 13

[PATCH 3/6] perf, amd: Use proper naming scheme for AMD bit field definitions

2012-12-05 Thread Jacob Shin
Update these AMD bit field names to be consistent with naming convention followed by the rest of the file. Signed-off-by: Jacob Shin --- arch/x86/include/asm/perf_event.h|4 ++-- arch/x86/kernel/cpu/perf_event_amd.c |8 2 files changed, 6 insertions(+), 6 deletions(-) diff

[PATCH 6/6] perf, amd: Enable northbridge performance counters on AMD family 15h

2012-12-05 Thread Jacob Shin
counters, these MSRs are shared between multiple cores (that share the same northbridge). We will reuse the same code path as existing family 10h northbridge event constraints handler logic to enforce this sharing. Signed-off-by: Jacob Shin --- arch/x86/include/asm/cpufeature.h|2 + arch/x86

Re: [PATCH -v3 0/7] x86: Use BRK to pre mapping page table to make xen happy

2012-10-18 Thread Jacob Shin
On Thu, Oct 18, 2012 at 05:17:28PM +0100, Stefano Stabellini wrote: > On Thu, 11 Oct 2012, Yinghai Lu wrote: > > On Wed, Oct 10, 2012 at 9:40 AM, Stefano Stabellini > > wrote: > > > > > > So you are missing the Xen patches entirely in this iteration of the > > > series? > > > > please check updat

Re: [PATCH -v3 0/7] x86: Use BRK to pre mapping page table to make xen happy

2012-10-18 Thread Jacob Shin
On Thu, Oct 18, 2012 at 01:40:21PM -0700, Yinghai Lu wrote: > On Thu, Oct 18, 2012 at 9:26 AM, Jacob Shin wrote: > > i tested dom0 conf on 32 bit and 64 bit, they are all working. > > and just now I tried with mem=8944m, and they are still working. > > anyway, can you p

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-20 Thread Jacob Shin
On Sat, Oct 20, 2012 at 09:01:43PM -0700, Yinghai Lu wrote: > On Sat, Oct 20, 2012 at 5:17 PM, Tom Rini wrote: > > On 10/20/12 17:11, Shin, Jacob wrote: > >> Hi could you please attach the dmesg output? Before rc2 is fine as well. > >> I would like to see the E820 table. Thank you, > > > > dmesg i

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-21 Thread Jacob Shin
On Sun, Oct 21, 2012 at 10:51:35AM -0700, Tom Rini wrote: > On 10/20/12 21:18, Jacob Shin wrote: > > On Sat, Oct 20, 2012 at 09:01:43PM -0700, Yinghai Lu wrote: > >> On Sat, Oct 20, 2012 at 5:17 PM, Tom Rini wrote: > >>> On 10/20/12 17:11, Shin, Jacob wrote: > &g

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread Jacob Shin
On Sun, Oct 21, 2012 at 02:23:58PM -0700, Tom Rini wrote: > On 10/21/12 14:06, Jacob Shin wrote: > > Ah, sorry, this one should apply on top of 3.7-rc2: > > > > https://lkml.org/lkml/2012/8/24/469 > > > > Could you try that? Just that single patch, not the w

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread Jacob Shin
On Mon, Oct 22, 2012 at 11:05:29AM -0700, Yinghai Lu wrote: > On Mon, Oct 22, 2012 at 7:40 AM, Jacob Shin wrote: > > On Sun, Oct 21, 2012 at 02:23:58PM -0700, Tom Rini wrote: > >> On 10/21/12 14:06, Jacob Shin wrote: > >> > Ah, sorry, this one should apply on top o

Re: [PATCH V4 0/6] perf, amd: Enable AMD family 15h northbridge counters

2012-12-10 Thread Jacob Shin
On Wed, Dec 05, 2012 at 05:04:12PM -0600, Jacob Shin wrote: > The following patchset enables 4 additional performance counters in > AMD family 15h processors that count northbridge events -- such as > number of DRAM accesses. > > This patchset is based on previous work done by

Re: [PATCH 0/4] perf, amd: Enable AMD family 15h northbridge counters

2012-11-12 Thread Jacob Shin
On Mon, Nov 12, 2012 at 03:22:33PM +0100, Robert Richter wrote: > Stephane, > > On 12.11.12 13:24:38, Stephane Eranian wrote: > > Anybody from AMD or formerly @ AMD care to submit a libpfm4 patch > > to add the Fam15th NB events? > > > > I'd like to avoid having to type them in manually. > > Sur

Re: [PATCH 0/4] x86, cacheinfo: Use AMD topology extensions

2012-11-13 Thread Jacob Shin
On Wed, Nov 07, 2012 at 10:48:35AM +0100, H. Peter Anvin wrote: > Too many of us at LCE right now... Hi, ping'ing once again, could you take a look at the patchset when you get the chance, and if no problems commit them into tip? Thanks! -Jacob > > Jacob Shin wrote: >

Re: [PATCH 0/4] x86, cacheinfo: Use AMD topology extensions

2012-11-06 Thread Jacob Shin
t; Please apply. Acked-by: Jacob Shin Ping ? Any feedback ? If not could we get it into tip ? Thank you, > > > Thanks, > > Andreas > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@v

[PATCH 1/4] perf, amd: Simplify northbridge event constraints handler

2012-11-09 Thread Jacob Shin
From: Robert Richter Code simplification, there is no functional change. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event_amd.c | 68 +- 1 file changed, 26 insertions(+), 42 deletions(-) diff --git a/arch/x86/kernel

[PATCH 0/4] perf, amd: Enable AMD family 15h northbridge counters

2012-11-09 Thread Jacob Shin
northbridge counters are indexed contiguously right above the core performance counters. - MSR address offset calculations are moved to architecture specific files. - Interrups are set up to be delivered only to a single core. Jacob Shin (3): perf, amd: Refactor northbridge event constraints handler

[PATCH 3/4] perf, x86: Move MSR address offset calculation to architecture specific files

2012-11-09 Thread Jacob Shin
performance counters starting at 0xc0010240. Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event.h | 21 +--- arch/x86/kernel/cpu/perf_event_amd.c | 36 ++ 2 files changed, 41 insertions(+), 16 deletions(-) diff --git a/arch/x86/kernel

[PATCH 2/4] perf, amd: Refactor northbridge event constraints handler for code sharing

2012-11-09 Thread Jacob Shin
Breakout and generalize family 10h northbridge event contraints code so that later we can reuse the same code path with other AMD processor families that have the same northbridge event constraints. Based on previous patch by Robert Richter Signed-off-by: Jacob Shin Signed-off-by: Robert

[PATCH 4/4] perf, amd: Enable northbridge performance counters on AMD family 15h

2012-11-09 Thread Jacob Shin
between multiple cores (that share the same northbridge). We will reuse the same code path as existing family 10h northbridge event constraints handler logic to enforce sharing. Based on previous patch by Robert Richter Signed-off-by: Jacob Shin Signed-off-by: Robert Richter --- arch/x86/include

Re: [PATCH 0/4] perf, amd: Enable AMD family 15h northbridge counters

2012-11-11 Thread Jacob Shin
On Sat, Nov 10, 2012 at 12:50:27PM +0100, Robert Richter wrote: > On 09.11.12 19:01:34, Jacob Shin wrote: > > The following patchset enables 4 additional performance counters in > > AMD family 15h processors that counts northbridge events -- such as > > DRAM accesses. >

Re: [PATCH 2/2] MCE, AMD: MCE decoding support for AMD Family 16h

2012-12-18 Thread Jacob Shin
On Tue, Dec 18, 2012 at 06:19:15PM +0100, Borislav Petkov wrote: > On Mon, Dec 17, 2012 at 01:39:48PM -0600, Jacob Shin wrote: > > Add MCE decoding logic for AMD Family 16h processors. > > > > Signed-off-by: Jacob Shin > > --- > &g

Re: [PATCH 2/2] MCE, AMD: MCE decoding support for AMD Family 16h

2012-12-18 Thread Jacob Shin
On Tue, Dec 18, 2012 at 11:30:24AM -0600, Jacob Shin wrote: > On Tue, Dec 18, 2012 at 06:19:15PM +0100, Borislav Petkov wrote: > > On Mon, Dec 17, 2012 at 01:39:48PM -0600, Jacob Shin wrote: > > > +/* internal error type */ > > > +const char * const uu_msgs[] = { &

[PATCH 1/2] MCE, AMD: Make MC2 decoding part of amd_decoder_ops as well

2012-12-18 Thread Jacob Shin
Currently only AMD Family 15h processors have special handling for MC2 errors, since upcoming Family 16h will also need unique handling, let's make MC2 handling part of amd_decoder_ops. Signed-off-by: Jacob Shin --- drivers/edac/mce_amd.c |

[PATCH V2 0/2] MCE, AMD: MCE decoding support for AMD Family 16h

2012-12-18 Thread Jacob Shin
://lkml.org/lkml/2012/12/18/269 * Fixed typo in INT_ERROR decoding. Jacob Shin (2): MCE, AMD: Make MC2 decoding part of amd_decoder_ops as well MCE, AMD: MCE decoding support for AMD Family 16h drivers/edac/mce_amd.c | 139 +++- drivers/edac/mce_amd.h

[PATCH 2/2] MCE, AMD: MCE decoding support for AMD Family 16h

2012-12-18 Thread Jacob Shin
Add MCE decoding logic for AMD Family 16h processors. Signed-off-by: Jacob Shin --- drivers/edac/mce_amd.c | 83 +--- drivers/edac/mce_amd.h |3 ++ 2 files changed, 75 insertions(+), 11 deletions(-) diff --git a/drivers/edac/mce_amd.c b/drivers

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-19 Thread Jacob Shin
On Wed, Dec 19, 2012 at 09:37:51PM +0100, Borislav Petkov wrote: > On Sat, Dec 15, 2012 at 03:17:05PM -0800, H. Peter Anvin wrote: > > On 12/15/2012 03:15 PM, Yinghai Lu wrote: > > >> > > >>That is for the kernel region itself (that code is actually unchanged from > > >>the current code), and yes,

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-19 Thread Jacob Shin
al RAM there. -Jacob > > Jacob Shin wrote: > > >On Wed, Dec 19, 2012 at 09:37:51PM +0100, Borislav Petkov wrote: > >> On Sat, Dec 15, 2012 at 03:17:05PM -0800, H. Peter Anvin wrote: > >> > On 12/15/2012 03:15 PM, Yinghai Lu wrote: > >> > &g

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-19 Thread Jacob Shin
On Wed, Dec 19, 2012 at 02:25:44PM -0800, H. Peter Anvin wrote: > On 12/19/2012 02:05 PM, Jacob Shin wrote: > >On Wed, Dec 19, 2012 at 01:48:33PM -0800, H. Peter Anvin wrote: > >>There are a few very serious problems we need to figure out related to > >>generalizin

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-19 Thread Jacob Shin
On Wed, Dec 19, 2012 at 11:51:55PM +0100, Borislav Petkov wrote: > On Wed, Dec 19, 2012 at 02:25:44PM -0800, H. Peter Anvin wrote: > > The real question is what we can do to mitigate the damage. > > Let's try the first thing that comes to mind: waste a variable MTRR on > it: > > [0.00] MT

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-19 Thread Jacob Shin
On Thu, Dec 20, 2012 at 12:03:29AM +0100, Borislav Petkov wrote: > On Wed, Dec 19, 2012 at 04:59:41PM -0600, Jacob Shin wrote: > > I can check but right, they might be used up. But even if we had slots > > available, the memory range that needs to be covered is in large > &g

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-19 Thread Jacob Shin
On Wed, Dec 19, 2012 at 03:22:13PM -0800, H. Peter Anvin wrote: > On 12/19/2012 03:03 PM, Borislav Petkov wrote: > > On Wed, Dec 19, 2012 at 04:59:41PM -0600, Jacob Shin wrote: > >> I can check but right, they might be used up. But even if we had slots > >> available,

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-19 Thread Jacob Shin
On Wed, Dec 19, 2012 at 03:50:14PM -0800, H. Peter Anvin wrote: > On 12/19/2012 03:40 PM, Jacob Shin wrote: > >> > >>Just make the hole a bit bigger, so it starts at 0xfc, then you > >>only need one MTRR. This is the correct BIOS-level fix, and it really &g

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-19 Thread Jacob Shin
On Wed, Dec 19, 2012 at 04:24:09PM -0800, H. Peter Anvin wrote: > On 12/19/2012 04:07 PM, Jacob Shin wrote: > > > > From what I remember, accessing memory around the memory hole (not > > just the HT hole, but e03800 ~ 100 on our mentioned system > > ) gener

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-19 Thread Jacob Shin
On Wed, Dec 19, 2012 at 06:37:45PM -0800, H. Peter Anvin wrote: > On 12/19/2012 04:29 PM, Jacob Shin wrote: > > On Wed, Dec 19, 2012 at 04:24:09PM -0800, H. Peter Anvin wrote: > >> On 12/19/2012 04:07 PM, Jacob Shin wrote: > >>> > >>> From what I remembe

Re: AMD microcode site (amd64.org) down for a while now

2012-12-19 Thread Jacob Shin
On Wed, Dec 19, 2012 at 11:11:09PM -0200, Henrique de Moraes Holschuh wrote: > Jacob, > > Since you seem to be dealing with AMD microcode, do you know anything about > the amd64.org demise? Where do we get the microcode update data, now? Hi, Yes, the server amd64.org was hosted on is down at th

[PATCH 3/4] perf, x86: Move MSR address offset calculation to architecture specific files

2012-11-15 Thread Jacob Shin
performance counters starting at 0xc0010240. Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event.h | 21 +--- arch/x86/kernel/cpu/perf_event_amd.c | 35 ++ 2 files changed, 40 insertions(+), 16 deletions(-) diff --git a/arch/x86/kernel

[PATCH 1/4] perf, amd: Rework northbridge event constraints handler

2012-11-15 Thread Jacob Shin
From: Robert Richter Code simplification. No functional changes. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event_amd.c | 68 +- 1 file changed, 26 insertions(+), 42 deletions(-) diff --git a/arch/x86/kernel/cpu

[PATCH V2 0/4] perf, amd: Enable AMD family 15h northbridge counters

2012-11-15 Thread Jacob Shin
dered certificate of origins. Jacob Shin (2): perf, x86: Move MSR address offset calculation to architecture specific files perf, amd: Enable northbridge performance counters on AMD family 15h Robert Richter (2): perf, amd: Rework northbridge event constraints handler perf, amd: Gener

[PATCH 2/4] perf, amd: Generalize northbridge constraints code for family 15h

2012-11-15 Thread Jacob Shin
From: Robert Richter Generalize northbridge constraints code for family 10h so that later we can reuse the same code path with other AMD processor families that have the same northbridge event constraints. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu

  1   2   3   4   >