[PATCH v5 5/7] thermal: tsens: Add generic support for TSENS v2 IP

2018-07-09 Thread Amit Kucheria
SDM845 uses v2 of the TSENS IP block but the get_temp() function appears to be identical across v2.x.y in code seen so far. We use the generic get_temp() function defined as part of ops_generic_v2. Signed-off-by: Amit Kucheria --- drivers/thermal/qcom/tsens-v2.c | 6 +-

Re: [PATCH v4 0/6] thermal: tsens: Refactoring for TSENSv2 IP

2018-07-09 Thread Amit Kucheria
On Mon, Jul 2, 2018 at 11:23 PM, Eduardo Valentin wrote: > On Mon, Jul 02, 2018 at 06:14:03PM +0530, Amit Kucheria wrote: >> This series is a mixed bag: >> - Some code moves to allow code sharing between various v2.x.y versions of >> the TSENS IP, >> - new qcom,tsens-v2.4.0 DT property for

Re: [PATCH] mmc: core: improve rationality of bus width setting for HS400es

2018-07-09 Thread Ulf Hansson
On 9 July 2018 at 08:47, Hongjie Fang wrote: > mmc_select_hs400es() calls mmc_select_bus_width() which will try to > set 4bit transfer mode if fail to set 8bit mode. The problem is that > the bus width should not be set to 4bit in HS400es mode. I guess it fails because there is something wrong.

Re: [PATCH v2] mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states

2018-07-09 Thread Ulf Hansson
On 5 July 2018 at 16:22, Stefan Agner wrote: > On 05.07.2018 15:10, Ulf Hansson wrote: >> On 4 July 2018 at 17:07, Stefan Agner wrote: >>> If pinctrl nodes for 100/200MHz are missing, the controller should >>> not select any mode which need signal frequencies 100MHz or higher. >>> To prevent

Re: [RESEND PATCH v2 3/9] asm-generic: Move some macros from linux/bitops.h to a new bits.h file

2018-07-09 Thread Will Deacon
Hi Andrew, On Fri, Jul 06, 2018 at 05:30:49PM -0700, Andrew Morton wrote: > On Tue, 19 Jun 2018 13:53:08 +0100 Will Deacon wrote: > > > In preparation for implementing the asm-generic atomic bitops in terms > > of atomic_long_*, we need to prevent asm/atomic.h implementations from > > pulling

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread Peter Zijlstra
On Mon, Jul 09, 2018 at 12:12:15PM +0100, David Woodhouse wrote: > On Mon, 2018-07-09 at 13:06 +0200, Peter Zijlstra wrote: > > On Mon, Jul 09, 2018 at 11:56:41AM +0100, David Woodhouse wrote: > > > > But either proposal is exactly the same in this respect. The whole > > > > rcu_urgent_qs thing

Re: [PATCH v2 0/2] mmc: add SDHCI OF Synopsys DWC MSHC dirver

2018-07-09 Thread Ulf Hansson
On 6 July 2018 at 09:19, Jisheng Zhang wrote: > Add support for Synopsys SDHCI compatible DesignWare Cores Mobile > Storage Host Controller which can support eMMC/SD/SDIO. > > Since v1: > - move the dt bindings into a separate patch > > Jisheng Zhang (2): > dt: bindings: Add bindings for

Re: [patch 4/7] x86/kvmclock: Cleanup the code

2018-07-09 Thread Paolo Bonzini
On 09/07/2018 11:05, Peter Zijlstra wrote: > On Fri, Jul 06, 2018 at 06:13:11PM +0200, Thomas Gleixner wrote: >> -native_write_msr(msr_kvm_wall_clock, low, high); >> +wrmsrl(msr_kvm_wall_clock, slow_virt_to_phys(_clock)); > Does it matter that you went from an explicit native WRMSR

Re: [PATCH] dmaengine: nbpfaxi: Mark expected switch fall-through

2018-07-09 Thread Vinod
On 06-07-18, 06:47, Gustavo A. R. Silva wrote: > Hi Vinod, > > On 07/06/2018 12:56 AM, Vinod wrote: > > On 02-07-18, 13:06, Gustavo A. R. Silva wrote: > >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases > >> where we are expecting to fall through. > >> > >> Signed-off-by:

BUG: sleeping function called from invalid context at mm/slab.h:LINE (4)

2018-07-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d00d6d9a339d Add linux-next specific files for 20180709 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10ad496840 kernel config: https://syzkaller.appspot.com/x/.config?x=94fe2b586beccacd

RE: [PATCH] mei: bus: type promotion bug in mei_nfc_if_version()

2018-07-09 Thread Winkler, Tomas
> > On Wed, Jul 04, 2018 at 12:34:49PM +0300, Dan Carpenter wrote: > > We accidentally removed the check for negative returns without > > considering the issue of type promotion. The "if_version_length" > > variable is type size_t so if __mei_cl_recv() returns a negative then > > "bytes_recv" is

Re: [PATCH v5 7/7] arm64: dts: sdm845: Add tsens nodes

