Re: [PATCH v4 2/6] dt-bindings: power: Add qcom rpm power domain driver bindings

2018-09-20 Thread Rob Herring
On Wed, Aug 29, 2018 at 11:31 PM Rajendra Nayak wrote: > > > > On 7/4/2018 11:27 AM, Viresh Kumar wrote: > > On 03-07-18, 16:35, Rob Herring wrote: > >>> +qcom,level values specified in the OPP tables for RPMh power domains > >>> +should use the RPMH_REGULATOR_LEVEL_* constants from > >>> + > >>>

Re: [PATCH v4 2/6] dt-bindings: power: Add qcom rpm power domain driver bindings

2018-09-20 Thread Rob Herring
On Wed, Aug 29, 2018 at 11:31 PM Rajendra Nayak wrote: > > > > On 7/4/2018 11:27 AM, Viresh Kumar wrote: > > On 03-07-18, 16:35, Rob Herring wrote: > >>> +qcom,level values specified in the OPP tables for RPMh power domains > >>> +should use the RPMH_REGULATOR_LEVEL_* constants from > >>> + > >>>

Re: [RFC 02/20] timens: Add timens_offsets

2018-09-20 Thread Cyrill Gorcunov
On Wed, Sep 19, 2018 at 09:50:19PM +0100, Dmitry Safonov wrote: > From: Andrei Vagin > > Introduce offsets for time namespace. They will contain adjustment > needed to convert clocks to/from host's. > > Allocate one page for each time namespace that will be premapped into > userspace with vvar

Re: [RFC 02/20] timens: Add timens_offsets

2018-09-20 Thread Cyrill Gorcunov
On Wed, Sep 19, 2018 at 09:50:19PM +0100, Dmitry Safonov wrote: > From: Andrei Vagin > > Introduce offsets for time namespace. They will contain adjustment > needed to convert clocks to/from host's. > > Allocate one page for each time namespace that will be premapped into > userspace with vvar

[RFC] i2c: qup: Use the interconnect API

2018-09-20 Thread Georgi Djakov
The interconnect API provides an interface for consumer drivers to express their bandwidth needs in the SoC. This data is aggregated and the on-chip interconnect hardware is configured to the appropriate power/performance profile. Use the interconnect API to get() the path between the endpoints

[RFC] i2c: qup: Use the interconnect API

2018-09-20 Thread Georgi Djakov
The interconnect API provides an interface for consumer drivers to express their bandwidth needs in the SoC. This data is aggregated and the on-chip interconnect hardware is configured to the appropriate power/performance profile. Use the interconnect API to get() the path between the endpoints

Linux RDMA mini-conf at Plumbers 2018

2018-09-20 Thread Jason Gunthorpe
This is just a friendly reminder that registration deadlines are approaching for this conference. Please see https://www.linuxplumbersconf.org/event/2/page/7-attend For details. This year we expect to have close to a day set aside for RDMA related topics. Including up to half a day for the

Linux RDMA mini-conf at Plumbers 2018

2018-09-20 Thread Jason Gunthorpe
This is just a friendly reminder that registration deadlines are approaching for this conference. Please see https://www.linuxplumbersconf.org/event/2/page/7-attend For details. This year we expect to have close to a day set aside for RDMA related topics. Including up to half a day for the

Re: RFC/error: Re: [PATCH 3/6] perf tools: Improve thread_stack__event() for trace begin / end

2018-09-20 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 20, 2018 at 03:13:52PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Sep 19, 2018 at 02:23:35PM +0300, Adrian Hunter escreveu: > > + return thread_stack__push(thread->ts, ret_addr, > > + flags && PERF_IP_FLAG_TRACE_END); > > + }

Re: RFC/error: Re: [PATCH 3/6] perf tools: Improve thread_stack__event() for trace begin / end

2018-09-20 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 20, 2018 at 03:13:52PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Sep 19, 2018 at 02:23:35PM +0300, Adrian Hunter escreveu: > > + return thread_stack__push(thread->ts, ret_addr, > > + flags && PERF_IP_FLAG_TRACE_END); > > + }

Re: [PATCH 2/2] pinctrl: tegra: move probe to __init section

2018-09-20 Thread Stefan Agner
On 20.09.2018 08:16, Linus Walleij wrote: > On Tue, Sep 18, 2018 at 6:24 PM Stefan Agner wrote: > >> The Tegra pinctrl drivers are always built-in. This allows to use >> platform_driver_probe() and mark several functions as __init. >> This allows the kernel to free about 1KiB of memory if Tegra

Re: [PATCH 2/2] pinctrl: tegra: move probe to __init section

