Re: [RFC PATCH 2/2] mm/sparse: add last_section_nr in sparse_init() to reduce some iteration cycle

2017-03-08 Thread Wei Yang
On Mon, Mar 06, 2017 at 02:42:25PM -0500, Tejun Heo wrote: >Hello, Wei. > >On Fri, Feb 17, 2017 at 10:12:31PM +0800, Wei Yang wrote: >> > And compare the ruling with the iteration for the loop to be (1UL << >> > 5) and (1UL << 19). >> > The runtime is 0.00s and 0.04s respectively. The absolute valu

[v2, 1/4] mtd: spi-nor: Add support for Octal SPI mode.

2017-03-08 Thread Artur Jedrysek
This patch adds support for Octal SPI data reads in SPI NOR framework. Opcodes for programming using octal interface are also present for the sake of completeness, despite not being used. Micron mt35xu512 flash is added as an example chip supporting that mode. Signed-off-by: Artur Jedrysek --- C

[PATCH RESEND^2] usb: gadget: udc: atmel: fix debug output

2017-03-08 Thread Arnd Bergmann
The debug output now contains the wrong variable, as seen from the compiler warning: drivers/usb/gadget/udc/atmel_usba_udc.c: In function 'usba_ep_enable': drivers/usb/gadget/udc/atmel_usba_udc.c:632:550: error: 'ept_cfg' may be used uninitialized in this function [-Werror=maybe-uninitialized]

[PATCH] kernel: convert css_set.refcount from atomic_t to refcount_t

2017-03-08 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH] virtio-pci: Remove affinity hint before freeing the interrupt

2017-03-08 Thread Marc Zyngier
virtio-pci registers a per-vq affinity hint when using MSIX, but fails to remove it when freeing the interrupt, resulting in this type of splat: [ 31.111202] WARNING: CPU: 0 PID: 2823 at kernel/irq/manage.c:1503 __free_irq+0x2c4/0x2c8 [ 31.114689] Modules linked in: [ 31.116101] CPU: 0 PID:

Re: [RFC PATCH v4 26/28] x86: Allow kexec to be used with SME

2017-03-08 Thread Dave Young
On 03/06/17 at 11:58am, Tom Lendacky wrote: > On 3/1/2017 3:25 AM, Dave Young wrote: > > Hi Tom, > > Hi Dave, > > > > > On 02/17/17 at 10:43am, Tom Lendacky wrote: > > > On 2/17/2017 9:57 AM, Konrad Rzeszutek Wilk wrote: > > > > On Thu, Feb 16, 2017 at 09:47:55AM -0600, Tom Lendacky wrote: > > >

Re: [PATCH 0/2] Documentation/EDID fixes

2017-03-08 Thread Jani Nikula
On Tue, 07 Mar 2017, Javi Merino wrote: > On Tue, Mar 07, 2017 at 06:16:51PM +0200, Jani Nikula wrote: >> On Mon, 06 Mar 2017, Javi Merino wrote: >> > I found these two minor issues while building an EDID. I'm not sure >> > whether the second patch (Add O= to support) is upstream material, but >

[PATCH v4 1/7] arm: dts: imx6qdl-icore: Add backlight support for lvds

2017-03-08 Thread Jagan Teki
From: Jagan Teki This patch add support for lvds backlight on i.CoreM6 QDL variant boards. Cc: Domenico Acri Cc: Matteo Lisi Cc: Michael Trimarchi Cc: Shawn Guo Signed-off-by: Jagan Teki --- Changes for v4, v3, v2: - none arch/arm/boot/dts/imx6qdl-icore.dtsi | 20 1 f

