Re: [PATCH v7 0/2]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-09-06 Thread Alexey Budankov
Hi, On 05.09.2018 21:51, Arnaldo Carvalho de Melo wrote: > Em Wed, Sep 05, 2018 at 08:37:32PM +0300, Alexey Budankov escreveu: >> On 05.09.2018 14:28, Jiri Olsa wrote: >>> can't apply this version on Arnaldo's perf/core... > >> my git remote -v > >> origin git://git.kernel.org/pub/scm/li

Re: [PATCH] mm,page_alloc: PF_WQ_WORKER threads must sleep at should_reclaim_retry().

2018-09-06 Thread Tetsuo Handa
Tetsuo Handa wrote: > Michal Hocko wrote: > > > I assert that we should fix af5679fbc669f31f. > > > > If you can come up with reasonable patch which doesn't complicate the > > code and it is a clear win for both this particular workload as well as > > others then why not. > > Why can't we do "at

Re: [PATCH v2] HID: i2c-hid: Don't reset device upon system resume

2018-09-06 Thread Benjamin Tissoires
On Thu, Sep 6, 2018 at 4:55 AM Kai-Heng Feng wrote: > > Raydium touchscreen triggers interrupt storm after system-wide suspend: > [ 179.085033] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplete > report (58/65535) > > According to Raydium, Windows driver does not reset the device after > syst

RE: [PATCH 4/7] dt-bindings: spi: add binding file for NXP FlexSPI driver

2018-09-06 Thread Jagdish Gediya
Hi Boris, Currently FlexSPI controller is present in ARM SoC but NXP is coming with PowerPC SoC with same FlexSPI controller. We are trying to use same binding as defined in this patch-set(tested on ARM64 processors) for PowerPC. Unfortunately, It is showing issue when driver tries to parse 'fs

Re: [PATCH] i2c: xiic: Make the start and the byte count write atomic

2018-09-06 Thread Shubhrajyoti Datta
Hi, On Tue, Sep 4, 2018 at 9:41 PM Wolfram Sang wrote: > > On Mon, Sep 03, 2018 at 03:11:11PM +0530, shubhrajyoti.da...@gmail.com wrote: > > From: Shubhrajyoti Datta > > > > Disable interrupts while configuring the transfer and enable them back. > > > > We have below as the programming sequence

[BUG BISECT] NFS root failure (NULL pointer)

2018-09-06 Thread Krzysztof Kozlowski
Hi, Today's next fails to mount NFS root under my ARM targets and fails to mount root from file image under QMU. [ 21.512866] Unable to handle kernel NULL pointer dereference at virtual address [ 21.695484] [] (nfs_fs_mount) from [] (legacy_get_tree+0x34/0xec) [ 21.703225] [] (legacy_get

Re: [PATCH 05/11] UAPI: coda: Don't use internal kernel structs in UAPI

2018-09-06 Thread David Howells
Yann Droneaud wrote: > This structure should not have been exposed to userspace in the first > place: it's unusable by userspace as it is. It was incorrect to have it > outside of #ifdef __KERNEL__ before commit 607ca46e97a1b ... > ... > All CODA_REQ_* defines internals to kernel side and not ex

Re: [RFC] UAPI: Check headers by compiling all together as C++

2018-09-06 Thread Yann Droneaud
Le mercredi 05 septembre 2018 à 19:33 +0200, Yann Droneaud a écrit : > Le mercredi 05 septembre 2018 à 18:55 +0200, Greg KH a écrit : > > On Wed, Sep 05, 2018 at 04:54:27PM +0100, David Howells wrote: > > > > > > Here's a set of patches that inserts a step into the build > > > process to make > >

Re: [PATCHv2 1/1] perf/x86/intel: make error messages less confusing

2018-09-06 Thread Peter Zijlstra
On Wed, Sep 05, 2018 at 02:47:07PM -0700, Andi Kleen wrote: > On Wed, Sep 05, 2018 at 08:53:17AM -0700, Eduardo Valentin wrote: > > On Wed, Sep 05, 2018 at 10:52:12AM +0200, Peter Zijlstra wrote: > > > On Thu, Aug 23, 2018 at 08:07:32AM -0700, Eduardo Valentin wrote: > > > > On a system with X86_FE

[PATCH] stm class: increase pos if no free channels found

2018-09-06 Thread Zhi Jin
Considering this case in find_free_channels(): bitmap: +--+-+-+-+-+-+-+-+-+-+-+ | .. |0|0|0|0|0|0|0|1|0|0| +--+-+-+-+-+-+-+-+-+-+-+ 1. Channel #2 has been occupied, so bit #2 is 1, and the others are all 0. 2. Another thread tr

Re: POSIX violation by writeback error

2018-09-06 Thread 焦晓冬
On Wed, Sep 5, 2018 at 4:09 PM 焦晓冬 wrote: > > On Tue, Sep 4, 2018 at 11:44 PM Jeff Layton wrote: > > > > On Tue, 2018-09-04 at 22:56 +0800, 焦晓冬 wrote: > > > On Tue, Sep 4, 2018 at 7:09 PM Jeff Layton wrote: > > > > > > > > On Tue, 2018-09-04 at 16:58 +0800, Trol wrote: > > > > > On Tue, Sep 4, 2