2018-07-09 Thread Amit Kucheria
On Mon, Jul 9, 2018 at 4:57 PM, Amit Kucheria wrote: > SDM845 has two tsens blocks, one with 13 sensors and the other with 8 > sensors. It uses version 2 of the TSENS IP, so use the fallback property to > allow more common code. > > Signed-off-by: Amit Kucheria > --- >

Re: [PATCH v8 00/26] PM / Domains: Support hierarchical CPU arrangement (PSCI/ARM)

2018-07-09 Thread Ulf Hansson
On 3 July 2018 at 09:54, Rafael J. Wysocki wrote: > On Tue, Jul 3, 2018 at 7:44 AM, Ulf Hansson wrote: >> Rafael, >> >> On 20 June 2018 at 19:22, Ulf Hansson wrote: >>> Changes in v8: >>> - Added some tags for reviews and acks. >>> - Cleanup timer patch (patch6) according to comments from

Re: [PATCH] Staging: gdm724x: gdm_tty.c:Fixed Macro argument reuse

2018-07-09 Thread Dan Carpenter
Also, you really should be sending this as a [PATCH v3] with a note under the --- cut off that says "V3: fix From header, and indenting" Google for how to send a v2 patch. regards, dan carpenter

[PATCH v6 0/7] thermal: tsens: Refactoring for TSENSv2 IP

2018-07-09 Thread Amit Kucheria
This series is a mixed bag: - Some code moves to allow code sharing between different SoCs with v2 of the TSENS IP, - a generic qcom,tsens-v2 property as a fallback compatible for all v2.x.y platforms, - new platform support (sdm845) - a cleanup patch and - a DT change to have a common way to

[PATCH v6 1/7] thermal: tsens: Get rid of unused fields in structure

2018-07-09 Thread Amit Kucheria
status_field and trdy are unused in any of the tsens drivers. Remove them. Signed-off-by: Amit Kucheria Reviewed-by: Bjorn Andersson Acked-by: Rajendra Nayak --- drivers/thermal/qcom/tsens.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/thermal/qcom/tsens.h

[PATCH v6 2/7] thermal: tsens: Add support to split up register address space into two

2018-07-09 Thread Amit Kucheria
There are two banks of registers for v2 TSENS IPs: SROT and TM. On older SoCs these were contiguous, leading to DTs mapping them as one register address space of size 0x2000. In newer SoCs, these two banks are not contiguous anymore. Fixing old DTs to split the address space into allows us to

[PATCH v6 4/7] thermal: tsens: Rename tsens-8996 to tsens-v2 for reuse

2018-07-09 Thread Amit Kucheria
The TSENS block inside the 8996 is internally classified as version 2 of the IP. Several other SoC families use this block and can share this code. We rename get_temp() to reflect that it can be used across the v2 family. Signed-off-by: Amit Kucheria --- drivers/thermal/qcom/Makefile

[PATCH v6 7/7] arm64: dts: sdm845: Add tsens nodes

2018-07-09 Thread Amit Kucheria
SDM845 has two tsens blocks, one with 13 sensors and the other with 8 sensors. It uses version 2 of the TSENS IP, so use the fallback property to allow more common code. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 1 file changed, 16 insertions(+)

[PATCH v6 6/7] dt: thermal: tsens: Document the fallback DT property for v2 of TSENS IP

2018-07-09 Thread Amit Kucheria
We want to create common code for v2 of the TSENS IP block that is used in a large number of Qualcomm SoCs. "qcom,tsens-v2" should be able to handle most of the common functionality start with a common get_temp() function. It is also necessary to split out the memory regions for the TM and SROT

[PATCH v6 3/7] dt: qcom: 8996: thermal: Move to DT initialisation

2018-07-09 Thread Amit Kucheria
We also split up the regmap address space into two, one for the TM registers, the other for the SROT registers. This was required to deal with different address offsets for the TM and SROT registers across different SoC families. Since tsens-common.c/init_common() currently only registers one

[PATCH v6 5/7] thermal: tsens: Add generic support for TSENS v2 IP

2018-07-09 Thread Amit Kucheria
SDM845 uses v2 of the TSENS IP block but the get_temp() function appears to be identical across v2.x.y in code seen so far. We use the generic get_temp() function defined as part of ops_generic_v2. Signed-off-by: Amit Kucheria --- drivers/thermal/qcom/tsens-v2.c | 6 +-

Re: [PATCH] printk: remove unnecessary kmalloc() from syslog during clear

2018-07-09 Thread Petr Mladek
On Wed 2018-06-27 17:06:41, Petr Mladek wrote: > On Tue 2018-06-26 10:39:59, Steven Rostedt wrote: > > This looks fine. For proper history though, what I do in this case, > > would be to make this into two patches. One with Namit's original > > patch, and then a second that removes the code

Re: [PATCH v3 05/12] kconfig: make syncconfig update .config regardless of sym_change_count

2018-07-09 Thread Dirk Gouders
Dirk Gouders writes: > Dirk Gouders writes: > >> Masahiro Yamada writes: >> >>> syncconfig updates the .config only when sym_change_count > 0, i.e. >>> any change in config symbols has been detected. >>> >>> Not only symbols but also comments are contained in the .config file. >>> If only

Re: [PATCH v3 6/8] clk: tegra20: Turn EMC clock gate into divider

