Re: [PATCH 0/3] Refactor TPM event log code

2018-04-12 Thread Jarkko Sakkinen
On Wed, Apr 11, 2018 at 02:54:58PM +0200, Thiebaud Weksteen wrote: > This patchset implements the proposal from Jarkko Sakkinen [1]. I have > included the feedback from Nayna Jain about the function naming. > > [1] https://lkml.kernel.org/r/20171024222148.gwnkj5vqsyj43...@linux.intel.com You

[PATCH 2/2] nohz: Align types to bool for tick_nohz_tick_stopped_cpu()

2018-04-12 Thread Ulf Hansson
The intent was likely to also make the inline version a bool, so let's change this. Fixes: 22ab8bc02a5f ("nohz: Allow to check if remote CPU tick is stopped") Signed-off-by: Ulf Hansson --- Changes in v2: - Rebased on top of Linus' latest master to apply cleanly.

Re: [PATCH v2] staging: wilc1000: Remove unnecessary braces {} around single statement block

2018-04-12 Thread Claudiu Beznea
On 12.04.2018 10:59, Eyal Ilsar wrote: > Remove unnecessary braces {} around an 'if' statement block with a single > statement. Issue found by checkpatch. > > Signed-off-by: Eyal Ilsar Reviewed-by: Claudiu Beznea > --- > Added an empty line

Re: [PATCH] gpio: xra1403: Switch to a fixed upper bound for registers

2018-04-12 Thread Linus Walleij
On Mon, Apr 9, 2018 at 11:07 PM, Laura Abbott wrote: > Geert Uytterhoeven pointed out that the number of register was a > fixed upper bound so there's no need to use a dynamically allocated > array in place of a VLA. Use the defined upper bound. > > Suggested-by: Geert

[PATCH v3 2/5] arm64: dts: renesas: r8a77970: add VSPD support

2018-04-12 Thread Jacopo Mondi
From: Sergei Shtylyov Describe VSPD0 in the R8A77970 device tree; it will be used by DU in the next patch... Based on the original (and large) patch by Daisuke Matsushita . Signed-off-by: Vladimir Barinov

Re: [PATCH] swiotlb: Fix unexpected swiotlb_alloc_coherent() failures

2018-04-12 Thread Takashi Iwai
On Thu, 12 Apr 2018 10:19:05 +0200, Takashi Iwai wrote: > > On Thu, 12 Apr 2018 10:03:56 +0200, > Takashi Iwai wrote: > > > > On Thu, 12 Apr 2018 08:02:27 +0200, > > Christoph Hellwig wrote: > > > > > > On Wed, Apr 11, 2018 at 09:28:54AM +0200, Takashi Iwai wrote: > > > > > But we should try a

Re: [PATCH] scsi: qla2xxx: reduce the time granularity of qla2x00_eh_wait_on_command

2018-04-12 Thread jianchao.wang
Would anyone please take a review on this ? Thanks in advance Jianchao On 04/10/2018 04:48 PM, Jianchao Wang wrote: > If the cmd has not be returned after aborted by qla2x00_eh_abort, > we have to wait for it. However, the time is 1000ms at least currently. > If there are a lot cmds need to be

Re: [PATCH v7 8/9] MAINTAINERS: Add reviewer for ACTIONS platforms

2018-04-12 Thread Linus Walleij
On Wed, Apr 4, 2018 at 7:22 PM, Manivannan Sadhasivam wrote: > Since I'll be working on improving support for ACTIONS platforms, adding > myself as the reviewer. > > Signed-off-by: Manivannan Sadhasivam Andreas: are you

Re: [PATCH] ARM: omap2: Fix build when using split object directories

2018-04-12 Thread Masahiro Yamada
2018-04-12 17:21 GMT+09:00 Anders Roxell : > On 2018-04-11 16:15, Dave Gerlach wrote: >> The sleep33xx and sleep43xx files should not depend on a header file >> generated in drivers/memory. Remove this dependency and instead allow >> both drivers/memory and

Re: [PATCH v7 9/9] MAINTAINERS: Add Actions Semi S900 pinctrl and gpio entries

2018-04-12 Thread Linus Walleij
On Wed, Apr 4, 2018 at 7:22 PM, Manivannan Sadhasivam wrote: > Add S900 pinctrl and gpio entries under ARCH_ACTIONS > > Signed-off-by: Manivannan Sadhasivam This should probably also go in through the ARM SoC tree.

Re: [PATCH] drm/vc4: Fix leak of the file_priv that stored the perfmon.

2018-04-12 Thread Boris Brezillon
On Mon, 9 Apr 2018 13:58:13 -0700 Eric Anholt wrote: > Signed-off-by: Eric Anholt > Fixes: 65101d8c9108 ("drm/vc4: Expose performance counters to userspace") Reviewed-by: Boris Brezillon > --- > drivers/gpu/drm/vc4/vc4_drv.c |

Re: [PATCH] checkpatch: Add a --strict test for structs with bool member definitions

