[PATCH 1/2] KVM: nVMX: update last_nonleaf_level when initializing nested EPT

2017-10-12 Thread Paolo Bonzini
From: Ladi Prosek The function updates context->root_level but didn't call update_last_nonleaf_level so the previous and potentially wrong value was used for page walks. For example, a zero value of last_nonleaf_level would allow a potential out-of-bounds access in arch/x86/mmu/paging_tmpl.h's w

Re: [PATCHv2 0/7] Add support for USB OTG on STM32F7

2017-10-12 Thread Alexandre Torgue
On 10/12/2017 01:53 PM, Felipe Balbi wrote: Hi, Felipe Balbi writes: I thought that patches 1 and 2, as they are "driver" patches, had to be applied on USB tree (so Felipe's one), and the others (3 to 7) had to be applied on STM32-DT tree (Alex's one). Did I miss something? patch 1 is doc

Re: [PATCH] powerpc/powernv: Add kernel cmdline parameter to disable imc

2017-10-12 Thread Michael Ellerman
Anju T Sudhakar writes: > Hi mpe, stewart, > > > On Wednesday 11 October 2017 01:55 AM, Stewart Smith wrote: >> Michael Ellerman writes: >>> Anju T Sudhakar writes: >>> Add a kernel command line parameter option to disable In-Memory Collection (IMC) counters and add documentation. Thi

Re: [PATCH v3 2/2] ARM: dts: tegra20: Add video decoder node

2017-10-12 Thread Dmitry Osipenko
Hello Vladimir, On 12.10.2017 10:43, Vladimir Zapolskiy wrote: > Hello Dmitry, > > On 10/11/2017 11:08 PM, Dmitry Osipenko wrote: >> Add a device node for the video decoder engine found on Tegra20. >> >> Signed-off-by: Dmitry Osipenko >> --- >> arch/arm/boot/dts/tegra20.dtsi | 17 ++

Re: [PATCH 1/3] printk: Fix kdb_trap_printk placement

2017-10-12 Thread Greg Kroah-Hartman
On Thu, Oct 12, 2017 at 01:52:29PM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 12, 2017 at 01:34:39PM +0200, Peter Zijlstra wrote: > > On Thu, Oct 12, 2017 at 12:03:04PM +0200, Petr Mladek wrote: > > > On Thu 2017-10-12 11:45:37, Petr Mladek wrote: > > > > Hi, > > > > > > > > I thought about th

Re: [PATCH] perf stat: Support metrics with perf stat --per-thread

2017-10-12 Thread Jin, Yao
I wonder if patch below would be enough for this jirka Hi Jiri, I think below patch and next patch (in your another mail) is OK, thanks! Do I need to upgrade my patch to v2 according to your modifications? Or you will post your patches? Both OK for me. :) Thanks Jin Yao --- diff --git

Re: [PATCH 4.9 000/105] 4.9.55-stable review

2017-10-12 Thread Greg Kroah-Hartman
On Thu, Oct 12, 2017 at 01:54:26PM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 12, 2017 at 12:39:52PM +0200, Greg Kroah-Hartman wrote: > > On Wed, Oct 11, 2017 at 04:54:51PM -0600, Shuah Khan wrote: > > > On 10/11/2017 06:56 AM, Greg Kroah-Hartman wrote: > > > > On Tue, Oct 10, 2017 at 06:58:40P

[PATCH] stm class: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://patchwork.kernel.org/patch/649/ and https://lkml.org/lkml/2017/10/11/375 Make config_item_type structures const as they are either passed to a function having the argument as const or used inside a if statement or stored in the const "ci_type" field of a

[PATCH v2 0/3] virt: Add vboxguest driver for Virtual Box Guest integration

2017-10-12 Thread Hans de Goede
Hi All, Here is v2 of my cleaned up version of the VirtualBox vboxguest driver. Changes in v2: -Change all uapi headers to kernel coding style: Drop struct and enum typedefs make type and struct-member names all lowercase, enum values all uppercase. -Remove unused struct type declarations from s

[PATCH v2 1/3] virt: Add vboxguest driver for Virtual Box Guest integration UAPI

2017-10-12 Thread Hans de Goede
This commit adds the headers describing the ioctl API for the /dev/vboxguest device used by the Virtual Box Guest Additions in Virtual Box virtual machines. The driver providing the /dev/vboxguest device will allow Virtual Box Guest Additions features such as copy-and-paste, seamless mode and Open

[PATCH v2 2/3] virt: Add vboxguest VMMDEV communication code

2017-10-12 Thread Hans de Goede
This commits adds a header describing the hardware interface for the Virtual Box Guest PCI device used in Virtual Box virtual machines and utility functions for talking to the Virtual Box hypervisor over this interface. These utility functions will used both by the vboxguest driver for the PCI dev

[PATCH v2 3/3] virt: Add vboxguest driver for Virtual Box Guest integration

2017-10-12 Thread Hans de Goede
This commit adds a driver for the Virtual Box Guest PCI device used in Virtual Box virtual machines. Enabling this driver will add support for Virtual Box Guest integration features such as copy-and-paste, seamless mode and OpenGL pass-through. This driver also offers vboxguest IPC functionality w

