[PATCHv5 1/1] Fix missing L2 cache size in /sys/devices/system/cpu

2015-04-02 Thread olson
From: Dave Olson This is version 5 of the patch, incorporating Michael Ellerman's suggested changes from March 26, 2015. v5 removes the __cpuinit that had crept in from my patch based on an older kernel, but is otherwise the same as v4. This problem appears to have

[PATCH] Fix missing L2 cache size in /sys/devices/system/cpu

2015-04-02 Thread olson
From: Dave Olson This is version 4 of the patch, incorporating Michael Ellerman's suggested changes from March 26, 2015. This problem appears to have been introduced in 2.6.29 by the commit in the Fixes line below. This caused lscpu to error out on e500v2 devices

Re: [v3] Fix missing L2 cache size in /sys/devices/system/cpu

2015-03-26 Thread Dave Olson
Michael Ellerman wrote: > On Thu, 2015-26-02 at 00:04:47 UTC, Dave Olson wrote: > > @@ -324,14 +335,33 @@ static bool cache_node_is_unified(const struct > > device_node *np) > > return of_get_property(np, "cache-unified", NULL); > > } > > >

[PATCH v3] Fix missing L2 cache size in /sys/devices/system/cpu

2015-02-25 Thread olson
From: Dave Olson This problem appears to have been introduced in 2.6.29 by 93197a36a9c16a85fb24cf5a8639f7bf9af838a3. This caused lscpu to error out on e500v2 devices, and probably others error: cannot open /sys/devices/system/cpu/cpu0/cache/index2/size: No such file or directory Some

[PATCHv2 1/1] powerpc: fix missing L2 cache size, etc in /sys/devices/system/cpu

2015-02-11 Thread Dave Olson
From: Dave Olson Fix missing L2 cache in /sys/devices/system/cpu/cpu0/cache/index2/size This appears to have been introduced in 2.6.29 by 93197a36a9c16a85fb24cf5a8639f7bf9af838a3. This caused lscpu to error out on e500v2 devices, and probably others error: cannot open /sys/devices/system/cpu

Re: [PATCH 1/1] powerpc: fix missing L2 cache size in /sys/devices/system/cpu

2015-02-10 Thread Dave Olson
Benjamin Herrenschmidt wrote: > On Tue, 2015-02-10 at 00:00 -0800, Dave Olson wrote: > > > > OK, now that I understand that's the case, I'll have to go back and > > re-do the patch to handle both cache-size and d-cache-size for the > > L2 cache (using whic

Re: [PATCH 1/1] powerpc: fix missing L2 cache size in /sys/devices/system/cpu

2015-02-10 Thread Dave Olson
Benjamin Herrenschmidt wrote: > On Mon, 2015-02-09 at 15:43 -0800, Dave Olson wrote: > > Michael Ellerman wrote: > > > > > On Mon, 2015-02-09 at 14:14 -0800, Dave Olson wrote: > > > > From: Dave Olson > > > > > > > > Fix missing

Re: [PATCH 1/1] powerpc: fix missing L2 cache size in /sys/devices/system/cpu

2015-02-09 Thread Dave Olson
Michael Ellerman wrote: > On Mon, 2015-02-09 at 14:14 -0800, Dave Olson wrote: > > From: Dave Olson > > > > Fix missing L2 cache size in /sys/devices/system/cpu/cpu0/cache/index2/size > > This bug appears to be introduced in 2.6.29 by > > 93197a36a9c16a85

[PATCH 1/1] powerpc: fix missing L2 cache size in /sys/devices/system/cpu

2015-02-09 Thread Dave Olson
From: Dave Olson Fix missing L2 cache size in /sys/devices/system/cpu/cpu0/cache/index2/size This bug appears to be introduced in 2.6.29 by 93197a36a9c16a85fb24cf5a8639f7bf9af838a3. The missing entry caused lscpu to error out on e500v2 devices, and probably others error: cannot open /sys