Re: [PATCH 1/3] ARM: dts: rockchip: phycore: Remove 1.8 GHz operation point

2018-02-14 Thread Heiko Stübner
Am Dienstag, 13. Februar 2018, 10:44:32 CET schrieb Daniel Schultz: > Rockchip recommends to run the CPU cores only with operations points of > 1.6 GHz or lower. > > Removed the cpu0 node with too high operation points and use the default > values instead. > > Signed-off-by: Daniel Schultz appl

Re: [RFC PATCH 3/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-14 Thread Amir Goldstein
On Wed, Feb 14, 2018 at 4:56 AM, Shakeel Butt wrote: > This is RFC patch and the discussion on the API is still happening at > the following link but I am sending the early draft for feedback. > [link] https://marc.info/?l=linux-api&m=151850343717274 > > A lot of memory can be consumed by the even

Re: [PATCH v3 0/4] optimize memory hotplug

2018-02-14 Thread Ingo Molnar
* Andrew Morton wrote: > On Tue, 13 Feb 2018 14:31:55 -0500 Pavel Tatashin > wrote: > > > This patchset: > > - Improves hotplug performance by eliminating a number of > > struct page traverses during memory hotplug. > > > > - Fixes some issues with hotplugging, where boundaries > > were not

Re: [PATCH v3 2/3] arm64: dts: sdm845: Add minimal dts files for sdm845 SoC/MTP

2018-02-14 Thread Rajendra Nayak
[].. >> diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts >> b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts >> new file mode 100644 >> index ..617c7bb25fb1 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts >> @@ -0,0 +1,13 @@ >> +// SPDX-License-Identifier: GPL-2.0 > >

Re: [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support

2018-02-14 Thread Christian Borntraeger
I added all three patches to my next tree https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git/log/?h=next This will hoepfully reveal any fallout. Would be good to have an ACK from the score, tile and um maintainers in case they verified that this change did not break anything. On

Re: [PATCH 2/2] x86: msr-index.h: Correct SNB_C1/C3_AUTO_UNDEMOTE defines

2018-02-14 Thread Ingo Molnar
* Matt Turner wrote: > According to the Intel Software Developers' Manual, Vol. 4, Order No. > 335592, these macros have been reversed since they were added in the > initial turbostat commit. The reversed definitions were presumably > copied from turbostat.c to this file. > > Fixes: 9c63a650bb1

[PATCH -mm 1/3] proc: randomize "struct pde_opener"

2018-02-14 Thread Alexey Dobriyan
The more the merrier. Signed-off-by: Alexey Dobriyan --- fs/proc/internal.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -177,7 +177,7 @@ struct pde_opener { struct list_head lh; bool closing; struct compl

Re: efi/apple-properties: Checking error handling in unmarshal_devices()

2018-02-14 Thread SF Markus Elfring
> While the allocator does print an error when allocations fail, > it may not be immediately apparent to the user what the > *consequences* are. In this case, the consequence is that the > device properties will not be available for consumption by > drivers and they may fail to probe or behave in

[PATCH -mm 2/3] proc: move "struct pde_opener" to kmem cache

2018-02-14 Thread Alexey Dobriyan
"struct pde_opener" is fixed size and we can have more granular approach to debugging. For those who don't know, per cache SLUB poisoning and red zoning don't work if there is at least one object allocated which is hopeless in case of kmalloc-64 but not in case of standalone cache. Although system

Re: [PATCH v2 0/8] Add support for PWM input capture on STM32

2018-02-14 Thread Fabrice Gasnier
On 01/26/2018 04:11 PM, Fabrice Gasnier wrote: > This series adds support for capture to stm32-pwm driver. > Capture is based on DMAs. > - First two patches are precursor patches > - Subsequent two patches add support for requesting DMAs to MFD core > - Next three patches add support for capture to

[PATCH -mm 3/3] proc: account "struct pde_opener"

2018-02-14 Thread Alexey Dobriyan
The allocation is persistent in fact as any fool can open a file in /proc and sit on it. Signed-off-by: Alexey Dobriyan --- fs/proc/inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -103,7 +103,7 @@ void __init proc_init_kmemcache(v

Re: [PATCH v7 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-02-14 Thread Vivek Gautam
On Tue, Feb 13, 2018 at 7:22 PM, Tomasz Figa wrote: > On Tue, Feb 13, 2018 at 9:57 PM, Robin Murphy wrote: >> On 13/02/18 08:24, Tomasz Figa wrote: >>> >>> Hi Vivek, >>> >>> Thanks for the patch. Please see my comments inline. >>> >>> On Wed, Feb 7, 2018 at 7:31 PM, Vivek Gautam >>> wrote:

Re: [PATCH v7 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-02-14 Thread Vivek Gautam
Hi Tomasz, On Tue, Feb 13, 2018 at 1:54 PM, Tomasz Figa wrote: > Hi Vivek, > > Thanks for the patch. Please see my comments inline. > > On Wed, Feb 7, 2018 at 7:31 PM, Vivek Gautam > wrote: >> From: Sricharan R >> >> The smmu device probe/remove and add/remove master device callbacks >> gets c

Re: [patch] kvm: suppress KVM_SET_GSI_ROUTING allocation failure

2018-02-14 Thread Christian Borntraeger
On 02/14/2018 02:03 AM, David Rientjes wrote: > On Tue, 13 Feb 2018, Paolo Bonzini wrote: > The KVM_SET_GSI_ROUTING ioctl does a vmalloc() of sizeof(struct kvm_irq_routing_entry) multiplied by a user-supplied value. This can be up to 4096 entries on architectures such as arm64 and

Re: [PATCH] lib/scatterlist: Add SG_CHAIN and SG_EMARK macros for LSB encodings

2018-02-14 Thread Johannes Thumshirn
On Wed, 2018-02-14 at 10:28 +0530, Anshuman Khandual wrote: > This replaces scatterlist->page_link LSB encodings with SG_CHAIN and > SG_EMARK definitions without any functional change. > > Signed-off-by: Anshuman Khandual > --- >  include/linux/scatterlist.h | 23 +-- >  1 file

Re: [PATCH] perf: Add support for creating offline events

2018-02-14 Thread Peter Zijlstra
On Tue, Feb 13, 2018 at 02:17:07PM -0800, Sodagudi Prasad wrote: > > This is horrible.. and you seem to have forgotten to explain why you > > care about offline CPUs. > > Up to 4.9 kernel, drivers can register cpu hotplug notfiters and drivers are > able to create perf events dynamically based cp

RE: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Yatsina, Marina
Hi Kees, When I raised the question of whether we want to add support for "asm goto" in llvm I got some feedback from the community that "asm goto" might not be the best solution for the problem it was invented for (optimizing support for tracepoints), so I stopped perusing this issue. I'm CC-i

Re: [PATCH 1/2] vfio: platform: Fix reset module leak in error path

2018-02-14 Thread Auger Eric
Hi Geert, On 13/02/18 17:36, Geert Uytterhoeven wrote: > If the IOMMU group setup fails, the reset module is not released. > > Fixes: b5add544d677d363 ("vfio, platform: make reset driver a requirement by > default") > Signed-off-by: Geert Uytterhoeven > --- > drivers/vfio/platform/vfio_platfor

[tip:x86/pti] x86/cpu: Change type of x86_cache_size variable to unsigned int

2018-02-14 Thread tip-bot for Gustavo A. R. Silva
Commit-ID: 0bfa9f1c5d3d290461f554520b8f24316ec971e0 Gitweb: https://git.kernel.org/tip/0bfa9f1c5d3d290461f554520b8f24316ec971e0 Author: Gustavo A. R. Silva AuthorDate: Tue, 13 Feb 2018 13:22:08 -0600 Committer: Ingo Molnar CommitDate: Wed, 14 Feb 2018 09:14:44 +0100 x86/cpu: Change typ

Re: [PATCH v2] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-14 Thread Amir Goldstein
On Wed, Feb 14, 2018 at 3:59 AM, Shakeel Butt wrote: > On Tue, Feb 13, 2018 at 2:20 PM, Shakeel Butt wrote: [...] > Something like FAN_GROUP_QUEUE (better name is welcome) > which is mutually exclusive (?) with FAN_UNLIMITED_QUEUE. > >> >> How about FAN_CHARGE_MEMCG? >> I am not cra

Re: [PATCH v2 2/4] arm64: dts: renesas: r8a77995: add VSP instances

2018-02-14 Thread Kieran Bingham
Hi Laurent, Thanks for the review, On 13/02/18 22:03, Laurent Pinchart wrote: > Hi Kieran, > > Thank you for the patch. > > On Tuesday, 13 February 2018 21:30:35 EET Kieran Bingham wrote: >> From: Kieran Bingham >> >> The r8a77995 has a VSPBS to support image processing such as blending of >>

[tip:x86/pti] x86/spectre: Fix an error message

2018-02-14 Thread tip-bot for Dan Carpenter
Commit-ID: b4764623932ff364df9a6bc8664ab7697c475339 Gitweb: https://git.kernel.org/tip/b4764623932ff364df9a6bc8664ab7697c475339 Author: Dan Carpenter AuthorDate: Wed, 14 Feb 2018 10:14:17 +0300 Committer: Ingo Molnar CommitDate: Wed, 14 Feb 2018 08:23:07 +0100 x86/spectre: Fix an error

Re: WARNING in kvmalloc_node

2018-02-14 Thread Michal Hocko
On Tue 13-02-18 18:55:33, Matthew Wilcox wrote: > On Tue, Feb 13, 2018 at 03:59:01PM -0800, syzbot wrote: [...] > > kvmalloc include/linux/mm.h:541 [inline] > > kvmalloc_array include/linux/mm.h:557 [inline] > > __ptr_ring_init_queue_alloc include/linux/ptr_ring.h:474 [inline] > > ptr_ring_init

Re: [PATCH v3] ASoC: use DEFINE_SHOW_ATTRIBUTE() to decrease code duplication

2018-02-14 Thread Donglin Peng
On Mon, Feb 12, 2018 at 3:49 AM, Mark Brown wrote: > On Fri, Feb 09, 2018 at 11:10:55PM +0800, Donglin Peng wrote: > >> --- a/sound/soc/soc-core.c >> +++ b/sound/soc/soc-core.c >> @@ -349,7 +349,7 @@ static void soc_init_codec_debugfs(struct >> snd_soc_component *component) >> "ASoC:

Re: [PATCH 00/31 v2] PTI support for x86_32

2018-02-14 Thread Greg KH
On Tue, Feb 13, 2018 at 09:25:34AM -0800, Linus Torvalds wrote: > On Tue, Feb 13, 2018 at 12:54 AM, Greg KH wrote: > > On Sun, Feb 11, 2018 at 09:40:41AM -0800, Mark D Rustad wrote: > >> > >> ISTR that iscsi doesn't work when running a 64-bit kernel with a > >> 32-bit userspace. I remember someone

[PATCH] ARM64: dts: allwinner: sun50i-h5-orangepi-zero-plus2: rename mmc0_pins_a to mmc0_pins

2018-02-14 Thread Corentin Labbe
mmc0_pins_a were renamed in arch/arm but not in arch/arm64 resulting in a build failure. Fixes: 813f2c8fa119 ("ARM: dts: sunxi: h3-h5: rename mmc0_pins_a and mmc1_pins_a") Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts | 2 +- 1 file changed, 1

Re: [tip:x86/pti] x86/speculation: Use IBRS if available before calling into firmware

2018-02-14 Thread Peter Zijlstra
On Tue, Feb 13, 2018 at 05:49:47PM -0800, Tim Chen wrote: > static inline void firmware_restrict_branch_speculation_start(void) > { > + if (this_cpu_inc_return(spec_ctrl_ibrs_fw_depth) == 1) > + alternative_msr_write(MSR_IA32_SPEC_CTRL, SPEC_CTRL_IBRS, >

Re: [tip:x86/pti] x86/speculation: Use IBRS if available before calling into firmware

2018-02-14 Thread Peter Zijlstra
On Wed, Feb 14, 2018 at 09:56:14AM +0100, Peter Zijlstra wrote: > On Tue, Feb 13, 2018 at 05:49:47PM -0800, Tim Chen wrote: > > > static inline void firmware_restrict_branch_speculation_start(void) > > { > > + if (this_cpu_inc_return(spec_ctrl_ibrs_fw_depth) == 1) > > + alternative_m

Re: [PATCH v2] reset: add support for non-DT systems

2018-02-14 Thread Bartosz Golaszewski
2018-02-13 20:17 GMT+01:00 Andy Shevchenko : > On Tue, Feb 13, 2018 at 8:39 PM, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> The reset framework only supports device-tree. There are some platforms >> however, which need to use it even in legacy, board-file based mode. >> >> An ex

Re: [PATCH v2] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-14 Thread Amir Goldstein
On Wed, Feb 14, 2018 at 12:20 AM, Shakeel Butt wrote: > On Tue, Feb 13, 2018 at 1:54 PM, Amir Goldstein wrote: >> On Tue, Feb 13, 2018 at 11:10 PM, Shakeel Butt wrote: [...] The question is, do we need the user to also explicitly opt-in for Q_OVERFLOW on ENOMEM with FAN_Q_ERR mark mask

[PATCH] srcu: Fix incorrect condition in srcu_funnel_exp_start()

2018-02-14 Thread Byungchul Park
We should've kept sp->srcu_gp_seq_needed_exp the furthest. But it probably fails because of the incorrect condition. Fix it. Signed-off-by: Byungchul Park --- kernel/rcu/srcutree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c i

Re: [PATCH] x86/mm: Decouple dynamic __PHYSICAL_MASK from AMD SME

2018-02-14 Thread Kirill A. Shutemov
On Wed, Feb 14, 2018 at 08:30:20PM +1300, Kai Huang wrote: > On Tue, 2018-02-13 at 22:57 -0600, Tom Lendacky wrote: > > On 2/13/2018 10:21 PM, Kirill A. Shutemov wrote: > > > On Tue, Feb 13, 2018 at 10:10:22PM -0600, Tom Lendacky wrote: > > > > On 2/8/2018 6:55 AM, Kirill A. Shutemov wrote: > > > >

[RESEND PATCH net-next] r8169: add module param for control of ASPM disable.

2018-02-14 Thread Chunhao Lin
The patch is from Todd Broch . ASPM has been disabled in this driver by default as its been implicated in stability issues on at least one platform. This CL adds a module parameter to allow control of ASPM disable. The default value is to enable ASPM again as its p

[PATCH] srcu: Remove dead code in srcu_gp_end()

2018-02-14 Thread Byungchul Park
Of course, compilers will optimize out a dead code. Anyway, remove any dead code for better readibility. Signed-off-by: Byungchul Park --- kernel/rcu/srcutree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c index 44bc0fa..829453b 100644 --- a/

Re: [PATCH 2/2] vfio: platform: Add generic DT reset support

2018-02-14 Thread Auger Eric
Hi Geert, On 13/02/18 17:36, Geert Uytterhoeven wrote: > Vfio-platform requires reset support, provided either by ACPI, or, on DT > platforms, by a device-specific reset driver matching against the > device's compatible value. > > On many SoCs, devices are connected to an SoC-internal reset contr

Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Peter Zijlstra
On Wed, Feb 14, 2018 at 08:33:39AM +, Yatsina, Marina wrote: > I hope this will give this issue a push forward and we will find a > solution that will not prevent llvm from compiling linux kernel. That solution is asm-goto. We (linux kernel) are not going to support something like it. It's goi

Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Peter Zijlstra
On Wed, Feb 14, 2018 at 08:41:43AM +, Chandler Carruth wrote: > Marina, Kees: > > I think the combination of LKML and the LLVM developer's list is probably > too large a set of folks to have a (somewhat) lengthy exploration of > options and how to go about this and find a good path forward. A

Re: [RESEND PATCH] sched/fair: consider RT/IRQ pressure in select_idle_sibling

2018-02-14 Thread Dietmar Eggemann
On 02/09/2018 11:05 PM, Rohit Jain wrote: On 02/09/2018 07:46 AM, Dietmar Eggemann wrote: On 02/09/2018 01:53 PM, Peter Zijlstra wrote: On Mon, Jan 29, 2018 at 03:27:09PM -0800, Rohit Jain wrote: [...] @@ -6173,8 +6183,15 @@ static int select_idle_cpu(struct task_struct *p, struct sched_do

Re: [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-14 Thread Vivek Gautam
Hi Tomasz, On Wed, Feb 14, 2018 at 11:08 AM, Tomasz Figa wrote: > On Wed, Feb 14, 2018 at 1:17 PM, Vivek Gautam > wrote: >> Hi Tomasz, >> >> On Wed, Feb 14, 2018 at 8:31 AM, Tomasz Figa wrote: >>> On Wed, Feb 14, 2018 at 11:13 AM, Rob Clark wrote: On Tue, Feb 13, 2018 at 8:59 PM, Tomasz F

Re: [PATCH v3 01/25] dt-bindings: soc: qcom: Add bindings for APR bus

2018-02-14 Thread Srinivas Kandagatla
Thanks for the review, On 13/02/18 23:12, Rob Herring wrote: On Tue, Feb 13, 2018 at 04:58:13PM +, srinivas.kandaga...@linaro.org wrote: From: Srinivas Kandagatla This patch add dt bindings for Qualcomm APR (Asynchronous Packet Router) bus driver. This bus is used for communicating with D

Re: [PATCH v2 1/3] Documentation: bindings: add dt documentation for cdn DP controller

2018-02-14 Thread Heiko Stübner
Am Dienstag, 13. Februar 2018, 15:35:47 CET schrieb Enric Balletbo i Serra: > From: Chris Zhong > > This patch adds a binding that describes the cdn DP controller for > rk3399. > > Signed-off-by: Chris Zhong > Acked-by: Rob Herring > Signed-off-by: Enric Balletbo i Serra > --- > Changes since

Re: samples/seccomp/ broken when cross compiling s390, ppc allyesconfig

2018-02-14 Thread Michal Hocko
On Tue 13-02-18 13:27:30, Kees Cook wrote: > On Tue, Feb 13, 2018 at 2:32 AM, Michal Hocko wrote: > > On Tue 13-02-18 21:16:55, Michael Ellerman wrote: > >> Kees Cook writes: > >> > >> > On Mon, Feb 12, 2018 at 7:25 PM, Michael Ellerman > >> > wrote: > >> >> Michal Hocko writes: > >> >>> Hi, >

Re: [PATCH v13 7/9] ACPI: Translate the I/O range of non-MMIO devices before scanning

2018-02-14 Thread Rafael J. Wysocki
On Tue, Feb 13, 2018 at 6:45 PM, John Garry wrote: > On some platforms (such as arm64-based hip06/hip07), access to legacy > ISA/LPC devices through access IO space is required, similar to x86 > platforms. As the I/O for these devices are not memory mapped like > PCI/PCIE MMIO host bridges, they r

Re: [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-14 Thread Tomasz Figa
On Wed, Feb 14, 2018 at 6:13 PM, Vivek Gautam wrote: > Hi Tomasz, > > On Wed, Feb 14, 2018 at 11:08 AM, Tomasz Figa wrote: >> On Wed, Feb 14, 2018 at 1:17 PM, Vivek Gautam >> wrote: >>> Hi Tomasz, >>> >>> On Wed, Feb 14, 2018 at 8:31 AM, Tomasz Figa wrote: On Wed, Feb 14, 2018 at 11:13 AM,

Re: [PATCH v3 3/3] arm64: dts: sdm845: Add serial console support

2018-02-14 Thread Rajendra Nayak
On 02/14/2018 06:02 AM, Doug Anderson wrote: > Hi, > > On Sun, Feb 11, 2018 at 10:28 PM, Rajendra Nayak > wrote: >> Add the qup uart node and geni se instance needed to >> support the serial console on the MTP. >> >> Signed-off-by: Rajendra Nayak >> --- >> arch/arm64/boot/dts/qcom/sdm845-mtp.

[PATCH] staging: typec: handle vendor defined part and modify drp toggling flow

2018-02-14 Thread ShuFanLee
From: ShuFanLee Handle vendor defined behavior in tcpci_init and tcpci_irq. More operations can be extended in tcpci_vendor_data if needed. According to TCPCI specification, 4.4.5.2 ROLE_CONTROL, TCPC shall not start DRP toggling until subsequently the TCPM writes to the COMMAND register to start

[PATCH] Build: Scripts/Makefile: Remove Repeated Lines

2018-02-14 Thread Progyan Bhattacharya
Last two lines of code was repreated and was causing build error. Signed-off-by: Progyan Bhattacharya Cc: Arnd Bergmann Cc: Daniel Golle Cc: Joe Perches Cc: Neil Armstrong Cc: Andrew Morton Cc: Stephen Rothwell --- scripts/Makefile.kasan | 4 1 file changed, 4 deletions(-) diff --git

Re: WARNING in kvmalloc_node

2018-02-14 Thread Daniel Borkmann
[ +Jason, +Jesper ] On 02/14/2018 09:43 AM, Michal Hocko wrote: > On Tue 13-02-18 18:55:33, Matthew Wilcox wrote: >> On Tue, Feb 13, 2018 at 03:59:01PM -0800, syzbot wrote: > [...] >>> kvmalloc include/linux/mm.h:541 [inline] >>> kvmalloc_array include/linux/mm.h:557 [inline] >>> __ptr_ring_ini

Re: [PATCH] ACPI: SPCR: Mark expected switch fall-through in acpi_parse_spcr

2018-02-14 Thread Rafael J. Wysocki
On Friday, February 9, 2018 7:08:21 PM CET Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 1465078 > Signed-off-by: Gustavo A. R. Silva > --- > This code was compiled with GCC 7.

Re: [PATCH v2 0/2] acpi: document sysfs interfaces

2018-02-14 Thread Rafael J. Wysocki
On Saturday, February 10, 2018 9:55:53 AM CET Aishwarya Pant wrote: > Patchset contains documentation for two acpi drivers- dock and dptf. > Description > was collected from git history and reading through code. This might be useful > for tracking changes in the ABI. > > Changes in v2: > - Split

Re: [PATCH v2 2/3] arm64: dts: rockchip: add cdn-dp node for rk3399.

2018-02-14 Thread Heiko Stübner
Am Dienstag, 13. Februar 2018, 15:35:48 CET schrieb Enric Balletbo i Serra: > From: Chris Zhong > > Add a node for the cdn DP controller which is embedded in the rk3399 > SoC. > > Signed-off-by: Chris Zhong > Signed-off-by: Enric Balletbo i Serra applied for 4.17 after some fixups: - the pat

Re: [PATCH 1/2] vfio: platform: Fix reset module leak in error path

2018-02-14 Thread Geert Uytterhoeven
Hi Eric, On Wed, Feb 14, 2018 at 9:36 AM, Auger Eric wrote: > If I am not wrong we also leak the reset_module if > vfio_platform_get_reset() fails to find the reset function (of_reset == > NULL), in which case we should do the module_put() in > vfio_platform_get_reset(). Correct. Will look into

[PATCH] watchdog: hpwdt: Remove spinlock acquire and BIOS calls from NMI context

2018-02-14 Thread Ingo Molnar
* Tim Chen wrote: > Dave Hansen and I had some discussions on how to handle the nested NMI and > firmware calls. We thought of using a per cpu counter to record the nesting > call depth and toggle IBRS appropriately for the depth 0->1 and 1->0 > transition. > Will this change be sufficient

Re: [PATCH v3 00/16] mmc: tmio: another batch of TMIO MMC fixes and cleanups

2018-02-14 Thread Ulf Hansson
On 7 February 2018 at 20:11, Wolfram Sang wrote: > >> I picked patch5 and patch6, as those seemed trivial. Unless there is a >> rc9, let's aim for 4.17 for the rest. > > I can't find the branch where you picked these patches? I wanted to use > it to apply the rest of the patches. They don't seem t

Re: [PATCH] watchdog: hpwdt: Remove spinlock acquire and BIOS calls from NMI context

2018-02-14 Thread Peter Zijlstra
On Wed, Feb 14, 2018 at 10:31:59AM +0100, Ingo Molnar wrote: > Because in this particular case it does not appear to be so: the reason for > the > BIOS/firmware call appears to be to determine how we nmi_panic() after > receiving > an NMI that no other NMI handler handled: with a passive-aggres

Re: [PATCH v2 0/8] Add support for PWM input capture on STM32

2018-02-14 Thread Lee Jones
On Wed, 14 Feb 2018, Fabrice Gasnier wrote: > On 01/26/2018 04:11 PM, Fabrice Gasnier wrote: > > This series adds support for capture to stm32-pwm driver. > > Capture is based on DMAs. > > - First two patches are precursor patches > > - Subsequent two patches add support for requesting DMAs to MFD

Re: [PATCH 2/2] vfio: platform: Add generic DT reset support

2018-02-14 Thread Geert Uytterhoeven
Hi Eric, On Wed, Feb 14, 2018 at 10:09 AM, Auger Eric wrote: > On 13/02/18 17:36, Geert Uytterhoeven wrote: >> Vfio-platform requires reset support, provided either by ACPI, or, on DT >> platforms, by a device-specific reset driver matching against the >> device's compatible value. >> >> On many

Re: [PATCH v3 00/16] mmc: tmio: another batch of TMIO MMC fixes and cleanups

2018-02-14 Thread Masahiro Yamada
Hi Ulf, 2018-02-14 18:36 GMT+09:00 Ulf Hansson : > On 7 February 2018 at 20:11, Wolfram Sang wrote: >> >>> I picked patch5 and patch6, as those seemed trivial. Unless there is a >>> rc9, let's aim for 4.17 for the rest. >> >> I can't find the branch where you picked these patches? I wanted to us

Re: [PATCH] watchdog: hpwdt: Remove spinlock acquire and BIOS calls from NMI context

2018-02-14 Thread Borislav Petkov
+ Jerry On Wed, Feb 14, 2018 at 10:31:59AM +0100, Ingo Molnar wrote: > > * Tim Chen wrote: > > > Dave Hansen and I had some discussions on how to handle the nested NMI and > > firmware calls. We thought of using a per cpu counter to record the > > nesting > > call depth and toggle IBRS appr

Re: [PATCH 0/2] Update lockdep doc and add section about annotations

2018-02-14 Thread Peter Zijlstra
On Tue, Feb 13, 2018 at 07:55:17PM +0100, Juri Lelli wrote: > Hi, > > a couple of patches to lockdep docs. > > First one is a small fix for that fact that Peter made documentation > stale (as usual :P). > > Second one is an RFC. I thought that adding some info about lockdep > asserts might help

Re: [PATCH 19/31] x86/mm/pae: Populate valid user PGD entries

2018-02-14 Thread Juergen Gross
On 09/02/18 10:25, Joerg Roedel wrote: > From: Joerg Roedel > > Generic page-table code populates all non-leaf entries with > _KERNPG_TABLE bits set. This is fine for all paging modes > except PAE. > > In PAE mode only a subset of the bits is allowed to be set. > Make sure we only set allowed bi

Re: [PATCH v3 00/16] mmc: tmio: another batch of TMIO MMC fixes and cleanups

2018-02-14 Thread Ulf Hansson
On 14 February 2018 at 10:43, Masahiro Yamada wrote: > Hi Ulf, > > > 2018-02-14 18:36 GMT+09:00 Ulf Hansson : >> On 7 February 2018 at 20:11, Wolfram Sang wrote: >>> I picked patch5 and patch6, as those seemed trivial. Unless there is a rc9, let's aim for 4.17 for the rest. >>> >>> I ca

Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Greg Kroah-Hartman
On Wed, Feb 14, 2018 at 08:41:43AM +, Chandler Carruth wrote: > Marina, Kees: > > I think the combination of LKML and the LLVM developer's list is probably > too large a set of folks to have a (somewhat) lengthy exploration of > options and how to go about this and find a good path forward. W

Re: [PATCH v2 08/16] mmc: sdhci-omap: Add support to override f_max and iodelay from pdata

2018-02-14 Thread Ulf Hansson
On 5 February 2018 at 13:50, Kishon Vijay Abraham I wrote: > DRA74x EVM Rev H EVM comes with revision 2.0 silicon. However, earlier > versions of EVM can come with either revision 1.1 or revision 1.0 of > silicon. > > The device-tree file is written to support rev 2.0 of silicon. > pdata-quirks ar

RE: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Yatsina, Marina
Hi Peter, When I started the original thread last year I was in favor of adding "asm goto" and didn't understand why it wasn't done by that time. The feedback I got is that this feature (optimizing tracepoints) is very useful and that we do want it in llvm, but perhaps there's a cleaner way of

[PATCH v3 1/5] arm64: dts: renesas: r8a77995: add FCPV nodes

2018-02-14 Thread Kieran Bingham
From: Kieran Bingham The FCPVB handles the interface between the VSPB and memory, while the FCPVD handles the interface between the VSPD and memory. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 27 +++ 1 fi

[PATCH v3 3/5] arm64: dts: renesas: r8a7795-es1: Fix register mappings on VSPs

2018-02-14 Thread Kieran Bingham
From: Kieran Bingham The VSPD includes a CLUT on RPF2. Ensure that the register space is mapped correctly to support this. Signed-off-by: Kieran Bingham --- arch/arm64/boot/dts/renesas/r8a7795-es1.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rene

[PATCH v3 5/5] arm64: dts: renesas: r8a7796: Fix register mappings on VSPs

2018-02-14 Thread Kieran Bingham
From: Kieran Bingham The VSPD includes a CLUT on RPF2. Ensure that the register space is mapped correctly to support this. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v3 4/5] arm64: dts: renesas: r8a7795: Fix register mappings on VSPs

2018-02-14 Thread Kieran Bingham
From: Kieran Bingham The VSPD includes a CLUT on RPF2. Ensure that the register space is mapped correctly to support this. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v3 2/5] arm64: dts: renesas: r8a77995: add VSP instances

2018-02-14 Thread Kieran Bingham
From: Kieran Bingham The r8a77995 has a VSPBS to support image processing such as blending of two input images, and has two VSPDs to handle display pipelines with a DU. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- v2: - Fix VSPD register map size - Squash VSPBS and VSPD p

Re: [PATCH 00/17] Add kexec_file_load support to s390

2018-02-14 Thread Philipp Rudo
Hi Dave, I just browsed AKASHI's patches (v7). The way I see it the common code changes are on different areas of kexec_file and shouldn't get in conflict. Only in the arch code (s390 and arm64) some function calls might need an update. But I have to take a closer look on the patches first. @AKAS

Re: [patch 1/2] mm, page_alloc: extend kernelcore and movablecore for percent

2018-02-14 Thread Michal Hocko
On Mon 12-02-18 16:24:25, David Rientjes wrote: > Both kernelcore= and movablecore= can be used to define the amount of > ZONE_NORMAL and ZONE_MOVABLE on a system, respectively. This requires > the system memory capacity to be known when specifying the command line, > however. > > This introduces

Re: [PATCH,RESEND2] regulator: fixed, gpio: dt: regulator-name is required property

2018-02-14 Thread Harald Geyer
Mark Brown writes: > On Tue, Feb 13, 2018 at 02:43:08PM +, Harald Geyer wrote: > > > BTW, it took me a bit to figure out that by "content free ping" you are > > refering to the quoting of the patch. Maybe you can reword your canned > > response to make it easier to understand. > > No, a conte

Re: [PATCH 19/31] x86/mm/pae: Populate valid user PGD entries

2018-02-14 Thread Joerg Roedel
Hi Juergen, On Wed, Feb 14, 2018 at 10:45:53AM +0100, Juergen Gross wrote: > On 09/02/18 10:25, Joerg Roedel wrote: > > +#ifdef CONFIG_X86_PAE > > + > > +/* > > + * PHYSICAL_PAGE_MASK might be non-constant when SME is compiled in, so we > > can't > > + * use it here. > > + */ > > +#define PGD_PAE

Re: [PATCH 01/15] Documentation: devicetree: R-Car M3-N SoC DT bindings

2018-02-14 Thread Simon Horman
On Tue, Feb 13, 2018 at 10:45:48AM +0100, Jacopo Mondi wrote: > Add device tree bindings documentation for Renesas R-Car M3-N (r8a77965) > SoC. > > Signed-off-by: Jacopo Mondi Thanks, this looks fine to me but I think the subject should be updated to dt-bindings: arm: document R8A77965 SoC bind

Re: [PATCH 06/18] thunderbolt: Wait a bit longer for ICM to authenticate the active NVM

2018-02-14 Thread Mika Westerberg
On Tue, Feb 13, 2018 at 05:21:33PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > > Sent: Tuesday, February 13, 2018 11:00 AM > > To: linux-kernel@vger.kernel.org > > Cc: Andreas Noever ; Michael Jamet > >

Re: [PATCH v5 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-02-14 Thread Vivek Gautam
On 1/24/2018 7:19 PM, Robin Murphy wrote: On 24/01/18 10:35, Jeffy Chen wrote: From: Tomasz Figa Current code relies on master driver enabling necessary clocks before IOMMU is accessed, however there are cases when the IOMMU should be accessed while the master is not running yet, for example

[RESEND PATCH v2 3/8] dt-bindings: mfd: stm32-timers: add support for dmas

2018-02-14 Thread Fabrice Gasnier
Add support for DMAs to STM32 timers. STM32 Timers can support up to 7 dma requests: up to 4 channels, update, compare and trigger. DMAs may be used to transfer data from pwm capture for instance. DMA support is made optional, PWM capture support is also an option. This is much more wise system-wid

[RESEND PATCH v2 4/8] mfd: stm32-timers: add support for dmas

2018-02-14 Thread Fabrice Gasnier
STM32 Timers can support up to 7 DMA requests: - 4 channels, update, compare and trigger. Optionally request part, or all DMAs from stm32-timers MFD core. Also add routine to implement burst reads using DMA from timer registers. This is exported. So, it can be used by child drivers, PWM capture fo

[RESEND PATCH v2 1/8] pwm: stm32: fix, remove unused struct device

2018-02-14 Thread Fabrice Gasnier
dev is never assigned nor used. remove it. Fixes: 7edf7369205b ("pwm: Add driver for STM32 plaftorm") Signed-off-by: Fabrice Gasnier Reviewed-by: Benjamin Gaignard --- drivers/pwm/pwm-stm32.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c i

[RESEND PATCH v2 6/8] pwm: stm32: improve capture by tuning counter prescaler

2018-02-14 Thread Fabrice Gasnier
Currently, capture is based on timeout window to configure prescaler. PWM capture framework provides 1s window at the time of writing. There's place for improvement, after input signal has been captured once: - Finer tune counter clock prescaler, by using 1st capture result (with arbitrary margin)

[RESEND PATCH v2 7/8] pwm: stm32: use input prescaler to improve period capture

2018-02-14 Thread Fabrice Gasnier
Using input prescaler, capture unit will trigger DMA once every configurable /2, /4 or /8 events (rising edge). This helps improve period (only) capture accuracy at high rates. Signed-off-by: Fabrice Gasnier Reviewed-by: Benjamin Gaignard --- Changes in v2: - Adopt DMA read from MFD core. --- d

[RESEND PATCH v2 0/8] Add support for PWM input capture on STM32

2018-02-14 Thread Fabrice Gasnier
This series adds support for capture to stm32-pwm driver. Capture is based on DMAs. - First two patches are precursor patches - Subsequent two patches add support for requesting DMAs to MFD core - Next three patches add support for capture to stm32-pwm driver - This has been tested on stm32429i-eva

[RESEND PATCH v2 2/8] pwm: stm32: protect common prescaler for all channels

2018-02-14 Thread Fabrice Gasnier
There may be a race, when configuring two pwm channels, with different prescaler values, when there's no active channel yet. Add mutex lock to avoid concurrent access on pwm apply state. This is also precursor patch for pwm capture support. Signed-off-by: Fabrice Gasnier Reviewed-by: Benjamin Gai

[RESEND PATCH v2 8/8] ARM: dts: stm32: Enable pwm3 input capture on stm32f429i-eval

2018-02-14 Thread Fabrice Gasnier
Enable pwm3 input capture on stm32f429i-eval, by using DMA. Signed-off-by: Fabrice Gasnier Reviewed-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32429i-eval.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts

[RESEND PATCH v2 5/8] pwm: stm32: add capture support

2018-02-14 Thread Fabrice Gasnier
Add support for PMW input mode on pwm-stm32. STM32 timers support period and duty cycle capture as long as they have at least two PWM channels. One capture channel is used for period (rising-edge), one for duty-cycle (falling-edge). When there's only one channel available, only period can be captur

Re: [PATCH v3 3/5] arm64: dts: renesas: r8a7795-es1: Fix register mappings on VSPs

2018-02-14 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Wednesday, 14 February 2018 11:55:06 EET Kieran Bingham wrote: > From: Kieran Bingham > > The VSPD includes a CLUT on RPF2. Ensure that the register space is > mapped correctly to support this. > > Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinc

Re: [RFC PATCH 2/2] KVM: SVM: Add MSR feature support for serializing LFENCE

2018-02-14 Thread Paolo Bonzini
On 14/02/2018 05:39, Tom Lendacky wrote: > On 2/13/2018 10:22 AM, Paolo Bonzini wrote: >> On 08/02/2018 23:58, Tom Lendacky wrote: >>> Create an entry in the new MSR as a feature framework to allow a guest to >>> recognize LFENCE as a serializing instruction on AMD processors. The MSR >>> can only

Re: [PATCH 17/18] thunderbolt: Introduce USB only (SL4) security level

2018-02-14 Thread Mika Westerberg
On Tue, Feb 13, 2018 at 04:29:42PM -0800, Randy Dunlap wrote: > On 02/13/2018 09:00 AM, Mika Westerberg wrote: > > This new security level works so that it creates one PCIe tunnel to the > > connected Thunderbolt dock, removing PCIe links downstream of the dock. > > This leaves only the internal US

Re: [patch] kvm: suppress KVM_SET_GSI_ROUTING allocation failure

2018-02-14 Thread Paolo Bonzini
On 14/02/2018 02:03, David Rientjes wrote: > On Tue, 13 Feb 2018, Paolo Bonzini wrote: > The KVM_SET_GSI_ROUTING ioctl does a vmalloc() of sizeof(struct kvm_irq_routing_entry) multiplied by a user-supplied value. This can be up to 4096 entries on architectures such as arm64 and s390

RE: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Yatsina, Marina
I believe we do have the infrastructure in llvm to implement a working patch. The "asm goto" was introduced as a solution to a problem (optimizing tracepoints/ nop patching). When we started the discussion in llvm about adding this feature, questions arose if we can design a better solution for t

Re: [PATCH 2/2] vfio: platform: Add generic DT reset support

2018-02-14 Thread Auger Eric
Hi Geert, On 14/02/18 10:43, Geert Uytterhoeven wrote: > Hi Eric, > > On Wed, Feb 14, 2018 at 10:09 AM, Auger Eric wrote: >> On 13/02/18 17:36, Geert Uytterhoeven wrote: >>> Vfio-platform requires reset support, provided either by ACPI, or, on DT >>> platforms, by a device-specific reset driver

Re: [PATCH 03/11] mmc: kconfig: Remove blank help text

2018-02-14 Thread Ulf Hansson
On 1 February 2018 at 18:09, Masahiro Yamada wrote: > 2018-01-31 18:34 GMT+09:00 Ulf Magnusson : >> Blank help texts are probably either a typo, a Kconfig misunderstanding, >> or some kind of half-committing to adding a help text (in which case a >> TODO comment would be clearer, if the help text

[PATCH 0/4] Ux500 crypto: Adjustments for ux500_cryp_probe()

2018-02-14 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 14 Feb 2018 11:12:34 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Delete an error message for a failed memory allocation Adjust two condition checks Adjust an error message Delete two unnecess

Re: plan9 semantics on Linux - mount namespaces

2018-02-14 Thread Enrico Weigelt
On 14.02.2018 04:54, Aleksa Sarai wrote: It depends how old your kernel is and what distro you use. Arch Linux > disables user namespaces entirely, Debian requires that you set a sysctl> to enable unprivileged user namespaces, and RHEL requires you to set> both a sysctl and a kernel boot-flag.

[PATCH 1/4] crypto: ux500: Delete an error message for a failed memory allocation in ux500_cryp_probe()

2018-02-14 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 14 Feb 2018 10:12:38 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/crypto/ux500/cryp/cryp_core.c | 1 - 1 file changed, 1 deletio

[PATCH 2/4] crypto: ux500: Adjust two condition checks in ux500_cryp_probe()

2018-02-14 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 14 Feb 2018 10:38:44 +0100 The local variable "cryp_error" was used only for two condition checks. * Check the return values from these function calls directly instead. * Delete this variable which became unnecessary with this refactoring. Signed-off-by: Markus

[PATCH 3/4] crypto: ux500: Adjust an error message in ux500_cryp_probe()

2018-02-14 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 14 Feb 2018 10:47:31 +0100 Replace the function name in this error message so that the same name is mentioned according to what was called before. Signed-off-by: Markus Elfring --- drivers/crypto/ux500/cryp/cryp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [PATCH 16/18] thunderbolt: Add support for preboot ACL

2018-02-14 Thread Mika Westerberg
On Tue, Feb 13, 2018 at 08:19:45PM +0200, Andy Shevchenko wrote: > On Tue, Feb 13, 2018 at 7:00 PM, Mika Westerberg > wrote: > > Preboot ACL is a mechanism that allows connecting Thunderbolt devices > > boot time in more secure way than the legacy Thunderbolt boot support. > > As with the legacy b

[PATCH 4/4] crypto: ux500: Delete two unnecessary variable initialisations in ux500_cryp_probe()

2018-02-14 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 14 Feb 2018 10:56:38 +0100 Two local variables will eventually be set to appropriate pointers a bit later. Thus omit their explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/crypto/ux500/cryp/cryp_core.c | 4 ++-- 1 file changed,

  1   2   3   4   5   6   7   8   9   10   >