Re: KVM selftests are failing

2018-11-14 Thread Andrew Jones
On Wed, Nov 14, 2018 at 05:30:28PM +0200, Ahmed Soliman wrote: > Hello, > > KVM Self tests located at tools/testing/selftests/kvm seams to be failing. > I have tried: > - dirty_log_test > - x86_64/cr4_cpuid_sync_test > - x86_64/evmcs_test > - x86_64/platform_info_test > - x86_64/set_sregs_tes

Re: [PATCH v2 0/2] Introduce common code for risc-v sparsemem support

2018-11-14 Thread Palmer Dabbelt
On Wed, 07 Nov 2018 12:54:31 PST (-0800), log...@deltatee.com wrote: These are the first two common patches in my series to introduce sparsemem support to RISC-V. The full series was posted last cycle here [1] and the latest version can be found here [2]. As recommended by Palmer, I'd like to ge

Re: [PATCH] soc: qcom: Drop help text for QCOM_QMI_HELPERS

2018-11-14 Thread Andy Gross
On Mon, Oct 01, 2018 at 11:55:54AM +0200, Niklas Cassel wrote: > The help text is visible in menuconfig, however QCOM_QMI_HELPERS is a > hidden kconfig, so it is not selectable in menuconfig. > > Remove the help text so that it is more clear that this is intentionally > a hidden kconfig. > > Sign

[PATCH] HID: uhid: prevent uhid_char_write() under KERNEL_DS

2018-11-14 Thread Eric Biggers
From: Eric Biggers When a UHID_CREATE command is written to the uhid char device, a copy_from_user() is done from a user pointer embedded in the command. When the address limit is KERNEL_DS, e.g. as is the case during sendfile(), this can read from kernel memory. Therefore, UHID_CREATE must not

Re: [PATCH] soc: qcom: Add irq clear handling during SE init

2018-11-14 Thread Andy Gross
On Wed, Oct 03, 2018 at 05:53:50PM +0530, Alok Chauhan wrote: > when the kernel inits a SE, its quite possible we have pending interrupts > from bootloaders which did not handle/clear them. So do this in kernel at > the SE init, to avoid some of it causing bad behavior, while at it also > club all

[PATCH 1/3] serial: imx: fix error handling in console_setup

2018-11-14 Thread Stefan Agner
The ipg clock only needs to be unprepared in case preparing per clock fails. The ipg clock has already disabled at the point. Fixes: 1cf93e0d5488 ("serial: imx: remove the uart_console() check") Signed-off-by: Stefan Agner --- drivers/tty/serial/imx.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 3/3] serial: imx: avoid crash when un/re-binding serial console device

2018-11-14 Thread Stefan Agner
If the device used as a serial console gets un/re-binded, then register_console() will call imx_uart_setup_console() again. Drop __init so that imx_uart_setup_console() can be safely called at runtime. Signed-off-by: Stefan Agner --- This addresses a kernel panic seen when unbinding/rebinding the

[PATCH 2/3] serial: imx: unprepare console clocks on remove

2018-11-14 Thread Stefan Agner
Currently imx_uart_console_setup() prepares clocks which do not get unprepared anywhere. Check whether the console has been used by testing if index is set and unprepare clocks in this case. This makes sure that clocks are properly unprepared after the console device has been unbound. Signed-off-

Re: [PATCH 1/2] Makefile: Fix distcc compilation with x86 macros

2018-11-14 Thread Nadav Amit
From: Logan Gunthorpe Sent: November 14, 2018 at 7:29:38 AM GMT > To: Nadav Amit , Ingo Molnar > Cc: Ingo Molnar , Masahiro Yamada > , Michal Marek , > Thomas Gleixner , Borislav Petkov , H. > Peter Anvin , X86 ML , Linux Kbuild mailing > list , LKML > Subject: Re: [PATCH 1/2] Makefile: Fix d

[PATCH v4 4/4] staging: iio: ad7816: Add device tree table.

2018-11-14 Thread Nishad Kamdar
Add device tree table for matching vendor ID. Signed-off-by: Nishad Kamdar --- drivers/staging/iio/adc/ad7816.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/iio/adc/ad7816.c b/drivers/staging/iio/adc/ad7816.c index a2fead85cd46..925f7086bc07 100644 --- a/drivers/s

[PATCH v4 0/4] staging: iio: ad7816: Switch to the gpio descriptor interface

2018-11-14 Thread Nishad Kamdar
Changes in v4: - Add all parts to the dt bindings as they are functionally different. Changes in v3: - Drop busy pin in case of AD7818. - Set RD/WR pin and CONVST pin as outputs. - Add device tree table. Nishad Kamdar (4): staging: iio: ad7816: Switch to the gpio descriptor interface st

Re: [PATCH] PCI: dwc: Limit config space size for i.MX6

2018-11-14 Thread Stefan Agner
On 14.11.2018 17:20, Lucas Stach wrote: > Am Mittwoch, den 14.11.2018, 16:49 +0100 schrieb Stefan Agner: >> On 19.10.2018 13:13, Stefan Agner wrote: >> > Reading the full 4k config space through sysfs leads to an >> > external abort. Testing on a platform showed that the upper >> > limit is 512. Li

Re: Official Linux system wrapper library?

