[PATCH] genirq:Dereference desc after null pointer check

2018-07-16 Thread RAGHU Halharvi
* Remove unchecked dereferencing of *desc & assigning it local irq variable * Move the assignement after proper check of *desc for NULL pointer. Signed-off-by: RAGHU Halharvi --- kernel/irq/manage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/irq/manage.c b/kern

Re: [PATCH 3/3] pinctrl: meson-g12a: add pinctrl driver support

2018-07-16 Thread Yixun Lan
HI Martin On 07/14/18 23:30, Martin Blumenstingl wrote: > Hi Yixun, > > On Wed, Jul 4, 2018 at 4:50 PM Yixun Lan wrote: >> >> Add the pinctrl driver for Meson-G12A SoC which share the similar IP as >> the previous Meson-AXG SoC. > my understanding is that: > - AXG and G12A use the same mechani

Re: [PATCH 05/18] staging: gasket: sysfs mapping creation fixups

2018-07-16 Thread Greg Kroah-Hartman
On Mon, Jul 16, 2018 at 02:14:27PM -0700, Todd Poynor wrote: > On Fri, Jul 13, 2018 at 11:32 PM, Greg Kroah-Hartman > wrote: > > On Fri, Jul 13, 2018 at 10:58:03PM -0700, Todd Poynor wrote: > >> From: Todd Poynor > >> > >> Return EBUSY for attempt to create a mapping already in use. > > > > Why?

Re: [PATCH 4/9] kconfig: include common Kconfig files from top-level Kconfig

2018-07-16 Thread Randy Dunlap
On 07/16/2018 11:44 PM, Randy Dunlap wrote: > On 07/16/2018 11:42 PM, Randy Dunlap wrote: >> On 07/16/2018 11:33 PM, Randy Dunlap wrote: >>> On 07/11/2018 05:21 AM, Masahiro Yamada wrote: 2018-07-09 0:19 GMT+09:00 Christoph Hellwig : > Instead of duplicating the source statements in every

Re: [PATCH 4.9 03/32] MIPS: Use async IPIsforarch_trigger_cpumask_backtrace()

2018-07-16 Thread 陈华才
Hi, Greg, I have backported and tested it to 4.9 and 4.4: https://patchwork.linux-mips.org/patch/19862/ https://patchwork.linux-mips.org/patch/19863/ Huacai -- Original -- From: "Greg Kroah-Hartman"; Date: Tue, Jul 17, 2018 02:34 AM To: "陈华才"; Cc: "linux-kern

[PATCH v6 2/2] ARM: dts: am335x: add am335x-sancloud-bbe board support

2018-07-16 Thread Koen Kooi
The "Beaglebone Enhanced" by Sancloud is based on the Beaglebone Black, but with the following differences: * Gigabit capable PHY * Extra USB hub, optional i2c control * lps3331ap barometer connected over i2c * MPU6050 6 axis MEMS accelerometer/gyro connected over i2c * 1GiB DDR3 RAM * RTL87

Re: [PATCH v5 2/2] ARM: dts: am335x: add am335x-sancloud-bbe board support