2018-09-20 Thread Stefan Agner
On 20.09.2018 08:16, Linus Walleij wrote: > On Tue, Sep 18, 2018 at 6:24 PM Stefan Agner wrote: > >> The Tegra pinctrl drivers are always built-in. This allows to use >> platform_driver_probe() and mark several functions as __init. >> This allows the kernel to free about 1KiB of memory if Tegra

RFC/error: Re: [PATCH 3/6] perf tools: Improve thread_stack__event() for trace begin / end

2018-09-20 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 19, 2018 at 02:23:35PM +0300, Adrian Hunter escreveu: > + return thread_stack__push(thread->ts, ret_addr, > + flags && PERF_IP_FLAG_TRACE_END); > + } else if (flags & PERF_IP_FLAG_TRACE_BEGIN) { Some of the build containers caught

RFC/error: Re: [PATCH 3/6] perf tools: Improve thread_stack__event() for trace begin / end

2018-09-20 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 19, 2018 at 02:23:35PM +0300, Adrian Hunter escreveu: > + return thread_stack__push(thread->ts, ret_addr, > + flags && PERF_IP_FLAG_TRACE_END); > + } else if (flags & PERF_IP_FLAG_TRACE_BEGIN) { Some of the build containers caught

[PATCH v6 1/5] tools, perf, script: Add --insn-trace for instruction decoding

2018-09-20 Thread Andi Kleen
From: Andi Kleen Add a --insn-trace short hand option for decoding and disassembling instruction streams for intel_pt. This automatically pipes the output into the xed disassembler to generate disassembled instructions. This just makes this use model much nicer to use Before % perf record -e

[PATCH v6 1/5] tools, perf, script: Add --insn-trace for instruction decoding

2018-09-20 Thread Andi Kleen
From: Andi Kleen Add a --insn-trace short hand option for decoding and disassembling instruction streams for intel_pt. This automatically pipes the output into the xed disassembler to generate disassembled instructions. This just makes this use model much nicer to use Before % perf record -e

[PATCH v6 2/5] perf, tools, script: Make itrace script default to all calls

2018-09-20 Thread Andi Kleen
From: Andi Kleen By default perf script for itrace outputs sampled instructions or branches. In my experience this is confusing to users because it's hard to correlate with real program behavior. The sampling makes sense for tools like report that actually sample to reduce the run time, but run

[PATCH v6 2/5] perf, tools, script: Make itrace script default to all calls

2018-09-20 Thread Andi Kleen
From: Andi Kleen By default perf script for itrace outputs sampled instructions or branches. In my experience this is confusing to users because it's hard to correlate with real program behavior. The sampling makes sense for tools like report that actually sample to reduce the run time, but run

[PATCH v6 5/5] perf, tools, script: Support total cycles count

2018-09-20 Thread Andi Kleen
From: Andi Kleen For perf script brstackinsn also print a running cycles count. This makes it easier to calculate cycle deltas for code sections measured with LBRs. % perf record -b -a sleep 1 % perf script -F +brstackinsn ... _dl_sysdep_start+330: 7eff9f20583ainsn:

[PATCH v6 5/5] perf, tools, script: Support total cycles count

2018-09-20 Thread Andi Kleen
From: Andi Kleen For perf script brstackinsn also print a running cycles count. This makes it easier to calculate cycle deltas for code sections measured with LBRs. % perf record -b -a sleep 1 % perf script -F +brstackinsn ... _dl_sysdep_start+330: 7eff9f20583ainsn:

Make perf script easier to use for itrace

2018-09-20 Thread Andi Kleen
Implement a range of improvements to make it easier to look at itrace traces with perf script. Nothing here couldn't be done before with some additional scripting, but add simple high level options to make it easier to use. % perf record -e intel_pt//k -a sleep 1 Show function calls: % perf

[PATCH v6 4/5] tools, perf, script: Implement --graph-function

2018-09-20 Thread Andi Kleen
From: Andi Kleen Add a ftrace style --graph-function argument to perf script that allows to print itrace function calls only below a given function. This makes it easier to find the code of interest in a large trace. % perf record -e intel_pt//k -a sleep 1 % perf script --graph-function

Make perf script easier to use for itrace

2018-09-20 Thread Andi Kleen
Implement a range of improvements to make it easier to look at itrace traces with perf script. Nothing here couldn't be done before with some additional scripting, but add simple high level options to make it easier to use. % perf record -e intel_pt//k -a sleep 1 Show function calls: % perf

[PATCH v6 4/5] tools, perf, script: Implement --graph-function

2018-09-20 Thread Andi Kleen
From: Andi Kleen Add a ftrace style --graph-function argument to perf script that allows to print itrace function calls only below a given function. This makes it easier to find the code of interest in a large trace. % perf record -e intel_pt//k -a sleep 1 % perf script --graph-function

[PATCH v6 3/5] tools, perf, script: Add --call-trace and --call-ret-trace

2018-09-20 Thread Andi Kleen
From: Andi Kleen Add short cut options to print PT call trace and call-ret-trace, for calls and call and returns. Roughly corresponds to ftrace function tracer and function graph tracer. Just makes these common use cases nicer to use. % perf record -a -e intel_pt// sleep 1 % perf script

[PATCH v6 3/5] tools, perf, script: Add --call-trace and --call-ret-trace

2018-09-20 Thread Andi Kleen
From: Andi Kleen Add short cut options to print PT call trace and call-ret-trace, for calls and call and returns. Roughly corresponds to ftrace function tracer and function graph tracer. Just makes these common use cases nicer to use. % perf record -a -e intel_pt// sleep 1 % perf script

Re: [PATCH] iio: magnetometer: Add support for PNI RM3100 9-axis magnetometer

2018-09-20 Thread Song Qiang
On Thu, Sep 20, 2018 at 03:46:03PM +0200, Peter Meerwald-Stadler wrote: > On Thu, 20 Sep 2018, Song Qiang wrote: > > > PNI RM3100 magnetometer is a high resolution, large signal immunity > > magnetometer, composed of 3 single sensors and a processing chip. > > PNI is currently not in the vendors

Re: [PATCH] iio: magnetometer: Add support for PNI RM3100 9-axis magnetometer

2018-09-20 Thread Song Qiang
On Thu, Sep 20, 2018 at 03:46:03PM +0200, Peter Meerwald-Stadler wrote: > On Thu, 20 Sep 2018, Song Qiang wrote: > > > PNI RM3100 magnetometer is a high resolution, large signal immunity > > magnetometer, composed of 3 single sensors and a processing chip. > > PNI is currently not in the vendors

[PATCH v2 1/2] i2c: i2c-qcom-geni: Properly handle DMA safe buffers

2018-09-20 Thread Stephen Boyd
We shouldn't attempt to DMA map the message buffers passed into this driver from the i2c core unless the message we're mapping have been properly setup for DMA. The i2c core indicates such a situation by setting the I2C_M_DMA_SAFE flag, so check for that flag before using DMA mode. We can also

[PATCH v2 2/2] i2c: i2c-qcom-geni: Simplify tx/rx functions

2018-09-20 Thread Stephen Boyd
We never really look at the 'ret' local variable in these functions, so let's remove it to make way for shorter and simpler code. Furthermore, we can shorten some lines by adding two local variables for the SE and the message length so that everything fits in 80 columns. And kernel style is to

[PATCH v2 1/2] i2c: i2c-qcom-geni: Properly handle DMA safe buffers

2018-09-20 Thread Stephen Boyd
We shouldn't attempt to DMA map the message buffers passed into this driver from the i2c core unless the message we're mapping have been properly setup for DMA. The i2c core indicates such a situation by setting the I2C_M_DMA_SAFE flag, so check for that flag before using DMA mode. We can also

[PATCH v2 2/2] i2c: i2c-qcom-geni: Simplify tx/rx functions

2018-09-20 Thread Stephen Boyd
We never really look at the 'ret' local variable in these functions, so let's remove it to make way for shorter and simpler code. Furthermore, we can shorten some lines by adding two local variables for the SE and the message length so that everything fits in 80 columns. And kernel style is to

[PATCH v2 0/2] Fix qcom geni i2c DMA handling

2018-09-20 Thread Stephen Boyd
The qcom GENI I2C driver fails DMA sometimes when things from request firmware are passed in as the message buffer. This patch series fixes that problem in the first patch and the second patch cleans up the code a little to reduce lines and simplify lines. Changes from v1: * Use i2c helpers to

[PATCH v2 0/2] Fix qcom geni i2c DMA handling

2018-09-20 Thread Stephen Boyd
The qcom GENI I2C driver fails DMA sometimes when things from request firmware are passed in as the message buffer. This patch series fixes that problem in the first patch and the second patch cleans up the code a little to reduce lines and simplify lines. Changes from v1: * Use i2c helpers to

[PATCHv3 7/7] mmc: dw_mmc-exynos: Add tuning for sdr and ddr timing for USH-I mode

2018-09-20 Thread Anand Moon
Add tuning for sdr and ddr timing for USH-I mode sdr104/sdr50/ddr50 for host controller. CC: Jaehoon Chung CC: Marek Szyprowski Signed-off-by: Anand Moon --- This patch is new to this series --- drivers/mmc/host/dw_mmc-exynos.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCHv3 7/7] mmc: dw_mmc-exynos: Add tuning for sdr and ddr timing for USH-I mode

