Re: [PATCH] ARM: imx: introduce imx_l2c310_write_sec

2017-12-30 Thread Peng Fan
On Fri, Dec 29, 2017 at 05:32:18PM +0800, kbuild test robot wrote: >Hi Peng, > >Thank you for the patch! Yet something to improve: > >[auto build test ERROR on shawnguo/for-next] >[also build test ERROR on v4.15-rc5 next-20171222] >[if your patch is applied to the wrong git tree, please drop us a n

Re: linux-next: Signed-off-by missing for commit in the tip tree

2017-12-30 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi all, > > Commit > > 113702e96dc7 ("x86/insn-eval: Add utility functions to get segment > selector") > > is missing a Signed-off-by from its author and committer. > > It's possible its author and committer were both changed by the > cherry-pick ... Also, the

Re: [PATCH] padata: add SPDX identifier

2017-12-30 Thread Steffen Klassert
On Thu, Dec 28, 2017 at 05:53:27PM +1100, Herbert Xu wrote: > Cheah Kok Cheong wrote: > > Add SPDX license identifier according to the type of license text found > > in the file. > > > > Cc: Philippe Ombredanne > > Signed-off-by: Cheah Kok Cheong > > --- > > kernel/padata.c | 1 + > > 1 file cha

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Toralf Förster
On 12/30/2017 01:10 AM, Andy Lutomirski wrote: > Toralf, can you send the complete output of: > > objdump -dr arch/x86/kernel/traps.o > > From the build tree of a nonworking kernel? I attached it. FWIW: tfoerste@t44 ~/devel/linux $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPP

Re: [PATCH] x86: hide unused allocate_percpu_fixmap_ptes

2017-12-30 Thread Ingo Molnar
* Arnd Bergmann wrote: > The new function is not always used, causing a warning whenever > CONFIG_CPU_SUP_INTEL is disabled: > > arch/x86/kernel/cpu/common.c:522:20: error: 'allocate_percpu_fixmap_ptes' > defined but not used [-Werror=unused-function] > > Hide it in the same #ifdef. > > Fixe

Re: INFO: task hung in aead_recvmsg

2017-12-30 Thread Steffen Klassert
On Sat, Dec 23, 2017 at 02:29:42PM -0600, Eric Biggers wrote: > [+Cc Steffen Klassert ] > > > I was able to reproduce this by trying to use 'pcrypt' recursively. I am not > 100% sure it is the exact same bug, but it probably is. Here is a C > reproducer: > > #include > #include

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Alexander Tsoy
В Пт, 29/12/2017 в 21:49 -0600, Josh Poimboeuf пишет: > On Fri, Dec 29, 2017 at 05:10:35PM -0700, Andy Lutomirski wrote: > > (Also, Josh, the oops code should have printed the contents of the > > struct pt_regs at the top of the DF stack.  Any idea why it > > didn't?) > > Looking at one of the dum

Re: [PATCHv3 0/2] capability controlled user-namespaces

2017-12-30 Thread Michael Kerrisk (man-pages)
Hello Mahesh, On 12/28/2017 01:45 AM, Mahesh Bandewar (महेश बंडेवार) wrote: > On Wed, Dec 27, 2017 at 12:23 PM, Michael Kerrisk (man-pages) > wrote: >> Hello Mahesh, >> >> On 27 December 2017 at 18:09, Mahesh Bandewar (महेश बंडेवार) >> wrote: >>> Hello James, >>> >>> Seems like I missed your nam

Re: [PATCHv3 1/2] capability: introduce sysctl for controlled user-ns capability whitelist

2017-12-30 Thread Michael Kerrisk (man-pages)
Hello Mahesh, On 12/05/2017 11:31 PM, Mahesh Bandewar wrote: > From: Mahesh Bandewar > > Add a sysctl variable kernel.controlled_userns_caps_whitelist. This > takes input as capability mask expressed as two comma separated hex > u32 words. The mask, however, is stored in kernel as kernel_cap_t t

Re: [GIT pull] x86/pti: The real thing

2017-12-30 Thread Mike Galbraith
On Fri, 2017-12-29 at 17:42 -0800, Linus Torvalds wrote: > On Thu, Dec 28, 2017 at 12:34 PM, Thomas Gleixner wrote: > > > > please pull the latest x86-pti-for-linus git tree from: > > > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > > x86-pti-for-linus > > > > This is the final

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Alexander Tsoy
В Пт, 29/12/2017 в 17:34 -0800, Linus Torvalds пишет: > On Fri, Dec 29, 2017 at 5:00 PM, Linus Torvalds > wrote: > > > > Good. I was not feeling so happy about this bug report, but now I > > can > > firmly just blame the gentoo compiler for having some shit-for- > > brains > > "feature". > > Loo

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-30 Thread Brice Goglin
Le 30/12/2017 à 07:58, Matthew Wilcox a écrit : > On Wed, Dec 27, 2017 at 10:10:34AM +0100, Brice Goglin wrote: >>> Perhaps we can enlist /proc/iomem or a similar enumeration interface >>> to tell userspace the NUMA node and whether the kernel thinks it has >>> better or worse performance charact

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Toralf Förster
On 12/30/2017 10:14 AM, Alexander Tsoy wrote: > Yes, and only in hardened profile, so most users don't have -fstack- > check by default. :) Indeed, I do run hardened Gentoo only. -- Toralf PGP C4EACDDE 0076E94E

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Toralf Förster
On 12/30/2017 04:49 AM, Josh Poimboeuf wrote: > Alexander, would you mind reproducing again with the below patch? It > should still fail, but this time it should hopefully show another > RIP/RSP/EFLAGS instead of the "do_double_fault+0xb/0x140" line. I applied that too on top of v4.15-rc5-114-g27

Re: Graphics on thinkpad x270 after dock/undock works only for the first time (CPU pipe B FIFO underrun)

2017-12-30 Thread Jiri Kosina
On Fri, 29 Dec 2017, Jiri Kosina wrote: > When I dock my thinkpad x270 [1] and run xrandr --auto, image correctly > appears on external display. > > After undocking and docking again, the image on external display doesn't > appear any more, and this pops up in dmesg > > [drm:intel_cpu_fi

Re: [PATCH] iio: add kernel-doc '@owner'

2017-12-30 Thread Tobin C. Harding
On Fri, Dec 29, 2017 at 05:36:40PM +, Jonathan Cameron wrote: > On Tue, 19 Dec 2017 17:17:50 +1100 > "Tobin C. Harding" wrote: > > > When building kernel documentation sphinx emits the following warning > > > > warning: No description found for parameter 'owner' > > > > Add description

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Jiri Kosina
On Fri, 29 Dec 2017, Linus Torvalds wrote: > Ok, so what does seem to be consistent for everybody is that > double-fault in the NMI backtrace. > > So the fact that the NMI always hits on a double-fault does make me > suspect that it's a infinite stream of double-faults, and that is > presumably

Re: [PATCH] leaking_addresses: add generic 32-bit support

2017-12-30 Thread Tobin C. Harding
On Tue, Dec 26, 2017 at 07:48:55AM +0530, Kaiwan N Billimoria wrote: > The script attempts to detect the architecture it's running upon; as of now, > we explicitly support x86_64, PPC64 and x86_32. > If it's one of them, we proceed "normally". If we fail to detect the arch, > we fallback to 64-bit

Re: consolidate direct dma mapping and swiotlb support

2017-12-30 Thread Christoph Hellwig
On Fri, Dec 29, 2017 at 10:52:14AM +, Vladimir Murzin wrote: > Is it available in your dma-mapping.git or somewhere else? git://git.infradead.org/users/hch/misc.git dma-direct Gitweb: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-direct

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2017-12-30 Thread Thomas Gleixner
On Fri, 29 Dec 2017, Theodore Ts'o wrote: > On Fri, Dec 29, 2017 at 08:19:59AM -0800, Joe Perches wrote: > > > > Has it been legally reviewed and accepted that removal > > of the BSD license text from individual source files is > > appropriate and meets the legal requirements of > > following the

[PATCH] staging: rtl8192u: Replace mdelay with msleep in rtl8192_usb_probe

2017-12-30 Thread Jia-Ju Bai
rtl8192_usb_probe is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with msleep, to avoid busy wait. Signed-off-by: Jia-Ju Bai --- drivers/staging/rtl8192u/r8192U_core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH] b43: Replace mdelay with msleep in b43_radio_2057_init_post

2017-12-30 Thread Jia-Ju Bai
b43_radio_2057_init_post is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with msleep, to reduce busy wait. Signed-off-by: Jia-Ju Bai --- drivers/net/wireless/broadcom/b43/phy_n.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH] sky2: Replace mdelay with msleep in sky2_vpd_wait