2018-11-14 Thread Joseph Myers
On Wed, 14 Nov 2018, Andy Lutomirski wrote: > I’m not so sure it’s useless. Historically, POSIX systems have, in > practice and almost by definition, been very C focused, but the world is > changing. A less crufty library could be useful for newer languages: Historically, there was once an atte

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-14 Thread Roman Gushchin
On Wed, Nov 14, 2018 at 06:36:11PM +0100, Oleg Nesterov wrote: > On 11/14, Roman Gushchin wrote: > > > > > No, this is very wrong. Just suppose the caller is killed right before > > > clear_thread_flag(TIF_SIGPENDING). > > > > So, I had TASK_KILLABLE before, but had some issues with ptrace/gdb. > >

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-14 Thread Oleg Nesterov
On 11/14, Roman Gushchin wrote: > > > No, this is very wrong. Just suppose the caller is killed right before > > clear_thread_flag(TIF_SIGPENDING). > > So, I had TASK_KILLABLE before, but had some issues with ptrace/gdb. > I'll revisit this option. Yes, ptrace_signal_wake_up() won't wake a TASK_KI

Re: [PATCH] mm/usercopy: Use memory range to be accessed for wraparound check

2018-11-14 Thread isaacm
On 2018-11-14 03:46, William Kucharski wrote: On Nov 14, 2018, at 4:09 AM, David Laight wrote: From: William Kucharski Sent: 14 November 2018 10:35 On Nov 13, 2018, at 5:51 PM, Isaac J. Manjarres wrote: diff --git a/mm/usercopy.c b/mm/usercopy.c index 852eb4e..0293645 100644 --- a/mm/use

Re: [PATCH 1/2] ASoC: ak4118: Add support for AK4118 S/PDIF transceiver

2018-11-14 Thread Mark Brown
On Wed, Nov 14, 2018 at 11:55:17AM +0100, Clément Péron wrote: > On Tue, 13 Nov 2018 at 23:51, Mark Brown wrote: > > On Thu, Nov 08, 2018 at 01:49:33PM +0100, Clément Péron wrote: > > > +// SPDX-License-Identifier: GPL-2.0 > > > +/* > > > + * ak4118.c -- Asahi Kasei ALSA Soc Audio driver > > >

[PATCH] spi: pxa2xx: Fix '"CONFIG_OF" is not defined' warning

2018-11-14 Thread Lubomir Rintel
A careless oversight. Sorry. Fixes: 0a897143b7c9 ("spi: pxa2xx: Add slave mode support") Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 29e6025f104c..7194070e

Re: omap5 fixing palmas IRQ_TYPE_NONE warning leads to gpadc timeouts

2018-11-14 Thread Tony Lindgren
Hi, * Tony Lindgren [181114 17:04]: > * Tony Lindgren [181113 18:07]: > > Hi > > > > * Belisko Marek [180703 18:34]: > > > Hi Tony, > > > > > > On Tue, Jul 3, 2018 at 10:45 AM Tony Lindgren wrote: > > > > > > > > * Belisko Marek [180620 09:40]: > > > > > Hello, > > > > > > > > > > I'm tryin

[PATCH v2] rtc: max8997: Fix the returned value in case of error in 'max8997_rtc_read_alarm()'

2018-11-14 Thread Christophe JAILLET
In case of error, we return 0. This is spurious and not consistent with the other functions of the driver. Propagate the error code instead. Signed-off-by: Christophe JAILLET --- v2: re-word changelog and remove Fixes tag. (not sure if any should be provided, and which one would be the best) -

Re: [PATCH 14/15] power: supply: olpc_battery: Avoid using platform_info

2018-11-14 Thread Lubomir Rintel
On Fri, 2018-10-19 at 16:50 +0300, Andy Shevchenko wrote: > On Wed, Oct 10, 2018 at 8:24 PM Lubomir Rintel > wrote: > > This wouldn't work on the DT-based ARM platform. Let's read the EC > > version > > directly from the EC driver instead. > > > > This makes the driver no longer x86 specific. > >

Re: Official Linux system wrapper library?

2018-11-14 Thread Arnd Bergmann
On Wed, Nov 14, 2018 at 6:58 AM Carlos O'Donell wrote: > On 11/14/18 6:58 AM, Szabolcs Nagy wrote: > > an actual proposal in the thread that i think is > > worth considering is to make the linux syscall > > design process involve libc devs so the c api is > > designed together with the syscall abi

Re: BUG: GPF in non-whitelisted uaccess (non-canonical address?)

2018-11-14 Thread Eric Biggers
On Wed, Nov 14, 2018 at 08:52:46AM -0800, 'Dmitry Vyukov' via syzkaller-bugs wrote: > On Wed, Nov 14, 2018 at 4:20 AM, David Herrmann wrote: > > Hey > > > > On Wed, Nov 14, 2018 at 1:25 AM syzbot > > wrote: > >> syzbot has found a reproducer for the following crash on: > >> > >> HEAD commit:

Re: [PATCH] nvme: utilize two queue maps, one for reads and one for writes

2018-11-14 Thread Jens Axboe
On 11/13/18 9:52 PM, Guenter Roeck wrote: > On Tue, Nov 13, 2018 at 05:51:08PM -0700, Jens Axboe wrote: >> On 11/13/18 5:41 PM, Guenter Roeck wrote: >>> Hi, >>> >>> On Wed, Oct 31, 2018 at 08:36:31AM -0600, Jens Axboe wrote: NVMe does round-robin between queues by default, which means that >>>

Re: [PATCH 13/15] power: supply: olpc_battery: Move priv data to a struct

2018-11-14 Thread Lubomir Rintel
On Sun, 2018-11-04 at 15:37 +0100, Pavel Machek wrote: > Hi! > > > The global variables for private data are not too nice. I'd like some > > more, and that would clutter the global name space even further. > > > > Signed-off-by: Lubomir Rintel > > Reviewed-by: Andy Shevchenko > > Ok... > > >

Re: [PATCH v3 1/4] staging: iio: ad7816: Switch to the gpio descriptor interface