2018-09-20 Thread Anand Moon
Add tuning for sdr and ddr timing for USH-I mode sdr104/sdr50/ddr50 for host controller. CC: Jaehoon Chung CC: Marek Szyprowski Signed-off-by: Anand Moon --- This patch is new to this series --- drivers/mmc/host/dw_mmc-exynos.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCHv3 5/7] ARM: dts: exynos5422: use wp-gpio method to detect sd-card

2018-09-20 Thread Anand Moon
add the Write Protect GPIO property for sdcard, to fix the warning message during boot time. of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/soc/mmc@1222[0]' Signed-off-by: Anand Moon --- New patch to this series. If we keep the wp-gpio GPIO_ACTIVE_LOW sdcard boot into

[PATCHv3 6/7] ARM: dts: exynos5422: update maximum frequency for emmc to 200MHz

2018-09-20 Thread Anand Moon
set the max-frequency to 200MHz for optimal performace of eMMC. Signed-off-by: Anand Moon --- This patch is new to this series. MMC root@odroid:~# sudo cat /sys/kernel/debug/mmc0/ios clock: 2 Hz actual clock: 2 Hz vdd:7 (1.65 - 1.95 V) bus mode: 2

[PATCHv3 5/7] ARM: dts: exynos5422: use wp-gpio method to detect sd-card