2017-12-30 Thread Jia-Ju Bai
sky2_vpd_wait is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with msleep, to reduce busy wait. Signed-off-by: Jia-Ju Bai --- drivers/net/ethernet/marvell/sky2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH] scsi: imm: Replace mdelay with msleep in imm_init

2017-12-30 Thread Jia-Ju Bai
imm_init is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with msleep, to reduce busy wait. Signed-off-by: Jia-Ju Bai --- drivers/scsi/imm.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/imm.c b/dr

[GIT PULL] HID

2017-12-30 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive = - two cosmetic fixes from Daniel Axtens and Hans de Goede - fix for I2C command mismatch fix for cp2112 driver from Eudean Sun = Thanks. --

[PATCH v4 0/6] Allwinner H3/H5/A64(DE2) SimpleFB support (Part 2)

2017-12-30 Thread Icenowy Zheng
This patchset is the remaining part of Allwinner DE2 SimpleFB support in Linux. Some H3/5-related patches are already applied into the sunxi tree. PATCH 1 adds the final SimpleFB nodes to the H3/H5 device tree. With it applied the SimpleFB will be usable on H3/H5. PATCH 2/3 are for the SRAM requi

[PATCH v4 1/6] ARM: sunxi: h3/h5: add simplefb nodes

2017-12-30 Thread Icenowy Zheng
The H3/H5 SoCs have a HDMI output and a TV Composite output. Add simplefb nodes for these outputs. Signed-off-by: Icenowy Zheng --- Changes in v4: - Dropped extra clocks (bus clocks and HDMI DDC clocks), only keep the clocks that are needed to display framebuffer to the monitor. arch/arm/boo