2018-07-16 Thread Koen Kooi
> Op 17 jul. 2018, om 08:36 heeft Tony Lindgren het volgende > geschreven: > > * Koen Kooi [180717 06:28]: >> +&i2c0 { >> +lps331ap: barometer@5c { >> +compatible = "st,lps331ap-press"; >> +st,drdy-int-pin = <1>; >> +reg = <0x5c>; >> +inter

[PATCH v6 0/2] ARM: dts: am3355: add support for the Sancloud Beaglebone Enhanced

2018-07-16 Thread Koen Kooi
The "Beaglebone Enhanced" by Sancloud is based on the Beaglebone Black, but with the following differences: * Gigabit capable PHY * Extra USB hub, optional i2c control * lps3331ap barometer connected over i2c * MPU6050 6 axis MEMS accelerometer/gyro connected over i2c * 1GiB DDR3 RAM * RTL87

[PATCH v6 1/2] dt-bindings: Add vendor prefix for Sancloud

2018-07-16 Thread Koen Kooi
Add vendor prefix for Sancloud Ltd. Signed-off-by: Koen Kooi Acked-by: Rob Herring --- v6: No changes v5: No changes v4: Add Acked-by v3: No changes v2: No changes v1: Initial submission Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/

Commit 554c8aa8ecad causing severe performance degression with pcc-cpufreq

2018-07-16 Thread Andreas Herrmann
Hello, I've recently noticed that commit 554c8aa8ecad ("sched: idle: Select idle state before stopping the tick") causes severe performance drop for systems using pcc-cpufreq driver. Depending on the number of CPUs the system might be almost unusable. The OS jitter for 4.17.y and 4.18.-rcx kernels

Re: linux-next: build failure after merge of the staging tree

2018-07-16 Thread Ivan Safonov
On 07/17/2018 09:28 AM, Stephen Rothwell wrote: Hi Greg, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/rtl8188eu/core/rtw_security.c: In function 'rtw_tkip_decrypt': drivers/staging/rtl8188eu/core/rtw_security.c:399:21: error: s

Re: [PATCH V2] ARM: dts: imx6sl-evk: add missing GPIO iomux setting

2018-07-16 Thread Shawn Guo
On Sat, Jul 14, 2018 at 09:53:58AM +0800, Anson Huang wrote: > On i.MX6SL EVK board, the MX6SL_PAD_KEY_ROW5 pin is > used as lcd 3v3 regulator control pin, need to make > sure MX6SL_PAD_KEY_ROW5 is muxed as GPIO function > for controlling lcd 3v3 regulator. > > Signed-off-by: Anson Huang Applied

Re: [PATCH] dts/droid4: fix dts w.r.t. pwm

2018-07-16 Thread Tony Lindgren
* Sebastian Reichel [180716 10:14]: > Hi, > > On Mon, Jul 16, 2018 at 09:10:48AM +0200, Pavel Machek wrote: > > pwm node should not be under gpio6 node in the device tree. > > > > This fixes detection of the pwm on Droid 4. > > > > Signed-off-by: Pavel Machek > > Reviewed-by: Sebastian

Re: [PATCH v2 0/2] Follow up fixes for SCU3 ESB

2018-07-16 Thread Shawn Guo
On Fri, Jul 13, 2018 at 10:30:03AM -0700, Andrey Smirnov wrote: > Andrey Smirnov (2): > ARM: dts: imx51-zii-scu3-esb: Add switch IRQ line pinumx config > ARM: dts: imx51-zii-scu3-esb: Fix RAVE SP watchdog compatible string Applied both, thanks.

Re: [PATCH 4/9] kconfig: include common Kconfig files from top-level Kconfig

2018-07-16 Thread Randy Dunlap
On 07/16/2018 11:42 PM, Randy Dunlap wrote: > On 07/16/2018 11:33 PM, Randy Dunlap wrote: >> On 07/11/2018 05:21 AM, Masahiro Yamada wrote: >>> 2018-07-09 0:19 GMT+09:00 Christoph Hellwig : Instead of duplicating the source statements in every architecture just do it once in the toplevel

Re: [PATCH 4/9] kconfig: include common Kconfig files from top-level Kconfig

2018-07-16 Thread Randy Dunlap
On 07/16/2018 11:33 PM, Randy Dunlap wrote: > On 07/11/2018 05:21 AM, Masahiro Yamada wrote: >> 2018-07-09 0:19 GMT+09:00 Christoph Hellwig : >>> Instead of duplicating the source statements in every architecture just >>> do it once in the toplevel Kconfig file. >>> >>> Note that with this the incl

Re: [PATCH v5 2/2] ARM: dts: am335x: add am335x-sancloud-bbe board support

2018-07-16 Thread Tony Lindgren
* Koen Kooi [180717 06:28]: > +&i2c0 { > + lps331ap: barometer@5c { > + compatible = "st,lps331ap-press"; > + st,drdy-int-pin = <1>; > + reg = <0x5c>; > + interrupt-parent = <&gpio1>; > + interrupts = <26 IRQ_TYPE_EDGE_RISING>; > +

Re: [GIT PULL] nds32 fixes for 4.18

2018-07-16 Thread Greentime Hu
Hi Linus, Greentime Hu 於 2018年7月9日 週一 下午4:19寫道: > > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) > > are available in the Git repository at: > > ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/greentime/linu

Re: [PATCH 4/9] kconfig: include common Kconfig files from top-level Kconfig

2018-07-16 Thread Randy Dunlap
On 07/11/2018 05:21 AM, Masahiro Yamada wrote: > 2018-07-09 0:19 GMT+09:00 Christoph Hellwig : >> Instead of duplicating the source statements in every architecture just >> do it once in the toplevel Kconfig file. >> >> Note that with this the inclusion of arch/$(SRCARCH/Kconfig moves out of >> the

[PATCH v5] time: Fix extra sleeptime injection when suspend fails

2018-07-16 Thread Mukesh Ojha
Currently, there exists a corner case assuming when there is only one clocksource e.g RTC, and system failed to go to suspend mode. While resume rtc_resume() injects the sleeptime as timekeeping_rtc_skipresume() returned 'false' (default value of sleeptime_injected) due to which we can see mismatch

Re: [PATCH v4] time: Fix extra sleeptime injection when suspend fails

2018-07-16 Thread Mukesh Ojha
On 7/17/2018 2:31 AM, John Stultz wrote: On Mon, Jul 16, 2018 at 1:40 PM, Mukesh Ojha wrote: Currently, there exists a corner case assuming when there is only one clocksource e.g RTC, and system failed to go to suspend mode. While resume rtc_resume() injects the sleeptime as timekeeping_rtc_

Re: [PATCH v2 3/3] ARM: configs: imx_v6_v7_defconfig: add DMATEST support

2018-07-16 Thread Shawn Guo
On Fri, Jul 13, 2018 at 09:08:47PM +0800, Robin Gong wrote: > Add DMATEST support and remove invalid options, such as > CONFIG_BT_HCIUART_H4 is default enabled and CONFIG_SND_SOC_IMX_WM8962 > is out of date and not appear in any config file. Please refer to > Documentation/driver-api/dmaengine/dmat

linux-next: build failure after merge of the staging tree

2018-07-16 Thread Stephen Rothwell
Hi Greg, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/rtl8188eu/core/rtw_security.c: In function 'rtw_tkip_decrypt': drivers/staging/rtl8188eu/core/rtw_security.c:399:21: error: storage size of 'mycontext' isn't known struct a

Re: [PATCH v4 2/2] ARM: dts: am335x: add am335x-sancloud-bbe board support

2018-07-16 Thread Koen Kooi
> Op 17 jul. 2018, om 08:16 heeft Tony Lindgren het volgende > geschreven: > > Hi Koen, > > Just noticed there should be generic node names here too, see below. > > * Koen Kooi [180713 06:28]: >> The "Beaglebone Enhanced" by Sancloud is based on the Beaglebone Black, >> but with the follow

[PATCH v2] net/9p/client.c: fix misuse of spin_lock_irqsave for p9_client lock

2018-07-16 Thread piaojun
In p9_read_work(), we use spin_lock for client->lock, but misuse spin_lock_irqsave for it in p9_fid_create(). As p9_client lock won't be locked in irq context, so spin_lock is enough. And that will improve the performance. Rebased on 9p-next. Signed-off-by: Jun Piao --- net/9p/client.c | 18 +

Re: [PATCH 2/4] lib: add crc64 calculation routines

2018-07-16 Thread Coly Li
On 2018/7/17 11:34 AM, Eric Biggers wrote: > Hi Coly, > > On Tue, Jul 17, 2018 at 12:55:05AM +0800, Coly Li wrote: >> This patch adds the re-write crc64 calculation routines for Linux kernel. >> The CRC64 polynomical arithmetic follows ECMA-182 specification, inspired >> by CRC paper of Dr. Ross N

Re: v4.18-rc2 on droid4: screen turns red

2018-07-16 Thread Tony Lindgren
* Pavel Machek [180711 10:30]: > Hi! > > > After longer inactivity, attempt to wake up the screen results in > > screen being completely red. Not too useful. I can still connect over > > ssh. > > Still there in -rc4 :-(. But happens only once in a few days for me... > > When X is shut down, tex

[PATCH v5 2/2] ARM: dts: am335x: add am335x-sancloud-bbe board support

2018-07-16 Thread Koen Kooi
The "Beaglebone Enhanced" by Sancloud is based on the Beaglebone Black, but with the following differences: * Gigabit capable PHY * Extra USB hub, optional i2c control * lps3331ap barometer connected over i2c * MPU6050 6 axis MEMS accelerometer/gyro connected over i2c * 1GiB DDR3 RAM * RTL87

[PATCH v5 1/2] dt-bindings: Add vendor prefix for Sancloud

2018-07-16 Thread Koen Kooi
Add vendor prefix for Sancloud Ltd. Signed-off-by: Koen Kooi Acked-by: Rob Herring --- v5: No changes v4: Add Acked-by v3: No changes v2: No changes v1: Initial submission Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/d

[PATCH v5 0/2] ARM: dts: am3355: add support for the Sancloud Beaglebone Enhanced

2018-07-16 Thread Koen Kooi
The "Beaglebone Enhanced" by Sancloud is based on the Beaglebone Black, but with the following differences: * Gigabit capable PHY * Extra USB hub, optional i2c control * lps3331ap barometer connected over i2c * MPU6050 6 axis MEMS accelerometer/gyro connected over i2c * 1GiB DDR3 RAM * RTL87

Re: [PATCH v4] time: Fix extra sleeptime injection when suspend fails

2018-07-16 Thread Mukesh Ojha
On 7/17/2018 2:20 AM, Thomas Gleixner wrote: On Tue, 17 Jul 2018, Mukesh Ojha wrote: @@ -102,7 +102,7 @@ static int rtc_resume(struct device *dev) struct timespec64 sleep_time; int err; - if (timekeeping_rtc_skipresume()) + if (!timekeeping_rtc_skipresume())

Re: [PATCH v4 2/2] ARM: dts: am335x: add am335x-sancloud-bbe board support

2018-07-16 Thread Tony Lindgren
Hi Koen, Just noticed there should be generic node names here too, see below. * Koen Kooi [180713 06:28]: > The "Beaglebone Enhanced" by Sancloud is based on the Beaglebone Black, > but with the following differences: > > * Gigabit capable PHY > * Extra USB hub, optional i2c control > * lps3

Re: [PATCH 00/39 v7] PTI support for x86-32

2018-07-16 Thread Joerg Roedel
Hi Dave, On Mon, Jul 16, 2018 at 10:07:44PM -0400, David H. Gutteridge wrote: > I redid my testing on bare metal and in a VM (as with my previous > testing > efforts: https://lkml.org/lkml/2018/2/19/844, same setups > and coverage, > plus CONFIG_X86_DEBUG_ENTRY_CR3 enabled too) with the > pti-x32-

Re: [PATCH] soc: imx6qp: Use GENPD_FLAG_ALWAYS_ON for PU errata

2018-07-16 Thread Shawn Guo
On Fri, Jul 13, 2018 at 01:01:15PM +0300, Leonard Crestez wrote: > This is functionally identical but simpler and slightly faster. > > The PU domain is turned on at boot time and never turned off. In the > current implementation the pm core will repeatedly call power_off when > the domain is unuse

Re: 4.18.0-rc1-next-20180619 boot failed on beagle board x15

2018-07-16 Thread Tony Lindgren
Tejun & Stephen, The following regression is still pending in next, see below. * Samuel Morris [180702 13:35]: > On Mon, Jul 2, 2018 at 5:32 AM, Tony Lindgren wrote: > > Hi, > > > > * Roger Quadros [180621 14:56]: > >> On 21/06/18 17:31, Samuel Morris wrote: > >> > On Thu, Jun 21, 2018 at 3:58

[PATCH] kprobes: Kprobes maintainer change

2018-07-16 Thread Ananth N Mavinakayanahalli
Naveen has been contributing consistently reviewing and hardening kprobes for some time now. I have not been able to do the same due to other commitments. Signed-off-by: Ananth N Mavinakayanahalli --- MAINTAINERS |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS

Re: [PATCH 1/3] ARM: dts: imx6sll-evk: enable PWM1 for backlight driver

2018-07-16 Thread Shawn Guo
On Fri, Jul 13, 2018 at 03:58:25PM +0800, Anson Huang wrote: > Enable pwm1 module on i.MX6SLL EVK board to make > backlight driver really work with LCD panel connected. > > Signed-off-by: Anson Huang Applied all, thanks.

Re: [PATCH v5 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-07-16 Thread Taniya Das
Hello Matthias, Thanks for your review comments. On 7/13/2018 5:49 AM, Matthias Kaehlcke wrote: Hi, On Thu, Jul 12, 2018 at 11:35:45PM +0530, Taniya Das wrote: The CPUfreq HW present in some QCOM chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements t

Re: [RFC PATCH 1/4] ARM: dts: am33xx: Add all fck timer clocks

2018-07-16 Thread Tony Lindgren
Hi, * Neil Armstrong [180716 20:42]: > Add the missing fck clock to all timer nodes of the AM33XX dtsi. > > Signed-off-by: Neil Armstrong > --- > arch/arm/boot/dts/am33xx.dtsi | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dt

[PATCH v2 2/2] mm: soft-offline: close the race against page allocation

2018-07-16 Thread Naoya Horiguchi
A process can be killed with SIGBUS(BUS_MCEERR_AR) when it tries to allocate a page that was just freed on the way of soft-offline. This is undesirable because soft-offline (which is about corrected error) is less aggressive than hard-offline (which is about uncorrected error), and we can make soft

[PATCH v2 1/2] mm: fix race on soft-offlining free huge pages

2018-07-16 Thread Naoya Horiguchi
There's a race condition between soft offline and hugetlb_fault which causes unexpected process killing and/or hugetlb allocation failure. The process killing is caused by the following flow: CPU 0 CPU 1 CPU 2 soft offline get_any_page // find the hugetlb i

[PATCH v2 0/2] mm: soft-offline: fix race against page allocation

2018-07-16 Thread Naoya Horiguchi
I've updated the patchset based on feedbacks: - updated comments (from Andrew), - moved calling set_hwpoison_free_buddy_page() from mm/migrate.c to mm/memory-failure.c, which is necessary to check the return code of set_hwpoison_free_buddy_page(), - lkp bot reported a build error when only 1/2

Re: [PATCH -next] ipc/sem: prevent queue.status tearing in semop

2018-07-16 Thread Davidlohr Bueso
On Mon, 16 Jul 2018, Bueso wrote: In order for load/store tearing to work, _all_ accesses to ^ prevention

[PATCH -next] ipc/sem: prevent queue.status tearing in semop

2018-07-16 Thread Davidlohr Bueso
In order for load/store tearing to work, _all_ accesses to the variable in question need to be done around READ and WRITE_ONCE() macros. Ensure everyone does so for q->status variable for semtimedop(). Signed-off-by: Davidlohr Bueso --- ipc/sem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 3/4] ARM: dts: imx6sll-evk: make pfuze100 sw4 always on

2018-07-16 Thread Anson Huang
On i.MX6SLL EVK board, pfuze100 sw4 supplies LPDDR3 which is critical for system, must be always on. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx6sll-evk.dts b/arch/arm/boot/dts/imx6sll-evk.dts index d

[PATCH 4/4] ARM: dts: imx6sl-evk: make pfuze100 sw4 always on

2018-07-16 Thread Anson Huang
From: Robin Gong On i.MX6SL EVK board, pfuze100 sw4 supplies LPDDR2 which is critical for system, must be always on. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sl-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx6sl-evk.dts b/arch/arm/boot/dts/imx6sl-e

[PATCH 2/4] ARM: dts: imx6sx-sdb-reva: make pfuze100 sw4 always on

2018-07-16 Thread Anson Huang
On i.MX6SX SDB Rev-A board, pfuze100 sw4 supplies csi, audio codec and i2c etc., these modules do NOT implement power domain control, so pfuze100 sw4 needs to be always on to make sure these modules work normally. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sdb-reva.dts | 1 + 1 file

[PATCH 1/4] ARM: dts: imx6qdl-sabresd: make pfuze100 sw4 always on

2018-07-16 Thread Anson Huang
On i.MX6QDL Sabre-SD board, pfuze100 sw4 supplies GPS, touch and RGMII etc., these modules do NOT implement power domain control, so pfuze100 sw4 needs to be always on to make sure these modules work normally. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 1 + 1 file ch

Re: [PATCH RFC 1/2] mmc: sdhci: Allow platform controlled voltage switching

2018-07-16 Thread Vijay Viswanath
On 7/10/2018 4:37 PM, Adrian Hunter wrote: On 21/06/18 15:23, Vijay Viswanath wrote: Some controllers can have internal mechanism to inform the SW that it is ready for voltage switching. For such controllers, changing voltage before the HW is ready can result in various issues. Add a quirk,

Re: [PATCH 1/5] x86/pti: check the return value ofpti_user_pagetable_walk_p4d

2018-07-16 Thread Thomas Gleixner
On Tue, 17 Jul 2018, jiang.bi...@zte.com.cn wrote: > > On 07/15/2018 09:03 PM, Jiang Biao wrote: > >> diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c > >> index 4d418e7..be9e5bc 100644 > >> --- a/arch/x86/mm/pti.c > >> +++ b/arch/x86/mm/pti.c > >> @@ -195,8 +195,10 @@ static p4d_t *pti_user_page

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-16 Thread Benjamin Herrenschmidt
On Mon, 2018-07-16 at 07:55 -0600, Rob Herring wrote: > If that data is one set per SoC, then i'm not that concerned having > platform-specific data in the driver. That doesn't mean the driver is > not "generic". It's still not clear to me in this thread, how much of > this is board specific, but g

linux-next: build failure after merge of the integrity tree

2018-07-16 Thread Stephen Rothwell
Hi all, After merging the integrity tree, today's linux-next build (x86_64 allmodconfig) failed like this: security/integrity/ima/ima_main.c:549:5: error: redefinition of 'ima_load_data' int ima_load_data(enum kernel_load_data_id id) ^ security/integrity/ima/ima_main.c:506:5: no

[PATCH v2] spi: spi-fsl-dspi: Fill actual_length when doing DMA transfer

2018-07-16 Thread Andrey Smirnov
Upper layer users of SPI device drivers may rely on 'actual_length', so it is important that information is correctly reported. One such example is spi_mem_exec_op() function that will fail if 'actual_length' of the data transferred is not what was requested. Add necessary code to populate 'actual_

[lkp-robot] [afs] 5b86d4ff5d: BUG:unable_to_handle_kernel

2018-07-16 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 5b86d4ff5dce3271dff54119e06174dc22422903 ("afs: Implement network namespacing") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s test-d

Re: [patch -mm] mm, oom: remove oom_lock from exit_mmap

2018-07-16 Thread David Rientjes
On Sat, 14 Jul 2018, Tetsuo Handa wrote: > David is making changes using timeout based back off (in linux-next.git) > which is inappropriately trying to use MMF_UNSTABLE for two purposes. > If you believe there is a problem with the use of MMF_UNSTABLE as it sits in -mm, please follow up direct

[PATCH v5 02/11] crypto: cbc: Remove VLA usage

2018-07-16 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this uses the upper bounds on blocksize. Since this is always a cipher blocksize, use the existing cipher max blocksize. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1rq...@mail.gmail.com Signed-off-by:

[PATCH v5 09/11] crypto: shash: Remove VLA usage in unaligned hashing

2018-07-16 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this uses the newly defined max alignment to perform unaligned hashing to avoid VLAs, and drops the helper function while adding sanity checks on the resulting buffer sizes. Additionally, the __aligned_largest macro is removed since thi

[PATCH v5 01/11] crypto: xcbc: Remove VLA usage

2018-07-16 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this uses the maximum blocksize and adds a sanity check. For xcbc, the blocksize must always be 16, so use that, since it's already being enforced during instantiation. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC

Re: [patch -mm] mm, oom: remove oom_lock from exit_mmap

2018-07-16 Thread David Rientjes
On Fri, 13 Jul 2018, Michal Hocko wrote: > > diff --git a/mm/oom_kill.c b/mm/oom_kill.c > > index 0fe4087d5151..e6328cef090f 100644 > > --- a/mm/oom_kill.c > > +++ b/mm/oom_kill.c > > @@ -488,9 +488,11 @@ void __oom_reap_task_mm(struct mm_struct *mm) > > * Tell all users of get_user/copy_from

Re: [PATCH v3 1/5] dt-bindings: fsi: Document binding for the fsi-master-ast-cf "device"

2018-07-16 Thread Benjamin Herrenschmidt
On Mon, 2018-07-16 at 09:33 -0600, Rob Herring wrote: > On Thu, Jul 12, 2018 at 01:48:43PM +1000, Benjamin Herrenschmidt wrote: > > This isn't per-se a real device, it's a pseudo-device that > > represents the use of the Aspeed built-in ColdFire to > > implement the FSI protocol by bitbanging the G

Re: [PATCH] spi: spi-fsl-dspi: Fill actual_length when doing DMA transfer

2018-07-16 Thread Andrey Smirnov
On Mon, Jul 16, 2018 at 4:26 AM Mark Brown wrote: > > On Sun, Jul 15, 2018 at 11:25:08PM -0700, Andrey Smirnov wrote: > > Users of SPI device drivers may rely on 'actual_length', so it is > > important that information is correctly reported. One example would be > > spi_mem_exec_op() which will fa

[PATCH v2] net: dsa: Remove VLA usage

2018-07-16 Thread Kees Cook
From: Salvatore Mesoraca We avoid 2 VLAs by using a pre-allocated field in dsa_switch. We also try to avoid dynamic allocation whenever possible (when using fewer than bits-per-long ports, which is the common case). Link: http://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1rq

Re: [tip:sched/core] sched/cputime: Ensure accurate utime and stime ratio in cputime_adjust()

2018-07-16 Thread Xunlei Pang
On 7/17/18 1:41 AM, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > >> On Sun, Jul 15, 2018 at 04:36:17PM -0700, tip-bot for Xunlei Pang wrote: >>> Commit-ID: 8d4c00dc38a8aa30dae8402955e55e7b34e74bc8 >>> Gitweb: >>> https://git.kernel.org/tip/8d4c00dc38a8aa30dae8402955e55e7b34e74bc8 >>> A

[PATCH] ARM: dts: vf610: Add ZII SSMB SPU3 board

2018-07-16 Thread Andrey Smirnov
Add support for Zodiac Inflight Innovations SSMB SPU3 board (VF610-based). Cc: Shawn Guo Cc: Fabio Estevam Cc: cphe...@gmail.com Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Andrew Lunn Signed-off-by: Andrey Smirnov ---

Re: [patch v3 -mm 3/6] mm, memcg: add hierarchical usage oom policy

2018-07-16 Thread David Rientjes
On Mon, 16 Jul 2018, Roman Gushchin wrote: > Hello, David! > > I think that there is an inconsistency in the memory.oom_policy definition. > "none" and "cgroup" policies defining how the OOM scoped to this particular > memory cgroup (or system, if set on root) is handled. And all sub-tree > setti

Re: [RFC PATCH rcu] rcutorture: err_segs_recorded can be static

2018-07-16 Thread Paul E. McKenney
On Tue, Jul 17, 2018 at 09:44:52AM +0800, kbuild test robot wrote: > > Fixes: 07809ecaa895 ("rcutorture: Dump reader protection sequence if failures > or close calls") > Signed-off-by: kbuild test robot Good catch! I have folded this in with attribution.

Re: [PATCH v13 2/2] Add oom victim's memcg to the oom context information

2018-07-16 Thread David Rientjes
On Sun, 15 Jul 2018, 禹舟键 wrote: > Hi David > Could I use use plain old %d? Just like this, > pr_cont(",task=%s,pid=%d,uid=%d\n", p->comm, p->pid, > from_kuid(&init_user_ns, task_uid(p))); > Yes please!

Re: [PATCH 1/2] ARM: mxs_defconfig: use MXSFB DRM driver

2018-07-16 Thread Shawn Guo
On Thu, Jul 12, 2018 at 12:59:41PM +0200, Stefan Agner wrote: > Use the the DRM driver for MXSFB LCD controller (used in i.MX23/ > i.MX28/i.MX6SX or i.MX7). Remove CONFIG_FB_MXS which will soon be > removed. > > Note that this does not remove CONFIG_FB. CONFIG_FB gets selected > implicity by CONFI

Re: [PATCH 1/2] ata: libahci: Correct setting of DEVSLP register

2018-07-16 Thread Srinivas Pandruvada
On Tue, 2018-07-17 at 11:26 +0800, AceLan Kao wrote: > Tested-by: AceLan Kao Thanks Kao for the test. -Srinivas > > The patches help the power consumption a little bit on my test > system, > and no obvious issue I can observe. > > 2018-07-03 3:01 GMT+08:00 Srinivas Pandruvada nux.intel.com>

Re: [PATCH v2 0/2] Add support for the ConnectCore 6UL SOM and SBC Express

2018-07-16 Thread Shawn Guo
On Thu, Jul 12, 2018 at 10:20:34AM +0200, Alex Gonzalez wrote: > Alex Gonzalez (2): > ARM: dts: imx6ul: Add DTS for ConnectCore 6UL System-On-Module (SOM) > ARM: dts: imx6ul: Add DTS for ConnectCore 6UL SBC Express Applied both, thanks.

[PATCH V2] soc: imx: gpc: restrict register range for regmap access

2018-07-16 Thread Anson Huang
GPC registers are NOT continuous, some registers are reserved and accessing them from userspace will trigger external abort, add regmap register access table to avoid below abort: root@imx6slevk:~# cat /sys/kernel/debug/regmap/20dc000.gpc/registers [ 108.480477] Unhandled fault: imprecise externa

Re: [PATCH v2] tg: show the sum wait time of an task group

2018-07-16 Thread 王贇
Hi, folks On 2018/7/4 上午11:27, 王贇 wrote: Although we can rely on cpuacct to present the cpu usage of task group, it is hard to tell how intense the competition is between these groups on cpu resources. Monitoring the wait time of each process or sched_debug could cost too much, and there is no

[PATCH 0/4] spi: introduce SPI_CS_WORD mode flag

2018-07-16 Thread David Lechner
This series introduces a new SPI mode flag, SPI_CS_WORD, that indicates that the chip select line should be toggled after each word sent. This series includes examples of how this can be implemented for both an SPI controller and an SPI device. The motivation here is to take advantage of DMA trans

[PATCH 1/4] spi: spi-bitbang: change flags from u8 to u16

2018-07-16 Thread David Lechner
This changes the data type of the flags field in struct spi_bitbang from u8 to u16. This matches the size of the mode field of struct spi_device where these flags are also used. This is done in preparation of adding a new SPI mode flag that will be used with this field that would otherwise not fit

[PATCH 4/4] iio: adc: ti-ads7950: use SPI_CS_WORD to reduce CPU usage

2018-07-16 Thread David Lechner
This changes how the SPI message for the triggered buffer is setup in the TI ADS7950 A/DC driver. By using the SPI_CS_WORD flag, we can read multiple samples in a single SPI transfer. If the SPI controller supports DMA transfers, we can see a significant reduction in CPU usage. For example, on an

[PATCH 2/4] spi: add new SPI_CS_WORD flag

2018-07-16 Thread David Lechner
This adds a new SPI mode flag, SPI_CS_WORD, that is used to indicate that a SPI device requires the chip select to be toggled after each word that is transferred. Signed-off-by: David Lechner --- include/linux/spi/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/

[PATCH 3/4] spi: spi-davinci: Add support for SPI_CS_WORD

2018-07-16 Thread David Lechner
This adds support for the SPI_CS_WORD flag to the TI DaVinci SPI driver. This mode can be used as long as we are using the hardware chip select and not a GPIO chip select. Signed-off-by: David Lechner --- drivers/spi/spi-davinci.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-)

[PATCH] module: Add the print format of Elf_Addr for 32/64-bit compatibly

2018-07-16 Thread Zong Li
Use a similar way like fixed width integer types in inttypes.h. For the ELF, the Elf32_Addr is int type and Elf64_Addr is long long type. It is opposite to definition of inttypes.h, so the Elf_Addr cannot re-use the header. In many architectures, the module loader only print the message of module

Re: [PATCH v2 2/2] pinctrl: meson-g12a: add pinctrl driver support

2018-07-16 Thread Yixun Lan
HI Jerome On 07/16/18 17:54, Jerome Brunet wrote: > +/* uart_ao_a_ee */ +static const unsigned int uart_ao_rx_a_c2_pins[]= { GPIOC_2 }; +static const unsigned int uart_ao_tx_a_c3_pins[]= { GPIOC_3 }; >>> >>> Same comment as Martin about naming consistency ... drop c2 and

Re: [PATCH v5 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-07-16 Thread Taniya Das
On 7/16/2018 10:42 AM, Viresh Kumar wrote: On 12-07-18, 23:35, Taniya Das wrote: +static int qcom_cpu_resources_init(struct platform_device *pdev, + struct device_node *np, unsigned int cpu) +{ + struct cpufreq_qcom *c; + struct resource res; +

Re: [PATCH v5 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-07-16 Thread Taniya Das
Hello Evan, Thank you for testing the patch. On 7/17/2018 4:32 AM, Evan Green wrote: Hi Taniya, On Thu, Jul 12, 2018 at 11:06 AM Taniya Das wrote: The CPUfreq HW present in some QCOM chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq d

Re: [PATCH V2] ARM: dts: make pfuze switch always-on for imx platforms

2018-07-16 Thread Shawn Guo
On Fri, Jul 13, 2018 at 02:16:55AM +, Anson Huang wrote: > Hi, Shawn > Although the commit 5fe156f1cab4 ("regulator: pfuze100: add > enable/disable for switch") is reverted to avoid the boot failure on some > i.MX platforms, but adding the "regulator-always-on" property for those > pfu

Re: [PATCH 00/39 v7] PTI support for x86-32

2018-07-16 Thread David H. Gutteridge
On Wed, 2018-07-11 at 13:29 +0200, Joerg Roedel wrote: > Hi, > > here is version 7 of my patches to enable PTI on x86-32. > Changes to the previous version are: > > * Rebased to v4.18-rc4 > > * Introduced pti_finalize() which is called after > mark_readonly() and used to upda

[PATCH 02/32] staging: gasket: fix typo in apex_enter_reset

2018-07-16 Thread Todd Poynor
From: Todd Poynor Fix typo in log message. Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gasket/apex_driver.c b/drivers/staging/gasket/apex_driver.c index cca4c

[PATCH 10/32] staging: gasket: fix gasket_wait_with_reschedule timeout return code

2018-07-16 Thread Todd Poynor
From: Todd Poynor Return -ETIMEDOUT, not -EINVAL, on timeout, including callers. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 8 drivers/staging/gasket/gasket_core.c | 2 +- 2 files changed, 5 insertions

[PATCH 07/32] staging: gasket: Return EBUSY on mapping create when already in use

2018-07-16 Thread Todd Poynor
From: Todd Poynor gasket_sysfs_create_mapping() return EBUSY if sysfs mapping already in use. Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gasket/gasket_sysfs.

[PATCH 05/32] staging: gasket: remove driver registration on class creation failure

2018-07-16 Thread Todd Poynor
From: Todd Poynor If class_create() fails, remove the gasket driver from the global registration table. Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/gasket/g

[PATCH 20/32] staging: gasket: fix class create bug handling

2018-07-16 Thread Todd Poynor
From: Todd Poynor class_create() never returns NULL, and this driver should never return PTR_ERR(NULL) anyway. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor Reviewed-by: Dmitry Torokhov --- drivers/staging/gasket/gasket_core.c | 2 +- 1 file changed, 1 in

[PATCH 28/32] staging: gasket: fix comment syntax in apex.h

2018-07-16 Thread Todd Poynor
From: Todd Poynor Use kernel-style multi-line comment syntax. Reported-by: Guenter Roeck Signed-off-by: Simon Que Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/gasket/apex.h b/drivers/st

[PATCH 25/32] staging: gasket: apex_ioctl_check_permissions use bool return type

2018-07-16 Thread Todd Poynor
From: Todd Poynor Convert from int return to bool. Reported-by: Guenter Roeck Signed-off-by: Simon Que Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/gasket/apex_driver.c b/drivers

[PATCH 24/32] staging: gasket: apex_clock_gating simplify logic, reduce indentation

2018-07-16 Thread Todd Poynor
From: Todd Poynor Collapse together two checks and return immediately, avoid conditional indentation for most of function code. Reported-by: Guenter Roeck Signed-off-by: Simon Que Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 44 +--- 1 file ch

[PATCH 27/32] staging: gasket: remove else clause after return in if clause

2018-07-16 Thread Todd Poynor
From: Todd Poynor Else after return is unnecessary and may cause static code checkers to complain. Reported-by: Guenter Roeck Signed-off-by: Simon Que Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --

[PATCH 26/32] staging: gasket: gasket page table functions use bool return type

2018-07-16 Thread Todd Poynor
From: Todd Poynor Convert from int to bool return type for gasket page table functions that return values used as booleans. Reported-by: Guenter Roeck Signed-off-by: Simon Que Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 58 +++--- drivers/stagi

[PATCH 04/32] staging: gasket: whitespace fix in gasket_page_table_init

2018-07-16 Thread Todd Poynor
From: Todd Poynor Tab replaced with space. Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_t

[PATCH 15/32] staging: gasket: drop gasket_cdev_get_info, use container_of

2018-07-16 Thread Todd Poynor
From: Todd Poynor Remove gasket_cdev_get_info(), use container_of() directly instead, drop unnecessary NULL checks. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 26 -- 1 file changed, 4 in

[PATCH 17/32] staging: gasket: annotate ioctl arg with __user

2018-07-16 Thread Todd Poynor
From: Todd Poynor For sparse checking. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 12 ++--- drivers/staging/gasket/gasket_core.c | 6 ++- drivers/staging/gasket/gasket_core.h | 4 +- drivers/staging/gasket

[PATCH 08/32] staging: gasket: Remove stale pointers on error allocating attr array

2018-07-16 Thread Todd Poynor
From: Todd Poynor If gasket_sysfs_create_mapping() hits errors allocating the attribute array, remove stale pointers to device info from the mapping object. Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_sysfs.c | 2 ++ 1 file changed, 2 insertions(+)

[PATCH 16/32] staging: gasket: always allow root open for write

2018-07-16 Thread Todd Poynor
From: Todd Poynor Always allow root to open device for writing. Drop special-casing of ioctl permissions for root vs. owner. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor Reviewed-by: Dmitry Torokhov --- drivers/staging/gasket/apex_driver.c | 9 +++

[PATCH 13/32] staging: gasket: gasket_wait_with_reschedule use 32 bits of retry count

2018-07-16 Thread Todd Poynor
From: Todd Poynor Don't need a 64-bit retry counter. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 4 ++-- drivers/staging/gasket/gasket_core.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 31/32] staging: gasket: remove extra parens in gasket_write_mappable_regions

2018-07-16 Thread Todd Poynor
From: Todd Poynor Remove unneeded parentheses around subexpressions. Reported-by: Guenter Roeck Signed-off-by: Simon Que Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gasket/gasket_core.

  1   2   3   4   5   6   7   8   9   10   >