2018-04-12 Thread Andrea Parri
Hi, On Thu, Apr 12, 2018 at 09:47:19AM +0200, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > I still have room in my /dev/null mailbox for pure checkpatch patches. > > > > > (ooh, https://lkml.org/lkml/2017/11/21/384 is working this morning) > > > > Yes, we really

Re: INFO: task hung in perf_trace_event_unreg

2018-04-12 Thread Dmitry Vyukov
On Wed, Apr 11, 2018 at 9:36 PM, Paul E. McKenney wrote: >> >> >> >> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > Hello, >> >> >> >> >> >> >> >> > >> >> >> >> >> >> >> >> > syzbot hit the following crash on upstream commit >> >>

[PATCH v2 5/6] MIPS: perf: Fold vpe_id() macro into it's one last usage

2018-04-12 Thread Matt Redfearn
The vpe_id() macro is now used only in mipsxx_pmu_enable_event when CONFIG_CPU_BMIPS5000 is defined. Fold the one used definition of the macro into it's usage and remove the now unused definitions. Since we know that cpu_has_mipsmt_pertccounters == 0 on BMIPS5000, remove the test on it and just

[PATCH v2 4/6] MIPS: perf: Allocate per-core counters on demand

2018-04-12 Thread Matt Redfearn
Previously when performance counters are per-core, rather than per-thread, the number available were divided by 2 on detection, and the counters used by each thread in a core were "swizzled" to ensure separation. However, this solution is suboptimal since it relies on a couple of assumptions: a)

[PATCH 1/2] nohz: Align types to bool for tick_nohz_tick_stopped()

2018-04-12 Thread Ulf Hansson
The intent was likely to also make the inline version a bool, so let's change this. Fixes: a364298359e7 ("nohz: Convert tick_nohz_tick_stopped() to bool") Signed-off-by: Ulf Hansson --- Changes in v2: - Rebased on top of Linus' latest master to apply cleanly.

Re: [PATCH 3/3] tpm: Move eventlog declarations to its own header

2018-04-12 Thread Jarkko Sakkinen
On Wed, Apr 11, 2018 at 02:55:01PM +0200, Thiebaud Weksteen wrote: > Reduce the size of tpm.h by moving eventlog declarations to a separate > header. > > Signed-off-by: Thiebaud Weksteen Will be fine with suggested-by added. /Jarkko

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-04-12 Thread Peter Rosin
On 2018-04-11 17:34, Nicolas Ferre wrote: > On 11/04/2018 at 16:44, Peter Rosin wrote: >> Hi Nicolas, >> >> Boris asked for your input on this (the datasheet difference appears to >> have no bearing on the issue) elsewhere in the tree of messages. It's >> now been a week or so and I'm starting to

RE: [PATCH][v3] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-12 Thread Doug Smythies
On 2018.04.11 03:31 Yu Chen wrote: > From: Chen Yu > > There's a use case during test to only print specific round of loops > if --iterations is specified, for example, with this patch applied: > > turbostat -i 5 -t 4 > will capture 4 samples with 5 seconds interval. Hi

[tip:x86/pti] x86/pti: Never implicitly clear _PAGE_GLOBAL for kernel image

2018-04-12 Thread tip-bot for Dave Hansen
Commit-ID: 39114b7a743e6759bab4d96b7d9651d44d17e3f9 Gitweb: https://git.kernel.org/tip/39114b7a743e6759bab4d96b7d9651d44d17e3f9 Author: Dave Hansen AuthorDate: Fri, 6 Apr 2018 13:55:17 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Apr

Re: [PATCH v1 0/2] mm: migrate: vm event counter for hugepage migration

2018-04-12 Thread Naoya Horiguchi
On Thu, Apr 12, 2018 at 08:18:59AM +0200, Michal Hocko wrote: > On Wed 11-04-18 17:09:25, Naoya Horiguchi wrote: > > Hi everyone, > > > > I wrote patches introducing separate vm event counters for hugepage > > migration > > (both for hugetlb and thp.) > > Hugepage migration is different from

cifs buffer overflow in kernels before 3.7

2018-04-12 Thread Vlastimil Babka
Hi, we have tracked down (in our 3.0-based kernel) a nasty overflow from cifs_build_path_to_root() calling convert_delimiter() on a kmalloced buffer that's not guaranteed to be null-terminated. AFAIU this happens during mount of a share's subdirectory (vol->prepath is non-zero). This was fixed

Re: perf: fuzzer leads to trace_kprobe: Could not insert message flood

2018-04-12 Thread Ingo Molnar
* Song Liu wrote: > > spamming the kernel log ... > > Yeah, the new API allows non-root user to trigger this message. We should > only > allow root to create kprobe with perf_event_open(). > > On the other hand, do we need to fix this for root? In fact, a simple bash

[PATCH] timers: remove tvec_base struct declaration

2018-04-12 Thread Liu, Changcheng
timer wheel is implemented by timer_base. tvec_base is obsoleted, so remove the type declaration. Signed-off-by: Liu Changcheng diff --git a/include/linux/timer.h b/include/linux/timer.h index 2448f9c..7b066fd 100644 --- a/include/linux/timer.h +++

Re: KMSAN: uninit-value in __netif_receive_skb_core

2018-04-12 Thread Dmitry Vyukov
On Thu, Apr 12, 2018 at 10:01 AM, syzbot wrote: > Hello, > > syzbot hit the following crash on https://github.com/google/kmsan.git/master > commit > e2ab7e8abba47a2f2698216258e5d8727ae58717 (Fri Apr 6 16:24:31 2018 +) > kmsan: temporarily

Re: [PATCH] mmap.2: document new MAP_FIXED_NOREPLACE flag