[PATCH v4 2/6] dt-bindings: add binding for A64 DE2 CCU SRAM

2017-12-30 Thread Icenowy Zheng
A64's Display Engine 2.0 needs a section of SRAM (SRAM C) to be claimed, otherwise the whole DE2 memory zone cannot be accessed (kept to all 0). Add binding for this, in order to make the DE2 CCU able to claim the SRAM and enable access to the DE2 clock and reset registers. Acked-by: Rob Herring

[PATCH v4 3/6] clk: sunxi-ng: add support for Allwinner A64 DE2 CCU

2017-12-30 Thread Icenowy Zheng
Allwinner A64's DE2 needs to claim a section of SRAM (SRAM C) to work. Add support for it. Signed-off-by: Icenowy Zheng --- Changes in v4: - Use a struct to maintain both ccu desc and quirks as Chen-Yu Tsai suggested. drivers/clk/sunxi-ng/ccu-sun8i-de2.c | 117 +++

[PATCH v4 5/6] arm64: allwinner: a64: add simplefb for A64 SoC

2017-12-30 Thread Icenowy Zheng
The A64 SoC features two display pipelines, one has a LCD output, the other has a HDMI output. Add support for simplefb for these pipelines on A64 SoC. Signed-off-by: Icenowy Zheng --- Changes in v4: - Dropped extra clocks. - Added labels to the SimpleFB device tree nodes as boards may have ex

[PATCH v4 4/6] arm64: allwinner: a64: add DE2 CCU for A64 SoC

