[PATCH v4 02/16] software node: Simplify software_node_release() function

2019-05-22 Thread Heikki Krogerus
It's possible to release the node ID immediately when fwnode_remove_software_node() is called, no need to wait for software_node_release() with that. Signed-off-by: Heikki Krogerus --- drivers/base/swnode.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[PATCH v4 03/16] software node: Add support for static node descriptors

2019-05-22 Thread Heikki Krogerus
Until now the software nodes could only be created dynamically with fwnode_create_software_node() function. This introduces struct software_node data structure, which makes it possible to describe the software nodes also statically. The statically described software nodes can be registered with a

[PATCH v4 04/16] software node: Use kobject name when finding child nodes by name

2019-05-22 Thread Heikki Krogerus
Using the kobject name of the node instead of a device property "name" in software_node_get_named_child_node(). Signed-off-by: Heikki Krogerus --- drivers/base/swnode.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/base/swnode.c b/drivers/base/swnode.c index ef

[PATCH v4 05/16] software node: Add software_node_get_reference_args()

2019-05-22 Thread Heikki Krogerus
This makes it possible to support drivers that use fwnode_property_get_reference_args() function. Signed-off-by: Heikki Krogerus --- drivers/base/swnode.c| 47 include/linux/property.h | 28 2 files changed, 75 insertions(+)

[PATCH v4 06/16] driver core: Add helper device_find_child_by_name()

2019-05-22 Thread Heikki Krogerus
It looks like the child device is often matched with a name. This introduces a helper that does it automatically. Signed-off-by: Heikki Krogerus Acked-by: Greg Kroah-Hartman --- drivers/base/core.c| 28 include/linux/device.h | 2 ++ 2 files changed, 30 inserti

[PATCH v4 14/16] platform/x86: intel_cht_int33fe: Provide fwnode for the USB connector

2019-05-22 Thread Heikki Krogerus
In ACPI, and now also in DT, the USB connectors usually have their own device nodes. In case of USB Type-C, those connector (port) nodes are child nodes of the controller or PHY device, in our case the fusb302. The software fwnodes allow us to create a similar child node for fusb302 that represents

[PATCH v4 12/16] platform/x86: intel_cht_int33fe: Remove unused fusb302 device property

2019-05-22 Thread Heikki Krogerus
Device property "fcs,max-sink-microwatt" is not used in fusb302.c, so dropping it. Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/platform/x86/intel_cht_int33fe.c b/drivers/platform/x86/intel_cht_int33fe.c i

[PATCH v4 09/16] device connection: Find connections also by checking the references

2019-05-22 Thread Heikki Krogerus
We can also use this API to find named references that the device nodes have by using fwnode_property_get_reference_args() function. Signed-off-by: Heikki Krogerus --- drivers/base/devcon.c | 26 ++ drivers/usb/roles/class.c | 2 +- 2 files changed, 27 insertions(+),

[PATCH v4 13/16] platform/x86: intel_cht_int33fe: Provide software nodes for the devices

2019-05-22 Thread Heikki Krogerus
Software nodes provide two features that we will need later. 1) Software nodes can have references to other software nodes. 2) Software nodes can exist before a device entry is created. Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 53 1 f

[PATCH v4 10/16] usb: typec: Registering real device entries for the muxes

2019-05-22 Thread Heikki Krogerus
Registering real device entries (struct device) for the mode muxes as well as for the orientation switches. The Type-C mux code was deliberately attempting to avoid creation of separate device entries for the orientation switch and the mode switch (alternate modes) because they are not physical de

[PATCH v4 08/16] device property: Introduce fwnode_find_reference()

2019-05-22 Thread Heikki Krogerus
In most cases the references that the drivers look for don't have any arguments. This introduces a wrapper function for fwnode_property_get_reference_args() that looks for references by using only the name and index. Signed-off-by: Heikki Krogerus --- drivers/base/property.c | 24 ++

[PATCH v4 16/16] platform/x86: intel_cht_int33fe: Replacing the old connections with references

2019-05-22 Thread Heikki Krogerus
Replacing the old connection descriptions with software node references. Supplying the USB connector also a reference to the DisplayPort while at it. Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 47 ++-- 1 file changed, 28 insertions(+), 19 de

[PATCH v4 07/16] ACPI / property: Don't limit named child node matching to data nodes

2019-05-22 Thread Heikki Krogerus
There is no reason why we should limit the use of fwnode_get_named_child_node() to data nodes only. Signed-off-by: Heikki Krogerus --- drivers/acpi/property.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/property.c b/drivers/acpi/pr

[PATCH v4 15/16] platform/x86: intel_cht_int33fe: Supply fwnodes for the external dependencies

2019-05-22 Thread Heikki Krogerus
Supplying also external devices, the DisplayPort connector and the USB role switch, software fwnodes. After this the driver has access to all the components tied to the USB Type-C connector and can start creating software node references to actually associate them with the USB Type-C connector devi

[PATCH v4 11/16] platform/x86: intel_cht_int33fe: Register max17047 in its own function

2019-05-22 Thread Heikki Krogerus
To make the probe function a bit more nicer looking, moving the registration of max17047 to its own function. Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 62 +--- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/drivers/platfor

