Re: [PATCH -next v3] mtd: spinand: fix missing unlock on error

2018-07-05 Thread Miquel Raynal
Hi Wei, Wei Yongjun wrote on Wed, 4 Jul 2018 09:30:27 +: > Add the missing unlock before return from function > spinand_mtd_(read|write) in the error handling case. > > Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI > NANDs") > Signed-off-by: Wei Yongjun > --- Th

[PATCH 02/13] mm: Enable asynchronous __add_pages() and vmemmap_populate_hugepages()

2018-07-05 Thread Dan Williams
In preparation for allowing all ZONE_DEVICE page init to happen in the background, enable multiple vmemmap_populate_hugepages() invocations to run in parallel. To date the big memory-hotplug lock has been used to serialize changes to the linear map and vmemmap. Finer grained locking is needed to p

[PATCH 07/13] nvdimm/pmem-dax: check the validity of the pointer pfn

2018-07-05 Thread Dan Williams
From: Huaisheng Ye direct_access needs to check the validity of pointer pfn for NULL assignment. If pfn equals to NULL, it doesn't need to calculate the value. Suggested-by: Dan Williams Signed-off-by: Huaisheng Ye Reviewed-by: Jan Kara Signed-off-by: Dan Williams --- tools/testing/nvdimm/p

Re: [PATCH] x86/asm/memcpy_mcsafe: Fix copy_to_user_mcsafe() exception handling

2018-07-05 Thread Ingo Molnar
* Dan Williams wrote: > On Wed, Jul 4, 2018 at 3:38 PM, Al Viro wrote: > > On Tue, Jul 03, 2018 at 10:30:40AM +0200, Ingo Molnar wrote: > >> > >> * Dan Williams wrote: > >> > >> > Hi Ingo, > >> > > >> > Here is an additional copy_to_iter_mcsafe() fix to address the crash > >> > reported by Ro

Re: [PATCH] mtd: spinand: Use 2-factor allocator calls

2018-07-05 Thread Miquel Raynal
Hello, Kees Cook wrote on Wed, 4 Jul 2018 10:27:59 -0700: > As already done treewide, switch from open-coded multiplication to using > 2-factor allocator helpers. > > Signed-off-by: Kees Cook > --- Indeed, we'll be more careful about this in the future. As this code has not been merged upstr

[REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-05 Thread Takashi Iwai
Hi, we've got a regression report since 4.17 about the behavior of power-off with the power button. When a machine is powered off with the power button on desktop, it reboots after a few seconds instead of power down. The manual power down via "systemctl poweroff" works fine, so it's possibly so

Re: [PATCH v2] x86-64: use 32-bit XOR to zero registers

2018-07-05 Thread Ingo Molnar
* Pavel Machek wrote: > On Mon 2018-07-02 04:31:54, Jan Beulich wrote: > > Some Intel CPUs don't recognize 64-bit XORs as zeroing idioms. Zeroing > > idioms don't require execution bandwidth, as they're being taken care > > of in the frontend (through register renaming). Use 32-bit XORs instead

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-05 Thread Mike Rapoport
On Wed, Jul 04, 2018 at 10:22:32AM -0700, Joe Perches wrote: > On Wed, 2018-07-04 at 10:03 +0300, Mike Rapoport wrote: > > On Tue, Jul 03, 2018 at 01:24:07PM -0700, Joe Perches wrote: > > > On Tue, 2018-07-03 at 12:57 -0700, Andrew Morton wrote: > > > > Did you see all this checkpatch noise? > > >

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

2018-07-05 Thread Stefan Agner
On 05.07.2018 04:40, A.s. Dong wrote: >> -Original Message- >> From: Stefan Agner [mailto:ste...@agner.ch] >> Sent: Wednesday, July 4, 2018 11:08 PM >> To: adrian.hun...@intel.com; ulf.hans...@linaro.org >> Cc: Fabio Estevam ; Bough Chen >> ; A.s. Dong ; >> mich...@amarulasolutions.com; rmk

Re: [PATCH 4.16 234/279] x86/pkeys/selftests: Adjust the self-test to fresh distros that export the pkeys ABI

2018-07-05 Thread Ingo Molnar
* Michael Ellerman wrote: > Greg Kroah-Hartman writes: > > > On Tue, Jul 03, 2018 at 01:36:43PM +0200, Vlastimil Babka wrote: > >> On 06/18/2018 10:13 AM, Greg Kroah-Hartman wrote: > >> > 4.16-stable review patch. If anyone has any objections, please let me > >> > know. > >> > >> So I was

Re: [RFC PATCH v2 1/6] mtd: spi-nor: atmel-quaspi: Typo fix

2018-07-05 Thread Piotr Bugalski
Hi Alexandre, Thank you for you comment. On Tue, 3 Jul 2018, Alexandre Belloni wrote: Hi, On 27/06/2018 15:16:04+0200, Piotr Bugalski wrote: Just minor typo fix. Fixed in preparation of new driver. Signed-off: Piotr Bugalski This SoB line must match the author. It doesn't matter which

Re: [BUG] Serial/dma stall/failure after "dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)"

2018-07-05 Thread Vinod
On 04-07-18, 10:54, Krzysztof Kozlowski wrote: > Hi, > > The commit 6ad069123f03bebe4315dea13d44845854ca6043 ("dmaengine: > fsl-edma: extract common fsl-edma code (no changes in behavior > intended)"), even though marked as no changes in behavior intended... > make serial console with DMA broken a

Re: [BUG] Serial/dma stall/failure after "dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)"

2018-07-05 Thread Vinod
On 04-07-18, 18:10, Randy Dunlap wrote: > On 07/04/18 01:54, Krzysztof Kozlowski wrote: > > BTW, there is also this warning in linux-next: > WARNING: modpost: missing MODULE_LICENSE() in drivers/dma/fsl-edma-common.o That has been fixed. -- ~Vinod

[PATCH v9 0/2] mfd/regulator/clk/input: bd71837: ROHM BD71837 PMIC driver

2018-07-05 Thread Matti Vaittinen
Patch series adding support for ROHM BD71837 PMIC. BD71837 is a programmable Power Management IC for powering single-core, dual-core, and quad-core SoC’s such as NXP-i.MX 8M. It is optimized for low BOM cost and compact solution footprint. It integrates 8 buck regulators and 7 LDO’s to provide all

[PATCH v9 1/2] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-07-05 Thread Matti Vaittinen
ROHM BD71837 PMIC MFD driver providing interrupts and support for three subsystems: - clk - Regulators - input/power-key Signed-off-by: Matti Vaittinen --- drivers/mfd/Kconfig | 13 ++ drivers/mfd/Makefile| 1 + drivers/mfd/bd71837.c | 215 inclu

[PATCH v9 2/2] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC

2018-07-05 Thread Matti Vaittinen
Document devicetree bindings for ROHM BD71837 PMIC MFD. Signed-off-by: Matti Vaittinen Reviewed-by: Rob Herring --- .../devicetree/bindings/mfd/rohm,bd71837-pmic.txt | 67 ++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd7

Re: [PATCH v2] sched/fair: Fix util_avg of new tasks for asymmetric systems

2018-07-05 Thread Quentin Perret
Hi, On Tuesday 12 Jun 2018 at 12:22:15 (+0100), Quentin Perret wrote: > When a new task wakes-up for the first time, its initial utilization > is set to half of the spare capacity of its CPU. The current > implementation of post_init_entity_util_avg() uses SCHED_CAPACITY_SCALE > directly as a capa

Re: [PATCH v7 1/4] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-07-05 Thread Matti Vaittinen
On Wed, Jul 04, 2018 at 06:57:39PM +0200, Enric Balletbo Serra wrote: > Missatge de Dmitry Torokhov del dia dc., 4 > de jul. 2018 a les 17:10: > > > > Hi Enric, > > > > On Tue, Jun 26, 2018 at 11:06:33AM +0200, Enric Balletbo Serra wrote: > > > Hi Matti, > > > > > > Thanks for the patch, a few com

Re: [PATCH v9 1/2] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-07-05 Thread Enric Balletbo Serra
Hi Matti, Missatge de Matti Vaittinen del dia dj., 5 de jul. 2018 a les 9:46: > > ROHM BD71837 PMIC MFD driver providing interrupts and support > for three subsystems: > - clk > - Regulators > - input/power-key > > Signed-off-by: Matti Vaittinen > --- > drivers/mfd/Kconfig | 13 ++ > dr

Re: [PATCH] checkpatch: Add warnings for use of mdelay()

2018-07-05 Thread Dan Carpenter
Neither Smatch nor Coccinelle do a good job tracking when you're in atomic context. I've wanted to add this to Smatch but even then it would be to warn that "We're holding a spinlock so we can't sleep". It's trickier to say for sure when you're not holding a lock... regards, dan carpenter

Re: [BUG] Serial/dma stall/failure after "dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)"

2018-07-05 Thread Angelo Dureghello
Hi Vinod, On Thu, Jul 05, 2018 at 01:05:52PM +0530, Vinod wrote: > On 04-07-18, 10:54, Krzysztof Kozlowski wrote: > > Hi, > > > > The commit 6ad069123f03bebe4315dea13d44845854ca6043 ("dmaengine: > > fsl-edma: extract common fsl-edma code (no changes in behavior > > intended)"), even though marked

Re: [PATCH] x86/numa_emulation: Fix uniform size build failure

2018-07-05 Thread Ingo Molnar
* Dan Williams wrote: > The calculation of a uniform numa-node size attempted to perform > division with a 64-bit diviser leading to the following failure on > 32-bit: > > arch/x86/mm/numa_emulation.o: In function > `split_nodes_size_interleave_uniform': > arch/x86/mm/numa_emulation.c

Re: Charge counter on droid 4

2018-07-05 Thread Tony Lindgren
* Pavel Machek [180704 19:59]: > On Mon 2018-06-18 04:48:32, Tony Lindgren wrote: > > * Pavel Machek [180618 09:37]: > > > On Mon 2018-06-18 01:28:58, Tony Lindgren wrote: > > > > * Pavel Machek [180618 07:43]: > > > > > > > > > > So... there are mA, mAh values. Those come from hardware, and I

Re: [PATCH 1/4] rtc: omap: fix potential crash on power off

2018-07-05 Thread Tony Lindgren
* Johan Hovold [180704 09:09]: > Do not set the system power-off callback and omap power-off rtc pointer > until we're done setting up our device to avoid leaving stale pointers > around after a late probe error. > > Fixes: 97ea1906b3c2 ("rtc: omap: Support ext_wakeup configuration") > Cc: stable

Re: [PATCH 2/6] ipc: reorganize initialization of kern_ipc_perm.seq

2018-07-05 Thread Dmitry Vyukov
On Thu, Jul 5, 2018 at 7:59 AM, Manfred Spraul wrote: > ipc_addid() initializes kern_ipc_perm.seq after having called > ipc_idr_alloc(). > > Thus a parallel semop() or msgrcv() that uses ipc_obtain_object_check() > may see an uninitialized value. > > The patch moves the initialization of kern_ipc_

Re: [PATCH 2/2] arm64: dts: hi6220: Add all CPUs in cooling maps

2018-07-05 Thread Daniel Lezcano
On 05/07/2018 07:09, Viresh Kumar wrote: > Each CPU can (and does) participate in cooling down the system but the > DT only captures the CPU0 in the cooling maps. Things work by chance as > under normal circumstances its the CPU0 which is used by the operating > systems to probe the cooling devices

Re: [PATCH] AF_ALG: register completely initialized request in list

2018-07-05 Thread Dmitry Vyukov
On Thu, Jul 5, 2018 at 9:49 AM, Stephan Müller wrote: > Am Donnerstag, 5. Juli 2018, 01:37:57 CEST schrieb Eric Biggers: > > Hi Eric, > >> On Mon, Apr 09, 2018 at 09:54:12AM +0200, Stephan Mueller wrote: >> > Am Montag, 9. April 2018, 09:51:13 CEST schrieb Dmitry Vyukov: >> > >> > Hi Dmitry, >> >

RE: [PATCH -next v3] mtd: spinand: fix missing unlock on error

2018-07-05 Thread weiyongjun (A)
> > Hi Wei, > > Wei Yongjun wrote on Wed, 4 Jul 2018 > 09:30:27 > +: > > > Add the missing unlock before return from function > > spinand_mtd_(read|write) in the error handling case. > > > > Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI > NANDs") > > Signed-off-by:

Re: [PATCH] bus: ti-sysc: Use 2-factor allocator calls

2018-07-05 Thread Tony Lindgren
Hi, * Kees Cook [180704 17:29]: > As done treewide already, switch from open-coded multiplication to the > 2-factor allocation helpers. I just sent a pull request for your previous version of this patch with you in Cc. Regards, Tony

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

2018-07-05 Thread Tony Lindgren
* Linus Walleij [180628 13:57]: > On Tue, Jun 19, 2018 at 11:31 AM Tony Lindgren wrote: > > > Here are fixes to the race issues for generic group and functions > > reported by H. Nikolaus Schaller . I have not seen > > the issue here myself, so please test to see if this is sufficient. > > It l

Re: [lkp-robot] [sched/fair] fbd5188493: WARNING:inconsistent_lock_state

2018-07-05 Thread Dietmar Eggemann
.com/0day-ci/linux/commits/Matt-Fleming/sched-fair-Avoid-divide-by-zero-when-rebalancing-domains/20180705-024633 > > > in testcase: trinity > with following parameters: > > runtime: 300s > > test-description: Trinity is a linux system call fuzz tester. > test-

Re: [PATCH 4/5] kbuild: disable KBUILD_MODNAME when building for mod.a

2018-07-05 Thread Masahiro Yamada
2018-07-05 6:54 GMT+09:00 NeilBrown : > On Wed, Jul 04 2018, Masahiro Yamada wrote: > >> 2018-07-04 7:14 GMT+09:00 NeilBrown : >>> >>> Where I've been using these patches I've sometimes been adding >>> >>> ccflags-y += -DKBUILD_MODNAME='"FOO"' >>> >>> to Makefiles so that modules_params get handl

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

2018-07-05 Thread Tony Lindgren
Here is a resend of fixes for a race issues for generic group and functions reported by H. Nikolaus Schaller . Regards, Tony Changes since v2: - Added Nikolaus to Cc as Reported-by did not do it Changes since v1: - Check if a function or group already exists as suggested by Andy Shevchenko

[PATCH 4/5] pinctrl: rza1: Fix selector use for groups and functions

2018-07-05 Thread Tony Lindgren
We must use a mutex around the generic_add functions and save the function and group selector in case we need to remove them. Otherwise the selector use will be racy for deferred probe at least. Fixes: 5a49b644b307 ("pinctrl: Renesas RZ/A1 pin and gpio controller") Reported-by: H. Nikolaus Schalle

[PATCH 5/5] pinctrl: core: Remove broken remove_last group and pinmux functions

2018-07-05 Thread Tony Lindgren
With no users left for these functions let's remove them. Reported-by: H. Nikolaus Schaller Cc: Andy Shevchenko Cc: Christ van Willegen Cc: Haojian Zhuang Cc: H. Nikolaus Schaller Cc: Jacopo Mondi Cc: Paul Cercueil Cc: Sean Wang Signed-off-by: Tony Lindgren --- drivers/pinctrl/core.h |

[PATCH 2/5] pinctrl: pinmux: Return selector to the pinctrl driver

2018-07-05 Thread Tony Lindgren
We must return the selector from pinmux_generic_add_function() so pin controller device drivers can remove the right group if needed for deferred probe for example. And we now must make sure that a proper name is passed so we can use it to check if the entry already exists. Note that fixes are als

[PATCH 3/5] pinctrl: single: Fix group and function selector use

2018-07-05 Thread Tony Lindgren
We must use a mutex around the generic_add functions and save the function and group selector in case we need to remove them. Otherwise the selector use will be racy for deferred probe at least. Note that struct device_node *np is unused in pcs_add_function() we remove that too and fix a checkpatc

[PATCH 1/5] pinctrl: core: Return selector to the pinctrl driver

2018-07-05 Thread Tony Lindgren
We must return the selector from pinctrl_generic_add_group() so pin controller device drivers can remove the right group if needed for deferred probe for example. And we now must make sure that a proper name is passed so we can use it to check if the entry already exists. Note that fixes are also

Re: [PATCH v9 1/2] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-07-05 Thread Lee Jones
On Thu, 05 Jul 2018, Matti Vaittinen wrote: > ROHM BD71837 PMIC MFD driver providing interrupts and support > for three subsystems: > - clk > - Regulators > - input/power-key > > Signed-off-by: Matti Vaittinen > --- > drivers/mfd/Kconfig | 13 ++ > drivers/mfd/Makefile| 1 + >

Re: [PATCH V2 18/19] clocksource: add C-SKY clocksource drivers

2018-07-05 Thread Daniel Lezcano
On 05/07/2018 05:30, Guo Ren wrote: [ ... ] >> >> You can get the value from the timer-of in all the places it is needed. > Ok, I could remove them. > > But in csky_timer_v1_init: ret = timer_of_init(np, to) > We only init 1th cpu's timer_of struct, and others just static inited by: > > DEFINE_

Re: [PATCH v9 2/2] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC

2018-07-05 Thread Lee Jones
On Thu, 05 Jul 2018, Matti Vaittinen wrote: > Document devicetree bindings for ROHM BD71837 PMIC MFD. > > Signed-off-by: Matti Vaittinen > Reviewed-by: Rob Herring > --- > .../devicetree/bindings/mfd/rohm,bd71837-pmic.txt | 67 > ++ > 1 file changed, 67 insertions(+) > c

Re: [PATCH v3 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-05 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 8:41 AM, Nikolaus Voss wrote: Use device_get_match_data API to simplify access to driver data. Let acpi_device_id table entries point to the same driver data as of_device_id table entries and uniquify access to driver data by usi

[PATCH v4 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-05 Thread Nikolaus Voss
Use device_get_match_data API to simplify access to driver data. Let acpi_device_id table entries point to the same driver data as of_device_id table entries and uniquify access to driver data by using device_get_match_data API. Remove unused i2c_device_id .driver_data fields. Reviewed-by: Andy Sh

[PATCH v4 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-05 Thread Nikolaus Voss
struct i2c_device_id argument of probe() is not used, so use probe_new() instead. Reviewed-by: Andy Shevchenko Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/ii

[PATCH v4 0/2] IIO: st_sensors_i2c: improve device enumeration

2018-07-05 Thread Nikolaus Voss
When trying to instantiate a st_accel_i2c device from an ACPI based system, I ran into some problems: For my device, there is no ACPI match table entry, so rather than creating /allocating a new ACPI HID for the device, I wanted to use an existing DT table compatible entry via creating an ACPI_DT_

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-05 Thread Rafael J. Wysocki
Hi, On Thu, Jul 5, 2018 at 9:05 AM, Takashi Iwai wrote: > Hi, > > we've got a regression report since 4.17 about the behavior of > power-off with the power button. When a machine is powered off with > the power button on desktop, it reboots after a few seconds instead of > power down. > > The ma

RE: [PATCH] Debug: Add cpu registers dump in case of kernel panic

2018-07-05 Thread Thomas Gleixner
On Thu, 5 Jul 2018, Tian, Baofeng wrote: > Resubmit again for review, this patch save register and used for RAM dump. Please do not resubmit by replying to mail which got rejected by LKML in the first place. Resubmit means to send the patch new and in proper form. >  static atomic_t stopping_cp

Re: [PATCH v2] sched/fair: Fix util_avg of new tasks for asymmetric systems

2018-07-05 Thread Peter Zijlstra
On Thu, Jul 05, 2018 at 08:53:50AM +0100, Quentin Perret wrote: > Is there anything else I should do for this patch ? Pinging me was the right thing. Have it now, much thanks!

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

2018-07-05 Thread Ulf Hansson
On 4 July 2018 at 17:18, Stefan Agner wrote: > On 04.07.2018 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 such speed modes the driver currently uses the quirk fl

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-05 Thread Takashi Iwai
On Thu, 05 Jul 2018 11:34:59 +0200, Rafael J. Wysocki wrote: > > Hi, > > On Thu, Jul 5, 2018 at 9:05 AM, Takashi Iwai wrote: > > Hi, > > > > we've got a regression report since 4.17 about the behavior of > > power-off with the power button. When a machine is powered off with > > the power butto

[PATCH 2/2] ARM64: dts: add S805X based P241 board

2018-07-05 Thread Neil Armstrong
The Amlogic P241 board is the Reference Design board for the S805X variant of the Amlogic Meson GXL SoC family. The P241 board has the following features : - 1GiB DDR4 Memory - HDMI Connector with CEC - A/V jack with Stereo Audio and CVBS - 10/100 Ethernet - 2x USB2.0 Type-A - On-board WiFi SDIO M

[PATCH 0/2] Add support for S805X based P241 Reference Design board

2018-07-05 Thread Neil Armstrong
The Amlogic P241 board is the Reference Design board for the S805X variant of the Amlogic Meson GXL SoC family. The S805X is a variant of the Amlogic Meson GXL SoC family with the following physical limitations : - No SDCard interface - No GPIOCLK pins - No USB OTG ID pin (but Gadget feature can s

[PATCH 1/2] dt-bindings: amlogic: Add support for GXL S805X and the P241 board

2018-07-05 Thread Neil Armstrong
The S805X is a variant of the Amlogic Meson GXL SoC family with the following physical limitations : - No SDCard interface - No GPIOCLK pins - No USB OTG ID pin (but Gadget feature can stil be forced) - No 5V regulator - Reduced ADC inputs (only ADC0 and ADC1) - GPIODV_26, GPIOAO_3, GPIOAO_4, GPIOA

Re: [lkp-robot] [sched/fair] fbd5188493: WARNING:inconsistent_lock_state

2018-07-05 Thread Dietmar Eggemann
> divide by zero when rebalancing domains") >> url: >> https://github.com/0day-ci/linux/commits/Matt-Fleming/sched-fair-Avoid-divide-by-zero-when-rebalancing-domains/20180705-024633 >> >> >> in testcase: trinity >> with following parameters: >&g

Re: 4.18-rc* regression: x86-32 troubles (with timers?)

2018-07-05 Thread Meelis Roos
> > I tried 4.18.0-rc1-00023-g9ffc59d57228 and now > > 4.18.0-rc3-00113-gfc36def997cf on a 32-bit server and then some other > > 32-bit machines, and got half-failed bootup - kernel and userspace come > > up but some services fail to start, including network and > > systemd-journald: > > > > system

Re: [PATCH] net: ethernet: sun: remove redundant variables adv and lpa

2018-07-05 Thread Colin Ian King
On 05/07/18 10:52, Dan Carpenter wrote: > On Thu, Jul 05, 2018 at 10:37:32AM +0100, Colin King wrote: >> diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c >> index 88c12474a0c3..2d6b62c6d9ab 100644 >> --- a/drivers/net/ethernet/sun/niu.c >> +++ b/drivers/net/ethernet/sun/

Re: [PATCHv2 11/11] arm64: use instrumented atomics

2018-07-05 Thread Mark Rutland
On Wed, Jul 04, 2018 at 06:41:34PM +0100, Will Deacon wrote: > On Wed, Jul 04, 2018 at 05:37:23PM +0100, Mark Rutland wrote: > > On Wed, Jul 04, 2018 at 04:24:22PM +0100, Will Deacon wrote: > > > This is mostly straightforward, but the cmpxchg/cmpxchg_double cases grow > > > an 'arch' prefix which

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-05 Thread Takashi Iwai
On Thu, 05 Jul 2018 11:58:15 +0200, Thomas H4nig wrote: > > Am 05.07.2018 um 11:50 schrieb Takashi Iwai: > > Usually X desktop environment receives an input event from the ACPI > > power button input device, and deals the event accordingly depending > > on the setup. The power-down behavior itsel

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-05 Thread Thomas Hänig
Am 05.07.2018 um 11:50 schrieb Takashi Iwai: > Usually X desktop environment receives an input event from the ACPI > power button input device, and deals the event accordingly depending > on the setup. The power-down behavior itself should be equivalent > with "systemctl poweroff" or such. The beh

Applied "ASoC: rsnd: cmd: Add missing newline to debug message" to the asoc tree

2018-07-05 Thread Mark Brown
The patch ASoC: rsnd: cmd: Add missing newline to debug message has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [PATCH] sched/fair: Avoid divide by zero when rebalancing domains

2018-07-05 Thread Valentin Schneider
Hi, On 04/07/18 15:24, Matt Fleming wrote: > It's possible that the CPU doing nohz idle balance hasn't had its own > load updated for many seconds. This can lead to huge deltas between > rq->avg_stamp and rq->clock when rebalancing, and has been seen to > cause the following crash: > > divide er

Re: [PATCHv2 06/11] atomics/treewide: rework ordering barriers

2018-07-05 Thread Mark Rutland
On Wed, Jul 04, 2018 at 06:50:00PM +0100, Will Deacon wrote: > On Wed, Jul 04, 2018 at 04:56:19PM +0100, Mark Rutland wrote: > > On Wed, Jul 04, 2018 at 04:06:46PM +0100, Will Deacon wrote: > > > On Mon, Jun 25, 2018 at 11:59:47AM +0100, Mark Rutland wrote: > > > > Currently architectures can overr

[PATCH 2/2] ASoC: dpcm: add rate merge to the BE stream merge

2018-07-05 Thread Jerome Brunet
As done for format and channels, add the possibility to merge the backend rates on the frontend rates. This useful if the backend does not support all rates supported by the frontend, or if several backends (cpu and codecs) with different capabilities are connected to the same frontend. Signed-of

[PATCH 1/2] ASoC: dpcm: rework runtime stream merge

2018-07-05 Thread Jerome Brunet
The goal of this patch is to simplify a bit dpcm runtime stream merge by removing several local variables. ATM, merge functions return the BE 'filter' values which should then be filtered against the FE stream values. This create a lot of local variable and unnecessary init of min and max. Instea

[PATCH 0/2] ASoC: dpcm: add runtime rate merge of BE.

2018-07-05 Thread Jerome Brunet
This patchset adds the possibility to merge BE rates in the dpcm runtime hw, like it is done for formats and channels. This first patch is a simple rework of format and channel merge to ease the addition of rate merge. Jerome Brunet (2): ASoC: dpcm: rework runtime stream merge ASoC: dpcm: add

Re: [PATCH 1/2] ARM: OMAP2+: sleep33/43xx: Make sleep actions configurable

2018-07-05 Thread kbuild test robot
/commits/Keerthy/ARM-OMAP2-sleep33-43xx-Make-sleep-actions-configurable/20180705-010044 base: https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git for-next config: arm-multi_v7_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-05 Thread Rafael J. Wysocki
On Thursday, July 5, 2018 12:00:27 PM CEST Takashi Iwai wrote: > On Thu, 05 Jul 2018 11:58:15 +0200, > Thomas H4nig wrote: > > > > Am 05.07.2018 um 11:50 schrieb Takashi Iwai: > > > Usually X desktop environment receives an input event from the ACPI > > > power button input device, and deals the e

[PATCH] nds32: fix build error "relocation truncated to fit: R_NDS32_25_PCREL_RELA" when make allyesconfig

2018-07-05 Thread Greentime Hu
It will cause a linking error because the jump assembly code were using j, however it may be not enough to jump to the destination. We have to change it with pseudo instruction b. In that way, assembler will generate a set of safe assembly codes to make sure the destination is able to jump. Toolch

Arm Linux boot-up

2018-07-05 Thread dave frost
Morning folks, As the title suggest im having issues geting my kernel started, and was hoping for some guidance. In short i think my problems come from the MMU/Cache configuration being bad during the transfer from my boot loader to the kernel. Just as a quick aside i have confirmed my kernel bo

Weird SysRq's during reboot

2018-07-05 Thread Alan
Hello everyone, this is my first time posting to this list so please be gentle. I have a server, hardware spec: HP DL360p G8 2 x Intel Xeon E5-2620 Hex-Core 2GHz processors 150GB Ram Embedded HP Ethernet 1Gb 4-port 331FLR Adapter Embedded Smart

[PATCH] MAINTAINERS: Add myself as driver core changes reviewer

2018-07-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki I really need to look at driver core changes before they are applied due to PM dependencies and they sometimes get lost in the LKML traffic, so add myself as an official driver core reviewer. Signed-off-by: Rafael J. Wysocki --- MAINTAINERS |1 + 1 file changed, 1 i

Re: [PATCH v9 1/2] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-07-05 Thread Matti Vaittinen
Thanks for taking the time to check this =) On Thu, Jul 05, 2018 at 10:18:13AM +0100, Lee Jones wrote: > On Thu, 05 Jul 2018, Matti Vaittinen wrote: > > > --- a/drivers/mfd/Kconfig > > +++ b/drivers/mfd/Kconfig > > @@ -1787,6 +1787,19 @@ config MFD_STW481X > > in various ST Microelectronics

Re: [PATCH v9 2/2] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC

2018-07-05 Thread Matti Vaittinen
And thanks again Lee! On Thu, Jul 05, 2018 at 10:24:44AM +0100, Lee Jones wrote: > On Thu, 05 Jul 2018, Matti Vaittinen wrote: > > > Document devicetree bindings for ROHM BD71837 PMIC MFD. > > > > Signed-off-by: Matti Vaittinen > > Reviewed-by: Rob Herring > > --- > > .../devicetree/bindings/

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-05 Thread Rafael J. Wysocki
On Thursday, July 5, 2018 11:50:11 AM CEST Takashi Iwai wrote: > On Thu, 05 Jul 2018 11:34:59 +0200, > Rafael J. Wysocki wrote: > > > > Hi, > > > > On Thu, Jul 5, 2018 at 9:05 AM, Takashi Iwai wrote: > > > Hi, > > > > > > we've got a regression report since 4.17 about the behavior of > > > power

Re: [PATCH] sched/cputime: Ensure correct utime and stime proportion

2018-07-05 Thread Peter Zijlstra
On Wed, Jun 27, 2018 at 08:22:42PM +0800, Xunlei Pang wrote: > tick-based whole utime is utime_0, tick-based whole stime > is stime_0, scheduler time is rtime_0. > For a long time, the process runs mainly in userspace with > run-sleep patterns, and because two different clocks, it > is possible t

Re: what trees/branches to test on syzbot

2018-07-05 Thread Tetsuo Handa
On 2018/06/27 5:37, Tetsuo Handa wrote: > I think that syzbot can stop deciding email recipients and leave it to those > who > diagnose bugs, for the ratio of sending to wrong subsystem maintainers is not > low. > For example, syzbot assumed that "INFO: task hung in __get_super" is a fs > layer

Re: [PATCH v9 2/2] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC

2018-07-05 Thread Lee Jones
On Thu, 05 Jul 2018, Matti Vaittinen wrote: > On Thu, Jul 05, 2018 at 10:24:44AM +0100, Lee Jones wrote: > > On Thu, 05 Jul 2018, Matti Vaittinen wrote: > > > > > Document devicetree bindings for ROHM BD71837 PMIC MFD. > > > > > > Signed-off-by: Matti Vaittinen > > > Reviewed-by: Rob Herring >

Re: [LTP] ltp/read_all_sys (read_all -d /sys -q -r 10) cause system panic with kernel-4.18.0-rc1

2018-07-05 Thread Rafael David Tinoco
We've faced similar issue in Bug: https://bugs.linaro.org/show_bug.cgi?id=3903 And it turned out to be a regmap area declared wrongly (likely) for a PMIC device, caught when trying to read "registers" file from debugfs in that particular device. Best way to identify the issue is to check which fi

RE: [PATCH v2] leds: ledtrig-morse: send out morse code

2018-07-05 Thread David Laight
... > > Well, just like we have LED and LED triggers in the kernel, I think having > > a generic way to use patterns could be nice and in this case Morse could be > > one such pattern, but if that means it's limited to userland to configure > > it then it sadly voids all of its benefits. I've been

Re: 4.18-rc* regression: x86-32 troubles (with timers?)

2018-07-05 Thread Arnd Bergmann
On Thu, Jul 5, 2018 at 11:54 AM, Meelis Roos wrote: >> > I tried 4.18.0-rc1-00023-g9ffc59d57228 and now >> > 4.18.0-rc3-00113-gfc36def997cf on a 32-bit server and then some other >> > 32-bit machines, and got half-failed bootup - kernel and userspace come >> > up but some services fail to start, i

Re: [PATCH v2 1/1] mmc: sunxi: Disable irq during pm_suspend

2018-07-05 Thread Ulf Hansson
On 4 July 2018 at 22:29, Marc Zyngier wrote: > On Wed, 4 Jul 2018 15:34:36 +0200 > Ulf Hansson wrote: > >> On 4 July 2018 at 13:34, Marc Zyngier wrote: >> > On 04/07/18 11:50, Ulf Hansson wrote: >> >> + Marc >> >> >> >> On 4 July 2018 at 08:28, Stefan Mavrodiev wrote: >> >>> When mmc host contr

Re: [PATCH v9 1/2] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-07-05 Thread Lee Jones
On Thu, 05 Jul 2018, Matti Vaittinen wrote: > Thanks for taking the time to check this =) > > On Thu, Jul 05, 2018 at 10:18:13AM +0100, Lee Jones wrote: > > On Thu, 05 Jul 2018, Matti Vaittinen wrote: > > > > > --- a/drivers/mfd/Kconfig > > > +++ b/drivers/mfd/Kconfig > > > @@ -1787,6 +1787,19 @

Re: [PATCH 1/3] mmc: sdhci-esdhc-imx: get rid of support_vsel

2018-07-05 Thread Stefan Agner
On 05.07.2018 04:52, A.s. Dong wrote: >> -Original Message- >> From: Stefan Agner [mailto:ste...@agner.ch] >> Sent: Thursday, June 28, 2018 4:13 PM >> To: adrian.hun...@intel.com; ulf.hans...@linaro.org >> Cc: Fabio Estevam ; Bough Chen >> ; A.s. Dong ; >> mich...@amarulasolutions.com; rmk+

[PATCH v2 01/12] spi: spi-mem: Extend the SPI mem interface to set a custom memory name

2018-07-05 Thread Frieder Schrempf
When porting (Q)SPI controller drivers from the MTD layer to the SPI layer, the naming scheme for the memory devices changes. To be able to keep compatibility with the old drivers naming scheme, a function is added to the SPI mem interface to let controller drivers set a custom name for the memory.

[PATCH v2 04/12] dt-bindings: spi: Move the bindings for the FSL QSPI driver

2018-07-05 Thread Frieder Schrempf
Move the documentation of the old SPI NOR driver to the place of the new SPI memory interface based driver. Signed-off-by: Frieder Schrempf --- Changes in v2: == * Split the moving and editing of the dt-bindings in two patches .../devicetree/bindings/mtd/fsl-quadspi.txt | 65 ---

[PATCH v2 02/12] mtd: m25p80: Call spi_mem_get_name() to let controller set a custom name

2018-07-05 Thread Frieder Schrempf
By calling spi_mem_get_name(), the driver of the (Q)SPI controller can set a custom name for the memory device if necessary. This is useful to keep mtdparts compatible when controller drivers are ported from the MTD to the SPI layer. Signed-off-by: Frieder Schrempf --- drivers/mtd/devices/m25p80

[PATCH v2 06/12] ARM: dts: Reflect change of FSL QSPI driver and remove unused properties

2018-07-05 Thread Frieder Schrempf
The FSL QSPI driver was moved to the SPI framework and it now acts as a SPI controller. Therefore the subnodes need to set spi-[rx/tx]-bus-width = <4>, so quad mode is used just as before. Also the properties 'bus-num', 'fsl,spi-num-chipselects' and 'fsl,spi-flash-chipselects' were never read by t

[PATCH v4 10/11] hugetlb: Introduce generic version of huge_ptep_set_access_flags

2018-07-05 Thread Alexandre Ghiti
arm, ia64, sh, x86 architectures use the same version of huge_ptep_set_access_flags, so move this generic implementation into asm-generic/hugetlb.h. Signed-off-by: Alexandre Ghiti --- arch/arm/include/asm/hugetlb-3level.h | 7 --- arch/arm64/include/asm/hugetlb.h | 1 + arch/ia64/includ

[PATCH v2 10/12] ARM: dts: ls1021a: Remove fsl,qspi-has-second-chip as it is not used

2018-07-05 Thread Frieder Schrempf
After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts | 1 - 1 file changed, 1 dele

[PATCH v2 09/12] mtd: fsl-quadspi: Remove the driver as it was replaced by spi-fsl-qspi.c

2018-07-05 Thread Frieder Schrempf
There's a new driver using the SPI memory interface of the SPI framework at spi/spi-fsl-qspi.c, which can be used together with m25p80.c to replace the functionality of this SPI NOR driver. Signed-off-by: Frieder Schrempf --- drivers/mtd/spi-nor/Kconfig |9 - drivers/mtd/spi-nor/Makefi

[PATCH v2 07/12] arm64: dts: Reflect change of FSL QSPI driver and remove unused properties

2018-07-05 Thread Frieder Schrempf
The FSL QSPI driver was moved to the SPI framework and it now acts as a SPI controller. Therefore the subnodes need to set spi-[rx/tx]-bus-width = <4>, so quad mode is used just as before. Also the properties 'num-cs' and 'bus-num' were never read by the driver and can be removed. The property 'f

[PATCH v2 11/12] ARM64: dts: ls1046a: Remove fsl,qspi-has-second-chip as it is not used

2018-07-05 Thread Frieder Schrempf
After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 1 - 1 file changed, 1 d

[PATCH v2 12/12] MAINTAINERS: Move the Freescale QSPI driver to the SPI framework

2018-07-05 Thread Frieder Schrempf
The driver was ported to the SPI framework so it can be used as a generic SPI memory driver and not only for SPI NOR. Reflect this transition in the MAINTAINERS file. Signed-off-by: Frieder Schrempf --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINE

[PATCH v2 08/12] ARM: defconfig: Use the new FSL QSPI driver under the SPI framework

2018-07-05 Thread Frieder Schrempf
The new driver at spi/spi-fsl-qspi.c replaces the old SPI NOR driver at mtd/fsl-quadspi.c. Switch to the new driver in the defconfigs. Signed-off-by: Frieder Schrempf --- arch/arm/configs/imx_v6_v7_defconfig | 2 +- arch/arm/configs/multi_v7_defconfig | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH v2 05/12] dt-bindings: spi: Adjust the bindings for the FSL QSPI driver

2018-07-05 Thread Frieder Schrempf
Adjust the documentation of the new SPI memory interface based driver to reflect the new drivers settings. Signed-off-by: Frieder Schrempf --- Changes in v2: == * Split the moving and editing of the dt-bindings in two patches .../devicetree/bindings/spi/spi-fsl-qspi.txt| 22

[PATCH v2 03/12] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-07-05 Thread Frieder Schrempf
This driver is derived from the SPI NOR driver at mtd/spi-nor/fsl-quadspi.c. It uses the new SPI memory interface of the SPI framework to issue flash memory operations to up to four connected flash chips (2 buses with 2 CS each). The controller does not support generic SPI messages. Signed-off-by

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

2018-07-05 Thread Stefan Agner
On 05.07.2018 11:48, Ulf Hansson wrote: > On 4 July 2018 at 17:18, Stefan Agner wrote: >> On 04.07.2018 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 such spee

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

2018-07-05 Thread Ulf Hansson
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 such speed modes the driver currently uses the quirk flag > SDHCI_QUIRK2_NO_1_8_V. This works nicely

Re: [PATCH v11 1/2] Refactor part of the oom report in dump_header

2018-07-05 Thread 禹舟键
Hi Michal and Andy The enum oom_constraint will be added in the struct oom_control. So I still think I should define it in oom.h. Michal Hocko 于2018年7月4日周三 下午4:17写道: > > On Wed 04-07-18 10:25:30, 禹舟键 wrote: > > Hi Andy > > The const char array need to be used by the new func > > mem_cgroup_print

[PATCH] kernel: events: use correct articles in comments

2018-07-05 Thread Tobias Tefke
These words are pronounced (and start) with a vowel sound. Therefore the article we use has to be 'an' instead of 'a'. Signed-off-by: Tobias Tefke --- kernel/events/core.c| 16 kernel/events/uprobes.c | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --gi

  1   2   3   4   5   6   7   >