[PATCH] drm: refuse ADDFB2 ioctl for broken bigendian drivers

2018-09-06 Thread Gerd Hoffmann
Drivers must set the quirk_addfb_prefer_host_byte_order quirk to make the drm_mode_addfb() compat code work correctly on bigendian machines. If they don't they interpret pixel_format values incorrectly for bug compatibility, which in turn implies the ADDFB2 ioctl does not work correctly then. So

Re: [PATCH 4.19 regression fix] printk: For early boot messages check loglevel when flushing the buffer

2018-09-06 Thread Sergey Senozhatsky
On (09/05/18 13:02), Petr Mladek wrote: > Note that the first registered console prints all messages > even without this flag. Hmm, OK, interesting point. I assumed that the first console usually has CON_PRINTBUFFER bit set. Or even a CON_PRINTBUFFER | CON_ANYTIME combo. E.g. 8250. It sort of mak

Re: [PATCH v3] ata: Disable AHCI ALPM feature for Ampere Computing eMAG SATA

2018-09-06 Thread Hans de Goede
Hi, On 06-09-18 06:33, Suman Tripathi wrote: Due to hardware errata, Ampere Computing eMAG SATA can't support AHCI ALPM feature. This patch disables the AHCI ALPM feature for eMAG SATA. Changes for v2: * Introduce the new ata_port_info object which includes ATA_FLAG_NO_LPM. * Include this obje

Re: [PATCH RT 08/22] Revert "x86: UV: raw_spinlock conversion"

2018-09-06 Thread Sebastian Andrzej Siewior
On 2018-09-05 08:28:02 [-0400], Steven Rostedt wrote: > 4.14.63-rt41-rc1 stable review patch. > If anyone has any objections, please let me know. > > -- > > From: Sebastian Andrzej Siewior > > [ Upstream commit 2a9c45d8f89112458364285cbe2b0729561953f1 ] > > Drop the Ultraviolet

Re: [4.14.66-rt40] [report][cpuhotplug] BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:974

2018-09-06 Thread Sebastian Andrzej Siewior
On 2018-08-31 14:42:25 [-0500], Grygorii Strashko wrote: > > > On 08/31/2018 02:30 PM, Sebastian Andrzej Siewior wrote: > > On 2018-08-31 14:19:53 [-0500], Grygorii Strashko wrote: > >> > >> I've tried this and do not see warnings. I'm sending 4.14-rt patches i > >> have as > >> I could miss smt

Re: [PATCH RT 11/22] irqchip/gic-v3-its: Move ITS ->pend_page allocation into an early CPU up hook

2018-09-06 Thread Sebastian Andrzej Siewior
On 2018-09-05 08:28:05 [-0400], Steven Rostedt wrote: > 4.14.63-rt41-rc1 stable review patch. > If anyone has any objections, please let me know. could you please take commit d6914631a84f4 ("irqchip/gic-v3-its: Move pending table allocation to init time") https://git.kernel.org/pub/scm/linux/ke

Re: [PATCH v2] mm: slowly shrink slabs with a relatively small number of objects

2018-09-06 Thread kbuild test robot
/linux/commits/Roman-Gushchin/mm-slowly-shrink-slabs-with-a-relatively-small-number-of-objects/20180906-142351 config: openrisc-or1ksim_defconfig (attached as .config) compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental) reproduce: wget https://raw.githubusercontent.com/intel/lkp

Re: Plumbers 2018 - Performance and Scalability Microconference

2018-09-06 Thread Laurent Dufour
On 06/09/2018 01:01, Thomas Gleixner wrote: > On Wed, 5 Sep 2018, Laurent Dufour wrote: >> On 05/09/2018 17:10, Christopher Lameter wrote: >>> Large page sizes also reduce contention there. >> >> That's true for the page fault path, but for process's actions manipulating >> the >> memory process's

After a couple of months work, (re:Nyt Cloud - A universalized international streaming goods paradigm)

2018-09-06 Thread Email
After a couple of months work, I think Nyt Cloud is shaping up, and we are putting the finishing touches on it. A universalized international streaming goods paradigm, is indeed what it is about, and what a good computer OS needs to be about in these days. Internet is becoming professional, a

Re: [PATCH RT 00/22] Linux 4.14.63-rt41-rc1

2018-09-06 Thread Sebastian Andrzej Siewior
On 2018-09-05 08:27:54 [-0400], Steven Rostedt wrote: > Dear RT Folks, > > This is the RT stable review cycle of patch 4.14.63-rt41-rc1. > > Please scream at me if I messed something up. Please test the patches too. > > The -rc release will be uploaded to kernel.org and will be deleted when > th

Re: [PATCH] genirq: Avoid race between cpu hot plug and irq_desc() allocation paths

2018-09-06 Thread Thomas Gleixner
On Wed, 5 Sep 2018, pher...@codeaurora.org wrote: > On 2018-09-05 11:23, Thomas Gleixner wrote: > > On Wed, 5 Sep 2018, Prakruthi Deepak Heragu wrote: > > > > > One of the cores might have just allocated irq_desc() and other core > > > might be doing irq migration in the hot plug path. In the hot

[PATCH] KVM: x86: fix failure of injecting exceptions in x86_emulate_instruction