Re: [PATCH v5 2/5] USB: use genalloc for USB HCs with local memory

2019-05-22 Thread Laurentiu Tudor
On 21.05.2019 18:27, Fredrik Noring wrote: > Thanks Laurentiu! > >> --- a/include/linux/usb/hcd.h >> +++ b/include/linux/usb/hcd.h >> @@ -216,6 +216,9 @@ struct usb_hcd { >> #defineHC_IS_RUNNING(state) ((state) & __ACTIVE) >> #defineHC_IS_SUSPENDED(state) ((state) & __SUSPEND) >> >

Re: CFQ idling kills I/O performance on ext4 with blkio cgroup controller

2019-05-22 Thread Paolo Valente
> Il giorno 22 mag 2019, alle ore 12:01, Srivatsa S. Bhat > ha scritto: > > On 5/22/19 2:09 AM, Paolo Valente wrote: >> >> First, thank you very much for testing my patches, and, above all, for >> sharing those huge traces! >> >> According to the your traces, the residual 20% lower throughpu

Re: [PATCH 0/5] Exynos EHCI/OHCI: resolve conflict with the generic USB device bindings

2019-05-22 Thread Måns Rullgård
Marek Szyprowski writes: > Hi Måns > > On 2019-05-21 15:30, Måns Rullgård wrote: >> Marek Szyprowski writes: >>> Dear All, >>> >>> Commit 69bec7259853 ("USB: core: let USB device know device node") added >>> support for attaching devicetree node for USB devices. Those nodes are >>> children of t

RE: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by node

2019-05-22 Thread Biju Das
Hi Chunfeng Yun, Thanks for the feedback. > Subject: RE: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by > node > > Hi Biju, > On Wed, 2019-05-22 at 08:05 +, Biju Das wrote: > > Hi Heikki, > > > > Thanks for the feedback. > > > > > Subject: Re: [PATCH v5 4/6] usb: roles: add API

Re: [GIT PULL] Immutable branch between LEDs, MFD and REGULATOR

2019-05-22 Thread Mark Brown
On Tue, May 21, 2019 at 07:48:18PM -0500, Dan Murphy wrote: > On 5/21/19 4:15 PM, Mark Brown wrote: > > On Tue, May 21, 2019 at 10:30:38PM +0200, Jacek Anaszewski wrote: > >> regulator: lm363x: Make the gpio register enable flexible > >> regulator: lm363x: Add support for LM36274 > >

Re: [PATCH V5 1/2] soc: imx: Add SCU SoC info driver support

2019-05-22 Thread Abel Vesa
On 19-05-22 06:23:31, Anson Huang wrote: > Add i.MX SCU SoC info driver to support i.MX8QXP SoC, introduce > driver dependency into Kconfig as CONFIG_IMX_SCU must be > selected to support i.MX SCU SoC driver, also need to use > platform driver model to make sure IMX_SCU driver is probed > before i.

[PATCH] spi: spi-fsl-spi: call spi_finalize_current_message() at the end

2019-05-22 Thread Christophe Leroy
spi_finalize_current_message() shall be called once all actions are finished, otherwise the last actions might step over a newly started transfer. Fixes: c592becbe704 ("spi: fsl-(e)spi: migrate to generic master queueing") Signed-off-by: Christophe Leroy --- drivers/spi/spi-fsl-spi.c | 2 +- 1 f

Re: [PATCH 2/3] regulator: qcom_spmi: Add support for PM8005

2019-05-22 Thread Mark Brown
On Tue, May 21, 2019 at 05:16:06PM -0600, Jeffrey Hugo wrote: > On 5/21/2019 12:50 PM, Mark Brown wrote: > > > +static int spmi_regulator_common_list_voltage(struct regulator_dev *rdev, > > > + unsigned selector); > > > + > > > +static int spmi_regulator_commo

Re: [PATCH v2] fix use-after-free in perf_sched__lat

2019-05-22 Thread Arnaldo Carvalho de Melo
Em Wed, May 22, 2019 at 03:56:10PM +0900, Namhyung Kim escreveu: > On Wed, May 08, 2019 at 10:36:48PM +0800, Wei Li wrote: > > After thread is added to machine->threads[i].dead in > > __machine__remove_thread, the machine->threads[i].dead is freed > > when calling free(session) in perf_session__del

Re: [PATCHv2] perf/report: Support s390 diag event display on x86

2019-05-22 Thread Arnaldo Carvalho de Melo
Em Wed, May 22, 2019 at 08:43:25AM +0200, Thomas Richter escreveu: > Perf report fails to display s390 specific event numbered bd000 > on an x86 platform. For example on s390 this works without error: > > [root@m35lp76 perf]# uname -m > s390x > [root@m35lp76 perf]# ./perf record -e rbd000 -- find

Re: [PATCH] tty_io: Fix a missing-check bug in drivers/tty/tty_io.c

2019-05-22 Thread Gen Zhang
On Wed, May 22, 2019 at 12:29:00PM +0200, Johan Hovold wrote: > Where do you see that the kernel is dereferencing tty->dev without > checking for NULL first? If you can find that, then that would indeed be > a bug that needs fixing. Thanks for your reply, Johan! I examined the code but failed to fi

Re: [PATCH v3 13/13] epoll: implement epoll_create2() syscall

2019-05-22 Thread Arnd Bergmann
On Wed, May 22, 2019 at 4:33 AM Andrew Morton wrote: > On Thu, 16 May 2019 12:20:50 +0200 Roman Penyaev wrote: > > On 2019-05-16 12:03, Arnd Bergmann wrote: > > > On Thu, May 16, 2019 at 10:59 AM Roman Penyaev > > > wrote: > > >> > > >> epoll_create2() is needed to accept EPOLL_USERPOLL flags >

[PATCH] smp,cpumask: Don't call functions on offline CPUs

2019-05-22 Thread Andrew Murray
When we are able to allocate a cpumask in on_each_cpu_cond_mask we call functions with on_each_cpu_mask - this masks out offline cpus via smp_call_function_many. However when we fail to allocate a cpumask in on_each_cpu_cond_mask we call functions with smp_call_function_single - this will return -

Re: [PATCH -next v2] mm/hotplug: fix a null-ptr-deref during NUMA boot

2019-05-22 Thread Michal Hocko
On Wed 22-05-19 15:12:16, Pingfan Liu wrote: > On Mon, May 13, 2019 at 11:31 PM Michal Hocko wrote: > > > > On Mon 13-05-19 11:20:46, Qian Cai wrote: > > > On Mon, 2019-05-13 at 16:04 +0200, Michal Hocko wrote: > > > > On Mon 13-05-19 09:43:59, Qian Cai wrote: > > > > > On Mon, 2019-05-13 at 14:41

Re: [PATCH] tty_io: Fix a missing-check bug in drivers/tty/tty_io.c

2019-05-22 Thread Gen Zhang
On Wed, May 22, 2019 at 10:15:56AM +0200, Jiri Slaby wrote: > Look at the top of alloc_tty_struct: there is tty_ldisc_init. If > tty_get_device fails here, you have to call tty_ldisc_deinit. Better, > you should add a failure-handling tail to this function and "goto" there. Thanks for your explaina

Re: [PATCH] HID: logitech-dj: make const array template static

2019-05-22 Thread Jiri Kosina
On Fri, 10 May 2019, Colin King wrote: > From: Colin Ian King > > Don't populate the array template on the stack but instead make it > static. Makes the object code smaller by 10 bytes. Also reformat > the declaration. > > Before: >text data bss dec hex filename > 29

Your urgent message is needed immediately.

2019-05-22 Thread Dr. Bernard Zoungrana
Dear Partner, I am Dr. Benard Zoungrana,Managing Director of (BOA) Bank Of Africa .I write you this proposal in good faith hoping that I will rely on you in a business transaction that require absolute confidentiality and of great interest and benefit to our both families. In 1999,one Mr. Raymond

Re: [PATCH] HID: logitech-hidpp: HID: make const array consumer_rdesc_start static

2019-05-22 Thread Jiri Kosina
On Fri, 10 May 2019, Colin King wrote: > From: Colin Ian King > > Don't populate the array consumer_rdesc_start on the stack but instead > make it static. Makes the object code smaller by 88 bytes. > > Before: >text data bss dec hex filename > 59155 9840

Re: [PATCH] tty_io: Fix a missing-check bug in drivers/tty/tty_io.c

2019-05-22 Thread Johan Hovold
On Wed, May 22, 2019 at 07:13:54PM +0800, Gen Zhang wrote: > On Wed, May 22, 2019 at 12:29:00PM +0200, Johan Hovold wrote: > > Where do you see that the kernel is dereferencing tty->dev without > > checking for NULL first? If you can find that, then that would indeed be > > a bug that needs fixing.

Re: [PATCH 4.19 093/105] KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes

2019-05-22 Thread Pavel Machek
Hi! > From: Sean Christopherson > > commit 11988499e62b310f3bf6f6d0a807a06d3f9ccc96 upstream. > > KVM allows userspace to violate consistency checks related to the > guest's CPUID model to some degree. Generally speaking, userspace has > carte blanche when it comes to guest state so long as ja

Re: [PATCH] tty_io: Fix a missing-check bug in drivers/tty/tty_io.c

2019-05-22 Thread Gen Zhang
On Wed, May 22, 2019 at 01:19:49PM +0200, Johan Hovold wrote: > On Wed, May 22, 2019 at 07:13:54PM +0800, Gen Zhang wrote: > > On Wed, May 22, 2019 at 12:29:00PM +0200, Johan Hovold wrote: > > > Where do you see that the kernel is dereferencing tty->dev without > > > checking for NULL first? If you

[PATCH] lib/sort: Add the sort_r() variant

2019-05-22 Thread Boris Brezillon
Some users might need extra context to compare 2 elements. This patch adds the sort_r() which is similar to the qsort_r() variant of qsort(). Signed-off-by: Boris Brezillon --- Hello, A few more details about this patch. Even though I post it as a standalone patch, I do intend to use it in a re

[PATCH] mm: mlockall error for flag MCL_ONFAULT

2019-05-22 Thread Potyra, Stefan
If mlockall() is called with only MCL_ONFAULT as flag, it removes any previously applied lockings and does nothing else. This behavior is counter-intuitive and doesn't match the Linux man page. Consequently, return the error EINVAL, if only MCL_ONFAULT is passed. That way, applications will at le

Re: [PATCH][V2] leds: TI LMU: fix u8 variable comparisons with less than zero

2019-05-22 Thread Dan Murphy
On 5/22/19 5:17 AM, Colin King wrote: > From: Colin Ian King > > The u8 variables ramp_ups and ramp_downs are being compared to less > than zero, this will always be false. Fix this by making the ramp > variables ints. > > Addresses-Coverity: ("Unsigned compared against 0") > Fixes: 9a8e66eb

Re: [PATCH] message/fusion/mptbase.c: Use kmemdup instead of memcpy and kmalloc

2019-05-22 Thread Joe Perches
On Wed, 2019-05-22 at 15:23 +0530, Bharath Vedartham wrote: > Replace kmalloc + memcpy with kmemdup. > This was reported by coccinelle. [] > diff --git a/drivers/message/fusion/mptbase.c > b/drivers/message/fusion/mptbase.c [] > @@ -6001,13 +6001,12 @@ mpt_findImVolumes(MPT_ADAPTER *ioc) > i

Re: [PATCH v2] tracing: silence GCC 9 array bounds warning

2019-05-22 Thread Steven Rostedt
On Wed, 22 May 2019 11:58:10 +0200 Miguel Ojeda wrote: > +/* reset all but tr, trace, and overruns */ > +static __always_inline void trace_iterator_reset(struct trace_iterator *iter) > +{ > + /* > + * We do not simplify the start address to &iter->seq in order to let > + * GCC 9 kno

Re: [PATCH v2] clk: renesas: r9a06g032: Add clock domain support

2019-05-22 Thread Geert Uytterhoeven
Hi Gareth, On Tue, May 21, 2019 at 2:35 PM Gareth Williams wrote: > There are several clocks on the r9ag032 which are currently not enabled > in their drivers that can be delegated to clock domain system for power > management. Therefore add support for clock domain functionality to the > r9a06g0

Re: [PATCH V7 14/15] PCI: tegra: Add Tegra194 PCIe support

2019-05-22 Thread Vidya Sagar
On 5/21/2019 5:11 PM, Thierry Reding wrote: On Fri, May 17, 2019 at 06:08:45PM +0530, Vidya Sagar wrote: Add support for Synopsys DesignWare core IP based PCIe host controller present in Tegra194 SoC. Signed-off-by: Vidya Sagar --- Changes since [v6]: * Removed code around "nvidia,disable-aspm

Re: [PATCH] MIPS: TXx9: Fix boot crash in free_initmem()

2019-05-22 Thread Maciej W. Rozycki
On Wed, 22 May 2019, Geert Uytterhoeven wrote: > Looks like arch/mips/dec/prom/memory.c needs a similar but more > complicated fix, due to declance handling? Thanks for the heads-up! I think the declance hack should go away. It should have gone long ago, but ISTR there used to be a problem wi

[PATCH v2] usb: gadget: udc: lpc32xx: allocate descriptor with GFP_ATOMIC

2019-05-22 Thread Alexandre Belloni
Gadget drivers may queue request in interrupt context. This would lead to a descriptor allocation in that context. In that case we would hit BUG_ON(in_interrupt()) in __get_vm_area_node. Also remove the unnecessary cast. Tested-by: James Grant Signed-off-by: Alexandre Belloni --- Changes in v2

[PATCH 1/2] serial: mctrl_gpio: Check if GPIO property exisits before requesting it

2019-05-22 Thread Stefan Roese
This patch adds a check for the GPIOs property existence, before the GPIO is requested. This fixes an issue seen when the 8250 mctrl_gpio support is added (2nd patch in this patch series) on x86 platforms using ACPI. Please find a details problem description here: https://lkml.org/lkml/2016/8/9/35

[PATCH 2/2] tty/serial/8250: use mctrl_gpio helpers

2019-05-22 Thread Stefan Roese
From: Yegor Yefremov This patch permits the usage for GPIOs to control the CTS/RTS/DTR/DSR/DCD/RI signals. Signed-off-by: Yegor Yefremov Signed-off-by: Greg Kroah-Hartman Signed-off-by: Stefan Roese Cc: Mika Westerberg Cc: Andy Shevchenko Cc: Giulio Benetti Cc: Yegor Yefremov Cc: Greg Kro

Re: [PATCH V1 01/12] irqchip: tegra: do not disable COP IRQ during suspend

2019-05-22 Thread Thierry Reding
On Tue, May 21, 2019 at 04:31:12PM -0700, Sowjanya Komatineni wrote: > BPMP-lite still need IRQ function to finish SC7 suspend sequence for > Tegra210. > > This patch has fix for leaving the COP IRQ enabled for Tegra210 during > interrupt controller suspend operation. > > Signed-off-by: Sowjanya

[PATCH 6/6] staging: kpc2000: kpc_i2c: add static qual to local symbols in kpc_i2c.c

2019-05-22 Thread Geordan Neukum
kpc_i2c.c declares: - two functions - pi2c_probe() - pi2c_remove() - one struct - i2c_plat_driver_i which are local to the file, yet missing the static qualifier. Add the static qualifier to these symbols. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_i2c.c |

[PATCH 4/6] staging: kpc2000: kpc_i2c: use instead of

2019-05-22 Thread Geordan Neukum
Rather than include asm/io.h, include linux/io.h. Issue reported by the script checkpatch.pl. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000_i2c.c b/drivers/staging/kpc20

[PATCH 5/6] staging: kpc2000: kpc_i2c: Remove unnecessary function tracing prints

2019-05-22 Thread Geordan Neukum
Many of the functions in kpc_i2c log debug-level messages to the kernel log message buffer upon invocation. This is unnecessary, as debugging tools like kgdb, kdb, etc. or the tracing tool ftrace should be able to provide this same information. Therefore, remove these print statements. Signed-off-

[PATCH 0/6] Minor updates to kpc_i2c driver and kpc2000 core

2019-05-22 Thread Geordan Neukum
Attached are an assortment of minor updates to the kpc_i2c driver as well as a build fix for all of those who will need the KPC2000 core. Thanks, Geordan Geordan Neukum (6): staging: kpc2000: make kconfig symbol 'KPC2000' select dependencies staging: kpc2000: kpc_i2c: remove unused module par

[PATCH 1/6] staging: kpc2000: make kconfig symbol 'KPC2000' select dependencies

2019-05-22 Thread Geordan Neukum
The kpc2000 core makes calls against functions which are conditionally exported upon the kconfig symbols 'MFD_CORE' and 'UIO' being selected Therefore, in order to guarantee correct compilation, the 'KPC2000' kconfig symbol (which brings in that code) must explicitly select its hard dependencies.

[PATCH 2/6] staging: kpc2000: kpc_i2c: remove unused module param disable_features

2019-05-22 Thread Geordan Neukum
The module parameter 'disable_features' is currently unused. Therefore, it should be removed. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_i2c.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_i2c.c b/drivers/staging/kpc2000/kpc2000_i2

[PATCH 3/6] staging: kpc2000: kpc_i2c: newline fixups to meet linux style guide

2019-05-22 Thread Geordan Neukum
The linux coding style document states: 1) That braces should not be used where a single single statement will do. Therefore all instances of single block statements wrapped in braces that do not meet the qualifications of any of the exceptions to the rule should be fixed up. 2

[PATCH] tty: serial: cpm_uart - fix init when SMC is relocated

2019-05-22 Thread Christophe Leroy
SMC relocation can also be activated earlier by the bootloader, so the driver's behaviour cannot rely on selected kernel config. When the SMC is relocated, CPM_CR_INIT_TRX cannot be used. But the only thing CPM_CR_INIT_TRX does is to clear the rstate and tstate registers, so this can be done manu

Re: [PATCH v3] mm/kasan: Print frame description for stack bugs

2019-05-22 Thread Andrey Ryabinin
On 5/22/19 1:00 PM, Marco Elver wrote: > This adds support for printing stack frame description on invalid stack > accesses. The frame description is embedded by the compiler, which is > parsed and then pretty-printed. > > Currently, we can only print the stack frame info for accesses to the > tas

mainline/master boot bisection: v5.2-rc1-129-g9c7db5004280 on rk3288-veyron-jaq

2019-05-22 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the problem

Re: [PATCH] tick/sched: Drop duplicated tick_sched.inidle

2019-05-22 Thread Frederic Weisbecker
On Wed, May 22, 2019 at 11:29:06AM +0800, Peter Xu wrote: > It is set before entering idle and cleared when quitting idle, though > it seems to be a complete duplicate of tick_sched.idle_active. We > should probably be able to use any one of them to replace the other. Not exactly. @inidle is set

[PATCH v3] vt: Fix a missing-check bug in drivers/tty/vt/vt.c

2019-05-22 Thread Gen Zhang
In function con_init(), the pointer variable vc_cons[currcons].d, vc and vc->vc_screenbuf is allocated a memory space via kzalloc(). And they are used in the following codes. However, when there is a memory allocation error, kzalloc() can fail. Thus null pointer (vc_cons[currcons].d, vc and vc->vc_

Re: [PATCH v3 1/3] thermal: rockchip: fix up the tsadc pinctrl setting error

2019-05-22 Thread Daniel Lezcano
Elaine, are you taking care of the issue related to this patch. If not fixed, it will be reverted. On 30/04/2019 12:09, Elaine Zhang wrote: > Explicitly use the pinctrl to set/unset the right mode > instead of relying on the pinctrl init mode. > And it requires setting the tshut polarity befor

Re: [PATCH 1/6] staging: kpc2000: make kconfig symbol 'KPC2000' select dependencies

2019-05-22 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 12:13:57PM +, Geordan Neukum wrote: > The kpc2000 core makes calls against functions which are conditionally > exported upon the kconfig symbols 'MFD_CORE' and 'UIO' being selected > Therefore, in order to guarantee correct compilation, the 'KPC2000' > kconfig symbol (wh

Re: [PATCH v3 1/3] thermal: rockchip: fix up the tsadc pinctrl setting error

2019-05-22 Thread Heiko Stuebner
Hi Enric, Am Montag, 20. Mai 2019, 15:38:32 CEST schrieb Enric Balletbo Serra: > Hi all, > > As pointed by [1] and [2] this commit, that now is upstream, breaks > veyron (rk3288) and kevin (rk3399) boards. The problem is especially > critical for veyron boards because they don't boot anymore. >

Re: [PATCH 0/6] Minor updates to kpc_i2c driver and kpc2000 core

2019-05-22 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 12:13:56PM +, Geordan Neukum wrote: > Attached are an assortment of minor updates to the kpc_i2c driver as > well as a build fix for all of those who will need the KPC2000 core. Nit, please put "staging" in your 0/6 patch to make it easier for scripts to pick this up pr

Re: [PATCH v3 1/3] thermal: rockchip: fix up the tsadc pinctrl setting error

2019-05-22 Thread Daniel Lezcano
On 22/05/2019 14:27, Heiko Stuebner wrote: [ ... ] >> As this change is now in mainline and is causing veyron to hang I'd >> suggest reverting this change for now. Even fixing the root cause >> (maybe the one I pointed above) after this patch we will have the >> thermal driver to fail because "gp

Re: [Patch v2] staging: rtl8723bs: core: rtw_ap: fix Unneeded variable: "ret". Return "0

2019-05-22 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 12:30:33AM +0530, Hariprasad Kelam wrote: > Function "rtw_sta_flush" always returns 0 value. > So change return type of rtw_sta_flush from int to void. > > Same thing applies for rtw_hostapd_sta_flush > > Signed-off-by: Hariprasad Kelam > -- > Changes v2 - > cha

Re: [PATCH] platform/x86: pmc_atom: Add Lex 3I380D industrial PC to critclk_systems DMI table

2019-05-22 Thread Hans de Goede
Hi On 08-05-19 10:42, Andy Shevchenko wrote: On Wed, May 8, 2019 at 10:48 AM Hans de Goede wrote: On 07-05-19 22:17, Stephen Boyd wrote: Quoting Hans de Goede (2019-05-06 08:05:42) I guess this is urgent? Somewhat, getting this into e.g. rc2 would be fine too, waiting till 5.3 would be b

Re: [PATCH v3 1/3] thermal: rockchip: fix up the tsadc pinctrl setting error

2019-05-22 Thread Heiko Stuebner
Am Mittwoch, 22. Mai 2019, 14:30:16 CEST schrieb Daniel Lezcano: > On 22/05/2019 14:27, Heiko Stuebner wrote: > > [ ... ] > > >> As this change is now in mainline and is causing veyron to hang I'd > >> suggest reverting this change for now. Even fixing the root cause > >> (maybe the one I pointed

Re: [PATCH V1 02/12] pinctrl: tegra: add suspend and resume support

2019-05-22 Thread Thierry Reding
On Tue, May 21, 2019 at 04:31:13PM -0700, Sowjanya Komatineni wrote: > This patch adds suspend and resume support for Tegra pinctrl driver > and registers them to syscore so the pinmux settings are restored > before the devices resume. > > Signed-off-by: Sowjanya Komatineni > --- > drivers/pinct

Re: [PATCH] kernel/hung_task.c: Monitor killed tasks.

2019-05-22 Thread Tetsuo Handa
Hello, Stephen. I want to send debug printk() patches to linux-next.git. Petr Mladek is suggesting me to have a git tree for debug printk() patches. But it seems that there is "git quiltimport" command, and I prefer "subversion + quilt", and I don't have trees for sending "git pull" requests. Ther

Re: [PATCH 3/6] staging: kpc2000: kpc_i2c: newline fixups to meet linux style guide

2019-05-22 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 12:13:59PM +, Geordan Neukum wrote: > The linux coding style document states: > > 1) That braces should not be used where a single single statement > will do. Therefore all instances of single block statements > wrapped in braces that do not meet the qualifi

Re: [PATCH] spi: dt-bindings: Convert Arm pl022 to json-schema

2019-05-22 Thread Rob Herring
On Wed, May 22, 2019 at 5:42 AM Maxime Ripard wrote: > > Hi Rob, > > On Tue, May 21, 2019 at 04:23:24PM -0500, Rob Herring wrote: > > +allOf: > > + - $ref: "spi-controller.yaml#" > > You're using a different construct on the spi-gpio binding you just > sent (/schemas/spi/spi-controller.yaml). > >

Re: [PATCH V1 08/12] soc/tegra: pmc: allow support for more tegra wake models

2019-05-22 Thread Thierry Reding
On Tue, May 21, 2019 at 04:31:19PM -0700, Sowjanya Komatineni wrote: > This patch allows to create separate irq_set_wake and irq_set_type > implementations for different tegra designs PMC that has different > wake models which require difference wake registers and different > programming sequence.

Re: [PATCH v3 05/13] epoll: offload polling to a work in case of epfd polled from userspace

2019-05-22 Thread Roman Penyaev
On 2019-05-21 09:51, Eric Wong wrote: Roman Penyaev wrote: diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 81da4571f1e0..9d3905c0afbf 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -44,6 +44,7 @@ #include #include #include +#include #include /* @@ -185,6 +186,9 @@ struct epit

Re: [PATCH] ACPI/IORT: Fix build without CONFIG_IOMMU_API

2019-05-22 Thread Will Deacon
Hi Christoph, On Mon, May 20, 2019 at 08:57:46AM +0200, Christoph Hellwig wrote: > IOMMU_FWSPEC_PCI_RC_ATS is only defined if CONFIG_IOMMU_API is > enabled. > > Fixes: 5702ee24182f ("ACPI/IORT: Check ATS capability in root complex nodes") > Signed-off-by: Christoph Hellwig > --- > drivers/acpi/

Re: Oops caused by race between livepatch and ftrace

2019-05-22 Thread Josh Poimboeuf
On Tue, May 21, 2019 at 11:42:27AM -0500, Josh Poimboeuf wrote: > void module_enable_ro(const struct module *mod, bool after_init) > { > + lockdep_assert_held(&text_mutex); > + This assertion fails, it turns out the module code also calls this function (oops). I may move the meat of this fu

Re: [PATCH] MIPS: TXx9: Fix boot crash in free_initmem()

2019-05-22 Thread Atsushi Nemoto
On Wed, 22 May 2019 10:15:35 +0200, Geert Uytterhoeven wrote: > On rbtx4927: ... > As of commit b93ddc4f9156205e ("mips: Reserve memory for the kernel > image resources"), bootmem_init() no longer reserves the memory below > the kernel, while prom_free_prom_memory() still frees it. > > Fix this

Re: [PATCH V1 09/12] soc/tegra: pmc: add pmc wake support for tegra210

2019-05-22 Thread Thierry Reding
On Tue, May 21, 2019 at 04:31:20PM -0700, Sowjanya Komatineni wrote: > This patch implements PMC wakeup sequence for Tegra210 and defines > common used wake events of RTC alarm and power key. > > Signed-off-by: Sowjanya Komatineni > --- > drivers/soc/tegra/pmc.c | 120 >

Re: [PATCH V1 08/12] soc/tegra: pmc: allow support for more tegra wake models

2019-05-22 Thread Thierry Reding
On Tue, May 21, 2019 at 04:31:19PM -0700, Sowjanya Komatineni wrote: > This patch allows to create separate irq_set_wake and irq_set_type > implementations for different tegra designs PMC that has different > wake models which require difference wake registers and different > programming sequence.

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-22 Thread Jarkko Sakkinen
On Tue, May 21, 2019 at 03:24:18PM +, Jethro Beekman wrote: > On 2019-05-21 08:19, Jarkko Sakkinen wrote: > > We could even disallow mmap() before EINIT done. > This would be extremely annoying in software because now you have to save > the all the page permissions somewhere between EADD and mp

Re: [PATCH] swiotlb: sync buffer when mapping FROM_DEVICE

2019-05-22 Thread Christoph Hellwig
On Wed, May 22, 2019 at 01:50:47PM +0100, Robin Murphy wrote: > Would that work out any different from the existing DMA_ATTR_SKIP_CPU_SYNC? > > If drivers are prepared to handle this issue from their end, they can > already do so for single mappings by using that attr along with explicit > parti

[GIT PULL] arm64: First round of fixes for -rc2

2019-05-22 Thread Will Deacon
Hi Linus, Please pull these arm64 fixes for -rc2. The summary is in the tag. I was actually planning to send these in during the merge window, which is why the branch is based on top of the previous arm64 pull rather than -rc1. Unfortunately, due to various goings on, my ability to send external

Re: [PATCH v2] tracing: silence GCC 9 array bounds warning

2019-05-22 Thread Miguel Ojeda
On Wed, May 22, 2019 at 1:52 PM Steven Rostedt wrote: > > On Wed, 22 May 2019 11:58:10 +0200 > Miguel Ojeda wrote: > > > +/* reset all but tr, trace, and overruns */ > > +static __always_inline void trace_iterator_reset(struct trace_iterator > > *iter) > > +{ > > + /* > > + * We do not

[no subject]

2019-05-22 Thread Guido Günther
Bcc: Subject: Re: [RFC PATCH] soc: imx: Try harder to get imq8mq SoC revisions Reply-To: In-Reply-To: <20190508124018.ga16...@bogon.m.sigxcpu.org> Hi Leonard,, On Wed, May 08, 2019 at 02:40:18PM +0200, Guido Günther wrote: > Hi Leonard, > > Thanks for your comments. Let's try s.th. different th

[PATCH 0/2] Add 96Boards Meerkat96 board support

2019-05-22 Thread Manivannan Sadhasivam
Hello, This patchset adds board support for 96Boards Meerkat96 board from Novtech. This board is one of the Consumer Edition boards of the 96Boards family based on i.MX7D SoC. Following are the currently supported features of the board: * uSD * WiFi/BT * USB More information about this boar

[PATCH 1/2] dt-bindings: arm: Document 96Boards Meerkat96 devicetree binding

2019-05-22 Thread Manivannan Sadhasivam
Document 96Boards Meerkat96 devicetree binding based on i.MX7D SoC. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/

[PATCH 2/2] ARM: dts: Add support for 96Boards Meerkat96 board

2019-05-22 Thread Manivannan Sadhasivam
Add devicetree support for 96Boards Meerkat96 board from Novtech. This board is one of the Consumer Edition boards of the 96Boards family based on i.MX7D SoC. Following are the currently supported features of the board: * uSD * WiFi/BT * USB More information about this board can be found in 96Boa

Re: [RFC 0/7] introduce memory hinting API for external process

2019-05-22 Thread Daniel Colascione
On Wed, May 22, 2019 at 1:22 AM Christian Brauner wrote: > > On Wed, May 22, 2019 at 7:12 AM Daniel Colascione wrote: > > > > On Tue, May 21, 2019 at 4:39 AM Christian Brauner > > wrote: > > > > > > On Tue, May 21, 2019 at 01:30:29PM +0200, Christian Brauner wrote: > > > > On Tue, May 21, 2019

Re: [PATCH 1/3] perf tools: Protect reading thread's namespace

2019-05-22 Thread Arnaldo Carvalho de Melo
Em Wed, May 22, 2019 at 02:32:48PM +0900, Namhyung Kim escreveu: > It seems that the current code lacks holding the namespace lock in > thread__namespaces(). Otherwise it can see inconsistent results. > > Signed-off-by: Namhyung Kim > --- > tools/perf/util/thread.c | 15 +-- > 1 fil

Re: [PATCH] dt: bindings: mtd: replace references to nand.txt with nand-controller.yaml

2019-05-22 Thread Rob Herring
On Tue, May 21, 2019 at 2:28 PM Kamal Dasu wrote: > > nand-controller.yaml replaced nand.txt however the references to it were > not updated. This change updates these references wherever it appears in > bindings documentation. > > Fixes: 212e49693592 ("dt-bindings: mtd: Add YAML schemas for the g

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-22 Thread Jarkko Sakkinen
On Tue, May 21, 2019 at 08:51:40AM -0700, Sean Christopherson wrote: > Except that mmap() is more or less required to guarantee that ELRANGE > established by ECREATE is available. And we want to disallow mmap() as > soon as the first EADD is done so that userspace can't remap the enclave's > VMAs

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-22 Thread Jarkko Sakkinen
On Wed, May 22, 2019 at 04:20:22PM +0300, Jarkko Sakkinen wrote: > On Tue, May 21, 2019 at 08:51:40AM -0700, Sean Christopherson wrote: > > Except that mmap() is more or less required to guarantee that ELRANGE > > established by ECREATE is available. And we want to disallow mmap() as > > soon as t

[PATCH 00/18] locking/atomic: atomic64 type cleanup

2019-05-22 Thread Mark Rutland
Currently architectures return inconsistent types for atomic64 ops. Some return long (e..g. powerpc), some return long long (e.g. arc), and some return s64 (e.g. x86). This is a bit messy, and causes unnecessary pain (e.g. as values must be cast before they can be printed [1]). This series rework

[PATCH 02/18] locking/atomic: s390/pci: prepare for atomic64_read() conversion

2019-05-22 Thread Mark Rutland
The return type of atomic64_read() varies by architecture. It may return long (e.g. powerpc), long long (e.g. arm), or s64 (e.g. x86_64). This is somewhat painful, and mandates the use of explicit casts in some cases (e.g. when printing the return value). To ameliorate matters, subsequent patches

[PATCH 01/18] locking/atomic: crypto: nx: prepare for atomic64_read() conversion

2019-05-22 Thread Mark Rutland
The return type of atomic64_read() varies by architecture. It may return long (e.g. powerpc), long long (e.g. arm), or s64 (e.g. x86_64). This is somewhat painful, and mandates the use of explicit casts in some cases (e.g. when printing the return value). To ameliorate matters, subsequent patches

[PATCH 03/18] locking/atomic: generic: use s64 for atomic64

2019-05-22 Thread Mark Rutland
As a step towards making the atomic64 API use consistent types treewide, let's have the generic atomic64 implementation use s64 as the underlying type for atomic64_t, rather than long long, matching the generated headers. Otherwise, there should be no functional change as a result of this patch.

Re: [PATCH V1 10/12] gpio: tegra: implement wake event support for Tegra210 and prior GPIO

2019-05-22 Thread Thierry Reding
On Tue, May 21, 2019 at 04:31:21PM -0700, Sowjanya Komatineni wrote: > The GPIO controller doesn't have any controls to enable the system to > wake up from low power states based on activity on GPIO pins. An extra > hardware block that is part of the power management controller (PMC) > contains the

[PATCH 04/18] locking/atomic: alpha: use s64 for atomic64

2019-05-22 Thread Mark Rutland
As a step towards making the atomic64 API use consistent types treewide, let's have the alpha atomic64 implementation use s64 as the underlying type for atomic64_t, rather than long, matching the generated headers. As atomic64_read() depends on the generic defintion of atomic64_t, this still retur

[PATCH 05/18] locking/atomic: arc: use s64 for atomic64

2019-05-22 Thread Mark Rutland
As a step towards making the atomic64 API use consistent types treewide, let's have the arc atomic64 implementation use s64 as the underlying type for atomic64_t, rather than u64, matching the generated headers. Otherwise, there should be no functional change as a result of this patch. Signed-off

[PATCH 09/18] locking/atomic: mips: use s64 for atomic64

2019-05-22 Thread Mark Rutland
As a step towards making the atomic64 API use consistent types treewide, let's have the mips atomic64 implementation use s64 as the underlying type for atomic64_t, rather than long or __s64, matching the generated headers. As atomic64_read() depends on the generic defintion of atomic64_t, this sti

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