2018-04-12 Thread Michael Kerrisk (man-pages)
Hello Michal, On 04/11/2018 02:04 PM, mho...@kernel.org wrote: > From: Michal Hocko > > 4.17+ kernels offer a new MAP_FIXED_NOREPLACE flag which allows the caller to > atomicaly probe for a given address range. > > [wording heavily updated by John Hubbard

Re: [PATCH] mmap.2: document new MAP_FIXED_NOREPLACE flag

2018-04-12 Thread Michael Kerrisk (man-pages)
Hi Jann, On 04/11/2018 06:40 PM, Jann Horn wrote: > On Wed, Apr 11, 2018 at 6:36 PM, Michal Hocko wrote: >> On Wed 11-04-18 17:37:46, Jann Horn wrote: >>> On Wed, Apr 11, 2018 at 2:04 PM, wrote: From: Michal Hocko 4.17+

[PATCH v3 3/5] arm64: dts: renesas: r8a77970: add DU support

2018-04-12 Thread Jacopo Mondi
From: Sergei Shtylyov Define the generic R8A77970 part of the DU device node. Based on the original (and large) patch by Daisuke Matsushita . Signed-off-by: Vladimir Barinov

[PATCH v3 5/5] arm64: dts: renesas: eagle: Enable HDMI output

2018-04-12 Thread Jacopo Mondi
Enable HDMI output on Renesas R-Car V3M Eagle board. The HDMI ouput is enabled connecting the DU LVDS output to the transparent LVDS converter THC63LVD1024, and successively routing its RGB output to the ADV7511W HDMI encoder. Signed-off-by: Niklas Söderlund

[PATCH v3 4/5] arm64: dts: renesas: r8a77970: add LVDS support

2018-04-12 Thread Jacopo Mondi
From: Sergei Shtylyov Define the generic R8A77970 part of the LVDS device node. Signed-off-by: Sergei Shtylyov --- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 28 1 file changed, 28

[PATCH v3 0/5] V3M-Eagle HDMI output enablement

2018-04-12 Thread Jacopo Mondi
Hello, I have rebased the Eagle display enablement on top of (part of) Sergei's series: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Simon: you can skip "[1/5] arm64: dts: renesas: r8a77970: add FCPVD support" as you already collected that Sergei: I re-sent your series because there

[PATCH v3 1/5] arm64: dts: renesas: r8a77970: add FCPVD support

2018-04-12 Thread Jacopo Mondi
From: Sergei Shtylyov Describe FCPVD0 in the R8A77970 device tree; it will be used by VSPD0 in the next patch... Based on the original (and large) patch by Daisuke Matsushita . Signed-off-by: Vladimir Barinov

Re: [PATCH 24/24] debugfs: Restrict debugfs when the kernel is locked down

2018-04-12 Thread Greg KH
On Wed, Apr 11, 2018 at 07:54:12PM -0700, Andy Lutomirski wrote: > On Wed, Apr 11, 2018 at 1:33 PM, Greg KH wrote: > > On Wed, Apr 11, 2018 at 09:09:16PM +0100, David Howells wrote: > >> Greg KH wrote: > >> > >> > Why not just disable debugfs entirely? This

Re: [PATCHv4] gpio: Remove VLA from gpiolib

2018-04-12 Thread Linus Walleij
On Wed, Apr 11, 2018 at 3:03 AM, Laura Abbott wrote: > The new challenge is to remove VLAs from the kernel > (see https://lkml.org/lkml/2018/3/7/621) to eventually > turn on -Wvla. > > Using a kmalloc array is the easy way to fix this but kmalloc is still > more expensive

Re: [PATCH v6 4/9] dt-bindings: gpio: Add gpio nodes for Actions S900 SoC

2018-04-12 Thread Linus Walleij
On Wed, Mar 28, 2018 at 7:46 PM, Manivannan Sadhasivam wrote: > Add gpio nodes for Actions Semi S900 SoC. > > Signed-off-by: Manivannan Sadhasivam This should probably have Subject "add bindings" rather than "add gpio nodes"

Re: [PATCH v7 4/9] dt-bindings: gpio: Add gpio nodes for Actions S900 SoC

2018-04-12 Thread Linus Walleij
On Wed, Apr 4, 2018 at 7:22 PM, Manivannan Sadhasivam wrote: > Add gpio nodes for Actions Semi S900 SoC. > > Signed-off-by: Manivannan Sadhasivam Renamed from "gpio nodes" to "gpio bindings" and applied for v4.18 with Rob's

Re: [PATCH v7] Revert "PCI: hv: Use device serial number as PCI domain"

2018-04-12 Thread Lorenzo Pieralisi
On Thu, Apr 12, 2018 at 02:44:42AM +, Sridhar Pitchai wrote: > When Linux runs as a guest VM in Hyper-V and Hyper-V adds the virtual PCI > bus to the guest, Hyper-V always provides unique PCI domain. > > commit 4a9b0933bdfc ("PCI: hv: Use device serial number as PCI domain") > overrode unique

[GIT PULL] pwm: Changes for v4.17-rc1

2018-04-12 Thread Thierry Reding
Hi Linus, The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git tags/pwm/for-4.17-rc1 for you to fetch

[PATCH v2 0/6] MIPS: perf: MT fixes and improvements

2018-04-12 Thread Matt Redfearn
This series addresses a few issues with how the MIPS performance counters code supports the hardware multithreading MT ASE. Firstly, implementations of the MT ASE may implement performance counters per core or per thread(TC). MIPS Techologies implementations signal this via a bit in the

[PATCH v2 6/6] MIPS: perf: Fix BMIPS5000 system mode counting

2018-04-12 Thread Matt Redfearn
When perf is used in system mode, i.e. specifying a set of CPUs to count (perf -a -C cpu), event->cpu is set to the CPU number on which events should be counted. The current BMIPS500 variation of mipsxx_pmu_enable_event only over sets the counter to count the current CPU, so system mode does not

Re: x86-tip.today (4cdf573) early instaboot

2018-04-12 Thread Ingo Molnar
* Mike Galbraith wrote: > On Tue, 2018-04-10 at 09:06 -0500, Tom Lendacky wrote: > > > > Just out of curiosity, can you try the following patch and see if it > > fixes your reboot issue: > > Yup, all better. > > > diff --git a/arch/x86/boot/compressed/kaslr.c > >

[tip:x86/pti] x86/pti: Leave kernel text global for !PCID

2018-04-12 Thread tip-bot for Dave Hansen
Commit-ID: 8c06c7740d191b9055cb9be920579d5ecdd26303 Gitweb: https://git.kernel.org/tip/8c06c7740d191b9055cb9be920579d5ecdd26303 Author: Dave Hansen AuthorDate: Fri, 6 Apr 2018 13:55:18 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Apr

[tip:x86/pti] x86/mm: Do not forbid _PAGE_RW before init for __ro_after_init

2018-04-12 Thread tip-bot for Dave Hansen
Commit-ID: 639d6aafe437a7464399d2a77d006049053df06f Gitweb: https://git.kernel.org/tip/639d6aafe437a7464399d2a77d006049053df06f Author: Dave Hansen AuthorDate: Fri, 6 Apr 2018 13:55:14 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Apr

[tip:x86/pti] x86/pti: Enable global pages for shared areas

2018-04-12 Thread tip-bot for Dave Hansen
Commit-ID: 0f561fce4d6979a50415616896512f87a6d1d5c8 Gitweb: https://git.kernel.org/tip/0f561fce4d6979a50415616896512f87a6d1d5c8 Author: Dave Hansen AuthorDate: Fri, 6 Apr 2018 13:55:15 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Apr

[tip:x86/pti] x86/mm: Comment _PAGE_GLOBAL mystery

2018-04-12 Thread tip-bot for Dave Hansen
Commit-ID: 430d4005b8b41c19966dd3bfdb33004bdb2de01c Gitweb: https://git.kernel.org/tip/430d4005b8b41c19966dd3bfdb33004bdb2de01c Author: Dave Hansen AuthorDate: Fri, 6 Apr 2018 13:55:13 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Apr

Re: [PATCH v2] usb: typec: ucsi: fix tracepoint related build error

2018-04-12 Thread Heikki Krogerus
On Tue, Apr 10, 2018 at 10:38:06AM +0200, Tobias Regnery wrote: > There is the following build error with CONFIG_TYPEC_UCSI=m, CONFIG_FTRACE=y > and CONFIG_TRACING=n: > > ERROR: "__tracepoint_ucsi_command" [drivers/usb/typec/ucsi/typec_ucsi.ko] > undefined! > ERROR:

KMSAN: uninit-value in __netif_receive_skb_core

2018-04-12 Thread syzbot
Hello, syzbot hit the following crash on https://github.com/google/kmsan.git/master commit e2ab7e8abba47a2f2698216258e5d8727ae58717 (Fri Apr 6 16:24:31 2018 +) kmsan: temporarily disable visitAsmInstruction() to help syzbot syzbot dashboard link:

KMSAN: uninit-value in netif_skb_features

2018-04-12 Thread syzbot
Hello, syzbot hit the following crash on https://github.com/google/kmsan.git/master commit e2ab7e8abba47a2f2698216258e5d8727ae58717 (Fri Apr 6 16:24:31 2018 +) kmsan: temporarily disable visitAsmInstruction() to help syzbot syzbot dashboard link:

Re: [PATCH v3 0/5] V3M-Eagle HDMI output enablement

2018-04-12 Thread jacopo mondi
Hi Simon, On Thu, Apr 12, 2018 at 10:08:27AM +0200, Simon Horman wrote: > On Wed, Apr 11, 2018 at 02:43:05PM +0200, Jacopo Mondi wrote: > > Hello, > >I have rebased the Eagle display enablement on top of (part of) Sergei's > > series: > > [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support >

Re: [PATCH] checkpatch: Add a --strict test for structs with bool member definitions

2018-04-12 Thread Peter Zijlstra
On Thu, Apr 12, 2018 at 09:47:19AM +0200, Ingo Molnar wrote: > lkml.org is nice in emails that have a short expected life time and relevance > - I like lkml.org's archive (although it's not without its problems), but the site suffers from serious availability issues -- it is down a lot, which

[PATCH v3 0/5] V3M-Eagle HDMI output enablement

2018-04-12 Thread Jacopo Mondi
Hello, I have rebased the Eagle display enablement on top of (part of) Sergei's series: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Simon: you can skip "[1/5] arm64: dts: renesas: r8a77970: add FCPVD support" as you already collected that Sergei: I re-sent your series because there

Re: [RFC PATCH v2 1/6] sched/fair: Create util_fits_capacity()

2018-04-12 Thread Dietmar Eggemann
On 04/12/2018 09:02 AM, Viresh Kumar wrote: On 06-04-18, 16:36, Dietmar Eggemann wrote: The functionality that a given utilization fits into a given capacity is factored out into a separate function. Currently it is only used in wake_cap() but will be re-used to figure out if a cpu or a

Re: [PATCH] ARM: omap2: Fix build when using split object directories

2018-04-12 Thread Anders Roxell
On 2018-04-11 16:15, Dave Gerlach wrote: > The sleep33xx and sleep43xx files should not depend on a header file > generated in drivers/memory. Remove this dependency and instead allow > both drivers/memory and arch/arm/mach-omap2 to generate all macros > needed in headers local to their own paths.

Re: [PATCH] block: ratelimite pr_err on IO path

2018-04-12 Thread Jinpu Wang
On Wed, Apr 11, 2018 at 7:07 PM, Elliott, Robert (Persistent Memory) wrote: >> -Original Message- >> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- >> ow...@vger.kernel.org] On Behalf Of Jack Wang >> Sent: Wednesday, April 11, 2018 8:21 AM >> Subject:

Re: [PATCH v7 3/9] pinctrl: actions: Add Actions S900 pinctrl driver

2018-04-12 Thread Linus Walleij
On Wed, Apr 4, 2018 at 7:22 PM, Manivannan Sadhasivam wrote: > Add pinctrl driver for Actions Semi S900 SoC. The driver supports > pinctrl, pinmux and pinconf functionalities through a range of registers > common to both gpio driver and pinctrl driver. > >

[tip:perf/urgent] perf/core: Need CAP_SYS_ADMIN to create k/uprobe with perf_event_open()

2018-04-12 Thread tip-bot for Song Liu
Commit-ID: 32e6e967fb36bf77ed99221ae3ce1909f045d8f9 Gitweb: https://git.kernel.org/tip/32e6e967fb36bf77ed99221ae3ce1909f045d8f9 Author: Song Liu AuthorDate: Wed, 11 Apr 2018 18:02:37 + Committer: Ingo Molnar CommitDate: Thu, 12 Apr 2018

[PATCH v2] block: ratelimite pr_err on IO path

2018-04-12 Thread Jack Wang
From: Jack Wang This avoid soft lockup below: [ 2328.328429] Call Trace: [ 2328.328433] vprintk_emit+0x229/0x2e0 [ 2328.328436] ? t10_pi_type3_verify_ip+0x20/0x20 [ 2328.328437] printk+0x52/0x6e [ 2328.328439] t10_pi_verify+0x9e/0xf0 [ 2328.328441]

