[PATCH 2/3] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures

2018-06-22 Thread Vitaly Kuznetsov
These structures are going to be used from KVM code so let's make their names reflect their Hyper-V origin. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_apic.c | 12 ++-- arch/x86/include/asm/hyperv-tlfs.h | 16 +--- 2 files changed, 15 insertions(+), 13

[PATCH 0/3] KVM: x86: hyperv: PV IPI support for Windows guests

2018-06-22 Thread Vitaly Kuznetsov
Using hypercall for sending IPIs is faster because this allows to specify any number of vCPUs (even > 64 with sparse CPU set), the whole procedure will take only one VMEXIT. Same as PV TLB flush, this allows Windows guests having > 64 vCPUs to boot on KVM when Hyper-V extensions are enabled.

Applied "ASoC: soc-pcm: DPCM cares BE channel constraint" to the asoc tree

2018-06-22 Thread Mark Brown
The patch ASoC: soc-pcm: DPCM cares BE channel constraint has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Re: [PATCH v2 13/16] dt-bindings/interrupt-controller: add documentation for Marvell SEI controller

2018-06-22 Thread Miquel Raynal
Hi Rob, Marc, On Fri, 8 Jun 2018 16:46:23 +0200, Miquel Raynal wrote: > Hi Rob, Marc, > > On Tue, 5 Jun 2018 14:51:21 -0600, Rob Herring wrote: > > > On Tue, May 22, 2018 at 11:40:39AM +0200, Miquel Raynal wrote: > > > Describe the System Error Interrupt (SEI) controller. It aggregates two

Re: [PATCH 2/7] x86,tlb: leave lazy TLB mode at page table free time

2018-06-22 Thread Andy Lutomirski
On Wed, Jun 20, 2018 at 12:57 PM Rik van Riel wrote: > > Andy discovered that speculative memory accesses while in lazy > TLB mode can crash a system, when a CPU tries to dereference a > speculative access using memory contents that used to be valid > page table memory, but have since been reused

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-06-22 Thread Andy Lutomirski
On Wed, Jun 20, 2018 at 12:57 PM Rik van Riel wrote: > > Lazy TLB mode can result in an idle CPU being woken up by a TLB flush, > when all it really needs to do is reload %CR3 at the next context switch, > assuming no page table pages got freed. > > This patch deals with that issue by introducing

Re: [PATCH v3 7/7] x86/ldt,ptrace: provide regset access to the LDT

2018-06-22 Thread hpa
On June 22, 2018 7:49:13 AM PDT, Andy Lutomirski wrote: >On Thu, Jun 21, 2018 at 2:18 PM H. Peter Anvin, Intel > wrote: >> >> From: "H. Peter Anvin" >> >> Provide ptrace/regset access to the LDT, if one exists. This >> interface provides both read and write access. The write code is >> unified

BUG? DOC: Really jiffies in /proc/schedstat?