Re: [PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-08 Thread Dave Young
On 03/08/17 at 03:47pm, Baoquan He wrote: > EFI allocate runtime services regions down from EFI_VA_START, -4G. > It should be top-down handling. > > Signed-off-by: Baoquan He > --- > arch/x86/platform/efi/efi_64.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86

Re: [PATCH v2] dmaengine: rcar-dmac: enable descriptor mode on 40bit

2017-03-08 Thread Geert Uytterhoeven
On Wed, Mar 8, 2017 at 1:42 AM, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > SYS-DMAC can use 40bit address transfer, and it supports Descriptor > Mode too. Current SYS-DMAC driver disables Descriptor Mode if it was > 40bit address today. But it can use Descriptor Mode with 40bit if > t

Re: kasan behavior when built with unsupported compiler

2017-03-08 Thread Nikolay Borisov
On 7.03.2017 17:54, Dmitry Vyukov wrote: > On Tue, Mar 7, 2017 at 4:35 PM, Nikolay Borisov > wrote: >> Hello, >> >> I've been chasing a particular UAF as reported by kasan >> (https://www.spinics.net/lists/kernel/msg2458136.html). However, one >> thing which I took notice of rather lately is th

Re: [PATCH 01/12] gpio: mockup: use devm_irq_alloc_descs()

2017-03-08 Thread Bamvor Zhang Jian
On 4 March 2017 at 17:23, Bartosz Golaszewski wrote: > Use the resource managed variant of irq_alloc_descs(). This allows us > to remove gpio_mockup_remove(). > > Signed-off-by: Bartosz Golaszewski Reviewed-by: Bamvor Jian Zhang > --- > drivers/gpio/gpio-mockup.c | 16 +--- > 1 fil

[PATCH RESEND] drm: dw_hdmi: Don't rely on the status of the bridge for updating HPD

2017-03-08 Thread Romain Perier
Currently, the irq handler that monitores changes for HPD anx RX_SENSE relies on the status of the bridge for updating the status of the HPD. The update is done only when the bridge is enabled. However, on Rockchip platforms we have found use cases where it could be a problem. When HDMI is being u

[PATCH v3] Input: sparse-keymap - use a managed allocation for keymap copy

2017-03-08 Thread Michał Kępień
Some platform drivers use devm_input_allocate_device() together with sparse_keymap_setup() in their .probe callbacks. While using the former simplifies error handling, using the latter necessitates calling sparse_keymap_free() in the error path and upon module unloading to avoid leaking the copy o

[PATCH v5 5/5] perf: powerpc: choose local entry point with kretprobes

2017-03-08 Thread Naveen N. Rao
perf now uses an offset from _text/_stext for kretprobes if the kernel supports it, rather than the actual function name. As such, let's choose the LEP for powerpc ABIv2 so as to ensure the probe gets hit. Do it only if the kernel supports specifying offsets with kretprobes. Signed-off-by: Naveen

[PATCH v5 2/5] powerpc: kretprobes: override default function entry offset

2017-03-08 Thread Naveen N. Rao
With ABIv2, we offset 8 bytes into a function to get at the local entry point. Acked-by: Ananth N Mavinakayanahalli Acked-by: Michael Ellerman Signed-off-by: Naveen N. Rao --- arch/powerpc/kernel/kprobes.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/kernel/kprobes

[v2, 3/4] mtd: spi-nor: Add Xtensa CPU support for cadence-quadspi.

2017-03-08 Thread Artur Jedrysek
Cadence Quad SPI driver successfully runs on Xtensa CPU, and Kconfig file is updated to indicate that. Signed-off-by: Artur Jedrysek --- Changelog: v2: This change is extracted from previous patch (updating CQSPI driver). --- drivers/mtd/spi-nor/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v5 4/5] perf: kretprobes: offset from reloc_sym if kernel supports it

2017-03-08 Thread Naveen N. Rao
We indicate support for accepting sym+offset with kretprobes through a line in ftrace README. Parse the same to identify support and choose the appropriate format for kprobe_events. As an example, without this perf patch, but with the ftrace changes: naveen@ubuntu:~/linux/tools/perf$ sudo cat /

[PATCH v5 1/5] trace/kprobes: fix check for kretprobe offset within function entry

2017-03-08 Thread Naveen N. Rao
perf specifies an offset from _text and since this offset is fed directly into the arch-specific helper, kprobes tracer rejects installation of kretprobes through perf. Fix this by looking up the actual offset from a function for the specified sym+offset. Refactor and reuse existing routines to li

[PATCH v5 3/5] perf: probe: factor out the ftrace README scanning

2017-03-08 Thread Naveen N. Rao
Simplify and separate out the ftrace README scanning logic into a separate helper. This is used subsequently to scan for all patterns of interest and to cache the result. Since we are only interested in availability of probe argument type x, we will only scan for that. Acked-by: Masami Hiramatsu

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

2017-03-08 Thread Jani Nikula
On Tue, 07 Mar 2017, Maxime Ripard wrote: > I just rebased my tree on top of the latest drm-misc tag > (drm-misc-next-2017-03-06). It should compile, and not have merge > conflicts anymore. Conflicts happen. Rebasing should not be the standard operating procedure for fixing them. BR, Jani. --

Re: [PATCH 2/2] x86/mm/KASLR: Correct the upper boundary of KALSR mm regions if adjacent to EFI

2017-03-08 Thread Dave Young
On 03/08/17 at 03:47pm, Baoquan He wrote: > EFI allocates runtime services regions top-down, starting from EFI_VA_START > to EFI_VA_END. So EFI_VA_START is bigger than EFI_VA_END and is the end of > EFI region. The upper boundary of memory regions randomized by KASLR should > be EFI_VA_END if it's

[PATCH v5 0/5] kretprobe fixes

2017-03-08 Thread Naveen N. Rao
Now that I've been carried back in (ugh!), please find the remaining patches from the earlier series (*) here. Patches 1-4 are the same as in v4. Patch 5 in the previous series was dropped and the previous patch 6 has been updated accordingly. - Naveen (*) https://www.mail-archive.com/linux-kerne

[PATCH] target; Drop pointless tfo->check_stop_free check

2017-03-08 Thread Nicholas A. Bellinger
From: Nicholas Bellinger All in-tree fabric drivers provide a tfo->check_stop_free(), so there is no need to do the extra check within existing transport_cmd_check_stop_to_fabric() code. Just to be sure, add a check in target_fabric_tf_ops_check() to notify any out-of-tree drivers that might be

[PATCH v4 2/7] arm: dts: imx6q: Add Engicam i.CoreM6 Quad/Dual OpenFrame Cap 10.1 initial support

2017-03-08 Thread Jagan Teki
From: Jagan Teki i.CoreM6 Quad/Dual OpenFrame modules are "system on modules plus openframe display carriers" which are good solution for develop user friendly graphic user interface. General features: CPU NXP i.MX6Q rev1.2 at 792 MHz RAM 1GB, 32, 64 bit, DDR3-800/1066 NAND