Re: [PATCH 2/8] mm, truncate: Do not check mapping for every page being truncated

2017-10-12 Thread Jan Kara
On Thu 12-10-17 10:30:57, Mel Gorman wrote: > During truncation, the mapping has already been checked for shmem and dax > so it's known that workingset_update_node is required. This patch avoids > the checks on mapping for each page being truncated. In all other cases, > a lookup helper is used to

Re: [PATCH V2 0/1] Optimise IOVA allocations for PCI devices

2017-10-12 Thread Joerg Roedel
On Thu, Oct 12, 2017 at 12:14:08PM +0100, Robin Murphy wrote: > Yup, I've had Tomasz' patch included in my iommu/iova branch for a > while, and the "Misc. IOVA tweaks" patches were actually written on top > of it. > > This should be the final piece of the puzzle for several arm64 server > platform

[PATCH] IB/cma: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and https://patchwork.kernel.org/patch/649/ Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure.

[PATCH v3 1/5] kernel/locking: Use struct qrwlock instead of struct __qrwlock

2017-10-12 Thread Will Deacon
There's no good reason to keep the internal structure of struct qrwlock hidden from qrwlock.h, particularly as it's actually needed for unlock and ends up being abstracted independently behind the __qrwlock_write_byte function. Stop pretending we can hide this stuff, and move the __qrwlock definit

[PATCH v3 3/5] kernel/locking: Use atomic_cond_read_acquire when spinning in qrwlock

2017-10-12 Thread Will Deacon
The qrwlock slowpaths involve spinning when either a prospective reader is waiting for a concurrent writer to drain, or a prospective writer is waiting for concurrent readers to drain. In both of these situations, atomic_cond_read_acquire can be used to avoid busy-waiting and make use of any backof

[PATCH v3 2/5] locking/atomic: Add atomic_cond_read_acquire

2017-10-12 Thread Will Deacon
smp_cond_load_acquire provides a way to spin on a variable with acquire semantics until some conditional expression involing the variable is satisfied. Architectures such as arm64 can potentially enter a low-power state, waking up only when the value of the variable changes, which reduces the syste

[PATCH v3 4/5] arm64: locking: Move rwlock implementation over to qrwlocks

2017-10-12 Thread Will Deacon
Now that the qrwlock can make use of WFE, remove our homebrew rwlock code in favour of the generic queued implementation. Tested-by: Waiman Long Tested-by: Jeremy Linton Tested-by: Adam Wallis Tested-by: Jan Glauber Signed-off-by: Will Deacon --- arch/arm64/Kconfig | 17

[PATCH v3 5/5] kernel/locking: Prevent slowpath writers getting held up by fastpath

2017-10-12 Thread Will Deacon
When a prospective writer takes the qrwlock locking slowpath due to the lock being held, it attempts to cmpxchg the wmode field from 0 to _QW_WAITING so that concurrent lockers also take the slowpath and queue on the spinlock accordingly, allowing the lockers to drain. Unfortunately, this isn't fa

[PATCH v3 0/5] Switch arm64 over to qrwlock

2017-10-12 Thread Will Deacon
Hello, This is version three of the patches previously posted here: v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-October/534666.html v2: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-October/534981.html Changes since v2 include: * Drop unused cnt argument *

Re: [PATCH] selftests/exec: include cwd in long path calculation

2017-10-12 Thread David Drysdale
Modulo the minor comment below: Reviewed-by: David Drysdale On Thu, Oct 12, 2017 at 1:40 AM, Steve Muckle wrote: > When creating a pathname close to PATH_MAX to test execveat, factor in > the current working directory path otherwise we end up with an absolute > path that is longer than PATH_MAX

Re: [PATCH] rtc: jz4740: remove duplicate 'write' in message

2017-10-12 Thread Alexandre Belloni
On 10/09/2017 at 21:39:57 +0200, Mathieu Malaterre wrote: > Trivial fix in error message with duplicate 'write' > > Signed-off-by: Mathieu Malaterre > --- > drivers/rtc/rtc-jz4740.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied, thanks. -- Alexandre Belloni, Free Electrons

[PATCH] netconsole: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and https://patchwork.kernel.org/patch/649/ Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure.

[PATCH v6 0/7] Add support for the ARMv8.2 Statistical Profiling Extension

2017-10-12 Thread Will Deacon
Hi all, This is the 8th posting of the patches previously posted here: rfcv1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/476450.html rfcv2: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/479387.html v1: http://lists.infradead.org/pipermail/l

[PATCH v6 4/7] arm64: sysreg: Move SPE registers and PSB into common header files

2017-10-12 Thread Will Deacon
SPE is part of the v8.2 architecture, so move its system register and field definitions into sysreg.h and the new PSB barrier into barrier.h Finally, move KVM over to using the generic definitions so that it doesn't have to open-code its own versions. Acked-by: Marc Zyngier Acked-by: Mark Rutlan

[PATCH v6 3/7] perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples

2017-10-12 Thread Will Deacon
The ARM SPE architecture permits an implementation to ignore a sample if the sample is due to be taken whilst another sample is already being produced. In this case, it is desirable to report the collision to userspace, as they may want to lower the sample period. This patch adds a PERF_AUX_FLAG_C

[PATCH v6 2/7] perf/core: Export AUX buffer helpers to modules

2017-10-12 Thread Will Deacon
Perf PMU drivers using AUX buffers cannot be built as modules unless the AUX helpers are exported. This patch exports perf_aux_output_{begin,end,skip} and perf_get_aux to modules. Cc: Peter Zijlstra Signed-off-by: Will Deacon --- kernel/events/ring_buffer.c | 4 1 file changed, 4 insertio

[PATCH v6 1/7] genirq: export irq_get_percpu_devid_partition to modules

2017-10-12 Thread Will Deacon
Any modular driver using cluster-affine PPIs needs to be able to call irq_get_percpu_devid_partition so that it can enable the IRQ on the correct subset of CPUs. This patch exports the symbol so that it can be called from within a module. Acked-by: Marc Zyngier Acked-by: Thomas Gleixner Signed-

[PATCH v6 7/7] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-10-12 Thread Will Deacon
The ARMv8.2 architecture introduces the optional Statistical Profiling Extension (SPE). SPE can be used to profile a population of operations in the CPU pipeline after instruction decode. These are either architected instructions (i.e. a dynamic instruction trace) or CPU-specific uops and the choi

[PATCH v6 5/7] arm64: head: Init PMSCR_EL2.{PA,PCT} when entered at EL2 without VHE

2017-10-12 Thread Will Deacon
When booting at EL2, ensure that we permit the EL1 host to sample physical addresses and physical counter values using SPE. Acked-by: Mark Rutland Signed-off-by: Will Deacon --- arch/arm64/kernel/head.S | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/

[PATCH v6 6/7] dt-bindings: Document devicetree binding for ARM SPE

2017-10-12 Thread Will Deacon
This patch documents the devicetree binding in use for ARM SPE. Cc: Rob Herring Acked-by: Mark Rutland Signed-off-by: Will Deacon --- Documentation/devicetree/bindings/arm/spe-pmu.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindi

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-10-12 Thread Wei Hu (Xavier)
On 2017/10/1 0:10, Leon Romanovsky wrote: On Sat, Sep 30, 2017 at 05:28:59PM +0800, Wei Hu (Xavier) wrote: If the IOMMU is enabled, the length of sg obtained from __iommu_map_sg_attrs is not 4kB. When the IOVA is set with the sg dma address, the IOVA will not be page continuous. and the VA ret

Re: [PATCH] rtc: jz4740: fix loading of rtc driver

2017-10-12 Thread Alexandre Belloni
On 18/09/2017 at 21:10:13 +0200, Mathieu Malaterre wrote: > The current timeout for waiting for WRDY is not always sufficient. Always > increase it to 1 even on JZ4740. This is technically only required on > JZ4780, where the current symptoms seen after a hard reboot are: > > jz4740-rtc 1000

