[PATCH v4 0/9] vsprintf: Prevent silent crashes and consolidate error handling

2018-04-04 Thread Petr Mladek
Crash in vsprintf() might be silent when it happens under logbuf_lock in vprintk_emit(). This patch set prevents most of the crashes by probing the address. The check is done only by %s and some %p* specifiers that need to dereference the address. Only the first byte of the address is checked to k

[PATCH v4 7/9] vsprintf: Factor out %pO handler as kobject_string()

2018-04-04 Thread Petr Mladek
Move code from the long pointer() function. We are going to add a check for the access to the address that will make it even more complicated. Also it is better to warn about unknown specifier instead of falling back to the %p behavior. It will help people to understand what is going wrong. They e

[PATCH v4 5/9] vsprintf: Factor out %p[iI] handler as ip_addr_string()

2018-04-04 Thread Petr Mladek
Move the non-trivial code from the long pointer() function. We are going to add a check for the access to the address that will make it even more complicated. Also it is better to warn about unknown specifier instead of falling back to the %p behavior. It will help people to understand what is goi

[PATCH v2] f2fs: enlarge block plug coverage

2018-04-04 Thread Chao Yu
This patch enlarges block plug coverage in __issue_discard_cmd, in order to collect more pending bios before issuing them, to avoid being disturbed by previous discard I/O in IO aware discard mode. Signed-off-by: Chao Yu --- v2: - fix to move plug to correct place. fs/f2fs/segment.c | 6 --

PROBLEM: Using BPF_PROG_TEST_RUN with data_out != NULL is unsafe

2018-04-04 Thread Lorenz Bauer
Hello, I’ve encountered an issue when using BPF_PROG_TEST_RUN and capturing the output. The kernel copies data into user space without checking the length of the destination buffer. In bpf_test_finish(), size is the amount of data in the XDP buffer / skb after the program is run. This can be larg

[PATCH v4 9/9] vsprintf: Avoid confusion between invalid address and value

2018-04-04 Thread Petr Mladek
We are able to detect invalid values handled by %p[iI] printk specifier. The current error message is "invalid address". It might cause confusion against "(efault)" reported by the generic valid_pointer_address() check. Let's unify the style and use the more appropriate error code description "(ei

[PATCH v4 6/9] vsprintf: Factor out %pV handler as va_format()

2018-04-04 Thread Petr Mladek
Move the code from the long pointer() function. We are going to add a check for the access to the address that will make it even more complicated. This patch does not change the existing behavior. Signed-off-by: Petr Mladek --- lib/vsprintf.c | 23 ++- 1 file changed, 14 ins

[PATCH v4 3/9] vsprintf: Do not check address of well-known strings

2018-04-04 Thread Petr Mladek
We are going to check the address using probe_kernel_address(). It will be more expensive and it does not make sense for well known address. This patch splits the string() function. The variant without the check is then used on locations that handle string constants or strings defined as local var

Re: [PATCH] arm64: avoid race condition issue in dump_backtrace

2018-04-04 Thread Mark Rutland
On Fri, Mar 30, 2018 at 04:08:12PM +0800, Ji.Zhang wrote: > On Wed, 2018-03-28 at 11:12 +0100, Mark Rutland wrote: > > On Wed, Mar 28, 2018 at 05:33:32PM +0800, Ji.Zhang wrote: > > > > I'm very much not keen on this. > > > > I think that if we're going to do this, the only sane way to do it is to

Re: [PATCH v2 3/6] i2c: i2c-stm32f7: Add initial SMBus protocols support

2018-04-04 Thread Pierre Yves MORDRET
On 04/03/2018 05:31 PM, Wolfram Sang wrote: > All SMBus protocols are implemented except SMBus-specific protocols. >>> >>> What does that mean? >> >> It miss SMBus Host Notification and SMBBus Alert. They are almost ready but >> I'm >> struggling to put them back to operational state after

Re: [PATCH 0/3] mmc: add support for sdhci 4.0

2018-04-04 Thread Chunyan Zhang
Hi Ulf, Do you have some comments on this patch-set? Thanks, Chunyan On 20 March 2018 at 16:36, Chunyan Zhang wrote: > From the SD host controller version 4.0 on, SDHCI implementation either > is version 3 compatible or version 4 mode. This patch-set covers those > changes which are common for

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-04 Thread Greg Kroah-Hartman
On Wed, Apr 04, 2018 at 12:19:35AM +, Matthew Garrett wrote: > On Tue, Apr 3, 2018 at 5:18 PM Andy Lutomirski wrote: > > > if your secure boot-enabled bootloader can't prevent a bad guy from > > using malicious kernel command line parameters, then fix it. > > How is a bootloader supposed to

Re: [PATCH] mmc: sdhci-cadence: send tune request twice to work around errata

2018-04-04 Thread Masahiro Yamada
Hi. 2018-04-04 16:35 GMT+09:00 Ulf Hansson : > On 27 March 2018 at 11:29, Masahiro Yamada > wrote: >> Cadence sent out an errata report to their customers of this IP. >> This errata is not so severe, but the tune request should be sent >> twice to avoid the potential issue. >> >> Quote from the r

[PATCH v4 2/9] vsprintf: Consistent %pK handling for kptr_restrict == 0