[PATCH] uapi: add missing install of userio.h

2017-03-08 Thread Naohiro Aota
While commit 5523662edd4f ("Input: add userio module") added userio.h under the uapi/ directory, it forgot to add the header file to Kbuild. Thus, the file is missing from header installation. This patch just resolve the issue by adding the missing entry. Signed-off-by: Naohiro Aota --- include/

Re: [PATCH 2/2] x86/mm/KASLR: Correct the upper boundary of KALSR mm regions if adjacent to EFI

2017-03-08 Thread Bhupesh Sharma
On Wed, Mar 8, 2017 at 1:48 PM, Dave Young wrote: > On 03/08/17 at 03:47pm, Baoquan He wrote: >> EFI allocates runtime services regions top-down, starting from EFI_VA_START >> to EFI_VA_END. So EFI_VA_START is bigger than EFI_VA_END and is the end of >> EFI region. The upper boundary of memory reg

[v2, 2/4] mtd: spi-nor: Add Octal SPI support to Cadence QSPI driver.

2017-03-08 Thread Artur Jedrysek
Recent versions of Cadence QSPI controller support Octal SPI transfers as well. This patch updates existing driver to support such feature. It is not possible to determine whether or not octal mode is supported just by looking at revision register alone. To solve that, an additional compatible in

Re: [RFC 08/11] mm: make ttu's return boolean

2017-03-08 Thread John Hubbard
On 03/01/2017 10:39 PM, Minchan Kim wrote: try_to_unmap returns SWAP_SUCCESS or SWAP_FAIL so it's suitable for boolean return. This patch changes it. Hi Minchan, So, up until this patch, I definitely like the cleanup, because as you observed, the return values didn't need so many different va

[RFC PATCH] sched/wait: Introduce new, more compact wait_event*() primitives

2017-03-08 Thread Ingo Molnar
* Linus Torvalds wrote: > On Fri, Mar 3, 2017 at 12:13 PM, Linus Torvalds > wrote: > > > > The fact that you can include , and then cannot use the > > wait event functions because you're missing "signal_pending()" is > > complete garbage. This needs to be fixed. > > Here's a (totally untested)

Re: [PATCH] mm: drop "wait" parameter from write_one_page

2017-03-08 Thread John Hubbard
On 03/05/2017 05:23 AM, Jeff Layton wrote: The callers all have it set to 1 anyway. Also, make it clear that this function will not set any sort of AS_* error, and that the caller must do so if necessary. Hi Jeff, Silly nit: The above bit about not setting AS_* errors seems to not have made it

Re: [PATCH v2] staging: wilc1000: Fix sparse warnings incorrect type assignment

2017-03-08 Thread Andrea Ghittino
Thank you for your time regard, andrea On Wed, Mar 8, 2017 at 7:22 AM, Dan Carpenter wrote: > I think this change is buggy. > > On Tue, Mar 07, 2017 at 10:36:53PM +0100, Andrea Ghittino wrote: >> Fixed sparse warnings related to the conversion of le16 and le32 to u16 and >> u32, during the upda

Re: linux-next: build warnings after merge of the overlayfs tree

2017-03-08 Thread Amir Goldstein
On Wed, Mar 8, 2017 at 1:16 AM, Stephen Rothwell wrote: > Hi Miklos, > > After merging the overlayfs tree, today's linux-next build (powerpc > ppc64_defconfig) produced these warnings: > > fs/overlayfs/inode.c:322:30: warning: 'ovl_i_mutex_key' defined but not used > [-Wunused-variable] > static

Re: [PATCH] zram: set physical queue limits to avoid array out of bounds accesses

2017-03-08 Thread Johannes Thumshirn
On 03/08/2017 06:11 AM, Minchan Kim wrote: > And could you test this patch? It avoids split bio so no need new bio > allocations and makes zram code simple. > > From f778d7564d5cd772f25bb181329362c29548a257 Mon Sep 17 00:00:00 2001 > From: Minchan Kim > Date: Wed, 8 Mar 2017 13:35:29 +0900 > Subj

[v2, 4/4] dt-bindings: mtd: Add Octal SPI support to Cadence QSPI.

2017-03-08 Thread Artur Jedrysek
This patch updates Cadence QSPI Device Tree documentation to include information about new compatible used to indicate, whether or not Octal SPI transfers are supported by the device. Signed-off-by: Artur Jedrysek --- Changelog: v2: Use new compatible, instead of boolean property, to indicate Oct

Re: [PATCH 1/2] perf probe: Fix concat_probe_trace_events

2017-03-08 Thread Masami Hiramatsu
On Wed, 8 Mar 2017 12:29:07 +0530 Ravi Bangoria wrote: > '*ntevs' contains number of elements present in 'tevs' array. If > there are no elements in array, 'tevs2' can be directly assigned > to 'tevs' without allocating more space. So the condition should > be '*ntevs == 0' not 'ntevs == 0'.

Re: [RFC PATCH v2 09/32] x86: Change early_ioremap to early_memremap for BOOT data

2017-03-08 Thread Borislav Petkov
On Thu, Mar 02, 2017 at 10:13:53AM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > In order to map BOOT data with the proper encryption bit, the Btw, what does that all-caps spelling "BOOT" denote? Something I'm missing? > early_ioremap() function calls are changed to early_memremap() call