2018-09-06 Thread Yi Wang
In order to fix a page table walk issue, commit 6ea6e84309ca ("KVM: x86: inject exceptions produced by x86_decode_insn") check if variable ctxt->have_exception true and inject the exception. Unfortunately, ctxt->have_exception is set to true only in function x86_emulate_insn(), which won't be calle

[PATCH v3 08/12] RISC-V: Use mmgrab()

2018-09-06 Thread Atish Patra
From: Palmer Dabbelt commit f1f1007644ff ("mm: add new mmgrab() helper") added a helper that we missed out on. Signed-off-by: Palmer Dabbelt Reviewed-by: Christoph Hellwig Signed-off-by: Atish Patra --- arch/riscv/kernel/smpboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v3 10/12] RISC-V: Add logical CPU indexing for RISC-V

2018-09-06 Thread Atish Patra
Currently, both linux cpu id and hardware cpu id are same. This is not recommended as it will lead to discontinuous cpu indexing in Linux. Moreover, kdump kernel will run from CPU0 which would be absent if we follow existing scheme. Implement a logical mapping between Linux cpu id and hardware cpu

[PATCH] block: bfq: swap puts in bfqg_and_blkg_put

2018-09-06 Thread Konstantin Khlebnikov
Fix trivial use-after-free. This could be last reference to bfqg. Signed-off-by: Konstantin Khlebnikov Fixes: 8f9bebc33dd7 ("block, bfq: access and cache blkg data only when safe") --- block/bfq-cgroup.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/bfq-cgroup.

[PATCH v3 12/12] RISC-V: Support cpu hotplug.

2018-09-06 Thread Atish Patra
This patch enable support for cpu hotplug in RISC-V. In absence of generic cpu stop functions, WFI is used to put the cpu in low power state during offline. An IPI is sent to bring it out of WFI during online operation. Tested both on QEMU and HighFive Unleashed board with 4 cpus. Test result fol

[PATCH v3 04/12] RISC-V: Disable preemption before enabling interrupts

2018-09-06 Thread Atish Patra
Currently, irq is enabled before preemption disabling happens. If the scheduler fired right here and cpu is scheduled then it may blow up. Signed-off-by: Palmer Dabbelt [Atish: Commit text and code comment formatting update] Signed-off-by: Atish Patra --- arch/riscv/kernel/smpboot.c | 6 +-

[PATCH v3 09/12] RISC-V: User WRITE_ONCE instead of direct access

2018-09-06 Thread Atish Patra
The secondary harts spin on couple of per cpu variables until both of these are non-zero so it's not necessary to have any ordering here. However, WRITE_ONCE should be used to avoid tearing. Signed-off-by: Atish Patra --- arch/riscv/kernel/smpboot.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH v3 11/12] RISC-V: Use Linux logical cpu number instead of hartid

2018-09-06 Thread Atish Patra
Setup the cpu_logical_map during boot. Moreover, every SBI call and PLIC context are based on the physical hartid. Use the logical cpu to hartid mapping to pass correct hartid to respective functions. Signed-off-by: Atish Patra Reviewed-by : Anup Patel --- arch/riscv/include/asm/tlbflush.h | 1

[PATCH v3 07/12] RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu

2018-09-06 Thread Atish Patra
From: Palmer Dabbelt The old name was a bit odd. Signed-off-by: Palmer Dabbelt Signed-off-by: Atish Patra --- arch/riscv/kernel/smpboot.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c index cfb0b02d..4a23

[PATCH v3 06/12] RISC-V: Rename riscv_of_processor_hart to riscv_of_processor_hartid

2018-09-06 Thread Atish Patra
From: Palmer Dabbelt It's a bit confusing exactly what this function does: it actually returns the hartid of an OF processor node, failing with -1 on invalid nodes. I've changed the name to _hartid() in order to make that a bit more clear, as well as adding a comment. Signed-off-by: Palmer Dabb

[PATCH v3 05/12] RISC-V: Provide a cleaner raw_smp_processor_id()

2018-09-06 Thread Atish Patra
From: Palmer Dabbelt I'm not sure how I managed to miss this the first time, but this is much better. Signed-off-by: Palmer Dabbelt [Atish: code comment formatting and other fixes] Signed-off-by: Atish Patra --- arch/riscv/include/asm/smp.h | 14 -- 1 file changed, 4 insertions(+)

[PATCH v3 01/12] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes}

2018-09-06 Thread Atish Patra
From: Palmer Dabbelt These are just hard coded in the RISC-V port, which doesn't make any sense. We should probably be setting these from device tree entries when they exist, but for now I think it's saner to just leave them all as their default values. Signed-off-by: Palmer Dabbelt Reviewed-b

[PATCH v3 03/12] RISC-V: Comment on the TLB flush in smp_callin()

2018-09-06 Thread Atish Patra
From: Palmer Dabbelt This isn't readily apparent from reading the code. Signed-off-by: Palmer Dabbelt [Atish: code comment formatting update] Signed-off-by: Atish Patra --- arch/riscv/kernel/smpboot.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/riscv/kernel/smpboot.c b/arch/r

[PATCH v3 02/12] RISC-V: Filter ISA and MMU values in cpuinfo