Re: [PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-12 Thread Geert Uytterhoeven
Hi Russell, Nicolas, On Thu, Oct 12, 2017 at 12:23 PM, Russell King - ARM Linux wrote: > On Tue, Oct 10, 2017 at 01:33:25PM -0700, Tony Lindgren wrote: >> * Geert Uytterhoeven [171003 11:32]: >> > On Tue, Oct 3, 2017 at 8:15 PM, Geert Uytterhoeven >> > wrote: >> > > On Tue, Oct 3, 2017 at 8:11

[PATCH] staging/ccree: Declare compiled out functions static inline

2017-10-12 Thread Rishabh Hardas
Sparse was giving out a warning for symbols 'cc_set_ree_fips_status' and 'fips_handler' that they were not declared and need to be made static. This patch makes both the symbols static inline, to remove the warnings. Signed-off-by: Rishabh Hardas --- drivers/staging/ccree/ssi_fips.h | 4 ++-- 1

[PATCH] nvmet: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://patchwork.kernel.org/patch/649/ and https://lkml.org/lkml/2017/10/11/375 Make config_item_type structures const as they are either passed to a function having the argument as const or used inside an if statement or stored in the const "ci_type" field of a

Re: [PATCH] iommu: enable bypass transaction caching for ARM SMMU 500

2017-10-12 Thread Robin Murphy
On 11/10/17 23:08, Feng Kan wrote: > The ARM SMMU identity mapping performance was poor compared with the > DMA mode. It was found that enable caching would restore the performance > back to normal. The S2CRB_TLBEN bit in the ACR register would allow for > caching of the stream to context register

[PATCH v3 0/2] pinctrl: meson: prepare for new SoC

2017-10-12 Thread Jerome Brunet
The goal of this patchset is to prepare meson pinctrl driver to add a new meson SoC support. This new SoC will share the same pinconf/gpio registers but the pinmux part will be slightly different. First patch allows to compile and ship only the necessary pinctrl drivers, depending on the architect

[PATCH v3 2/2] pinctrl: meson: rework pinmux ops

2017-10-12 Thread Jerome Brunet
This change prepare the introduction of new meson SoC. This new SoC will share the same gpio/pinconf registers but the pinmux part will be different. While the format of the data associated with each pinmux group will change, the way to handle pinmuxing will be similar. To deal with this new situa

[PATCH v3 1/2] pinctrl: meson: separate soc drivers

2017-10-12 Thread Jerome Brunet
When meson pinctrl is enabled, all meson platforms pinctrl drivers are built in the kernel, with a significant amount of data. This leads to situation where pinctrl drivers targeting an architecture are also compiled and shipped on another one (ex: meson8 - ARM - compiled and shipped on ARM64 buil

Re: [PATCH 2/8] mm, truncate: Do not check mapping for every page being truncated

2017-10-12 Thread Mel Gorman
On Thu, Oct 12, 2017 at 02:15:27PM +0200, Jan Kara wrote: > > diff --git a/mm/workingset.c b/mm/workingset.c > > index 7119cd745ace..a80d52387734 100644 > > --- a/mm/workingset.c > > +++ b/mm/workingset.c > > @@ -341,12 +341,6 @@ static struct list_lru shadow_nodes; > > > > void workingset_updat

[GIT PULL] HID fixes

2017-10-12 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive = - fix for potential out-of-bounds memory access (found by fuzzing, likely requires specially crafted device to trigger) by Jaejoong Kim - two new device IDs for elecom driver from

[GIT PULL] livepatching fix

2017-10-12 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching.git for-linus to receive = - bugfix for handling of coming modules (incorrect handling of failure) from Joe Lawrence = Thanks.

Re: [PATCH 3/7] PCI: Distribute available buses to hotplug capable PCIe downstream ports

2017-10-12 Thread Mika Westerberg
On Wed, Oct 11, 2017 at 06:32:43PM -0500, Bjorn Helgaas wrote: > On Tue, Sep 26, 2017 at 05:17:16PM +0300, Mika Westerberg wrote: > > System BIOS sometimes allocates extra bus space for hotplug capable PCIe > > root/downstream ports. This space is needed if the device plugged to the > > port will h

Re: PROBLEM: Kernel BUG in mfgpt_tick (cs5535-clockevt.c) on ALIX 2c3 - null call

2017-10-12 Thread Daniel Lezcano
On 11/10/2017 22:48, David Kozub wrote: [ ... ] >> >> +   disable_timer(timer); >> +   cs5535_mfgpt_write(timer, MFGPT_REG_COUNTER, 0); >> + >>    /* Set up the IRQ on the MFGPT side */ >>    if (cs5535_mfgpt_setup_irq(timer, MFGPT_CMP2, &timer_irq)) { >>    printk(KER

RE: [PATCH 02/10] perf tool: fix: Don't discard prev in backward mode

2017-10-12 Thread Liang, Kan
> > From 8b058ea6977a97e5705aa2f64bdd014fd76d1247 Mon Sep 17 > 00:00:00 > > 2001 > > From: Kan Liang > > Date: Wed, 11 Oct 2017 07:39:34 -0700 > > Subject: [PATCH] perf tool: fix: Don't discard prev in backward mode > > > > Perf record can switch output. The new output should only store the > > d

[PATCH] PCI: endpoint: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://patchwork.kernel.org/patch/649/ and https://lkml.org/lkml/2017/10/11/375 Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done us

RE: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Liang, Kan
> > On 2017/10/11 21:16, Liang, Kan wrote: > >> perf record's --overwrite option doesn't work as we expect. > >> For example: > > [SNIP] > > >> > >> In the above example we get same records from the backward ring > >> buffer all the time. Overwriting is not triggered. > >> > >> This commit maps

[PATCH] usb: gadget: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://patchwork.kernel.org/patch/649/ and https://lkml.org/lkml/2017/10/11/375 Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done us

Re: [PATCH 1/2] drm: vblank: use ktime_t instead of timeval

2017-10-12 Thread Sean Paul
On Wed, Oct 11, 2017 at 04:28:39PM -0400, Sean Paul wrote: > On Wed, Oct 11, 2017 at 4:18 PM, Keith Packard wrote: > > Sean Paul writes: > > > >> It looks like perhaps Keith missed one of the comment tweaks that you have > >> below. > >> > >> Keith, perhaps you can rebase your widening patch on t

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

2017-10-12 Thread KOBAYASHI Yoshitake
On 2017/10/05 16:31, Boris Brezillon wrote: > On Thu, 5 Oct 2017 16:24:08 +0900 > KOBAYASHI Yoshitake wrote: >> @@ -39,9 +105,43 @@ static void toshiba_nand_decode_id(struct nand_chip >> *chip) >> >> static int toshiba_nand_init(struct nand_chip *chip) >> { >> +

Re: [PATCH] perf stat: Support metrics with perf stat --per-thread

2017-10-12 Thread Jiri Olsa
On Thu, Oct 12, 2017 at 08:13:02PM +0800, Jin, Yao wrote: > > > > I wonder if patch below would be enough for this > > > > jirka > > > > > > Hi Jiri, > > I think below patch and next patch (in your another mail) is OK, thanks! > > Do I need to upgrade my patch to v2 according to your modific

[PATCH] KVM:X86 simply update A/D bits route

2017-10-12 Thread Peng Hao
update_accessed_dirty_bits return 0 when dirty/accessed bits are not supported. So walk_addr_generic just call update_accessed_dirty_bits with supporting dirty/accessed bits. Signed-off-by: Peng Hao --- arch/x86/kvm/paging_tmpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] perf stat: Support metrics with perf stat --per-thread

2017-10-12 Thread Jin, Yao
On 10/12/2017 9:06 PM, Jiri Olsa wrote: On Thu, Oct 12, 2017 at 08:13:02PM +0800, Jin, Yao wrote: I wonder if patch below would be enough for this jirka Hi Jiri, I think below patch and next patch (in your another mail) is OK, thanks! Do I need to upgrade my patch to v2 according to yo

Re: [PATCH] lib/xz: Add fall-through comments to a switch statement

2017-10-12 Thread Jiri Kosina
On Wed, 3 May 2017, Lasse Collin wrote: > From: Lasse Collin > > It's good style. I was also told that GCC 7 is more strict and might > give a warning when such comments are missing. The gcc story sounds rather curious ... anyway, applied. Thanks, -- Jiri Kosina SUSE Labs

Re: [PATCH v3 4/5] tpm: reduce tpm_msleep() time in get_burstcount()

2017-10-12 Thread Nayna Jain
On 10/12/2017 04:48 PM, Jarkko Sakkinen wrote: On Wed, Oct 04, 2017 at 06:29:23AM -0400, Nayna Jain wrote: Currently, get_burstcount() function sleeps for 5msec in a loop before retrying for next query to burstcount. However, if it takes lesser time for TPM to return, this 5msec delay is longe

Re: [PATCH v3 0/5] Switch arm64 over to qrwlock

2017-10-12 Thread Adam Wallis
On 10/12/2017 8:20 AM, Will Deacon wrote: > Hello, > > This is version three of the patches previously posted here: > > v1: > http://lists.infradead.org/pipermail/linux-arm-kernel/2017-October/534666.html > v2: > http://lists.infradead.org/pipermail/linux-arm-kernel/2017-October/534981.html >

Re: [PATCH] [net-next] ip_tunnel: fix building with NET_IP_TUNNEL=m

2017-10-12 Thread Amine Kherbouche
Hi Arnd, On 10/11/2017 03:57 PM, Arnd Bergmann wrote: I forgot to Cc Amine, sorry. On Wed, Oct 11, 2017 at 3:55 PM, Arnd Bergmann wrote: When af_mpls is built-in but the tunnel support is a module, we get a link failure: net/mpls/af_mpls.o: In function `mpls_init': af_mpls.c:(.init.text+0xdc

[PATCH] dlm: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://patchwork.kernel.org/patch/649/ and https://lkml.org/lkml/2017/10/11/375 Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done us

RE: [PATCH v7 10/15] platform/x86: dell-smbios: add filtering capability for requests

2017-10-12 Thread Mario.Limonciello
> -Original Message- > From: Alan Cox [mailto:gno...@lxorguk.ukuu.org.uk] > Sent: Thursday, October 12, 2017 5:09 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; Andy Shevchenko ; > LKML ; platform-driver-...@vger.kernel.org; > Andy Lutomirski ; quasi...@google.com; > pali.ro...@gm

Re: [PATCH v3 2/2] ARM: dts: tegra20: Add video decoder node

2017-10-12 Thread Thierry Reding
On Thu, Oct 12, 2017 at 03:06:17PM +0300, Dmitry Osipenko wrote: > Hello Vladimir, > > On 12.10.2017 10:43, Vladimir Zapolskiy wrote: > > Hello Dmitry, > > > > On 10/11/2017 11:08 PM, Dmitry Osipenko wrote: > >> Add a device node for the video decoder engine found on Tegra20. > >> > >> Signed-off

Re: [alsa-devel] [Patch v6 1/7] slimbus: Device management on SLIMbus

2017-10-12 Thread Srinivas Kandagatla
On 12/10/17 12:01, Sanyog Kale wrote: On Fri, Oct 06, 2017 at 05:51:30PM +0200, srinivas.kandaga...@linaro.org wrote: From: Sagar Dharia +Per specification, Slimbus uses "clock gears" to do power management based on +current frequency and bandwidth requirements. There are 10 clock gears and

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

2017-10-12 Thread Boris Brezillon
On Thu, 12 Oct 2017 22:03:23 +0900 KOBAYASHI Yoshitake wrote: > On 2017/10/05 16:31, Boris Brezillon wrote: > > On Thu, 5 Oct 2017 16:24:08 +0900 > > KOBAYASHI Yoshitake wrote: > >> @@ -39,9 +105,43 @@ static void toshiba_nand_decode_id(struct > >> nand_chip *chip) > >> > >>

Re: Linux-kernel examples for LKMM recipes

2017-10-12 Thread Andrea Parri
Hi Paul, On Wed, Oct 11, 2017 at 03:32:30PM -0700, Paul E. McKenney wrote: > Hello! > > At Linux Plumbers Conference, we got requests for a recipes document, > and a further request to point to actual code in the Linux kernel. > I have pulled together some examples for various litmus-test familie

Re: [Part2 PATCH v5.2 12.1/31] crypto: ccp: Define SEV userspace ioctl and command id

2017-10-12 Thread Borislav Petkov
On Wed, Oct 11, 2017 at 11:46:05AM -0500, Brijesh Singh wrote: > Add a include file which defines the ioctl and command id used for > issuing SEV platform management specific commands. > > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc: Borislav Petkov > Cc: Herbert Xu > Cc: Gary Hook > Cc: Tom

Re: [PATCH v6] PCI: quirks: update Cavium ThunderX ACS quirk implementation

2017-10-12 Thread Robert Richter
Bjorn, On 27.09.17 11:20:39, Vadim Lomovtsev wrote: > This commit makes Cavium PCI ACS quirk applicable only to Cavium > ThunderX (CN8XXX) family PCIE Root Ports which has limited PCI capabilities > in terms of no ACS support advertisement. However, the RTL internally > implements similar protecti

[PATCH] configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://patchwork.kernel.org/patch/649/ and https://lkml.org/lkml/2017/10/11/375 Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done us

Re: [PATCH] fbdev: Fix typo in vfb comment

2017-10-12 Thread Jiri Kosina
On Tue, 20 Jun 2017, Bastien Nocera wrote: > Signed-off-by: Bastien Nocera > --- > drivers/video/fbdev/vfb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/vfb.c b/drivers/video/fbdev/vfb.c > index da653a080394..59cd17bd9de6 100644 > --- a/drivers/v

Re: [PATCH v1 24/25] kdb: Switch to use %pt

2017-10-12 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 3:48 PM, Andy Shevchenko wrote: > diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c > index c8146d53ca67..2a6f12be79d8 100644 > --- a/kernel/debug/kdb/kdb_main.c > +++ b/kernel/debug/kdb/kdb_main.c > @@ -2556,12 +2556,7 @@ static int kdb_summary(int arg

Re: [PATCH 3/8] mm, truncate: Remove all exceptional entries from pagevec under one lock

2017-10-12 Thread Jan Kara
On Thu 12-10-17 10:30:58, Mel Gorman wrote: > During truncate each entry in a pagevec is checked to see if it is an > exceptional entry and if so, the shadow entry is cleaned up. This is > potentially expensive as multiple entries for a mapping locks/unlocks the > tree lock. This batches the oper

Re: [PATCH] floppy: Add floppy prefix to pr_info

2017-10-12 Thread Jiri Kosina
On Fri, 28 Jul 2017, Corentin Labbe wrote: > When booting a qemu virtual machine I got in dmesg the following message > alone: "work still pending". > Without prefix, it is hard to know which subsystem got work pending. > > This patch add a "floppy:" prefix to this message. > > Signed-off-by: Co

Re: [PATCH v2] misc: Return error on error path

2017-10-12 Thread Jiri Kosina
On Tue, 1 Aug 2017, Anton Vasilyev wrote: > If ibmasm_event_buffer_init() or ibmasm_heartbeat_init() fails, > then ibmasm_init_one() release all resources and return 0 on error path. > > The patch adds corresponding error for fails. > > Found by Linux Driver Verification project (linuxtesting.or

Re: [PATCH 3/3] Drivers: hv: vmbus: Make pannic reporting to be more useful

2017-10-12 Thread Vitaly Kuznetsov
k...@exchange.microsoft.com writes: > From: "K. Y. Srinivasan" > > Hyper-V allows the guest to report panic and the guest can pass additional > information. All this is logged on the host. Currently Linux is passing back > information that is not particularly useful. Make the following changes: >

Re: [PATCH] fbdev: Fix typo in vfb comment

2017-10-12 Thread Bastien Nocera
On Thu, 2017-10-12 at 15:31 +0200, Jiri Kosina wrote: > On Tue, 20 Jun 2017, Bastien Nocera wrote: > > > Signed-off-by: Bastien Nocera > > --- > > drivers/video/fbdev/vfb.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/video/fbdev/vfb.c b/drivers/video/f

Re: [PATCH 4.9 000/105] 4.9.55-stable review

2017-10-12 Thread Shuah Khan
On 10/12/2017 06:13 AM, Greg Kroah-Hartman wrote: > On Thu, Oct 12, 2017 at 01:54:26PM +0200, Greg Kroah-Hartman wrote: >> On Thu, Oct 12, 2017 at 12:39:52PM +0200, Greg Kroah-Hartman wrote: >>> On Wed, Oct 11, 2017 at 04:54:51PM -0600, Shuah Khan wrote: On 10/11/2017 06:56 AM, Greg Kroah-Hart

Re: [PATCH v3 2/2] ARM: dts: tegra20: Add video decoder node

2017-10-12 Thread Jon Hunter
On 12/10/17 14:25, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Thu, Oct 12, 2017 at 03:06:17PM +0300, Dmitry Osipenko wrote: >> Hello Vladimir, >> >> On 12.10.2017 10:43, Vladimir Zapolskiy wrote: >>> Hello Dmitry, >>> >>> On 10/11/2017 11:08 PM, Dmitry Osipenko wrote: Add

Re: staging/irda/net: Adjustments for several function implementations

2017-10-12 Thread SF Markus Elfring
> Did you read drivers/staging/irda/TODO ? Yes. How do recent contributions (by other software developers) fit to information that is provided in this file? Regards, Markus

[PATCH] firmware: meson-sm: use generic compatible

2017-10-12 Thread Jerome Brunet
The meson secure monitor seems to be compatible with more SoCs than initially thought. Let's use the most generic compatible he have in DT instead of the gxbb specific one Signed-off-by: Jerome Brunet --- Documentation/devicetree/bindings/firmware/meson/meson_sm.txt | 4 ++-- drivers/firmware/me

Re: [PATCH v7 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
On Thu, Oct 12, 2017 at 5:15 PM, Zhangshaokun wrote: > Hi Will, > > On 2017/10/12 18:58, Will Deacon wrote: >> On Thu, Oct 12, 2017 at 04:20:06PM +0530, Ganapatrao Kulkarni wrote: >>> Hi Robert, >>> >>> On Thu, Oct 12, 2017 at 4:08 PM, Robert Richter wrote: On 12.10.17 16:04:15, Ganapatrao K

[PATCH] target/iscsi: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://patchwork.kernel.org/patch/649/ Make config_item_type structures const as they are only passed to the functions having the argument as const. Make the declaration const too. Signed-off-by: Bhumika Goyal --- drivers/target/iscsi/iscsi_target_stat.c | 12

[PATCH v2 2/3] udf: Fix signed/unsigned format specifiers

2017-10-12 Thread Steve Magnani
Fix problems noted in compilion with -Wformat=2 -Wformat-signedness. In particular, a mismatch between the signedness of a value and the signedness of its format specifier can result in unsigned values being printed as negative numbers, e.g.: Partition (0 type 1511) starts at physical 460, block

[PATCH v2 3/3] udf: Fix some sign-conversion warnings

2017-10-12 Thread Steve Magnani
Fix some warnings that appear when compiling with -Wconversion. A sub-optimal choice of variable type leads to warnings about conversion in both directions between unsigned and signed. Signed-off-by: Steven J. Magnani --- diff -uprN a/fs/udf/directory.c b/fs/udf/directory.c --- a/fs/udf/directory

[PATCH v2 1/3] udf: Fix 64-bit sign extension issues affecting blocks > 0x7FFFFFFF

2017-10-12 Thread Steve Magnani
Large (> 1 TiB) UDF filesystems appear subject to several problems when mounted on 64-bit systems: * readdir() can fail on a directory containing File Identifiers residing above 0x7FFF. This manifests as a 'ls' command failing with EIO. * FIBMAP on a file block located above 0x7FFF can

[PATCH v2 0/3] udf: Fix some signed/unsigned conversion issues

2017-10-12 Thread Steve Magnani
The UDF driver has several points at which conversion between unsigned and signed types cause (or could cause) problems. On 64-bit systems, conversion of block addresses larger than 0x7FFF (>= 1 TiB when blocksize is 512 bytes) can involve undesired sign extension that corrupts the block addres

Re: [PATCH 3/5] dmaengine: Support for querying maximum trasnfer length (of an SG element)

2017-10-12 Thread Vinod Koul
On Wed, Oct 11, 2017 at 06:47:18PM +0300, Peter Ujfalusi wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > On 10/08/2017 08:25 AM, Vinod Koul wrote: > It is not really static, the size in bytes dep

Re: [PATCH v2 2/8] drm/rockchip/dsi: add dual mipi channel support

2017-10-12 Thread Sean Paul
On Tue, Sep 26, 2017 at 03:55:17PM +0800, Nickey Yang wrote: > This patch add dual mipi channel support: > 1.add definition of dsi1 register and grf operation. > 2.dsi0 and dsi1 will work in master and slave mode > when driving dual mipi panel. > > Signed-off-by: Nickey Yang > --- Hi Nickey, Ple

Re:Re: [PATCH] rtc: ds1374: wdt:support suspend/resume for watchdog

2017-10-12 Thread 刘稳
At 2017-10-10 23:05:14, "Guenter Roeck" wrote: >On Tue, Oct 10, 2017 at 03:51:34PM +0200, Alexandre Belloni wrote: >> On 10/10/2017 at 06:41:15 -0700, Guenter Roeck wrote: >> > On 10/10/2017 06:12 AM, winton.liu wrote: >> > > When enable CONFIG_RTC_DRV_DS1374_WDT use as watchdog, >> > >

Re: [PATCH v2 4/8] drm/rockchip/dsi: correct phy parameter setting

2017-10-12 Thread Sean Paul
On Tue, Sep 26, 2017 at 03:55:19PM +0800, Nickey Yang wrote: > As MIPI PHY document show, icpctrl<3..0> and lpfctrl<5..0> > should depend on frequency,so fix it. > > Signed-off-by: Nickey Yang With the improvements to max_mbps that Matthias suggested, Reviewed-by: Sean Paul > --- > drivers/g

Re: [PATCH] dmaengine: stm32_mdma: add CONFIG_OF dependency

2017-10-12 Thread Vinod Koul
On Wed, Oct 11, 2017 at 04:00:04PM +0200, Arnd Bergmann wrote: > Without CONFIG_OF we get a build warning: > > warning: (STM32_MDMA) selects DMA_OF which has unmet direct dependencies > (DMADEVICES && OF) > > This adds a dependency on CONFIG_OF. Since this means > we no longer need to select 'DM

Re: [PATCH v2] stackdepot: ignore junk last entry in case of switch from user mode.

2017-10-12 Thread Dmitry Vyukov
On Thu, Oct 12, 2017 at 1:10 PM, Vaneet Narang wrote: > Hi Dmitry, > >>diff --git a/lib/stackdepot.c b/lib/stackdepot.c >>index f87d138..a045748 100644 >>--- a/lib/stackdepot.c >>+++ b/lib/stackdepot.c >>@@ -214,6 +214,13 @@ depot_stack_handle_t depot_save_stack(struct stack_trace >>*trace, >>

[PATCH v2 0/1] arm: remove cpu_efficiency

2017-10-12 Thread Dietmar Eggemann
v1: review results [1]: Vincent pointed out that there is a superfluous continue statement in parse_dt_topology(). Got rid of it. Krzysztof Kozlowski took the exynos and Simon Horman the renesas related dt bits into their for-next (v4.15) branches. *** For Cortex-A15/A7 arm big.LITTLE systems th

Re: [PATCH][dma-next] dmaengine: stm32: remove redundant initialization of hwdesc

2017-10-12 Thread Vinod Koul
On Wed, Oct 11, 2017 at 11:28:22AM +0100, Colin King wrote: > From: Colin Ian King > > hwdesc is being initialized to desc->hwdesc but this is never read > as hwdesc is overwritten in a for-loop. Remove the redundant > initialization and move the declaration of hwdesc into the for-loop. > > Cle

[PATCH v2 1/1] arm: topology: remove cpu_efficiency

2017-10-12 Thread Dietmar Eggemann
Remove the 'cpu_efficiency/clock-frequency dt property' based solution to set cpu capacity which was only working for Cortex-A15/A7 arm big.LITTLE systems. I.e. the 'capacity-dmips-mhz' based solution is now the only one. It is shared between arm and arm64 and works for every big.LITTLE system no

Re: [PATCH v3 0/4] A few round_pipe_size() and pipe-max-size fixups

2017-10-12 Thread Mikulas Patocka
Reviewed-by: Mikulas Patocka On Tue, 10 Oct 2017, Joe Lawrence wrote: > While backporting Michael's "pipe: fix limit handling" patchset to a > distro-kernel, Mikulas noticed that current upstream pipe limit handling > contains a few problems: > > 1 - procfs signed wrap: echo'ing a large num

[PATCH] kdb: use __ktime_get_real_seconds instead of __current_kernel_time

2017-10-12 Thread Arnd Bergmann
kdb is the only user of the __current_kernel_time() interface, which is not y2038 safe and should be removed at some point. The kdb code also goes to great lengths to print the time in a human-readable format from 'struct timespec', again using a non-y2038-safe re-implementation of the generic tim

Re: [Part2 PATCH v5.2 12.2/31] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-12 Thread Borislav Petkov
On Wed, Oct 11, 2017 at 11:50:30AM -0500, Brijesh Singh wrote: > AMD's new Secure Encrypted Virtualization (SEV) feature allows the > memory contents of virtual machines to be transparently encrypted with a > key unique to the VM. The programming and management of the encryption > keys are handled

Re: [PATCH] user namespaces: bump idmap limits

2017-10-12 Thread Christian Brauner
On Wed, Oct 11, 2017 at 03:43:20PM -0500, Eric W. Biederman wrote: > "Serge E. Hallyn" writes: > > > Quoting Christian Brauner (christian.brau...@ubuntu.com): > >> We have quite some use cases where users already run into the current > >> limit for > >> {g,u}id mappings. Consider a user requestin

Re: [PATCH 4.9 000/105] 4.9.55-stable review

2017-10-12 Thread Xin Long
On Thu, Oct 12, 2017 at 9:45 PM, Shuah Khan wrote: > On 10/12/2017 06:13 AM, Greg Kroah-Hartman wrote: >> On Thu, Oct 12, 2017 at 01:54:26PM +0200, Greg Kroah-Hartman wrote: >>> On Thu, Oct 12, 2017 at 12:39:52PM +0200, Greg Kroah-Hartman wrote: On Wed, Oct 11, 2017 at 04:54:51PM -0600, Shuah

[PATCH v8 2/4] perf tools arm64: Add support for get_cpuid_str function.

2017-10-12 Thread Ganapatrao Kulkarni
function get_cpuid_str returns MIDR string of the first online cpu from the range of cpus associated with the pmu core device. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/arch/arm64/util/Build| 1 + tools/perf/arch/arm64/util/header.c | 65 + 2 file

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