Re: next build: 208 builds: 21 failed, 187 passed, 53 errors, 406 warnings (next-20170308)

2017-03-08 Thread Arnd Bergmann
On Wed, Mar 8, 2017 at 4:40 AM, kernelci.org bot wrote: > next build: 208 builds: 21 failed, 187 passed, 53 errors, 406 warnings > > allmodconfig (arm) — PASS, 0 errors, 6 warnings, 0 section mismatches > > Warnings: > :1325:2: warning: #warning syscall statx not implemented [-Wcpp] The syscall w

[PATCH 2/5] fs, xfs: convert xfs_efi_log_item.efi_refcount from atomic_t to refcount_t

2017-03-08 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 0/5] fs, xfs refcount conversions

2017-03-08 Thread Elena Reshetova
v3: * fixed header file inclusion Now when new refcount_t type and API are finally merged (see include/linux/refcount.h), the following patches convert various refcounters in the xfs susystem from atomic_t to refcount_t. By doing this we prevent intentional or accidental underflows or overflows t

[PATCH 1/5] fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to refcount_t

2017-03-08 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 5/5] fs, xfs: convert xfs_rui_log_item.rui_refcount from atomic_t to refcount_t

2017-03-08 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: linux-4.11-rc1/drivers/gpu/drm/exynos/exynos5433_drm_decon.c:681: suspicious mask ?

2017-03-08 Thread Andrzej Hajda
Hi David, Inki, Thanks for reporting. On 06.03.2017 11:05, David Binderman wrote: > Hello there, > > linux-4.11-rc1/drivers/gpu/drm/exynos/exynos5433_drm_decon.c:681]: (warning) > Result of operator '|' is always true if one operand is non-zero. Did you > intend to use '&'? > > Source code is >