[PATCH v2 1/6] MIPS: perf: More robustly probe for the presence of per-tc counters

2018-04-12 Thread Matt Redfearn
Processors implementing the MIPS MT ASE may have performance counters implemented per core or per TC. Processors implemented by MIPS Technologies signify presence per TC through a bit in the implementation specific Config7 register. Currently the code which probes for their presence blindly reads

Re: [PATCH 5/9] mtd: nand: qcom: parse read errors for read oob also

2018-04-12 Thread Abhishek Sahu
On 2018-04-10 15:33, Miquel Raynal wrote: Hi Abhishek, On Wed, 4 Apr 2018 18:12:21 +0530, Abhishek Sahu wrote: read_page and read_oob both calls the read_page_ecc function. The QCOM NAND controller protect the OOB available bytes with ECC so read errors should be

Re: [PATCH 3/3] tpm: Move eventlog declarations to its own header

2018-04-12 Thread Jarkko Sakkinen
On Thu, Apr 12, 2018 at 10:12:30AM +0300, Jarkko Sakkinen wrote: > On Wed, Apr 11, 2018 at 02:55:01PM +0200, Thiebaud Weksteen wrote: > > Reduce the size of tpm.h by moving eventlog declarations to a separate > > header. > > > > Signed-off-by: Thiebaud Weksteen > > Will be

[tip:x86/pti] x86/mm: Do not auto-massage page protections

2018-04-12 Thread tip-bot for Dave Hansen
Commit-ID: fb43d6cb91ef57d9e58d5f69b423784ff4a4c374 Gitweb: https://git.kernel.org/tip/fb43d6cb91ef57d9e58d5f69b423784ff4a4c374 Author: Dave Hansen AuthorDate: Fri, 6 Apr 2018 13:55:09 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Apr

[tip:x86/pti] x86/mm: Remove extra filtering in pageattr code

2018-04-12 Thread tip-bot for Dave Hansen
Commit-ID: 1a54420aeb4da1ba5b28283aa5696898220c9a27 Gitweb: https://git.kernel.org/tip/1a54420aeb4da1ba5b28283aa5696898220c9a27 Author: Dave Hansen AuthorDate: Fri, 6 Apr 2018 13:55:11 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Apr

Re: [GIT PULL] asm-generic fixes for v4.17-rc1

2018-04-12 Thread Arnd Bergmann
On Thu, Apr 12, 2018 at 1:16 AM, Linus Torvalds wrote: > On Wed, Apr 11, 2018 at 8:40 AM, Arnd Bergmann wrote: >> >> are available in the git repository at: >> >> >> git+ssh://gitol...@ra.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git >>

Re: [Xen-devel] [PATCH] x86/xen: zero MSR_IA32_SPEC_CTRL before suspend