2018-09-20 Thread Anand Moon
add the Write Protect GPIO property for sdcard, to fix the warning message during boot time. of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/soc/mmc@1222[0]' Signed-off-by: Anand Moon --- New patch to this series. If we keep the wp-gpio GPIO_ACTIVE_LOW sdcard boot into

[PATCHv3 6/7] ARM: dts: exynos5422: update maximum frequency for emmc to 200MHz

2018-09-20 Thread Anand Moon
set the max-frequency to 200MHz for optimal performace of eMMC. Signed-off-by: Anand Moon --- This patch is new to this series. MMC root@odroid:~# sudo cat /sys/kernel/debug/mmc0/ios clock: 2 Hz actual clock: 2 Hz vdd:7 (1.65 - 1.95 V) bus mode: 2

[PATCHv3 1/7] ARM: dts: exynos5422: Added UHS-I bus speed support

2018-09-20 Thread Anand Moon
Added support for UHS-I bus speed tuning for SDR50, DDR50 SDR104. Signed-off-by: Anand Moon --- [0] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/376263.html Changes from above. Fix the subject and commit message. drop sd-uhs-sdr12 and sd-uhs-sdr25 as host driver is not

[PATCHv3 3/7] ARM: dts: exynos5422: update maximum frequency for sdcard to 200MHz

2018-09-20 Thread Anand Moon
set the max-frequency to 200MHz for optimal performace. Signed-off-by: Anand Moon --- This patch is new to this series. microSD card. root@odroid:~# sudo cat /sys/kernel/debug/mmc1/ios clock: 2 Hz actual clock: 2 Hz vdd:16 (2.8 ~ 2.9 V) bus mode: 2

[PATCHv3 0/7] Add support for UHS-I on Exynos5422 odroid boards

2018-09-20 Thread Anand Moon
This is series v3 since my previous patches we incomplete with driver changes missing. These changes add UHS-I tuning for dw_mmc-exynos driver. Some new patches are added to enhance the performace. Anand Moon (7): ARM: dts: exynos5422: Added UHS-I bus speed support ARM: dts: exynos5422: fix

[PATCHv3 2/7] ARM: dts: exynos5422: fix regulator min values of LDO13 for Odroid XU3/XU4

2018-09-20 Thread Anand Moon
looking at the schematic sd_2 min/max range from 1.8V/2.8V so fix the regulator min value to 1.8V. Without these changes sdcard will failed to detect on booting when UHS-I tuning is enabled. Signed-off-by: Anand Moon --- [0]

[PATCHv3 1/7] ARM: dts: exynos5422: Added UHS-I bus speed support

2018-09-20 Thread Anand Moon
Added support for UHS-I bus speed tuning for SDR50, DDR50 SDR104. Signed-off-by: Anand Moon --- [0] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/376263.html Changes from above. Fix the subject and commit message. drop sd-uhs-sdr12 and sd-uhs-sdr25 as host driver is not

[PATCHv3 3/7] ARM: dts: exynos5422: update maximum frequency for sdcard to 200MHz

2018-09-20 Thread Anand Moon
set the max-frequency to 200MHz for optimal performace. Signed-off-by: Anand Moon --- This patch is new to this series. microSD card. root@odroid:~# sudo cat /sys/kernel/debug/mmc1/ios clock: 2 Hz actual clock: 2 Hz vdd:16 (2.8 ~ 2.9 V) bus mode: 2

[PATCHv3 0/7] Add support for UHS-I on Exynos5422 odroid boards