Re: [PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-08 Thread Bhupesh Sharma
Hi Dave, On Wed, Mar 8, 2017 at 1:48 PM, Dave Young wrote: > On 03/08/17 at 03:47pm, Baoquan He wrote: >> EFI allocate runtime services regions down from EFI_VA_START, -4G. >> It should be top-down handling. >> >> Signed-off-by: Baoquan He >> --- >> arch/x86/platform/efi/efi_64.c | 2 +- >> 1 f

Re: [PATCH v2] ARM: mvebu: add support for the Linksys WRT1900ACS (Shelby)

2017-03-08 Thread Gregory CLEMENT
Hi Ralph, On mar., mars 07 2017, Ralph Sennhauser wrote: > On Tue, 07 Mar 2017 18:27:21 +0100 > Gregory CLEMENT wrote: >> >> It is now in mvebu/dt and in the same time I fixed the title to: >> "ARM: dts: armada-385: add support for the Linksys WRT1900ACS >> (Shelby)" >> >> Gregory >> > > T

Re: [PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-08 Thread Baoquan He
Forgot cc to Boris, add him. On 03/08/17 at 04:18pm, Dave Young wrote: > On 03/08/17 at 03:47pm, Baoquan He wrote: > > EFI allocate runtime services regions down from EFI_VA_START, -4G. > > It should be top-down handling. > > > > Signed-off-by: Baoquan He > > --- > > arch/x86/platform/efi/efi_6

[PATCH 2/2] perf probe: Remove stale func add_perf_probe_events

2017-03-08 Thread Ravi Bangoria
I don't see any user of this function. This function was being copied to tools/perf/builtin-probe.c by commit b02137cc6550 ("perf probe: Move print logic into cmd_probe()"). Since then it has became stale. Signed-off-by: Ravi Bangoria --- tools/perf/util/probe-event.c | 18 -- 1

Re: [PATCH] mm: Do not use double negation for testing page flags

2017-03-08 Thread Vlastimil Babka
On 03/08/2017 06:25 AM, Minchan Kim wrote: > Hi Anshuman, > > On Tue, Mar 07, 2017 at 09:31:18PM +0530, Anshuman Khandual wrote: >> On 03/07/2017 12:06 PM, Minchan Kim wrote: >>> With the discussion[1], I found it seems there are every PageFlags >>> functions return bool at this moment so we don't

Re: [PATCH] iio: multiplexer: fix unsigned check with less than zero

2017-03-08 Thread Colin Ian King
On 08/03/17 08:59, Peter Rosin wrote: > On 2017-03-07 16:06, Colin King wrote: >> From: Colin Ian King >> >> Comparing a size_t with less than zero is always false as size_t >> is unsigned. The intent of the comparison was to check if the size >> was -1 (that is, undefined), so use that instead. >

Re: [PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-08 Thread Baoquan He
On 03/08/17 at 09:54am, Borislav Petkov wrote: > On Wed, Mar 08, 2017 at 04:45:13PM +0800, Baoquan He wrote: > > -4G and -68G just a trick which makes people understand easily, still we > > think kernel text mapping region is in higher addr area then vmalloc. I > > personnally think. > > Just remo

[PATCH 1/4] qxl: drop mode_info.modes & related code.

2017-03-08 Thread Gerd Hoffmann
very old qxl hardware revisions (predating qxl ksm support by a few years) supported a fixed list of video modes only. The list is still provided by the virtual hardware, for backward compatibility reasons. The qxl kms driver never ever looks at it, except for dumping it to the kernel log at load

[PATCH 2/4] qxl: limit monitor config read retries

2017-03-08 Thread Gerd Hoffmann
When reading the monitor config fails, don't retry forever. If it fails ten times in a row just give up to avoid the driver hangs. Also add a small delay after each attempt, so the host has a chance to complete a partial update. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.

[PATCH v4 0/7] mmc: bcm2835: Add new driver for the sdhost controller

2017-03-08 Thread Gerd Hoffmann
Hi, Next version if the bcm2835 sdhost patch series. New in v4: * squashed in more cleanups by Stefan. * removed the long cleanup patch list from commit message (patch 2). * rebased to (and tested with) 4.11-rc1. * minor fixes pointed out in review. New in v3: * squashed in cleanups by

[PATCH v4 3/7] mmc: bcm2835: add sdhost controller to devicetree

2017-03-08 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Acked-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 6 ++ arch/arm/boot/dts/bcm283x.dtsi | 10 ++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index 1e00a28..8b958

Re: [PATCH v2] dmaengine: rcar-dmac: enable descriptor mode on 40bit

2017-03-08 Thread Laurent Pinchart
Hi Morimoto-san, Thank you for the patch. On Wednesday 08 Mar 2017 00:42:54 Kuninori Morimoto wrote: > From: Kuninori Morimoto > > SYS-DMAC can use 40bit address transfer, and it supports Descriptor > Mode too. Current SYS-DMAC driver disables Descriptor Mode if it was > 40bit address today. Bu

Re: [PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-08 Thread Baoquan He
On 03/08/17 at 02:30pm, Bhupesh Sharma wrote: > Hi Dave, > > On Wed, Mar 8, 2017 at 1:48 PM, Dave Young wrote: > > On 03/08/17 at 03:47pm, Baoquan He wrote: > >> EFI allocate runtime services regions down from EFI_VA_START, -4G. > >> It should be top-down handling. > >> > >> Signed-off-by: Baoqua

linux-kernel@vger.kernel.org

2017-03-08 Thread Gerd Hoffmann
For the raspberry pi 3 we'll need both sdhci (handles sdio wifi) and sdhost (handles sdcard). Signed-off-by: Gerd Hoffmann Acked-by: Eric Anholt --- arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/broadc

Re: [PATCH v2 1/2] sched/loadavg: Avoid loadavg spikes caused by delayed NO_HZ accounting

2017-03-08 Thread Wanpeng Li
2017-02-17 20:07 GMT+08:00 Matt Fleming : > If we crossed a sample window while in NO_HZ we will add LOAD_FREQ to > the pending sample window time on exit, setting the next update not > one window into the future, but two. > > This situation on exiting NO_HZ is described by: > > this_rq->calc_loa

[PATCH v4 2/7] mmc: bcm2835: Add new driver for the sdhost controller.

2017-03-08 Thread Gerd Hoffmann
From: Eric Anholt The 2835 has two SD controllers: The Arasan sdhci controller (supported by the iproc driver) and a custom sdhost controller. This patch adds a driver for the latter. The sdhci controller supports both sdcard and sdio. The sdhost controller supports the sdcard only, but has be

[PATCH v4 1/7] dt-bindings: Add binding for brcm,bcm2835-sdhost.

2017-03-08 Thread Gerd Hoffmann
From: Eric Anholt This is the other SD controller on the platform, which can be swapped to the role of SD card host using pin muxing. Signed-off-by: Eric Anholt Signed-off-by: Gerd Hoffmann Acked-by: Rob Herring --- .../bindings/mmc/brcm,bcm2835-sdhost.txt | 23

linux-kernel@vger.kernel.org

2017-03-08 Thread Gerd Hoffmann
sdcard access with the sdhost controller is faster. Read access (dd with 64k blocks on rpi2): CONFIG_MMC_SDHCI_IPROC: 11-12 MB/s CONFIG_MMC_BCM2835: 19-20 MB/s Differences on write access are pretty much in the noise. Signed-off-by: Gerd Hoffmann Acked-by: Eric Anholt --- arch/arm/b

[PATCH v4 4/7] arm: set CONFIG_MMC_BCM2835=y in bcm2835_defconfig and multi_v7_defconfig

2017-03-08 Thread Gerd Hoffmann
We need to enable this controller so that we can switch the SD card's pinmux over to it by default, which will improve storage performance. Read access (dd with 64k blocks on rpi2): CONFIG_MMC_SDHCI_IPROC: 11-12 MB/s CONFIG_MMC_BCM2835: 19-20 MB/s Differences on write access are pretty mu

[PATCH 3/4] qxl: read monitors config at boot

2017-03-08 Thread Gerd Hoffmann
Try to read the client monitors config at driver load time, even without explicit notification. So in case that info was filled before the driver loaded and we've missed the notifications because of that the settings will still be used. With that place we now have to take care to properly handle

[PATCH v4 5/7] arm64: set CONFIG_MMC_BCM2835=y in defconfig

2017-03-08 Thread Gerd Hoffmann
We need to enable this controller so that we can switch the SD card's pinmux over to it by default, which will improve storage performance. Read access (dd with 64k blocks on rpi2): CONFIG_MMC_SDHCI_IPROC: 11-12 MB/s CONFIG_MMC_BCM2835: 19-20 MB/s Differences on write access are pretty mu

[PATCH 4/4] qxl: fix qxl_conn_get_modes

2017-03-08 Thread Gerd Hoffmann
Call qxl_add_monitors_config_modes() unconditionally. Do all sanity checks in that function. Fix sanity checks. monitors_config is the current monitor configuration, whereas client_monitors_config is the configuration requested by the spice client. So when filling the mode list, based on the sp

[RFC PATCH] sched/wait: Add dependency for now

2017-03-08 Thread Ingo Molnar
* Ingo Molnar wrote: > In any case, it's clear that this stuff is in no way v4.11 material, so as a > bridging fix I propose we add a sched/signal.h include to wait.h (or just > move > signal_pending() temporarily), until it's all resolved for real for v4.12. I.e. I propose the patch below a

[PATCH 0/1] refcount: restore kref_get and kref_put to non-GPL status

2017-03-08 Thread john . hubbard
From: John Hubbard Hi, Say, I'm 99% sure that this was just an oversight, so I'm sticking my neck out here and floating a patch to Put Things Back. I'm hoping that there is not some firm reason to GPL-protect the basic kref_get and kref_put routines, because when designing some recent new (open-

Re: About boot time Tux logo with -EPROBE_DEFER

2017-03-08 Thread Geert Uytterhoeven
Hi Morimoto-san, On Tue, Mar 7, 2017 at 2:24 AM, Kuninori Morimoto wrote: > I want to ask you about boot time Tux logo. > > For some reasons, current our video driver returns -EPROBE_DEFER when > probe timing, but logo init function doesn't care it. > Thus, our kernel can't have logo when boot ti

[PATCH] refcount: restore kref_get and kref_put to non-GPL status

2017-03-08 Thread john . hubbard
From: John Hubbard Originally, kref_get and kref_put were available as standard routines that even non-GPL device drivers could use. However, as an unintended side effect of the recent kref_*() upgrade[1], these calls are now effectively GPL, because they get routed to the new refcount_inc() and

Re: [PATCH] reset: sunxi: fix for 64-bit compilation

2017-03-08 Thread Andre Przywara
Hi, On 08/03/17 04:28, Chen-Yu Tsai wrote: > On Mon, Mar 6, 2017 at 9:35 AM, Andre Przywara wrote: >> The Allwinner reset controller has 32-bit registers, so translating >> the reset cell number into a register and bit offset should not use >> any architecture dependent data size. Otherwise this

Re: [PATCH v4 0/7] mmc: bcm2835: Add new driver for the sdhost controller

2017-03-08 Thread Gerd Hoffmann
On Mi, 2017-03-08 at 10:19 +0100, Gerd Hoffmann wrote: > Hi, > > Next version if the bcm2835 sdhost patch series. Oops, had some stale qxl patch files laying around which got sent with this series by mistake. Just ignore these, and sorry for the spam. cheers, Gerd

Re: [PATCH] iio: multiplexer: fix unsigned check with less than zero

2017-03-08 Thread Peter Rosin
On 2017-03-07 16:06, Colin King wrote: > From: Colin Ian King > > Comparing a size_t with less than zero is always false as size_t > is unsigned. The intent of the comparison was to check if the size > was -1 (that is, undefined), so use that instead. > > Detected by CoverityScan, CID#1415278 ("

Re: [PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-08 Thread Borislav Petkov
On Wed, Mar 08, 2017 at 05:09:55PM +0800, Baoquan He wrote: > Yes, it looks better. I can repost with this change. Thanks. No it doesn't: #define EFI_VA_START ( -4 * (_AC(1, UL) << 30)) #define EFI_VA_END (-68 * (_AC(1, UL) << 30)) That's -4G (the shift by 30) and -68G, respectively.

RE: [PATCH 10/29] drivers, md: convert stripe_head.count from atomic_t to refcount_t

2017-03-08 Thread Reshetova, Elena
> On Mon, Mar 06, 2017 at 04:20:57PM +0200, Elena Reshetova wrote: > > refcount_t type and corresponding API should be > > used instead of atomic_t when the variable is used as > > a reference counter. This allows to avoid accidental > > refcounter overflows that might lead to use-after-free > > si

Re: [PATCH V3 0/4] megachips-stdpxxxx-ge-b850v3-fw

2017-03-08 Thread Peter Senna Tschudin
On Mon, Mar 06, 2017 at 03:27:16PM +0530, Archit Taneja wrote: Hi Archit, > Hi, > > On 3/3/2017 9:27 PM, Peter Senna Tschudin wrote: > > The video processing pipeline on the second output on the GE B850v3: > > > > Host -> LVDS|--(STDP4028)--|DP -> DP|--(STDP2690)--|DP++ -> Video output > > >

Re: [GIT pull] CPU hotplug updates for 4.9

2017-03-08 Thread Thomas Gleixner
Bart, On Tue, 7 Mar 2017, Bart Van Assche wrote: > On Tue, 2017-03-07 at 10:30 +0100, Thomas Gleixner wrote: > > That's odd. There was no change related to the hotplug stuff post 4.10 > > neither in the core nor in that particular driver. > > > > I have no immediate clue what to look for aside of

Re: [PATCH] crypto: s5p-sss - Fix completing crypto request in IRQ handler

2017-03-08 Thread Herbert Xu
On Sun, Mar 05, 2017 at 07:14:07PM +0200, Krzysztof Kozlowski wrote: > In a regular interrupt handler driver was finishing the crypt/decrypt > request by calling complete on crypto request. This is disallowed since > converting to skcipher in commit b286d8b1a690 ("crypto: skcipher - Add > skcipher

Re: next build: 208 builds: 21 failed, 187 passed, 53 errors, 406 warnings (next-20170308)

2017-03-08 Thread Ingo Molnar
* Arnd Bergmann wrote: > > bmips_be_defconfig (mips) — FAIL, 1 error, 1 warning, 0 section mismatches > > > > Errors: > > arch/mips/kernel/smp-bmips.c:183:38: error: implicit declaration of function > > 'task_stack_page' [-Werror=implicit-function-declaration] > > A new regression from the end

Re: [PATCH 2/2] perf probe: Remove stale func add_perf_probe_events

2017-03-08 Thread Masami Hiramatsu
On Wed, 8 Mar 2017 12:29:08 +0530 Ravi Bangoria wrote: > I don't see any user of this function. This function was being copied > to tools/perf/builtin-probe.c by commit b02137cc6550 ("perf probe: Move > print logic into cmd_probe()"). Since then it has became stale. Hmm, I have intended to keep

Re: [PATCH 1/1] x86/cqm: Cqm requirements

2017-03-08 Thread Thomas Gleixner
Stephane, On Tue, 7 Mar 2017, Stephane Eranian wrote: > On Tue, Mar 7, 2017 at 12:04 PM, Luck, Tony wrote: > >> That's all nice and good, but I still have no coherent explanation why > >> measuring across allocation domains makes sense. > > > > Is this in reaction to this one? > > > >>> 5) P

[PATCH, RESEND] staging: octeon: remove unused variable

2017-03-08 Thread Arnd Bergmann
A cleanup patch left one local variable without a reference: drivers/staging/octeon/ethernet-rx.c:339:28: warning: unused variable 'priv' [-Wunused-variable] This removes the declaration too. Fixes: 66812da3a689 ("staging: octeon: Use net_device_stats from struct net_device") Signed-off-by: Ar

RE: [PATCH 08/29] drivers, md: convert mddev.active from atomic_t to refcount_t

2017-03-08 Thread Reshetova, Elena
> On Mon, Mar 06, 2017 at 04:20:55PM +0200, Elena Reshetova wrote: > > refcount_t type and corresponding API should be > > used instead of atomic_t when the variable is used as > > a reference counter. This allows to avoid accidental > > refcounter overflows that might lead to use-after-free > > si

[PATCH v4 0/7] arm: dts: imx6q-icore: Add LVDS display nodes

2017-03-08 Thread Jagan Teki
From: root This series adds support for lvds display, touchscreen nodes on dts for Engicam i.CoreM6 Quad boards along with selecting few touchscreen driver configs to imx_v6_v7_defconfig so-that select by default. Jagan Teki (7): arm: dts: imx6qdl-icore: Add backlight support for lvds arm: d

[PATCH 2/2] reset: simple: read back to make sure changes are applied

2017-03-08 Thread Philipp Zabel
Read back the register after setting or clearing a reset bit to make sure that the changes are applied to the reset controller hardware. Theoretically, this avoids the write to stay stuck in a store buffer during the delay of an assert-delay-deassert sequence, and makes sure that the reset really i

Re: [RFC PATCH 3/4] xfs: map KM_MAYFAIL to __GFP_RETRY_MAYFAIL

2017-03-08 Thread Michal Hocko
On Tue 07-03-17 09:05:19, Darrick J. Wong wrote: > On Tue, Mar 07, 2017 at 04:48:42PM +0100, Michal Hocko wrote: > > From: Michal Hocko > > > > KM_MAYFAIL didn't have any suitable GFP_FOO counterpart until recently > > so it relied on the default page allocator behavior for the given set > > of f

Re: [PATCH v7 06/07] iommu/ipmmu-vmsa: ARM and ARM64 archdata access

2017-03-08 Thread Geert Uytterhoeven
Hi Magnus, On Tue, Mar 7, 2017 at 4:17 AM, Magnus Damm wrote: > From: Magnus Damm > > Not all architectures have an iommu member in their archdata, so > use #ifdefs support build with COMPILE_TEST on any architecture. to support > Signed-off-by: Magnus Damm > Reviewed-by: Joerg Roedel Revie

[PATCH 1/2] reset: add reset-simple to unify socfpga, stm32, and sunxi

2017-03-08 Thread Philipp Zabel
Reset operations for simple reset controllers with reset lines that can be controlled by toggling bits in (mostly) contiguous register ranges using read-modify-write cycles under a spinlock. So far this covers the socfpga, stm32, and sunxi drivers. Signed-off-by: Philipp Zabel --- drivers/reset/

Re: [PATCH v11 2/9] mmc: cavium: Add core MMC driver for Cavium SOCs

2017-03-08 Thread Ulf Hansson
[...] >> > Voltage is limited to 3.3v and shared for all slots. >> >> What voltage? The I/O voltage or the voltage for the card? >> >> VMMC or VMMCQ? > > From my understanding both, VMMC and VMMCQ are fixed at 3.3v. Okay, then make sure to explicitly state that here. [...] >> > + if (bad_

Re: [PATCH] mm: Do not use double negation for testing page flags

2017-03-08 Thread Michal Hocko
On Wed 08-03-17 08:51:23, Vlastimil Babka wrote: > On 03/08/2017 06:25 AM, Minchan Kim wrote: [...] > > Although we can add a little description > > somewhere in page-flags.h, I believe changing to boolean is more > > clear/not-error-prone so Chen's work is enough worth, I think. > > Agree, unless

Re: [PATCH] refcount: restore kref_get and kref_put to non-GPL status

2017-03-08 Thread John Hubbard
On 03/08/2017 01:50 AM, Greg Kroah-Hartman wrote: On Wed, Mar 08, 2017 at 01:25:49AM -0800, john.hubb...@gmail.com wrote: From: John Hubbard Originally, kref_get and kref_put were available as standard routines that even non-GPL device drivers could use. As I stated in my response to the 0

Re: [PATCH] mm, vmscan: do not loop on too_many_isolated for ever

2017-03-08 Thread Michal Hocko
On Tue 07-03-17 14:52:36, Rik van Riel wrote: > On Tue, 2017-03-07 at 14:30 +0100, Michal Hocko wrote: > > From: Michal Hocko > > > > Tetsuo Handa has reported [1][2] that direct reclaimers might get > > stuck > > in too_many_isolated loop basically for ever because the last few > > pages > > on

[PATCH] livepatch: make klp_mutex proper part of API

2017-03-08 Thread Jiri Kosina
From: Jiri Kosina klp_mutex is shared between core.c and transition.c, and as such would rather be properly located in livepatch.h so that we don't have to play 'extern' games from .c sources. This also silences sparse warning (wrongly) suggesting that klp_mutex should be defined static. Sig

Re: [PATCH] mux-core: make it explicitly non-modular

2017-03-08 Thread Peter Rosin
On 2017-03-07 23:41, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mux/Kconfig:menuconfig MULTIPLEXER > drivers/mux/Kconfig:bool "Multiplexer subsystem" > > ...meaning that it currently is not being built as a module by anyone. > > Lets re

Re: [linux-sunxi] [PATCH 5/15] clk: sunxi-ng: sun5i: Export video PLLs

2017-03-08 Thread Maxime Ripard
Hi Julian, On Tue, Mar 07, 2017 at 09:21:19PM +1100, Julian Calaby wrote: > Hi Maxime, > > On Tue, Mar 7, 2017 at 7:56 PM, Maxime Ripard > wrote: > > The video PLLs are used directly by the HDMI controller. Export them so > > that we can use them in our DT node. > > > > Signed-off-by: Maxime Rip

Re: [bdi_unregister] 165a5e22fa INFO: task swapper:1 blocked for more than 120 seconds.

2017-03-08 Thread Jan Kara
On Tue 07-03-17 17:26:56, Jan Kara wrote: > On Tue 07-03-17 08:10:29, James Bottomley wrote: > > On Tue, 2017-03-07 at 15:41 +0100, Jan Kara wrote: > > > On Mon 06-03-17 09:25:42, James Bottomley wrote: > > > > On Mon, 2017-03-06 at 17:13 +0100, Jan Kara wrote: > > > > > On Mon 06-03-17 07:44:55, J

Re: [PATCH v7 04/07] iommu/ipmmu-vmsa: Break out domain allocation code

2017-03-08 Thread Geert Uytterhoeven
On Tue, Mar 7, 2017 at 4:17 AM, Magnus Damm wrote: > From: Magnus Damm > > Break out the domain allocation code into a separate function. > This is preparation for future code sharing. > > Signed-off-by: Magnus Damm > Reviewed-by: Joerg Roedel Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}

Re: [PATCH 1/4] s390: get rid of superfluous __GFP_REPEAT

2017-03-08 Thread Heiko Carstens
On Tue, Mar 07, 2017 at 04:48:40PM +0100, Michal Hocko wrote: > From: Michal Hocko > > __GFP_REPEAT has a rather weak semantic but since it has been introduced > around 2.6.12 it has been ignored for low order allocations. > > page_table_alloc then uses the flag for a single page allocation. Thi

Re: [PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-08 Thread Baoquan He
On 03/08/17 at 02:30pm, Bhupesh Sharma wrote: > Hi Dave, > > On Wed, Mar 8, 2017 at 1:48 PM, Dave Young wrote: > > On 03/08/17 at 03:47pm, Baoquan He wrote: > >> - * We allocate runtime services regions bottom-up, starting from -4G, i.e. > >> + * We allocate runtime services regions top-down, sta

[PATCH -v2] sched/wait: Add dependency for now

2017-03-08 Thread Ingo Molnar
* Ingo Molnar wrote: > I'll do more testing over the day to see how well this approach works. Not > yet > signed off by me. I'll post updated versions over the day if there's any > changes. > > This removes the time pressure to untangle the wait.h mess for v4.11. I've completed a full [alln

Re: [PATCH 0/1] refcount: restore kref_get and kref_put to non-GPL status

2017-03-08 Thread Greg Kroah-Hartman
On Wed, Mar 08, 2017 at 01:25:48AM -0800, john.hubb...@gmail.com wrote: > From: John Hubbard > > Hi, > > Say, I'm 99% sure that this was just an oversight, so > I'm sticking my neck out here and floating a patch to > Put Things Back. I'm hoping that there is not some > firm reason to GPL-protect

  1   2   3   4   5   6   7   8   9   >