2018-09-06 Thread Atish Patra
From: Palmer Dabbelt We shouldn't be directly passing device tree values to userspace, both because there could be mistakes in device trees and because the kernel doesn't support arbitrary ISAs. Signed-off-by: Palmer Dabbelt [Atish: checkpatch fix and code comment formatting update] Signed-off-

[PATCH v3 00/12] SMP cleanup and new features

2018-09-06 Thread Atish Patra
This patch series has updated the assorted cleanup series by palmer. The original cleanup patch series can be found here. http://lists.infradead.org/pipermail/linux-riscv/2018-August/001232.html It also implemented following smp related features. Some of the work has been inspired from ARM64. 1.

Re: [PATCH] kernel: cpu: Handle hotplug failure for state CPUHP_AP_IDLE_DEAD

2018-09-06 Thread Thomas Gleixner
On Wed, 5 Sep 2018, Prakruthi Deepak Heragu wrote: > Once the tear down hotplug handler is run, cpu is dead and enters > into CPUHP_AP_IDLE_DEAD state. Any callbacks that fail in the state > machine with state < CPUHP_AP_IDLE must be treated as fatal as this > could result into timer not beig migr

Re: [PATCH 2/2] thunderbolt: Initialize after IOMMUs

2018-09-06 Thread Lukas Wunner
On Wed, Sep 05, 2018 at 12:46:02PM +0300, Mika Westerberg wrote: > On Wed, Sep 05, 2018 at 10:47:46AM +0200, Lukas Wunner wrote: > > On Mon, Sep 03, 2018 at 04:20:12PM +0300, Mika Westerberg wrote: > > > If IOMMU is enabled and Thunderbolt driver is built into the kernel > > > image, it will be pro

Re: linux-next test error

2018-09-06 Thread Jan Kara
On Thu 06-09-18 00:37:06, Souptick Joarder wrote: > On Wed, Sep 5, 2018 at 2:25 PM Jan Kara wrote: > > > > On Wed 05-09-18 00:13:02, syzbot wrote: > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit:387ac6229ecf Add linux-next specific files for 20180905 > > >

Re: [PATCH v2 0/6] x86/alternatives: text_poke() fixes

2018-09-06 Thread Peter Zijlstra
On Wed, Sep 05, 2018 at 07:10:46PM +, Nadav Amit wrote: > at 12:02 PM, Nadav Amit wrote: > > > at 11:56 AM, Peter Zijlstra wrote: > > > >> On Sun, Sep 02, 2018 at 10:32:18AM -0700, Nadav Amit wrote: > >>> This patch-set addresses some issues that were raised in a recent > >>> correspondence

Re: [PATCH v7 0/2]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-09-06 Thread Jiri Olsa
On Thu, Sep 06, 2018 at 09:03:17AM +0300, Alexey Budankov wrote: > Hi, > > On 05.09.2018 21:51, Arnaldo Carvalho de Melo wrote: > > Em Wed, Sep 05, 2018 at 08:37:32PM +0300, Alexey Budankov escreveu: > >> On 05.09.2018 14:28, Jiri Olsa wrote: > >>> can't apply this version on Arnaldo's perf/core..

Re: [PATCH 16/21] x86: DT: use for_each_of_cpu_node iterator

2018-09-06 Thread Thomas Gleixner
On Wed, 5 Sep 2018, Rob Herring wrote: > Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This > has the side effect of defaulting to iterating using "cpu" node names in > preference to the deprecated (for FDT) device_type == "cpu". > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc

Re: [4.17 regression] Performance drop on kernel-4.17 visible on Stream, Linpack and NAS parallel benchmarks

2018-09-06 Thread Jirka Hladky
Hi Mel, we have results with 2d4056fafa196e1ab4e7161bae4df76f9602d56d reverted. * Compared to 4.18, there is still performance regression - especially with NAS (sp_C_x subtest) and SPECjvm2008. On 4 NUMA systems, regression is around 10-15% * Compared to 4.19rc1 there is a clear gain across a

[PATCH v4 0/2] Harden spectrev2 userspace-userspace protection

2018-09-06 Thread Jiri Kosina
Currently, linux kernel is basically not preventing userspace-userspace spectrev2 attack, because: - IBPB is basically unused (issued only for tasks that marked themselves explicitly non-dumpable, which is absolutely negligible minority of all software out there), therefore cross-process br

Re: [PATCH 08/11] UAPI: sound: Fix use of u32 and co. in UAPI headers

2018-09-06 Thread David Howells
Takashi Sakamoto wrote: > A similar patch was already proposed[1] and has been applied by Mark to > his tree[2]. Your issue (3) is going to be solved soon for v4.19 > kernel. Thanks, I've pulled the branch leading up to that commit into the base of mine. It seems the changes were identical:-)