2018-09-20 Thread Anand Moon
This is series v3 since my previous patches we incomplete with driver changes missing. These changes add UHS-I tuning for dw_mmc-exynos driver. Some new patches are added to enhance the performace. Anand Moon (7): ARM: dts: exynos5422: Added UHS-I bus speed support ARM: dts: exynos5422: fix

[PATCHv3 2/7] ARM: dts: exynos5422: fix regulator min values of LDO13 for Odroid XU3/XU4

2018-09-20 Thread Anand Moon
looking at the schematic sd_2 min/max range from 1.8V/2.8V so fix the regulator min value to 1.8V. Without these changes sdcard will failed to detect on booting when UHS-I tuning is enabled. Signed-off-by: Anand Moon --- [0]

[PATCHv3 4/7] ARM: dts: exynos5422: use cd-gpio method to detect sd-card

2018-09-20 Thread Anand Moon
add the Card Detect GPIO property for sdcard detect, to fix the warning message during boot time. of_get_named_gpiod_flags: can't parse 'cp-gpios' property of node '/soc/mmc@1222[0]' Signed-off-by: Anand Moon --- [0]

[PATCHv3 4/7] ARM: dts: exynos5422: use cd-gpio method to detect sd-card

2018-09-20 Thread Anand Moon
add the Card Detect GPIO property for sdcard detect, to fix the warning message during boot time. of_get_named_gpiod_flags: can't parse 'cp-gpios' property of node '/soc/mmc@1222[0]' Signed-off-by: Anand Moon --- [0]

Re: [PATCH V2 02/27] mmc: mmci: internalize dma_inprogress into mmci dma functions

2018-09-20 Thread Ulf Hansson
On 18 September 2018 at 12:55, Ludovic Barre wrote: > From: Ludovic Barre > > This patch internalizes the dma_inprogress into mmci dma interfaces. > This allows to simplify and prepare the next dma callbacks > for mmci host ops. __dma_inprogress is called in mmci_dma_data_error > and

Re: [PATCH V2 02/27] mmc: mmci: internalize dma_inprogress into mmci dma functions

2018-09-20 Thread Ulf Hansson
On 18 September 2018 at 12:55, Ludovic Barre wrote: > From: Ludovic Barre > > This patch internalizes the dma_inprogress into mmci dma interfaces. > This allows to simplify and prepare the next dma callbacks > for mmci host ops. __dma_inprogress is called in mmci_dma_data_error > and

Re: [PATCH V4 00/27] C-SKY(csky) Linux Kernel Port

2018-09-20 Thread Palmer Dabbelt
On Fri, 14 Sep 2018 07:37:20 PDT (-0700), ren_...@c-sky.com wrote: On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > This is the 3th version patchset to add the Linux kernel port for C-SKY(csky). > Thanks to everyone who provided

Re: [PATCH V4 00/27] C-SKY(csky) Linux Kernel Port

2018-09-20 Thread Palmer Dabbelt
On Fri, 14 Sep 2018 07:37:20 PDT (-0700), ren_...@c-sky.com wrote: On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > This is the 3th version patchset to add the Linux kernel port for C-SKY(csky). > Thanks to everyone who provided

Re: [PATCH] KVM: x86: fix failure of injecting exceptions in x86_emulate_instruction