2018-07-09 Thread Dmitry Osipenko
On Monday, 9 July 2018 03:00:17 MSK Stephen Boyd wrote: > Quoting Dmitry Osipenko (2018-06-17 07:55:37) > > > Kernel should never gate the EMC clock as it causes immediate lockup, so > > removing clk-gate functionality doesn't affect anything. Turning EMC clk > > gate into divider allows to

Re: a question about IP checksum helper for arm64

2018-07-09 Thread Robin Murphy
Hi Bo, On 06/07/18 17:27, Bo Yan wrote: Hi Robin, Luke, Recently I bumped into an error when running GCC undefined behavior sanitizer: UBSAN: Undefined behaviour in kernel-4.9/arch/arm64/include/asm/checksum.h:34:6    load of misaligned address ffc198c8b254 for type 'const

WARNING in cgroup_apply_control_enable

2018-07-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7f93d1295131 Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=11bc56d040 kernel config: https://syzkaller.appspot.com/x/.config?x=2ca6c7a31d407f86

Re: [PATCH] tcp: Added check of destination specific CC before sending syn/ack

2018-07-09 Thread Eric Dumazet
On 07/09/2018 04:25 AM, joakim.mis...@gmail.com wrote: > From: Joakim Misund > > Issue: > Currently TCP stack does not check for a destination specific CC before > responding to a syn with a syn/ack. > The system wide default CC is used. If the default CC does not need ECN, but > the

Re: [PATCH] Staging: gdm724x: gdm_tty.c:Fixed Macro argument reuse

