Re: [PATCH] irqchip: uniphier-aidet: add UniPhier AIDET irqchip driver

2017-08-07 Thread Marc Zyngier
On 07/08/17 12:59, Masahiro Yamada wrote: > Hi Marc, > > Thanks for your comments. > > > 2017-08-07 19:43 GMT+09:00 Marc Zyngier : >> On 03/08/17 12:15, Masahiro Yamada wrote: >>> UniPhier SoCs contain AIDET (ARM Interrupt Detector). This is intended >>> to provide additional features that are

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Miles Chen
On Mon, 2017-08-07 at 14:18 +0100, Ard Biesheuvel wrote: > On 7 August 2017 at 14:16, Will Deacon wrote: > > On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: > >> The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") > >> moved module virtual address to > >> [module_alloc_base,

Re: Linux 4.13: Reported regressions as of Sunday, 2017-08-06

2017-08-07 Thread Pavel Machek
Hi! > Hi! Find below my second regression report for Linux 4.13. It lists 10 > regressions I'm currently aware of (albeit in one case it's not entirely > clear yet if it's a regression in 4.13). One regression got fixed since > last weeks report. You can also find the report at > http://bit.ly/lnx

Re: [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 04:11 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: On 08/07/2017 01:27 PM, Clemens Ladisch wrote: You have to implement period interrupts (and the .pointer callback) based on when the samples are actually moved from/to the backend. Do you think I can implement this i

Re: [PATCH 0/6] ARM: dts: keystone-k2g: Add support for eDMA and MMC

2017-08-07 Thread santosh.shilim...@oracle.com
On 8/1/17 11:10 AM, Santosh Shilimkar wrote: On 7/31/2017 9:41 PM, Lokesh Vutla wrote: This series adds DT nodes and documentation for eDMA and MMC IPs on Keystone 66AK2G SoC. Also enable the required configs in keystone_defconfig. This series depends on Keerthy's gpio node patches on 66AK2G

Re: [PATCH] sched/fair: Make PELT signal more accurate

2017-08-07 Thread Peter Zijlstra
On Fri, Aug 04, 2017 at 08:40:23AM -0700, Joel Fernandes wrote: > The PELT signal (sa->load_avg and sa->util_avg) are not updated if the > amount accumulated during a single update doesn't cross a period > boundary. > This is fine in cases where the amount accrued is much smaller than > the size o

Re: [PATCH v5] drm/fb-helper: pass physical dimensions to fbdev

2017-08-07 Thread David Lechner
On 08/04/2017 11:25 AM, David Lechner wrote: The fbdev subsystem has a place for physical dimensions (width and height in mm) that is readable by userspace. Since DRM also knows these dimensions, pass this information to the fbdev device. This has to be done in drm_setup_crtcs_fb() instead of dr

RE: hotplug support for arch/arc/plat-eznps platform

2017-08-07 Thread Ofer Levi(SW)
> You've failed to explain why you think hotplug should be a performance > critical path. 1. hotplug bring up of 4K cpus takes 40 minutes. Way too much for any user. 2. plat-eznps is a network processor, where bring up time is sensitive. > I'm also not seeing how it would be different from boot;

Re: [PATCH 0/3] ARM: dts: k2g: Add support for USB instances on 66AK2G

2017-08-07 Thread santosh.shilim...@oracle.com
On 8/2/17 1:17 PM, Franklin S Cooper Jr wrote: Add support for 66AK2G usb instances. However, the driver needs to be updated to support PM_RUNTIME. This update has been validated to work on K2L and boot tested on K2HK and K2E. Franklin S Cooper Jr (2): usb: dwc3: keystone: Add PM_RUNTIME Supp

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Ard Biesheuvel
On 7 August 2017 at 14:36, Miles Chen wrote: > On Mon, 2017-08-07 at 14:18 +0100, Ard Biesheuvel wrote: >> On 7 August 2017 at 14:16, Will Deacon wrote: >> > On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: >> >> The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") >> >> move

[PATCH] audit: update the function comments

2017-08-07 Thread Geliang Tang
Update the function comments to match the code. Signed-off-by: Geliang Tang --- kernel/audit.c | 2 +- kernel/auditsc.c | 18 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index 0cf15c7..be1c28f 100644 --- a/kernel/audit.c

[PATCH] netfilter: ebtables: use audit_log()

2017-08-07 Thread Geliang Tang
Use audit_log() instead of open-coding it. Signed-off-by: Geliang Tang --- net/bridge/netfilter/ebtables.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 9c6e619..54c7ef4 100644 --- a/net/b

[PATCH] staging: media: atomisp: use kvmalloc/kvzalloc

2017-08-07 Thread Geliang Tang
Use kvmalloc()/kvzalloc() instead of atomisp_kernel_malloc() /atomisp_kernel_zalloc(). Signed-off-by: Geliang Tang --- .../media/atomisp/pci/atomisp2/atomisp_cmd.c | 31 +- .../media/atomisp/pci/atomisp2/atomisp_cmd.h | 2 -- .../atomisp/pci/atomisp2/atomisp_comp

[PATCH] netfilter: xtables: use audit_log()

2017-08-07 Thread Geliang Tang
Use audit_log() instead of open-coding it. Signed-off-by: Geliang Tang --- net/netfilter/x_tables.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index e164823..c83a3b5 100644 --- a/net/netfilter/x_tables.c

Re: [PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-07 Thread Michal Hocko
On Mon 07-08-17 15:22:57, Michal Hocko wrote: > This is an user visible API so make sure you CC linux-api (added) > > On Sun 06-08-17 10:04:23, Rik van Riel wrote: > > v2: fix MAP_SHARED case and kbuild warnings > > > > Introduce MADV_WIPEONFORK semantics, which result in a VMA being > > empty in

[PATCH 1/2] can: xilinx: Fix ksoftirq CPU monopolization

2017-08-07 Thread Michal Simek
From: Matthias Auchmann When using both the RXOK and the RXNEMP interrupt, when there were more than one receive messages in the FIFO, ksoftirqd started to go crazy and monopolize one CPU. The reason being is that RXOK just fires once even if there are multiple frames sitting in the RX FIFO, so t

[PATCH 2/2] can: xilinx: fix RX FIFO overflow error handling

2017-08-07 Thread Michal Simek
From: Andrea Scian Simply resetting the peripheral on RX FIFO overflow in not enough, because we also need to re-initialize the whole device. Also always enable RX FIFO overflow interrupt otherwise we may hang until another interrupt arrives (this happens if FIFO overrun and just read from CAN bu

Re: [PATCH] gpio: uniphier: add UniPhier GPIO controller driver

2017-08-07 Thread Masahiro Yamada
Hi Linus, 2017-08-07 21:42 GMT+09:00 Linus Walleij : > On Thu, Aug 3, 2017 at 1:06 PM, Masahiro Yamada > wrote: > >> This GPIO controller device is used on UniPhier SoCs. >> >> Signed-off-by: Masahiro Yamada > (...) >> +static const u32 uniphier_gpio_irq_parent_hwirqs[] = { >> + 80, 81, 8

Re: [GIT PULL] ext4 bug fixes for 4.13

2017-08-07 Thread Theodore Ts'o
On Sun, Aug 06, 2017 at 12:39:23PM -0700, Linus Torvalds wrote: > On Sun, Aug 6, 2017 at 12:27 PM, Theodore Ts'o wrote: > > > > A large number of ext4 bug fixes and cleanups for v4.13 > > A couple of these appear to be neither cleanups nor fixes. And a lot > of them appear to be very recent. > >

Re: [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Clemens Ladisch
Oleksandr Andrushchenko wrote: > On 08/07/2017 04:11 PM, Clemens Ladisch wrote: >> How does that interface work? > > For the buffer received in .copy_user/.copy_kernel we send > a request to the backend and get response back (async) when it has copied > the bytes into HW/mixer/etc, so the buffer at

RE: [PATCH v2 00/13] mpt3sas driver NVMe support:

2017-08-07 Thread Kashyap Desai
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Saturday, August 05, 2017 8:12 PM > To: Christoph Hellwig; Hannes Reinecke > Cc: Suganath Prabu S; martin.peter...@oracle.com; linux- > s...@vger.kernel.org; sathya.prak...@broadcom.com; > ka

Re: [PATCH] rcu: Fix up pending cbs check in rcu_prepare_for_idle

2017-08-07 Thread Neeraj Upadhyay
On 08/07/2017 06:10 PM, Paul E. McKenney wrote: On Mon, Aug 07, 2017 at 11:20:10AM +0530, Neeraj Upadhyay wrote: Pending cbs check in rcu_prepare_for_idle is inversed in the sense that, it should accelerate if there are pending cbs; but, the check does the opposite. So, fix it. Fixes: 15fecf8

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Will Deacon
On Mon, Aug 07, 2017 at 02:18:00PM +0100, Ard Biesheuvel wrote: > On 7 August 2017 at 14:16, Will Deacon wrote: > > On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: > >> The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") > >> moved module virtual address to > >> [module_allo

Re: [PATCH 0/2] mm, oom: fix oom_reaper fallouts

2017-08-07 Thread Michal Hocko
On Mon 07-08-17 22:28:27, Tetsuo Handa wrote: > Michal Hocko wrote: > > Hi, > > there are two issues this patch series attempts to fix. First one is > > something that has been broken since MMF_UNSTABLE flag introduction > > and I guess we should backport it stable trees (patch 1). The other > > is

possible circular locking dependency mmap_sem/cpu_hotplug_lock.rw_sem

2017-08-07 Thread Artem Savkov
aster/testcases/kernel/syscalls/madvise/madvise06.c#L136 [21002.630252] == [21002.637148] WARNING: possible circular locking dependency detected [21002.644045] 4.13.0-rc3-next-20170807 #12 Not tainte

Re: [PATCH] rcu: Fix up pending cbs check in rcu_prepare_for_idle

2017-08-07 Thread Paul E. McKenney
On Mon, Aug 07, 2017 at 07:31:27PM +0530, Neeraj Upadhyay wrote: > > > On 08/07/2017 06:10 PM, Paul E. McKenney wrote: > >On Mon, Aug 07, 2017 at 11:20:10AM +0530, Neeraj Upadhyay wrote: > >>Pending cbs check in rcu_prepare_for_idle is inversed > >>in the sense that, it should accelerate if there

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

2017-08-07 Thread Igor Stoppa
On 07/08/17 16:31, Jerome Glisse wrote: > On Mon, Aug 07, 2017 at 02:26:21PM +0300, Igor Stoppa wrote: [...] >> I'll add a vm_area field as you advised. >> >> Is this something I could send as standalone patch? > > Note that vmalloc() is not the only thing that use vmalloc address > space. The

[PATCHv3 01/13] mm, sparsemem: Allocate mem_section at runtime for SPARSEMEM_EXTREME

2017-08-07 Thread Kirill A. Shutemov
Size of mem_section array depends on size of physical address space. In preparation for boot-time switching between paging modes on x86-64 we need to make allocation of mem_section dynamic. The patch allocates the array on the first call to sparse_memory_present_with_active_regions(). Signed-off

[PATCHv3 10/13] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-07 Thread Kirill A. Shutemov
This patch converts the of CONFIG_X86_5LEVEL check to runtime checks for p4d folding. Signed-off-by: Kirill A. Shutemov --- arch/x86/mm/fault.c| 2 +- arch/x86/mm/ident_map.c| 2 +- arch/x86/mm/init_64.c | 30 ++ arch/x86/mm/kasan_init_6

[PATCHv3 00/13] Boot-time switching between 4- and 5-level paging

2017-08-07 Thread Kirill A. Shutemov
The basic idea is to implement the same logic as pgtable-nop4d.h provides, but at runtime. Runtime folding is only implemented for CONFIG_X86_5LEVEL=y case. With the option disabled, we do compile-time folding as before.. Initially, I tried to fold pgd instread. I've got to shell, but it required

[PATCHv3 13/13] x86/mm: Offset boot-time paging mode switching cost

2017-08-07 Thread Kirill A. Shutemov
By this point we have functioning boot-time switching between 4- and 5-level paging mode. But naive approach comes with cost. Numbers below are for kernel build, allmodconfig, 5 times. CONFIG_X86_5LEVEL=n: Performance counter stats for 'sh -c make -j100 -B -k >/dev/null' (5 runs): 17308719.

[PATCHv3 02/13] x86/kasan: Use the same shadow offset for 4- and 5-level paging

2017-08-07 Thread Kirill A. Shutemov
We are going to support boot-time switching between 4- and 5-level paging. For KASAN it means we cannot have different KASAN_SHADOW_OFFSET for different paging modes: the constant is passed to gcc to generate code and cannot be changed at runtime. This patch changes KASAN code to use 0xdc0

[PATCHv3 06/13] x86/mm: Make virtual memory layout movable for CONFIG_X86_5LEVEL

2017-08-07 Thread Kirill A. Shutemov
We need to be able to adjust virtual memory layout at runtime to be able to switch between 4- and 5-level paging at boot-time. KASLR already has movable __VMALLOC_BASE, __VMEMMAP_BASE and __PAGE_OFFSET. Let's re-use it. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/kaslr.h

[PATCHv3 08/13] x86/mm: Handle boot-time paging mode switching at early boot

2017-08-07 Thread Kirill A. Shutemov
This patch adds detection of 5-level paging at boot-time and adjusts virtual memory layout and folds p4d page table layer if needed. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/kaslr.c| 13 +-- arch/x86/entry/entry_64.S | 12 +++ arch/x86/include/

[PATCHv3 05/13] x86/boot/compressed/64: Detect and handle 5-level paging at boot-time

2017-08-07 Thread Kirill A. Shutemov
This patch prepare decompression code to boot-time switching between 4- and 5-level paging. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/head_64.S | 24 1 file changed, 24 insertions(+) diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/c

[PATCHv3 07/13] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-07 Thread Kirill A. Shutemov
For boot-time switching between 4- and 5-level paging we need to be able to fold p4d page table level at runtime. It requires variable PGDIR_SHIFT and PTRS_PER_P4D. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/kaslr.c| 5 + arch/x86/include/asm/pgtable_32.h |

[PATCHv3 09/13] x86/mm: Fold p4d page table layer at runtime

2017-08-07 Thread Kirill A. Shutemov
This patch changes page table helpers to fold p4d at runtime. The logic is the same as in . Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/paravirt.h | 10 ++ arch/x86/include/asm/pgalloc.h | 5 - arch/x86/include/asm/pgtable.h | 10 +- 3 files changed, 19 inse

[PATCHv3 12/13] x86/xen: Allow XEN_PV and XEN_PVH to be enabled with X86_5LEVEL

2017-08-07 Thread Kirill A. Shutemov
With boot-time switching between paging modes, XEN_PV and XEN_PVH can be boot into 4-level paging mode. Signed-off-by: Kirill A. Shutemov Cc: Juergen Gross --- arch/x86/kernel/head_64.S | 12 ++-- arch/x86/xen/Kconfig | 5 - arch/x86/xen/mmu_pv.c | 21 +

Re: [PATCH v2 0/3] KVM: x86: generalize guest cpuid helpers

2017-08-07 Thread Paolo Bonzini
On 05/08/2017 00:12, Radim Krčmář wrote: > RFC v1: https://www.spinics.net/lists/kvm/msg153753.html > > x86_64 and i386 compiles for me, but let's see what build bots think of > it. > > Radim Krčmář (3): > KVM: x86: X86_FEATURE_NRIPS is not scattered anymore > KVM: x86: generalize guest_cpuid

[PATCHv3 11/13] x86/mm: Allow to boot without la57 if CONFIG_X86_5LEVEL=y

2017-08-07 Thread Kirill A. Shutemov
All pieces of the puzzle are in place and we can now allow to boot with CONFIG_X86_5LEVEL=y on a machine without la57 support. Kernel will detect that la57 is missing and fold p4d at runtime. Update documentation and Kconfig option description to reflect the change. Signed-off-by: Kirill A. Shut

[PATCHv3 04/13] x86/xen: Drop 5-level paging support code from XEN_PV code

2017-08-07 Thread Kirill A. Shutemov
It was decided 5-level paging is not going to be supported in XEN_PV. Let's drop the dead code from XEN_PV code. Signed-off-by: Kirill A. Shutemov Cc: Juergen Gross --- arch/x86/xen/mmu_pv.c | 159 +++--- 1 file changed, 60 insertions(+), 99 deletion

[patch v2 0/2]

2017-08-07 Thread Oleksandr Shamray
When a need raise up to use JTAG interface for system's devices programming or CPU debugging, it could be done from the external JTAG master controller. For such purpose, usually the user layer application implements jtag protocol or using a proprietary connection to vendor hardware. This method

[patch v2 1/2] drivers: jtag: Add JTAG core driver

2017-08-07 Thread Oleksandr Shamray
Initial patch for JTAG friver JTAG class driver provide infrastructure to support hardware/software JTAG platform drivers. It provide user layer API interface for flashing and debugging external devices which equipped with JTAG interface using standard transactions. Driver exposes set of IOCTL to

Re: [PATCH v2 00/13] mpt3sas driver NVMe support:

2017-08-07 Thread James Bottomley
On Mon, 2017-08-07 at 19:26 +0530, Kashyap Desai wrote: > > > > -Original Message- > > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com > > ] > > Sent: Saturday, August 05, 2017 8:12 PM > > To: Christoph Hellwig; Hannes Reinecke > > Cc: Suganath Prabu S; martin.peter...@

[patch v2 2/2] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2017-08-07 Thread Oleksandr Shamray
Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. Driver implements the following jtag ops: - freq_get; - freq_set; - status_get; - idle; - xfer; It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Jir

[PATCHv3 03/13] x86/xen: Provide pre-built page tables only for XEN_PV and XEN_PVH

2017-08-07 Thread Kirill A. Shutemov
Looks like we only need pre-built page tables for XEN_PV and XEN_PVH cases. Let's not provide them for other configurations. Signed-off-by: Kirill A. Shutemov Reviewed-by: Juergen Gross --- arch/x86/kernel/head_64.S | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a

Re: [PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-07 Thread Florian Weimer
On 08/07/2017 03:46 PM, Michal Hocko wrote: > How do they know that they need to regenerate if they do not get SEGV? > Are they going to assume that a read of zeros is a "must init again"? Isn't > that too fragile? Why would it be fragile? Some level of synchronization is needed to set things up,

[PATCH] net: dsa: mediatek: add adjust link support for user ports

2017-08-07 Thread John Crispin
Manually adjust the port settings of user ports once PHY polling has completed. This patch extends the adjust_link callback to configure the per port PMCR register, applying the proper values polled from the PHY. Without this patch flow control was not always getting setup properly. Signed-off-by:

[PATCH v5 net-next 00/12] bpf: rewrite value tracking in verifier

2017-08-07 Thread Edward Cree
This series simplifies alignment tracking, generalises bounds tracking and fixes some bounds-tracking bugs in the BPF verifier. Pointer arithmetic on packet pointers, stack pointers, map value pointers and context pointers has been unified, and bounds on these pointers are only checked when the

RE: [PATCH] Input: elantech - support new touchpad IC and extend elan's touchapd command Origianl ic-body field is not sufficient for upcoming IC, Elan ps/2 driver extend the fomation to support futur

2017-08-07 Thread 廖崇榮
Hi Ulrik, Thanks your review, I add comment in below. -Original Message- From: ulrik.debie...@e2big.org [mailto:ulrik.debie...@e2big.org] Sent: Friday, August 04, 2017 4:52 AM To: KT Liao Cc: linux-kernel@vger.kernel.org; linux-in...@vger.kernel.org; dmitry.torok...@gmail.com; phoe...@emc

Re: [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-07 Thread Nayna
On 08/07/2017 05:22 PM, Peter Huewe wrote: Am 7. August 2017 13:46:32 MESZ schrieb Nayna Jain : The TPM burstcount status indicates the number of bytes that can be sent to the TPM without causing bus wait states. Effectively, it is the number of empty bytes in the command FIFO. Further, som

[PATCH v5 net-next 02/12] bpf/verifier: track signed and unsigned min/max values

2017-08-07 Thread Edward Cree
Allows us to, sometimes, combine information from a signed check of one bound and an unsigned check of the other. We now track the full range of possible values, rather than restricting ourselves to [0, 1<<30) and considering anything beyond that as unknown. While this is probably not necessary

[PATCH v5 net-next 01/12] bpf/verifier: rework value tracking

2017-08-07 Thread Edward Cree
Unifies adjusted and unadjusted register value types (e.g. FRAME_POINTER is now just a PTR_TO_STACK with zero offset). Tracks value alignment by means of tracking known & unknown bits. This also replaces the 'reg->imm' (leading zero bits) calculations for (what were) UNKNOWN_VALUEs. If pointer

[PATCH v5 net-next 03/12] bpf/verifier: more concise register state logs for constant var_off

2017-08-07 Thread Edward Cree
Signed-off-by: Edward Cree --- kernel/bpf/verifier.c | 46 +++--- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 7557800..08a6fa0 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifi

[PATCH v5 net-next 04/12] selftests/bpf: change test_verifier expectations

2017-08-07 Thread Edward Cree
Some of the verifier's error messages have changed, and some constructs that previously couldn't be verified are now accepted. Signed-off-by: Edward Cree --- tools/testing/selftests/bpf/test_verifier.c | 332 +--- 1 file changed, 152 insertions(+), 180 deletions(-) diff

[PATCH v5 net-next 05/12] selftests/bpf: rewrite test_align

2017-08-07 Thread Edward Cree
Expectations have changed, as has the format of the logged state. To make the tests easier to read, add a line-matching framework so that each match need only quote the register it cares about. (Multiple matches may refer to the same line, but matches must be listed in order of increasing line.

[PATCH v5 net-next 06/12] selftests/bpf: add a test to test_align

2017-08-07 Thread Edward Cree
New test adds 14 to the unknown value before adding to the packet pointer, meaning there's no 'fixed offset' field and instead we add into the var_off, yielding a '4n+2' value. Signed-off-by: Edward Cree --- tools/testing/selftests/bpf/test_align.c | 67 1 file

[PATCH v5 net-next 07/12] selftests/bpf: add test for bogus operations on pointers

2017-08-07 Thread Edward Cree
Tests non-add/sub operations (AND, LSH) on pointers decaying them to unknown scalars. Also tests that a pkt_ptr add which could potentially overflow is rejected (find_good_pkt_pointers ignores it and doesn't give us any reg->range). Signed-off-by: Edward Cree --- tools/testing/selftests/bpf/te

[PATCH v5 net-next 08/12] selftests/bpf: don't try to access past MAX_PACKET_OFF in test_verifier

2017-08-07 Thread Edward Cree
A number of selftests fell foul of the changed MAX_PACKET_OFF handling. For instance, "direct packet access: test2" was potentially reading four bytes from pkt + 0x, which could take it past the verifier's limit, causing the program to be rejected (checks against pkt_end didn't give us any r

[PATCH v5 net-next 09/12] selftests/bpf: add tests for subtraction & negative numbers

2017-08-07 Thread Edward Cree
Signed-off-by: Edward Cree --- tools/testing/selftests/bpf/test_align.c | 104 +++ 1 file changed, 104 insertions(+) diff --git a/tools/testing/selftests/bpf/test_align.c b/tools/testing/selftests/bpf/test_align.c index b081683..8591c89 100644 --- a/tools/testing/sel

[PATCH v5 net-next 10/12] selftests/bpf: variable offset negative tests

2017-08-07 Thread Edward Cree
Variable ctx accesses and stack accesses aren't allowed, because we can't determine what type of value will be read. Signed-off-by: Edward Cree --- tools/testing/selftests/bpf/test_verifier.c | 41 + 1 file changed, 41 insertions(+) diff --git a/tools/testing/selfte

[PATCH v5 net-next 11/12] Documentation: describe the new eBPF verifier value tracking behaviour

2017-08-07 Thread Edward Cree
Also bring the eBPF documentation up to date in other ways. Signed-off-by: Edward Cree --- Documentation/networking/filter.txt | 122 ++-- 1 file changed, 104 insertions(+), 18 deletions(-) diff --git a/Documentation/networking/filter.txt b/Documentation/network

Re: [PATCH v06 12/36] x86 uapi asm/signal.h: use __kernel_size_t instead of size_t

2017-08-07 Thread Arnd Bergmann
On Sun, Aug 6, 2017 at 6:44 PM, Mikko Rapeli wrote: > Fixes userspace compilation error: > > error: unknown type name ‘size_t’ > > Signed-off-by: Mikko Rapeli > Cc: Al Viro > Cc: Arnd Bergmann > Cc: H. Peter Anvin > --- > arch/x86/include/uapi/asm/signal.h | 2 +- > 1 file changed, 1 insertio

[PATCH v5 net-next 12/12] bpf/verifier: increase complexity limit to 128k

2017-08-07 Thread Edward Cree
The more detailed value tracking can reduce the effectiveness of pruning for some programs. So, to avoid rejecting previously valid programs, up the limit to 128kinsns. Hopefully we will be able to bring this back down later by improving pruning performance. Signed-off-by: Edward Cree --- k

Re: [PATCH 2/2] perf: add arm64 smmuv3 pmu driver

2017-08-07 Thread Robin Murphy
On 04/08/17 20:59, Neil Leeder wrote: > Adds a new driver to support the SMMU v3 PMU and add it into the > perf events framework. > > Each SMMU node may have multiple PMUs associated with it, each of > which may support different events. > > PMUs are named smmu_0_ where > is the physical page ad

RE: [PATCH v2 00/13] mpt3sas driver NVMe support:

2017-08-07 Thread Kashyap Desai
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Monday, August 07, 2017 7:48 PM > To: Kashyap Desai; Christoph Hellwig; Hannes Reinecke > Cc: Suganath Prabu Subramani; martin.peter...@oracle.com; linux- > s...@vger.kernel.org; Sathya Praka

[PATCH 0/5] arm64: defconfig: enable configs for HiKey960

2017-08-07 Thread Guodong Xu
This patchset enables config items in arm64/defconfig for HiKey960. All of them correspond to real functions on HiKey960. Including: - Kirin PCIe - PMIC support, hi6421v530 - syscon reboot mode - serdev bus - OP-TEE HiKey960 is one of 96boards. For details information about it, please refer

[PATCH 1/5] arm64: defconfig: enable Kirin PCIe

2017-08-07 Thread Guodong Xu
From: Xiaowei Song Enable HiSilicon Kirin series SoCs PCIe controllers Signed-off-by: Guodong Xu Signed-off-by: Xiaowei Song --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b4ca115..4e14c6d

[PATCH 4/5] arm64: defconfig: enable support for serial port connected device

2017-08-07 Thread Guodong Xu
This patch enables these configs: +CONFIG_SERIAL_DEV_BUS=y +CONFIG_SERIAL_DEV_CTRL_TTYPORT=y As example, a bluetooth device connected to UART port can be supported by this. Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm

[PATCH 2/5] arm64: defconfig: enable support hi6421v530 PMIC

2017-08-07 Thread Guodong Xu
Enable configs for hi6421v530 mfd and regulator driver + CONFIG_MFD_HI6421_PMIC=y + CONFIG_REGULATOR_HI6421V530=y Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 4

[PATCH 3/5] arm64: defconfig: enable CONFIG_SYSCON_REBOOT_MODE

2017-08-07 Thread Guodong Xu
Enable CONFIG_SYSCON_REBOOT_MODE Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index d752beb..f7081056 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/d

[PATCH 5/5] arm64: defconfig: enable OP-TEE

2017-08-07 Thread Guodong Xu
From: Victor Chong This patch enables configs for Trusted Execution Environment (TEE) and OP-TEE. +CONFIG_TEE=y +CONFIG_OPTEE=y Signed-off-by: Victor Chong Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defc

Re: [RFC][PATCH] mm/slub.c: Allow poisoning to use the fast path

2017-08-07 Thread Christopher Lameter
On Fri, 4 Aug 2017, Laura Abbott wrote: > All slub debug features currently disable the fast path completely. > Some features such as consistency checks require this to allow taking of > locks. Poisoning and red zoning don't require this and can safely use > the per-cpu fast path. Introduce a Kcon

[PATCH] x86/asm: Fix UNWIND_HINT_REGS macro for older binutils

2017-08-07 Thread Josh Poimboeuf
Apparently the binutils 2.20 assembler can't handle the '&&' operator in the UNWIND_HINT_REGS macro. Rearrange the macro to do without it. This fixes the following error: arch/x86/entry/entry_64.S: Assembler messages: arch/x86/entry/entry_64.S:521: Error: non-constant expression in ".if" st

Re: [PATCH v5 2/6] drm/bridge: Add a devm_ allocator for panel bridge.

2017-08-07 Thread Noralf Trønnes
Den 07.08.2017 12.22, skrev Laurent Pinchart: Hi Daniel, On Monday 07 Aug 2017 11:25:07 Daniel Vetter wrote: On Sat, Aug 05, 2017 at 12:59:07PM +0200, Noralf Trønnes wrote: Den 05.08.2017 00.19, skrev Ilia Mirkin: On Fri, Aug 4, 2017 at 4:43 PM, Eric Anholt wrote: Laurent Pinchart writes:

Re: [PATCH 10/18] staging: typec: fusb302: Add support for fcs,vbus-regulator-name device-property

2017-08-07 Thread Hans de Goede
Hi Mark, On 07-08-17 13:10, Mark Brown wrote: On Sun, Aug 06, 2017 at 05:44:36PM +0200, Hans de Goede wrote: On 06-08-17 16:30, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: On ACPI platforms, there are no phandles and we need to get the vbus by a system wide unique name

[PATCH] sunvdc: Delete an error message for a failed memory allocation in vdc_port_probe()

2017-08-07 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 7 Aug 2017 16:28:54 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signe

Re: [PATCH] media: i2c: OV5647: gate clock lane before stream on

2017-08-07 Thread Luis Oliveira
Hi all, I'm new here, I got to be Maintainer of this driver by the old Maintainer recommendation. Still getting the hang of it :) On 07-Aug-17 13:26, Philipp Zabel wrote: > Hi Jacob, > > On Mon, 2017-08-07 at 19:06 +0800, Jacob Chen wrote: > [...] > --- a/drivers/media/i2c/ov5647.c > +++

Re: [PATCH v2 1/7] ACPI / blacklist: add acpi_match_oemlist() interface

2017-08-07 Thread Kani, Toshimitsu
On Sat, 2017-08-05 at 07:12 +0200, Borislav Petkov wrote: > On Fri, Aug 04, 2017 at 08:39:35PM +, Kani, Toshimitsu wrote: > > Well, we did talk a lot about your suggested name, > > "acpi_blacklist", and I explained that it did not work since it'd > > be used for both black and white-list.  We'v

Re: [PATCH v2 3/7] ACPI / APEI: add OSC APEI bit check for ghes_edac

2017-08-07 Thread Kani, Toshimitsu
On Sat, 2017-08-05 at 07:14 +0200, Borislav Petkov wrote: > On Fri, Aug 04, 2017 at 08:49:51PM +, Kani, Toshimitsu wrote: > > Some firmware features can be enabled / disabled in BIOS.  While > > HPE firmware does not allow to disable FF, it's possible that other > > vendors might allow such and

[PATCH] clk: hi3660: fix incorrect uart3 clock freqency

2017-08-07 Thread Guodong Xu
From: Zhong Kaihua UART3 clock rate is doubled in previous commit. This error is not detected until recently a mezzanine board which makes real use of uart3 port (through LS connector of 96boards) was setup and tested on hi3660-hikey960 board. This patch changes clock source rate of clk_factor_

Re: [PATCH 0/2] mm, oom: do not grant oom victims full memory reserves access

2017-08-07 Thread Michal Hocko
On Thu 27-07-17 11:03:55, Michal Hocko wrote: > Hi, > this is a part of a larger series I posted back in Oct last year [1]. I > have dropped patch 3 because it was incorrect and patch 4 is not > applicable without it. > > The primary reason to apply patch 1 is to remove a risk of the complete > me

Re: [PATCH v2 5/7] ghes_edac: add platform check to enable ghes_edac

2017-08-07 Thread Kani, Toshimitsu
On Sat, 2017-08-05 at 07:37 +0200, Borislav Petkov wrote: > On Fri, Aug 04, 2017 at 09:06:27PM +, Kani, Toshimitsu wrote: > > How about "ghes_edac.any_platform"? > > ghes_edac.force_load Sounds good. Will do. Thanks, -Toshi

Re: [PATCH v2 6/7] EDAC: add edac_check_mc_owner() to check MC owner

2017-08-07 Thread Kani, Toshimitsu
On Sat, 2017-08-05 at 07:44 +0200, Borislav Petkov wrote: > On Fri, Aug 04, 2017 at 09:35:05PM +, Kani, Toshimitsu wrote: > > 1 means the caller's init function can continue its initialization > > -- > > such conditions are free or owned by itself. > > Make that: > > edac_get_owner(void

pull-request: wireless-drivers-next 2017-08-07

2017-08-07 Thread Kalle Valo
Hi Dave, here's the first pull request to net-next for 4.14, more info in the signed tag below. This time there's a simple conflict in iwlwifi but you can fix it just like Stephen did: https://lkml.kernel.org/r/20170804120408.0d147...@canb.auug.org.au Please let me know if you have any problems.

Re: [v3 PATCH 1/2] powernv/powerpc:Save/Restore additional SPRs for stop4 cpuidle

2017-08-07 Thread Gautham R Shenoy
On Mon, Aug 07, 2017 at 06:26:44PM +1000, Michael Ellerman wrote: > Gautham R Shenoy writes: > > On Tue, Aug 01, 2017 at 08:56:18PM +1000, Michael Ellerman wrote: > >> "Gautham R. Shenoy" writes: > >> > > >> > Subject: [v3 PATCH 1/2] powernv/powerpc:Save/Restore additional SPRs for > >> > stop4

Re: [PATCH v2 7/7] edac drivers: add MC owner check in init

2017-08-07 Thread Kani, Toshimitsu
On Sat, 2017-08-05 at 07:49 +0200, Borislav Petkov wrote: > On Fri, Aug 04, 2017 at 09:48:23PM +, Kani, Toshimitsu wrote: > > Not sure if anyone cares, but I thought it should return with > > -ENODEV when this modules found no target, and -EBUSY when it found > > a target but it's busy.  Hence,

Re: [PATCH v5 2/6] drm/bridge: Add a devm_ allocator for panel bridge.

2017-08-07 Thread Daniel Vetter
On Mon, Aug 07, 2017 at 01:22:23PM +0300, Laurent Pinchart wrote: > Hi Daniel, > > On Monday 07 Aug 2017 11:25:07 Daniel Vetter wrote: > > On Sat, Aug 05, 2017 at 12:59:07PM +0200, Noralf Trønnes wrote: > > > Den 05.08.2017 00.19, skrev Ilia Mirkin: > > >> On Fri, Aug 4, 2017 at 4:43 PM, Eric Anho

Re: [PATCH] [RFC] tpm_tis: tpm_tcg_flush() after iowrite*()s

2017-08-07 Thread Julia Cartwright
On Fri, Aug 04, 2017 at 04:56:51PM -0500, Haris Okanovic wrote: > I have a latency issue using a SPI-based TPM chip with tpm_tis driver > from non-rt usermode application, which induces ~400 us latency spikes > in cyclictest (Intel Atom E3940 system, PREEMPT_RT_FULL kernel). > > The spikes are caus

Re: [PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-07 Thread Rik van Riel
On Mon, 2017-08-07 at 15:46 +0200, Michal Hocko wrote: > On Mon 07-08-17 15:22:57, Michal Hocko wrote: > > This is an user visible API so make sure you CC linux-api (added) > > > > On Sun 06-08-17 10:04:23, Rik van Riel wrote: > > > > > > A further complication is the proliferation of clone flags

Re: [PATCH v06 19/36] uapi linux/omapfb.h: use __kernel_size_t instead of size_t

2017-08-07 Thread Arnd Bergmann
On Sun, Aug 6, 2017 at 6:44 PM, Mikko Rapeli wrote: > Fixes userspace compilation error: > > error: unknown type name ‘size_t’ > > Signed-off-by: Mikko Rapeli > Cc: linux-o...@vger.kernel.org > Cc: Tomi Valkeinen > Cc: Aaro Koskinen Acked-by: Arnd Bergmann

Re: [PATCH v06 36/36] uapi linux/kfd_ioctl.h: use __u32 and __u64 instead of uint32_t and uint64_t

2017-08-07 Thread Arnd Bergmann
On Sun, Aug 6, 2017 at 6:44 PM, Mikko Rapeli wrote: > Include instead of which on Linux includes > and on non-Linux platforms defines __u32 etc types. > > Fixes user space compilation errors like: > > linux/kfd_ioctl.h:33:2: error: unknown type name ‘uint32_t’ > uint32_t major_version; /* fro

Re: [PATCH v5] drm/fb-helper: pass physical dimensions to fbdev

2017-08-07 Thread Daniel Vetter
On Mon, Aug 07, 2017 at 08:40:35AM -0500, David Lechner wrote: > On 08/04/2017 11:25 AM, David Lechner wrote: > > The fbdev subsystem has a place for physical dimensions (width and height > > in mm) that is readable by userspace. Since DRM also knows these > > dimensions, pass this information to t

Re: [PATCH] video: fbdev: Convert to using %pOF instead of full_name

2017-08-07 Thread Bartlomiej Zolnierkiewicz
On Tuesday, August 01, 2017 12:24:53 PM Rob Herring wrote: > On Tue, Aug 1, 2017 at 8:47 AM, Bartlomiej Zolnierkiewicz > wrote: > > On Tuesday, July 18, 2017 04:43:36 PM Rob Herring wrote: > >> Now that we have a custom printf format specifier, convert users of > >> full_name to use %pOF instead.

Re: [PATCH] workqueue: fix path to documentation

2017-08-07 Thread Tejun Heo
On Sun, Aug 06, 2017 at 07:33:22PM -0700, Benjamin Peterson wrote: > Signed-off-by: Benjamin Peterson Applied to wq/for-4.14. Thanks. -- tejun

Re: [PATCH v06 23/36] uapi linux/coda.h: use __kernel_pid_t and add u_short etc definitions for userspace

2017-08-07 Thread Arnd Bergmann
On Sun, Aug 6, 2017 at 6:44 PM, Mikko Rapeli wrote: > Fixes userspace compilation errors about unknown pid_t, u_short etc types. > > Signed-off-by: Mikko Rapeli > Cc: Jan Harkes > Cc: codal...@coda.cs.cmu.edu > --- > include/uapi/linux/coda.h | 11 +-- > 1 file changed, 9 insertions(+),

Re: [PATCH] ata: make ata_port_operations const

2017-08-07 Thread Tejun Heo
Hello, On Mon, Aug 07, 2017 at 04:02:02PM +0530, Bhumika Goyal wrote: > Make ata_port_operations structures const as it is only stored in the > inherits field of an ata_port_operations structure. Therefore make it > const. > > Signed-off-by: Bhumika Goyal How did you test the patch? Thanks. -

Re: [PATCH v2 01/14] perf report: remove code to handle inline frames from browsers

2017-08-07 Thread Arnaldo Carvalho de Melo
Em Sun, Aug 06, 2017 at 11:24:33PM +0200, Milian Wolff escreveu: > The follow-up commits will make inline frames first-class citizens > in the callchain, thereby obsoleting all of this special code. So you are removing the feature to then reintroduce it, is that it? That is not usual :-\ Normally

Re: [PATCH] ASoC: compress: Remove duplicated code

2017-08-07 Thread Mark Brown
On Mon, Aug 07, 2017 at 09:18:09PM +0800, Donglin Peng wrote: > The value of the variable new_name is assigned repeatedly. > @@ -737,9 +737,6 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime > *rtd, int num) > } > > /* check client and interface hw capabilities */ > -

Re: [PATCH v2 02/14] perf util: take elf_name as const string in dso__demangle_sym

2017-08-07 Thread Arnaldo Carvalho de Melo
Em Sun, Aug 06, 2017 at 11:24:34PM +0200, Milian Wolff escreveu: > The input string is not modified and thus can be passed > in as a pointer to const data. Applied. - Arnaldo > Cc: Arnaldo Carvalho de Melo > Cc: David Ahern > Cc: Namhyung Kim > Cc: Peter Zijlstra > Cc: Yao Jin > Signed-off

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