[PATCH v1 2/4] KVM: MMU: Rename PT64_ROOT_LEVEL to PT64_ROOT_4LEVEL.

2017-08-12 Thread Yu Zhang
Now we have 4 level page table and 5 level page table in 64 bits long mode, let's rename the PT64_ROOT_LEVEL to PT64_ROOT_4LEVEL, then we can use PT64_ROOT_5LEVEL for 5 level page table, it's helpful to make the code more clear. Also PT64_ROOT_MAX_LEVEL is defined as PT64_ROOT_4LEVEL, so that we c

[PATCH v1 4/4] KVM: MMU: Expose the LA57 feature to VM.

2017-08-12 Thread Yu Zhang
This patch exposes 5 level page table feature to the VM, at the same time, the canonical virtual address checking is extended to support both 48-bits and 57-bits address width. Signed-off-by: Yu Zhang --- arch/x86/include/asm/kvm_host.h | 18 ++ arch/x86/kvm/cpuid.c|

[PATCH v1 0/4] KVM: MMU: 5 level EPT/shadow support

2017-08-12 Thread Yu Zhang
Intel's existing processors limit the maximum linear address width to 48 bits, and the maximum physical address width to 46 bits. And the upcoming processors will extend maximum linear address width to 57 bits and maximum physical address width can go upto 52 bits in practical. With linear address

[PATCH v1 1/4] KVM: MMU: check guest CR3 reserved bits based on its physical address width.

2017-08-12 Thread Yu Zhang
Currently, KVM uses CR3_L_MODE_RESERVED_BITS to check the reserved bits in CR3. Yet the length of reserved bits in guest CR3 should be based on the physical address width exposed to the VM. This patch changes CR3 check logic to calculate the reserved bits at runtime. Signed-off-by: Yu Zhang ---

Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108

2017-08-12 Thread Wolfram Sang
Hi, > +static const struct rk3x_i2c_soc_data rv1108_soc_data = { > + .grf_offset = -1, > + .calc_timings = rk3x_i2c_v1_calc_timings, > +}; > + I don't care super much, but why don't you reuse rk3399_soc_data()? Or even use the rk3399 compatible as fallback value? Kind regards, Wolfra

Re: [RFC PATCH 7/9] housekeeping: Use own boot option, independant from nohz