2018-04-04 Thread Petr Mladek
restricted_pointer() pretends that it prints the address when kptr_restrict is set to zero. But it is never called in this situation. Instead, pointer() falls back to ptr_to_id() and hashes the pointer. This patch removes the potential confusion. klp_restrict is checked only in restricted_pointer(

Re: [PATCH v4 5/8] mfd: cros_ec_dev: Register cros_ec_accel_legacy driver as a subdevice.

2018-04-04 Thread Enric Balletbo Serra
Hi again, 2018-04-04 10:03 GMT+02:00 Enric Balletbo Serra : > Hi Lee, > > 2018-03-28 13:03 GMT+02:00 Lee Jones : >> On Tue, 20 Mar 2018, Enric Balletbo i Serra wrote: >> >>> With this patch, the cros_ec_ctl driver will register the legacy >>> accelerometer driver (named cros_ec_accel_legacy) if it

Re: [PATCH v2 0/5] allow override of bus format in bridges

2018-04-04 Thread Laurent Pinchart
Hi Daniel, On Wednesday, 4 April 2018 09:34:41 EEST Daniel Vetter wrote: > On Wed, Apr 4, 2018 at 12:28 AM, Laurent Pinchart wrote: > > On Wednesday, 28 March 2018 10:08:26 EEST Daniel Vetter wrote: > >> On Mon, Mar 26, 2018 at 11:24:42PM +0200, Peter Rosin wrote: > >>> Hi! > >>> > >>> [I got to

Re: [PATCH 2/2] smp: introduce kick_active_cpus_sync()

2018-04-04 Thread Mark Rutland
On Wed, Apr 04, 2018 at 06:36:25AM +0300, Yury Norov wrote: > On Tue, Apr 03, 2018 at 02:48:32PM +0100, Mark Rutland wrote: > > On Sun, Apr 01, 2018 at 02:11:08PM +0300, Yury Norov wrote: > > > @@ -840,8 +861,10 @@ el0_svc: > > > mov wsc_nr, #__NR_syscalls > > > el0_svc_naked:

Re: [RFC] drm/atomic+msm: add helper to implement legacy dirtyfb

2018-04-04 Thread Thomas Hellstrom
On 04/04/2018 10:43 AM, Daniel Vetter wrote: On Wed, Apr 04, 2018 at 10:22:21AM +0200, Thomas Hellstrom wrote: Hi, On 04/04/2018 08:58 AM, Daniel Vetter wrote: On Wed, Apr 4, 2018 at 12:42 AM, Rob Clark wrote: Add an atomic helper to implement dirtyfb support. This is needed to support DSI

Re: [PATCH 1/6] x86/intel_rdt/mba_sc: Add documentation for MBA software controller

2018-04-04 Thread Thomas Gleixner
On Tue, 3 Apr 2018, Shivappa Vikas wrote: > On Tue, 3 Apr 2018, Thomas Gleixner wrote: > > On Thu, 29 Mar 2018, Vikas Shivappa wrote: > > The L2 external bandwidth is higher than the L3 external bandwidth. > > > > Is there any information available from CPUID or whatever source which > > allows

[PATCH] net: hns3: fix length overflow when CONFIG_ARM64_64K_PAGES

2018-04-04 Thread Tan Xiaojun
When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE is 65536(64K). But the type of length is u16, it will overflow. So change it to u32. Signed-off-by: Tan Xiaojun --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Re: Build failure due commit 9217e566bdee

2018-04-04 Thread Mike Looijmans
On 04-04-18 09:22, Jarkko Nikula wrote: Hi Today's head and linux-next doesn't compile due commit 9217e566bdee ("of_net: Implement of_get_nvmem_mac_address helper"): drivers/of/of_net.o: In function `of_get_nvmem_mac_address': .../drivers/of/of_net.c:100: undefined reference to `of_nvmem_cel

Re: [PATCH] kernel/bpf/syscall: fix warning defined but not used

2018-04-04 Thread Daniel Borkmann
On 04/03/2018 02:09 PM, Anders Roxell wrote: > There will be a build warning -Wunused-function if CONFIG_CGROUP_BPF > isn't defined, since the only user is inside #ifdef CONFIG_CGROUP_BPF: > kernel/bpf/syscall.c:1229:12: warning: ‘bpf_prog_attach_check_attach_type’ > defined but not used [-Wunu

Re: [RFC] Per file OOM badness

2018-04-04 Thread Michel Dänzer
On 2018-03-26 04:36 PM, Lucas Stach wrote: > Am Dienstag, den 30.01.2018, 11:28 +0100 schrieb Michal Hocko: >> On Tue 30-01-18 10:29:10, Michel Dänzer wrote: >>> On 2018-01-24 12:50 PM, Michal Hocko wrote: On Wed 24-01-18 12:23:10, Michel Dänzer wrote: > On 2018-01-24 12:01 PM, Michal Hock

[PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-04 Thread Shunyong Yang
When multiple cpus are related in one cpufreq policy, the first online cpu will be chosen by default to handle cpufreq operations. Let's take cpu0 and cpu1 as an example. When cpu0 is offline, policy->cpu will be shifted to cpu1. Cpu1's perf capabilities should be initialized. Otherwise, perf capa

[PATCH] MIPS: vmlinuz: Fix compiler intrinsics location and build directly

2018-04-04 Thread Matt Redfearn
Since commit "MIPS: use generic GCC library routines from lib/", MIPS now uses the generic lib/ashldi3.c, but bswapsi.c still comes from arch/mips/lib. The rules for including these into vmlinuz need updating to reflect these locations. Both objects need to be built with different CFLAGS for inclus

Re: [GIT PULL] x86/build changes for v4.17

2018-04-04 Thread Peter Zijlstra
On Tue, Apr 03, 2018 at 09:58:03PM +, Nick Desaulniers wrote: > Speaking more with our internal LLVM teams, there ARE a few different > approaches to implementing asm-goto in LLVM proposed, by external parties > to Google. These proposals haven't progressed to code review, so we've > asked our

Re: [PATCH v9 04/24] mm: Prepare for FAULT_FLAG_SPECULATIVE

2018-04-04 Thread Laurent Dufour
On 03/04/2018 23:57, David Rientjes wrote: > On Wed, 28 Mar 2018, Laurent Dufour wrote: > diff --git a/include/linux/mm.h b/include/linux/mm.h index 4d02524a7998..2f3e98edc94a 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -300,6 +300,7 @@ extern pgprot_t pr

Re: WARNING in account_page_dirtied

2018-04-04 Thread Steven Whitehouse
Hi, On 03/04/18 13:05, Jan Kara wrote: Hello, On Sun 01-04-18 10:01:02, syzbot wrote: syzbot hit the following crash on upstream commit 10b84daddbec72c6b440216a69de9a9605127f7a (Sat Mar 31 17:59:00 2018 +) Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/g

Re: [PATCH 3/5] KVM: x86: hyperv: simplistic HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE} implementation

2018-04-04 Thread Vitaly Kuznetsov
Radim Krčmář writes: > 2018-04-02 18:10+0200, Vitaly Kuznetsov: >> Implement HvFlushVirtualAddress{List,Space} hypercalls in a simplistic way: >> do full TLB flush with KVM_REQ_TLB_FLUSH and rely on kvm_vcpu_kick() >> kicking only vCPUs which are currently IN_GUEST_MODE. >> >> Signed-off-by: Vit

Re: [PATCH v1] kernel/trace:check the val against the available mem

2018-04-04 Thread Zhaoyang Huang
On Wed, Apr 4, 2018 at 2:23 PM, Michal Hocko wrote: > On Wed 04-04-18 10:58:39, Zhaoyang Huang wrote: >> On Tue, Apr 3, 2018 at 9:56 PM, Michal Hocko wrote: >> > On Tue 03-04-18 09:32:45, Steven Rostedt wrote: >> >> On Tue, 3 Apr 2018 14:35:14 +0200 >> >> Michal Hocko wrote: >> > [...] >> >> > B

Re: [PATCH 1/6] x86/intel_rdt/mba_sc: Add documentation for MBA software controller

2018-04-04 Thread Thomas Gleixner
On Tue, 3 Apr 2018, Shivappa Vikas wrote: > On Tue, 3 Apr 2018, Thomas Gleixner wrote: > > The proposed new interface has no upper limit. The existing percentage > > based implementation has at least some notion of limit and scale; not > > really helpful either because of the hardware implementa

Re: [GIT PULL] x86/build changes for v4.17

2018-04-04 Thread Peter Zijlstra
On Tue, Apr 03, 2018 at 11:06:58AM -0700, Matthias Kaehlcke wrote: > Yes, Chrome OS R67 (currently dev, soon beta) will ship a kernel built > with Clang for multiple x86 Chromebooks. But there are still _known_ miscompilations > Given that it takes time for distributions to roll out new comp

Re: Signal handling in a page fault handler

2018-04-04 Thread Daniel Vetter
On Mon, Apr 02, 2018 at 07:10:58AM -0700, Matthew Wilcox wrote: > > Souptick and I have been auditing the various page fault handler routines > and we've noticed that graphics drivers assume that a signal should be > able to interrupt a page fault. In contrast, the page cache takes great > care t

Re: [RFC] Per file OOM badness

2018-04-04 Thread Lucas Stach
Am Mittwoch, den 04.04.2018, 11:09 +0200 schrieb Michel Dänzer: > On 2018-03-26 04:36 PM, Lucas Stach wrote: > > Am Dienstag, den 30.01.2018, 11:28 +0100 schrieb Michal Hocko: > > > On Tue 30-01-18 10:29:10, Michel Dänzer wrote: > > > > On 2018-01-24 12:50 PM, Michal Hocko wrote: > > > > > On Wed 2

[PATCH] f2fs: remove redundant block plug

2018-04-04 Thread Chao Yu
For buffered IO, we don't need to use block plug to cache bio, for direct IO, generic f2fs_direct_IO has already added block plug, so let's remove redundant one in .write_iter. Signed-off-by: Chao Yu --- fs/f2fs/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs

Re: [GIT PULL] x86/build changes for v4.17

2018-04-04 Thread Greg KH
On Tue, Apr 03, 2018 at 09:58:03PM +, Nick Desaulniers wrote: > Speaking more with our internal LLVM teams, there ARE a few different > approaches to implementing asm-goto in LLVM proposed, by external parties > to Google. These proposals haven't progressed to code review, so we've > asked our

Re: [PATCH 3/5] KVM: x86: hyperv: simplistic HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE} implementation

2018-04-04 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Radim Krčmář writes: > >> 2018-04-02 18:10+0200, Vitaly Kuznetsov: >>> + if (vcpu != current_vcpu) >>> + kvm_vcpu_kick(vcpu); >> >> The spec says that >> >> "This call guarantees that by the time control returns back to the >> caller, the

VTC EINZELHEITEN

2018-04-04 Thread Nelson Sandell
Ich freue mich, Sie kennen zu lernen Es hat Wochen gedauert, mich zu entscheiden, wegen seiner Natur mit Ihnen über dieses dringende Geschäft in Verbindung zu treten; Ich möchte Sie in eine Fünfzig: Fünfzig-Geschäftstransaktion in meiner Bank einbeziehen. Kehren Sie so schnell wie möglich zu mi

Re: linux-next: manual merge of the v4l-dvb tree with the asm-generic tree

2018-04-04 Thread Mauro Carvalho Chehab
Em Wed, 4 Apr 2018 09:09:00 +1000 Stephen Rothwell escreveu: > Hi all, > > On Thu, 15 Mar 2018 12:29:21 +1100 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the v4l-dvb tree got a conflict in: > > > > drivers/media/platform/blackfin/bfin_capture.c > > > > between commit: > >

Re: [RFC] Per file OOM badness

2018-04-04 Thread Michel Dänzer
On 2018-04-04 11:36 AM, Lucas Stach wrote: > Am Mittwoch, den 04.04.2018, 11:09 +0200 schrieb Michel Dänzer: >> On 2018-03-26 04:36 PM, Lucas Stach wrote: >>> Am Dienstag, den 30.01.2018, 11:28 +0100 schrieb Michal Hocko: On Tue 30-01-18 10:29:10, Michel Dänzer wrote: > On 2018-01-24 12:50

Re: [PATCH v8 15/18] mm, fs, dax: handle layout changes to pinned dax mappings

2018-04-04 Thread Jan Kara
On Fri 30-03-18 21:03:30, Dan Williams wrote: > Background: > > get_user_pages() in the filesystem pins file backed memory pages for > access by devices performing dma. However, it only pins the memory pages > not the page-to-file offset association. If a file is truncated the > pages are mapped o

[PATCH] rbd: add missing return statements

2018-04-04 Thread Arnd Bergmann
A new set of warnings appeared in next-20180403 in some configurations when gcc cannot see that rbd_assert(0) leads to an unreachable code path: drivers/block/rbd.c: In function 'rbd_img_is_write': drivers/block/rbd.c:1397:1: error: control reaches end of non-void function [-Werror=return-type] d

Re: [v3] crypto: ctr - avoid VLA use

2018-04-04 Thread Salvatore Mesoraca
2018-04-03 23:37 GMT+02:00 Laura Abbott : > On 03/30/2018 01:53 AM, Salvatore Mesoraca wrote: >> --- >> crypto/ctr.c | 15 +-- >> 1 file changed, 13 insertions(+), 2 deletions(-) >> >> diff --git a/crypto/ctr.c b/crypto/ctr.c >> index 854d924..49c469d 100644 >> --- a/crypto/ctr.c >>

[PATCH] x86/centaur: report correct CPU/cache topology

2018-04-04 Thread David Wang
This patch is used to support multi-core Centaur CPU. After using this patch, we can get correct CPU topology and correct cache topology. Signed-off-by: David Wang --- arch/x86/kernel/cpu/centaur.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/x86/kernel/cpu/cent

Decrease boot time with AHCI drives?

2018-04-04 Thread Paul Menzel
Dear Linux folks, I am trying to decrease the boot time of the Linux kernel so the LUKS passphrase dialog (in the initrd) is shown as quickly as possible. The devices I test with is a Lenovo X60 and ASRock E350M1 both running with coreboot and the GRUB payload. The goal is to do this without

Re: [PATCH v9 06/24] mm: make pte_unmap_same compatible with SPF

2018-04-04 Thread Laurent Dufour
On 03/04/2018 21:10, Jerome Glisse wrote: > On Tue, Mar 13, 2018 at 06:59:36PM +0100, Laurent Dufour wrote: >> pte_unmap_same() is making the assumption that the page table are still >> around because the mmap_sem is held. >> This is no more the case when running a speculative page fault and >> a

Re: [PATCH v3] staging: vt6655: check for memory allocation failures

2018-04-04 Thread Dan Carpenter
On Wed, Apr 04, 2018 at 04:24:10PM +0900, Ji-Hun Kim wrote: > > Since we only partially allocated the > > rd0 ring, device_free_rd0_ring() will crash when we do: > > > > dma_unmap_single(&priv->pcid->dev, rd_info->skb_dma, > > priv->rx_buf_sz, DMA_FROM_DEVI

[PATCH] dm: fix DAX dependency

2018-04-04 Thread Arnd Bergmann
Building device mapper with CONFIG_DAX=m now results in a link error: drivers/md/dm.o: In function `dm_put_table_device': dm.c:(.text+0x33c): undefined reference to `put_dax' drivers/md/dm.o: In function `cleanup_mapped_device': dm.c:(.text+0x1054): undefined reference to `kill_dax' dm.c:(.text+0x

Re: [PATCH v8 18/18] xfs, dax: introduce xfs_break_dax_layouts()

2018-04-04 Thread Jan Kara
On Fri 30-03-18 21:03:46, Dan Williams wrote: > xfs_break_dax_layouts(), similar to xfs_break_leased_layouts(), scans > for busy / pinned dax pages and waits for those pages to go idle before > any potential extent unmap operation. > > dax_layout_busy_page() handles synchronizing against new page-

Re: [RFC] drm/atomic+msm: add helper to implement legacy dirtyfb

2018-04-04 Thread Daniel Vetter
On Wed, Apr 04, 2018 at 11:10:08AM +0200, Thomas Hellstrom wrote: > On 04/04/2018 10:43 AM, Daniel Vetter wrote: > > On Wed, Apr 04, 2018 at 10:22:21AM +0200, Thomas Hellstrom wrote: > > > Hi, > > > > > > On 04/04/2018 08:58 AM, Daniel Vetter wrote: > > > > On Wed, Apr 4, 2018 at 12:42 AM, Rob Cla

[PATCH v4 6/8] drm/panel: Add Ilitek ILI9881c panel driver

2018-04-04 Thread Maxime Ripard
The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic, and is based on the Ilitek ILI9881c Controller. Add a driver for it, modelled after the other Ilitek controller drivers. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/Kconfig | 9 +- drivers/gpu/drm/p

[PATCH v4 1/8] drm/sun4i: tcon: Add TRI finish interrupt for vblank

2018-04-04 Thread Maxime Ripard
The "CPU" (or Intel 8080) interface uses a different interrupt called TRI_FINISH (most likely TRI being for trigger) to notify the end of frames, and hence the VBLANK period. And that interrupt to the possible VBLANK interrupts source. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard ---

[PATCH v4 0/8] drm/sun4i: Allwinner MIPI-DSI support

2018-04-04 Thread Maxime Ripard
Hi, Here is an preliminary version of the MIPI-DSI support for the Allwinner SoCs. This controller can be found on a number of recent SoCs, such as the A31, A33 or the A64. Given the sparse documentation, there's a number of obscure areas, but the current implementation has been tested with a 4-

[PATCH v4 3/8] drm/sun4i: Add Allwinner A31 MIPI-DSI controller support

2018-04-04 Thread Maxime Ripard
Most of the Allwinner SoCs since the A31 share the same MIPI-DSI controller. While that controller is mostly undocumented, the code is out there and has been cleaned up in order to be integrated into DRM. However, there's still some dark areas that are a bit unclear about how the block exactly ope

[PATCH v4 7/8] ARM: dts: sun8i: a33: Add the DSI-related nodes

2018-04-04 Thread Maxime Ripard
The A33 has a MIPI-DSI block, along with its D-PHY. Let's add it in order to use it in the relevant boards. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a33.dtsi | 44 +- 1 file changed, 44 insertions(+) diff --git a/arch/ar

[PATCH v4 4/8] drm/sun4i: Tie the DSI controller in the TCON

2018-04-04 Thread Maxime Ripard
The DSI controller needs a particular interface (CPU aka 8080) with some modifications from the TCON in order to run. Make sure the TCON is able to provide it when we are using the DSI output. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 77 ++

[PATCH v4 8/8] [DO NOT MERGE] arm: dts: sun8i: bpi-m2m: Add DSI display

2018-04-04 Thread Maxime Ripard
The BananaPi M2M has an optional 1280x720 DSI panel. Since that panel is optional, we can only show a DT patch that would show how to enable it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 39 +- 1 file changed, 39 insertions(+) diff --git

[PATCH v4 2/8] dt-bindings: display: Add Allwinner MIPI-DSI bindings

2018-04-04 Thread Maxime Ripard
The Allwinner SoCs usually come with a DSI encoder. Add a binding for it. Reviewed-by: Rob Herring Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt | 93 +++- 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH v4 5/8] dt-bindings: panel: Add the Ilitek ILI9881c panel documentation

2018-04-04 Thread Maxime Ripard
The LHR050H41 from BananaPi is a 1280x700 4-lanes DSI panel based on the ILI9881c from Ilitek. Acked-by: Rob Herring Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt | 20 1 file changed, 20 insertions(+) create mode 100

Re: [PATCH v3] nvmet: fix nvmet_execute_write_zeroes function

2018-04-04 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

Re: PROBLEM: Using BPF_PROG_TEST_RUN with data_out != NULL is unsafe

2018-04-04 Thread Daniel Borkmann
On 04/04/2018 11:04 AM, Lorenz Bauer wrote: > Hello, > > I’ve encountered an issue when using BPF_PROG_TEST_RUN and capturing the > output. > The kernel copies data into user space without checking the length of > the destination buffer. > > In bpf_test_finish(), size is the amount of data in th

Re: [crypto-chtls] Supicious code in chtls_io

2018-04-04 Thread Atul Gupta
On 4/4/2018 3:16 AM, Gustavo A. R. Silva wrote: > Hi all, > > While doing some static analysis I came across the following piece of code at > drivers/crypto/chelsio/chtls/chtls_io.c:1203: > > 1203 if (!size) > 1204 break; > 1205 > 1206 if

Re: [RFC] drm/atomic+msm: add helper to implement legacy dirtyfb

2018-04-04 Thread Daniel Vetter
On Tue, Apr 03, 2018 at 06:42:23PM -0400, Rob Clark wrote: > Add an atomic helper to implement dirtyfb support. This is needed to > support DSI command-mode panels with x11 userspace (ie. when we can't > rely on pageflips to trigger a flush to the panel). > > To signal to the driver that the asyn

Re: [PATCH v8 15/18] mm, fs, dax: handle layout changes to pinned dax mappings

2018-04-04 Thread Jan Kara
On Wed 04-04-18 11:46:56, Jan Kara wrote: > On Fri 30-03-18 21:03:30, Dan Williams wrote: > > Background: > > > > get_user_pages() in the filesystem pins file backed memory pages for > > access by devices performing dma. However, it only pins the memory pages > > not the page-to-file offset associ

[tip:irq/core] genirq: Make GENERIC_IRQ_MULTI_HANDLER depend on !MULTI_IRQ_HANDLER

2018-04-04 Thread tip-bot for Palmer Dabbelt
Commit-ID: d6f73825dcd0fa1de9a6bf37c79f6109cc87b82f Gitweb: https://git.kernel.org/tip/d6f73825dcd0fa1de9a6bf37c79f6109cc87b82f Author: Palmer Dabbelt AuthorDate: Tue, 3 Apr 2018 21:31:30 -0700 Committer: Thomas Gleixner CommitDate: Wed, 4 Apr 2018 12:04:28 +0200 genirq: Make GENERIC_I

Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node

2018-04-04 Thread Buddy Lumpkin
> On Apr 3, 2018, at 2:12 PM, Matthew Wilcox wrote: > > On Tue, Apr 03, 2018 at 01:49:25PM -0700, Buddy Lumpkin wrote: >>> Yes, very much this. If you have a single-threaded workload which is >>> using the entirety of memory and would like to use even more, then it >>> makes sense to use as man

[tip:irq/core] arm64: Set CONFIG_MULTI_IRQ_HANDLER

2018-04-04 Thread tip-bot for Palmer Dabbelt
Commit-ID: 667b24d049e5dd643a351757fee1a17472cd1719 Gitweb: https://git.kernel.org/tip/667b24d049e5dd643a351757fee1a17472cd1719 Author: Palmer Dabbelt AuthorDate: Tue, 3 Apr 2018 21:31:28 -0700 Committer: Thomas Gleixner CommitDate: Wed, 4 Apr 2018 12:04:28 +0200 arm64: Set CONFIG_MULT

[tip:irq/core] openrisc: Set CONFIG_MULTI_IRQ_HANDLER

2018-04-04 Thread tip-bot for Palmer Dabbelt
Commit-ID: 83fbdf1c0595470d98ee99a6474099aee870640f Gitweb: https://git.kernel.org/tip/83fbdf1c0595470d98ee99a6474099aee870640f Author: Palmer Dabbelt AuthorDate: Tue, 3 Apr 2018 21:31:29 -0700 Committer: Thomas Gleixner CommitDate: Wed, 4 Apr 2018 12:04:28 +0200 openrisc: Set CONFIG_M

Re: [GIT PULL] regulator updates for v4.17

2018-04-04 Thread Mark Brown
On Tue, Apr 03, 2018 at 12:00:24PM -0700, Linus Torvalds wrote: > On Mon, Apr 2, 2018 at 9:34 AM, Mark Brown wrote: > > A very small set of updates for the regulator API this time around, > > there's a few bug fixes and also: > Heh. This one was "very small", and the regmap update was "fairly la

Re: [PATCH v2] cifs: smb2pdu: Fix potential NULL pointer dereference

2018-04-04 Thread Aurélien Aptel
"Gustavo A. R. Silva" writes: > tcon->ses is being dereferenced before it is null checked, hence > there is a potential null pointer dereference. > > Fix this by moving the pointer dereference after tcon->ses has > been properly null checked. > > Addresses-Coverity-ID: 1467426 ("Dereference before

Re: [PATCH 0/3] mmc: add support for sdhci 4.0

2018-04-04 Thread Ulf Hansson
On 4 April 2018 at 11:05, Chunyan Zhang wrote: > Hi Ulf, > > Do you have some comments on this patch-set? No objections from my side of the series, however I am relying on Adrian's ack before I pick any of the patches. Kind regards Uffe > > Thanks, > Chunyan > > On 20 March 2018 at 16:36, Chuny

Re: [PATCH 02/15] ARM: pxa: add dma slave map

2018-04-04 Thread Arnd Bergmann
On Tue, Apr 3, 2018 at 10:19 PM, Robert Jarzmik wrote: > ... chop chop removing unneeded recipients > > Arnd Bergmann writes: > >> Ok, I looked at the driver in more detail now and found the scary parts. >> So it's using the async DMA interface to do synchronous DMA in >> interrupt context i

Re: [mm] b1f0502d04: INFO:trying_to_register_non-static_key

2018-04-04 Thread Laurent Dufour
On 04/04/2018 02:48, David Rientjes wrote: > On Wed, 28 Mar 2018, Laurent Dufour wrote: > >> On 26/03/2018 00:10, David Rientjes wrote: >>> On Wed, 21 Mar 2018, Laurent Dufour wrote: >>> I found the root cause of this lockdep warning. In mmap_region(), unmap_region() may be called

Re: [GIT pull] irq updates for 4.17

2018-04-04 Thread Thomas Gleixner
On Tue, 3 Apr 2018, Linus Torvalds wrote: > On Tue, Apr 3, 2018 at 6:51 PM, Palmer Dabbelt wrote: > > > > Thanks! The linked patch set should be fully bisectable, while this one > > will fail on some ARM randconfigs. > > If it's only some (not very realistic) randconfigs, I suspect an > incremen

Re: [PATCH 07/10] powerpc: Switch to generic local_softirq_pending() implementation

2018-04-04 Thread Michael Ellerman
Frederic Weisbecker writes: > Remove the ad-hoc implementation, the generic code now allows us not to > reinvent the wheel. > > Signed-off-by: Frederic Weisbecker > Cc: Thomas Gleixner > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Sebastian Andrzej Siewior > Cc: David S. Miller > Cc: Benjami

[PATCH] serial: xuartps: Fix the early_console junk character issue

2018-04-04 Thread Michal Simek
From: Nava kishore Manne In the early_console_setup is trying to access the unregister clock value, so we are receiving some garbage clk value because of this wrong clk value the early_console_setup is fail to set the required console baud rate. This path fix this issue. Signed-off-by: Nava kis

Re: [PATCH 2/8] PCI: dwc: designware: Add support for endpoint mode

2018-04-04 Thread Gustavo Pimentel
On 02/04/2018 06:34, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 28 March 2018 05:08 PM, Gustavo Pimentel wrote: >> The PCIe controller dual mode is capable of operating in host mode as well >> as endpoint mode by configuration, therefore this patch aims to add >> endpoint mode support to

Re: [RFC] drm/atomic+msm: add helper to implement legacy dirtyfb

2018-04-04 Thread Daniel Vetter
On Wed, Apr 04, 2018 at 12:03:00PM +0200, Daniel Vetter wrote: > On Tue, Apr 03, 2018 at 06:42:23PM -0400, Rob Clark wrote: > > Add an atomic helper to implement dirtyfb support. This is needed to > > support DSI command-mode panels with x11 userspace (ie. when we can't > > rely on pageflips to tr

[PATCH] iommu: rockchip: fix building without CONFIG_OF

2018-04-04 Thread Arnd Bergmann
We get a build error when compiling the iommu driver without CONFIG_OF: drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_of_xlate': drivers/iommu/rockchip-iommu.c:1101:2: error: implicit declaration of function 'of_dev_put'; did you mean 'of_node_put'? [-Werror=implicit-function-declaration

[PATCH] ARM: omap2: fix am43xx build without L2X0

2018-04-04 Thread Arnd Bergmann
When CONFIG_CACHE_L2X0 is disabled, the am43xx specific suspend implemnentation fails to link: arch/arm/mach-omap2/sleep43xx.o: In function `get_l2cache_base': (.text+0x180): undefined reference to `omap4_get_l2cache_base' This adds an #ifdef protection around the code, like we do for am44xx. Fi

[PATCH] phy: mapphone-mdm6600: add gpiolib dependency

2018-04-04 Thread Arnd Bergmann
Without gpiolib, the gpiod_get_array_value_cansleep() is an empty stub, so gcc notices that the resulting array is never initialized: drivers/phy/motorola/phy-mapphone-mdm6600.c: In function 'phy_mdm6600_status': drivers/phy/motorola/phy-mapphone-mdm6600.c:188:16: error: 'values[0]' is used unini

Re: [PATCH for-4.17 2/2] powerpc: Remove smp_mb() from arch_spin_is_locked()

2018-04-04 Thread Michael Ellerman
Peter Zijlstra writes: > On Wed, Mar 28, 2018 at 04:25:37PM +1100, Michael Ellerman wrote: >> That was tempting, but it leaves unfixed all the other potential >> callers, both in in-tree and out-of-tree and in code that's yet to be >> written. > > So I myself don't care one teeny tiny bit about o

Re: [RFC] drm/atomic+msm: add helper to implement legacy dirtyfb

2018-04-04 Thread Thomas Hellstrom
On 04/04/2018 11:56 AM, Daniel Vetter wrote: On Wed, Apr 04, 2018 at 11:10:08AM +0200, Thomas Hellstrom wrote: On 04/04/2018 10:43 AM, Daniel Vetter wrote: On Wed, Apr 04, 2018 at 10:22:21AM +0200, Thomas Hellstrom wrote: Hi, On 04/04/2018 08:58 AM, Daniel Vetter wrote: On Wed, Apr 4, 2018 a

Re: [mm] b1f0502d04: INFO:trying_to_register_non-static_key

2018-04-04 Thread Laurent Dufour
On 04/04/2018 03:03, David Rientjes wrote: > On Tue, 3 Apr 2018, David Rientjes wrote: > > I found the root cause of this lockdep warning. > > In mmap_region(), unmap_region() may be called while vma_link() has not > been > called. This happens during the error path if call_

Re: [PATCH for-4.17 2/2] powerpc: Remove smp_mb() from arch_spin_is_locked()

2018-04-04 Thread Michael Ellerman
Peter Zijlstra writes: > On Wed, Mar 28, 2018 at 01:04:36PM +0200, Peter Zijlstra wrote: >> On Wed, Mar 28, 2018 at 04:25:37PM +1100, Michael Ellerman wrote: >> > Documenting it would definitely be good, but even then I'd be inclined >> > to leave the barrier in our implementation. Matching the d

[PATCH] MAINTAINERS: add dri-devel&linaro-mm for Android ION

2018-04-04 Thread Daniel Vetter
Most of the other cross-driver gfx infrastructure (dma_buf, dma_fence) also gets cross posted to all the relevant gfx/memory lists. Doing the same for ION means people won't miss relevant patches. Cc: Laura Abbott Cc: Sumit Semwal Cc: de...@driverdev.osuosl.org Cc: dri-de...@lists.freedesktop.or

[GIT PULL] USB/PHY driver patches for 4.17-rc1

2018-04-04 Thread Greg KH
The following changes since commit c698ca5278934c0ae32297a8725ced2e27585d7f: Linux 4.16-rc6 (2018-03-18 17:48:42 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.17-rc1 for you to fetch changes up to 5267c5e09c25e2ee624

[GIT PULL] TTY/Serial patches for 4.17-rc1

2018-04-04 Thread Greg KH
The following changes since commit c698ca5278934c0ae32297a8725ced2e27585d7f: Linux 4.16-rc6 (2018-03-18 17:48:42 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-4.17-rc1 for you to fetch changes up to 4f794097797f551917b

[GIT PULL] Staging/IIO driver changes for 4.17-rc1

2018-04-04 Thread Greg KH
The following changes since commit 3eb2ce825ea1ad89d20f7a3b5780df850e4be274: Linux 4.16-rc7 (2018-03-25 12:44:30 -1000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-4.17-rc1 for you to fetch changes up to 049b5e2ae30

[GIT PULL] Driver core updates for 4.17-rc1

2018-04-04 Thread Greg KH
The following changes since commit 0c8efd610b58cb23cefdfa12015799079aef94ae: Linux 4.16-rc5 (2018-03-11 17:25:09 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/ tags/driver-core-4.17-rc1 for you to fetch changes up to 1fe

[GIT PULL] Char/Misc driver patches for 4.17-rc1

2018-04-04 Thread Greg KH
The following changes since commit 3eb2ce825ea1ad89d20f7a3b5780df850e4be274: Linux 4.16-rc7 (2018-03-25 12:44:30 -1000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-4.17-rc1 for you to fetch changes up to 86f690e

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-04 Thread Masahiro Yamada
Hi Arnd, 2018-04-04 17:43 GMT+09:00 Arnd Bergmann : > On Wed, Apr 4, 2018 at 10:00 AM, Felipe Balbi > wrote: >> >> Hi, >> >> Masahiro Yamada writes: > Each DWC3 instance is connected with > multiple HS PHYs and multiple SS PHYs, > depending on the number of ports. in that c

Re: [RFC] drm/atomic+msm: add helper to implement legacy dirtyfb

2018-04-04 Thread Maarten Lankhorst
Op 04-04-18 om 12:21 schreef Daniel Vetter: > On Wed, Apr 04, 2018 at 12:03:00PM +0200, Daniel Vetter wrote: >> On Tue, Apr 03, 2018 at 06:42:23PM -0400, Rob Clark wrote: >>> Add an atomic helper to implement dirtyfb support. This is needed to >>> support DSI command-mode panels with x11 userspace

Re: [alsa-devel] [PATCH] ASoC: atmel_ssc_dai: fix spelling mistake: "Stoping" -> "Stopping"

2018-04-04 Thread Dan Carpenter
On Tue, Apr 03, 2018 at 03:45:40PM +0200, Ladislav Michl wrote: > On Fri, Mar 30, 2018 at 04:44:20PM +0100, Colin King wrote: > > From: Colin Ian King > > Hello Colin, > > > Trivial fix to spelling mistake in pr_debug message text > > would you mind making this patch a bit less non-trivial and

Re: [PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-04 Thread Viresh Kumar
On 04-04-18, 17:16, Shunyong Yang wrote: > When multiple cpus are related in one cpufreq policy, the first online > cpu will be chosen by default to handle cpufreq operations. Let's take > cpu0 and cpu1 as an example. > > When cpu0 is offline, policy->cpu will be shifted to cpu1. Cpu1's perf > cap

Re: [PATCH v15 0/9] Add io{read|write}64 to io-64-atomic headers

2018-04-04 Thread Michael Ellerman
Logan Gunthorpe writes: > This is v14 of my cleanup series to push a number of instances of people > defining their own io{read|write}64 functions into common headers seing > they don't exist in non-64bit systems. This series adds inline functions to > the > io-64-nonatomic headers and then clea

Re: [PATCH v2] x86/xen/efi: Initialize UEFI secure boot state during dom0 boot

2018-04-04 Thread Daniel Kiper
On Tue, Apr 03, 2018 at 10:00:52AM -0700, James Bottomley wrote: > On Tue, 2018-04-03 at 18:07 +0200, Daniel Kiper wrote: > > On Tue, Apr 03, 2018 at 08:44:41AM -0700, James Bottomley wrote: [...] > > > This looks like a bad idea: you're duplicating the secure boot > > > check in > > > > > > driv

[PATCH] [net] nvmem: disallow modular CONFIG_NVMEM

2018-04-04 Thread Arnd Bergmann
The new of_get_nvmem_mac_address() helper function causes a link error with CONFIG_NVMEM=m: drivers/of/of_net.o: In function `of_get_nvmem_mac_address': of_net.c:(.text+0x168): undefined reference to `of_nvmem_cell_get' of_net.c:(.text+0x19c): undefined reference to `nvmem_cell_read' of_net.c:(.te

Re: [alsa-devel] [PATCH] ASoC: atmel_ssc_dai: fix spelling mistake: "Stoping" -> "Stopping"

2018-04-04 Thread Colin Ian King
On 04/04/18 11:24, Dan Carpenter wrote: > On Tue, Apr 03, 2018 at 03:45:40PM +0200, Ladislav Michl wrote: >> On Fri, Mar 30, 2018 at 04:44:20PM +0100, Colin King wrote: >>> From: Colin Ian King >> >> Hello Colin, >> >>> Trivial fix to spelling mistake in pr_debug message text >> >> would you mind

Re: [PATCH v2 1/6] spi: core: handle timeout error from transfer_one()

2018-04-04 Thread Mark Brown
On Wed, Apr 04, 2018 at 09:08:18AM +0200, Maxime Ripard wrote: > And I'm pretty sure that papering over an error returned by a driver > is not the right thing to do. We've got specific error handling for timeouts - they get accounted for separately in the stats. It *shouldn't* affect actual oper

<    1   2   3   4   5   6   7   8   9   10   >