2017-12-30 Thread Icenowy Zheng
The A64 SoC features a DE2 CCU like the one in H5, but needs to claim a section of SRAM (SRAM C) to be accessed. Adds the device tree nodes for the SRAM controller and the DE2 CCU. Signed-off-by: Icenowy Zheng --- Changes in v3: - Fixed the alliwnner,sram property (the 1 after SRAM phadle is mis

[PATCH v4 6/6] arm64: allwinner: a64: add HDMI regulator to all DTs' simplefb_hdmi

2017-12-30 Thread Icenowy Zheng
On usual A64 board design the power of HDMI controller is connected to DLDO1 of the AXP803 PMIC. If this regulator is shut down, the HDMI output will be blank. Therefore the simplefb driver should keep this regulator on. Add the regulator to all currently available A64 boards' simplefb_hdmi device

Re: [PATCH 1/6] phy: sun4i-usb: add support for R40 USB PHY

2017-12-30 Thread Icenowy Zheng
在 2017年10月18日星期三 CST 下午7:46:08,Kishon Vijay Abraham I 写道: > On Wednesday 18 October 2017 05:12 PM, Maxime Ripard wrote: > > On Wed, Oct 18, 2017 at 05:09:00PM +0530, Kishon Vijay Abraham I wrote: > >> Hi, > >> > >> On Tuesday 10 October 2017 02:28 AM, Maxime Ripard wrote: > >>> On Sun, Oct 08, 201

Re: [PATCH v5 03/12] dt-bindings: display: sun4i-drm: Add LVDS properties

2017-12-30 Thread Jernej Škrabec
Hi Maxime, Dne četrtek, 21. december 2017 ob 12:02:29 CET je Maxime Ripard napisal(a): > Some clocks and resets supposed to drive the LVDS logic in the display > engine have been overlooked when the driver was first introduced. > > Add those additional resources to the binding, and we'll deal wit

Re: [PATCH V2 4/4] cpu_cooling: Drop static-power related stuff

2017-12-30 Thread Javi Merino
On Tue, Dec 05, 2017 at 11:02:46AM +0530, Viresh Kumar wrote: > No one has used it for the last two and half years (since it was > introduced by commit c36cf0717631 ("thermal: cpu_cooling: implement the > power cooling device API")), get rid of it. That commit c36cf0717631 ("thermal: cpu_cooling:

Re: general protection fault in skb_segment

2017-12-30 Thread Willem de Bruijn
> So this is a packet socket writing something that apparently looks > like an SCTP packet, is only 42 bytes long, but has GSO set in its > virtio_net_hdr struct. > > It crashes in skb_segment seemingly on a NULL list_skb. > > (gdb) list *(skb_segment+0x2a4) > 0x8167cc24 is in skb_segment (

Re: 4.14.9 broke nvidia 384.98 kernel module

2017-12-30 Thread Hans-Peter Jansen
On Freitag, 29. Dezember 2017 10:23:56 Greg KH wrote: > On Fri, Dec 29, 2017 at 02:08:08AM +0100, Hans-Peter Jansen wrote: > > Hi Greg, > > > > I know, everybody hates NVidia and their proprietary stuff around here. > > > > Anyway, I wanted to let you and followers of 4.14 know, that changes > >

[no subject]

2017-12-30 Thread Mrs Christy.R.Walton
Hello ; I have a proposal for you,kindly get back to me soon. Mrs Christy Walton.

Re: [PATCH v2] iio: adc: max9611: fix module auto-loading

2017-12-30 Thread Dmitry Mastykin
> On Fri, 29 Dec 2017 17:30:39 +0200 > Andy Shevchenko wrote: >> Suggested-by: Andy Shevchenko >> I was not aware of this tag, that's what I wanted to write, thanks! On Fri, Dec 29, 2017 at 8:54 PM, Jonathan Cameron wrote: > I'm a little confused. Why does this now make module autoloading > wo

[PATCH V2] ARM: imx: introduce imx_l2c310_write_sec

2017-12-30 Thread Peng Fan
Some PL310 registers could only be wrote in secure world, so introduce imx_l2c310_write_sec to support Linux running in non-secure world configure PL310. Signed-off-by: Peng Fan Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Dong Aisheng --- V2: Use SPDX Tag Use CONFIG_HAVE_ARM_SMCCC

Re: Graphics on thinkpad x270 after dock/undock works only for the first time (CPU pipe B FIFO underrun)

2017-12-30 Thread Jiri Kosina
On Sat, 30 Dec 2017, Jiri Kosina wrote: > Seems like disabling RC6 on the kernel command line works this around, and > I can dock / undock several times in a row with the image always coming > up properly on the external display. > > On the first undock, the WARN_ONCE() below triggers, so I bel

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Toralf Förster
On 12/30/2017 02:13 AM, Alexander Tsoy wrote: > You are right, It's due to fstack-check enabled in gentoo's gcc spec. > "-fstack-check=no" in KBUILD_CFLAGS fixed this problem for me. =/ This made the issue go away : diff --git a/Makefile b/Makefile index ac8c441866b7..11a12947c550 100644 --- a/Ma

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Jiri Kosina
On Sat, 30 Dec 2017, Toralf Förster wrote: > This made the issue go away : > > diff --git a/Makefile b/Makefile > index ac8c441866b7..11a12947c550 100644 > --- a/Makefile > +++ b/Makefile > @@ -414,7 +414,7 @@ LINUXINCLUDE:= \ > > KBUILD_AFLAGS := -D__ASSEMBLY__ > KBUILD_CFLAGS := -Wa

v4.15-rc5 warning: suspicious RCU usage in net/wireless/util.c:778

2017-12-30 Thread Dominik Brodowski
On Fri, Dec 22, 2017 at 08:20:12AM +0100, Dominik Brodowski wrote: > Dear all, > > once the (wifi) link becomes ready, the following warning is emitted on > mainline (v4.15-rc4-202-gead68f216110) on my notebook: ... and it is still present as of v4.15-rc5-149-g5aa90a845892 > [ 22.770422] IPv6:

x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Dominik Brodowski
Dear all, resume-from-sleep (mem/S3) on v4.15-rc5-149-g5aa90a845892 triggers the following bug. If I boot with "pti=off", the kernel does not show this issue, and neither did kernels before pti was merged: [0.00] microcode: microcode updated early to revision 0x25, date = 2017-01-27 [

Re: general protection fault in skb_segment

2017-12-30 Thread Xin Long
On Sat, Dec 30, 2017 at 7:54 PM, Willem de Bruijn wrote: >> So this is a packet socket writing something that apparently looks >> like an SCTP packet, is only 42 bytes long, but has GSO set in its >> virtio_net_hdr struct. >> >> It crashes in skb_segment seemingly on a NULL list_skb. >> >> (gdb) l

[PATCH v2 4/8] watchdog: JZ4740: Drop module remove function

2017-12-30 Thread Paul Cercueil
When the watchdog was configured for nowayout, and after the userspace watchdog daemon closed the dev node without sending the magic character, unloading this module stopped the watchdog hardware, which was clearly a problem. Besides, unloading the module is not possible when the userspace watchdo

[PATCH v2 7/8] MIPS: qi_lb60: Enable the jz4740-wdt driver

2017-12-30 Thread Paul Cercueil
The watchdog is an useful piece of hardware, so there's no reason not to enable it. This commit enables the Kconfig option in the qi_lb60 defconfig. Signed-off-by: Paul Cercueil --- arch/mips/configs/qi_lb60_defconfig | 2 ++ 1 file changed, 2 insertions(+) v2: No change diff --git a/arch/mi

[PATCH v2 8/8] MIPS: jz4740: Drop old platform reset code

2017-12-30 Thread Paul Cercueil
This work is now performed by the watchdog driver directly. Signed-off-by: Paul Cercueil --- arch/mips/jz4740/reset.c | 31 --- 1 file changed, 31 deletions(-) v2: No change diff --git a/arch/mips/jz4740/reset.c b/arch/mips/jz4740/reset.c index 67780c4b6573..5bf0cf

[PATCH v2 2/8] watchdog: jz4740: Use devm_* functions

2017-12-30 Thread Paul Cercueil
- Use devm_clk_get instead of clk_get - Use devm_watchdog_register_device instead of watchdog_register_device Signed-off-by: Paul Cercueil --- drivers/watchdog/jz4740_wdt.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) v2: No change diff --git a/drivers/wa

[PATCH v2 3/8] watchdog: JZ4740: Register a restart handler

2017-12-30 Thread Paul Cercueil
The watchdog driver can restart the system by simply configuring the hardware for a timeout of 0 seconds. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck --- drivers/watchdog/jz4740_wdt.c | 9 + 1 file changed, 9 insertions(+) v2: No change diff --git a/drivers/watchdog/jz474

[PATCH v2 6/8] MIPS: jz4780: dts: Fix watchdog node

2017-12-30 Thread Paul Cercueil
- The previous node requested a memory area of 0x100 bytes, while the driver only manipulates four registers present in the first 0x10 bytes. - The driver requests for the "rtc" clock, but the previous node did not provide any. Signed-off-by: Paul Cercueil Reviewed-by: Mathieu Malaterre ---

[PATCH v2 1/8] watchdog: JZ4740: Disable clock after stopping counter

2017-12-30 Thread Paul Cercueil
Previously, the clock was disabled first, which makes the watchdog component insensitive to register writes. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck --- drivers/watchdog/jz4740_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v2: No change diff --git a/drivers/watc

[PATCH v2 5/8] MIPS: jz4740: dts: Add bindings for the jz4740-wdt driver

2017-12-30 Thread Paul Cercueil
Also remove the watchdog platform_device from platform.c, since it wasn't used anywhere anyway. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/jz4740.dtsi | 8 arch/mips/jz4740/platform.c| 16 2 files changed, 8 insertions(+), 16 deletions(-)

[PATCH 2/2] ARM: imx: cpuidle-imx6q: configure CCM to RUN mode when CPU is active

2017-12-30 Thread Peng Fan
There are two states in i.MX6Q cpuidle driver. state[1]: ARM WFI mode state[2]: i.MX6Q WAIT mode Take i.MX6DL as example, think out such a case: 1. CPU0/1 both run at normal mode 2. On CPU0, `sleep 1` is executed. And there are no workload on CPU1. 3. CPU0 first runs into state[2] and 'wfi' instru

[PATCH 1/2] ARM: imx: no unmask/mask GINT for WAIT_CLOCKED

2017-12-30 Thread Peng Fan
WAIT_CLOCKED is for RUN mode, there is no need to unmask/mask IRQ32 in GPC. Signed-off-by: Peng Fan --- V1: This is to upstream patch: http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/commit/?h=imx_4.9.11_1.0.0_ga&id=0d980646ee068b92db71fd5e4e4efcbc33749cbd arch/arm/mach-imx/pm-imx6.

Re: [PATCH V2] ARM: imx: introduce imx_l2c310_write_sec

2017-12-30 Thread Philippe Ombredanne
On Sat, Dec 30, 2017 at 1:34 PM, Peng Fan wrote: > Some PL310 registers could only be wrote in secure world, so > introduce imx_l2c310_write_sec to support Linux running in > non-secure world configure PL310. > > Signed-off-by: Peng Fan > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Fabio Estevam >

Re: 4.14.9 broke nvidia 384.98 kernel module

2017-12-30 Thread Greg KH
On Sat, Dec 30, 2017 at 01:36:33PM +0100, Hans-Peter Jansen wrote: > On Freitag, 29. Dezember 2017 10:23:56 Greg KH wrote: > > On Fri, Dec 29, 2017 at 02:08:08AM +0100, Hans-Peter Jansen wrote: > > > Hi Greg, > > > > > > I know, everybody hates NVidia and their proprietary stuff around here. > > >

RE: [PATCH V2] ARM: imx: introduce imx_l2c310_write_sec

2017-12-30 Thread Peng Fan
> -Original Message- > From: Philippe Ombredanne [mailto:pombreda...@nexb.com] > Sent: Saturday, December 30, 2017 10:17 PM > To: Peng Fan > Cc: Shawn Guo ; moderated list:ARM/FREESCALE IMX > / MXC ARM ARCHITECTURE ; LKML > ; Peng Fan ; Sascha > Hauer ; Fabio Estevam ; > A.s. Dong > Sub

Re: [PATCH] iio: adc: add driver for ti adc081s/adc101s/adc121s

2017-12-30 Thread Milan Stevanovic
On 12/29/2017 04:58 PM, Jonathan Cameron wrote: My comments are inline. I did not change patch, I am waiting comments from Lars-Peter and Michael On Mon, 25 Dec 2017 21:42:38 +0100 Milan Stevanovic wrote: +CC Lars-Peter and Michael to take a look and see if supporting this in the AD7746 driv

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Thomas Gleixner
On Sat, 30 Dec 2017, Dominik Brodowski wrote: > Dear all, > > resume-from-sleep (mem/S3) on v4.15-rc5-149-g5aa90a845892 triggers the > following bug. If I boot with "pti=off", the kernel does not show this > issue, and neither did kernels before pti was merged: > > [ 39.951703] ACPI: Low-level

[PATCH] arm64: Target aarch64elf emulation to allow bare-metal toolchains

2017-12-30 Thread Paul Kocialkowski
This sets the LDFLAGS variable to target the aarch64elf emulation instead of aarch64linux, which is incompatible with bare-metal toolchains. This change allows the kernel to build with bare-metal toolchains again. Fixes: 3d6a7b99e3fa ("arm64: ensure the kernel is compiled for LP64") Cc: sta...@v

[PATCH 0/3] axp20x backup battery charging

2017-12-30 Thread Paul Kocialkowski
This series introduces support for axp20x backup battery charging, with a dedicated device-tree property. I wondered whether to include this in a power-supply driver or not. Since it does not, in fact, supply power to the whole system and because no status changes over time, I thought it would be

[PATCH 1/3] dt-bindings: mfd: axp20x: Document backup battery charging property

2017-12-30 Thread Paul Kocialkowski
This adds documentation for the "backup" property of the axp20x driver, that controls the charging mechanism for the backup battery on axp20x. Signed-off-by: Paul Kocialkowski diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b/Documentation/devicetree/bindings/mfd/axp20x.txt index

[PATCH 3/3] ARM: dts: sun7i: lamobo-r1: Add backup battery charging property

2017-12-30 Thread Paul Kocialkowski
This adds the axp20x backup property to the lamobo-r1 device-tree, that allows charging the backup battery attached to its AXP209. It is especially useful since the battery is used for the RTC module. Signed-off-by: Paul Kocialkowski diff --git a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts b/arc

[PATCH 2/3] mfd: axp20x: Add support for backup battery charging

2017-12-30 Thread Paul Kocialkowski
This adds support for backup battery charging for axp20x PMICs, that is configured through a dedicated device-tree property. It supports 4 different charging voltages and as many charging currents. This is especially useful to allow the on-chip RTC (on the SoC side) to be powered when the rest of

[PATCH 0/9] scsi: Use zeroing allocators than allocator/memset

2017-12-30 Thread Himanshu Jha
There are many instances where a region of memory is allocated using allocator functions and immediately the region of memory is zeroed using memset function. We already have zeroing memory allocator function for that purpose and replacing the currently used allocator functions with zeroing alloca

[PATCH 2/9] scsi: qla2xxx: Use zeroing allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent and vzalloc instead of dma_alloc_coherent and vmalloc respectively, followed by memset 0. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/qla2xxx/qla_attr.c| 5 ++--- driver

[PATCH 1/9] scsi: qla4xxx: Use zeroing allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset 0. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/qla4xxx/ql4_init.c | 5 ++--- drivers/scsi/qla4xxx/ql4_mbx.c | 21 +

[PATCH 5/9] scsi: fnic: Use zeroing allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use vzalloc instead of vmalloc followed by memset 0. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/fnic/fnic_debugfs.c | 10 ++ drivers/scsi/fnic/fnic_trace.c | 9 ++--- 2 files change

[PATCH 4/9] scsi: mvsas: Use zeroing allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset 0. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/mvsas/mv_init.c | 27 +++ 1 file changed, 11 insertio

[PATCH 6/9] scsi: dpt_i2o: Use zeroing allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset 0. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/dpt_i2o.c | 19 --- 1 file changed, 8 insertions(+), 11 delet

[PATCH 3/9] scsi: qedi: Use zeroing allocator instead of allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset 0. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/qedi/qedi_main.c | 42 +++--- 1 file chan

[PATCH 7/9] scsi: bnx2fc: Use zeroing allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset 0. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/bnx2fc/bnx2fc_hwi.c | 60 +--- drivers/sc

[PATCH 9/9] scsi: bnx2i: Use zeroing allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset 0. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/bnx2i/bnx2i_hwi.c | 14 ++ 1 file changed, 6 insertions(+), 8 del

[PATCH 8/9] scsi: bfa: Use zeroing allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use vzalloc instead of vmalloc followed by memset 0. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/bfa/bfad.c | 3 +-- drivers/scsi/bfa/bfad_debugfs.c | 8 ++-- 2 files changed, 3 inserti

Re: stable-rc build: 0 warnings 7 failures (stable-rc/v3.18.90-13-g444eb56)

2017-12-30 Thread gregkh
On Fri, Dec 29, 2017 at 10:19:14AM +0100, gregkh wrote: > On Thu, Dec 28, 2017 at 09:39:22AM +0100, Arnd Bergmann wrote: > > On Thu, Dec 28, 2017 at 8:38 AM, Olof's autobuilder wrote: > > > Here are the build results from automated periodic testing. > > > > > > The tree being built was stable-rc,

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Dominik Brodowski
On Sat, Dec 30, 2017 at 04:03:07PM +0100, Thomas Gleixner wrote: > On Sat, 30 Dec 2017, Dominik Brodowski wrote: > > resume-from-sleep (mem/S3) on v4.15-rc5-149-g5aa90a845892 triggers the > > following bug. If I boot with "pti=off", the kernel does not show this > > issue, and neither did kernels b

[PATCH] qed: Use zeroing memory allocator than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent and vzalloc for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers

[PATCH] IB/ocrdma: Use zeroing memory allocator than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/infiniband/

[PATCH] USB: host: Use zeroing memory allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/usb/host/uh

[PATCH] ethernet/broadcom: Use zeroing memory allocator than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/net/etherne

Re: About the try to remove cross-release feature entirely by Ingo

2017-12-30 Thread Theodore Ts'o
On Fri, Dec 29, 2017 at 10:16:24PM -0800, Matthew Wilcox wrote: > > I think this is a terminology problem. To me (and, I suspect Ted), a > waiter is a subject of a verb while a lock is an object. So Ted is asking > whether we have to classify the users, while I think you're saying we > have extr

[PATCH] scsi: megaraid: Use zeroing memory allocator than allocator/memset

2017-12-30 Thread Himanshu Jha
Use pci_zalloc_consistent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- drivers/scsi/mega

[PATCH] brcmfmac: Use zeroing memory allocator than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- .../net/wireless/br

[PATCH] scsi: fnic: Use eth_broadcast_addr instead of memset

2017-12-30 Thread Himanshu Jha
Use eth_broadcasr_addr Networking API instead of memset to assign the broadcast address to the given address array. 0-day tested with no failures. Signed-off-by: Himanshu Jha --- drivers/scsi/fnic/fnic_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fnic/

[PATCH] [media] pulse8-cec: Eliminate use of time_t and time_to_tm

2017-12-30 Thread Himanshu Jha
Eliminate the use of time_t type and time_to_tm function as they are deprecated due to the 32-Bit interface which will overflow in year 2038. Therefore use the 64-Bit type interface which is time64_t and time64_to_tm instead to avoid y2038 overflow problem. 0-day tested without any issues! Signed

[PATCH] tools: usb: usbip: fix fd leak in case of 'fread' failure

2017-12-30 Thread Elad Wexler
Fix possible resource leak: fd Signed-off-by: Elad Wexler --- tools/usb/usbip/libsrc/usbip_device_driver.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/usb/usbip/libsrc/usbip_device_driver.c b/tools/usb/usbip/libsrc/usbip_device_driver.c index e059b7d..1aa27af 1

Re: [PATCH v2 4/8] watchdog: JZ4740: Drop module remove function

2017-12-30 Thread Guenter Roeck
On 12/30/2017 05:51 AM, Paul Cercueil wrote: When the watchdog was configured for nowayout, and after the userspace watchdog daemon closed the dev node without sending the magic character, unloading this module stopped the watchdog hardware, which was clearly a problem. Besides, unloading the mo

Re: [PATCH v2 2/8] watchdog: jz4740: Use devm_* functions

2017-12-30 Thread Guenter Roeck
On 12/30/2017 05:51 AM, Paul Cercueil wrote: - Use devm_clk_get instead of clk_get - Use devm_watchdog_register_device instead of watchdog_register_device Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck --- drivers/watchdog/jz4740_wdt.c | 27 --- 1 file c

[PATCH] tools: usb: usbip_device_driver: prefer 'unsigned int' to 'unsigned'

2017-12-30 Thread Elad Wexler
Fixup a coding style issue Signed-off-by: Elad Wexler --- tools/usb/usbip/libsrc/usbip_device_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/usb/usbip/libsrc/usbip_device_driver.c b/tools/usb/usbip/libsrc/usbip_device_driver.c index e059b7d..b2dac82 100644 --

Re: [PATCH net-next 5/6] arm64: dts: marvell: mcbin: enable the fourth network interface

2017-12-30 Thread Marcin Wojtas
Hi Russell and Stefan, 2017-12-29 12:38 GMT+01:00 Russell King - ARM Linux : > On Fri, Dec 29, 2017 at 12:12:15PM +0100, Marcin Wojtas wrote: >> Hi Russell, >> >> I see that I misspelled your email address, hence the series remained >> unnoticed: >> https://lkml.org/lkml/2017/12/18/216 >> >> In t

Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long

2017-12-30 Thread Mikko Perttunen
FWIW, we had this problem some years ago with the Tegra CPU clock - then it was determined that a simpler solution was to have the determine_rate callback support unsigned long rates - so clock drivers that need to return rates higher than 2^31 can instead implement the determine_rate callback.

Re: [PATCH] USB: host: Use zeroing memory allocator rather than allocator/memset

2017-12-30 Thread Alan Stern
On Sat, 30 Dec 2017, Himanshu Jha wrote: > Use dma_zalloc_coherent for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggested-by: Luis R. Rodrig

[PATCH 1/2] i2c: piix4: Use request_muxed_region

2017-12-30 Thread Guenter Roeck
Accesses to SB800_PIIX4_SMB_IDX can occur from multiple drivers. Use request_muxed_region() to ensure synchronization. Signed-off-by: Guenter Roeck --- drivers/i2c/busses/i2c-piix4.c | 50 ++ 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/

[PATCH 2/2] i2c: piix4: Use usleep_range()

2017-12-30 Thread Guenter Roeck
The piix4 i2c driver is extremely slow. Replacing msleep() with usleep_range() increases its speed substantially. Signed-off-by: Guenter Roeck --- drivers/i2c/busses/i2c-piix4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c

Re: [PATCH v2] fixdep: exit with error code in error branches of do_config_file()

2017-12-30 Thread Masahiro Yamada
2017-12-22 4:10 GMT+09:00 Lukas Bulwahn : > do_config_file() should exit with an error code, and not return if it fails > as then the error in do_config_file() would go unnoticed in the current > code and allow the build to continue. The exit with error code will make > the build fail in those very

Re: [PATCH 4.14 00/74] 4.14.10-stable review

2017-12-30 Thread Milosz Wasilewski
On 29 December 2017 at 10:35, Milosz Wasilewski wrote: > On 29 December 2017 at 09:18, Greg Kroah-Hartman > wrote: >> On Thu, Dec 28, 2017 at 11:29:04AM +0530, Naresh Kamboju wrote: >>> On 27 December 2017 at 22:15, Greg Kroah-Hartman >>> wrote: >>> > This is the start of the stable review cycle

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Josh Poimboeuf
On Sat, Dec 30, 2017 at 11:45:13AM +0300, Alexander Tsoy wrote: > В Пт, 29/12/2017 в 21:49 -0600, Josh Poimboeuf пишет: > > On Fri, Dec 29, 2017 at 05:10:35PM -0700, Andy Lutomirski wrote: > > > (Also, Josh, the oops code should have printed the contents of the > > > struct pt_regs at the top of th

Re: [PATCH] sky2: Replace mdelay with msleep in sky2_vpd_wait

2017-12-30 Thread Stephen Hemminger
On Sat, 30 Dec 2017 19:09:47 +0800 Jia-Ju Bai wrote: > sky2_vpd_wait is not called in an interrupt handler nor holding a spinlock. > The function mdelay in it can be replaced with msleep, to reduce busy wait. > > Signed-off-by: Jia-Ju Bai > --- > drivers/net/ethernet/marvell/sky2.c |2 +- >

  1   2   3   >