2018-11-14 Thread Nishad Kamdar
On Sun, Nov 11, 2018 at 12:31:54PM +, Jonathan Cameron wrote: > On Sun, 11 Nov 2018 12:24:05 + > Jonathan Cameron wrote: > > > On Fri, 9 Nov 2018 13:05:17 +0530 > > Nishad Kamdar wrote: > > > > > Use the gpiod interface for rdwr_pin, convert_pin and busy_pin > > > instead of the depreca

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-14 Thread Roman Gushchin
On Wed, Nov 14, 2018 at 05:56:32PM +0100, Oleg Nesterov wrote: > Hi Roman, > > On 11/13, Roman Gushchin wrote: > > > > > > +#define TASK_FROZEN0x1000 > > > > +#define TASK_STATE_MAX 0x2000 > > > > > > Just noticed the new task state... Why? Can't we avoid it? >

Re: omap5 fixing palmas IRQ_TYPE_NONE warning leads to gpadc timeouts

2018-11-14 Thread Tony Lindgren
* Tony Lindgren [181113 18:07]: > Hi > > * Belisko Marek [180703 18:34]: > > Hi Tony, > > > > On Tue, Jul 3, 2018 at 10:45 AM Tony Lindgren wrote: > > > > > > * Belisko Marek [180620 09:40]: > > > > Hello, > > > > > > > > I'm trying to fix warning (for omap5 board) produced by recent change >

Re: [PATCH] rtc: max8997: Fix the returned value in case of error in 'max8997_rtc_read_alarm()'

2018-11-14 Thread Alexandre Belloni
On 14/11/2018 17:50:25+0100, Christophe JAILLET wrote: > In case of error, we return 0. > This is spurious and not consistent with the other functions of the driver. > Commit 22652ba72453 has modified more than what is said in the commit > message and error should be propagated. > > Fixes: 22652ba

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-14 Thread Oleg Nesterov
Hi Roman, On 11/13, Roman Gushchin wrote: > > > > +#define TASK_FROZEN 0x1000 > > > +#define TASK_STATE_MAX 0x2000 > > > > Just noticed the new task state... Why? Can't we avoid it? > > We can, but it's nice to show to userspace that tasks are frozen, > rathe

Re: [PATCH v3 4/4] staging: iio: ad7816: Add device tree table.

2018-11-14 Thread Nishad Kamdar
On Sun, Nov 11, 2018 at 12:38:02PM +, Jonathan Cameron wrote: > On Fri, 9 Nov 2018 08:11:57 + > "Ardelean, Alexandru" wrote: > > > On Fri, 2018-11-09 at 13:08 +0530, Nishad Kamdar wrote: > > > Add device tree table for matching vendor ID. > > > > One comment inline for this. > > > > T

Re: BUG: GPF in non-whitelisted uaccess (non-canonical address?)

2018-11-14 Thread Dmitry Vyukov
On Wed, Nov 14, 2018 at 4:20 AM, David Herrmann wrote: > Hey > > On Wed, Nov 14, 2018 at 1:25 AM syzbot > wrote: >> syzbot has found a reproducer for the following crash on: >> >> HEAD commit:ccda4af0f4b9 Linux 4.20-rc2 >> git tree: upstream >> console output: https://syzkaller.appspot.

Re: [PATCH 11/15] x86, olpc: Use a correct version when making up a battery node

2018-11-14 Thread Lubomir Rintel
Hello, On Fri, 2018-10-19 at 16:43 +0300, Andy Shevchenko wrote: > On Wed, Oct 10, 2018 at 8:23 PM Lubomir Rintel > wrote: > > The XO-1 and XO-1.5 batteries apparently differ in an ability to > > report > > ambient temperature. Add a different compatible string to the 1.5 > > battery. > > +int ol

[PATCH] rtc: max8997: Fix the returned value in case of error in 'max8997_rtc_read_alarm()'

2018-11-14 Thread Christophe JAILLET
In case of error, we return 0. This is spurious and not consistent with the other functions of the driver. Commit 22652ba72453 has modified more than what is said in the commit message and error should be propagated. Fixes: 22652ba72453 ("rtc: stop validating rtc_time in .read_time") Signed-off-by

[PATCH v10] i2c: Add drivers for the AMD PCIe MP2 I2C controller

2018-11-14 Thread Elie Morisse
I2C communication takes place through iomapped registers, or through DMA for more than 32 bytes transfers. MP2 controllers have two separate buses, so may accommodate up to two I2C adapters. Those adapters are listed in the ACPI namespace with the "AMDI0011" HID, and probed by a platform driver.

Re: [PATCH v3 4/4] staging: iio: ad7816: Add device tree table.

2018-11-14 Thread Nishad Kamdar
On Fri, Nov 09, 2018 at 08:11:57AM +, Ardelean, Alexandru wrote: > On Fri, 2018-11-09 at 13:08 +0530, Nishad Kamdar wrote: > > Add device tree table for matching vendor ID. > > One comment inline for this. > > Thanks > Alex > > > > > Signed-off-by: Nishad Kamdar > > --- > > drivers/stagin

Re: [PATCH 08/15] Platform: OLPC: Move EC-specific functionality out from x86

2018-11-14 Thread Lubomir Rintel
Hello, On Fri, 2018-10-19 at 16:36 +0300, Andy Shevchenko wrote: > On Wed, Oct 10, 2018 at 8:24 PM Lubomir Rintel > wrote: > > It is actually plaform independent. Move it to the olpc-ec driver > > from > > the X86 OLPC platform, so that it could be used by the ARM based > > laptops > > too. > >

Re: [PATCH] PCI: dwc: Limit config space size for i.MX6

