Re: [PATCH v2 30/32] virtio_ring: update weak barriers to use __smp_xxx

2016-01-01 Thread Michael S. Tsirkin
On Fri, Jan 01, 2016 at 11:39:40AM +0200, Michael S. Tsirkin wrote: > virtio ring uses smp_wmb on SMP and wmb on !SMP, > the reason for the later being that it might be > talking to another kernel on the same SMP machine. > > This is exactly what __smp_XXX barriers do, > so switch to these instead

Re: [PATCH v2 32/32] virtio_ring: use virt_store_mb

2016-01-01 Thread Sergei Shtylyov
Hello. On 12/31/2015 10:09 PM, Michael S. Tsirkin wrote: We need a full barrier after writing out event index, using virt_store_mb there seems better than open-coding. As usual, we need a wrapper to account for strong barriers. It's tempting to use this in vhost as well, for that, we'll need

[PATCH v2 0/2] cpufreq: powernv: Redesign the presentation of throttle notification

2016-01-01 Thread Shilpasri G Bhat
In POWER8, OCC(On-Chip-Controller) can throttle the frequency of the CPU when the chip crosses its thermal and power limits. Currently, powernv-cpufreq driver detects and reports this event as a console message. Some boxes may not sustain the max turbo frequency in all conditions and can be throttl

[PATCH v2 1/2] cpufreq: powernv/tracing: Add powernv_throttle tracepoint

2016-01-01 Thread Shilpasri G Bhat
This patch adds the powernv_throttle tracepoint to trace the CPU frequency throttling event, which is used by the powernv-cpufreq driver in POWER8. Signed-off-by: Shilpasri G Bhat CC: Ingo Molnar CC: Steven Rostedt --- Changes from v1: - Export the tracepoint include/trace/events/power.h | 22

[PATCH v2 2/2] cpufreq: powernv: Redesign the presentation of throttle notification

2016-01-01 Thread Shilpasri G Bhat
Replace the throttling event console messages to perf trace point "power:powernv_throttle" and throttle counter stats which are exported in sysfs in /sys/devices/system/cpu/cpufreq/chipN. The newly added sysfs files are as follows: 1)/sys/devices/system/cpu/cpufreq/chip0/throttle_frequencies Thi

Re: [PATCH] cpufreq: powernv: Redesign the presentation of throttle notification

2016-01-01 Thread Shilpasri G Bhat
Hi, On 12/15/2015 02:59 AM, Paul Clarke wrote: > On 12/13/2015 12:17 PM, Shilpasri G Bhat wrote: >> Replace the throttling event console messages to perf trace event >> "power:powernv_throttle" and throttle counter stats which are >> exported in sysfs. The newly added sysfs files are as follows: >

Re: [PATCH v2 2/2] cpufreq: powernv: Redesign the presentation of throttle notification

2016-01-01 Thread kbuild test robot
Hi Shilpasri, [auto build test WARNING on tip/perf/core] [also build test WARNING on v4.4-rc7 next-20151231] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Shilpasri-G-Bhat/cpufreq-powernv-tra

Re: [PATCH v2 2/2] cpufreq: powernv: Redesign the presentation of throttle notification

2016-01-01 Thread kbuild test robot
Hi Shilpasri, [auto build test WARNING on tip/perf/core] [also build test WARNING on v4.4-rc7 next-20151231] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Shilpasri-G-Bhat/cpufreq-powernv-tra