Re: [PATCH v4 02/16] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-09-06 Thread Juri Lelli
On 28/08/18 14:53, Patrick Bellasi wrote: [...] > static inline int __setscheduler_uclamp(struct task_struct *p, > const struct sched_attr *attr) > { > - if (attr->sched_util_min > attr->sched_util_max) > - return -EINVAL; > - if (attr->

[PATCH v4 1/2] x86/speculation: apply IBPB more strictly to avoid cross-process data leak

2018-09-06 Thread Jiri Kosina
From: Jiri Kosina Currently, we are issuing IBPB only in cases when switching into a non-dumpable process, the rationale being to protect such 'important and security sensitive' processess (such as GPG) from data leak into a different userspace process via spectre v2. This is however completely

[PATCH v4 2/2] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation

2018-09-06 Thread Jiri Kosina
From: Jiri Kosina STIBP is a feature provided by certain Intel ucodes / CPUs. This feature (once enabled) prevents cross-hyperthread control of decisions made by indirect branch predictors. Enable this feature if - the CPU is vulnerable to spectre v2 - the CPU supports SMT and has SMT siblings

Re: [PATCH] cpu/hotplug: Fix rollback during error-out in takedown_cpu()

2018-09-06 Thread Thomas Gleixner
On Thu, 6 Sep 2018, Neeraj Upadhyay wrote: > On 09/05/2018 06:47 PM, Thomas Gleixner wrote: > > On Wed, 5 Sep 2018, Neeraj Upadhyay wrote: > > > On 09/05/2018 05:53 PM, Thomas Gleixner wrote: > > > > And looking closer this is a general issue. Just that the TEARDOWN state > > > > makes it simple to

Re: [PATCH v7 0/2]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-09-06 Thread Alexey Budankov
Hi, On 06.09.2018 11:14, Jiri Olsa wrote: > On Thu, Sep 06, 2018 at 09:03:17AM +0300, Alexey Budankov wrote: >> Hi, >> >> On 05.09.2018 21:51, Arnaldo Carvalho de Melo wrote: >>> Em Wed, Sep 05, 2018 at 08:37:32PM +0300, Alexey Budankov escreveu: On 05.09.2018 14:28, Jiri Olsa wrote: > ca

linux-next boot error (2)

2018-09-06 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:509d1f0c294a Add linux-next specific files for 20180906 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=157b857a40 kernel config: https://syzkaller.appspot.com/x/.config?x=d1a648893bbc933

Re: [PATCH v3 3/3] ARM64: dts: meson-gx: add dmcbus and canvas nodes.

2018-09-06 Thread Maxime Jourdan
Hi Kevin, If you don't mind, please change the title from "ARM64" to "arm64" if this gets merged. Thanks! Maxime

Re: [PATCH 3/7] spi: spi-mem: Add a driver for NXP FlexSPI controller

2018-09-06 Thread Frieder Schrempf
Hi Yogesh, On 05.09.2018 12:07, Yogesh Narayan Gaur wrote: Hi Boris, -Original Message- From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] Sent: Tuesday, September 4, 2018 8:29 PM To: Yogesh Narayan Gaur Cc: linux-...@lists.infradead.org; marek.va...@gmail.com; linux- s...@vge

Re: [PATCH v3 2/3] soc: amlogic: add meson-canvas driver

2018-09-06 Thread Maxime Jourdan
Hi Kevin, Please create an immutable tag for this patch, as this is a hard dependency for the video decoder patches. This will make it easier for Mauro. Thanks, Maxime

[PATCH v4 1/2] x86/speculation: apply IBPB more strictly to avoid cross-process data leak

2018-09-06 Thread Jiri Kosina
From: Jiri Kosina Currently, we are issuing IBPB only in cases when switching into a non-dumpable process, the rationale being to protect such 'important and security sensitive' processess (such as GPG) from data leak into a different userspace process via spectre v2. This is however completely

[PATCH v4 2/2] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation

2018-09-06 Thread Jiri Kosina
From: Jiri Kosina STIBP is a feature provided by certain Intel ucodes / CPUs. This feature (once enabled) prevents cross-hyperthread control of decisions made by indirect branch predictors. Enable this feature if - the CPU is vulnerable to spectre v2 - the CPU supports SMT and has SMT siblings

Re: [PATCH 18/21] edac: cpc925: use for_each_of_cpu_node iterator

2018-09-06 Thread Borislav Petkov
On Wed, Sep 05, 2018 at 02:37:35PM -0500, Rob Herring wrote: > Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This > has the side effect of defaulting to iterating using "cpu" node names in > preference to the deprecated (for FDT) device_type == "cpu". > > Cc: Borislav Petkov >

Re: linux-next test error

2018-09-06 Thread Jan Kara
On Thu 06-09-18 00:54:50, Souptick Joarder wrote: > On Wed, Sep 5, 2018 at 7:05 PM Theodore Y. Ts'o wrote: > > > > On Wed, Sep 05, 2018 at 03:20:16PM +0530, Souptick Joarder wrote: > > > > > > "fs: convert return type int to vm_fault_t" is still under > > > review/discusson and not yet merge > > >

Re: [PATCH RT 08/22] Revert "x86: UV: raw_spinlock conversion"

2018-09-06 Thread Mike Galbraith
On Thu, 2018-09-06 at 09:35 +0200, Sebastian Andrzej Siewior wrote: > On 2018-09-05 08:28:02 [-0400], Steven Rostedt wrote: > > 4.14.63-rt41-rc1 stable review patch. > > If anyone has any objections, please let me know. > > > > -- > > > > From: Sebastian Andrzej Siewior > > > >

Re: [PATCH v5 10/16] x86/mce: enable Hygon support to MCE infrastructure

2018-09-06 Thread Borislav Petkov
On Thu, Sep 06, 2018 at 11:52:42AM +0800, Pu Wen wrote: > In most of the normal use cases MCE is necessary. Rarely in some cases > such as for test purpose MCE may be unselected. Test with MCE disabled? Please elaborate. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-pos

Re: linux-next boot error (2)

2018-09-06 Thread David Howells
Do we know what type of filesystem is on the root device? Also, is there a way to tell if AppArmor denied something? David

Re: [PATCH 1/3] thunderbolt: Make the driver less verbose

2018-09-06 Thread Lukas Wunner
On Wed, Sep 05, 2018 at 12:54:51PM +0300, Mika Westerberg wrote: > On Wed, Sep 05, 2018 at 11:05:10AM +0200, Lukas Wunner wrote: > > On Mon, Sep 03, 2018 at 04:33:02PM +0300, Mika Westerberg wrote: > > > Currently the driver logs quite a lot to the system message buffer even > > > when doing normal

Re: [PATCH v2 0/6] x86/alternatives: text_poke() fixes

2018-09-06 Thread Peter Zijlstra
On Thu, Sep 06, 2018 at 10:13:00AM +0200, Peter Zijlstra wrote: > No, you got it the first time. There are in fact more fixmap abusers; > see drivers/acpi/apei/ghes.c. Also, as long as set_fixmap() allows > overwriting a _PAGE_PRESENT pte and has that dodgy > __flush_tlb_one_kernel() in it, the b

Re: [RFC PATCH 18/29] memblock: replace alloc_bootmem_low_pages with memblock_alloc_low

2018-09-06 Thread Michal Hocko
On Wed 05-09-18 18:59:33, Mike Rapoport wrote: > The conversion is done using the following semantic patch: > > @@ > expression e; > @@ > - alloc_bootmem_low_pages(e) > + memblock_alloc_low(e, PAGE_SIZE) > > Signed-off-by: Mike Rapoport Again, I trust Coccinelle to do the right thing and from a

Re: [PATCH 1/1] axi-i2s: set period size register

2018-09-06 Thread Michal Simek
On 27.8.2018 18:22, Luca Ceresoli wrote: > Hi, > > thanks for your feedback. > > [Adding Michal Simek (Xilinx maintainer) in Cc] > > On 27/08/2018 14:27, Lars-Peter Clausen wrote: >> On 08/24/2018 06:04 PM, Luca Ceresoli wrote: >>> The default value of the PERIOD_LEN register is 0 and results in

Re: [PATCH 01/21] of: Add cpu node iterator for_each_of_cpu_node()

2018-09-06 Thread Geert Uytterhoeven
On Wed, Sep 5, 2018 at 9:38 PM Rob Herring wrote: > Iterating thru cpu nodes is a common pattern. Create a common iterator > which can find child nodes either by node name or device_type == cpu. > Using the former will allow for eventually dropping device_type > properties which are deprecated for

Re: [PATCH] platform/x86: ideapad-laptop: Use __func__ instead of read_ec_cmd in pr_err

2018-09-06 Thread Ike Panhc
On 09/04/2018 03:08 PM, Zhang Xianwei wrote: > Refer to the commit f1395edbcec8 ("platform/x86: ideapad-laptop: Use > __func__ instead of write_ec_cmd in pr_err"), prefer using '"%s...", > __func__' to using 'read_ec_cmd' in read_ec_data. > > Signed-off-by: Zhang Xianwei > --- > drivers/platform

Re: [PATCH v9 09/22] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-09-06 Thread Pierre Morel
On 13/08/2018 23:48, Tony Krowiak wrote: From: Tony Krowiak Registers the matrix device created by the VFIO AP device driver with the VFIO mediated device framework. Registering the matrix device will create the sysfs structures needed to create mediated matrix devices each of which will be use

[PATCH 1/2] mtd: nand: reorder nand manufacturer ids

2018-09-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Reorder NAND manufacturer ids for clarity. Signed-off-by: Marcel Ziswiler --- drivers/mtd/nand/raw/nand_ids.c | 20 ++-- include/linux/mtd/rawnand.h | 8 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/mtd/nand/raw/

[PATCH 2/2] mtd: nand: esmt: retrieve ecc requirements from 5th id byte

2018-09-06 Thread Marcel Ziswiler
From: Marcel Ziswiler This patch enables support to read the ECC level from the NAND flash using ESMT SLC NAND ID byte 5 information as documented e.g. in the following data sheet: https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F59L1G81LA(2Y).pdf Signed-off-by: Marcel Ziswiler --- drive

[PATCH] vme: remove unneeded kfree

2018-09-06 Thread Ding Xiang
put_device will call vme_dev_release to free vdev, kfree is unnecessary here. Signed-off-by: Ding Xiang --- drivers/vme/vme.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/vme/vme.c b/drivers/vme/vme.c index 92500f6..520a5f9 100644 --- a/drivers/vme/vme.c +++ b/drivers/vme/vme.c @@

[PATCH v2 2/2] powerpc/process: Constify the number of insns printed by show instructions functions.

2018-09-06 Thread Christophe Leroy
instructions_to_print var is assigned value 16 and there is no way to change it. This patch replaces it by a constant. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/process.c

Re: linux-next boot error (2)

2018-09-06 Thread Dmitry Vyukov
On Thu, Sep 6, 2018 at 10:41 AM, David Howells wrote: > Do we know what type of filesystem is on the root device? ext4 The image is built with this script (you can find mkfs.ext4 there): https://github.com/google/syzkaller/blob/master/tools/create-gce-image.sh > Also, is there a way to tell if

Re: [PATCH 1/1] coresight: etm4x: Configure EL2 exception level when kernel is running in HYP

2018-09-06 Thread Tomasz Nowicki
Hi Mathieu, On 05.09.2018 22:34, Mathieu Poirier wrote: Hi Tomasz, On Tue, Sep 04, 2018 at 04:20:34PM +0200, Tomasz Nowicki wrote: For non-VHE systems host kernel runs at EL1 and jumps to EL2 whenever hypervisor code should be executed. In this case ETM4x driver must restrict configuration to

Re: [PATCH] cpu/hotplug: Fix rollback during error-out in takedown_cpu()

2018-09-06 Thread Neeraj Upadhyay
On 09/06/2018 01:48 PM, Thomas Gleixner wrote: On Thu, 6 Sep 2018, Neeraj Upadhyay wrote: On 09/05/2018 06:47 PM, Thomas Gleixner wrote: On Wed, 5 Sep 2018, Neeraj Upadhyay wrote: On 09/05/2018 05:53 PM, Thomas Gleixner wrote: And looking closer this is a general issue. Just that the TEARD

Re: [PATCH v2 4/6] x86/alternatives: initializing temporary mm for patching

2018-09-06 Thread Peter Zijlstra
On Sun, Sep 02, 2018 at 10:32:22AM -0700, Nadav Amit wrote: > +void __init poking_init(void) > +{ > + unsigned long poking_addr; > + > + poking_mm = copy_init_mm(); > + if (!poking_mm) { > + pr_err("x86/mm: error setting a separate poking address space"); > + ret

[PATCH] perf tools: use PTR_ERR_OR_ZERO inetead of return code

2018-09-06 Thread Ding Xiang
use PTR_ERR_OR_ZERO for bpf__setup_stdout return code Signed-off-by: Ding Xiang --- tools/perf/util/bpf-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c index 47aac41..f9ae1a9 100644 --- a/tools/perf/util/bpf

[PATCH] ARM: dts: stih410: change syntax of multiple DAI

2018-09-06 Thread patrice.chotard
From: Christophe Priouzeau With change of syntax for 'simple-audio-card,dai-link' containers, devicetrees of stih410 must be updated. This fixes the following error: [3.839466] asoc-simple-card sound: asoc_simple_card_dai_link_of: Can't find simple-audio-card,cpu DT node [3.849150] asoc

Re: [PATCH 1/2] powerpc/process: fix nested output in show_user_instructions()

2018-09-06 Thread Christophe LEROY
Le 21/08/2018 à 08:27, Michael Ellerman a écrit : Christophe Leroy writes: When two processes crash at the same time, we sometimes encounter nesting in the middle of a line: I think "interleaved" is the right word, rather than "nesting". They're actually (potentially) completely unrelate

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-06 Thread Petr Mladek
On Thu 2018-09-06 11:31:51, Sergey Senozhatsky wrote: > Hello, > > On (09/05/18 21:33), Steven Rostedt wrote: > > do_idle { > > > > [interrupts enabled] > > > > [interrupts disabled] > > TRACE_IRQS_OFF [lockdep says irqs off] > > [...] > > TRACE_IRQS_IRET > > test

Re: [RFC PATCH 25/29] memblock: rename free_all_bootmem to memblock_free_all

2018-09-06 Thread Michal Hocko
On Wed 05-09-18 18:59:40, Mike Rapoport wrote: > The conversion is done using > > sed -i 's@free_all_bootmem@memblock_free_all@' \ > $(git grep -l free_all_bootmem) > > Signed-off-by: Mike Rapoport Acked-by: Michal Hocko -- Michal Hocko SUSE Labs

Re: [PATCH v2 1/2] PCI/ACPI: correct error message for ASPM disabling

2018-09-06 Thread Rafael J. Wysocki
On Wed, Sep 5, 2018 at 11:20 PM Bjorn Helgaas wrote: > > On Fri, Aug 10, 2018 at 04:32:11AM +, Sinan Kaya wrote: > > If _OSC execution fails today for platforms without an _OSC > > entry, code is printing a misleading message saying disabling > > ASPM as follows: > > > > acpi PNP0A03:00: _OSC

[PATCH v2 05/14] coresight: etm4x: Add support for handling errors

2018-09-06 Thread Suzuki K Poulose
Add support for handling errors in enabling the component. The ETM is enabled via cross call to owner CPU. Make necessary changes to report the error back from the cross call. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm4x.c | 39

[PATCH v2 02/14] coresight: tmc-etr: Refactor for handling errors

2018-09-06 Thread Suzuki K Poulose
Refactor the tmc-etr enable operation to make it easier to handle errors in enabling the hardware. We need to make sure that the buffer is compatible with the ETR. This patch re-arranges to make the error handling easier, by deferring the hardware enablement until all the errors are checked. This a

[PATCH v2 06/14] coresight: etm3: Add support for handling errors

2018-09-06 Thread Suzuki K Poulose
Add support for reporting errors back from the SMP cross function call for enabling ETM. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Fix build break, missing ;. (Mathieu Poirier) --- drivers/hwtracing/coresight/coresight-etm3x.c | 42 ++-

[PATCH v2 00/14] coresight: Implement device claim protocol

2018-09-06 Thread Suzuki K Poulose
Coresight architecture defines CLAIM tags for a device to negotiate control of the components (external agent vs self-hosted). Each device has a pair of registers (CLAIMSET & CLAIMCLR) for managing the CLAIM tags. However, the protocol for the CLAIM tags is IMPLEMENTATION DEFINED. PSCI has recommen

[PATCH v2 13/14] coresight: dynamic-replicator: Claim device for use

2018-09-06 Thread Suzuki K Poulose
Use CLAIM protocol to make sure the device is available for use. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresight-dynamic-replicator.c | 23 +- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight/cor

[PATCH v2 14/14] coreisght: tmc: Claim device before use

2018-09-06 Thread Suzuki K Poulose
Use CLAIM tags to make sure the device is available for use. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 22 +++--- drivers/hwtracing/coresight/coresight-tmc-etr.c | 4 2 files changed, 23 insertions(+), 3 delet

[PATCH v2 11/14] coresight: funnel: Claim devices before use

2018-09-06 Thread Suzuki K Poulose
Use the CLAIM protocol to grab the ownership of the component. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-funnel.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight/cores

[PATCH v2 12/14] coresight: catu: Claim device before use

2018-09-06 Thread Suzuki K Poulose
Use the CLAIM protocol to grab the ownership of the component when in use. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-catu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-catu.c b/drivers/hwtra

[PATCH v2 09/14] coresight: Add support for CLAIM tag protocol

2018-09-06 Thread Suzuki K Poulose
Coresight architecture defines CLAIM tags for a device to negotiate control of the components (external agent vs self-hosted). Each device has a pair of registers (CLAIMSET & CLAIMCLR) for managing the CLAIM tags. However, the protocol for the CLAIM tags is IMPLEMENTATION DEFINED. PSCI has recommen

[PATCH v2 10/14] coresight: etmx: Claim devices before use

2018-09-06 Thread Suzuki K Poulose
Use the CLAIM tags to grab the device for self-hosted usage. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm3x.c | 16 +--- drivers/hwtracing/coresight/coresight-etm4x.c | 14 +++--- 2 files changed, 24 insertions(+), 6 delet

[PATCH v2 08/14] coresight: dynamic-replicator: Handle multiple connections

2018-09-06 Thread Suzuki K Poulose
When a replicator port is enabled, we block the traffic on the other port and route all traffic to the new enabled port. If there are two active trace sessions each targeting the two different paths from the replicator, the second session will disable the first session and route all the data to the

[PATCH v2 07/14] coresight: etb10: Handle errors enabling the device

2018-09-06 Thread Suzuki K Poulose
Prepare the etb10 driver to return errors in enabling the device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Rebased to the coresight/next --- drivers/hwtracing/coresight/coresight-etb10.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-

[PATCH v2 03/14] coresight: tmc-etr: Handle errors enabling CATU

2018-09-06 Thread Suzuki K Poulose
Make sure we honor the errors in CATU device and abort the operation. While at it, delay setting the etr_buf for the session until we are sure that we are indeed enabling the ETR. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 19 ++

Re: [PATCH] perf tools: use PTR_ERR_OR_ZERO inetead of return code

2018-09-06 Thread Jiri Olsa
On Thu, Sep 06, 2018 at 05:04:08PM +0800, Ding Xiang wrote: > use PTR_ERR_OR_ZERO for bpf__setup_stdout return code > > Signed-off-by: Ding Xiang > --- > tools/perf/util/bpf-loader.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/bpf-loader.c b/tools/pe

[PATCH v2 04/14] coresight: tmc-etb/etf: Prepare to handle errors enabling

2018-09-06 Thread Suzuki K Poulose
Prepare to handle errors in enabling the hardware and report it back to the core driver. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Fix return code for tmc_enable_etf_link (Mathieu Poirier) --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 73 ++

[PATCH v2 01/14] coresight: Handle failures in enabling a trace path

2018-09-06 Thread Suzuki K Poulose
coresight_enable_path() enables the components in a trace path from a given source to a sink, excluding the source. The operation is performed in the reverse order; the sink first and then backwards in the list. However, if we encounter an error in enabling any of the component, we simply disable a

Re: [PATCH 4/7] crypto: add hisilicon Queue Manager driver

2018-09-06 Thread Kenneth Lee
On Sun, Sep 02, 2018 at 07:15:07PM -0700, Randy Dunlap wrote: > Date: Sun, 2 Sep 2018 19:15:07 -0700 > From: Randy Dunlap > To: Kenneth Lee , Jonathan Corbet , > Herbert Xu , "David S . Miller" > , Joerg Roedel , Alex Williamson > , Kenneth Lee , Hao > Fang , Zhou Wang , Zaibo Xu > , Philippe

  1   2   3   4   5   6   7   8   9   10   >