2018-09-20 Thread Sean Christopherson
+cc Peng Hao and Jiang Biao On Thu, Sep 20, 2018 at 06:53:55PM +0200, Paolo Bonzini wrote: > On 20/09/2018 18:30, Paolo Bonzini wrote: > > On 06/09/2018 10:02, Yi Wang wrote: > >> In order to fix a page table walk issue, commit 6ea6e84309ca > >> ("KVM: x86: inject exceptions produced by

Re: [PATCH] KVM: x86: fix failure of injecting exceptions in x86_emulate_instruction

2018-09-20 Thread Sean Christopherson
+cc Peng Hao and Jiang Biao On Thu, Sep 20, 2018 at 06:53:55PM +0200, Paolo Bonzini wrote: > On 20/09/2018 18:30, Paolo Bonzini wrote: > > On 06/09/2018 10:02, Yi Wang wrote: > >> In order to fix a page table walk issue, commit 6ea6e84309ca > >> ("KVM: x86: inject exceptions produced by

OK

2018-09-20 Thread Ahmed Zama
Dear Friend I have access to very vital information that can be used to move huge amount of money to a foreign account I have done my homework very well and i have the machineries in place to get it done since I am still in active service. If it was possible for me to do it alone I would not

OK

2018-09-20 Thread Ahmed Zama
Dear Friend I have access to very vital information that can be used to move huge amount of money to a foreign account I have done my homework very well and i have the machineries in place to get it done since I am still in active service. If it was possible for me to do it alone I would not

Re: [PATCH RESEND] kvm/x86: propagate fetch fault into guest

2018-09-20 Thread Sean Christopherson
On Thu, Sep 20, 2018 at 06:32:10PM +0200, Paolo Bonzini wrote: > On 19/09/2018 16:33, Sean Christopherson wrote: > > On Tue, 2018-09-18 at 19:03 -0400, Peng Hao wrote: > >> From: Peng Hao > >> > >> When handling ept misconfig exit, it will call emulate instruction > >> with insn_len = 0. The

Re: [PATCH RESEND] kvm/x86: propagate fetch fault into guest

2018-09-20 Thread Sean Christopherson
On Thu, Sep 20, 2018 at 06:32:10PM +0200, Paolo Bonzini wrote: > On 19/09/2018 16:33, Sean Christopherson wrote: > > On Tue, 2018-09-18 at 19:03 -0400, Peng Hao wrote: > >> From: Peng Hao > >> > >> When handling ept misconfig exit, it will call emulate instruction > >> with insn_len = 0. The

Applied "regulator: fix crash caused by null driver data" to the regulator tree

2018-09-20 Thread Mark Brown
The patch regulator: fix crash caused by null driver data has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "regulator: qcom: Add PMS405 regulators" to the regulator tree

2018-09-20 Thread Mark Brown
The patch regulator: qcom: Add PMS405 regulators has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "regulator: fix crash caused by null driver data" to the regulator tree

2018-09-20 Thread Mark Brown
The patch regulator: fix crash caused by null driver data has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "regulator: qcom: Add PMS405 regulators" to the regulator tree

2018-09-20 Thread Mark Brown
The patch regulator: qcom: Add PMS405 regulators has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

[PATCH v2 08/20] vmw_balloon: rename VMW_BALLOON_2M_SHIFT to VMW_BALLOON_2M_ORDER

2018-09-20 Thread Nadav Amit
The name of the macro'd VMW_BALLOON_2M_SHIFT is misleading. The value reflects 2M huge-page order. Unfortunately, we cannot use HPAGE_PMD_ORDER, since it is not defined when transparent huge-pages are off, so we need to define our own one. Rename it to VMW_BALLOON_2M_ORDER. No functional change.

[PATCH v2 09/20] vmw_balloon: refactor change size from vmballoon_work

2018-09-20 Thread Nadav Amit
The required change in the balloon size is currently computed in vmballoon_work(), vmballoon_inflate() and vmballoon_deflate(). Refactor it to simplify the next patches. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 75

[PATCH v2 08/20] vmw_balloon: rename VMW_BALLOON_2M_SHIFT to VMW_BALLOON_2M_ORDER

2018-09-20 Thread Nadav Amit
The name of the macro'd VMW_BALLOON_2M_SHIFT is misleading. The value reflects 2M huge-page order. Unfortunately, we cannot use HPAGE_PMD_ORDER, since it is not defined when transparent huge-pages are off, so we need to define our own one. Rename it to VMW_BALLOON_2M_ORDER. No functional change.

[PATCH v2 09/20] vmw_balloon: refactor change size from vmballoon_work

2018-09-20 Thread Nadav Amit
The required change in the balloon size is currently computed in vmballoon_work(), vmballoon_inflate() and vmballoon_deflate(). Refactor it to simplify the next patches. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 75

[PATCH v2 05/20] vmw_balloon: remove sleeping allocations

2018-09-20 Thread Nadav Amit
Splitting the allocations between sleeping and non-sleeping made some sort of sense as long as rate-limiting was enabled. Now that it is removed, we need to decide - either we want sleeping allocations or not. Since no other Linux balloon driver (hv, Xen, virtio) uses sleeping allocations, use

[PATCH v2 05/20] vmw_balloon: remove sleeping allocations

2018-09-20 Thread Nadav Amit
Splitting the allocations between sleeping and non-sleeping made some sort of sense as long as rate-limiting was enabled. Now that it is removed, we need to decide - either we want sleeping allocations or not. Since no other Linux balloon driver (hv, Xen, virtio) uses sleeping allocations, use

[PATCH v2 10/20] vmw_balloon: simplify vmballoon_send_get_target()

2018-09-20 Thread Nadav Amit
As we want to leave as little as possible on the global balloon structure, to avoid possible future races, we want to get rid sysinfo. We can actually get the total_ram directly, and simplify the logic of vmballoon_send_get_target() a little. While we are doing that, let's return int and avoid

[PATCH v2 04/20] vmw_balloon: simplifying batch access

2018-09-20 Thread Nadav Amit
The use of accessors for batch entries complicates the code and makes it less readable. Remove it an instead use bit-fields. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 81 ++ 1 file changed, 30 insertions(+), 51

[PATCH v2 10/20] vmw_balloon: simplify vmballoon_send_get_target()

2018-09-20 Thread Nadav Amit
As we want to leave as little as possible on the global balloon structure, to avoid possible future races, we want to get rid sysinfo. We can actually get the total_ram directly, and simplify the logic of vmballoon_send_get_target() a little. While we are doing that, let's return int and avoid

[PATCH v2 04/20] vmw_balloon: simplifying batch access

2018-09-20 Thread Nadav Amit
The use of accessors for batch entries complicates the code and makes it less readable. Remove it an instead use bit-fields. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 81 ++ 1 file changed, 30 insertions(+), 51

[PATCH v2 06/20] vmw_balloon: change batch/single lock abstractions

2018-09-20 Thread Nadav Amit
The current abstractions for batch vs single operations seem suboptimal and complicate the implementation of additional features (OOM, compaction). The immediate problem of the current abstractions is that they cause differences in how operations are handled when batching is on or off. For

[PATCH v2 06/20] vmw_balloon: change batch/single lock abstractions

2018-09-20 Thread Nadav Amit
The current abstractions for batch vs single operations seem suboptimal and complicate the implementation of additional features (OOM, compaction). The immediate problem of the current abstractions is that they cause differences in how operations are handled when batching is on or off. For

[PATCH v2 13/20] vmw_balloon: general style cleanup

2018-09-20 Thread Nadav Amit
Change all the remaining return values to int to avoid mistakes. Reduce indentation when possible. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 39 ++ 1 file changed, 23 insertions(+), 16 deletions(-) diff --git

[PATCH v2 13/20] vmw_balloon: general style cleanup

2018-09-20 Thread Nadav Amit
Change all the remaining return values to int to avoid mistakes. Reduce indentation when possible. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 39 ++ 1 file changed, 23 insertions(+), 16 deletions(-) diff --git

[PATCH v2 07/20] vmw_balloon: treat all refused pages equally

2018-09-20 Thread Nadav Amit
Currently, when the hypervisor rejects a page during lock operation, the VM treats pages differently according to the error-code: in certain cases the page is immediately freed, and in others it is put on a rejection list and only freed later. The behavior does not make too much sense. If the

[PATCH v2 11/20] vmw_balloon: stats rework

2018-09-20 Thread Nadav Amit
To allow the balloon statistics to be updated concurrently, we change the statistics to be held per core and aggregate it when needed. To avoid the memory overhead of keeping the statistics per core, and since it is likely not used by most users, we start updating the statistics only after the

[PATCH v2 07/20] vmw_balloon: treat all refused pages equally

2018-09-20 Thread Nadav Amit
Currently, when the hypervisor rejects a page during lock operation, the VM treats pages differently according to the error-code: in certain cases the page is immediately freed, and in others it is put on a rejection list and only freed later. The behavior does not make too much sense. If the

[PATCH v2 11/20] vmw_balloon: stats rework

2018-09-20 Thread Nadav Amit
To allow the balloon statistics to be updated concurrently, we change the statistics to be held per core and aggregate it when needed. To avoid the memory overhead of keeping the statistics per core, and since it is likely not used by most users, we start updating the statistics only after the

[PATCH v2 12/20] vmw_balloon: rework the inflate and deflate loops

2018-09-20 Thread Nadav Amit
In preparation for supporting compaction and OOM notification, this patch reworks the inflate/deflate loops. The main idea is to separate the allocation, communication with the hypervisor, and the handling of errors from each other. Doing will allow us to perform concurrent inflation and

Re: [PATCH 2/2] x86/speculation: Provide application property based STIBP protection

2018-09-20 Thread Tim Chen
On 09/20/2018 01:00 AM, Peter Zijlstra wrote: > On Wed, Sep 19, 2018 at 02:35:30PM -0700, Tim Chen wrote: >> This patch provides an application property based spectre_v2 >> protection with STIBP against attack from another app from >> a sibling hyper-thread. For security sensitive non-dumpable >>

[PATCH v2 20/20] vmw_balloon: split refused pages

2018-09-20 Thread Nadav Amit
The hypervisor might refuse to inflate pages. While the balloon driver handles this scenario correctly, a refusal to inflate a 2MB pages might cause the same page to be allocated again later just for its inflation to be refused again. This wastes energy and time. To avoid this situation we split

[PATCH v2 17/20] vmw_balloon: compaction support

2018-09-20 Thread Nadav Amit
Add support for compaction for VMware balloon. Since unlike the virtio balloon, we also support huge-pages, which are not going through compaction, we keep these pages in vmballoon and handle this list separately. We use the same lock to protect both lists, as this lock is not supposed to be

[PATCH v2 18/20] vmw_balloon: support 64-bit memory limit

2018-09-20 Thread Nadav Amit
From: Xavier Deguillard Currently, the balloon driver would fail to run if memory is greater than 16TB of vRAM. Previous patches have already converted the balloon target and size to 64-bit, so all that is left to do add is to avoid asserting memory is smaller than 16TB if the hypervisor

[PATCH v2 20/20] vmw_balloon: split refused pages

2018-09-20 Thread Nadav Amit
The hypervisor might refuse to inflate pages. While the balloon driver handles this scenario correctly, a refusal to inflate a 2MB pages might cause the same page to be allocated again later just for its inflation to be refused again. This wastes energy and time. To avoid this situation we split

[PATCH v2 17/20] vmw_balloon: compaction support

2018-09-20 Thread Nadav Amit
Add support for compaction for VMware balloon. Since unlike the virtio balloon, we also support huge-pages, which are not going through compaction, we keep these pages in vmballoon and handle this list separately. We use the same lock to protect both lists, as this lock is not supposed to be

[PATCH v2 18/20] vmw_balloon: support 64-bit memory limit

2018-09-20 Thread Nadav Amit
From: Xavier Deguillard Currently, the balloon driver would fail to run if memory is greater than 16TB of vRAM. Previous patches have already converted the balloon target and size to 64-bit, so all that is left to do add is to avoid asserting memory is smaller than 16TB if the hypervisor

[PATCH v2 12/20] vmw_balloon: rework the inflate and deflate loops

2018-09-20 Thread Nadav Amit
In preparation for supporting compaction and OOM notification, this patch reworks the inflate/deflate loops. The main idea is to separate the allocation, communication with the hypervisor, and the handling of errors from each other. Doing will allow us to perform concurrent inflation and

Re: [PATCH 2/2] x86/speculation: Provide application property based STIBP protection

2018-09-20 Thread Tim Chen
On 09/20/2018 01:00 AM, Peter Zijlstra wrote: > On Wed, Sep 19, 2018 at 02:35:30PM -0700, Tim Chen wrote: >> This patch provides an application property based spectre_v2 >> protection with STIBP against attack from another app from >> a sibling hyper-thread. For security sensitive non-dumpable >>

[PATCH v2 19/20] vmw_balloon: memory shrinker

2018-09-20 Thread Nadav Amit
Adding a shrinker to the VMware balloon to prevent out-of-memory events. We reuse the deflate logic for this matter. Deadlocks should not happen, as no memory allocation is performed while the locks of the communication (batch/page) and page-list are taken. In the unlikely event in which the

[PATCH v2 19/20] vmw_balloon: memory shrinker

2018-09-20 Thread Nadav Amit
Adding a shrinker to the VMware balloon to prevent out-of-memory events. We reuse the deflate logic for this matter. Deadlocks should not happen, as no memory allocation is performed while the locks of the communication (batch/page) and page-list are taken. In the unlikely event in which the

[PATCH v2 14/20] vmw_balloon: add reset stat

2018-09-20 Thread Nadav Amit
It is useful to expose how many times the balloon resets. If it happens more than very rarely - this is an indication for a problem. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH v2 01/20] vmw_balloon: handle commands in a single function.

2018-09-20 Thread Nadav Amit
By inlining the hypercall interface, we can unify several operations into one central point in the code: - Updating the target. - Updating when a reset is needed. - Update statistics (which will be done later in the patch-set). - Print debug-messages (although they cannot be enabled as

[PATCH v2 14/20] vmw_balloon: add reset stat

2018-09-20 Thread Nadav Amit
It is useful to expose how many times the balloon resets. If it happens more than very rarely - this is an indication for a problem. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH v2 01/20] vmw_balloon: handle commands in a single function.

2018-09-20 Thread Nadav Amit
By inlining the hypercall interface, we can unify several operations into one central point in the code: - Updating the target. - Updating when a reset is needed. - Update statistics (which will be done later in the patch-set). - Print debug-messages (although they cannot be enabled as

[PATCH v2 02/20] vmw_balloon: unify commands tracing and stats

2018-09-20 Thread Nadav Amit
Now that we have a single point, unify the tracing and collecting the statistics for commands and their failure. While it might somewhat reduce the control over debugging, it cleans the code a lot. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 116

[PATCH v2 02/20] vmw_balloon: unify commands tracing and stats

2018-09-20 Thread Nadav Amit
Now that we have a single point, unify the tracing and collecting the statistics for commands and their failure. While it might somewhat reduce the control over debugging, it cleans the code a lot. Reviewed-by: Xavier Deguillard Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 116

<    1   2   3   4   5   6   7   8   9   10   >