[PATCH v2 00/27] Thunderbolt security levels and NVM firmware upgrade

2017-05-26 Thread Mika Westerberg
Hi all, This patch series adds support for Thunderbolt security levels, which were first introduced in Intel Falcon Ridge Thunderbolt controller, to prevent DMA attacks when PCIe is tunneled over Thunderbolt fabric. This is needed if there is no IOMMU available (or it is not enabled because of

Re: [PATCH 1/8] i2c: rename core source file to allow refactorization

2017-05-26 Thread Mika Westerberg
On Fri, May 26, 2017 at 10:20:52AM +0200, Wolfram Sang wrote: > The I2C core became quite huge and its monolithic structure makes > maintenance hard. So, prepare to break out some functionality into > seperate files by renaming the source file. Note that we keep the > resulting object name

Re: [PATCH v2 2/3] mm: kmemleak: Factor object reference updating out of scan_block()

2017-05-26 Thread Catalin Marinas
On Fri, May 26, 2017 at 05:09:17PM +0100, Luis Henriques wrote: > On Thu, May 25, 2017 at 04:42:16PM +0100, Catalin Marinas wrote: > > The scan_block() function updates the number of references (pointers) to > > objects, adding them to the gray_list when object->min_count is reached. > > The patch

Re: [PATCH v2 1/1] w1: Add subsystem kernel public interface

2017-05-26 Thread Andrew F. Davis
On 05/26/2017 11:13 AM, Evgeniy Polyakov wrote: > > > 25.05.2017, 16:50, "Andrew F. Davis" : > >>> Why do you have to create a pseudo-platform device driver to connect w1 >>> and power/supply? >>> >>> I'm not against creating w1 drivers in different places than drivers/w1, >>>

Re: [linux-sunxi] [PATCH 2/3] arm64: allwinner: h5: Add initial Orangepi Prime support

2017-05-26 Thread icenowy
在 2017-05-26 03:26,Jagan Teki 写道: From: Jagan Teki Orangepi Prime is an open-source single-board computer using the Allwinner h5 SOC. Sorry but I have already added this board and it's scheduled at 4.13. H5 Orangepi Prime has - Quad-core Cortex-A53 - 2GB DDR3 -

[PATCH 2/3] remoteproc/keystone: add a remoteproc driver for Keystone 2 DSPs

2017-05-26 Thread Suman Anna
The Texas Instrument's Keystone 2 family of SoCs has 1 or more TMS320C66x DSP Core Subsystems (C66x CorePacs). Each subsystem has a C66x Fixed/Floating-Point DSP Core, with 32KB of L1P and L1D SRAMs, that can be configured and partitioned as either RAM and/or Cache, and 1 MB of L2 SRAM. The

Re: [PATCH v2] arm: eBPF JIT compiler

2017-05-26 Thread Shubham Bansal
Hi Andrew, Did you get the time to test the code with CONFIG_FRAME_POINTER? It would be great if you could check if it works on ARMv5 so that Russell can look at the patch. Thanks. Best, Shubham Bansal On Fri, May 26, 2017 at 5:06 AM, Shubham Bansal wrote: > Just to

Re: [PATCH 5/5] MIPS: Add support for eBPF JIT.

2017-05-26 Thread kbuild test robot
Hi David, [auto build test ERROR on linus/master] [also build test ERROR on v4.12-rc2] [cannot apply to next-20170526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/David-Daney/MIPS-Implement

[PATCH v1 1/1] intel_telemetry_debugfs: fix oops found while load/unload module test

2017-05-26 Thread priyalee . kushwaha
From: Priyalee Kushwaha This fix oops found while testing load/unload test of intel_telemetry_debugfs module. Module_init uses register_pm_notifier for PM callbacks, but unregister_pm_notifier was missing from module_exit. [ 97.481860] BUG: unable to handle kernel

arm64 test_user_copy crash on copy_from_user(uptr, kptr, size)

2017-05-26 Thread Arnd Bergmann
A kselftest run on arm64 on an older 4.4.y stable kernel ran into an unexpectedly trapping user space access: [ 1277.857738] Internal error: Accessing user space memory outside uaccess.h routines: 9645 [#1] PREEMPT SMP Apparently the same thing happens on x86 as well, and it still happens on

Re: [PATCH v2 05/18] xen/pvcalls: connect to a frontend

2017-05-26 Thread Boris Ostrovsky
On 05/19/2017 07:22 PM, Stefano Stabellini wrote: > Introduce a per-frontend data structure named pvcalls_back_priv. It > contains pointers to the command ring, its event channel, a list of > active sockets and a tree of passive sockets (passing sockets need to be > looked up from the id on

Re: [PATCH v2 1/2] ARM: dts: am335x-sl50: Fix card detect pin for mmc1

2017-05-26 Thread Tony Lindgren
* Enric Balletbo i Serra [170522 02:05]: > The second version of the hardware moved the card detect pin from gpio0_6 > to gpio1_9, as we won't support the first hardware version fix the pinmux > configuration of this pin. OK so proto vs production version

Re: [PATCH] arm: dts: boneblack-wireless: add WL1835 Bluetooth device node

2017-05-26 Thread Tony Lindgren
* Ricardo Salveti [170522 07:55]: > This adds the serial slave device for the WL1835 Bluetooth interface. Applying into omap-for-v4.13/dt thanks. Tony

Re: [PATCH v5 31/32] x86: Add sysfs support for Secure Memory Encryption

2017-05-26 Thread Tom Lendacky
On 5/26/2017 12:04 AM, Xunlei Pang wrote: On 05/26/2017 at 10:49 AM, Dave Young wrote: Ccing Xunlei he is reading the patches see what need to be done for kdump. There should still be several places to handle to make kdump work. On 05/18/17 at 07:01pm, Borislav Petkov wrote: On Tue, Apr 18,

Re: [PATCH] KVM: X86: Fix preempt the preemption timer cancel

2017-05-26 Thread Paolo Bonzini
On 21/05/2017 05:32, Wanpeng Li wrote: > CPU0 CPU1 > > vmx_cancel_hv_timer > vCPU0's vmx->hv_deadline_tsc = -1 > > preempt occur > > clear preemption timer field in CPU1's > active vmcs >

Re: [PATCHv1, RFC 0/8] Boot-time switching between 4- and 5-level paging

2017-05-26 Thread Kirill A. Shutemov
On Fri, May 26, 2017 at 08:51:48AM -0700, Linus Torvalds wrote: > On Fri, May 26, 2017 at 6:00 AM, Kirill A. Shutemov > wrote: > > > > I don't see how kernel threads can use 4-level paging. It doesn't work > > from virtual memory layout POV. Kernel claims half of full

[PATCH v2 24/27] thunderbolt: Add support for Internal Connection Manager (ICM)

2017-05-26 Thread Mika Westerberg
Starting from Intel Falcon Ridge the internal connection manager running on the Thunderbolt host controller has been supporting 4 security levels. One reason for this is to prevent DMA attacks and only allow connecting devices the user trusts. The internal connection manager (ICM) is the

[PATCH v2 23/27] thunderbolt: Do not touch the hardware if the NHI is gone on resume

2017-05-26 Thread Mika Westerberg
On PCs the NHI host controller is only present when there is a device connected. When the last device is disconnected the host controller will dissappear shortly (within 10s). Now if that happens when we are suspended we should not try to touch the hardware anymore, so add a flag for this and

[PATCH v2 22/27] thunderbolt: Add support for DMA configuration based mailbox

2017-05-26 Thread Mika Westerberg
The DMA (NHI) port of a switch provides access to the NVM of the host controller (and devices starting from Intel Alpine Ridge). The NVM contains also more complete DROM for the root switch including vendor and device identification strings. This will look for the DMA port capability for each

[PATCH v2 16/27] thunderbolt: Expose make_header() to other files

2017-05-26 Thread Mika Westerberg
We will be using this function in files introduced in subsequent patches. While there the function is renamed to tb_cfg_make_header() following tb_cfg_get_route(). Signed-off-by: Mika Westerberg Reviewed-by: Yehezkel Bernat

Re: [linux-sunxi] [PATCH 2/3] arm64: allwinner: h5: Add initial Orangepi Prime support

2017-05-26 Thread Jagan Teki
On Fri, May 26, 2017 at 10:10 PM, wrote: > 在 2017-05-26 03:26,Jagan Teki 写道: >> >> From: Jagan Teki >> >> Orangepi Prime is an open-source single-board computer >> using the Allwinner h5 SOC. > > > Sorry but I have already added this board and it's >

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-26 Thread Pasha Tatashin
Hi Michal, I have considered your proposals: 1. Making memset(0) unconditional inside __init_single_page() is not going to work because it slows down SPARC, and ppc64. On SPARC even the BSTI optimization that I have proposed earlier won't work, because after consulting with other engineers I

Re: [PATCH] s390: provide default ioremap and iounmap declaration

2017-05-26 Thread Logan Gunthorpe
On 26/05/17 06:38 AM, Heiko Carstens wrote: > On Thu, May 25, 2017 at 09:43:48AM -0600, Logan Gunthorpe wrote: > I'd rather move the #ifdef CONFIG_PCI than implementing this yet another > time (see patch below). But I'll leave that up to Sebastian. I'd be more than happy with this change. Let

[PATCH] Revert "timers: Don't wake ktimersoftd on every tick"

2017-05-26 Thread Anna-Maria Gleixner
This reverts commit 032f93cae150a. The problem is that the look ahead optimization from the tick timer interrupt context can race with the softirq thread expiring timer. As a consequence the temporary hlist heads which hold the to expire timers are overwritten and the timers which are already

Re: [tip:timers/core] mmtimer: Remove the SGI SN2 mmtimer driver

2017-05-26 Thread Joe Perches
On Fri, 2017-05-26 at 03:58 -0700, tip-bot for Christoph Hellwig wrote: > Commit-ID: 07903ada96139ced48f2f893fe57a26a8fbc6043 Couple trivial comments: > mmtimer: Remove the SGI SN2 mmtimer driver [] > drivers/char/mmtimer.c| 858 > -- >

Re: [PATCH v2] arm: dma-mapping: Reset the device's dma_ops

2017-05-26 Thread Sricharan R
Hi Laurent, On 5/26/2017 7:44 PM, Laurent Pinchart wrote: > Hi Sricharan, > > Thank you for the patch. > > On Friday 26 May 2017 16:13:37 Sricharan R wrote: >> arch_teardown_dma_ops() being the inverse of arch_setup_dma_ops() >> ,dma_ops should be cleared in the teardown path. Currently, only

Re: [PATCH v2 net-next 1/3] perf, bpf: Add BPF support to all perf_event types

2017-05-26 Thread David Miller
From: Alexei Starovoitov Date: Thu, 25 May 2017 22:55:47 -0700 > + if (event->attach_state & PERF_ATTACH_TASK) > + goto err_out; The attach_state member only exists when PERF_EVENTS is enabled.

Re: [PATCH V2 1/1] nvme: fix multiple ctrl removal scheduling

2017-05-26 Thread Rakesh Pandit
Added Andy Lutomirski to CC (APST related issue) On Fri, May 26, 2017 at 06:06:14AM -0400, Keith Busch wrote: > On Wed, May 24, 2017 at 05:26:25PM +0300, Rakesh Pandit wrote: > > Commit c5f6ce97c1210 tries to address multiple resets but fails as > > work_busy doesn't involve any synchronization

Re: [PATCH v3 8/8] x86,kvm: Teach KVM's VMX code that CR3 isn't a constant

2017-05-26 Thread Paolo Bonzini
On 26/05/2017 02:47, Andy Lutomirski wrote: > When PCID is enabled, CR3's PCID bits can change during context > switches, so KVM won't be able to treat CR3 as a per-mm constant any > more. > > I structured this like the existing CR4 handling. Under ordinary > circumstances (PCID disabled or if

[PATCH] arc: Set IO-coherency aperture base to LINUX_LINK_BASE

2017-05-26 Thread Alexey Brodkin
Most of the time we indeed use the one and only LINUX_LINK_BASE set to 0x8000_. But there might be good reasons to move the kernel to another location like 0x9z etc. And we want IOC aperture to cover entire area used by the kernel, so let's make its base matching link base. Signed-off-by:

Re: [RFC PATCH tip/master] kprobes: Use synchronize_rcu_tasks() for optprobe wit CONFIG_PREEMPT

2017-05-26 Thread Paul E. McKenney
On Fri, May 26, 2017 at 08:10:25AM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > How about the following (untested) patch? > > Looks good to me! > > Acked-by: Ingo Molnar Very good, I have applied Masami's Reviewed-by and your

Re: [PATCH v5 03/20] ARM: dts: omap: Add generic compatible string for I2C EEPROM

2017-05-26 Thread Tony Lindgren
* Javier Martinez Canillas [170523 06:38]: > The at24 driver allows to register I2C EEPROM chips using different vendor > and devices, but the I2C subsystem does not take the vendor into account > when matching using the I2C table since it only has device entries. > > But

Re: [PATCHv1, RFC 0/8] Boot-time switching between 4- and 5-level paging

2017-05-26 Thread Linus Torvalds
On Fri, May 26, 2017 at 6:00 AM, Kirill A. Shutemov wrote: > > I don't see how kernel threads can use 4-level paging. It doesn't work > from virtual memory layout POV. Kernel claims half of full virtual address > space for itself -- 256 PGD entries, not one as we would

Re: [PATCH v3 8/8] x86,kvm: Teach KVM's VMX code that CR3 isn't a constant

2017-05-26 Thread Paolo Bonzini
On 26/05/2017 17:30, Paolo Bonzini wrote: > > > On 26/05/2017 02:47, Andy Lutomirski wrote: >> When PCID is enabled, CR3's PCID bits can change during context >> switches, so KVM won't be able to treat CR3 as a per-mm constant any >> more. >> >> I structured this like the existing CR4

[PATCH v2 09/27] thunderbolt: Convert switch to a device

2017-05-26 Thread Mika Westerberg
Thunderbolt domain consists of switches that are connected to each other, forming a bus. This will convert each switch into a real Linux device structure and adds them to the domain. The advantage here is that we get all the goodies from the driver core, like reference counting and sysfs hierarchy

[PATCH v2 25/27] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-26 Thread Mika Westerberg
Starting from Intel Falcon Ridge the NVM firmware can be upgraded by using DMA configuration based mailbox commands. If we detect that the host or device (device support starts from Intel Alpine Ridge) has the DMA configuration based mailbox we expose NVM information to the userspace as two

[PATCH v2 03/27] thunderbolt: Do not try to read UID if DROM offset is read as 0

2017-05-26 Thread Mika Westerberg
At least Falcon Ridge when in host mode does not have any kind of DROM available and reading DROM offset returns 0 for these. Do not try to read DROM any further in that case. Signed-off-by: Mika Westerberg Reviewed-by: Yehezkel Bernat

Re: [PATCH v2 2/3] mm: kmemleak: Factor object reference updating out of scan_block()

2017-05-26 Thread Catalin Marinas
On Fri, May 26, 2017 at 05:21:08PM +0100, Catalin Marinas wrote: > On Fri, May 26, 2017 at 05:09:17PM +0100, Luis Henriques wrote: > > On Thu, May 25, 2017 at 04:42:16PM +0100, Catalin Marinas wrote: > > > The scan_block() function updates the number of references (pointers) to > > > objects,

Re: [PATCH v5 17/32] x86/mm: Add support to access boot related data in the clear

2017-05-26 Thread Tom Lendacky
On 5/18/2017 2:50 PM, Matt Fleming wrote: On Mon, 15 May, at 08:35:17PM, Borislav Petkov wrote: On Tue, Apr 18, 2017 at 04:19:21PM -0500, Tom Lendacky wrote: + paddr = boot_params.efi_info.efi_memmap_hi; + paddr <<= 32; + paddr |=

Re: [PATCH -next] mtd: nand: Add support for Toshiba BENAND (Built-in ECC NAND)

2017-05-26 Thread Boris Brezillon
Hi KOBAYASHI, Le Fri, 26 May 2017 10:15:35 +0900, KOBAYASHI Yoshitake a écrit : > This patch enables support for Toshiba BENAND. It was originally posted on > https://lkml.org/lkml/2015/7/24/571 > > This patch is rewrote to adapt the recent mtd "separate

Re: [PATCH 1/3] mm/slub: Only define kmalloc_large_node_hook() for NUMA systems

2017-05-26 Thread Doug Anderson
Hi, On Wed, May 24, 2017 at 3:09 PM, Matthias Kaehlcke wrote: > Hi David, > > El Wed, May 24, 2017 at 01:36:21PM -0700 David Rientjes ha dit: > >> On Tue, 23 May 2017, Matthias Kaehlcke wrote: >> >> > > diff --git a/include/linux/compiler-clang.h >> > >

[PATCH v2 02/20] gcc-plugins: Detail c-common.h location for GCC 4.6

2017-05-26 Thread Kees Cook
The c-common.h file moved in stock gcc 4.7, not gcc 4.6. However, most people building plugins with gcc 4.6 are using the Debian or Ubuntu version, which includes a patch to move the headers to the 4.7 location. In case anyone trips over this with a stock gcc 4.6, add a pointer to the patch used

[PATCH v2 18/20] randstruct: Enable function pointer struct detection

2017-05-26 Thread Kees Cook
This enables the automatic structure selection logic in the randstruct GCC plugin. The selection logic randomizes all structures that contain only function pointers, unless marked with __no_randomize_layout. Signed-off-by: Kees Cook --- arch/Kconfig

Re: [PATCH v2 06/20] randstruct: Whitelist UNIXCB cast

2017-05-26 Thread Kees Cook
On Fri, May 26, 2017 at 1:17 PM, Kees Cook wrote: > This is another false positive in bad cast detection: > > net/unix/af_unix.c: In function ‘unix_skb_scm_eq’: > net/unix/af_unix.c:1621:31: note: found mismatched rhs struct pointer types: > ‘struct unix_skb_parms’ and

Re: [PATCH v2 1/3] EDAC: mv64x60: remove unused variable

2017-05-26 Thread Borislav Petkov
On Thu, May 18, 2017 at 08:31:33PM +1200, Chris Packham wrote: > Signed-off-by: Chris Packham > --- > drivers/edac/mv64x60_edac.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/edac/mv64x60_edac.c b/drivers/edac/mv64x60_edac.c > index

[PATCHv4] usb: typec: Add a sysfs node to manage port type

2017-05-26 Thread Badhri Jagan Sridharan
User space applications in some cases have the need to enforce a specific port type(DFP/UFP/DRP). This change allows userspace to attempt setting the desired port type. Low level drivers can however reject the request if the specific port type is not supported. Signed-off-by: Badhri Jagan

Re: [PATCH v2 4/5] kmod: add helpers for getting kmod limit

2017-05-26 Thread Luis R. Rodriguez
On Thu, May 25, 2017 at 05:56:51PM -0700, Dmitry Torokhov wrote: > On Thu, May 25, 2017 at 05:16:29PM -0700, Luis R. Rodriguez wrote: > > This adds helpers for getting access to the kmod limit from > > userspace. This knob should help userspace more gracefully and > > deterministically handle

Re: [PATCH v2 19/20] [RFC] task_struct: Allow randomized layout

2017-05-26 Thread Kees Cook
On Fri, May 26, 2017 at 1:23 PM, Linus Torvalds wrote: > On Fri, May 26, 2017 at 1:17 PM, Kees Cook wrote: >> This marks most of the layout of task_struct as randomizable, but leaves >> thread_info and scheduler state untouched at the start,

[PATCH 1/4] remoteproc/davinci: Switch to platform_get_resource_byname()

2017-05-26 Thread Suman Anna
The davinci remoteproc driver currently uses the platform_get_resource() API for retrieving the IOMEM resources. Switch this function to use the platform_get_resource_byname() API instead in preparation for adding the DT support so that the binding can be agnostic of the IOMEM resource order.

Re: arm64 test_user_copy crash on copy_from_user(uptr, kptr, size)

2017-05-26 Thread Arnd Bergmann
On Fri, May 26, 2017 at 5:41 PM, Kees Cook wrote: > On Fri, May 26, 2017 at 8:24 AM, Arnd Bergmann wrote: >> A kselftest run on arm64 on an older 4.4.y stable kernel ran into an >> unexpectedly trapping user space access: >> >> [ 1277.857738] Internal error:

Re: [PATCH] Revert "timers: Don't wake ktimersoftd on every tick"

2017-05-26 Thread Haris Okanovic
Oh crap. I think I see the problem. I decrement expired_count before processing the list. Dropping the lock permits another run of tick_find_expired()->find_expired_timers() in the middle of __expire_timers() since it uses expired_count==0 as a condition. This should fix it, but I'll wait for

[PATCH v3 0/4] kmod: help make deterministic

2017-05-26 Thread Luis R. Rodriguez
epends on any other patches, the series is independent. As usual the series is available on my linux-next 20170526-kmod-only branch which is based on next-20170526. [0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20170526-kmod-only Luis Luis R. Rodriguez (4):

[PATCH v3 3/4] kmod: add test driver to stress test the module loader

2017-05-26 Thread Luis R. Rodriguez
This adds a new stress test driver for kmod: the kernel module loader. The new stress test driver, test_kmod, is only enabled as a module right now. It should be possible to load this as built-in and load tests early (refer to the force_init_test module parameter), however since a lot of test can

Re: [PATCH] JFS: do not ignore return code from write_one_page()

2017-05-26 Thread Dave Kleikamp
Andrew, Do you want to pick this up into akpm-current? I could push it through the jfs tree, but without the change to write_one_page(), my version of the patch would need a manual merge. It'd be a simple one, so maybe that's not a big deal. Thanks, Shaggy On 05/26/2017 03:45 PM, Dave Kleikamp

[stable backport PATCH] usercopy: Adjust tests to deal with SMAP/PAN

2017-05-26 Thread Arnd Bergmann
From: Kees Cook Commit f5f893c57e37ca730808cb2eee3820abd05e7507 upstream. Under SMAP/PAN/etc, we cannot write directly to userspace memory, so this rearranges the test bytes to get written through copy_to_user(). Additionally drops the bad copy_from_user() test that would

Re: [PATCHv3] usb: typec: Add a sysfs node to manage port type

2017-05-26 Thread Badhri Jagan Sridharan
On Fri, May 26, 2017 at 11:00 AM, Guenter Roeck wrote: > On Fri, May 26, 2017 at 10:45:59AM -0700, Badhri Jagan Sridharan wrote: >> User space applications in some cases have the need to enforce a >> specific port type(DFP/UFP/DRP). This change allows userspace to >> attempt

[PATCH] Revert "firmware: vpd: remove platform driver"

2017-05-26 Thread Dmitry Torokhov
This reverts commit 7975bd4cca05a99aa14964cfa22366ee64da50ad, because VPD relies on driver core to handle deferrals returned by coreboot_table_find(). Signed-off-by: Dmitry Torokhov --- Greg, here is the revert we discussed. I will look into whether we could make

Re: HID: intel_ish-hid: various cleanups

2017-05-26 Thread Srinivas Pandruvada
On Thu, 2017-05-18 at 22:21 +0200, Arnd Bergmann wrote: > I ran into a warning message during randconfig testing and spent way > too much time figuring out how to best address it. One thing led to > another and I ended up with a 5 patch series. > > Unforunately I screwed up the first version of

Re: [PATCH v2 2/5] HID: intel_ish-hid: clarify locking in client code

2017-05-26 Thread Srinivas Pandruvada
On Thu, 2017-05-18 at 22:21 +0200, Arnd Bergmann wrote: > I was trying to understand this code while working on a warning > fix and the locking made no sense: spin_lock_irqsave() is pointless > when run inside of an interrupt handler or nested inside of another > spin_lock_irq() or

Re: [stable backport PATCH] usercopy: Adjust tests to deal with SMAP/PAN

2017-05-26 Thread Kees Cook
On Fri, May 26, 2017 at 1:40 PM, Arnd Bergmann wrote: > From: Kees Cook > > Commit f5f893c57e37ca730808cb2eee3820abd05e7507 upstream. > > Under SMAP/PAN/etc, we cannot write directly to userspace memory, so > this rearranges the test bytes to get written

[PATCH 0/3] cfq-iosched: Fix warnings about unused functions

2017-05-26 Thread Matthias Kaehlcke
This patch series fixes a bunch of 'unused-function' warnings raised by clang. Matthias Kaehlcke (3): cfq-iosched: Mark cfq_clear_cfqq_*() as __maybe_unused cfq-iosched: Fix warning about unused dummy functions cfq-iosched: Delete unused function min_vdisktime() block/cfq-iosched.c | 14

Talent Scout

2017-05-26 Thread Becky Miles
Dear Talented, I am Talent Scout For Sony Pictures Animation, Present Sony Pictures Animation Movies a Film Corporation Located in the United State, is Soliciting for the Right to use Your Photo/Face and Personality as One of the Semi -Major Role/ Character in our Upcoming ANIMATED Stereoscope

[PATCH net-next] net: dsa: b53: remove unused dev argument

2017-05-26 Thread Vivien Didelot
The port net device passed to b53_fdb_copy is not used. Remove it. Signed-off-by: Vivien Didelot --- drivers/net/dsa/b53/b53_common.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/dsa/b53/b53_common.c

KASAN vs. boot-time switching between 4- and 5-level paging

2017-05-26 Thread Kirill A. Shutemov
On Thu, May 25, 2017 at 11:33:33PM +0300, Kirill A. Shutemov wrote: > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 0bf81e837cbf..c795207d8a3c 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -100,7 +100,7 @@ config X86 > select HAVE_ARCH_AUDITSYSCALL > select

Re: [PATCH] PCI: Move test of INTx masking to pci_setup_device

2017-05-26 Thread Alex Williamson
On Fri, 26 May 2017 22:02:25 +0100 Piotr Gregor wrote: > The test for INTx masking via config space command performed > in pci_intx_mask_supported() should be performed before PCI device > can be used. This is to avoid reading/writing of PCI_COMMAND_INTX_DISABLE >

Re: [PATCH v3 1/4] dt-bindings: power: supply: add battery charge voltage/current

2017-05-26 Thread Liam Breck
Hi Enric, On Fri, May 26, 2017 at 4:04 AM, Enric Balletbo i Serra wrote: > Add charging voltage and current characteristics to the battery DT for > proper handling of the battery by fuel-gauge and charger chips. > > Signed-off-by: Enric Balletbo i Serra

[PATCH 2/3] cfq-iosched: Fix warning about unused dummy functions

2017-05-26 Thread Matthias Kaehlcke
Only define dummies for cfqg_stats_set_start_group_wait_time() and cfqg_stats_end_empty_time() when CONFIG_CFQ_GROUP_IOSCHED=y. This fixes the following warnings when building with clang: block/cfq-iosched.c:589:20: error: unused function 'cfqg_stats_set_start_group_wait_time'

[PATCH 3/3] cfq-iosched: Delete unused function min_vdisktime()

2017-05-26 Thread Matthias Kaehlcke
This fixes the following warning when building with clang: block/cfq-iosched.c:970:19: error: unused function 'min_vdisktime' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke --- block/cfq-iosched.c | 9 - 1 file changed, 9 deletions(-) diff

Re: [PATCH] KVM: X86: Fix preempt the preemption timer cancel

2017-05-26 Thread Wanpeng Li
2017-05-26 23:57 GMT+08:00 Paolo Bonzini : > > > On 21/05/2017 05:32, Wanpeng Li wrote: >> CPU0 CPU1 >> >> vmx_cancel_hv_timer >> vCPU0's vmx->hv_deadline_tsc = -1 >> >> preempt occur >> >> clear

Re: [PATCH net-next] net: dsa: b53: remove unused dev argument

2017-05-26 Thread Florian Fainelli
On 05/26/2017 03:07 PM, Vivien Didelot wrote: > The port net device passed to b53_fdb_copy is not used. Remove it. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

[PATCH v4] usb: typec: Add a sysfs node to manage port type

2017-05-26 Thread Badhri Jagan Sridharan
User space applications in some cases have the need to enforce a specific port type(DFP/UFP/DRP). This change allows userspace to attempt setting the desired port type. Low level drivers can however reject the request if the specific port type is not supported. Signed-off-by: Badhri Jagan

[RFC PATCH v3 3/5] ACPI: button: Add lid event type debugging messages

2017-05-26 Thread Lv Zheng
This patch adds very useful debugging information to lid events. These messages and with ec_log_drv() can be used to demonstrate the order between acpi_ec_resume() and acpi_button_resume(). Cc: Benjamin Tissoires Cc: Peter Hutterer

[PATCH] perf/annotate: Fix branch instruction with multiple operands

2017-05-26 Thread Kim Phillips
From: Ravi Bangoria Perf annotate is dropping the cr* fields from branch instructions. Fix it by adding support to display branch instructions having multiple operands. Objdump of int_sqrt: 20.36 | c04d2694: subf r10,r10,r3 |

Re: [PATCH v2 for-4.12-fixes 1/2] sched/fair: Use task_groups instead of leaf_cfs_rq_list to walk all cfs_rqs

2017-05-26 Thread Tim Chen
On 05/25/2017 07:39 AM, Tejun Heo wrote: On Wed, May 24, 2017 at 04:40:34PM -0700, Tim Chen wrote: We did some preliminary testing of this patchset for a well known database benchmark on a 4 socket Skylake server system. It provides a 3.7% throughput boost which is significant for this

[PATCH v3 2/2] remoteproc: Modify recovery path to use rproc_{start,stop}()

2017-05-26 Thread Sarangdhar Joshi
Replace rproc_shutdown() by rproc_stop() and rproc_boot() by rproc_start() in the recovery path, in order to avoid remoteproc resources re-allocation overhead and to assist with extracting the coredumps after stopping the remote processor. Signed-off-by: Sarangdhar Joshi

Re: [PATCH 2/7] RISC-V: arch/riscv Makefile and Kconfigs

2017-05-26 Thread Palmer Dabbelt
On Tue, 23 May 2017 04:46:22 PDT (-0700), Arnd Bergmann wrote: > On Tue, May 23, 2017 at 2:41 AM, Palmer Dabbelt wrote: >> --- >> arch/riscv/.gitignore| 35 >> arch/riscv/Kconfig | 300 >> +++ >>

Re: [PATCH net-next] net: dsa: remove dsa_port_is_bridged

2017-05-26 Thread Florian Fainelli
On 05/26/2017 03:12 PM, Vivien Didelot wrote: > The helper is only used once and makes the code more complicated that it > should. Remove it and reorganize the variables so that it fits on 80 > columns. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian

Re: [PATCH 3/7] RISC-V: Device Tree Documentation

2017-05-26 Thread Palmer Dabbelt
On Tue, 23 May 2017 05:03:17 PDT (-0700), Arnd Bergmann wrote: > On Tue, May 23, 2017 at 2:41 AM, Palmer Dabbelt wrote: >> --- >> .../interrupt-controller/riscv,cpu-intc.txt| 46 >> ++ >> .../bindings/interrupt-controller/riscv,plic0.txt | 44 >>

Re: [PATCH v3 1/1] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-05-26 Thread Joe Perches
On Fri, 2017-05-26 at 16:30 -0700, Richard Narron wrote: > On Fri, 26 May 2017, Joe Perches wrote: > > > On Fri, 2017-05-26 at 03:48 -0700, Richard Narron wrote: > > > The code in block/partitions/msdos.c recognizes FreeBSD, OpenBSD > > > and NetBSD partitions and does a reasonable job picking

Re: [PATCH] pci: iov: use device lock to protect IOV sysfs accesses

2017-05-26 Thread Jakub Kicinski
On Fri, 26 May 2017 18:47:26 -0500, Bjorn Helgaas wrote: > On Mon, May 22, 2017 at 03:50:23PM -0700, Jakub Kicinski wrote: > > PCI core sets the driver pointer before calling ->probe() and only > > clears it after ->remove(). This means driver's ->sriov_configure() > > callback will happily race

[PATCH] f2fs: remove false-positive bug_on

2017-05-26 Thread Jaegeuk Kim
If we got failure from both of create and evict_inode, we can hit this wrong bug_on. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index e53c784ab11e..5673b0bd83b5 100644 ---

Re: [PATCH 1/7] RISC-V: Top-Level Makefile for riscv{32,64}

2017-05-26 Thread Palmer Dabbelt
On Tue, 23 May 2017 04:30:50 PDT (-0700), Arnd Bergmann wrote: > On Tue, May 23, 2017 at 2:41 AM, Palmer Dabbelt wrote: >> RISC-V has both 32-bit and 64-bit base ISAs, but they are very similar. >> Like some other platforms, we'd like to share one arch directory between >> the

Re: [PATCH] pci: iov: use device lock to protect IOV sysfs accesses

2017-05-26 Thread Bjorn Helgaas
Hi Jakub, On Mon, May 22, 2017 at 03:50:23PM -0700, Jakub Kicinski wrote: > PCI core sets the driver pointer before calling ->probe() and only > clears it after ->remove(). This means driver's ->sriov_configure() > callback will happily race with probe() and remove(), most likely > leading to

[PATCH] dmi: Make dmi_walk and dmi_walk_early return real error codes

2017-05-26 Thread Darren Hart
From: Andy Lutomirski Currently they return -1 on error, which will confuse callers if they try to interpret it as a normal negative error code. Signed-off-by: Andy Lutomirski Cc: Jean Delvare Signed-off-by: Darren Hart (VMware)

[PATCH] drivers/watchdog/Kconfig: Update CONFIG_WATCHDOG_RTAS dependencies

2017-05-26 Thread Murilo Opsfelder Araujo
drivers/watchdog/wdrtas.c uses symbols defined in arch/powerpc/kernel/rtas.c, which are exported iff CONFIG_PPC_RTAS is selected. Building wdrtas.c without setting CONFIG_PPC_RTAS throws the following errors: ERROR: ".rtas_token" [drivers/watchdog/wdrtas.ko] undefined! ERROR:

[PATCH v3 1/2] remoteproc: Introduce rproc_{start,stop}() functions

2017-05-26 Thread Sarangdhar Joshi
In the context of recovering from crash, rproc_trigger_recovery() does rproc_shutdown() followed by rproc_boot(). The remoteproc resources are cleaned up in rproc_shutdown() and immediately reallocated in rproc_boot() which is an unnecessary overhead. Furthermore, we want the memory regions to be

[RFC PATCH v3 4/5] ACPI: button: Fix lid notification

2017-05-26 Thread Lv Zheng
In acpi_lid_notify_state(), it now contains logic to avoid frequently replayed events which originally was ensured by using blocking notifier. On the contrary, using blocking notifier is wrong as it could keep on returning NOTIFY_DONE, causing events lost. This patch thus changes lid notification

[RFC PATCH v3 5/5] ACPI: button: Always notify kernel space using _LID returning value

2017-05-26 Thread Lv Zheng
Both nouveau and i915, the only 2 kernel space lid notification listeners, invoke acpi_lid_open() API to obtain _LID returning value instead of using the notified value. So this patch moves this logic from listeners to lid driver, always notify kernel space listeners using _LID returning value.

[RFC PATCH v3 1/5] ACPI: button: Add indication of BIOS notification and faked events

2017-05-26 Thread Lv Zheng
This patch adds a parameter to acpi_lid_notify_state() so that it can act differently against BIOS notification and kernel faked events. Cc: Cc: Benjamin Tissoires Cc: Peter Hutterer Signed-off-by: Lv

[RFC PATCH v3 2/5] ACPI: button: Extends complement switch event support for all modes

2017-05-26 Thread Lv Zheng
Surface Pro 3 is a typical platform where suspend/resume loop problem can be seen. The problem is due to a systemd 229 bug: 1. "ignore": always can trigger endless suspend/resume loop 2. "open": sometimes suspend/resume loop can be stopped 3. "method": always can trigger endless susped/resume

[git pull] Input updates for v4.12-rc2

2017-05-26 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. Just a few fixups to a couple of drivers. Changelog: - KT Liao (2): Input: elan_i2c - clear INT before resetting controller

Re: [PATCH v3 1/1] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-05-26 Thread Richard Narron
On Fri, 26 May 2017, Joe Perches wrote: On Fri, 2017-05-26 at 03:48 -0700, Richard Narron wrote: The code in block/partitions/msdos.c recognizes FreeBSD, OpenBSD and NetBSD partitions and does a reasonable job picking out OpenBSD and NetBSD UFS subpartitions. But for FreeBSD the subpartitions

[PATCH] staging: iio: ad7152: Fix deadlock in ad7152_write_raw_samp_freq()

2017-05-26 Thread Alexey Khoroshilov
ad7152_write_raw_samp_freq() is called by ad7152_write_raw() with chip->state_lock held. So, there is unavoidable deadlock when ad7152_write_raw_samp_freq() locks the mutex itself. The patch removes unneeded locking. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by:

Re: [PATCH] x86/timers: Move simple_udelay_calibration past init_hypervisor_platform

2017-05-26 Thread Andy Shevchenko
+Cc Mathias On Wed, May 24, 2017 at 9:04 PM, Jan Kiszka wrote: > This ensures that adjustments to x86_platform done by the hypervisor > setup is already respected by this simple calibration. > > The current user of this, introduced by 1b5aeebf3a92 ("x86/earlyprintk: > Add

Re: [PATCH] perf/core: Remove unused function perf_cgroup_event_cgrp_time()

2017-05-26 Thread Doug Anderson
Hi, On Tue, May 23, 2017 at 2:51 PM, Matthias Kaehlcke wrote: > The function was added by commit e5d1367f17ba ("perf: Add cgroup > support") in 2011 and hasn't been used since then. Removing it fixes the > following warning when building with clang: > >

[PATCH]: perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi

2017-05-26 Thread Alexey Budankov
perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi Motivation: The issue manifests like 4x slowdown when profiling single thread STREAM benchmark on Intel Xeon Phi running RHEL7.2 (Intel MPSS distro). Perf profiling is done in

Re: [PATCH] livepatch: Make livepatch dependent on !TRIM_UNUSED_KSYMS

2017-05-26 Thread Jiri Kosina
On Fri, 26 May 2017, Miroslav Benes wrote: > If TRIM_UNUSED_KSYMS is enabled, all unneeded exported symbols are made > unexported. Two-pass build of the kernel is done to find out which > symbols are needed based on a configuration. This effectively > complicates things for out-of-tree modules. >

Re: [PATCH v3 4/4] power: tps65217_charger: add support for NTC type, voltage and current charge

2017-05-26 Thread Liam Breck
Hi Enric, On Fri, May 26, 2017 at 4:04 AM, Enric Balletbo i Serra wrote: > Allow the possibility to configure the charge and the current voltage of > the charger and also the NTC type for battery temperature measurement. > > Signed-off-by: Enric Balletbo i Serra

Re: next-20170515: WARNING: CPU: 0 PID: 1 at arch/x86/mm/dump_pagetables.c:236 note_page+0x630/0x7e0

2017-05-26 Thread Luis R. Rodriguez
On Fri, May 19, 2017 at 10:35 AM, Catalin Marinas wrote: > On Fri, May 19, 2017 at 05:40:16PM +0200, Luis R. Rodriguez wrote: >> If the following is a legit forced way to get query the kernel to ask it >> who owns a page then perhaps this technique can be used in the

Re: [PATCH v2 0/4] Add iomux-route switching support

2017-05-26 Thread Heiko Stuebner
Hi David, Am Freitag, 26. Mai 2017, 15:20:19 CEST schrieb David Wu: > The rk3228, rk3328, rk3399 have an interesting new feature, > some things like one specific uart can use multiple pins to > output data, but control of that seems to be split. The actual > pin config is identical for all pins -

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