Re: [PATCH 08/11] kexec_file: Simplify kexec_purgatory_setup_sechdrs 2

2018-03-09 Thread Philipp Rudo
Hi Dave, On Fri, 9 Mar 2018 11:18:05 +0800 Dave Young wrote: > Hi, > > On 02/26/18 at 04:16pm, Philipp Rudo wrote: > > The main loop currently uses quite a lot of variables to update the section > > headers. Some of them are unnecessary. So clean them up a little. > > > > It looks better to

Re: [PATCH 07/12] efi: Use efi_mm in x86 as well as ARM

2018-03-09 Thread Ard Biesheuvel
On 9 March 2018 at 08:37, Prakhya, Sai Praneeth wrote: >> > diff --git a/include/linux/efi.h b/include/linux/efi.h index >> > f5083aa72eae..f1b7d68ac460 100644 >> > --- a/include/linux/efi.h >> > +++ b/include/linux/efi.h >> > @@ -966,6 +966,8 @@ extern struct efi { >> > unsigned long flags; >

Re: [RFC/RFT][PATCH v2 0/6] sched/cpuidle: Idle loop rework

2018-03-09 Thread Rafael J. Wysocki
On Thu, Mar 8, 2018 at 2:40 PM, Mike Galbraith wrote: > On Thu, 2018-03-08 at 12:10 +0100, Rafael J. Wysocki wrote: >> On Thu, Mar 8, 2018 at 11:31 AM, Mike Galbraith wrote: >> 1 2 3 >> > 4.16.0.g1b88acc-master 6.95 7.03 6.91 (virgin) >> > 4.16.0.g1b88a

RE: [PATCH v2 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics

2018-03-09 Thread Mario.Limonciello
> > Pali is your concern that this code for matching vendor/subsystem is running > > on non-Dell too? The only other recommendation I think that can be to > > restrict > > to matching Dell OEM strings in SMBIOS table, but I don't think that's any > > better > > than the matching for VID/SSVID. >

Re: [PATCH 09/11] kexec_file: Remove mis-use of sh_offset field

2018-03-09 Thread Philipp Rudo
Hi Dave, On Fri, 9 Mar 2018 11:14:20 +0800 Dave Young wrote: > On 02/26/18 at 04:16pm, Philipp Rudo wrote: > > The current code uses the sh_offset field in purgatory_info->sechdrs to > > store a pointer to the current load address of the section. Depending > > whether the section will be loaded

Re: [PATCH v2 1/2] arm64: Relax constraints on ID feature bits

2018-03-09 Thread Suzuki K Poulose
On 08/03/18 17:11, Will Deacon wrote: On Wed, Mar 07, 2018 at 03:11:31PM +, Suzuki K Poulose wrote: On 26/02/18 18:05, Will Deacon wrote: On Wed, Feb 07, 2018 at 02:21:05PM +, Suzuki K Poulose wrote: --- Changes since v1: - Make ID_AA64MMFR1_EL1:LOR/HPD, ID_AA64MMFR1_EL1:LSM non-s

Re: [PATCH v3 00/18] thunderbolt: Add support for Intel Titan Ridge

2018-03-09 Thread Mika Westerberg
On Fri, Mar 02, 2018 at 03:38:34PM +0300, Mika Westerberg wrote: > Mika Westerberg (13): > thunderbolt: Resume control channel after hibernation image is created > thunderbolt: Serialize PCIe tunnel creation with PCI rescan > thunderbolt: Handle connecting device in place of host properly >

Re: [PATCH V3 0/4] genirq/affinity: irq vector spread among online CPUs as far as possible

2018-03-09 Thread Thomas Gleixner
On Fri, 9 Mar 2018, Ming Lei wrote: > On Fri, Mar 09, 2018 at 12:20:09AM +0100, Thomas Gleixner wrote: > > On Thu, 8 Mar 2018, Ming Lei wrote: > > > Actually, it isn't a real fix, the real one is in the following two: > > > > > > 0c20244d458e scsi: megaraid_sas: fix selection of reply queue > >

[PATCH 0/9] Sunxi-Cedrus driver for the Allwinner Video Engine, using the V4L2 request API

2018-03-09 Thread Paul Kocialkowski
This presents a newer version of the Sunxi-Cedrus driver, that supports the Video Engine found in most Allwinner SoCs, starting with the A10. The first version of this driver[0] was originally written and submitted by Florent Revest using a previous version of the request API, that is necessary to

[PATCH 2/9] media: videobuf2-v4l2: Copy planes when needed in request qbuf

2018-03-09 Thread Paul Kocialkowski
Multiplanar formats require an extra planes array in their buffers, that is copied from userspace by the video_usercopy function prior to dispatching the ioctl request. This wrapper also frees the allocated planes array after the ioctl handler has returned. In the context of the V4L2 request API,

Re: [PATCH 11/11] kexec_file: Move purgatories sha256 to common code

2018-03-09 Thread Philipp Rudo
Hi Dave, On Fri, 9 Mar 2018 12:43:53 +0800 Dave Young wrote: > On 02/26/18 at 04:16pm, Philipp Rudo wrote: > > The code to verify the new kernels sha digest are applicable for all > > architectures. Move it to common code. > > > > Signed-off-by: Philipp Rudo > > --- > > arch/x86/purgatory/Ma

Re: [PATCH] video: fbdev: via_aux_vt1636: remove VLA usage

2018-03-09 Thread Eric Engestrom
On Wednesday, 2018-03-07 13:47:03 -0600, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA and replace it > with a fixed-length array instead. Also, remove variable 'len'. > > Notice that no new IDs have been added in seven years. > > Signed-off-by: Gustavo A. R. Silva >

[tip:locking/urgent] rtmutex: Make rt_mutex_futex_unlock() safe for irq-off callsites

2018-03-09 Thread tip-bot for Boqun Feng
Commit-ID: 6b0ef92fee2a3189eba6d6b827b247cb4f6da7e9 Gitweb: https://git.kernel.org/tip/6b0ef92fee2a3189eba6d6b827b247cb4f6da7e9 Author: Boqun Feng AuthorDate: Fri, 9 Mar 2018 14:56:28 +0800 Committer: Thomas Gleixner CommitDate: Fri, 9 Mar 2018 11:06:16 +0100 rtmutex: Make rt_mutex_fut

[PATCH 1/9] media: vim2m: Try to schedule a m2m device run on request submission

2018-03-09 Thread Paul Kocialkowski
In the most basic use scenario, where only one output and one capture buffers are queued and the request is submitted, there is no provision to try to schedule a m2m device run. This adds the appropriate call to the vim2m_request_submit so that it can start in that scenario. Signed-off-by: Paul K

Re: [PATCH 00/11] kexec_file: Clean up purgatory load

2018-03-09 Thread Philipp Rudo
Hi Dave, On Fri, 9 Mar 2018 13:33:48 +0800 Dave Young wrote: > On 03/09/18 at 01:19pm, Dave Young wrote: > > Hi Philipp, > > On 02/26/18 at 04:16pm, Philipp Rudo wrote: > > > > > > Hi everybody > > > > > > following the discussion with Dave and AKASHI, here are the common code > > > patches

Re: [RESEND PATCH v5 2/5] dt-bindings: pwm-backlight: add PWM delay proprieties.

2018-03-09 Thread Enric Balletbo Serra
Hi Rob, oh, devicetree mailing list is not added, sorry, so cc'ing ... 2018-02-19 12:11 GMT+01:00 Daniel Thompson : > On Fri, Feb 16, 2018 at 06:40:31PM +0100, Enric Balletbo i Serra wrote: >> Hardware needs a delay between setting an initial (non-zero) PWM and >> enabling the backlight using GPI

[PATCH 5/9] perf c2c report: Make calc_width work with struct c2c_hist_entry

2018-03-09 Thread Jiri Olsa
We are going to calculate column width based on the struct c2c_hist_entry data, so making calc_width to work with struct c2c_hist_entry. Link: http://lkml.kernel.org/n/tip-p775ak70wpca93dm9q5jo...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 14 +- 1 file ch

[PATCH 9/9] perf c2c report: Add cacheline address count column

2018-03-09 Thread Jiri Olsa
Adding the 'PA cnt' column grouped under data cacheline address. It shows how many times the physical addresses changed for the hist entry. It does not show the number of different physical addresses for entry, because we don't store those. We only track the number of times we got different addres

[PATCH 8/9] perf c2c report: Add span header over cacheline data

2018-03-09 Thread Jiri Olsa
Forcing the NUMA node output to be grouped with the Cacheline column in both Shared Data Cache Line Table and Shared Cache Line Distribution Pareto. Before: #Total Tot - LLC Load Hitm - # Index Cacheline Node records HitmTot

[PATCH 6/9] perf c2c report: Call calc_width only for displayed entries

2018-03-09 Thread Jiri Olsa
There's no need to calculate column width on entries that are not going to be displayed. Link: http://lkml.kernel.org/n/tip-l4k7dpiaj0b67t73nh8rs...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/pe

[PATCH 7/9] perf c2c report: Display node for cacheline address

2018-03-09 Thread Jiri Olsa
Adding the NUMA node info for the data cacheline. Adding the new column to both Shared Data Cache Line Table and Shared Cache Line Distribution Pareto. Note the new 'Node' column next to the 'Cacheline'. $ perf c2c report --stdio =

[PATCH 4/9] v4l: Add MPEG2 low-level decoder API control

2018-03-09 Thread Paul Kocialkowski
From: Florent Revest This control is to be used with the new low-level decoder API for MPEG2 to provide additional parameters for the hardware that cannot parse the input stream. Signed-off-by: Florent Revest --- drivers/media/v4l2-core/v4l2-ctrls.c | 15 +++ drivers/media/v4l2-cor

[PATCH 6/9] sunxi-cedrus: Add device tree binding document

2018-03-09 Thread Paul Kocialkowski
From: Florent Revest Device Tree bindings for the Allwinner's video engine Signed-off-by: Florent Revest --- .../devicetree/bindings/media/sunxi-cedrus.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/sunxi-cedrus

[tip:timers/urgent] clocksource/atmel-st: Add 'depends on HAS_IOMEM' to fix unmet dependency

2018-03-09 Thread tip-bot for Masahiro Yamada
Commit-ID: bd2746f09e1d8e37164f53b846f5225f3d36ee2d Gitweb: https://git.kernel.org/tip/bd2746f09e1d8e37164f53b846f5225f3d36ee2d Author: Masahiro Yamada AuthorDate: Tue, 6 Mar 2018 20:20:33 +0900 Committer: Thomas Gleixner CommitDate: Fri, 9 Mar 2018 11:11:58 +0100 clocksource/atmel-st:

[PATCH 5/9] media: platform: Add Sunxi Cedrus decoder driver

2018-03-09 Thread Paul Kocialkowski
From: Florent Revest This patch adds a "sunxi-cedrus" v4l2 m2m decoder driver for Allwinner's Video Processing Unit. This VPU has a low-level interface which requires manual registers writing for frame headers. Hence, it depends on the Request API to synchronize buffers with controls. Most of th

Re: [PATCH 5/9] x86/dumpstack: Improve opcodes dumping in the Code: section

2018-03-09 Thread Borislav Petkov
On Thu, Mar 08, 2018 at 03:20:58PM -0800, Linus Torvalds wrote: > Yes, so the reason the prologue is more important is that there's > really two cases for the "Code:" line: Yap, I had a hunch it must be about some of those but thanks for taking the time and writing it down! I've tried to summariz

[PATCH 8/9] ARM: dts: sun8i: add video engine support for A33

2018-03-09 Thread Paul Kocialkowski
From: Icenowy Zheng A33 has a video engine just like the one in A10. Add the support for it in the device tree. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-a33.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/sun8

[PATCH 9/9] ARM: dts: sun7i: Add video engine support for the A20

2018-03-09 Thread Paul Kocialkowski
From: Thomas van Kleef The A20 has a video engine similare to the one in the A13. Add the device node in the A20. Signed-off-by: Thomas van Kleef Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20.dtsi | 47 1 file changed, 47 insertions(+)

[PATCH 3/9] v4l: Add sunxi Video Engine pixel format

2018-03-09 Thread Paul Kocialkowski
From: Florent Revest Add support for the allwinner's proprietary pixel format described in details here: http://linux-sunxi.org/File:Ve_tile_format_v1.pdf This format is similar to V4L2_PIX_FMT_NV12M but the planes are divided in tiles of 32x32px. Signed-off-by: Florent Revest --- include/uap

[PATCH 7/9] ARM: dts: sun5i: Use video-engine node

2018-03-09 Thread Paul Kocialkowski
From: Florent Revest Now that we have a driver matching "allwinner,sun4i-a10-video-engine" we can load it. The "video-engine" node depends on the new sunxi-ng's CCU clock and reset bindings. This patch also includes a ve_reserved DMA pool for videobuf2 buffer allocations in sunxi-cedrus. Signed

[PATCH 2/9] perf tools: Add mem2node object

2018-03-09 Thread Jiri Olsa
Adding mem2node object to allow the easy lookup of the node for the physical address. It has following interface: int mem2node__init(struct mem2node *map, struct perf_env *env); void mem2node__exit(struct mem2node *map); int mem2node__node(struct mem2node *map, u64 addr); The mem2node__i

[PATCH v2] ARM: multi_v7_defconfig: enable CONFIG_DP83867_PHY

2018-03-09 Thread Daniel Schultz
This adds the driver for TI's DP83867 ethernet phy. Signed-off-by: Daniel Schultz --- Changes: v2: Re-submit with more recipients. Sorry, I only added Russell and vger in v1. arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs

[PATCH 3/9] perf tests: Add mem2node object test

2018-03-09 Thread Jiri Olsa
Adding mem2node object automated test. The test prepares few artificial node - memory maps and verifies the mem2node object returns proper node values to given addresses. Link: http://lkml.kernel.org/n/tip-17xdxr5k1zfca9o3fymow...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/Bui

[PATCH 4/9] perf c2c record: Record physical addresses in samples

2018-03-09 Thread Jiri Olsa
We are going to display NUMA node information in following patches. For this we need to have physical address data in the sample. Adding --phys-data as a default option for perf c2c record. Link: http://lkml.kernel.org/n/tip-4d4lyozdbsknzqeny8kl1...@git.kernel.org Signed-off-by: Jiri Olsa --- t

[PATCH 1/9] perf tools: Free memory nodes data

2018-03-09 Thread Jiri Olsa
Forgot to free env's memory nodes, adding needed code to perf_env__exit. Link: http://lkml.kernel.org/n/tip-ryyndcxqisxtfhbr6zp54...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/env.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/env.c b/tools/perf/util/e

Re: [PATCH v2] ARM: davinci: fix the GPIO lookup for omapl138-hawk

2018-03-09 Thread Sekhar Nori
On Thursday 01 March 2018 04:04 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The GPIO chip is called davinci_gpio.0 in legacy mode. Fix it, so that > mmc can correctly lookup the wp and cp gpios. > > Fixes: c69f43fb4f26 ("ARM: davinci: hawk: use gpio descriptor for mmc pins") >

[PATCHv2 0/9] perf tools: Assorted fixes

2018-03-09 Thread Jiri Olsa
hi, sending assorted general fixes that queued up in my other branches. v2 changes: - rebased, some patches already taken - multiple fixes suggested by Arnaldo - new patch that frees memory_nodes in perf_env__exit Also available in here: https://git.kernel.org/pub/scm/linux/kernel/git/jol

Re: [PATCH] x86, powerpc : pkey-mprotect must allow pkey-0

2018-03-09 Thread Michael Ellerman
Ram Pai writes: > Once an address range is associated with an allocated pkey, it cannot be > reverted back to key-0. There is no valid reason for the above behavior. On > the contrary applications need the ability to do so. Please explain this in much more detail. Is it an ABI change? And why

Do you want to be a Nit?

2018-03-09 Thread Ywe Cærlyn
I have concluded and formalized my research on religion, which computer systems have been a part of. Our society indeed runs on monotheistic principles. Why not come across the bridge over Arcadia, and be a Nit. The Nit are contemporary monotheists, and a Nit believes one should not have too mu

Re: Make set_handle_irq and handle_arch_irq generic, v3

2018-03-09 Thread Thomas Gleixner
On Wed, 7 Mar 2018, Palmer Dabbelt wrote: > This is my third version of this patch set, but the original cover > letter is still the most relevant description I can come up with. > > This patch set has been sitting around for a while, but it got a bit lost > in the shuffle. In RISC-V lan

Re: [PATCH 0/9] Sunxi-Cedrus driver for the Allwinner Video Engine, using the V4L2 request API

2018-03-09 Thread Paul Kocialkowski
On Fri, 2018-03-09 at 11:09 +0100, Paul Kocialkowski wrote: > This presents a newer version of the Sunxi-Cedrus driver, that > supports > the Video Engine found in most Allwinner SoCs, starting with the A10. I had to send this series in two parts (and tried to keep them under the original thread)

[PATCH] lib: Add testing module for UBSAN

2018-03-09 Thread Jinbum Park
This is a test module for UBSAN. It triggers all undefined behaviors that linux supports now, and detect them. All test-cases have passed by compiling with gcc-5.5.0. If use gcc-4.9.x, misaligned, out-of-bounds, object-size-mismatch will not be detected. Because gcc-4.9.x doesn't support them. S

[PATCH v1] devpts: resolve devpts bind-mounts

2018-03-09 Thread Christian Brauner
Most libcs will still look at /dev/ptmx when opening the master fd of a pty device. When /dev/ptmx is a bind-mount of /dev/pts/ptmx and the TIOCGPTPEER ioctl() is used to safely retrieve a file descriptor for the slave side of the pty based on the master fd, the /proc/self/fd/{0,1,2} symlinks will

Re: [PATCH v5 1/6] dt-bindings: add bindings for USB physical connector

2018-03-09 Thread Roger Quadros
Hi, On 27/02/18 09:11, Andrzej Hajda wrote: > These bindings allow to describe most known standard USB connectors > and it should be possible to extend it if necessary. > USB connectors, beside USB can be used to route other protocols, > for example UART, Audio, MHL. In such case every device pass

Re: [PATCH net-next] net: stmmac: remove superfluous wmb() memory barriers

2018-03-09 Thread Jose Abreu
Hi Niklas, On 08-03-2018 10:30, Niklas Cassel wrote: > These wmb() memory barriers are performed after the last descriptor write, > and they are followed by enable_dma_transmission()/set_tx_tail_ptr(), > i.e. a writel() to MMIO register space. > Since writel() itself performs the equivalent of a w

Re: [PATCH] arm64: kdump: fix interrupt handling done during machine_crash_shutdown

2018-03-09 Thread Grzegorz Jaszczyk
> Not using EOImode==1 is definitely an oddity (at least on the host), but > that doesn't mean it shouldn't work. > > The reason the thing is hanging is that although we correctly deactivate > the interrupt, nothing performs the priority drop. Your write to EOI > helps in the sense that it guarante

[PATCH] gpio: dwapb: Add support for a bus clock

2018-03-09 Thread Phil Edworthy
From: Michel Pollet Enable specified clocks from DTS, if any. Signed-off-by: Michel Pollet --- drivers/gpio/gpio-dwapb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c index b0704a8..56c58b5 100644 --- a/drivers/gpio/gpio-dwapb.c

[PATCH] ntb_transport: use put_device() instead of kfree()

2018-03-09 Thread Arvind Yadav
Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- drivers/ntb/ntb_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ntb/ntb_tr

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-03-09 Thread Felipe Balbi
Hi, Roger Quadros writes: >>> This is what the v3.10 databook says >>> >>> "When issuing an End Transfer command, software must set the CmdIOC >>> bit (field 8) so that an Endpoint Command Complete event is generated >>> after the transfer ends. This is necessary to synchronize the >>> conclusio

Re: [PATCH] rsi: Remove stack VLA usage

2018-03-09 Thread Kalle Valo
"Tobin C. Harding" writes: > The kernel would like to have all stack VLA usage removed[1]. rsi uses > a VLA based on 'blksize'. Elsewhere in the SDIO code maximum block size > is defined using a magic number. We can use a pre-processor defined > constant and declare the array to maximum size.

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-03-09 Thread Felipe Balbi
Hi, Roger Quadros writes: >> When we set up the DWC3_DEPCMD_ENDTRANSFER command in >> dwc3_stop_active_transfer(), we can do not set DWC3_DEPCMD_CMDIOC, >> then there will no endpoint command complete interrupts I think. >> >> cmd |= DWC3_DEPCMD_CMDIOC; > > I remember

Re: [PATCH v8 4/5] iommu/arm-smmu: Add the device_link between masters and smmu

2018-03-09 Thread Vivek Gautam
On Wed, Mar 7, 2018 at 6:17 PM, Robin Murphy wrote: > On 02/03/18 10:10, Vivek Gautam wrote: >> >> From: Sricharan R >> >> Finally add the device link between the master device and >> smmu, so that the smmu gets runtime enabled/disabled only when the >> master needs it. This is done from add_devi

[PATCH] net: hns: use put_device() if device_register fail

2018-03-09 Thread Arvind Yadav
if device_register() returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/hisilicon/hns/hnae.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hnae.c b/driv

Re: Regression from efi: call get_event_log before ExitBootServices

2018-03-09 Thread Thiebaud Weksteen
On Fri, Mar 9, 2018 at 10:29 AM Hans de Goede wrote: > Hi, > On 08-03-18 18:26, Jeremy Cline wrote: > > On 03/08/2018 11:50 AM, Hans de Goede wrote: > >> >> added these now> > >> > >> Hi, > >> > >> On 07-03-18 12:34, Javier Martinez Canillas wrote: > > > > > > > >>> Are you also able to read t

[PATCH] thunderbolt: Prevent crash when ICM firmware is not running

2018-03-09 Thread Mika Westerberg
On Lenovo ThinkPad Yoga 370 (and possibly some other Lenovo models as well) the Thunderbolt host controller sometimes comes up in such way that the ICM firmware is not running properly. This is most likely an issue in BIOS/firmware but as side-effect driver crashes the kernel due to NULL pointer de

[PATCH 0/3] of: overlay: Small cleanups

2018-03-09 Thread Geert Uytterhoeven
Hi all, This patch series contains two forgotten updates for the recent conversion to FDT overlays, and removes a function that was never used (not even in out-of-tree overlay ConfigFS ;-). Geert Uytterhoeven (3): of: Documentation: Fix forgotten reference to of_overlay_apply() of: ov

[PATCH 2/3] of: overlay: Fix forgotten reference to of_overlay_apply()

2018-03-09 Thread Geert Uytterhoeven
While technically the ovcs_id is still returned by of_overlay_apply(), this is an internal function. All public callers of of_overlay_remove() pass an ovcs_id returned by the public function of_overlay_fdt_apply(). Fixes: 39a751a4cb7e4798 ("of: change overlay apply input data from unflattened to

[PATCH 1/3] of: Documentation: Fix forgotten reference to of_overlay_apply()

2018-03-09 Thread Geert Uytterhoeven
Fixes: 93a6039000b5acab ("of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()") Signed-off-by: Geert Uytterhoeven --- Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt

[PATCH 3/3] of: overlay: Remove unused of_overlay_remove_all()

2018-03-09 Thread Geert Uytterhoeven
of_overlay_remove_all(), and its predecessor of_overlay_destroy_all(), were never used. Signed-off-by: Geert Uytterhoeven --- Documentation/devicetree/overlay-notes.txt | 4 drivers/of/overlay.c | 23 --- include/linux/of.h

[tip:irq/core] genirq/irq_sim: Explicitly include slab.h

2018-03-09 Thread tip-bot for Bartosz Golaszewski
Commit-ID: 34a866bd45d69754da1979e83a37bec6defc6295 Gitweb: https://git.kernel.org/tip/34a866bd45d69754da1979e83a37bec6defc6295 Author: Bartosz Golaszewski AuthorDate: Sun, 4 Mar 2018 13:10:16 +0100 Committer: Thomas Gleixner CommitDate: Fri, 9 Mar 2018 11:44:03 +0100 genirq/irq_sim: E

Re: [PATCH net-next] net: stmmac: remove superfluous wmb() memory barriers

2018-03-09 Thread Pavel Machek
On Fri 2018-03-09 10:26:11, Jose Abreu wrote: > Hi Niklas, > > On 08-03-2018 10:30, Niklas Cassel wrote: > > These wmb() memory barriers are performed after the last descriptor write, > > and they are followed by enable_dma_transmission()/set_tx_tail_ptr(), > > i.e. a writel() to MMIO register spa

Re: [PATCH] mm/mempolicy: Avoid use uninitialized preferred_node

2018-03-09 Thread Alexander Potapenko
On Fri, Mar 9, 2018 at 6:21 AM, Yisheng Xie wrote: > Alexander reported an use of uninitialized memory in __mpol_equal(), > which is caused by incorrect use of preferred_node. > > When mempolicy in mode MPOL_PREFERRED with flags MPOL_F_LOCAL, it use > numa_node_id() instead of preferred_node, howe

[tip:irq/core] genirq/irq_sim: Return the base of the irq range from irq_sim_init()

2018-03-09 Thread tip-bot for Bartosz Golaszewski
Commit-ID: f09777fa891327ee0dd892e83619f156bf1c37e6 Gitweb: https://git.kernel.org/tip/f09777fa891327ee0dd892e83619f156bf1c37e6 Author: Bartosz Golaszewski AuthorDate: Sun, 4 Mar 2018 13:10:18 +0100 Committer: Thomas Gleixner CommitDate: Fri, 9 Mar 2018 11:44:03 +0100 genirq/irq_sim: R

[tip:irq/core] genirq/irq_sim: Check the return value of irq_sim_init() for error codes

2018-03-09 Thread tip-bot for Bartosz Golaszewski
Commit-ID: 28b6afa7d4456e759031bf83706b4be3689fba94 Gitweb: https://git.kernel.org/tip/28b6afa7d4456e759031bf83706b4be3689fba94 Author: Bartosz Golaszewski AuthorDate: Sun, 4 Mar 2018 13:10:17 +0100 Committer: Thomas Gleixner CommitDate: Fri, 9 Mar 2018 11:44:03 +0100 genirq/irq_sim: C

Re: [PATCH] mm: oom: Fix race condition between oom_badness and do_exit of task

2018-03-09 Thread Tetsuo Handa
Kohli, Gaurav wrote: > > t->alloc_lock is still held when leaving find_lock_task_mm(), which means > > that t->mm != NULL. But nothing prevents t from setting t->mm = NULL at > > exit_mm() from do_exit() and calling exit_creds() from __put_task_struct(t) > > after task_unlock(t) is called. Seems di

Re: Regression from efi: call get_event_log before ExitBootServices

2018-03-09 Thread Thiebaud Weksteen
--- drivers/firmware/efi/libstub/tpm.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/firmware/efi/libstub/tpm.c b/drivers/firmware/efi/libstub/tpm.c index 773afcd6a37c..ee3fac109078 100644 --- a/drivers/firmware/efi/libstub/tpm.c +++ b/drivers/firmware/efi/lib

[PATCH] pstore: use crypto compress API

2018-03-09 Thread Geliang Tang
In the pstore compression part, we use zlib/lzo/lz4/lz4hc/842 compression algorithm API to implement pstore compression backends. But there are many repeat codes in these implementations. This patch uses crypto compress API to simplify these codes. 1) rewrite allocate_buf_for_compression, free_buf

[PATCH 0/2] mtd: use put_device() if device_register fail

2018-03-09 Thread Arvind Yadav
if device_register() returned an error! Always use put_device() to give up the reference initialized. Arvind Yadav (2): [PATCH 1/2] mtd: use put_device() if device_register fail [PATCH 2/2] mtd: ubi: use put_device() if device_register fail drivers/mtd/mtdcore.c | 1 + drivers/mtd/ubi/vmt.c

[PATCH 1/2] mtd: use put_device() if device_register fail

2018-03-09 Thread Arvind Yadav
if device_register() returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- drivers/mtd/mtdcore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 28553c8..4d77ca2 100644 --- a/driver

[PATCH 2/2] mtd: ubi: use put_device() if device_register fail

2018-03-09 Thread Arvind Yadav
if device_register() returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- drivers/mtd/ubi/vmt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c index 3fd8d7f..db85b68 100644 --- a/driver

Re: [PATCH v11 8/8] perf: ARM DynamIQ Shared Unit PMU support

2018-03-09 Thread Suzuki K Poulose
+ Cc: Lorenzo, Charles. On 08/03/18 23:59, Saravana Kannan wrote: On 01/02/2018 03:25 AM, Suzuki K Poulose wrote: Add support for the Cluster PMU part of the ARM DynamIQ Shared Unit (DSU). The DSU integrates one or more cores with an L3 memory system, control logic, and external interfaces to f

[tip:irq/core] softirq: Consolidate common code in __tasklet_[hi]_schedule()

2018-03-09 Thread tip-bot for Ingo Molnar
Commit-ID: 6498ddad301c7a94162915d06d1efe2e5d20f6dc Gitweb: https://git.kernel.org/tip/6498ddad301c7a94162915d06d1efe2e5d20f6dc Author: Ingo Molnar AuthorDate: Tue, 27 Feb 2018 17:48:07 +0100 Committer: Thomas Gleixner CommitDate: Fri, 9 Mar 2018 11:50:55 +0100 softirq: Consolidate com

[GIT PULL] Please pull powerpc/linux.git powerpc-4.16-5 tag

2018-03-09 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.16: The following changes since commit eb0a2d2620ae431c543963c8c7f08f597366fc60: powerpc/powernv: Support firmware disable of RFI flush (2018-02-23 16:55:42 +1100) are available in the git repository at: https://git.kernel.org/pub/scm/li

[tip:irq/core] softirq: Consolidate common code in tasklet_[hi]_action()

2018-03-09 Thread tip-bot for Ingo Molnar
Commit-ID: 82b691bedf05f258f1c86c96ee574b0d7795c0a1 Gitweb: https://git.kernel.org/tip/82b691bedf05f258f1c86c96ee574b0d7795c0a1 Author: Ingo Molnar AuthorDate: Tue, 27 Feb 2018 17:48:08 +0100 Committer: Thomas Gleixner CommitDate: Fri, 9 Mar 2018 11:50:55 +0100 softirq: Consolidate com

[PATCH v1] devpts: resolve devpts bind-mounts

2018-03-09 Thread Christian Brauner
Most libcs will still look at /dev/ptmx when opening the master fd of a pty device. When /dev/ptmx is a bind-mount of /dev/pts/ptmx and the TIOCGPTPEER ioctl() is used to safely retrieve a file descriptor for the slave side of the pty based on the master fd, the /proc/self/fd/{0,1,2} symlinks will

Re: [PATCH V2 2/3] efi: Introduce efi_rts_workqueue and some infrastructure to invoke all efi_runtime_services()

2018-03-09 Thread Borislav Petkov
On Thu, Mar 08, 2018 at 05:05:44PM +, Luck, Tony wrote: > > "Hence, pstore calls efi_runtime_services() without using efi_rts_wq" - > > that doesn't sound like optimal design to me. I would try to shove them > > all through the workqueue - not have exceptions. > > But pstore is trying to save

Re: [PATCH] video: fbdev: via: remove VLA usage

2018-03-09 Thread Eric Engestrom
On Thursday, 2018-03-08 11:39:49 -0600, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA usage. > > Also, fixed as part of the directive to remove all VLAs from > the kernel: https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Gustavo A. R. Silva Sorry for my reply on

Re: [PATCH] video: fbdev: via: remove VLA usage

2018-03-09 Thread Emil Velikov
On 9 March 2018 at 10:59, Eric Engestrom wrote: > On Thursday, 2018-03-08 11:39:49 -0600, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wvla, remove VLA usage. >> >> Also, fixed as part of the directive to remove all VLAs from >> the kernel: https://lkml.org/lkml/2018/3/7/621 >> >> Sig

Re: Warning from swake_up_all in 4.14.15-rt13 non-RT

2018-03-09 Thread Sebastian Andrzej Siewior
On 2018-03-08 13:54:17 [-0600], Corey Minyard wrote: > > It will work but I don't think pushing this into workqueue/tasklet is a > > good idea. You want to wakeup all waiters on waitqueue X (probably one > > waiter) and instead there is one one wakeup + ctx-switch which does the > > final wakeup. >

Re: [PATCH] iio: potentiometer: ds1803: Remove VLA usage

2018-03-09 Thread Himanshu Jha
On Thu, Mar 08, 2018 at 11:39:15AM -0800, Kees Cook wrote: > On Thu, Mar 8, 2018 at 10:45 AM, Himanshu Jha > wrote: > > In preparation to enabling -Wvla, remove VLA usage and replace it > > with fixed a fixed length array and therefore, prevent potential > > stack overflow attacks. > > > > Fixed a

Re: [PATCH] x86, powerpc : pkey-mprotect must allow pkey-0

2018-03-09 Thread Florian Weimer
On 03/09/2018 09:12 AM, Ram Pai wrote: Once an address range is associated with an allocated pkey, it cannot be reverted back to key-0. There is no valid reason for the above behavior. mprotect without a key does not necessarily use key 0, e.g. if protection keys are used to emulate page prote

Re: [PATCH] mm/mempolicy: Avoid use uninitialized preferred_node

2018-03-09 Thread Yisheng Xie
Hi Alexander , On 2018/3/9 18:49, Alexander Potapenko wrote: > On Fri, Mar 9, 2018 at 6:21 AM, Yisheng Xie wrote: >> Alexander reported an use of uninitialized memory in __mpol_equal(), >> which is caused by incorrect use of preferred_node. >> >> When mempolicy in mode MPOL_PREFERRED with flags M

Re: [PATCH V2 2/3] efi: Introduce efi_rts_workqueue and some infrastructure to invoke all efi_runtime_services()

2018-03-09 Thread Borislav Petkov
On Fri, Mar 09, 2018 at 02:37:59AM +, Prakhya, Sai Praneeth wrote: > But, I guess, we have some downsides with this design: > 1. We are doing this to have "no exceptions to use efi_rts_wq", but we will > be making > the common case complicated. i.e. When a user requests to write some efi > va

Re: [PATCH 2/3] usb: xhci: tegra: Add runtime PM support

2018-03-09 Thread Jon Hunter
On 09/03/18 08:36, Thierry Reding wrote: > On Thu, Mar 08, 2018 at 09:31:07PM +, Jon Hunter wrote: >> >> On 01/03/18 14:18, Mathias Nyman wrote: >>> On 14.02.2018 18:34, Jon Hunter wrote: Add runtime PM support to the Tegra XHCI driver and move the function calls to enable/disable th

Re: [BUG] Kernel crash on Allwinner H3 due to sound core changes

2018-03-09 Thread Mark Brown
On Thu, Mar 08, 2018 at 11:49:18PM +, Kuninori Morimoto wrote: > previous my patch used new flag (= .alloced_component), > but I think it is not good idea. > And I noticed that snd_soc_add_component() is > also calling kfree(component) (= has same bug). > So how about below one ? > I want to

Re: [PATCH 2/3] usb: xhci: tegra: Add runtime PM support

2018-03-09 Thread Jon Hunter
On 09/03/18 09:13, Mathias Nyman wrote: > On 09.03.2018 10:36, Thierry Reding wrote: >> On Thu, Mar 08, 2018 at 09:31:07PM +, Jon Hunter wrote: >>> >>> On 01/03/18 14:18, Mathias Nyman wrote: On 14.02.2018 18:34, Jon Hunter wrote: > Add runtime PM support to the Tegra XHCI driver and

Re: [PATCHv5 3/5] mfd: motorola-cpcap: Add audio-codec support

2018-03-09 Thread Sebastian Reichel
On Fri, Mar 09, 2018 at 08:34:14AM +, Lee Jones wrote: > On Thu, 08 Mar 2018, Mark Brown wrote: > > > On Thu, Mar 08, 2018 at 10:48:31AM +, Lee Jones wrote: > > > On Thu, 08 Mar 2018, Sebastian Reichel wrote: > > > > > > I had it in PATCHv1-PATCHv4. It was removed, since Mark didn't want

sound fixes for 4.16-rc5

2018-03-09 Thread Takashi Iwai
Linus, please pull sound fixes for v4.16-rc5 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.16-rc5 The topmost commit is 099fd6ca0ad25bc19c5ade2ea4b25b8fadaa11b3 sound fixes for 4.16-rc5 Two

Re: [PATCH 0/4] MIPS: Introduce isa-rev.h to define MIPS_ISA_REV

2018-03-09 Thread James Hogan
On Mon, Feb 26, 2018 at 05:02:41PM +, Matt Redfearn wrote: > There are multiple instances in the kernel where we need to include or > exclude particular instructions based on the ISA revision of the target > processor. For MIPS32 / MIPS64, the compiler exports a __mips_isa_rev > define. However

Re: [PATCHv5 3/5] mfd: motorola-cpcap: Add audio-codec support

2018-03-09 Thread Sebastian Reichel
Hi, On Thu, Mar 08, 2018 at 09:07:36AM -0800, Tony Lindgren wrote: > * Sebastian Reichel [180308 09:47]: > > Hi Lee, > > > > On Wed, Mar 07, 2018 at 04:32:11PM +, Lee Jones wrote: > > > On Fri, 23 Feb 2018, Sebastian Reichel wrote: > > > > +static const struct mfd_cell cpcap_mfd_devices[] =

[GIT PULL] overlayfs fixes for 4.16-rc5

2018-03-09 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-linus This fixes a corner case for NFS exporting (introduced in this cycle) as well as fixing miscellaneous bugs. Thanks, Miklos --- Amir Goldstein (3): ovl: hash non-dir by lower inode

RE: [PATCH] power: supply: da9150-fg: remove VLA usage

2018-03-09 Thread Adam Thomson
On 09 March 2018 04:58, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA usage and replace it > with fixed-length arrays. > > It seems that the length of array 'buf' will not exceed > DA9150_QIF_SHORT_SIZE bytes (2 bytes). But a fixed length > of DA9150_QIF_BYTE_SIZE byte

Re: irqdesc: Why the "__ref" is needed in __irq_alloc_descs() ?

2018-03-09 Thread Thomas Gleixner
On Fri, 9 Mar 2018, Dou Liyang wrote: > I have a question about "__ref" in Linux kernel. > > When I looked into the __irq_alloc_descs(), I found it tagged a > "__ref" mark, but I didn't find that it referenced code or data > from init section. See the various #define irq_alloc_desc* variants.

Re: [PATCH] scsi: jazz_esp, sun3x_esp: Pass struct device pointer in dma calls

2018-03-09 Thread Tom Bogendoerfer
On Wed, Mar 07, 2018 at 05:56:41PM +1100, Finn Thain wrote: > In jazz_esp and sun3x_esp, the esp_driver_ops methods pass esp->dev > in dma api calls as if it was a pointer to a struct device. But > it actually points to a struct platform_device. Fix this. > > Cc: Thomas Bogendoerfer > Signed-off-

Re: [PATCH v3 3/3] pinctrl: bcm2835: Update docs about generic pinctrl bindings support

2018-03-09 Thread Stefan Wahren
Hi Matheus, > Matheus Castello hat am 9. März 2018 um 05:16 > geschrieben: > > > Now we have generic pin configuration and multiplexing support, > ahd shoud be preferred than brcm legacy one. i suspect this patch won't get noticed by the DT maintainer because of the wrong subject. Please tr

Re: [PATCH 1/4] ARM: dts: exynos5250: Add #sound-dai-cells property to hdmi device node

2018-03-09 Thread Sylwester Nawrocki
Hi Inki, On 03/09/2018 03:40 AM, Inki Dae wrote: > 2018년 03월 08일 02:27에 Sylwester Nawrocki 이(가) 쓴 글: >> This property is required for specifying link between the HDMI IP block >> and the SoC's audio subsystem. >> >> Signed-off-by: Sylwester Nawrocki >> --- >> arch/arm/boot/dts/exynos5250.dtsi |

Re: [PATCH] mm: oom: Fix race condition between oom_badness and do_exit of task

2018-03-09 Thread Kohli, Gaurav
On 3/9/2018 4:18 PM, Tetsuo Handa wrote: Kohli, Gaurav wrote: t->alloc_lock is still held when leaving find_lock_task_mm(), which means that t->mm != NULL. But nothing prevents t from setting t->mm = NULL at exit_mm() from do_exit() and calling exit_creds() from __put_task_struct(t) after task_

Re: [PATCH 1/2] arm64: defconfig: Enable CONFIG_ARM_TEGRA186_CPUFREQ

2018-03-09 Thread Thierry Reding
On Thu, Nov 16, 2017 at 01:46:51PM +0200, Mikko Perttunen wrote: > Enable Tegra186 CPU frequency scaling support by default. > > Signed-off-by: Mikko Perttunen > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) Both patches applied, thanks. Thierry signature.asc Des

Re: Nokia N900: refcount_t underflow, use after free

2018-03-09 Thread Robin Murphy
On 08/03/18 18:50, Pavel Machek wrote: Hi! * Pavel Machek [180308 14:31]: Hi! I'm getting this warning... Has anyone seen/debugged that before? Unfortunately the backtrace does not seem to be too useful :-(. Adding Suman to Cc, as it points to arm_iommu_release_mapping(). Hmm, we need to

Re: [PATCH V3 0/4] genirq/affinity: irq vector spread among online CPUs as far as possible

2018-03-09 Thread Ming Lei
On Fri, Mar 09, 2018 at 11:08:54AM +0100, Thomas Gleixner wrote: > On Fri, 9 Mar 2018, Ming Lei wrote: > > On Fri, Mar 09, 2018 at 12:20:09AM +0100, Thomas Gleixner wrote: > > > On Thu, 8 Mar 2018, Ming Lei wrote: > > > > Actually, it isn't a real fix, the real one is in the following two: > > > >

<    3   4   5   6   7   8   9   10   11   12   >