[PATCH] net: LLC: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Eric Dumazet Cc: Hans Liljestrand Cc: "Paul E. McKenney" Cc: "Reshetova, Elena

Re: [PATCH] PM / QoS: Fix device resume latency PM QoS

2017-10-24 Thread Rafael J. Wysocki
On Tuesday, October 24, 2017 7:54:09 AM CEST Ramesh Thomas wrote: > On 2017-10-20 at 13:27:34 +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > > > static ssize_t pm_qos_resume_latency_store(struct device *dev, > > @@ -228,11 +235,19 @@ static ssize_t pm_qos_resume_latency_st

Re: [PATCH v6 6/6] perf util: use correct IP mapping to find srcline for hist entry

2017-10-24 Thread Milian Wolff
On Freitag, 20. Oktober 2017 07:15:33 CEST Namhyung Kim wrote: > Hi Milian, > > On Thu, Oct 19, 2017 at 12:54:18PM +0200, Milian Wolff wrote: > > On Mittwoch, 18. Oktober 2017 20:53:50 CEST Milian Wolff wrote: > > > When inline frame resolution is disabled, a bogus srcline is obtained > > > for hi

Re: [PATCH 1/3 v2] usb: dwc2: Improve gadget state disconnection handling

2017-10-24 Thread Minas Harutyunyan
On 10/24/2017 1:33 AM, John Stultz wrote: > In the earlier commit dad3f793f20f ("usb: dwc2: Make sure we > disconnect the gadget state"), I was trying to fix up the > fact that we somehow weren't disconnecting the gadget state, > so that when the OTG port was plugged in the second time we > would g

Re: [PATCH 04/12] PM / core: Add SMART_SUSPEND driver flag

2017-10-24 Thread Rafael J. Wysocki
On Tuesday, October 24, 2017 7:22:25 AM CEST Ulf Hansson wrote: > On 16 October 2017 at 03:29, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Define and document a SMART_SUSPEND flag to instruct bus types and PM > > domains that the system suspend callbacks provided by the driver ca

答复: [PATCH v5 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs

2017-10-24 Thread liwei (CM)
Hi, Arnd Sorry to bother you, what's your opinion about my explanation and revision method? I am looking forward to your reply, thanks! -邮件原件- 发件人: liwei (CM) 发送时间: 2017年10月21日 17:59 收件人: 'Arnd Bergmann' 抄送: Rob Herring; Mark Rutland; xuwei (O); Catalin Marinas; Will Deacon; Vinayak Ho

Re: [PATCH 1/3] drm/exynos/dsi: Use common error handling code in exynos_dsi_enable()

2017-10-24 Thread SF Markus Elfring
>> @@ -1401,11 +1400,14 @@ static void exynos_dsi_enable(struct drm_encoder >> *encoder) >> dsi->state &= ~DSIM_STATE_ENABLED; >> exynos_dsi_set_display_enable(dsi, false); >> drm_panel_unprepare(dsi->panel); >> - pm_runtime_put_sync(ds

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Greg KH
On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] > Restart is not permit > = > UBSAN: Undefined behaviour in > kernel/linux-4.4/drivers/char/random.c:676:19 > signed integer

Re: [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled

2017-10-24 Thread Russell King - ARM Linux
On Tue, Oct 24, 2017 at 09:09:52AM +0100, Ard Biesheuvel wrote: > The following patch appears to fix the issue as well: > > diff --git a/arch/arm/boot/compressed/vmlinux.lds.S > b/arch/arm/boot/compressed/vmlinux.lds.S > index 7a4c59154361..0e0f504e256e 100644 > --- a/arch/arm/boot/compressed/vmli

Re: [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled

2017-10-24 Thread Ard Biesheuvel
On 24 October 2017 at 10:09, Russell King - ARM Linux wrote: > On Tue, Oct 24, 2017 at 09:09:52AM +0100, Ard Biesheuvel wrote: >> The following patch appears to fix the issue as well: >> >> diff --git a/arch/arm/boot/compressed/vmlinux.lds.S >> b/arch/arm/boot/compressed/vmlinux.lds.S >> index 7a4

Re: [GIT PULL 00/24] perf/core improvements and fixes

2017-10-24 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, hopefully the next batch will have a > few other interesting patchkits, from Jin Yao, Kan Liang and Milian > Wolff. > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes s

RE: [PATCH v2] arm64: dts: ls1088a: Add USB support

2017-10-24 Thread Yinbo Zhu
-Original Message- From: Shawn Guo [mailto:shawn...@kernel.org] Sent: Friday, September 22, 2017 2:55 PM To: Yinbo Zhu Cc: Rob Herring ; Mark Rutland ; Catalin Marinas ) ; Will Deacon ) ; Harninder Rai ; Raghav Dogra ; Ashish Kumar ; Andy Tang ; open list:OPEN FIRMWARE AND FLATTENED

Re: [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled

2017-10-24 Thread jeffy
Hi guys, On 10/24/2017 04:09 PM, Ard Biesheuvel wrote: The following patch appears to fix the issue as well: diff --git a/arch/arm/boot/compressed/vmlinux.lds.S b/arch/arm/boot/compressed/vmlinux.lds.S index 7a4c59154361..0e0f504e256e 100644 --- a/arch/arm/boot/compressed/vmlinux.lds.S +++ b/ar

Re: [PATCH] Clockevents: Always call clockevents_program_event

2017-10-24 Thread Sodagudi Prasad
On 2017-10-24 01:37, Thomas Gleixner wrote: On Tue, 24 Oct 2017, Prasad Sodagudi wrote: Currently tick_program_event function is not calling clockevents_program_event when 'expires == KTIME_MAX', it is just updating clockevent state to CLOCK_EVT_STATE_ONESHOT_STOPPED. clockevents_program_eve

Re: [PATCH v2] spi-nor: intel-spi: Fix Kconfig dependency to LPC_ICH

2017-10-24 Thread Mika Westerberg
On Mon, Oct 23, 2017 at 11:59:39PM -0700, Bin Meng wrote: > The Intel SPI-NOR driver is dependent on LPC_ICH to get the platform > data. Select it in the Kconfig. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - Enforce dependency on PCI > > drivers/mtd/spi-nor/Kconfig | 3 ++- > 1

Re: [PATCH V3 0/6] event synthesization multithreading for perf record

2017-10-24 Thread Ingo Molnar
* Liang, Kan wrote: > For 'all', do you mean the whole process? Yeah. > I think that's the ultimate goal. Eventually there will be per-CPU recording > threads created at the beginning of perf record and go through the whole > process. > The plan is to do the multithreading step by step from

Re: [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled

2017-10-24 Thread Russell King - ARM Linux
On Tue, Oct 24, 2017 at 10:13:09AM +0100, Ard Biesheuvel wrote: > On 24 October 2017 at 10:09, Russell King - ARM Linux > wrote: > > The question is: do we want to know when additional sections get > > emitted into the binary? > > Well, we need to know whether the size of zImage is a multiple of

Re: [PATCH net-next 0/2] net: dsa: don't unmask port bitmaps

2017-10-24 Thread Andrew Lunn
> In case of probe deferral, you get the full probe function to exit with > an error, and that usually involves freeing the recently allocated > dsa_switch instance, and then allocating a new one when probe is > re-entered, so that should not be a problem. Hi Florian That is the simple case. I re

Re: [PATCH] spi-nor: intel-spi: Remove EXPERT dependency

2017-10-24 Thread Mika Westerberg
On Tue, Oct 24, 2017 at 12:40:53AM -0700, Bin Meng wrote: > The idea to have the intel-spi driver dependent on EXPERT was exactly > because we did not want ordinary users playing with the device and > inadvertently overwrite their BIOSes (if it is not protected). This > seems to be superfluous henc

Re: [PATCH 16/19] linux/compiler.h: Split into compiler.h and compiler-types.h

2017-10-24 Thread Ingo Molnar
* Paul E. McKenney wrote: > From: Will Deacon > > linux/compiler.h is included indirectly by linux/types.h via > uapi/linux/types.h -> uapi/linux/posix_types.h -> linux/stddef.h > -> uapi/linux/stddef.h and is needed to provide a proper definition of > offsetof. > > Unfortunately, compiler.h

Re: [PATCH V8 00/14] mmc: Add Command Queue support

2017-10-24 Thread Adrian Hunter
On 24/10/17 10:39, Ulf Hansson wrote: > [...] > >>> However, you have completely ignored mine, Linus and Bartlomiej's >>> comments about that we want the blkmq port being a separate patch(es) >>> and then make the CMDQ patches on top. This worries me, because it >>> seems like our messages don't r

Re: [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled

2017-10-24 Thread Ard Biesheuvel
On 24 October 2017 at 10:22, Russell King - ARM Linux wrote: > On Tue, Oct 24, 2017 at 10:13:09AM +0100, Ard Biesheuvel wrote: >> On 24 October 2017 at 10:09, Russell King - ARM Linux >> wrote: >> > The question is: do we want to know when additional sections get >> > emitted into the binary? >>

Re: [PATCH v2 2/2] mfd: Add Spreadtrum SC27xx series PMICs driver

2017-10-24 Thread Lee Jones
On Mon, 16 Oct 2017, Baolin Wang wrote: > This patch adds support for Spreadtrum SC27xx series PMIC MFD core, and It > provides communication through the SPI interfaces. The SC27xx series PMICs > contains the following 6 major components: > - DCDCs > - LDOs > - Battery management system > - Audio

[PATCH] drivers/wireless: rtlwifi: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Kalle Valo Cc: Larry Finger Cc: Chaoming Li Cc: Ping-Ke Shih Cc: Arvind Yadav Cc: Souptick Joarder

[PATCH] drivers/wireless: qtnfmac: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Kalle Valo Cc: Igor Mitsyanko Cc: Avinash Patil Cc: Sergey Matyukevich Cc: Kamlesh Rath Cc: linux-w

Re: [PATCH v2] net: rxrpc: mark expected switch fall-throughs

2017-10-24 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 19 Oct 2017 16:54:48 -0500 > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva > --- > This code was tested by compilation only (GCC 7.2.0 was used). > Plea

[PATCH] drivers/wireless: rsi: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Kalle Valo Cc: Amitkumar Karwar Cc: Prameela Rani Garnepudi Cc: Pavani Muthyala Cc: Karun Eagalapati

[PATCH] drivers/wireless: marvell/mwifiex: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Kalle Valo Cc: Amitkumar Karwar Cc: Nishant Sarmukadam Cc: Ganapathi Bhat Cc: Xinming Hu Cc: Arvind

[PATCH] drivers/wireless: atmel: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Simon Kelley Cc: Kalle Valo Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-b

[PATCH] drivers/wireless: iwlwifi/mvm: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. The RCU lifetime on baid_data is unclear, so this adds a direct copy of the rcu_ptr passed to the original c

[PATCH] drivers/wireless: marvell/libertas: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Kalle Valo Cc: Arvind Yadav Cc: Ingo Molnar Cc: Johannes Berg Cc: "David S. Miller" Cc: Andrew Zabo

RE: [PATCH] ipv4: esp4: use BUG_ON instead of if condition followed by BUG

2017-10-24 Thread Yossi Kuperman
> Subject: [PATCH] ipv4: esp4: use BUG_ON instead of if condition followed by > BUG > > Use BUG_ON instead of if condition followed by BUG in esp_remove_trailer. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva > --- > net/ipv4/esp4.c | 3 +-- > 1

Re: [PATCH v2] net: smc_close: mark expected switch fall-through

2017-10-24 Thread David Miller
From: "Gustavo A. R. Silva" Date: Sat, 21 Oct 2017 20:35:30 -0500 > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case I placed the "fall through" comment > on its own line, which is what GCC is e

Re: [PATCH 16/19] linux/compiler.h: Split into compiler.h and compiler-types.h

2017-10-24 Thread Will Deacon
On Tue, Oct 24, 2017 at 11:25:12AM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > From: Will Deacon > > > > linux/compiler.h is included indirectly by linux/types.h via > > uapi/linux/types.h -> uapi/linux/posix_types.h -> linux/stddef.h > > -> uapi/linux/stddef.h and is needed

Re: [PATCH 17/19] locking/barriers: Kill lockless_dereference

2017-10-24 Thread Ingo Molnar
* Paul E. McKenney wrote: > From: Will Deacon > > lockless_dereference is a nice idea, but its gained little traction in > kernel code since it's introduction three years ago. This is partly s/its/it s/it's/its > because it's a pain to type, but also because using READ_ONCE instead > will wo

Re: [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled

2017-10-24 Thread Ard Biesheuvel
On 24 October 2017 at 10:26, Ard Biesheuvel wrote: > On 24 October 2017 at 10:22, Russell King - ARM Linux > wrote: >> On Tue, Oct 24, 2017 at 10:13:09AM +0100, Ard Biesheuvel wrote: >>> On 24 October 2017 at 10:09, Russell King - ARM Linux >>> wrote: >>> > The question is: do we want to know wh

[PATCH] drivers/wireless: ath: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Kalle Valo Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-by: Kees Cook ---

[PATCH] rcu: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "Paul E. McKenney" Cc: Josh Triplett Cc: Steven Rostedt Cc: Mathieu Desnoyers Cc: Lai Jiangshan Sig

Re: [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet

2017-10-24 Thread David Miller
From: Ran Wang Date: Mon, 23 Oct 2017 18:10:23 +0800 > This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network > Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with > driver drivers/net/usb/r8152.c > > Signed-off-by: Ran Wang Applied.

[PATCH] drivers/wireless: cw1200: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Solomon Peachy Cc: Kalle Valo Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off

Re: [GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-24 Thread Ingo Molnar
* Paul E. McKenney wrote: > Mark Rutland (14): > dm integrity: Kill off ACCESS_ONCE() > EDAC, altera: Kill off ACCESS_ONCE() > firmware/ivc: Kill off ACCESS_ONCE() > fs: dcache: Kill off ACCESS_ONCE() > fs: ncpfs: Kill off ACCESS_ONCE() > media: dvb_ringbuffer

[PATCH] drivers/wireless: iwlegacy: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Kalle Valo Cc: Stanislaw Gruszka Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Signed-

Re: [PATCH 09/19] net: average: Kill off ACCESS_ONCE()

2017-10-24 Thread Ingo Molnar
* Johannes Berg wrote: > On Mon, 2017-10-23 at 21:07 +, Paul E. McKenney wrote: > > From: Mark Rutland > > > > For several reasons, it is desirable to use {READ,WRITE}_ONCE() in > > preference to ACCESS_ONCE(), and new code is expected to use one of the > > former. So far, there's been no

Re: [PATCH net 3/3] net: mvpp2: do not call txq_done from the Tx path when Tx irqs are used

2017-10-24 Thread David Miller
From: Antoine Tenart Date: Mon, 23 Oct 2017 15:24:31 +0200 > When Tx IRQs are used, txq_bufs_free() can be called from both the Tx > path and from NAPI poll(). This led to CPU stalls as if these two tasks > (Tx and Poll) are scheduled on two CPUs at the same time, DMA unmapping > operations are d

Re: [PATCH net 2/3] net: mvpp2: do not unmap TSO headers buffers

2017-10-24 Thread David Miller
From: Antoine Tenart Date: Mon, 23 Oct 2017 15:24:30 +0200 > The TSO header buffers are coming from a per cpu pool and should not > be unmapped as they are reused. The PPv2 driver was unmapping all > descriptors buffers unconditionally. This patch fixes this by checking > the buffers dma addresse

[PATCH] cros_ec: Fix a memory leak in show/store sysfs callbacks

2017-10-24 Thread Thierry Escande
This patch fixes a memory leak in the sysfs show/store callbacks of the keyboard wake angle attribute. The EC message structure was allocated but never freed. Signed-off-by: Thierry Escande --- drivers/platform/chrome/cros_ec_sysfs.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions

Re: [PATCH net 1/3] net: mvpp2: fix TSO headers allocation and management

2017-10-24 Thread David Miller
From: Antoine Tenart Date: Mon, 23 Oct 2017 15:24:29 +0200 > From: Yan Markman > > TSO headers are managed with txq index and therefore should be aligned > with the txq size, not with the aggregated txq size. > > Fixes: 186cd4d4e414 ("net: mvpp2: software tso support") > Reported-by: Marc Zyng

Re: [PATCH] cdc_ether: flag the Huawei ME906/ME909 as WWAN

2017-10-24 Thread David Miller
From: Aleksander Morgado Date: Mon, 23 Oct 2017 17:16:41 +0200 > The Huawei ME906 (12d1:15c1) comes with a standard ECM interface that > requires management via AT commands sent over one of the control TTYs > (e.g. connected with AT^NDISDUP). > > Signed-off-by: Aleksander Morgado Applied.

[PATCH net-next 1/2] net: dsa: lan9303: Move struct lan9303 to include/linux/lan9303.h

2017-10-24 Thread Egil Hjelmeland
The next patch require net/dsa/tag_lan9303.c to access struct lan9303. Therefore move struct lan9303 definitions from drivers/net/dsa/lan9303.h to new file include/linux/lan9303.h. Signed-off-by: Egil Hjelmeland --- MAINTAINERS | 1 + drivers/net/dsa/lan9303.h | 34 +--

[PATCH net-next 2/2] net: dsa: lan9303: Learn addresses on CPU port when bridged

2017-10-24 Thread Egil Hjelmeland
When CPU transmit directly to port using tag, the LAN9303 does not learn MAC addresses received on the CPU port into the ALR. ALR learning is performed only when transmitting using ALR lookup. Solution: If the two external ports are bridged and the packet is not STP BPDU, then use ALR lookup to al

Re: [RESEND PATCH 1/3] usb: dwc3: Don't reinitialize core during host bus-suspend/resume

2017-10-24 Thread Felipe Balbi
Hi, Manu Gautam writes: > Hi Felipe, > > Let me know if patches in this series look fine to you. It does, I just don't have means to test this as intel's platform doesn't give SW access to PHYs. I was hoping someone from TI would give a tested-by, but it's too late. We'll just take this series

[PATCH net-next 0/2] net: dsa: lan9303: Learn addresses on CPU port when bridged

2017-10-24 Thread Egil Hjelmeland
When CPU transmit directly to port using tag, the LAN9303 does not learn MAC addresses received on the CPU port into the ALR table. ALR learning is performed only when transmitting using ALR lookup. Solution: If the two external ports are bridged and the packet is not STP BPDU, then use ALR lookup

Re: [PATCH] staging: greybus: Convert timers to use timer_setup()

2017-10-24 Thread Bryan O'Donoghue
On 24/10/17 09:25, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Greg Kroah-Hartman Cc: "Bryan O'Donoghue" Cc: Johan Hovold Cc:

Re: [PATCH v5 5/6] input: Add MediaTek PMIC keys support

2017-10-24 Thread Chen Zhong
On Mon, 2017-10-23 at 22:44 -0700, Dmitry Torokhov wrote: > On Wed, Sep 27, 2017 at 06:44:07PM +0800, Chen Zhong wrote: > > This patch add support to handle MediaTek PMIC MT6397/MT6323 key > > interrupts including pwrkey and homekey, also add setting for > > long press key shutdown behavior. > > >

[PATCH v3 0/8] cross-release: enhence performance and fix false positives

2017-10-24 Thread Byungchul Park
Changes from v2 - Combine 2 serises, fixing false positives and enhance performance - Add Christoph Hellwig's patch simplifying submit_bio_wait() code - Add 2 more 'init with lockdep map' macros for completionm - Rename init_completion_with_map() to init_completion_map() Changes from v1 - Fix kcon

Re: [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled

2017-10-24 Thread Russell King - ARM Linux
On Tue, Oct 24, 2017 at 10:30:41AM +0100, Ard Biesheuvel wrote: > On 24 October 2017 at 10:26, Ard Biesheuvel wrote: > > On 24 October 2017 at 10:22, Russell King - ARM Linux > > wrote: > >> On Tue, Oct 24, 2017 at 10:13:09AM +0100, Ard Biesheuvel wrote: > >>> On 24 October 2017 at 10:09, Russell

[PATCH v3 7/8] genhd.h: Remove trailing white space

2017-10-24 Thread Byungchul Park
Trailing white space is not accepted in kernel coding style. Remove them. Signed-off-by: Byungchul Park --- include/linux/genhd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/genhd.h b/include/linux/genhd.h index ea652bf..6d85a75 100644 --- a/include/linu

[PATCH v3 1/8] block: use DECLARE_COMPLETION_ONSTACK in submit_bio_wait

2017-10-24 Thread Byungchul Park
From: Christoph Hellwig Simplify the code by getting rid of the submit_bio_ret structure. Signed-off-by: Christoph Hellwig --- block/bio.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/block/bio.c b/block/bio.c index 101c2a9..5e901bf 100644 --- a/bloc

[PATCH v3 6/8] lockdep: Remove unnecessary acquisitions wrt workqueue flush

2017-10-24 Thread Byungchul Park
The workqueue added manual acquisitions to catch deadlock cases. Now crossrelease was introduced, some of those are redundant, since wait_for_completion() already includes the acquisition for itself. Removed it. Signed-off-by: Byungchul Park --- include/linux/workqueue.h | 4 ++-- kernel/workqu

[PATCH v3 8/8] block: Assign a lock_class per gendisk used for wait_for_completion()

2017-10-24 Thread Byungchul Park
Darrick and Dave Chinner posted the following warning: > == > WARNING: possible circular locking dependency detected > 4.14.0-rc1-fixes #1 Tainted: GW > -- > loop0/31693 is trying to acq

[PATCH v3 2/8] lockdep: Introduce CROSSRELEASE_STACK_TRACE and make it not unwind as default

2017-10-24 Thread Byungchul Park
Johan Hovold reported a performance regression by crossrelease like: > Boot time (from "Linux version" to login prompt) had in fact doubled > since 4.13 where it took 17 seconds (with my current config) compared to > the 35 seconds I now see with 4.14-rc4. > > I quick bisect pointed to lockdep and

[PATCH v3 3/8] lockdep: Remove BROKEN flag of LOCKDEP_CROSSRELEASE

2017-10-24 Thread Byungchul Park
Now the performance regression was fixed, re-enable CONFIG_LOCKDEP_CROSSRELEASE and CONFIG_LOCKDEP_COMPLETIONS. Signed-off-by: Byungchul Park --- lib/Kconfig.debug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 90ea784..fe8fceb

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Chen Feng
On 2017/10/24 17:09, Greg KH wrote: > On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: >> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] >> Restart is not permit >> = >> UBSAN: Undefined behaviour in >> kernel/linux-4.4/d

Re: [PATCH] staging: greybus: Convert timers to use timer_setup()

2017-10-24 Thread Bryan O'Donoghue
On 24/10/17 10:35, Bryan O'Donoghue wrote: On 24/10/17 09:25, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Greg Kroah-Hartman

Re: [PATCH 0/6] Boot-time switching between 4- and 5-level paging for 4.15, Part 1

2017-10-24 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Mon, Oct 23, 2017 at 02:40:14PM +0200, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > > Making a variable that 'looks' like a constant macro dynamic in a rare > > > > Kconfig > > > > scenario is asking for trouble. > > > > > > We expect bo

[PATCH v3 4/8] lockdep: Add a kernel parameter, crossrelease_fullstack

2017-10-24 Thread Byungchul Park
Make whether to allow recording full stack, in cross-release feature, switchable at boot time via a kernel parameter, 'crossrelease_fullstack'. In case of a splat with no stack trace, one could just reboot and set the kernel parameter to get the full data without having to recompile the kernel. Ch

[PATCH v3 5/8] completion: Add support for initializing completion with lockdep_map

2017-10-24 Thread Byungchul Park
Sometimes, we want to initialize completions with sparate lockdep maps to assign lock classes as desired. For example, the workqueue code needs to directly manage lockdep maps, since only the code is aware of how to classify lockdep maps properly. Provide additional macros initializing completions

Re: [PATCH net-next] net: dsa: check master device before put

2017-10-24 Thread David Miller
From: Vivien Didelot Date: Mon, 23 Oct 2017 14:01:41 -0400 > In the case of pdata, the dsa_cpu_parse function calls dev_put() before > making sure it isn't NULL. Fix this. > > Fixes: 71e0bbde0d88 ("net: dsa: Add support for platform data") > Signed-off-by: Vivien Didelot Please submit a 'net'

Re: [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled

2017-10-24 Thread Ard Biesheuvel
On 24 October 2017 at 10:38, Russell King - ARM Linux wrote: > On Tue, Oct 24, 2017 at 10:30:41AM +0100, Ard Biesheuvel wrote: >> On 24 October 2017 at 10:26, Ard Biesheuvel >> wrote: >> > On 24 October 2017 at 10:22, Russell King - ARM Linux >> > wrote: >> >> On Tue, Oct 24, 2017 at 10:13:09AM

Re: [PATCH 17/19] locking/barriers: Kill lockless_dereference

2017-10-24 Thread Will Deacon
On Tue, Oct 24, 2017 at 11:31:04AM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > From: Will Deacon > > > > lockless_dereference is a nice idea, but its gained little traction in > > kernel code since it's introduction three years ago. This is partly > > s/its/it > s/it's/its

Re: [PATCH] ipv4: icmp: use BUG_ON instead of if condition followed by BUG

2017-10-24 Thread David Miller
From: "Gustavo A. R. Silva" Date: Mon, 23 Oct 2017 13:08:14 -0500 > Use BUG_ON instead of if condition followed by BUG in icmp_timestamp. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Applied.

[PATCH net 3/3] net: mvpp2: do not sleep in set_rx_mode

2017-10-24 Thread Antoine Tenart
This patch replaces GFP_KERNEL by GFP_ATOMIC to avoid sleeping in the ndo_set_rx_mode() call which is called with BH disabled. Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit") Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 4 ++-- 1

Re: [PATCH] ipv4: tcp_minisocks: use BUG_ON instead of if condition followed by BUG

2017-10-24 Thread David Miller
From: "Gustavo A. R. Silva" Date: Mon, 23 Oct 2017 13:10:56 -0500 > Use BUG_ON instead of if condition followed by BUG in tcp_time_wait. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Applied.

Re: drivers/gpu/drm/gma500/mdfld_intel_display.c:102:37: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

2017-10-24 Thread Jani Nikula
On Tue, 24 Oct 2017, David Binderman wrote: > Hello there, > > > Code I looked at is in linux-4.14-rc6, released 20171023, so reasonably > > up to date. > > > I did a further check on github.com/torvalds/linux and the code > > looks wrong there, too. > > > So I don't see the fix you mentioned in e

Re: [PATCH 25/25] usb/gadget/NCM: Replace tasklet with softirq hrtimer

2017-10-24 Thread Felipe Balbi
Anna-Maria Gleixner writes: > From: Thomas Gleixner > > The tx_tasklet tasklet is used in invoke the hrtimer (task_timer) in > softirq context. This can be also achieved without the tasklet but with > CLOCK_MONOTONIC_SOFT as hrtimer base. > > Signed-off-by: Thomas Gleixner > Signed-off-by: Anna

Re: [PATCH 1/2] f2fs: add missing quota_initialize in f2fs_set_acl

2017-10-24 Thread Chao Yu
On 2017/10/24 6:14, Jaegeuk Kim wrote: > This patch adds to call quota_intialize in f2fs_set_acl. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/acl.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c > index 436b3a1464d9..f6471f9d707e 100644 > --- a/fs/

Re: [PATCH v3] net/sock: Update sk rcu iterator macro.

2017-10-24 Thread David Miller
From: Tim Hansen Date: Mon, 23 Oct 2017 15:35:58 -0400 > Mark hlist node in sk rcu iterator as protected by the rcu. > hlist_next_rcu accomplishes this and silences the warnings > sparse throws. > > Found with make C=1 net/ipv4/udp.o on linux-next tag > next-20171009. > > Signed-off-by: Tim Ha

[PATCH net 1/3] net: mvpp2: fix typo in the tcam setup

2017-10-24 Thread Antoine Tenart
This patch fixes a typo in the mvpp2_prs_tcam_data_cmp() function, as the shift value is inverted with the data. Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit") Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 2 +- 1 file changed, 1

[PATCH net 2/3] net: mvpp2: fix invalid parameters order when calling the tcam init

2017-10-24 Thread Antoine Tenart
When calling mvpp2_prs_mac_multi_set() from mvpp2_prs_mac_init(), two parameters (the port index and the table index) are inverted. Fixes this. Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit") Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvp

Re: [RESEND x2][PATCH 0/3] dwc2 fixes for edge cases on hikey

2017-10-24 Thread Minas Harutyunyan
On 10/24/2017 12:41 AM, John Stultz wrote: > On Mon, Oct 23, 2017 at 2:19 AM, Minas Harutyunyan > wrote: >> Could you please verify on your setup follow patches: >> 1. Vardan's patch. >> 2. Patch for TOUTCAL&USBTRDTIM programming (new version see below). >> 4. Your patch 2/3 to avoid "Mode Mismatc

Re: [PATCH] f2fs: show # of dirty segments via sysfs

2017-10-24 Thread Chao Yu
On 2017/10/24 16:36, Jaegeuk Kim wrote: > This patch adds one sysfs entry to show # of dirty segments which can be > used for gc timing by user. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, > --- > fs/f2fs/sysfs.c | 9 + > 1 file changed, 9 insertions(+) > > diff --gi

[PATCH v3] arm64: dts: ls1088a: Add USB support

2017-10-24 Thread yinbo.zhu
From: "yinbo.zhu" Fix the issue that usb is not detected on ls1088ardb Signed-off-by: yinbo.zhu Signed-off-by: Ran Wang --- Change in v3: - Change status from "enable" to "disabled" then enable it on dts file. - Add the version history. arch/arm64/boot/dts/

Re: [PATCH 1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-24 Thread Arnd Bergmann
On Mon, Oct 23, 2017 at 11:35 AM, Lee Jones wrote: > On Thu, 19 Oct 2017, Arnd Bergmann wrote: > >> On Thu, Oct 19, 2017 at 5:22 AM, wrote: >> > From: Rui Feng >> > >> > Because Realtek PCIE card reader driver is a pcie driver, >> > and it bridges mmc subsystem and memstick subsystem, it's >> >

Re: [f2fs-dev] [PATCH 2/2] f2fs: stop all the operations by cp_error flag

2017-10-24 Thread Chao Yu
On 2017/10/24 6:14, Jaegeuk Kim wrote: > This patch replaces to use cp_error flag instead of RDONLY for quota off. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, > --- > fs/f2fs/acl.c| 3 +++ > fs/f2fs/checkpoint.c | 1 - > fs/f2fs/file.c | 23 +++

Re: [PATCH 16/19] linux/compiler.h: Split into compiler.h and compiler-types.h

2017-10-24 Thread Ingo Molnar
* Will Deacon wrote: > On Tue, Oct 24, 2017 at 11:25:12AM +0200, Ingo Molnar wrote: > > > > * Paul E. McKenney wrote: > > > > > From: Will Deacon > > > > > > linux/compiler.h is included indirectly by linux/types.h via > > > uapi/linux/types.h -> uapi/linux/posix_types.h -> linux/stddef.h >

Re: [PATCH 17/19] locking/barriers: Kill lockless_dereference

2017-10-24 Thread Ingo Molnar
* Will Deacon wrote: > On Tue, Oct 24, 2017 at 11:31:04AM +0200, Ingo Molnar wrote: > > > > * Paul E. McKenney wrote: > > > > > From: Will Deacon > > > > > > lockless_dereference is a nice idea, but its gained little traction in > > > kernel code since it's introduction three years ago. Thi

Re: [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled

2017-10-24 Thread Russell King - ARM Linux
On Tue, Oct 24, 2017 at 10:44:00AM +0100, Ard Biesheuvel wrote: > On 24 October 2017 at 10:38, Russell King - ARM Linux > wrote: > > Do you have any preference - I'd prefer one that I can merge along with > > these changes? One way forward would be to temporarily add the /DISCARD/ > > for the ksy

[PATCH 00/10] nvmem: patches set-2 for v4.15

2017-10-24 Thread srinivas . kandagatla
From: Srinivas Kandagatla Hi Greg, Here are some nvmem set2 patches which include resend of new provider drivers uniphier, some fixes for imx-octop. Now all the new drivers have acks from DT maintainers. for the new drivers. Can you please pick these up for 4.15. Thanks, srini Bryan O'Donogh

[PATCH 03/10] nvmem: imx-ocotp: Restrict OTP write to IMX6 processors

2017-10-24 Thread srinivas . kandagatla
From: Bryan O'Donoghue i.MX7S/D have a different scheme for addressing the OTP registers inside the OCOTP block. Currently it's possible to address the wrong OTP registers given the disparity between IMX6 and IMX7 OTP addressing. Since OTP programming is one-time destructive its important we res

[PATCH 04/10] nvmem: imx-ocotp: Pass parameters via a struct

2017-10-24 Thread srinivas . kandagatla
From: Bryan O'Donoghue It will be useful in later patches to know the register access mode and bit-shift to apply to a given input offset. Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support") Signed-off-by: Bryan O'Donoghue Reviewed-by: Philipp Zabel Signed-off-by: Srinivas Kandagatla

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-24 Thread Greg KH
On Tue, Oct 24, 2017 at 05:24:01PM +0800, Chen Feng wrote: > > > On 2017/10/24 17:09, Greg KH wrote: > > On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > >> [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] > >> Restart is not permit > >> ===

[PATCH 06/10] nvmem: imx-ocotp: Move i.MX6 write clock setup to dedicated function

2017-10-24 Thread srinivas . kandagatla
From: Bryan O'Donoghue The i.MX7S/D has a different set of timing requirements, as a pre-cursor to adding the i.MX7 timing parameters, move the i.MX6 stuff to a dedicated function. Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support") Signed-off-by: Bryan O'Donoghue Reviewed-by: Philipp

[PATCH 10/10] nvmem: sunxi-sid: add support for A64/H5's SID controller

2017-10-24 Thread srinivas . kandagatla
From: Icenowy Zheng Allwinner A64/H5 SoCs come with a SID controller like the one in H3, but without the silicon bug that makes the initial value at 0x200 wrong, so the value at 0x200 can be directly read. Add support for this kind of SID controller. Signed-off-by: Icenowy Zheng Acked-by: Rob

[PATCH 09/10] nvmem: imx-ocotp: Update module description

2017-10-24 Thread srinivas . kandagatla
From: Bryan O'Donoghue This imx-ocotp driver encapsulates support for a subset of both i.MX6 and i.MX7 processors. Update the module description to reflect. Fixes: 711d45477931 ("nvmem: octop: Add i.MX7D support") Signed-off-by: Bryan O'Donoghue Signed-off-by: Srinivas Kandagatla --- drivers

[PATCH 08/10] nvmem: imx-ocotp: Enable i.MX7D OTP write support

2017-10-24 Thread srinivas . kandagatla
From: Bryan O'Donoghue After applying patches for both banked access and write timings we can re-enable the OTP write interface on i.MX7D processors. Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support") Signed-off-by: Bryan O'Donoghue Signed-off-by: Srinivas Kandagatla --- drivers/nvm

[PATCH 07/10] nvmem: imx-ocotp: Add i.MX7D timing write clock setup support

2017-10-24 Thread srinivas . kandagatla
From: Bryan O'Donoghue This patch adds logic to correctly setup the write timing parameters when blowing an OTP fuse for the i.MX7S/D. Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support") Signed-off-by: Bryan O'Donoghue Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp.c

[PATCH 02/10] nvmem: uniphier: add UniPhier eFuse driver

2017-10-24 Thread srinivas . kandagatla
From: Keiji Hayashibara Add eFuse driver for Socionext UniPhier series SoC. Note that eFuse device is under soc-glue and this register implements as read only. Signed-off-by: Keiji Hayashibara Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 11 + drivers/nvmem/Make

[PATCH 01/10] dt-bindings: nvmem: add description for UniPhier eFuse

2017-10-24 Thread srinivas . kandagatla
From: Keiji Hayashibara Add uniphier-efuse dt-bindings documentation. Signed-off-by: Keiji Hayashibara Acked-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/uniphier-efuse.txt | 49 ++ 1 file changed, 49 insertions(+) create mode 10

Re: [PATCH v2 2/2] mfd: Add Spreadtrum SC27xx series PMICs driver

2017-10-24 Thread Baolin Wang
Hi Lee, On 24 October 2017 at 17:26, Lee Jones wrote: > On Mon, 16 Oct 2017, Baolin Wang wrote: > >> This patch adds support for Spreadtrum SC27xx series PMIC MFD core, and It >> provides communication through the SPI interfaces. The SC27xx series PMICs >> contains the following 6 major component

[PATCH 05/10] nvmem: imx-ocotp: Add support for banked OTP addressing

2017-10-24 Thread srinivas . kandagatla
From: Bryan O'Donoghue The i.MX7S/D takes the bank address in the CTRLn.ADDR field and the data value in one of the DATAx {0, 1, 2, 3} register fields. The current write routine is based on writing the CTRLn.ADDR field and writing a single DATA register only. Fixes: 0642bac7da42 ("nvmem: imx-oco

  1   2   3   4   5   6   7   8   9   10   >