2018-06-22 Thread Thommy Jakobsson
Hi, I am measuring cpu runtime for a couple of processes, and is using /proc/schedstat and /proc/[pid]/schedstat to do so. According to the schedstat doc (https://www.kernel.org/doc/Documentation/scheduler/sched-stats.txt) the last three values are in jiffies. Doing something like

Re: linux-next: manual merge of the tip tree with the vfs tree

2018-06-22 Thread Reinette Chatre
Hi Thomas, On 6/22/2018 6:39 AM, Thomas Gleixner wrote: > On Fri, 22 Jun 2018, Al Viro wrote: >> On Fri, Jun 22, 2018 at 01:45:23PM +0100, David Howells wrote: >>> Reinette Chatre wrote: >>> Thomas and David, please let me know what I can do from my side to help with this. >>> >>> You

Re: [PATCH 1/7] mm: allocate mm_cpumask dynamically based on nr_cpu_ids

2018-06-22 Thread Dave Hansen
On 06/20/2018 12:56 PM, Rik van Riel wrote: > /* > - * FIXME! The "sizeof(struct mm_struct)" currently includes the > - * whole struct cpumask for the OFFSTACK case. We could change > - * this to *only* allocate as much of it as required by the > - * maximum number of

Re: [RFC PATCH 06/16] x86/split_lock: Save #AC setting for split lock in firmware in boot time and restore the setting in reboot

2018-06-22 Thread Alan Cox
On Thu, 2018-06-21 at 21:58 +0200, Peter Zijlstra wrote: > On Sun, May 27, 2018 at 08:45:55AM -0700, Fenghua Yu wrote: > > Firmware may contain split locked instructions. > > I think that's the wrong attitude. You should mandate in your BIOS > development guide that Firmware _MUST_NOT_ contain

Re: [PATCH] staging: wlan-ng: improved readability of function prism2_add_key

2018-06-22 Thread Chris Opperman
Okay, in that case I will fix and resend the patch. Kind Regards, Chris Opperman

Re: [PATCH v4 6/7] x86/vdso: Introduce CPU number helper functions

2018-06-22 Thread Thomas Gleixner
On Wed, 20 Jun 2018, Chang S. Bae wrote: > CPU number initialization in vDSO is now a bit cleaned up by > the new helper functions. The helper functions will take > care of combing CPU and node number and reading each from s/combing/combining/ please > the combined value. > > Suggested-by:

Re: [lkp-robot] [fs] 3deb642f0d: will-it-scale.per_process_ops -8.8% regression

2018-06-22 Thread Al Viro
On Fri, Jun 22, 2018 at 05:02:51PM +0200, Christoph Hellwig wrote: > Hi Xiaolong, > > can you retest this workload on the following branch: > > git://git.infradead.org/users/hch/vfs.git remove-get-poll-head > > Gitweb: > > >

Re: [PATCH REBASED RESEND] x86/cpu: Move early cpu initialization into a separate translation unit

2018-06-22 Thread Kirill A. Shutemov
On Fri, Jun 22, 2018 at 02:05:47PM +, Thomas Gleixner wrote: > On Tue, 12 Jun 2018, Kirill A. Shutemov wrote: > > > __pgtable_l5_enabled shouldn't be needed after system has booted, we can > > mark it as __initdata, but it requires preparation. > > > > This patch moves early cpu

Re: [PATCH v4 1/4] seccomp: add a return code to trap to userspace

2018-06-22 Thread Tycho Andersen
Hi Jann, On Fri, Jun 22, 2018 at 04:40:20PM +0200, Jann Horn wrote: > On Fri, Jun 22, 2018 at 12:05 AM Tycho Andersen wrote: > > This patch introduces a means for syscalls matched in seccomp to notify > > some other task that a particular filter has been triggered. > > > > The motivation for

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-06-22 Thread Rik van Riel
On Fri, 2018-06-22 at 08:04 -0700, Andy Lutomirski wrote: > On Wed, Jun 20, 2018 at 12:57 PM Rik van Riel > wrote: > > > > Lazy TLB mode can result in an idle CPU being woken up by a TLB > > flush, > > when all it really needs to do is reload %CR3 at the next context > > switch, > > assuming no

[PATCH v5 0/2] pinctrl: imx: Add driver for i.MX8MQ

2018-06-22 Thread Abel Vesa
This is the fifth version for the patch series sent by Lucas. https://www.spinics.net/lists/devicetree/msg212752.html Fourth version can be found here: https://lkml.org/lkml/2018/6/20/478 Changes since v4: * implemented all Aisheng's review comments Changes since v3: * dropped the SION

[PATCH v5 1/2] dt-bindings: add binding for i.MX8MQ IOMUXC

2018-06-22 Thread Abel Vesa
This adds the binding for the i.MX8MQ pin controller, in the same fashion as earlier i.MX SoCs. Signed-off-by: Abel Vesa Acked-by: Dong Aisheng --- .../bindings/pinctrl/fsl,imx8mq-pinctrl.txt| 32 ++ 1 file changed, 32 insertions(+) create mode 100644

[PATCH v5 2/2] pinctrl: imx: add driver for i.MX8MQ

2018-06-22 Thread Abel Vesa
From: Lucas Stach The i.MX8MQ pincontrol works in a similar way to the earlier i.MX SoCs. This driver builds on top of the imx specific pinconf handling. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa Acked-by: Dong Aisheng --- drivers/pinctrl/freescale/Kconfig | 7 +

Re: [PATCH 2/7] x86,tlb: leave lazy TLB mode at page table free time

2018-06-22 Thread Rik van Riel
On Fri, 2018-06-22 at 07:58 -0700, Andy Lutomirski wrote: > On Wed, Jun 20, 2018 at 12:57 PM Rik van Riel > wrote: > > > > +++ b/arch/x86/mm/tlb.c > > @@ -646,6 +646,30 @@ void flush_tlb_mm_range(struct mm_struct *mm, > > unsigned long start, > > put_cpu(); > > } > > > > +void

Re: [PATCH v4 7/7] x86/vdso: Move out the CPU number store

2018-06-22 Thread Thomas Gleixner
On Wed, 20 Jun 2018, Chang S. Bae wrote: > > +#ifdef CONFIG_X86_64 > +static void setup_cpu_number(int cpu) This function name is really misleading. vdso_setup_cpu_and_node() or something like that clearly tells what this is about. Thanks, tglx

Re: [lkp-robot] [fs] 3deb642f0d: will-it-scale.per_process_ops -8.8% regression

2018-06-22 Thread Christoph Hellwig
On Fri, Jun 22, 2018 at 04:14:09PM +0100, Al Viro wrote: > > > > http://git.infradead.org/users/hch/vfs.git/shortlog/refs/heads/remove-get-poll-head > > See objections upthread re "fs,net: move poll busy loop handling into a > separate method"; as for the next one... I'd like an ACK from

Dear Good Friend

2018-06-22 Thread Mr.Ismael Chad
Dear Good Friend I am Mr.Ismael Chad,I work for UBA Bank Ouagadougou Burkina Faso, I have a business proposal which concerns the transfer of ($13.5 Million US Dollars) into a foreign account. Everything about this transaction shall be legally done without any problem. If you are interested to

Re: [PATCH v6 04/11] cpufreq/schedutil: use rt utilization tracking

2018-06-22 Thread Peter Zijlstra
On Fri, Jun 22, 2018 at 01:37:13PM +0200, Peter Zijlstra wrote: > That is true.. So we could limit the scaling to the case where there is > no idle time, something like: > > util = sg_cpu->util_cfs; > > cap_cfs = (1024 - (sg_cpu->util_rt + ...)); > if (util == cap_cfs) >

Re: [PATCH v6 06/11] cpufreq/schedutil: use dl utilization tracking

2018-06-22 Thread Peter Zijlstra
On Fri, Jun 08, 2018 at 02:09:49PM +0200, Vincent Guittot wrote: > - * Ideally we would like to set util_dl as min/guaranteed freq and > - * util_cfs + util_dl as requested freq. However, cpufreq is not yet > - * ready for such an interface. So, we only do the latter for now.

Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-22 Thread Michal Hocko
On Fri 22-06-18 17:13:02, Christian König wrote: > Hi Michal, > > [Adding Felix as well] > > Well first of all you have a misconception why at least the AMD graphics > driver need to be able to sleep in an MMU notifier: We need to sleep because > we need to wait for hardware operations to finish

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-22 Thread Wei Xu
Hi Will, On 2018/6/22 22:43, Will Deacon wrote: On Fri, Jun 22, 2018 at 09:46:53PM +0800, Wei Xu wrote: On 2018/6/22 21:31, Will Deacon wrote: On Fri, Jun 22, 2018 at 09:18:27PM +0800, Wei Xu wrote: On 2018/6/22 19:16, Will Deacon wrote: On Fri, Jun 22, 2018 at 06:45:15PM +0800, Wei Xu

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-22 Thread Wei Xu
Hi Mark, On 2018/6/22 22:28, Mark Rutland wrote: On Fri, Jun 22, 2018 at 09:18:27PM +0800, Wei Xu wrote: [0.042462] Insufficient stack space to handle exception! [0.042464] ESR: 0x9646 -- DABT (current EL) [0.043781] FAR: 0x093a80e0 [0.044239]

Re: [PATCH 3/3] modsign: print module name along with error message

2018-06-22 Thread Jessica Yu
+++ Jessica Yu [30/05/18 11:08 +0200]: It is useful to know which module failed signature verification, so print the module name along with the error message. Signed-off-by: Jessica Yu --- kernel/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/module.c

Re: [PATCH v6 04/11] cpufreq/schedutil: use rt utilization tracking

2018-06-22 Thread Quentin Perret
On Friday 22 Jun 2018 at 17:22:58 (+0200), Peter Zijlstra wrote: > On Fri, Jun 22, 2018 at 01:37:13PM +0200, Peter Zijlstra wrote: > > That is true.. So we could limit the scaling to the case where there is > > no idle time, something like: > > > > util = sg_cpu->util_cfs; > > > >

Re: [16/32] kernfs, sysfs, cgroup, intel_rdt: Support fs_context [ver #8]

2018-06-22 Thread Andrei Vagin
On Fri, Jun 22, 2018 at 01:52:16PM +0100, David Howells wrote: > Andrei Vagin wrote: > > > ret = 0; > > + ctx->root = root; > > goto out_unlock; > > Okay, I can see that. > > > percpu_ref_reinit(>cgrp.self.refcnt); > >

Re: [PATCH v3 7/7] x86/ldt,ptrace: provide regset access to the LDT

2018-06-22 Thread Andy Lutomirski
On Fri, Jun 22, 2018 at 8:06 AM wrote: > > On June 22, 2018 7:49:13 AM PDT, Andy Lutomirski wrote: > >On Thu, Jun 21, 2018 at 2:18 PM H. Peter Anvin, Intel > > wrote: > >> > >> From: "H. Peter Anvin" > >> > >> Provide ptrace/regset access to the LDT, if one exists. This > >> interface provides

[PATCH v2] staging: wlan-ng: improved readability of function prism2_add_key

2018-06-22 Thread Chris Opperman
Improve readability of prism2_add_key: a) Reduce nesting and removed goto statement by using more return statements. Signed-off-by: Chris Opperman --- drivers/staging/wlan-ng/cfg80211.c | 40 +- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git

Re: [PATCH] slub: track number of slabs irrespective of CONFIG_SLUB_DEBUG

2018-06-22 Thread Shakeel Butt
On Thu, Jun 21, 2018 at 8:01 AM Michal Hocko wrote: > > On Thu 21-06-18 01:15:30, Cristopher Lameter wrote: > > On Wed, 20 Jun 2018, Shakeel Butt wrote: > > > > > For !CONFIG_SLUB_DEBUG, SLUB does not maintain the number of slabs > > > allocated per node for a kmem_cache. Thus, slabs_node() in >

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-06-22 Thread Andy Lutomirski
On Fri, Jun 22, 2018 at 8:15 AM Rik van Riel wrote: > > On Fri, 2018-06-22 at 08:04 -0700, Andy Lutomirski wrote: > > On Wed, Jun 20, 2018 at 12:57 PM Rik van Riel > > wrote: > > > > > > Lazy TLB mode can result in an idle CPU being woken up by a TLB > > > flush, > > > when all it really needs

[PATCH 22/32] media: camss: ispif: Add support for 8x96

2018-06-22 Thread Todor Tomov
ISPIF hardware modules on 8x16 and 8x96 are similar. However on 8x96 the ISPIF routes data to two VFE hardware modules. Add separate interrupt handler for 8x96 to handle the additional interrupts. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-ispif.c | 76

[PATCH 32/32] media: doc: media/v4l-drivers: Update Qualcomm CAMSS driver document for 8x96

2018-06-22 Thread Todor Tomov
Update the document to describe the support of Camera Subsystem on MSM8996/APQ8096. Signed-off-by: Todor Tomov --- Documentation/media/v4l-drivers/qcom_camss.rst | 93 +++--- .../media/v4l-drivers/qcom_camss_8x96_graph.dot| 104 + 2 files changed, 164

Re: [PATCH REBASED RESEND] x86/cpu: Move early cpu initialization into a separate translation unit

2018-06-22 Thread Thomas Gleixner
On Fri, 22 Jun 2018, Kirill A. Shutemov wrote: > On Fri, Jun 22, 2018 at 02:05:47PM +, Thomas Gleixner wrote: > > On Tue, 12 Jun 2018, Kirill A. Shutemov wrote: > > > > > __pgtable_l5_enabled shouldn't be needed after system has booted, we can > > > mark it as __initdata, but it requires

Re: [PATCH 7/7] x86,idle: do not leave mm in idle state

2018-06-22 Thread Andy Lutomirski
On Wed, Jun 20, 2018 at 12:57 PM Rik van Riel wrote: > > Do not call leave_mm when going into a cstate. Now that mprotect and > madvise no longer send IPIs for TLB shootdowns to idle CPUs, there is > no real reason to disable lazy TLB mode in idle states. > > This seems to help performance on

[PATCH] module: print sensible error code

2018-06-22 Thread Jason A. Donenfeld
Printing "err 0" to the user in the warning message is not particularly useful, especially when this gets transformed into a -ENOENT for the remainder of the call chain. Signed-off-by: Jason A. Donenfeld --- kernel/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 19/32] media: camss: csiphy: Unify lane handling

2018-06-22 Thread Todor Tomov
Restructure lane configuration so it is simpler and will allow similar (although not the same) handling for different hardware versions. Signed-off-by: Todor Tomov --- .../platform/qcom/camss/camss-csiphy-2ph-1-0.c | 48 --

Re: [PATCHv3 09/17] x86/mm: Implement page_keyid() using page_ext

2018-06-22 Thread Kirill A. Shutemov
On Mon, Jun 18, 2018 at 12:54:29PM +, Dave Hansen wrote: > On 06/18/2018 03:07 AM, Kirill A. Shutemov wrote: > > On Wed, Jun 13, 2018 at 06:20:10PM +, Dave Hansen wrote: > >>> +int page_keyid(const struct page *page) > >>> +{ > >>> + if (mktme_status != MKTME_ENABLED) > >>> +

Re: [PATCH v4 1/7] x86/fsgsbase/64: Introduce FS/GS base helper functions

2018-06-22 Thread Thomas Gleixner
On Fri, 22 Jun 2018, Andy Lutomirski wrote: > On Fri, Jun 22, 2018 at 7:28 AM Thomas Gleixner wrote: > > > +unsigned long read_task_fsbase(struct task_struct *task) > > > +{ > > > + unsigned long fsbase; > > > + > > > + if (task == current) { > > > + fsbase = read_fsbase(); >

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-22 Thread Will Deacon
On Fri, Jun 22, 2018 at 11:28:21PM +0800, Wei Xu wrote: > On 2018/6/22 22:28, Mark Rutland wrote: > >On Fri, Jun 22, 2018 at 09:18:27PM +0800, Wei Xu wrote: > >> [0.227507] Mem abort info: > >> [0.230390] ESR = 0x9606 > >> [0.233517] Exception class = DABT (current

Re: linux-next: manual merge of the tip tree with the vfs tree

2018-06-22 Thread Thomas Gleixner
On Fri, 22 Jun 2018, Reinette Chatre wrote: > On 6/22/2018 6:39 AM, Thomas Gleixner wrote: > > On Fri, 22 Jun 2018, Al Viro wrote: > >> On Fri, Jun 22, 2018 at 01:45:23PM +0100, David Howells wrote: > >>> Reinette Chatre wrote: > >>> > Thomas and David, please let me know what I can do from

[PATCH] kasan: depend on CONFIG_SLUB_DEBUG

2018-06-22 Thread Jason A. Donenfeld
KASAN depends on having access to some of the accounting that SLUB_DEBUG does; without it, there are immediate crashes [1]. So, the natural thing to do is to make KASAN select SLUB_DEBUG. [1] http://lkml.kernel.org/r/CAHmME9rtoPwxUSnktxzKso14iuVCWT7BE_-_8PAC=pgw1ij...@mail.gmail.com Fixes:

[tip:timers/urgent] time: Make sure jiffies_to_msecs() preserves non-zero time periods

2018-06-22 Thread tip-bot for Geert Uytterhoeven
Commit-ID: abcbcb80cd09cd40f2089d912764e315459b71f7 Gitweb: https://git.kernel.org/tip/abcbcb80cd09cd40f2089d912764e315459b71f7 Author: Geert Uytterhoeven AuthorDate: Fri, 22 Jun 2018 16:33:57 +0200 Committer: Thomas Gleixner CommitDate: Fri, 22 Jun 2018 17:48:36 +0200 time: Make sure

Re: [PATCH 7/7] x86,idle: do not leave mm in idle state

2018-06-22 Thread Rik van Riel
On Fri, 2018-06-22 at 08:36 -0700, Andy Lutomirski wrote: > On Wed, Jun 20, 2018 at 12:57 PM Rik van Riel > wrote: > > > > Do not call leave_mm when going into a cstate. Now that mprotect > > and > > madvise no longer send IPIs for TLB shootdowns to idle CPUs, there > > is > > no real reason to

Re: [PATCH v4] MAINTAINERS: Add file patterns for x86 device tree bindings

2018-06-22 Thread Thomas Gleixner
On Fri, 22 Jun 2018, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > --- > v3: > - Update for next-20180622, > > v2: > - No ch

Re: [Intel-gfx] [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-22 Thread Michal Hocko
On Fri 22-06-18 16:36:49, Chris Wilson wrote: > Quoting Michal Hocko (2018-06-22 16:02:42) > > Hi, > > this is an RFC and not tested at all. I am not very familiar with the > > mmu notifiers semantics very much so this is a crude attempt to achieve > > what I need basically. It might be completely

Re: [PATCH] kasan: depend on CONFIG_SLUB_DEBUG

2018-06-22 Thread Michal Hocko
On Fri 22-06-18 17:46:23, Jason A. Donenfeld wrote: > KASAN depends on having access to some of the accounting that SLUB_DEBUG > does; without it, there are immediate crashes [1]. So, the natural thing > to do is to make KASAN select SLUB_DEBUG. > > [1] >

Re: [PATCH] arm: dts: socfpga: denali needs nand_x_clk too

2018-06-22 Thread Richard Weinberger
Masahiro, Am Freitag, 22. Juni 2018, 16:37:21 CEST schrieb Masahiro Yamada: > Hi Richard, > > > 2018-06-19 21:07 GMT+09:00 Richard Weinberger : > > The denali NAND flash controller needs at least two clocks to operate, > > nand_clk and nand_x_clk. > > Since 1bb88666775e ("mtd: nand: denali:

Re: [PATCH REBASED RESEND] x86/cpu: Move early cpu initialization into a separate translation unit

2018-06-22 Thread Kirill A. Shutemov
On Fri, Jun 22, 2018 at 03:35:18PM +, Thomas Gleixner wrote: > On Fri, 22 Jun 2018, Kirill A. Shutemov wrote: > > On Fri, Jun 22, 2018 at 02:05:47PM +, Thomas Gleixner wrote: > > > On Tue, 12 Jun 2018, Kirill A. Shutemov wrote: > > > > > > > __pgtable_l5_enabled shouldn't be needed after

Re: [PATCH v2 0/4] have the vt console preserve unicode characters

2018-06-22 Thread Alan Cox
> The other point is a quite pointless assumption that existing scrollback is > "optimized". Even vgacon mostly uses software scrollback these days, as the > amount of VGA display memory is really small. All of our console driver code is horribly unoptimized for most of todays hardware. Long ago

[tip:x86/urgent] MAINTAINERS: Add file patterns for x86 device tree bindings

2018-06-22 Thread tip-bot for Geert Uytterhoeven
Commit-ID: 48e315618dc4dc8904182cd221e3d395d5d97005 Gitweb: https://git.kernel.org/tip/48e315618dc4dc8904182cd221e3d395d5d97005 Author: Geert Uytterhoeven AuthorDate: Fri, 22 Jun 2018 12:08:20 +0200 Committer: Thomas Gleixner CommitDate: Fri, 22 Jun 2018 17:58:32 +0200 MAINTAINERS:

Re: [RFC 2/2] rcu: Remove ->dynticks_nmi_nesting from struct rcu_dynticks

2018-06-22 Thread Steven Rostedt
On Fri, 22 Jun 2018 06:28:43 -0700 "Paul E. McKenney" wrote: > It has been some years since I traced the code flow, but what happened > back then is that it switches itself from an interrupt handler to not > without actually returning from the interrupt. This can only happen when > interrupting

Re: [PATCH 7/7] x86,idle: do not leave mm in idle state

2018-06-22 Thread Andy Lutomirski
Hmm, fair enough. I think a better heuristic would be if the estimated idle duration is more than, say, 10ms. I *think* the code has been cleaned up enough that this is easy now. (Using time instead of C6 will make it a lot less dependent on which idle driver is in use.) On Fri, Jun 22, 2018 at

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-22 Thread Wei Xu
Hi Will, Mark, On 2018/6/22 23:41, Will Deacon wrote: On Fri, Jun 22, 2018 at 11:28:21PM +0800, Wei Xu wrote: On 2018/6/22 22:28, Mark Rutland wrote: On Fri, Jun 22, 2018 at 09:18:27PM +0800, Wei Xu wrote: [0.227507] Mem abort info: [0.230390] ESR = 0x9606 [

Re: [PATCH 1/2] IB/hfi1: Try slot reset before secondary bus reset

2018-06-22 Thread Sinan Kaya
On 6/22/2018 10:01 AM, Bjorn Helgaas wrote: >> Since Oza's DPC/AER patch to refactor fatal error handling, both >> hotplug driver and AER/DPC driver will try removing devices and >> perform enumeration on link events/AER events. >> >> Perfect environment for race condition without a change. >

Re: [v2 PATCH 1/2] mm: thp: register mm for khugepaged when merging vma for shmem

2018-06-22 Thread Yang Shi
On 6/22/18 12:59 AM, Kirill A. Shutemov wrote: On Thu, Jun 21, 2018 at 11:15:48PM +, yang@linux.alibaba.com wrote: When merging anonymous page vma, if the size of vma can fit in at least one hugepage, the mm will be registered for khugepaged for collapsing THP in the future. But, it

[PATCH v4 4/5] mtd: rawnand: denali_dt: add more clocks based on IP datasheet

2018-06-22 Thread Masahiro Yamada
Currently, denali_dt.c requires a single anonymous clock, but the Denali User's Guide requires three clocks for this IP: - clk: controller core clock - clk_x: bus interface clock - ecc_clk: clock at which ECC circuitry is run This commit supports these named clocks to represent the real

[PATCH v4 0/5] mtd: rawnand: denali: add new clocks and improve setup_data_interface

2018-06-22 Thread Masahiro Yamada
The ->setup_data_interface() hook needs to know the clock frequency. In fact, this IP needs three clocks, but the current driver does not represent it. Thus, it is hard to understand what is the correct clock frequency. (at least, clock property is not described in the DT-binding at all.) This

Re: [lkp-robot] [fs] 3deb642f0d: will-it-scale.per_process_ops -8.8% regression

2018-06-22 Thread Christoph Hellwig
On Fri, Jun 22, 2018 at 05:28:50PM +0200, Christoph Hellwig wrote: > On Fri, Jun 22, 2018 at 04:14:09PM +0100, Al Viro wrote: > > > > > > http://git.infradead.org/users/hch/vfs.git/shortlog/refs/heads/remove-get-poll-head > > > > See objections upthread re "fs,net: move poll busy loop

[PATCH v4 2/5] mtd: rawnand: denali_dt: use dev as a shorthand of >dev

2018-06-22 Thread Masahiro Yamada
The probe function references >dev many times, and I will add more soon. Add 'dev' as a shorthand. Signed-off-by: Masahiro Yamada Acked-by: Miquel Raynal Reviewed-by: Richard Weinberger Tested-by: Richard Weinberger Reviewed-by: Boris Brezillon --- Changes in v4: None Changes in v3: None

Re: [PATCH v4 1/7] x86/fsgsbase/64: Introduce FS/GS base helper functions

2018-06-22 Thread Andy Lutomirski
> On Jun 22, 2018, at 8:39 AM, Thomas Gleixner wrote: > >> On Fri, 22 Jun 2018, Andy Lutomirski wrote: >> On Fri, Jun 22, 2018 at 7:28 AM Thomas Gleixner wrote: +unsigned long read_task_fsbase(struct task_struct *task) +{ + unsigned long fsbase; + + if (task

[PATCH v4 3/5] dt-binding: mtd: denali_dt: document clock property

2018-06-22 Thread Masahiro Yamada
Commit 30f9f2fb7ba0 ("mtd: denali: add a DT driver") supported the clock enablement, but did not document it in the DT binding. In addition to the existing clock, this commit adds more clocks based on the IP specification. According to the Denali User's Guide, this IP needs three clocks: -

[PATCH v4 5/5] mtd: rawnand: denali: optimize timing parameters for data interface

2018-06-22 Thread Masahiro Yamada
This commit improves the ->setup_data_interface() hook. The denali_setup_data_interface() needs the frequency of clk_x and the ratio of clk_x / clk. The latter is currently hardcoded in the driver, like this: #define DENALI_CLK_X_MULT 6 The IP datasheet requires that clk_x / clk be 4,

[PATCH v4 1/5] mtd: rawnand: denali_dt: set clk_x_rate to 200 MHz unconditionally

2018-06-22 Thread Masahiro Yamada
Since commit 1bb88666775e ("mtd: nand: denali: handle timing parameters by setup_data_interface()"), denali_dt.c gets the clock rate from the clock driver. The driver expects the frequency of the bus interface clock, whereas the clock driver of SOCFPGA provides the core clock. Thus, the

Re: [PATCH] kasan: depend on CONFIG_SLUB_DEBUG

2018-06-22 Thread Shakeel Butt
On Fri, Jun 22, 2018 at 8:46 AM Jason A. Donenfeld wrote: > > KASAN depends on having access to some of the accounting that SLUB_DEBUG > does; without it, there are immediate crashes [1]. So, the natural thing > to do is to make KASAN select SLUB_DEBUG. > > [1] >

Re: [RFC 2/2] rcu: Remove ->dynticks_nmi_nesting from struct rcu_dynticks

2018-06-22 Thread Paul E. McKenney
On Fri, Jun 22, 2018 at 07:19:13AM -0700, Andy Lutomirski wrote: > On Fri, Jun 22, 2018 at 6:26 AM Paul E. McKenney > wrote: > > > > On Thu, Jun 21, 2018 at 10:56:59PM -0700, Joel Fernandes wrote: > > > Hi Paul, > > > > > > On Wed, Jun 20, 2018 at 09:49:02AM -0700, Paul E. McKenney wrote: > > > >

Re: [PATCH v4 7/7] x86/vdso: Move out the CPU number store

2018-06-22 Thread Andy Lutomirski
> On Jun 22, 2018, at 8:18 AM, Thomas Gleixner wrote: > >> On Wed, 20 Jun 2018, Chang S. Bae wrote: >> >> +#ifdef CONFIG_X86_64 >> +static void setup_cpu_number(int cpu) > > This function name is really misleading. vdso_setup_cpu_and_node() or > something like that clearly tells what this is

Re: [PATCH REBASED RESEND] x86/cpu: Move early cpu initialization into a separate translation unit

2018-06-22 Thread Thomas Gleixner
On Fri, 22 Jun 2018, Kirill A. Shutemov wrote: > On Fri, Jun 22, 2018 at 03:35:18PM +, Thomas Gleixner wrote: > > > > Second thoughts. > > > > > > > > The only place where __pgtable_l5_enabled() is used in common.c is in > > > > early_identify_cpu() which is marked __init. So how is that

Re: [v2 PATCH 1/2] mm: thp: register mm for khugepaged when merging vma for shmem

2018-06-22 Thread Kirill A. Shutemov
On Fri, Jun 22, 2018 at 04:04:12PM +, yang@linux.alibaba.com wrote: > > > On 6/22/18 12:59 AM, Kirill A. Shutemov wrote: > > On Thu, Jun 21, 2018 at 11:15:48PM +, yang@linux.alibaba.com wrote: > > > When merging anonymous page vma, if the size of vma can fit in at least > > > one

Re: [PATCH v4 7/7] x86/vdso: Move out the CPU number store

2018-06-22 Thread Thomas Gleixner
On Fri, 22 Jun 2018, Andy Lutomirski wrote: > > On Jun 22, 2018, at 8:18 AM, Thomas Gleixner wrote: > > > >> On Wed, 20 Jun 2018, Chang S. Bae wrote: > >> > >> +#ifdef CONFIG_X86_64 > >> +static void setup_cpu_number(int cpu) > > > > This function name is really misleading.

Re: [PATCH v9 4/4] vsprintf: Add command line option debug_boot_weak_hash

2018-06-22 Thread Randy Dunlap
On 06/21/2018 04:15 PM, Tobin C. Harding wrote: > Currently printing [hashed] pointers requires enough entropy to be > available. Early in the boot sequence this may not be the case > resulting in a dummy string '(ptrval)' being printed. This > makes debugging the early boot sequence

Re: [RFC][PATCH 0/6] Use printk_safe context for TTY and UART port locks

2018-06-22 Thread Alan Cox
On Wed, 20 Jun 2018 11:44:13 +0900 Linus Torvalds wrote: > On Wed, Jun 20, 2018 at 11:34 AM Steven Rostedt wrote: > > > > Perhaps we should do an audit of the console drivers and remove all > > printk, pr_* , WARN*, BUG* from them. > > Only the actual _printing_ parts. No because they are

Re: [PATCH v4 4/4] seccomp: add support for passing fds via USER_NOTIF

2018-06-22 Thread Jann Horn
On Fri, Jun 22, 2018 at 12:05 AM Tycho Andersen wrote: > > The idea here is that the userspace handler should be able to pass an fd > back to the trapped task, for example so it can be returned from socket(). > > I've proposed one API here, but I'm open to other options. In particular, > this

Re: [PATCH v4 1/4] seccomp: add a return code to trap to userspace

2018-06-22 Thread Jann Horn
On Fri, Jun 22, 2018 at 5:15 PM Tycho Andersen wrote: > > Hi Jann, > > On Fri, Jun 22, 2018 at 04:40:20PM +0200, Jann Horn wrote: > > On Fri, Jun 22, 2018 at 12:05 AM Tycho Andersen wrote: > > > This patch introduces a means for syscalls matched in seccomp to notify > > > some other task that a

Re: [Intel-gfx] [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-22 Thread Jerome Glisse
On Fri, Jun 22, 2018 at 04:36:49PM +0100, Chris Wilson wrote: > Quoting Michal Hocko (2018-06-22 16:02:42) > > Hi, > > this is an RFC and not tested at all. I am not very familiar with the > > mmu notifiers semantics very much so this is a crude attempt to achieve > > what I need basically. It

[PATCH] i2c-hid: Fix "incomplete report" noise

2018-06-22 Thread Jason Andryuk
Commit ac75a041048b ("HID: i2c-hid: fix size check and type usage") started writing messages when the ret_size is <= 2 from i2c_master_recv. However, my device i2c-DLL07D1 returns 2 for a short period of time (~0.5s) after I stop moving the pointing stick or touchpad. It varies, but you get ~50

Re: [PATCH v2 0/4] have the vt console preserve unicode characters

2018-06-22 Thread Nicolas Pitre
On Fri, 22 Jun 2018, Alan Cox wrote: > > The other point is a quite pointless assumption that existing scrollback is > > "optimized". Even vgacon mostly uses software scrollback these days, as the > > amount of VGA display memory is really small. > > All of our console driver code is horribly

[PATCH] mm: drop VM_BUG_ON from __get_free_pages

2018-06-22 Thread Michal Hocko
From: Michal Hocko There is no real reason to blow up just because the caller doesn't know that __get_free_pages cannot return highmem pages. Simply fix that up silently. Even if we have some confused users such a fixup will not be harmful. Signed-off-by: Michal Hocko --- Hi Andrew, previously

RE: [PATCH 6/7] irqchip/gic-v3-its: Honor hypervisor enforced LPI range

2018-06-22 Thread Shameerali Kolothum Thodi
Hi Marc, > -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: 20 June 2018 14:53 > To: linux-kernel@vger.kernel.org > Cc: Thomas Gleixner ; Ard Biesheuvel > ; Shanker Donthineni > ; Shameerali Kolothum Thodi > ; MaJun ; > Laurentiu Tudor ; Lei Zhang > >

Re: [PATCH REBASED RESEND] x86/cpu: Move early cpu initialization into a separate translation unit

2018-06-22 Thread Peter Zijlstra
On Fri, Jun 22, 2018 at 06:16:05PM +0200, Thomas Gleixner wrote: > On Fri, 22 Jun 2018, Kirill A. Shutemov wrote: > > On Fri, Jun 22, 2018 at 03:35:18PM +, Thomas Gleixner wrote: > > > How is that supposed to work correctly? > > > > > > start_kernel() > > > > > > trap_init() > > >

Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks

2018-06-22 Thread Paul E. McKenney
On Fri, Jun 22, 2018 at 12:31:29PM +0200, Peter Zijlstra wrote: > On Fri, Jun 22, 2018 at 10:55:47AM +0100, Will Deacon wrote: > > On Fri, Jun 22, 2018 at 09:09:28AM +0100, Will Deacon wrote: > > > On Thu, Jun 21, 2018 at 01:27:12PM -0400, Alan Stern wrote: > > > > More than one kernel developer

Re: [RFC][PATCH 0/6] Use printk_safe context for TTY and UART port locks

2018-06-22 Thread Peter Zijlstra
On Fri, Jun 22, 2018 at 05:21:00PM +0100, Alan Cox wrote: > Really that's all that you need - log the message to whichever console > targets you can currently safely do so. If it's none well there was > always the proposed morse code keyboard light driver 8) Only if your keyboard still has blinky

Re: [PATCH v5 3/5] PCI/AER: Add sysfs attributes to provide breakdown of AERs

2018-06-22 Thread Tyler Baicar
On 6/21/2018 5:25 PM, Rajat Jain wrote: On Thu, Jun 21, 2018 at 11:48 AM, Bjorn Helgaas wrote: [+cc Tyler for AER dmesg decoding] - Tyler posted a patch [1] to update those dmesg strings so they match the way lspci decodes them. I really liked that update, but we never quite finished

Re: [v2 PATCH 1/2] mm: thp: register mm for khugepaged when merging vma for shmem

2018-06-22 Thread Yang Shi
On 6/22/18 9:19 AM, Kirill A. Shutemov wrote: On Fri, Jun 22, 2018 at 04:04:12PM +, yang@linux.alibaba.com wrote: On 6/22/18 12:59 AM, Kirill A. Shutemov wrote: On Thu, Jun 21, 2018 at 11:15:48PM +, yang@linux.alibaba.com wrote: When merging anonymous page vma, if the size

[PATCH v3 4/4] ima: Get rid of ima_used_chip and use ima_tpm_chip != NULL instead

2018-06-22 Thread Stefan Berger
Get rid of ima_used_chip and use ima_tpm_chip variable instead for determining whether to use the TPM chip. Signed-off-by: Stefan Berger --- security/integrity/ima/ima.h| 1 - security/integrity/ima/ima_crypto.c | 2 +- security/integrity/ima/ima_init.c | 7 ++-

[PATCH v3 3/4] ima: Use tpm_chip_find() and call TPM functions with a tpm_chip

2018-06-22 Thread Stefan Berger
Rather than accessing the TPM functions by passing a NULL pointer for the tpm_chip, which causes a lookup for a suitable chip every time, get a hold of a tpm_chip and access the TPM functions using it. Signed-off-by: Stefan Berger --- security/integrity/ima/ima.h| 1 +

[PATCH v3 0/4] Have IMA find and use a tpm_chip until system shutdown

2018-06-22 Thread Stefan Berger
This series of patches converts IMA's usage of the tpm_chip to find a TPM chip initially and use it until the machine is shut down. To do this we need to introduce a kref for the tpm_chip that IMA and all other users of a tpm_chip hold onto until they don't need the TPM chip anymore. Stefan

[PATCH v3 2/4] tpm: Implement tpm_chip_find() for other subsystems to find a TPM chip

2018-06-22 Thread Stefan Berger
Implement tpm_chip_find() for other subsystems to find a TPM chip and get a reference to that chip. Signed-off-by: Stefan Berger --- drivers/char/tpm/tpm-chip.c | 27 +++ include/linux/tpm.h | 5 + 2 files changed, 32 insertions(+) diff --git

[PATCH v3 1/4] tpm: rename tpm_chip_find_get() to tpm_get_ops()

2018-06-22 Thread Stefan Berger
Rename tpm_chip_find_get() to tpm_get_ops(). This now matches the name of its counter part tpm_put_ops() better. Signed-off-by: Stefan Berger --- drivers/char/tpm/tpm-chip.c | 4 ++-- drivers/char/tpm/tpm-interface.c | 14 +++--- drivers/char/tpm/tpm.h | 2 +- 3 files

Re: [PATCH v4 1/5] mtd: rawnand: denali_dt: set clk_x_rate to 200 MHz unconditionally

2018-06-22 Thread Boris Brezillon
On Sat, 23 Jun 2018 01:06:34 +0900 Masahiro Yamada wrote: > Since commit 1bb88666775e ("mtd: nand: denali: handle timing parameters > by setup_data_interface()"), denali_dt.c gets the clock rate from the > clock driver. The driver expects the frequency of the bus interface > clock, whereas the

Re: [PATCH REBASED RESEND] x86/cpu: Move early cpu initialization into a separate translation unit

2018-06-22 Thread Thomas Gleixner
On Fri, 22 Jun 2018, Peter Zijlstra wrote: > On Fri, Jun 22, 2018 at 06:16:05PM +0200, Thomas Gleixner wrote: > > On Fri, 22 Jun 2018, Kirill A. Shutemov wrote: > > > On Fri, Jun 22, 2018 at 03:35:18PM +, Thomas Gleixner wrote: > > > > > How is that supposed to work correctly? > > > > > > >

Re: [PATCH] dt-bindings: soc: qcom: Fix default clock-freq for qcom,geni-i2c

2018-06-22 Thread Bjorn Andersson
On Wed 13 Jun 10:50 PDT 2018, Douglas Anderson wrote: > In an early version of the I2C patch that was posted to the list the > default I2C frequency (if none was specified) was 400 kHz. There was > debate on the list and we decided that it would be more consistent > with the rest of i2c if we

Re: [PATCH v7 03/10] docs: Add Generic Counter interface documentation

2018-06-22 Thread Jonathan Cameron
On Thu, 21 Jun 2018 17:07:30 -0400 William Breathitt Gray wrote: > This patch adds high-level documentation about the Generic Counter > interface. > > Signed-off-by: William Breathitt Gray Reviewed-by: Jonathan Cameron > --- > Documentation/driver-api/generic-counter.rst | 342

Re: [PATCH v4 3/5] dt-binding: mtd: denali_dt: document clock property

2018-06-22 Thread Boris Brezillon
On Sat, 23 Jun 2018 01:06:36 +0900 Masahiro Yamada wrote: > Commit 30f9f2fb7ba0 ("mtd: denali: add a DT driver") supported the > clock enablement, but did not document it in the DT binding. > > In addition to the existing clock, this commit adds more clocks based > on the IP specification. > >

Re: [PATCH] soc: qcom: geni: Make version macros simpler

2018-06-22 Thread Bjorn Andersson
On Fri 18 May 15:47 PDT 2018, Stephen Boyd wrote: > This macro doesn't work, because it hides a local variable inside of the > macro to hold the version and that variable name is called 'ver' and > 'version' sometimes. > > Let's change this to be more explicit. Introduce three macros for the >

<    6   7   8   9   10   11   12   13   14   >