2018-07-09 Thread Greg KH
On Mon, Jul 09, 2018 at 04:27:58PM +0530, Jaya Durga wrote: > From: root Again, wrong address :(

Re: [PATCH 3/5] pinctrl: ingenic: Fix inverted direction for < JZ4770

2018-07-09 Thread Linus Walleij
On Wed, Jun 27, 2018 at 1:49 PM Paul Cercueil wrote: > The .gpio_set_direction() callback was setting inverted direction > for SoCs older than the JZ4770, this restores the correct behaviour. > > Signed-off-by: Paul Cercueil As you pointed out that this was an important fix I picked it out and

Re: [RFC PATCH v4 09/12] sched/fair: Introduce an energy estimation helper function

2018-07-09 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 06:04:44PM +0100, Quentin Perret wrote: > 'max_util' is basically the util we use to request an OPP. 'sum_util' is > how long the CPUs will be running. A indeed. But yes bit of a mess, but it wants doing I think. Perhaps a little something like the below... The alternative

Re: [alsa-devel] [PATCH v3 3/5] ASoC: qcom: add sdm845 sound card support

2018-07-09 Thread Mark Brown
On Mon, Jul 09, 2018 at 05:31:04PM +0530, Rohit Kumar wrote: > On 7/9/2018 4:44 PM, Mark Brown wrote: > > On Fri, Jul 06, 2018 at 03:13:13PM +0530, Rohit kumar wrote: > > > +static const struct component_master_ops sdm845_ops = { > > > + .bind = sdm845_bind, > > > + .unbind = sdm845_unbind, > > >

Re: [PATCH] mei: bus: type promotion bug in mei_nfc_if_version()

2018-07-09 Thread Greg Kroah-Hartman
On Mon, Jul 09, 2018 at 11:36:21AM +, Winkler, Tomas wrote: > > > > On Wed, Jul 04, 2018 at 12:34:49PM +0300, Dan Carpenter wrote: > > > We accidentally removed the check for negative returns without > > > considering the issue of type promotion. The "if_version_length" > > > variable is

Re: [GIT PULL] RTC for 4.18

2018-07-09 Thread Jon Hunter
Hi Alexandre, On 26/06/18 22:31, Alexandre Belloni wrote: > On 26/06/2018 17:54:57+0100, Jon Hunter wrote: >> >> On 26/06/18 17:15, Alexandre Belloni wrote: >>> Hi, >>> >>> On 26/06/2018 16:51:40+0100, Jon Hunter wrote: > rtc: tps6586x: let the core handle rtc range Sorry I am

[PATCH] ACPI: save NVS memory for ASUS 1025C laptop

2018-07-09 Thread Willy Tarreau
Every time I tried to upgrade my laptop from 3.10.x to 4.x I faced an issue by which the fan would run at full speed upon resume. Bisecting it showed me the issue was introduced in 3.17 by commit 821d6f0359b0 (ACPI / sleep: Do not save NVS for new machines to accelerate S3). This code only affects

Re: [PATCH 03/12] staging:rtl8192u: Remove blank lines before '}' and after '{' characters

2018-07-09 Thread Greg KH
On Mon, Jul 09, 2018 at 10:29:54AM +0100, John Whitmore wrote: > On Sun, Jul 08, 2018 at 05:38:11PM +0200, Greg KH wrote: > > On Sat, Jul 07, 2018 at 03:55:04PM +0100, John Whitmore wrote: > > > Coding style change to simply remove the unrequired spaces before a > > > closing > > > brace or

[PATCH] x86/build: remove code effective only for GCC older than 4.0

2018-07-09 Thread Masahiro Yamada
Commit e501ce957a78 ("x86: Force asm-goto") bumped the minimum GCC version to 4.5 for building the x86 kernel. arch/x86/Makefile no longer needs to take care of older GCC versions. Signed-off-by: Masahiro Yamada --- arch/x86/Makefile | 5 - 1 file changed, 5 deletions(-) diff --git

Re: [PATCH 0/5] pinctrl_gpio_get_direction & ingenic fixes

2018-07-09 Thread Linus Walleij
Hi folks, On Wed, Jun 27, 2018 at 7:18 PM Andy Shevchenko wrote: > Even if GPIO and pin muxing has only one set of buffers to indicate > input or output (same registers in use) it's a GPIO driver business to > get direction from GPIO part of IP. > > Looking into the existing code I would rather

Re: [PATCH v6 10/21] s390: vfio-ap: sysfs interfaces to configure adapters

2018-07-09 Thread Pierre Morel
On 29/06/2018 23:11, Tony Krowiak wrote: Provides the sysfs interfaces for assigning AP adapters to and unassigning AP adapters from a mediated matrix device. The IDs of the AP adapters assigned to the mediated matrix device are stored in an AP mask (APM). The bits in the APM, from most

Re: Applied "regulator: core: Link consumer with regulator driver" to the regulator tree

2018-07-09 Thread Benjamin Gaignard
+ Rafael 2018-07-09 13:17 GMT+02:00 Marek Szyprowski : > Dear All, > > On 2018-07-05 19:55, Mark Brown wrote: >> The patch >> >> regulator: core: Link consumer with regulator driver >> >> has been applied to the regulator tree at >> >>

Re: [PATCH v6 11/21] s390: vfio-ap: sysfs interfaces to configure domains

2018-07-09 Thread Pierre Morel
On 29/06/2018 23:11, Tony Krowiak wrote: Provides the sysfs interfaces for assigning AP domains to and unassigning AP domains from a mediated matrix device. An AP domain ID corresponds to an AP queue index (APQI). For each domain assigned to the mediated matrix device, its corresponging APQI is

Re: [PATCH] i2c-hid: Fix "incomplete report" noise

2018-07-09 Thread Jason Andryuk
Ping? The logging here is very excessive. If not this change, then some other change is needed to cut down on the sheer quantity of messages. Thanks, Jason On Fri, Jun 22, 2018 at 12:25 PM, Jason Andryuk wrote: > Commit ac75a041048b ("HID: i2c-hid: fix size check and type usage") > started

Re: [GIT PULL] RTC for 4.18

2018-07-09 Thread Alexandre Belloni
On 09/07/2018 13:04:36+0100, Jon Hunter wrote: > > Ok, I probably found the issue but the fix is not immediate. I'll try to > > post something tomorrow. > > Sorry if I missed it, but did you send a fix for this? > Not yet, I'll keep you copied. I was missing the serial cable of my T20 board

Re: [PATCH 0/5] pinctrl_gpio_get_direction & ingenic fixes

2018-07-09 Thread Linus Walleij
On Thu, Jun 28, 2018 at 9:11 PM Paul Cercueil wrote: > Sure, it'd be pretty straightforward to do it from the GPIO driver, but > I'd still like to hear Linus' point of view about this. I'm not sure about it, I guess it would be my second choice. > As for merging pinctrl-ingenic.c and

[PATCH v3 4/4] clk: tegra: make sdmmc2 and sdmmc4 as sdmmc clocks

2018-07-09 Thread Aapo Vienamo
From: Peter De-Schrijver These clocks have low jitter paths to certain parents. To model these correctly, use the sdmmc mux divider clock type. Signed-off-by: Peter De-Schrijver Signed-off-by: Aapo Vienamo Acked-by: Peter De Schrijver --- drivers/clk/tegra/clk-id.h | 2 --

[PATCH v3 1/4] clk: tegra: Fix includes required by fence_udelay()

2018-07-09 Thread Aapo Vienamo
Add the missing linux/delay.h include statement for udelay() used by fence_udelay() macro. Signed-off-by: Aapo Vienamo --- drivers/clk/tegra/clk.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/tegra/clk.h b/drivers/clk/tegra/clk.h index e1f8846..e3b9c22 100644 ---

[PATCH v3 3/4] clk: tegra: Add sdmmc mux divider clock

2018-07-09 Thread Aapo Vienamo
From: Peter De-Schrijver Add a clock type to model the sdmmc switch divider clocks which have paths to source clocks bypassing the divider (Low Jitter paths). These are handled by selecting the lj path when the divider is 1 (ie the rate is the parent rate), otherwise the normal path with divider

[PATCH v3 2/4] clk: tegra: refactor 7.1 div calculation

2018-07-09 Thread Aapo Vienamo
From: Peter De Schrijver Move this to a separate file so it can be used to calculate the sdmmc clock dividers. Signed-off-by: Peter De-Schrijver Signed-off-by: Aapo Vienamo Acked-by: Peter De Schrijver --- drivers/clk/tegra/Makefile | 1 + drivers/clk/tegra/clk-divider.c | 30

Re: [PATCH v2] firmware/psci: add support for SYSTEM_RESET2

2018-07-09 Thread Michal Simek
Hi Sudeep, On 2.5.2018 12:30, Sudeep Holla wrote: > PSCI v1.1 introduced SYSTEM_RESET2 to allow both architectural resets > where the semantics are described by the PSCI specification itself as > well as vendor-specific resets. Currently only system warm reset > semantics is defined as part of

[PATCH] arm64: neon: Add preemption protection for kernel_neon_busy

2018-07-09 Thread Yandong.Zhao
From: Yandong Zhao Dear Dave, The scenario for this bug is: The A process is sched out when the CPU0 executes the function raw_cpu_read(kernel_neon_busy) and just gets the address of kernel_neon_busy without reading. The B process starts running kernel_neon_begin() on CPU0, and the variable

Re: [GIT PULL 1/4] bcm2835-dt-next-2018-07-03

2018-07-09 Thread Florian Fainelli
On 07/03/2018 01:05 PM, Eric Anholt wrote: > Hi Florian, > > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) > > are available in the Git repository at: > > git://github.com/anholt/linux

[PATCH 1/2] mm/cma: remove unsupported gfp_mask parameter from cma_alloc()

2018-07-09 Thread Marek Szyprowski
cma_alloc() function doesn't really support gfp flags other than __GFP_NOWARN, so convert gfp_mask parameter to boolean no_warn parameter. This will help to avoid giving false feeling that this function supports standard gfp flags and callers can pass __GFP_ZERO to get zeroed buffer, what has

[PATCH 0/2] CMA: remove unsupported gfp mask parameter

2018-07-09 Thread Marek Szyprowski
Dear All, The CMA related functions cma_alloc() and dma_alloc_from_contiguous() have gfp mask parameter, but sadly they only support __GFP_NOWARN flag. This gave their users a misleading feeling that any standard memory allocation flags are supported, what resulted in the security issue when

Re: [PATCH v6 13/21] s390: vfio-ap: sysfs interface to view matrix mdev matrix

2018-07-09 Thread Pierre Morel
On 29/06/2018 23:11, Tony Krowiak wrote: Provides a sysfs interface to view the AP matrix configured for the mediated matrix device. The relevant sysfs structures are: /sys/devices/vfio_ap ... [matrix] .. [mdev_supported_types] . [vfio_ap-passthrough] [devices]

Re: [PATCH v2] IB/mlx5: fix uaccess beyond "count" in debugfs read/write handlers

2018-07-09 Thread Jann Horn
On Sun, Jul 8, 2018 at 8:56 AM Leon Romanovsky wrote: > > On Fri, Jul 06, 2018 at 10:48:03PM +0200, Jann Horn wrote: > > In general, accessing userspace memory beyond the length of the supplied > > buffer in VFS read/write handlers can lead to both kernel memory corruption > > (via

[PATCH v2 2/2] ARM: dts: imx6sl: Convert gpc to new bindings

2018-07-09 Thread Leonard Crestez
With old bindings imx_gpc_onecell_data always sets num_domains to 2 so the DISPMIX domain can't actually be referenced. The pd is still defined and pm core shuts it down as "unused" so display can't work. Fix this by converting to new gpc bindings by adding pgc nodes and referencing the

[PATCH v2 0/2] Fix imx6sl display power domain

2018-07-09 Thread Leonard Crestez
Right now the imx6sl display power domain is automatically shut down during boot so lcd doesn't work at all. This has been broken for a while with old gpc bindings, since nobody noticed fix by converting to new bindings. Link to v1: https://lkml.org/lkml/2018/6/5/689 There is also a nasty errata

[PATCH v2 1/2] soc: imx: gpc: Disable 6sl display power gating for ERR006287

2018-07-09 Thread Leonard Crestez
The imx6sl chip errata document describes ERR006287 like this: """ Upon resuming from power gating, the modules in the display power domain (eLCDIF, EPDC, PXP and SPDC) might fail to perform register reads correctly. When the modules listed above are used, do not use power gating on the display

Re: [PATCH] ARM: dts: qcom: msm8974-hammerhead: increase load on l20 for sdhci

2018-07-09 Thread Bhushan Shah
Hi, On Mon, Jul 09, 2018 at 02:46:28PM +0530, Bhushan Shah wrote: > The kernel would not boot on the hammerhead hardware due to the > following error: > > mmc0: Timeout waiting for hardware interrupt. > mmc0: sdhci: SDHCI REGISTER DUMP === > mmc0: sdhci: Sys addr:

Re: [GIT PULL 4/4] bcm2835-defconfig-64-next-2018-07-03

2018-07-09 Thread Florian Fainelli
On 07/03/2018 01:05 PM, Eric Anholt wrote: > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) > > are available in the Git repository at: > > git://github.com/anholt/linux tags/bcm2835-defconfig-64-next-2018-07-03

Re: [GIT PULL 3/4] bcm2835-defconfig-next-2018-07-03

2018-07-09 Thread Florian Fainelli
On 07/03/2018 01:05 PM, Eric Anholt wrote: > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) > > are available in the Git repository at: > > git://github.com/anholt/linux tags/bcm2835-defconfig-next-2018-07-03 >

Re: [PATCH] locking/lockdep: Report comm/pid/timestamp information

2018-07-09 Thread Eugeniu Rosca
On Mon, Jul 09, 2018 at 10:31:18AM +0200, Peter Zijlstra wrote: > On Mon, Jul 09, 2018 at 02:57:25AM +0200, Eugeniu Rosca wrote: > > diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h > > index 6fc77d4dbdcd..eeed7ea2e198 100644 > > --- a/include/linux/lockdep.h > > +++

Re: [GIT PULL 2/4] bcm2835-drivers-next-2018-07-03

2018-07-09 Thread Florian Fainelli
On 07/03/2018 01:05 PM, Eric Anholt wrote: > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) > > are available in the Git repository at: > > git://github.com/anholt/linux tags/bcm2835-drivers-next-2018-07-03 > >

Re: Applied "regulator: core: Link consumer with regulator driver" to the regulator tree

2018-07-09 Thread Mark Brown
On Mon, Jul 09, 2018 at 02:13:35PM +0200, Benjamin Gaignard wrote: > 2018-07-09 13:17 GMT+02:00 Marek Szyprowski : > > [ cut here ] > > WARNING: CPU: 1 PID: 1 at drivers/base/core.c:108 > > device_is_dependent+0xa4/0xb4 > > Modules linked in: > > CPU: 1 PID: 1 Comm:

Re: [PATCH] i2c-hid: Fix "incomplete report" noise

2018-07-09 Thread Jiri Kosina
On Fri, 22 Jun 2018, Jason Andryuk wrote: > Commit ac75a041048b ("HID: i2c-hid: fix size check and type usage") > started writing messages when the ret_size is <= 2 from i2c_master_recv. > However, my device i2c-DLL07D1 returns 2 for a short period of time > (~0.5s) after I stop moving the

Re: [PATCH v3 15/20] kvm: arm/arm64: Allow tuning the physical address size for VM

2018-07-09 Thread Marc Zyngier
On 09/07/18 12:23, Dave Martin wrote: > On Fri, Jul 06, 2018 at 05:39:00PM +0100, Suzuki K Poulose wrote: >> On 07/06/2018 04:09 PM, Marc Zyngier wrote: >>> On 06/07/18 14:49, Suzuki K Poulose wrote: On 04/07/18 23:03, Suzuki K Poulose wrote: > On 07/04/2018 04:51 PM, Will Deacon wrote:

Re: [PATCH 07/18] fs_context: fix double free of legacy_fs_context data

2018-07-09 Thread David Howells
Eric Biggers wrote: > sys_fsmount() calls fc->ops->free() to free the data, zeroes > ->fs_private, then proceeds to reuse the context. But legacy_fs_context > doesn't use ->fs_private, so we need to handle zeroing it too; otherwise > there's a double free of

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread Paul E. McKenney
On Mon, Jul 09, 2018 at 01:06:57PM +0200, Peter Zijlstra wrote: > On Mon, Jul 09, 2018 at 11:56:41AM +0100, David Woodhouse wrote: > > > > But either proposal is exactly the same in this respect. The whole > > > rcu_urgent_qs thing won't be set any earlier either. > > > > Er Marius, our

Re: [PATCH v3 3/5] ASoC: qcom: add sdm845 sound card support

2018-07-09 Thread Srinivas Kandagatla
On 09/07/18 12:14, Mark Brown wrote: +static const struct component_master_ops sdm845_ops = { + .bind = sdm845_bind, + .unbind = sdm845_unbind, +}; Why is this using the component stuff rather than the normal support for finding the components of audio cards? Could you elaborate

Re: [patch v3] mm, oom: fix unnecessary killing of additional processes

2018-07-09 Thread Michal Hocko
On Fri 06-07-18 17:05:39, David Rientjes wrote: [...] > Blockable mmu notifiers and mlocked memory is not the extent of the > problem, if a process has a lot of virtual memory we must wait until > free_pgtables() completes in exit_mmap() to prevent unnecessary oom > killing. For

Re: [PATCH v2] firmware/psci: add support for SYSTEM_RESET2

2018-07-09 Thread Sudeep Holla
On 09/07/18 13:17, Michal Simek wrote: > Hi Sudeep, > > On 2.5.2018 12:30, Sudeep Holla wrote: >> PSCI v1.1 introduced SYSTEM_RESET2 to allow both architectural resets >> where the semantics are described by the PSCI specification itself as >> well as vendor-specific resets. Currently only

Re: [PATCH v3 3/5] ASoC: qcom: add sdm845 sound card support

2018-07-09 Thread Mark Brown
On Mon, Jul 09, 2018 at 01:34:42PM +0100, Srinivas Kandagatla wrote: > On 09/07/18 12:14, Mark Brown wrote: > > > +static const struct component_master_ops sdm845_ops = { > > > + .bind = sdm845_bind, > > > + .unbind = sdm845_unbind, > > > +}; > > Why is this using the component stuff rather than

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread David Woodhouse
On Mon, 2018-07-09 at 05:34 -0700, Paul E. McKenney wrote: > The reason that David's latencies went from 100ms to one second is > because I made this code less aggressive about invoking resched_cpu(). Ten seconds. We saw synchronize_sched() take ten seconds in 4.15. We wouldn't have been happy

Re: [PATCH v3 3/5] ASoC: qcom: add sdm845 sound card support

2018-07-09 Thread Srinivas Kandagatla
On 09/07/18 13:41, Mark Brown wrote: This is not the case, the card will be unbound at the ASoC level when any of the components are removed and then probed again when they reappear. I will give that a try now! --srini

[PATCH] Staging: gdm724x: gdm_tty.c:Fixed Macro argument reuse

2018-07-09 Thread Jaya Durga
From: root CHECK: Macro argument reuse 'gdm' - possible side-effects? convert GDM_TTY_READY to gdm_tty_ready static function to fix checkpath check Signed-off-by: Jaya Durga --- drivers/staging/gdm724x/gdm_tty.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git

[GIT PULL] HID fixes

2018-07-09 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive HID subsystem fixes: = - spectrev1 pattern fix in hiddev from Gustavo A. R. Silva - Bounds check fix for hid-debug from Daniel Rosenberg - Regression fix for HID autobinding from

[PATCH] regulator: core: Don't link consumers on the same device

2018-07-09 Thread Mark Brown
In some cases a device may end up supplying itself, for example when a DCDC is used to improve the efficiency of LDOs or when a LDO is provided to clean up sensitive supplies. In these cases the driver core will warn loudly about attempts to add links so suppress them here. Reported-by: Marek

Re: BUG: corrupted list in cpu_stop_queue_work

2018-07-09 Thread Tetsuo Handa
Hello Matthew, It seems to me that there are other locations which do not check xas_store() failure. Is that really OK? If they are OK, I think we want a comment like /* This never fails. */ or /* Failure is OK because ... */ for each call without failure check. >From

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread Peter Zijlstra
On Mon, Jul 09, 2018 at 05:34:57AM -0700, Paul E. McKenney wrote: > But KVM defeats this by checking need_resched() before invoking > cond_resched(). That's not wrong or even uncommon I think.

Re: [PATCH 0/3] clk: meson: add gen_clk

2018-07-09 Thread Jerome Brunet
On Wed, 2018-07-04 at 18:54 +0200, Jerome Brunet wrote: > Jerome Brunet (3): > clk: meson: gxbb: remove HHI_GEN_CLK_CTNL duplicate definition > clk: meson: expose GEN_CLK clkid > clk: meson: add gen_clk Applied

Re: [PATCH] Staging: gdm724x: gdm_tty.c:Fixed Macro argument reuse

2018-07-09 Thread Dan Carpenter
I don't understand why you have sent this patch four times. Are you a script which has a bug? Please answer us so that we know you are a human being. regards, dan carpenter

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread David Woodhouse
On Mon, 2018-07-09 at 14:55 +0200, Peter Zijlstra wrote: > On Mon, Jul 09, 2018 at 05:34:57AM -0700, Paul E. McKenney wrote: > > But KVM defeats this by checking need_resched() before invoking > > cond_resched(). > > That's not wrong or even uncommon I think. Right. Which is precisely why I

Re: [PATCHv3 0/5] pinctrl fixes for generic functions and groups

2018-07-09 Thread Linus Walleij
On Thu, Jul 5, 2018 at 11:10 AM Tony Lindgren wrote: > Here is a resend of fixes for a race issues for generic group and > functions reported by H. Nikolaus Schaller . I applied these 5 for fixes (no choice I guess) will push them to the zeroday build for testing and then to next. Added the

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread Peter Zijlstra
On Mon, Jul 09, 2018 at 02:55:16PM +0200, Peter Zijlstra wrote: > On Mon, Jul 09, 2018 at 05:34:57AM -0700, Paul E. McKenney wrote: > > But KVM defeats this by checking need_resched() before invoking > > cond_resched(). > > That's not wrong or even uncommon I think. In fact, I think we recently

Re: [PATCH] Staging: gdm724x: gdm_tty.c:Fixed Macro argument reuse

2018-07-09 Thread Jaya Durga
Hi , I have updated the patch --subject-prefix="PATCH v3" and made the commit as per your suggestion , i don't know why does the script doesn't update my changes,will try to sort out the issue , sorry for the inconvenience. Regards, Jaya Durga On Mon, Jul 9, 2018 at 6:26 PM, Dan Carpenter

Re: [PATCH V2] bindings: add clocks optional binding for imx gpio

2018-07-09 Thread Linus Walleij
On Tue, Jul 3, 2018 at 3:22 AM Anson Huang wrote: > Some i.MX SoCs have GPIO clock gate in CCM, accessing > GPIO registers needs to enable GPIO clock gate first, > i.MX GPIO driver will enable clock gate if there is > clock property in GPIO node of dtb, add optional property > to i.MX GPIO

Re: [PATCHv3 0/5] pinctrl fixes for generic functions and groups

2018-07-09 Thread Tony Lindgren
* Linus Walleij [180709 13:02]: > On Thu, Jul 5, 2018 at 11:10 AM Tony Lindgren wrote: > > > Here is a resend of fixes for a race issues for generic group and > > functions reported by H. Nikolaus Schaller . > > I applied these 5 for fixes (no choice I guess) will push them to the > zeroday

Re: [PATCH v2] firmware/psci: add support for SYSTEM_RESET2

2018-07-09 Thread Michal Simek
On 9.7.2018 14:36, Sudeep Holla wrote: > > > On 09/07/18 13:17, Michal Simek wrote: >> Hi Sudeep, >> >> On 2.5.2018 12:30, Sudeep Holla wrote: >>> PSCI v1.1 introduced SYSTEM_RESET2 to allow both architectural resets >>> where the semantics are described by the PSCI specification itself as >>>

Re: [PATCH v2] gpiolib: Defer on non-DT find_chip_by_name() failure

2018-07-09 Thread Linus Walleij
On Wed, Jul 4, 2018 at 12:18 AM Janusz Krzysztofik wrote: > Avoid replication of error code conversion in non-DT GPIO consumers' > code by returning -EPROBE_DEFER from gpiod_find() in case a chip > identified by its label in a registered lookup table is not ready. > > See

RE: [PATCH] x86: Avoid pr_cont() in show_opcodes()

2018-07-09 Thread David Laight
From: Peter Zijlstra > Sent: 09 July 2018 09:50 > On Sat, Jul 07, 2018 at 10:54:28PM +0900, Tetsuo Handa wrote: > > >> Since syzbot is confused by concurrent printk() messages [1], > > >> this patch changes show_opcodes() to use snprintf(). snprintf() is probably the wrong function. You want the

Re: [PATCH V2] mmc: core: cd_label must be last entry of mmc_gpio struct

2018-07-09 Thread Linus Walleij
On Tue, Jul 3, 2018 at 7:35 AM Ulf Hansson wrote: > On 3 July 2018 at 04:25, Fabio Estevam wrote: > > On Mon, Jul 2, 2018 at 11:13 PM, Anson Huang wrote: > > > >> I think either way is OK, since flexible array is used in kernel code > >> quite commonly, > >> so I prefer to make code change as

[PATCH] ext4: use swap macro in mext_page_double_lock

2018-07-09 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variable *tmp*. This makes the code easier to read and maintain. Also, reduces the stack usage. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- fs/ext4/move_extent.c | 4 +--- 1 file changed, 1

Re: [PATCH v2] firmware/psci: add support for SYSTEM_RESET2

2018-07-09 Thread Sudeep Holla
On 09/07/18 14:13, Michal Simek wrote: > On 9.7.2018 14:36, Sudeep Holla wrote: >> >> >> On 09/07/18 13:17, Michal Simek wrote: >>> Hi Sudeep, >>> >>> On 2.5.2018 12:30, Sudeep Holla wrote: PSCI v1.1 introduced SYSTEM_RESET2 to allow both architectural resets where the semantics are

INFO: task hung in vfs_setxattr

2018-07-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d00d6d9a339d Add linux-next specific files for 20180709 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1414611c40 kernel config: https://syzkaller.appspot.com/x/.config?x=94fe2b586beccacd

Re: [PATCH v2 0/3] printk: Deadlock in NMI regression

2018-07-09 Thread Petr Mladek
On Wed 2018-06-27 16:08:14, Petr Mladek wrote: > The commit 719f6a7040f1bdaf96 ("printk: Use the main logbuf in NMI > when logbuf_lock is available") brought back the possible deadlocks > in printk() and NMI. > > This is rework of the proposed fix, see >

Re: [PATCH 4.14 00/61] 4.14.54-stable review

2018-07-09 Thread Guenter Roeck
On Sun, Jul 08, 2018 at 03:29:00PM +0200, Greg Kroah-Hartman wrote: > On Sat, Jul 07, 2018 at 02:39:38PM -0700, Guenter Roeck wrote: > > On Fri, Jul 06, 2018 at 07:46:24AM +0200, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 4.14.54 release. > > > There are

Re: [PATCH v5 4/5] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-07-09 Thread Codrin Ciubotariu
On 06.07.2018 22:39, Alexandre Belloni wrote: Hi Codrin, On 18/06/2018 17:12:38+0300, Codrin Ciubotariu wrote: From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added

Re: INFO: task hung in vfs_setxattr

2018-07-09 Thread Dmitry Vyukov
On Mon, Jul 9, 2018 at 3:25 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:d00d6d9a339d Add linux-next specific files for 20180709 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1414611c4

Re: BUG: corrupted list in cpu_stop_queue_work

2018-07-09 Thread Matthew Wilcox
On Mon, Jul 09, 2018 at 09:55:17PM +0900, Tetsuo Handa wrote: > Hello Matthew, > > It seems to me that there are other locations which do not check xas_store() > failure. Is that really OK? If they are OK, I think we want a comment like > /* This never fails. */ or /* Failure is OK because ... */

Re: [PATCH] regulator: core: Don't link consumers on the same device

2018-07-09 Thread Marek Szyprowski
Hi Mark, On 2018-07-09 14:54, Mark Brown wrote: > In some cases a device may end up supplying itself, for example when a > DCDC is used to improve the efficiency of LDOs or when a LDO is provided > to clean up sensitive supplies. In these cases the driver core will > warn loudly about attempts

<    6   7   8   9   10   11   12   13   14   15   >