2018-11-14 Thread Lucas Stach
Am Mittwoch, den 14.11.2018, 16:49 +0100 schrieb Stefan Agner: > On 19.10.2018 13:13, Stefan Agner wrote: > > Reading the full 4k config space through sysfs leads to an > > external abort. Testing on a platform showed that the upper > > limit is 512. Limit config space to 512. > > Any comment on t

Re: [PATCH v2] ARM: module: Fix function kallsyms on Thumb-2

2018-11-14 Thread Jessica Yu
+++ Vincent Whitchurch [09/11/18 14:53 +0100]: On Fri, Nov 02, 2018 at 02:53:22PM +0100, Jessica Yu wrote: +++ Vincent Whitchurch [01/11/18 16:29 +0100]: > On Wed, Oct 31, 2018 at 04:53:41PM +0100, Jessica Yu wrote: > > Could this be done in modpost? I'm guessing the answer is no as some > > rel

Re: [PATCH v2] fork: Fix some -Wmissing-prototypes warnings

2018-11-14 Thread Mike Rapoport
On Wed, Nov 14, 2018 at 12:34:47PM +0800, Yi Wang wrote: > We get a warning when building kernel with W=1: > kernel/fork.c:167:13: warning: no previous prototype for > ‘arch_release_thread_stack’ [-Wmissing-prototypes] > kernel/fork.c:779:13: warning: no previous prototype for ‘fork_init’ > [-Wmi

Re: [PATCH RFC] selftests/x86: Add a selftest for SGX

2018-11-14 Thread Sean Christopherson
On Tue, Nov 13, 2018 at 11:40:09PM +0200, Jarkko Sakkinen wrote: > Add a selftest for SGX. It is a trivial test where a simple enclave > copies one 64-bit word of memory between two memory locations given to > the enclave as arguments. > > Signed-off-by: Jarkko Sakkinen > --- > +SUBDIRS_64 := sgx

Re: [PATCH] Uprobes: Fix kernel oops with delayed_uprobe_remove()

2018-11-14 Thread Oleg Nesterov
On 11/14, Ravi Bangoria wrote: > > syzbot reported a kernel crash with delayed_uprobe_remove(): > https://lkml.org/lkml/2018/11/1/1244 > > Backtrace mentioned in the link points to a race between process > exit and uprobe_unregister(). Fix it by locking delayed_uprobe_lock > before calling delaye

Re: KMSAN: uninit-value in rcu_accelerate_cbs / KMSAN: uninit-value in rcu_process_callbacks

2018-11-14 Thread Paul E. McKenney
On Wed, Nov 14, 2018 at 04:31:11PM +0100, Alexander Potapenko wrote: > On Wed, Nov 14, 2018 at 4:09 PM Paul E. McKenney > wrote: > > > > On Wed, Nov 14, 2018 at 04:03:33AM -0500, Kyungtae Kim wrote: > > > We report two crashes in v4.19-rc8 (4.20-rc1 as well, I guess): > > > (Unfortunately, there

Re: [PATCH] ideapad-laptop: Add Lenovo Yoga 2 13 to the no_hw_rfkill DMI list

2018-11-14 Thread Andy Shevchenko
On Wed, Nov 14, 2018 at 5:13 PM Loic WEI YU NENG wrote: > > Some Lenovo ideapad models lack a physical rfkill switch. > On Lenovo models Yoga 2 13, ideapad-laptop would wrongly report all > radios as blocked by hardware which caused wireless network connections > to fail. > Add these models withou

Re: [PATCH 2/2] exec: increase BINPRM_BUF_SIZE to 256

2018-11-14 Thread Michal Hocko
On Wed 14-11-18 16:54:14, Oleg Nesterov wrote: > On 11/13, Andrew Morton wrote: > > > > On Tue, 13 Nov 2018 17:55:58 +0100 Oleg Nesterov wrote: > > > > > > However it would be basically cost-free to increase > > > > BINPRM_BUF_SIZE up to the point where sizeof(struct linux_binprm) == > > > > PAGE_

Re: [PATCH v6 0/3] Huawei laptops

2018-11-14 Thread Andy Shevchenko
On Wed, Nov 14, 2018 at 5:26 PM Ayman Bagabas wrote: > Pushed to my review and testing queue, thanks! > Changes from v5: > * Review tags > > Changes from v4: > * Consistency in file names > * How module would be enabled (Kconfig) > * Match license in SPDX and MODULE_LICENSE > > Changes from v3:

Re: [PATCH 2/2] exec: increase BINPRM_BUF_SIZE to 256

2018-11-14 Thread Oleg Nesterov
On 11/13, Andrew Morton wrote: > > On Tue, 13 Nov 2018 17:55:58 +0100 Oleg Nesterov wrote: > > > > However it would be basically cost-free to increase > > > BINPRM_BUF_SIZE up to the point where sizeof(struct linux_binprm) == > > > PAGE_SIZE? > > > > I don't think we should take sizeof(struct linu

Re: [RFC/RFT 2/2] RISC-V: kprobes/kretprobe support

2018-11-14 Thread Masami Hiramatsu
On Wed, 14 Nov 2018 00:37:30 -0800 Masami Hiramatsu wrote: > > + > > +static int __kprobes patch_text(kprobe_opcode_t *addr, u32 opcode) > > +{ > > + if (is_compressed_insn(opcode)) > > + *(u16 *)addr = cpu_to_le16(opcode); > > + else > > + *addr = cpu_to_le32(opcode); > >

Re: [PATCH] PCI: dwc: Limit config space size for i.MX6

2018-11-14 Thread Stefan Agner
On 19.10.2018 13:13, Stefan Agner wrote: > Reading the full 4k config space through sysfs leads to an > external abort. Testing on a platform showed that the upper > limit is 512. Limit config space to 512. Any comment on this patch? Since other devices use similar quirks, I guess the fix can't b

Re: [PATCH] greybus: gpio: switch GPIO portions to use GPIOLIB_IRQCHIP

2018-11-14 Thread Johan Hovold
On Tue, Nov 13, 2018 at 11:48:09PM +0530, Nishad Kamdar wrote: > On Mon, Nov 12, 2018 at 04:15:09PM +0100, Johan Hovold wrote: > > On Fri, Nov 09, 2018 at 01:17:41PM +0530, Nishad Kamdar wrote: > > > @@ -40,8 +38,6 @@ struct gb_gpio_controller { > > > struct gpio_chipchip; > > > struct

Re: Official Linux system wrapper library?

2018-11-14 Thread Daniel Colascione
On Wed, Nov 14, 2018 at 3:58 AM, Szabolcs Nagy wrote: > On 13/11/18 19:39, Dave Martin wrote: >> On Mon, Nov 12, 2018 at 05:19:14AM -0800, Daniel Colascione wrote: >>> We should adopt a similar approach. Shipping a lower-level >>> "liblinux.so" tightly bound to the kernel would not only let the >>

Re: [PATCH] Revert "HID: uhid: use strlcpy() instead of strncpy()"

2018-11-14 Thread Laura Abbott
On 11/14/18 5:16 AM, David Herrmann wrote: This reverts commit 336fd4f5f25157e9e8bd50e898a1bbcd99eaea46. Please note that `strlcpy()` does *NOT* do what you think it does. strlcpy() *ALWAYS* reads the full input string, regardless of the 'length' parameter. That is, if the input is not zero-term

Re: [PATCH v3 3/3] MIPS: SiByte: Enable swiotlb for SWARM, LittleSur and BigSur

2018-11-14 Thread Christoph Hellwig
On Tue, Nov 13, 2018 at 10:42:44PM +, Maciej W. Rozycki wrote: > The Broadcom SiByte BCM1250, BCM1125, and BCM1125H SOCs have an onchip > DRAM controller that supports memory amounts of up to 16GiB, and due to > how the address decoder has been wired in the SOC any memory beyond 1GiB > is ac

Re: [PATCH v3 2/3] MIPS: SiByte: Enable ZONE_DMA32 for LittleSur

2018-11-14 Thread Christoph Hellwig
On Tue, Nov 13, 2018 at 10:42:37PM +, Maciej W. Rozycki wrote: > The LittleSur board is marked for high memory support and therefore > clearly must provide a way to have enough memory installed for some to > be present outside the low 4GiB physical address range. With the memory > map of th

[PATCH v5 7/7] tpm: pass an array of tpm_bank_list structures to tpm_pcr_extend()

2018-11-14 Thread Roberto Sassu
Currently, tpm_pcr_extend() accepts as an input only a SHA1 digest. This patch modifies the definition of tpm_pcr_extend() to allow other kernel subsystems to pass a digest for each algorithm supported by the TPM. All digests are processed by the TPM in one operation. If a tpm_pcr_extend() caller

Re: [PATCH v3 1/3] MIPS: SiByte: Set 32-bit bus mask for BCM1250 PCI

2018-11-14 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

[PATCH v5 6/7] tpm: ensure that the output of PCR read contains the correct digest size

2018-11-14 Thread Roberto Sassu
This patch protects against data corruption that could happen in the bus, by checking that that the digest size returned by the TPM during a PCR read matches the size of the algorithm passed to tpm2_pcr_read(). This check is performed after information about the PCR banks has been retrieved. Sign

[PATCH v5 5/7] tpm: retrieve digest size of unknown algorithms with PCR read

2018-11-14 Thread Roberto Sassu
Currently, the TPM driver retrieves the digest size from a table mapping TPM algorithms identifiers to identifiers defined by the crypto subsystem. If the algorithm is not defined by the latter, the digest size can be retrieved from the output of the PCR read command. The patch retrieves at TPM st

[PATCH v5 4/7] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm

2018-11-14 Thread Roberto Sassu
Currently the TPM driver allows other kernel subsystems to read only the SHA1 PCR bank. This patch modifies the parameters of tpm_pcr_read() and tpm2_pcr_read() to pass a tpm_digest structure, which contains the desired hash algorithm. Also, since commit 125a22105410 ("tpm: React correctly to RC_TE

Re: [PATCH 01/11] ASoC: AMD: add ACP 3.x IP register header

2018-11-14 Thread Mukunda, Vijendar
On 14/11/18 1:06 AM, Mark Brown wrote: > On Mon, Nov 12, 2018 at 11:04:52AM +0530, Vijendar Mukunda wrote: > >> @@ -0,0 +1,655 @@ >> +/* >> + * ACP 3.0 Register documentation >> + * >> + * Copyright (C) 2016 Advanced Micro Devices, Inc. > > Please use SPDX headers on new files. > Will add SP

[PATCH v5 3/7] tpm: rename and export tpm2_digest and tpm2_algorithms

2018-11-14 Thread Roberto Sassu
Rename tpm2_* to tpm_* and move the definitions to include/linux/tpm.h so that these can be used by other kernel subsystems (e.g. IMA). Signed-off-by: Roberto Sassu Reviewed-by: Jarkko Sakkinen Acked-by: Mimi Zohar --- drivers/char/tpm/tpm-interface.c | 2 +- drivers/char/tpm/tpm.h

[PATCH v5 2/7] tpm: remove definition of TPM2_ACTIVE_PCR_BANKS

2018-11-14 Thread Roberto Sassu
tcg_efi_specid_event and tcg_pcr_event2 declaration contains static arrays for a list of hash algorithms used for event logs and event log digests. However, according to TCG EFI Protocol Specification, these arrays have variable sizes. Setting the array size to zero or 3 does not make any differen

[PATCH v5 1/7] tpm: dynamically allocate the allocated_banks array

2018-11-14 Thread Roberto Sassu
This patch renames active_banks (member of tpm_chip) to allocated_banks, stores the number of allocated PCR banks in nr_allocated_banks (new member of tpm_chip), and replaces the static array with a pointer to a dynamically allocated array. tpm2_get_pcr_allocation() determines if a PCR bank is all

[PATCH v5 0/7] tpm: retrieve digest size of unknown algorithms from TPM

2018-11-14 Thread Roberto Sassu
Update This version of the patch set includes an additional patch (7/7) which modifies the definition of tpm_pcr_extend() and tpm2_pcr_extend(). The new patch has been included to facilitate the review of the changes to support TPM 2.0 crypto agility for reading/extending PCRs. Original patch se

Re: KMSAN: uninit-value in rcu_accelerate_cbs / KMSAN: uninit-value in rcu_process_callbacks

2018-11-14 Thread Alexander Potapenko
On Wed, Nov 14, 2018 at 4:09 PM Paul E. McKenney wrote: > > On Wed, Nov 14, 2018 at 04:03:33AM -0500, Kyungtae Kim wrote: > > We report two crashes in v4.19-rc8 (4.20-rc1 as well, I guess): > > (Unfortunately, there is no repro for those.) > > > > The two crashes seem to share the same issue. > >

[PATCH v4] ARM: SAMSUNG: limit SAMSUNG_PM_DEBUG config option to non-Exynos platforms

2018-11-14 Thread Bartlomiej Zolnierkiewicz
dencies to SAMSUNG_PM_DEBUG config option to hide it on Exynos platforms. Then convert Exynos code to not require header (use pr_debug() directly instead of S3C_PMDBG() macro and remove redundant s3c_pm_*() calls). Signed-off-by: Bartlomiej Zolnierkiewicz --- v4: - rebased on top of next-20181114 v3: - don

KVM selftests are failing

2018-11-14 Thread Ahmed Soliman
Hello, KVM Self tests located at tools/testing/selftests/kvm seams to be failing. I have tried: - dirty_log_test - x86_64/cr4_cpuid_sync_test - x86_64/evmcs_test - x86_64/platform_info_test - x86_64/set_sregs_test - x86_64/state_test - x86_64/sync_regs_test - x86_64/vmx_tsc_adjust_test Al

Re: [PATCH v1 1/4] Bluetooth: hci_qca: use wait_until_sent() for power pulses

2018-11-14 Thread Johan Hovold
On Tue, Nov 06, 2018 at 05:35:25PM +0530, Balakrishna Godavarthi wrote: > wcn3990 requires a power pulse to turn ON/OFF along with > regulators. Sometimes we are observing the power pulses are sent > out with some time delay, due to queuing these commands. This is > causing synchronization issues w

[PATCH v6 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-11-14 Thread Ayman Bagabas
Some of Huawei laptops come with a LED in the micmute key. This patch enables the use of micmute LED for these devices: 1. Matebook X (19e5:3200), (19e5:3201) 2. Matebook X Pro (19e5:3204) Signed-off-by: Ayman Bagabas Reviewed-by: Takashi Iwai --- sound/pci/hda/huawei_wmi_helper.c | 47

[PATCH v6 2/3] ALSA: hda: fix front speakers on Huawei MBXP.

2018-11-14 Thread Ayman Bagabas
This patch solves bug 200501 'Only 2 of 4 speakers playing sound.' https://bugzilla.kernel.org/show_bug.cgi?id=200501 It enables the front speakers on Huawei Matebook X Pro laptops. These laptops come with Dolby Atmos sound system and these pins configuration enables the front speakers. Signed-off

[PATCH v6 0/3] Huawei laptops

2018-11-14 Thread Ayman Bagabas
Changes from v5: * Review tags Changes from v4: * Consistency in file names * How module would be enabled (Kconfig) * Match license in SPDX and MODULE_LICENSE Changes from v3: * Code formatting Changes from v2: * Support for Huawei MBX * Style and formatting issues [PATCH 1/3] The first patch

[PATCH v6 1/3] x86: add support for Huawei WMI hotkeys.

2018-11-14 Thread Ayman Bagabas
This driver adds support for missing hotkeys on some Huawei laptops. Currently, only Huawei Matebook X and Matebook X Pro is supported. Signed-off-by: Ayman Bagabas --- drivers/platform/x86/Kconfig | 10 + drivers/platform/x86/Makefile| 1 + drivers/platform/x8

[PATCH 2/2] clk: Add Fixed MMIO clock driver

2018-11-14 Thread Janek Kotas
This patch adds a driver for Fixed MMIO clock. The driver reads a clock frequency value from a single 32-bit memory mapped register and registers it as a fixed rate clock. It can be enabled with COMMON_CLK_FIXED_MMIO Kconfig option. Signed-off-by: Jan Kotas --- drivers/clk/Kconfig | 6

Re: [alsa-devel] [PATCH v2 1/2] ASoC: ak4118: Add support for AK4118 S/PDIF transceiver

2018-11-14 Thread Clément Péron
Hi Ricard, On Wed, 14 Nov 2018 at 16:07, Ricard Wanderlof wrote: > > > On Wed, 14 Nov 2018, Clément Péron wrote: > > > From: Adrien Charruel > > > > The AK4118A is a digital audio transceiver supporting 8 input channels > > at 192kHz and with 24bits resolution. > > It converts the S/PDIF signal

[PATCH 0/2] clk: Add driver and bindings for Fixed MMIO clock

2018-11-14 Thread Janek Kotas
This patchset adds a driver support for Fixed Memory Mapped IO clock. The driver reads a clock frequency value from a single 32-bit memory mapped register and registers it as a fixed rate clock. It can be useful for prototyping Linux on various hardware platforms. Jan Kotas (2): dt-bindings: c

[PATCH 1/2] dt-bindings: clk: Add bindings for Fixed MMIO clock

2018-11-14 Thread Janek Kotas
This patch adds a DT binding documentation for Fixed Memory Mapped IO clocks. Signed-off-by: Jan Kotas --- .../devicetree/bindings/clock/fixed-mmio-clock.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/fixed-mmio-clock

Re: [PATCH] mtd: spi-nor: Fix Cadence QSPI page fault kernel panic

2018-11-14 Thread Thor Thayer
Hi Vignesh, On 11/14/18 6:00 AM, Vignesh R wrote: Hi, On 13/11/18 11:02 PM, thor.tha...@linux.intel.com wrote: From: Thor Thayer The current Cadence QSPI driver caused a kernel panic sporadically when writing to QSPI. The problem was caused by writing more bytes than needed because the QSPI

Re: [RFC PATCH 1/1] vmalloc: add test driver to analyse vmalloc allocator

2018-11-14 Thread Michal Hocko
On Tue 13-11-18 14:10:46, Andrew Morton wrote: [...] > > +static int vmalloc_test_init(void) > > +{ > > + __my_vmalloc_node_range = > > + (void *) kallsyms_lookup_name("__vmalloc_node_range"); > > + > > + if (__my_vmalloc_node_range) > > + do_concurrent_test(); > > + > > +

Re: [PATCH] ideapad-laptop: Add Lenovo Yoga 2 13 to the no_hw_rfkill DMI list

2018-11-14 Thread Loic Wei-Yu-Neng
Sounds good, I can me my patch here now: https://patchwork.kernel.org/patch/10682745/ Loic On Wed, Nov 14, 2018 at 2:52 AM Andy Shevchenko wrote: > > On Wed, Nov 14, 2018 at 9:48 AM Loic Wei-Yu-Neng wrote: > > > > Hello Darren, > > Yes, the current driver fails to match match my laptop. I need t

Re: [PATCH v3] ARM: module: Fix function kallsyms on Thumb-2

2018-11-14 Thread Jessica Yu
+++ Dave Martin [13/11/18 13:57 +]: On Tue, Nov 13, 2018 at 12:27:45PM +0100, Vincent Whitchurch wrote: Thumb-2 functions have the lowest bit set in the symbol value in the symtab. When kallsyms are generated for the vmlinux, the kallsyms are generated from the output of nm, and nm clears t

[PATCH] ideapad-laptop: Add Lenovo Yoga 2 13 to the no_hw_rfkill DMI list

2018-11-14 Thread Loic WEI YU NENG
Some Lenovo ideapad models lack a physical rfkill switch. On Lenovo models Yoga 2 13, ideapad-laptop would wrongly report all radios as blocked by hardware which caused wireless network connections to fail. Add these models without an rfkill switch to the no_hw_rfkill list. Signed-off-by: Loic WEI

Re: [tip:master 22/22] arch/x86//kernel/cpu/mcheck/therm_throt.c:394:39: error: conflicting types for 'smp_thermal_interrupt'

2018-11-14 Thread Borislav Petkov
On Wed, Nov 14, 2018 at 11:00:52PM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master > head: 449637df6faa8cd9a7f9cdf25589445f0dab2371 > commit: 449637df6faa8cd9a7f9cdf25589445f0dab2371 [22/22] Merge branch > 'x86/cleanups' > config: x86_

[PATCH 4/4] serdev: document the write functions using kernel-doc

2018-11-14 Thread Johan Hovold
Document the asynchronous serdev_device_write_buf() and synchronous serdev_device_write() functions using kernel-doc. Specifically, mention that writing data only means that data has been buffered by the controller, and that the synchronous helper depends on serdev_device_write_wakeup() being call

[PATCH 1/4] serdev: use zero to indicate infinite write timeout

2018-11-14 Thread Johan Hovold
Use zero to indicate infinite timeout for the synchronous serdev_device_write() helper. This allows drivers to specify an infinite timeout without knowing about serdev implementation details, while also allowing the same timeout argument to be used for both serdev_device_write() and serdev_device_

[PATCH 3/4] serdev: make synchronous write helper interruptible

2018-11-14 Thread Johan Hovold
Allow the synchronous serdev_device_write() helper to be interrupted. This is useful for cases where I/O is performed on behalf of user space and we don't want to block indefinitely when using flow control. Signed-off-by: Johan Hovold --- drivers/tty/serdev/core.c | 20 ++-- inc

[PATCH 0/4] serdev: make serdev_device_write() more usable

2018-11-14 Thread Johan Hovold
This series make the synchronous serdev_device_write() helper more usable by 1) allowing drivers to pass a zero timeout to indicate that they want to wait forever; 2) returning the number of bytes actually written (buffered) if the helper is interrupted;

[PATCH 2/4] serdev: make synchronous write return bytes written

2018-11-14 Thread Johan Hovold
Make the synchronous serdev_device_write() helper behave analogous to the asynchronous serdev_device_write_buf() by returning the number of bytes written (or rather buffered) also on timeout. This will allow drivers to distinguish the case where data was partially written from the case where no da

Re: KMSAN: uninit-value in rcu_accelerate_cbs / KMSAN: uninit-value in rcu_process_callbacks

2018-11-14 Thread Paul E. McKenney
On Wed, Nov 14, 2018 at 04:03:33AM -0500, Kyungtae Kim wrote: > We report two crashes in v4.19-rc8 (4.20-rc1 as well, I guess): > (Unfortunately, there is no repro for those.) > > The two crashes seem to share the same issue. > In both cases, (uninitialized) memory access violation occurs > when "

Re: [alsa-devel] [PATCH v2 1/2] ASoC: ak4118: Add support for AK4118 S/PDIF transceiver

2018-11-14 Thread Ricard Wanderlof
On Wed, 14 Nov 2018, Clément Péron wrote: > From: Adrien Charruel > > The AK4118A is a digital audio transceiver supporting 8 input channels > at 192kHz and with 24bits resolution. > It converts the S/PDIF signal to I2S format and is configurable over I2C. > > This driver introduce a minimal

Re: [mm PATCH v5 0/7] Deferred page init improvements

2018-11-14 Thread Michal Hocko
On Mon 05-11-18 13:19:25, Alexander Duyck wrote: > This patchset is essentially a refactor of the page initialization logic > that is meant to provide for better code reuse while providing a > significant improvement in deferred page initialization performance. > > In my testing on an x86_64 syste

Re: Official Linux system wrapper library?

2018-11-14 Thread Florian Weimer
* Andy Lutomirski: > Thread cancellation is a big mess, and we only really need to support > it because on legacy code. The whole mechanism should IMO be > considered extremely deprecated. The part regarding legacy code is not true: people write new code using it all the time. It's true that thi

[GIT PULL] GNSS fixes for v4.20-rc3

2018-11-14 Thread Johan Hovold
The following changes since commit ccda4af0f4b92f7b4c308d3acc262f4a7e3affad: Linux 4.20-rc2 (2018-11-11 17:12:31 -0600) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/johan/gnss.git tags/gnss-4.20-rc3 for you to fetch changes up to 9ac9252b4bcdaa7c2

[tip:master 22/22] arch/x86//kernel/cpu/mcheck/therm_throt.c:394:39: error: conflicting types for 'smp_thermal_interrupt'

2018-11-14 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master head: 449637df6faa8cd9a7f9cdf25589445f0dab2371 commit: 449637df6faa8cd9a7f9cdf25589445f0dab2371 [22/22] Merge branch 'x86/cleanups' config: x86_64-lkp (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce

Re: [PATCH] arm64: sunxi: Enable REGMAP_MMIO to fix linker error

2018-11-14 Thread John Garry
On 14/11/2018 14:51, Maxime Ripard wrote: Hi John, On Wed, Nov 14, 2018 at 01:04:25AM +0800, John Garry wrote: The following linker failure can be seen for a certain heavily reduced defconfig: drivers/soc/sunxi/sunxi_sram.o: In function `sunxi_sram_probe': drivers/soc/sunxi/sunxi_sram.c:353: un

Re: Memory hotplug softlock issue

2018-11-14 Thread Michal Hocko
On Wed 14-11-18 22:52:50, Baoquan He wrote: > On 11/14/18 at 10:01am, Michal Hocko wrote: > > I have seen an issue when the migration cannot make a forward progress > > because of a glibc page with a reference count bumping up and down. Most > > probable explanation is the faultaround code. I am wo

Re: [PATCH] Input: iforce - Add the Saitek R440 Force Wheel

2018-11-14 Thread Vojtech Pavlik
On Wed, Nov 14, 2018 at 10:52:40AM +0100, Tim Schumacher wrote: > Signed-off-by: Tim Schumacher > --- > Please note that I do NOT own this device. > > I'm adding this based on the fact that this is an iforce-based > device and that the Windows driver for the R440 works for the > Logitech WingMan

Re: [RFC PATCH 01/13] arm: Fix mutual exclusion in arch_gettimeoffset

2018-11-14 Thread Geert Uytterhoeven
Hi Russell, On Wed, Nov 14, 2018 at 3:16 PM Russell King - ARM Linux wrote: > On Wed, Nov 14, 2018 at 02:17:09PM +1100, Finn Thain wrote: > > So, even assuming that you're right about the limitations of single-timer > > platforms in general, removal of arch_gettimeoffset wouldn't require the > >

Re: Official Linux system wrapper library?

2018-11-14 Thread Carlos O'Donell
On 11/14/18 6:58 AM, Szabolcs Nagy wrote: > an actual proposal in the thread that i think is > worth considering is to make the linux syscall > design process involve libc devs so the c api is > designed together with the syscall abi. Right, I see at least 2 actionable items: * "The Checklist" wh

[PATCH v2 2/4] PCI: Add pci_check_platform_service_irqs

2018-11-14 Thread Bharat Kumar Gogada
Adding method pci_check_platform_service_irqs to check if platform has registered method to proivde dedicated IRQ lines for PCIe services like AER. Signed-off-by: Bharat Kumar Gogada --- include/linux/pci.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/linux/pci

[PATCH] PCI: Enable SERR# forwarding for Type-1 PCI devices

2018-11-14 Thread Bharat Kumar Gogada
As per Figure 6-3 in PCIe r4.0, sec 6.2.6, ERR_ messages will be forwarded from the secondary interface to the primary interface, if the SERR# Enable bit in the Bridge Control register is set. Currently PCI_BRIDGE_CTL_SERR is being enabled only in ACPI flow. This patch enables PCI_BRIDGE_CTL_SERR f

<    1   2   3   4   5   6   7   >