2017-08-12 Thread Frederic Weisbecker
On Fri, Aug 11, 2017 at 03:09:57PM -0400, Luiz Capitulino wrote: > On Fri, 21 Jul 2017 15:21:28 +0200 > Frederic Weisbecker wrote: > > -void __init housekeeping_init(void) > > +/* Parse the boot-time housekeeping CPU list from the kernel parameters. */ > > +static int __init housekeeping_setup(cha

Re: [PATCH 1/2] i2c: mux: pinctrl: remove platform_data

2017-08-12 Thread Wolfram Sang
On Wed, Aug 02, 2017 at 09:27:27AM +0200, Peter Rosin wrote: > No platform (at least no upstreamed platform) has ever used this > platform_data. Just drop it and simplify the code. > > Signed-off-by: Peter Rosin Very nice! Acked-by: Wolfram Sang signature.asc Description: PGP signature

Re: [PATCH v2 2/2] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-12 Thread Rafael J. Wysocki
On Friday, August 11, 2017 6:18:50 PM CEST Srinivas Pandruvada wrote: > On Fri, 2017-08-11 at 14:43 +, mario.limoncie...@dell.com wrote: > > > > > > -Original Message- > > > From: Srinivas Pandruvada [mailto:srinivas.pandruvada@linux.intel.c > > > om] > > > Sent: Thursday, August 10, 2

Re: [PATCH] i2c: mux: rename files to not have superfluous prefixes

2017-08-12 Thread Wolfram Sang
Hi peda, > In the light of the rant from Linus the other week [1], I thought this > might be a good idea? I am still not decided on this one. I tried to do it with the core files and didn't find a convincing solution there. Also, the churn is quite high: git history becomes less usable, likely br

Re: [PATCH 4.12 00/17] 4.12.7-stable review

2017-08-12 Thread Greg Kroah-Hartman
On Fri, Aug 11, 2017 at 07:55:57PM -0600, Shuah Khan wrote: > On 08/11/2017 04:01 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.12.7 release. > > There are 17 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

Re: [PATCH v3] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-12 Thread Rafael J. Wysocki
On Friday, August 11, 2017 8:23:55 PM CEST Srinivas Pandruvada wrote: > For SoC to achieve its lowest power platform idle state a set of hardware > preconditions must be met. These preconditions or constraints can be > obtained by issuing a device specific method (_DSM) with function "1". > Refer t

Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108

2017-08-12 Thread Wolfram Sang
> Actually, there is one I2C controller(I2C2) has a different feature with > all the other rockchip soc.The I2C2 is not used on my current board. But I > plan to add this feature later。 So I give RV1108 a new compatible string > here。 Makes sense. Thanks! signature.asc Description: PGP signatu

Re: [PATCH v3 01/13] dt-bindings: i2c: rk3x: add support for rv1108

2017-08-12 Thread Wolfram Sang
On Fri, Aug 11, 2017 at 11:38:29AM +0800, Andy Yan wrote: > Add dt Document for i2c controller on rv1108 > > Signed-off-by: Andy Yan > Acked-by: Rob Herring > Applied to for-next, thanks! signature.asc Description: PGP signature

Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108

2017-08-12 Thread Wolfram Sang
On Fri, Aug 11, 2017 at 11:39:13AM +0800, Andy Yan wrote: > Support for the i2c controller on rv1108 soc. > > Signed-off-by: Andy Yan > Reviewed-by: Heiko Stuebner Applied to for-next, thanks! signature.asc Description: PGP signature

Re: [PATCH v3 03/13] ARM: dts: rockchip: add i2c dt node for rv1108

2017-08-12 Thread Wolfram Sang
On Fri, Aug 11, 2017 at 11:39:50AM +0800, Andy Yan wrote: > There are four i2c controllers on rv1108, add > device tree node for them. > > Signed-off-by: Andy Yan This usually needs to go via some arm tree. signature.asc Description: PGP signature

Re: [PATCH v2 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-12 Thread Wolfram Sang
> +static const struct i2c_adapter_quirks mt7622_i2c_quirks = { > + .max_num_msgs = 255, > + .max_write_len = 65535, > + .max_read_len = 65535, > + .max_comb_1st_msg_len = 65535, > + .max_comb_2nd_msg_len = 65535, > +}; That looks like no quirks? Then just leave the quirks poi

Re: [PATCH] New Chapter on CodingStyle .

2017-08-12 Thread Jonathan Corbet
On Sat, 12 Aug 2017 14:23:18 +0300 Corcodel Marian wrote: > --- > Documentation/CodingStyle | 28 > 1 file changed, 28 insertions(+) > > diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle > index 9a70ddd..864dd8b 100644 > --- a/Documentation/CodingSt

[PATCH] serial: imx: Improve PIO prevention if TX DMA has been started

2017-08-12 Thread Clemens Gruber
The imx_transmit_buffer function should return if TX DMA has already been started and not just skip over the buffer PIO write loop. (Which did fix the initial problem, but could have unintentional side-effects) Tested on an i.MX6Q board with half-duplex RS-485 and with RS-232. Cc: Ian Jamison Cc

[PATCH 00/16] ALSA: PCI: constify snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Declare snd_pcm_hardware const. Done using Coccinelle. Bhumika Goyal (16): ALSA: aw2: make snd_pcm_hardware const ALSA: ca0106: make snd_pcm_hardware const ALSA: cs46xx: make snd_pcm_hardware const ALSA: korg1212: make snd_pcm_hardware const ALSA: cs5535audio: make snd_pcm_hardware cons

[PATCH 02/16] ALSA: ca0106: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/ca0106/ca0106_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 616

[PATCH 03/16] ALSA: cs46xx: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/cs46xx/cs46xx_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index 709fb1

[PATCH 01/16] ALSA: aw2: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/aw2/aw2-alsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c index 8356180..9a49e42 1006

[PATCH 04/16] ALSA: korg1212: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/korg1212/korg1212.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c index b28fe4

[PATCH 05/16] ALSA: cs5535audio: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/cs5535audio/cs5535audio_pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio

[PATCH 07/16] ALSA: lola: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/lola/lola_pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/lola/lola_pcm.c b/sound/pci/lola/lola_pcm.c index 1268ba3..310b26a 100644 --

[PATCH 06/16] ALSA: emu10k1: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/emu10k1/emu10k1x.c | 4 ++-- sound/pci/emu10k1/emupcm.c | 10 +- sound/pci/emu10k1/p16v.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-)

[PATCH 0/3] ALSA: rme9652: Adjustments for six function implementations

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 17:17:23 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in snd_hdspm_create() Improve eight size determinations Adjust seven chec

[PATCH 08/16] ALSA: lx6464es: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/lx6464es/lx6464es.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c index f9c3e86..9655b

[PATCH 11/16] ALSA: pcxhr: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. Done using Coccinelle Signed-off-by: Bhumika Goyal --- sound/pci/pcxhr/pcxhr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index fa919f5..e6f9aa6 100644 --- a/sou

[PATCH 12/16] ALSA: riptide: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/riptide/riptide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index f067c76..44f

[PATCH 13/16] ALSA: rme9652: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/rme9652/hdsp.c| 4 ++-- sound/pci/rme9652/rme9652.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/

[PATCH 10/16] ALSA: ctxfi: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/ctxfi/ctpcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/pci/ctxfi/ctpcm.c b/sound/pci/ctxfi/ctpcm.c index 9749780..358f520 10064

[PATCH 09/16] ALSA: mixart: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/mixart/mixart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index 6d7fbf3..aca3b34 1

[PATCH 14/16] ALSA: trident: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/trident/trident_main.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/pci/trident/trident_main.c b/sound/pci/trident/trident_mai

[PATCH 16/16] ALSA: pci: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/ad1889.c| 4 ++-- sound/pci/als300.c| 4 ++-- sound/pci/als4000.c | 4 ++-- sound/pci/atiixp.c| 2 +- sound/pci/atiixp_modem.c | 2

[PATCH 15/16] ALSA: ymfpci: make snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/ymfpci/ymfpci_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c index 111

[PATCH 1/3] ALSA: rme9652: Delete an error message for a failed memory allocation in snd_hdspm_create()

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 16:10:32 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/pci/rme9652/hdspm.c | 6 +- 1 file changed, 1 insertion(+),

[PATCH 2/3] ALSA: rme9652: Improve eight size determinations

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 16:50:06 +0200 Replace the specification of data structures by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

[PATCH 3/3] ALSA: rme9652: Adjust seven checks for null pointers

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 17:07:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

Re: [PATCH v3] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-12 Thread Srinivas Pandruvada
On Sat, 2017-08-12 at 16:27 +0200, Rafael J. Wysocki wrote: [...] > > + > > +struct lpi_constraints { > > + char *name; > > + int min_dstate; > If you store the handle here as well, you won't need to > look it up every time _check_constraints() is called. The reason I didn't keep handle here,

Re: [RFT][PATCH] iio: hid-sensor-trigger: Fix the race with user space powering up sensors

2017-08-12 Thread Srinivas Pandruvada
On Sat, 2017-08-12 at 14:58 +0200, Bastien Nocera wrote: > On Sat, 2017-08-12 at 13:16 +0100, Jonathan Cameron wrote: > > > > On Fri, 11 Aug 2017 16:04:30 +0200 > > Bastien Nocera wrote: > > > > > > > > Woot! > > > [...] > > > > > > > > Signed-off-by: Srinivas Pandruvada > > > nt > > > > el

Re: [PATCH 4.12 00/17] 4.12.7-stable review

2017-08-12 Thread Greg Kroah-Hartman
On Sat, Aug 12, 2017 at 05:24:51AM -0700, Guenter Roeck wrote: > On 08/11/2017 03:01 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.12.7 release. > > There are 17 patches in this series, all will be posted as a response > > to this one. If anyone has any i

Re: [PATCH 4.9 00/16] 4.9.43-stable review

2017-08-12 Thread Greg Kroah-Hartman
On Sat, Aug 12, 2017 at 05:36:08AM -0700, Guenter Roeck wrote: > On 08/11/2017 03:01 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.43 release. > > There are 16 patches in this series, all will be posted as a response > > to this one. If anyone has any i

[PATCH] net/i40evf: use cpumask_copy() for assigning cpumask

2017-08-12 Thread Juergen Gross
Using direct assignment for a cpumask is wrong, cpumask_copy() should be used instead. Cc: sta...@vger.kernel.org Signed-off-by: Juergen Gross --- drivers/net/ethernet/intel/i40evf/i40evf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40evf

[PATCH] net/i40e: use cpumask_copy() for assigning cpumask

2017-08-12 Thread Juergen Gross
Using direct assignment for a cpumask is wrong, cpumask_copy() should be used instead. Cc: sta...@vger.kernel.org Signed-off-by: Juergen Gross --- drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_

[PATCH] iio: hid-sensor-trigger: Fix the race with user space powering up sensors

2017-08-12 Thread Srinivas Pandruvada
It has been reported for a while that with iio-sensor-proxy service the rotation only works after one suspend/resume cycle. This required a wait in the systemd unit file to avoid race. I found a Yoga 900 where I could reproduce this. The problem scenerio is: - During sensor driver init, enable run

Re: [PATCH 4.9 00/16] 4.9.43-stable review

2017-08-12 Thread Guenter Roeck
On 08/12/2017 09:07 AM, Greg Kroah-Hartman wrote: On Sat, Aug 12, 2017 at 05:36:08AM -0700, Guenter Roeck wrote: On 08/11/2017 03:01 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.43 release. There are 16 patches in this series, all will be posted as a re

[PATCH] ALSA: pcxhr: Delete an error message for a failed memory allocation in pcxhr_create()

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 18:14:54 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/pci/pcxhr/pcxhr.c | 4 +--- 1 file changed, 1 insertion(+), 3 de

[PATCH] platform/x86: intel_pmc_core: Make the driver PCH family agnostic

2017-08-12 Thread Srinivas Pandruvada
Although this driver did pretty good job in abstracting PCH specific interfaces, but still there are some loose ends. For example SLP_S0 counter (for reading SLP_S0 residency), PM config offset (for checking permissions to read XRAM) and PPFEAR offset (for reading IP status) is still hardcoded for

[PATCH] ALSA: mixart: Delete an error message for a failed memory allocation in snd_mixart_create()

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 18:45:42 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/pci/mixart/mixart.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH] ALSA: ca0106: Delete an error message for a failed memory allocation in snd_ca0106_pcm_open_capture_channel()

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 19:09:23 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/pci/ca0106/ca0106_main.c | 6 ++ 1 file changed, 2 insertion

[PATCH] au0828: fix unbalanced lock/unlock in au0828_usb_probe

2017-08-12 Thread Gustavo A. R. Silva
Call mutex_unlock and free dev on failure. Reported-by: Julia Lawall Signed-off-by: Gustavo A. R. Silva --- drivers/media/usb/au0828/au0828-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/au0828/au0828-core.c b/drivers/media/usb/au0828/au0828-core.c index 739df61

[PATCH 2/5] trace-cmd: Fix NULL pointer being passed to memcpy

2017-08-12 Thread Michael Sartain
Signed-off-by: Michael Sartain --- trace-output.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/trace-output.c b/trace-output.c index bfe6331..84b21b0 100644 --- a/trace-output.c +++ b/trace-output.c @@ -929,7 +929,11 @@ tracecmd_add_option(struct tracecmd_output *handl

[PATCH 0/5] trace-cmd: Fixes for four small bugs plus minor cleanup

2017-08-12 Thread Michael Sartain
Thanks much. -Mike --- Michael Sartain (5): trace-cmd: Fix incorrect malloc size arg: *item instead of item trace-cmd: Fix NULL pointer being passed to memcpy trace-cmd: Add ULL suffix to MISSING_EVENTS since ints shouldn't be left shifted by 31 trace-cmd: Use unsigned values in Hsie

[PATCH 5/5] trace-cmd: Remove unused view_width variable

2017-08-12 Thread Michael Sartain
Signed-off-by: Michael Sartain --- trace-graph.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/trace-graph.c b/trace-graph.c index 1db342f..2c49549 100644 --- a/trace-graph.c +++ b/trace-graph.c @@ -1263,7 +1263,6 @@ static void draw_info_box(struct graph_info *ginfo, const gchar *buffer,

[PATCH 3/5] trace-cmd: Add ULL suffix to MISSING_EVENTS since ints shouldn't be left shifted by 31

2017-08-12 Thread Michael Sartain
Signed-off-by: Michael Sartain --- kbuffer-parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kbuffer-parse.c b/kbuffer-parse.c index 4e6e95e..dde642c 100644 --- a/kbuffer-parse.c +++ b/kbuffer-parse.c @@ -24,8 +24,8 @@ #include "kbuffer.h" -#define MISSING_EVENT

[PATCH 1/5] trace-cmd: Fix incorrect malloc size arg: *item instead of item

2017-08-12 Thread Michael Sartain
Signed-off-by: Michael Sartain --- trace-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trace-dialog.c b/trace-dialog.c index b5776cc..87e597a 100644 --- a/trace-dialog.c +++ b/trace-dialog.c @@ -97,7 +97,7 @@ static void push_cursor(GdkCursor *cursor) { str

[PATCH 4/5] trace-cmd: Use unsigned values in Hsieh's trace_hash fast hash function

2017-08-12 Thread Michael Sartain
Signed int values were being used where the original code used uint32_t types: http://www.azillionmonkeys.com/qed/hash.html Right shifting negative int values has implementation-defined and left shifting has undefined behavior. On my platform (x86_64) right shifting was doing sign extension an

[PATCH] lib/raid6: align AVX512 constants to 512 bits, not bytes

2017-08-12 Thread Denys Vlasenko
Signed-off-by: Denys Vlasenko Cc: H. Peter Anvin Cc: mi...@redhat.com Cc: Jim Kukunas Cc: Fenghua Yu Cc: Megha Dey Cc: Gayatri Kammela Cc: Shaohua Li Cc: x...@kernel.org Cc: linux-kernel@vger.kernel.org --- avx512.o before: Sections: Idx Name Size VMA

[PATCH v2] arm64: allwinner: a64: Add A64-OLinuXino initial support

2017-08-12 Thread Jagan Teki
From: Jagan Teki OLimex A64-OLinuXino is an open-source hardware board using the Allwinner A64 SOC. OLimex A64-OLinuXino has - A64 Quad-core Cortex-A53 64bit - 1GB or 2GB RAM DDR3L @ 672Mhz - microSD slot and 4/8/16GB eMMC - Debug TTL UART - HDMI - LCD - IR receiver - 5V DC power supply Signed-

Re: [PATCH 0/3] Add DSP DT nodes on Keystone 66AK2G platforms

2017-08-12 Thread santosh.shilim...@oracle.com
On 8/10/17 4:52 PM, Suman Anna wrote: Hi Santosh, The following series adds the DT nodes for the DSP device present on the Keystone2 66AK2G SoC and enables them on the currently supported platforms. The DTS nodes for the other Keystone2 family of SoCs were posted previously [1] and already in

Re: [PATCH 0/3] power: supply: charger-manager: 1 fix and 2 minor clean-ups

2017-08-12 Thread Sebastian Reichel
Hi, On Mon, Aug 07, 2017 at 12:37:54AM +0200, Christophe JAILLET wrote: > This patch series improves 'charger_manager_probe()'. The first patch is > about a missing memory allocation failure test. > The 2 others are just things spotted in this function: >- a comment that is no more up to date

[PATCH] ALSA: opl3: Delete an error message for a failed memory allocation in snd_opl3_new()

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 19:54:20 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/drivers/opl3/opl3_lib.c | 4 +--- 1 file changed, 1 insertion(+)

Re: [PATCH] power: supply: lp8788: Make several arrays static const * const

2017-08-12 Thread Sebastian Reichel
Hi, On Fri, Aug 11, 2017 at 10:52:12PM +0100, Colin King wrote: > From: Colin Ian King > > Don't populate various read only arrays on the stack but make them > static const, making the object code smaller and saves 148 bytes > overall: > > Before: >textdata bss dec hex filen

Re: unregister_netdevice: waiting for eth0 to become free. Usage count = 1

2017-08-12 Thread Ido Schimmel
Hi Wei, On Fri, Aug 11, 2017 at 05:10:02PM -0700, Wei Wang wrote: > I think we have a potential fix for this issue. > Martin and I found that when addrconf_dst_alloc() creates a rt6, it is > possible that rt6->dst.dev points to loopback device while > rt6->rt6i_idev->dev points to a real device. >

[PATCH] slub: fix per memcg cache leak on css offline

2017-08-12 Thread Vladimir Davydov
To avoid a possible deadlock, sysfs_slab_remove() schedules an asynchronous work to delete sysfs entries corresponding to the kmem cache. To ensure the cache isn't freed before the work function is called, it takes a reference to the cache kobject. The reference is supposed to be released by the wo

Re: [[PATCH v1] 02/37] [CIFS] SMBD: Add structure for SMBD transport

2017-08-12 Thread Christoph Hellwig
On Sat, Aug 12, 2017 at 08:32:48AM +, Long Li via samba-technical wrote: > I think it is possible to separate the common code that implements the > SMBDirect transport. There are some challenges to reuse the same code for > both kernel and user spaces. > 1. Kernel mode RDMA verbs are similar

[GIT PULL] target fixes for v4.13-rc5

2017-08-12 Thread Nicholas A. Bellinger
Hi Linus, Here are the target-pending fixes for v4.13-rc5. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git master The highlights include: - Fix iscsi-target payload memory leak during ISCSI_FLAG_TEXT_CONTINUE (Varun Prakash) - Fix tcm_qla

[PATCH 0/3] ALSA: mpu401: Adjustments for three function implementations

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 21:05:21 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in snd_mpu401_uart_new() Use common error handling code in snd_mpu401_uart

[PATCH 1/3] ALSA: mpu401: Delete an error message for a failed memory allocation in snd_mpu401_uart_new()

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 20:20:11 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/drivers/mpu401/mpu401_uart.c | 1 - 1 file changed, 1 deletion(-

[PATCH 2/3] ALSA: mpu401: Use common error handling code in snd_mpu401_uart_new()

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 20:40:17 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- sound/drivers/mpu401/mpu401_uart.c | 15 +-- 1 file changed, 9 insertions(+), 6 delet

[PATCH 3/3] ALSA: mpu401: Adjust four checks for null pointers

2017-08-12 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 12 Aug 2017 20:50:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

Re: [PATCH v2 0/5] fs, xfs: block map immutable files for dax, dma-to-storage, and swap

2017-08-12 Thread Dan Williams
On Sat, Aug 12, 2017 at 12:33 AM, Christoph Hellwig wrote: > On Fri, Aug 11, 2017 at 03:26:05PM -0700, Dan Williams wrote: >> Right, but they let userspace make inferences about the state of >> metadata relative to I/O to a given storage address. In this regard >> S_IOMAP_IMMUTABLE is no different

Re: [PATCH v2 1/3] leds: core: Introduce generic pattern interface

2017-08-12 Thread Pavel Machek
Hi! > > Hmm, they are only [brightness duration] tuples, and no definition of > > R, G and B LED device is covered here, so how it can be useful for RGB > > LEDs? > > > > The typical Qualcomm PMIC sports 4-8 LPG channels. The output of these > channels can be configured to some extent, but in th

Re: unregister_netdevice: waiting for eth0 to become free. Usage count = 1

2017-08-12 Thread Wei Wang
On Fri, Aug 11, 2017 at 8:07 PM, John Stultz wrote: > On Fri, Aug 11, 2017 at 5:31 PM, John Stultz wrote: >> On Fri, Aug 11, 2017 at 5:10 PM, Wei Wang wrote: If after Cong's fix, the issue still happens, could you help try the patch attached and collect all logs when you try the reprod

Re: unregister_netdevice: waiting for eth0 to become free. Usage count = 1

2017-08-12 Thread Wei Wang
> Looks good so far! I've not hit the issue yet. > Great. I will prepare an official patch then. > Thanks so much for sorting out a fix! > > If its useful: > Tested-by: John Stultz Sure will do. Thanks. Wei On Fri, Aug 11, 2017 at 8:07 PM, John Stultz wrote: > On Fri, Aug 11, 2017 at 5:31 PM

Re: unregister_netdevice: waiting for eth0 to become free. Usage count = 1

2017-08-12 Thread Wei Wang
On Fri, Aug 11, 2017 at 8:37 PM, David Ahern wrote: > On 8/11/17 6:25 PM, Wei Wang wrote: >> By "a patch to fix that" do you mean after your patch, for every rt6, >> rt6->rt6i_idev will be the same as rt6->dst.dev? > > FIB entries should have them the same device with my patch. > > The copies done

Re: unregister_netdevice: waiting for eth0 to become free. Usage count = 1

2017-08-12 Thread Wei Wang
Hi Ido, >> - if ((rt->dst.dev == dev || !dev) && >> + if ((rt->dst.dev == dev || !dev || >> + rt->rt6i_idev->dev == dev) && > > Can you please explain why this line is needed? While host routes aren't > removed from the FIB by rt6_ifdown() (when dst.dev goes down), they are > remo

Re: [PATCH] serial: imx: Improve PIO prevention if TX DMA has been started

2017-08-12 Thread Uwe Kleine-König
On Sat, Aug 12, 2017 at 05:12:10PM +0200, Clemens Gruber wrote: > The imx_transmit_buffer function should return if TX DMA has already > been started and not just skip over the buffer PIO write loop. (Which > did fix the initial problem, but could have unintentional side-effects) > > Tested on an

Re: [PATCH v2 2/3] livepatch: send a fake signal to all blocking tasks

2017-08-12 Thread Jiri Kosina
On Fri, 11 Aug 2017, Josh Poimboeuf wrote: > > + read_lock(&tasklist_lock); > > + for_each_process_thread(g, task) { > > + if (!klp_patch_pending(task)) > > + continue; > > + > > + /* > > +* There is a small race here. We could see TIF_PATCH_PE

Re: [PATCH 3/4] platform/x86: peaq-wmi: Evaluate wmi method with instance number 0x0

2017-08-12 Thread Hans de Goede
Hi, On 12-08-17 09:44, Pali Rohár wrote: According to Hans de Goede, WMI interface of thh peaq-wmi module has 10 instances but corresponding ACPI WMBC method does not check Arg0 (instance number) at all. Therefore evaluate WMI method with first instance number (0x0) instead of second (0x1). Sig

[PATCH v3] Fix missing PCI ID; Necessary for Lenovo Yoga 720-15 Touchpad.

2017-08-12 Thread Hoeze
From: Hoeze This patch adds a missing PCI ID to the Intel LPSS driver. It fixes a bug causing the touchpad of the Lenovo Yoga 720-15 not to be recognized. See also bug 1700657 on bugs.launchpad.net. Many thanks to CoolStar, who found this solution! Reported-by: CoolStar Tested-by: Mike Schwar

Re: [PATCH] rtc: rtctest: Improve support detection

2017-08-12 Thread Alexandre Belloni
Hi, On 11/08/2017 at 11:14:55 +0200, Lukáš Doktor wrote: > The rtc-generic and opal-rtc are failing to run this test as they do not > support all the features. Let's treat the error returns and skip to the > following test. > > Theoretically the test_DATE should be also adjusted, but as it's enab

Re: [PATCH v5 10/10] lkdtm: Add test for XPFO

2017-08-12 Thread kbuild test robot
Hi Juerg, [auto build test ERROR on arm64/for-next/core] [also build test ERROR on v4.13-rc4] [cannot apply to next-20170811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Tycho-Andersen/Add-su

Re: [PATCH 5/5] [media] cxusb: add analog mode support for Medion MD95700

2017-08-12 Thread kbuild test robot
Hi Maciej, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.13-rc4 next-20170811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Maciej-S-Szmigiero/Add-analog-mod

Re: [PATCH] i2c: mux: rename files to not have superfluous prefixes

2017-08-12 Thread Peter Rosin
On 2017-08-12 16:26, Wolfram Sang wrote: > Hi peda, > >> In the light of the rant from Linus the other week [1], I thought this >> might be a good idea? > > I am still not decided on this one. I tried to do it with the core files > and didn't find a convincing solution there. Also, the churn is q

Re: [PATCH v5 10/10] lkdtm: Add test for XPFO

2017-08-12 Thread kbuild test robot
Hi Juerg, [auto build test ERROR on arm64/for-next/core] [also build test ERROR on v4.13-rc4] [cannot apply to next-20170811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Tycho-Andersen/Add-su

Re: [PATCH] ALSA: usx2y: Delete an error message for a failed memory allocation in two functions

2017-08-12 Thread Takashi Iwai
On Fri, 11 Aug 2017 18:02:15 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Fri, 11 Aug 2017 17:40:57 +0200 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Link: > http://events.l

Re: [PATCH] ALSA: usb: Delete an error message for a failed memory allocation in two functions

2017-08-12 Thread Takashi Iwai
On Fri, 11 Aug 2017 19:04:41 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Fri, 11 Aug 2017 18:38:25 +0200 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Link: > http://events.l

Re: [PATCH] ALSA: usb: caiaq: audio: Delete two error messages for a failed memory allocation in alloc_urbs()

2017-08-12 Thread Takashi Iwai
On Fri, 11 Aug 2017 20:00:30 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Fri, 11 Aug 2017 19:39:06 +0200 > > Omit extra messages for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfrin

Re: [PATCH] rtc: at91rm9200: fix error return code in at91_rtc_probe()

2017-08-12 Thread Alexandre Belloni
On 09/08/2017 at 10:52:44 -0500, Gustavo A. R. Silva wrote: > platform_get_irq() returns an error code, but the at91rm9200 driver > ignores it and always returns -ENXIO. This is not correct and, > prevents -EPROBE_DEFER from being propagated properly. > > Print and propagate the return value of pl

Re: [PATCH] ALSA: trident: Delete an error message for a failed memory allocation in snd_trident_tlb_alloc()

2017-08-12 Thread Takashi Iwai
On Sat, 12 Aug 2017 13:31:55 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Sat, 12 Aug 2017 13:20:16 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfr

Re: [PATCH 0/3] ALSA: rme96: Adjustments for six function implementations

2017-08-12 Thread Takashi Iwai
On Sat, 12 Aug 2017 15:38:01 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Sat, 12 Aug 2017 15:36:54 +0200 > > A few update suggestions were taken into account > from static source code analysis. > > Markus Elfring (3): > Delete two error messages for a failed memory alloca

Re: [PATCH 0/3] ALSA: rme9652: Adjustments for six function implementations

2017-08-12 Thread Takashi Iwai
On Sat, 12 Aug 2017 17:32:13 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Sat, 12 Aug 2017 17:17:23 +0200 > > A few update suggestions were taken into account > from static source code analysis. > > Markus Elfring (3): > Delete an error message for a failed memory allocati

Re: [PATCH 00/16] ALSA: PCI: constify snd_pcm_hardware const

2017-08-12 Thread Takashi Iwai
On Sat, 12 Aug 2017 17:31:12 +0200, Bhumika Goyal wrote: > > Declare snd_pcm_hardware const. > Done using Coccinelle. > > Bhumika Goyal (16): > ALSA: aw2: make snd_pcm_hardware const > ALSA: ca0106: make snd_pcm_hardware const > ALSA: cs46xx: make snd_pcm_hardware const > ALSA: korg1212:

Re: [PATCH] ALSA: pcxhr: Delete an error message for a failed memory allocation in pcxhr_create()

2017-08-12 Thread Takashi Iwai
On Sat, 12 Aug 2017 18:28:06 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Sat, 12 Aug 2017 18:14:54 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfr

Re: [PATCH] ALSA: mixart: Delete an error message for a failed memory allocation in snd_mixart_create()

2017-08-12 Thread Takashi Iwai
On Sat, 12 Aug 2017 18:51:51 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Sat, 12 Aug 2017 18:45:42 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfr

Re: [PATCH] ALSA: ca0106: Delete an error message for a failed memory allocation in snd_ca0106_pcm_open_capture_channel()

2017-08-12 Thread Takashi Iwai
On Sat, 12 Aug 2017 19:15:58 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Sat, 12 Aug 2017 19:09:23 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfr

[PATCH] w1: ds2438: make several functions static

2017-08-12 Thread Colin King
From: Colin Ian King The functions w1_ds2438_get_page, w1_ds2438_get_temperature, w1_ds2438_change_config_bit and w1_ds2438_get_voltage are local to the source and do not need to be in global scope, so make it static. Cleans up sparse warnings: symbol 'w1_ds2438_get_page' was not declared. Shoul

Re: [PATCH] ALSA: opl3: Delete an error message for a failed memory allocation in snd_opl3_new()

2017-08-12 Thread Takashi Iwai
On Sat, 12 Aug 2017 20:02:14 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Sat, 12 Aug 2017 19:54:20 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfr

<    1   2   3   >