2018-04-12 Thread Ingo Molnar
* Jan Beulich wrote: > >>> On 11.04.18 at 13:53, wrote: > > * Jan Beulich wrote: > > > >> Additionally, x86 maintainers: is there a particular reason this (or > >> any functionally equivalent patch) isn't upstream yet? As indicated > >>

Re: [PATCH][v3] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-12 Thread Yu Chen
Hi Doug, On Thu, Apr 12, 2018 at 12:18:44AM -0700, Doug Smythies wrote: > On 2018.04.11 03:31 Yu Chen wrote: > > > From: Chen Yu > > > > There's a use case during test to only print specific round of loops > > if --iterations is specified, for example, with this patch

Re: [PATCH] staging: wilc1000: Remove unnecessary braces {} around single statement block

2018-04-12 Thread Claudiu Beznea
On 10.04.2018 17:49, Eyal Ilsar wrote: > Remove unnecessary braces {} around an 'if' statement block with a single > statement. Issue found by checkpatch. You should add an empty line before "Signed-off" line as stated in [1]. I would also add a space b/w your name and your email in Signed-off

Re: [PATCH v1 0/2] mm: migrate: vm event counter for hugepage migration

2018-04-12 Thread Michal Hocko
On Thu 12-04-18 07:40:41, Naoya Horiguchi wrote: > On Thu, Apr 12, 2018 at 08:18:59AM +0200, Michal Hocko wrote: > > On Wed 11-04-18 17:09:25, Naoya Horiguchi wrote: > > > Hi everyone, > > > > > > I wrote patches introducing separate vm event counters for hugepage > > > migration > > > (both for

Re: [PATCH] checkpatch: Add a --strict test for structs with bool member definitions

2018-04-12 Thread Ingo Molnar
* Peter Zijlstra wrote: > I still have room in my /dev/null mailbox for pure checkpatch patches. > > > (ooh, https://lkml.org/lkml/2017/11/21/384 is working this morning) > > Yes, we really should not use lkml.org for references. Sadly google > displays it very

Re: [PATCH] swiotlb: Fix unexpected swiotlb_alloc_coherent() failures

2018-04-12 Thread Takashi Iwai
On Thu, 12 Apr 2018 08:02:27 +0200, Christoph Hellwig wrote: > > On Wed, Apr 11, 2018 at 09:28:54AM +0200, Takashi Iwai wrote: > > > But we should try a GFP_DMA32 allocation first, so this is a bit > > > surprising. > > > > Hm, do we really try that? > > Through a quick glance,

Re: KMSAN: uninit-value in netif_skb_features

2018-04-12 Thread Dmitry Vyukov
On Thu, Apr 12, 2018 at 10:01 AM, syzbot wrote: > Hello, > > syzbot hit the following crash on https://github.com/google/kmsan.git/master > commit > e2ab7e8abba47a2f2698216258e5d8727ae58717 (Fri Apr 6 16:24:31 2018 +) > kmsan: temporarily

Re: [PATCH v3 0/5] V3M-Eagle HDMI output enablement

2018-04-12 Thread Simon Horman
On Wed, Apr 11, 2018 at 02:43:05PM +0200, Jacopo Mondi wrote: > Hello, >I have rebased the Eagle display enablement on top of (part of) Sergei's > series: > [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Hi Jacopo, the emails with the patches of this series do not seem to have hit my

Re: [Xen-devel] [PATCH] x86/xen: zero MSR_IA32_SPEC_CTRL before suspend

2018-04-12 Thread Ingo Molnar
* Jan Beulich wrote: > >>> On 12.04.18 at 09:32, wrote: > > > * Jan Beulich wrote: > > > >> >>> On 11.04.18 at 13:53, wrote: > >> > * Jan Beulich wrote: > >> > > >> >> Additionally, x86

Re: [PATCH] checkpatch: Add a --strict test for structs with bool member definitions

2018-04-12 Thread Peter Zijlstra
On Wed, Apr 11, 2018 at 11:42:20PM -0700, Joe Perches wrote: > I personally do not find a significant issue with > uncontrolled sizes of bool in kernel structs as > all of the kernel structs are transitory and not > written out to storage. People that care about cache locality, false sharing and

Re: [PATCH] block/amiflop: Don't log an error message for an invalid ioctl

2018-04-12 Thread Geert Uytterhoeven
On Thu, Apr 12, 2018 at 3:23 AM, Finn Thain wrote: > Do as the swim3 driver does and just return -ENOTTY. > > Cc: Geert Uytterhoeven > Cc: linux-m...@lists.linux-m68k.org > Signed-off-by: Finn Thain Reviewed-by:

Re: [PATCH] swiotlb: Fix unexpected swiotlb_alloc_coherent() failures

2018-04-12 Thread Takashi Iwai
On Thu, 12 Apr 2018 10:03:56 +0200, Takashi Iwai wrote: > > On Thu, 12 Apr 2018 08:02:27 +0200, > Christoph Hellwig wrote: > > > > On Wed, Apr 11, 2018 at 09:28:54AM +0200, Takashi Iwai wrote: > > > > But we should try a GFP_DMA32 allocation first, so this is a bit > > > > surprising. > > > > >

Re: net_dim() may use uninitialized data

2018-04-12 Thread Tal Gilboa
On 4/5/2018 4:13 PM, Geert Uytterhoeven wrote: Hi Tal, With gcc-4.1.2: drivers/net/ethernet/broadcom/bcmsysport.c: In function ‘bcm_sysport_poll’: include/linux/net_dim.h:354: warning: ‘curr_stats.ppms’ may be used uninitialized in this function include/linux/net_dim.h:354:

Re: [PATCH v13 5/6] PCI: Unify wait for link active into generic PCI

2018-04-12 Thread poza
On 2018-04-10 04:55, Keith Busch wrote: On Mon, Apr 09, 2018 at 10:41:53AM -0400, Oza Pawandeep wrote: +/** + * pcie_wait_for_link - Wait for link till it's active/inactive + * @pdev: Bridge device + * @active: waiting for active or inactive ? + * + * Use this to wait till link becomes active

[PATCH] spi: imx: Update MODULE_DESCRIPTION to "SPI Controller driver"

2018-04-12 Thread wangbo
Now i.MX SPI controller can work in Slave mode. Update MODULE_DESCRIPTION to "SPI Controller driver". Signed-off-by: wangbo --- drivers/spi/spi-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index

Re: [PATCH v7 7/9] gpio: Add gpio driver for Actions OWL S900 SoC

2018-04-12 Thread Linus Walleij
On Wed, Apr 4, 2018 at 7:22 PM, Manivannan Sadhasivam wrote: > Add gpio driver for Actions Semi OWL family S900 SoC. Set of registers > controlling the gpio shares the same register range with pinctrl block. > > GPIO registers are organized as 6 banks and each

Re: [PATCH v2] readv.2, io_submit.2: Document RWF_APPEND added in Linux 4.16

2018-04-12 Thread Michael Kerrisk (man-pages)
On 04/06/2018 03:51 PM, Jürg Billeter wrote: > Signed-off-by: Jürg Billeter Thanks, Jürg. Patch applied. Cheers, Michael > --- > Changes since version 1: > - Explain offset handling > > man2/io_submit.2 | 13 + > man2/readv.2 | 17 + > 2

[PATCH v2 3/6] MIPS: perf: Fix perf with MT counting other threads

2018-04-12 Thread Matt Redfearn
When perf is used in non-system mode, i.e. without specifying CPUs to count on, check_and_calc_range falls into the case when it sets M_TC_EN_ALL in the counter config_base. This has the impact of always counting for all of the threads in a core, even when the user has not requested it. For

[PATCH v2 2/6] MIPS: perf: Use correct VPE ID when setting up VPE tracing

2018-04-12 Thread Matt Redfearn
There are a couple of FIXME's in the perf code which state that cpu_data[event->cpu].vpe_id reports 0 for both CPUs. This is no longer the case, since the vpe_id is used extensively by SMP CPS. VPE local counting gets around this by using smp_processor_id() instead. As it happens this does work

KASAN: use-after-scope Read in vmx_vcpu_run

2018-04-12 Thread syzbot
Hello, syzbot hit the following crash on upstream commit c18bb396d3d261ebbb4efbc05129c5d354c541e4 (Tue Apr 10 00:04:10 2018 +) Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=0553a14d42423600fe7f Unfortunately,

general protection fault in vmx_vcpu_run

2018-04-12 Thread syzbot
Hello, syzbot hit the following crash on upstream commit b284d4d5a6785f8cd07eda2646a95782373cd01e (Tue Apr 10 19:25:30 2018 +) Merge tag 'ceph-for-4.17-rc1' of git://github.com/ceph/ceph-client syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=cc483201a3c6436d3550 So far

Re: [PATCH 7/9] mtd: nand: qcom: check for operation errors in case of raw read

2018-04-12 Thread Abhishek Sahu
On 2018-04-10 15:42, Miquel Raynal wrote: Hi Abhishek, On Wed, 4 Apr 2018 18:12:23 +0530, Abhishek Sahu wrote: Currently there is no error checking for raw read. For raw reads, there won’t be any ECC failure but the operational failures are possible so schedule the

[tip:x86/pti] x86/pgtable: Don't set huge PUD/PMD on non-leaf entries

2018-04-12 Thread tip-bot for Joerg Roedel
Commit-ID: e3e288121408c3abeed5af60b87b95c847143845 Gitweb: https://git.kernel.org/tip/e3e288121408c3abeed5af60b87b95c847143845 Author: Joerg Roedel AuthorDate: Wed, 11 Apr 2018 17:24:38 +0200 Committer: Ingo Molnar CommitDate: Thu, 12 Apr 2018

Re: perf: fuzzer leads to trace_kprobe: Could not insert message flood

2018-04-12 Thread Ingo Molnar
* Song Liu wrote: > diff --git a/kernel/events/core.c b/kernel/events/core.c > index d7af828..2d5fe26 100644 > --- a/kernel/events/core.c > +++ b/kernel/events/core.c > @@ -8400,6 +8400,10 @@ static int perf_kprobe_event_init(struct perf_event > *event) > > if

Re: [Xen-devel] [PATCH] x86/xen: zero MSR_IA32_SPEC_CTRL before suspend

2018-04-12 Thread Jan Beulich
>>> On 12.04.18 at 09:32, wrote: > * Jan Beulich wrote: > >> >>> On 11.04.18 at 13:53, wrote: >> > * Jan Beulich wrote: >> > >> >> Additionally, x86 maintainers: is there a particular reason this (or >> >> any

Re: [PATCH 9/9] mtd: nand: qcom: erased page bitflips detection

2018-04-12 Thread Abhishek Sahu
On 2018-04-10 16:00, Miquel Raynal wrote: Hi Abhishek, On Wed, 4 Apr 2018 18:12:25 +0530, Abhishek Sahu wrote: Some of the newer nand parts can have bit flips in an erased page due to the process technology used. In this case, qpic AFAIK, this has always been

[GIT PULL] arch/microblaze patches for 4.17-rc1

2018-04-12 Thread Michal Simek
Hi, please pull the following patches to your tree. Thanks, Michal The following changes since commit c698ca5278934c0ae32297a8725ced2e27585d7f: Linux 4.16-rc6 (2018-03-18 17:48:42 -0700) are available in the Git repository at: git://git.monstr.eu/linux-2.6-microblaze.git

[PATCH v2] staging: wilc1000: Remove unnecessary braces {} around single statement block

2018-04-12 Thread Eyal Ilsar
Remove unnecessary braces {} around an 'if' statement block with a single statement. Issue found by checkpatch. Signed-off-by: Eyal Ilsar --- Added an empty line before the 'Signed-off-by' line and a space between the name and e-mail address within that line.

Re: [PATCH v4 1/8] arm: shmobile: Add the RZ/N1 arch to the shmobile Kconfig

2018-04-12 Thread Simon Horman
On Tue, Apr 10, 2018 at 09:30:01AM +0100, Michel Pollet wrote: > Add the RZ/N1 Family (Part #R9A06G0xx) ARCH config to the rest of > the Renesas SoC collection. > > Signed-off-by: Michel Pollet > Reviewed-by: Geert Uytterhoeven This change

Re: [PATCH] mmap.2: document new MAP_FIXED_NOREPLACE flag

2018-04-12 Thread Michael Kerrisk (man-pages)
On 04/11/2018 06:40 PM, Jann Horn wrote: > On Wed, Apr 11, 2018 at 6:36 PM, Michal Hocko wrote: >> On Wed 11-04-18 17:37:46, Jann Horn wrote: >>> On Wed, Apr 11, 2018 at 2:04 PM, wrote: From: Michal Hocko 4.17+ kernels offer

[PATCH] perf test: Adapt test case record+probe_libc_inet_pton.sh for s390

2018-04-12 Thread Thomas Richter
perf test case 58 (record+probe_libc_inet_pton.sh) executed on s390x using kernel 4.16.0rc3 displays this result: # ./perf trace --no-syscalls -e probe_libc:inet_pton/call-graph=dwarf/ ping -6 -c 1 ::1 probe_libc:inet_pton: (3ffa0240448) __GI___inet_pton

Re: [PATCH] mmap.2: document new MAP_FIXED_NOREPLACE flag

2018-04-12 Thread Michal Hocko
On Thu 12-04-18 10:04:06, Michael Kerrisk wrote: > Hello Michal, > > On 04/11/2018 02:04 PM, mho...@kernel.org wrote: > > From: Michal Hocko > > > > 4.17+ kernels offer a new MAP_FIXED_NOREPLACE flag which allows the caller > > to > > atomicaly probe for a given address range.

Re: [PATCH 4.9 022/310] pidns: disable pid allocation if pid_ns_prepare_proc() is failed in alloc_pid()

2018-04-12 Thread Greg Kroah-Hartman
On Wed, Apr 11, 2018 at 02:27:19PM -0500, Eric W. Biederman wrote: > Greg Kroah-Hartman writes: > > > 4.9-stable review patch. If anyone has any objections, please let me > > know. > > No objections but if you are grabbing that one please check if you > have it's

Re: [PATCH] sched/rt.c: pick and check task if double_lock_balance() unlock the rq

2018-04-12 Thread Libin (Huawei)
在 2018/4/11 18:26, Peter Zijlstra 写道: On Tue, Apr 10, 2018 at 06:05:46PM -0400, Steven Rostedt wrote: Peter, Going through my inbox, I stumbled across this one. And it doesn't appear to be addressed. I think this patch is a reasonable solution. Urgh, yeah, also seem to have forgotten

Re: [RFC tip/locking/lockdep v6 19/20] rcu: Equip sleepable RCU with lockdep dependency graph checks

2018-04-12 Thread Peter Zijlstra
On Thu, Apr 12, 2018 at 10:12:33AM +0800, Boqun Feng wrote: > A trivial fix/hack would be adding local_irq_disable() and > local_irq_enable() around srcu_lock_sync() like: > > static inline void srcu_lock_sync(struct lockdep_map *map) > { > local_irq_disable(); >

Potential problem with 31e77c93e432dec7 ("sched/fair: Update blocked load when newly idle")

2018-04-12 Thread Niklas Söderlund
Hi Vincent, I have observed issues running on linus/master from a few days back [1]. I'm running on a Renesas Koelsch board (arm32) and I can trigger a issue by X forwarding the v4l2 test application qv4l2 over ssh and moving the courser around in the GUI (best test case description award...).

Re: [PATCH] memory-model: fix cheat sheet typo

2018-04-12 Thread Andrea Parri
On Wed, Apr 11, 2018 at 01:15:58PM +0200, Paolo Bonzini wrote: > On 10/04/2018 23:34, Paul E. McKenney wrote: > > Glad it helps, and I have queued it for the next merge window. Of course, > > if a further improvement comes to mind, please do not keep it a secret. ;-) > > Yes, there are several

  1   2   3   4   5   6   7   8   >