[tip:x86/build] x86/paravirt: Work around GCC inlining bugs when compiling paravirt ops

2018-10-04 Thread tip-bot for Nadav Amit
Commit-ID: 494b5168f2de009eb80f198f668da374295098dd Gitweb: https://git.kernel.org/tip/494b5168f2de009eb80f198f668da374295098dd Author: Nadav Amit AuthorDate: Wed, 3 Oct 2018 14:30:57 -0700 Committer: Ingo Molnar CommitDate: Thu, 4 Oct 2018 11:25:00 +0200 x86/paravirt: Work around GCC

[tip:sched/core] sched/core: Fix comment regarding nr_iowait_cpu() and get_iowait_load()

2018-10-04 Thread tip-bot for Rafael J. Wysocki
Commit-ID: 9c2298aad355d8c1957df3015448fef333526934 Gitweb: https://git.kernel.org/tip/9c2298aad355d8c1957df3015448fef333526934 Author: Rafael J. Wysocki AuthorDate: Thu, 4 Oct 2018 11:05:14 +0200 Committer: Ingo Molnar CommitDate: Thu, 4 Oct 2018 11:25:56 +0200 sched/core: Fix comment

[tip:x86/build] x86/bug: Macrofy the BUG table section handling, to work around GCC inlining bugs

2018-10-04 Thread tip-bot for Nadav Amit
Commit-ID: f81f8ad56fd1c7b99b2ed1c314527f7d9ac447c6 Gitweb: https://git.kernel.org/tip/f81f8ad56fd1c7b99b2ed1c314527f7d9ac447c6 Author: Nadav Amit AuthorDate: Wed, 3 Oct 2018 14:30:56 -0700 Committer: Ingo Molnar CommitDate: Thu, 4 Oct 2018 11:25:00 +0200 x86/bug: Macrofy the BUG table

[tip:x86/build] x86/alternatives: Macrofy lock prefixes to work around GCC inlining bugs

2018-10-04 Thread tip-bot for Nadav Amit
Commit-ID: 77f48ec28e4ccff94d2e5f4260a83ac27a7f3099 Gitweb: https://git.kernel.org/tip/77f48ec28e4ccff94d2e5f4260a83ac27a7f3099 Author: Nadav Amit AuthorDate: Wed, 3 Oct 2018 14:30:55 -0700 Committer: Ingo Molnar CommitDate: Thu, 4 Oct 2018 11:24:59 +0200 x86/alternatives: Macrofy lock

Re: [RESEND PATCH v4 1/8] bitops: Introduce the for_each_set_clump macro

2018-10-04 Thread William Breathitt Gray
On Tue, Oct 02, 2018 at 09:42:48AM +0200, Rasmus Villemoes wrote: > On 2018-10-02 03:13, William Breathitt Gray wrote: > > This macro iterates for each group of bits (clump) with set bits, within > > a bitmap memory region. For each iteration, "clump" is set to the found > > clump index, "index" is

[tip:x86/build] kbuild/Makefile: Prepare for using macros in inline assembly code to work around asm() related GCC inlining bugs

2018-10-04 Thread tip-bot for Nadav Amit
Commit-ID: 77b0bf55bc675233d22cd5df97605d516d64525e Gitweb: https://git.kernel.org/tip/77b0bf55bc675233d22cd5df97605d516d64525e Author: Nadav Amit AuthorDate: Wed, 3 Oct 2018 14:30:52 -0700 Committer: Ingo Molnar CommitDate: Thu, 4 Oct 2018 10:57:09 +0200 kbuild/Makefile: Prepare for u

[tip:x86/build] x86/refcount: Work around GCC inlining bug

2018-10-04 Thread tip-bot for Nadav Amit
Commit-ID: 9e1725b410594911cc5981b6c7b4cea4ec054ca8 Gitweb: https://git.kernel.org/tip/9e1725b410594911cc5981b6c7b4cea4ec054ca8 Author: Nadav Amit AuthorDate: Wed, 3 Oct 2018 14:30:54 -0700 Committer: Ingo Molnar CommitDate: Thu, 4 Oct 2018 11:24:59 +0200 x86/refcount: Work around GCC

[tip:x86/build] x86/objtool: Use asm macros to work around GCC inlining bugs

2018-10-04 Thread tip-bot for Nadav Amit
Commit-ID: c06c4d8090513f2974dfdbed2ac98634357ac475 Gitweb: https://git.kernel.org/tip/c06c4d8090513f2974dfdbed2ac98634357ac475 Author: Nadav Amit AuthorDate: Wed, 3 Oct 2018 14:30:53 -0700 Committer: Ingo Molnar CommitDate: Thu, 4 Oct 2018 11:24:58 +0200 x86/objtool: Use asm macros to

[tip:x86/build] kbuild/arch/xtensa: Define LINKER_SCRIPT for the linker script

2018-10-04 Thread tip-bot for Nadav Amit
Commit-ID: 35e76b99ddf20405a6196bb7c9eb152675c93106 Gitweb: https://git.kernel.org/tip/35e76b99ddf20405a6196bb7c9eb152675c93106 Author: Nadav Amit AuthorDate: Wed, 3 Oct 2018 14:30:51 -0700 Committer: Ingo Molnar CommitDate: Thu, 4 Oct 2018 10:05:38 +0200 kbuild/arch/xtensa: Define LIN

Re: [PATCH v7 05/14] sched: Introduce a sched_feat for Energy Aware Scheduling

2018-10-04 Thread Quentin Perret
On Wednesday 03 Oct 2018 at 18:24:35 (+0200), Peter Zijlstra wrote: > Yeah, sysctl, see for example: sysctl.kernel.numa_balancing and the > sched_numa_balancing static_key that goes with it. OK, that works for me. > I would default enable EAS if the EM is there and valid, but allow > people to di

Re: [PATCH] block: BFQ default for single queue devices

2018-10-04 Thread Ulf Hansson
On 3 October 2018 at 19:34, Bryan Gurney wrote: > On Wed, Oct 3, 2018 at 11:53 AM, Paolo Valente > wrote: >> >> >>> Il giorno 03 ott 2018, alle ore 10:28, Linus Walleij >>> ha scritto: >>> >>> On Wed, Oct 3, 2018 at 9:42 AM Damien Le Moal wrote: >>> There is another class of outliers: ho

Re: [PATCH trivial] reset: Grammar s/more then once/more than once/

2018-10-04 Thread Philipp Zabel
On Wed, 2018-09-26 at 15:20 +0200, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven > --- > include/linux/reset.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/reset.h b/include/linux/reset.h > index 09732c36f3515a1e..29af6d6b2f4b8103 100644

Re: [PATCH v2] KVM: arm/arm64: Check memslot bounds before mapping hugepages

2018-10-04 Thread Punit Agrawal
Hi Lukas, Lukas Braun writes: > Userspace can create a memslot with memory backed by (transparent) > hugepages, but with bounds that do not align with hugepages. > In that case, we cannot map the entire region in the guest as hugepages > without exposing additional host memory to the guest and p

Re: [PATCH] reset: socfpga: add an early reset driver for SoCFPGA

2018-10-04 Thread Philipp Zabel
Hi Dinh, On Mon, 2018-09-17 at 09:50 -0500, Dinh Nguyen wrote: > Create a separate reset driver that uses the reset operations in reset-simple. > The reset driver for the SoCFPGA platform needs to register early in order to > be able bring online timers that needed early in the kernel bootup. > >

Re: [RFC PATCH v3 1/5] mm/memory_hotplug: Add nid parameter to arch_remove_memory

2018-10-04 Thread David Hildenbrand
On 02/10/2018 17:00, Oscar Salvador wrote: > From: Oscar Salvador > > This patch is only a preparation for the following-up patches. > The idea of passing the nid is that will allow us to get rid > of the zone parameter in the patches that follow > > Signed-off-by: Oscar Salvador > --- > arch/

Re: [PATCH v7 12/14] sched/fair: Select an energy-efficient CPU on task wake-up

2018-10-04 Thread Peter Zijlstra
On Wed, Sep 12, 2018 at 10:13:07AM +0100, Quentin Perret wrote: > + while (pd) { > + unsigned long cur_energy, spare_cap, max_spare_cap = 0; > + int max_spare_cap_cpu = -1; > + > + for_each_cpu_and(cpu, perf_domain_span(pd), > sched_domain_span(sd)) { Which

Re: [RFC PATCH] mm, proc: report PR_SET_THP_DISABLE in proc

2018-10-04 Thread Michal Hocko
On Thu 04-10-18 02:15:38, David Rientjes wrote: > On Thu, 4 Oct 2018, Michal Hocko wrote: > > > > > > > So how about this? (not tested yet but it should be pretty > > > > > > straightforward) > > > > > > > > > > Umm, prctl(PR_GET_THP_DISABLE)? > > > > > > > > /me confused. I thought you want to

Re: [PATCH 1/3] mtd: spi-nor: Add Octal mode support for mt35xu512aba

2018-10-04 Thread Boris Brezillon
On Wed, 3 Oct 2018 22:26:01 +0530 Vignesh R wrote: > Micron's mt35xu512aba flash is an Octal flash that has x8 IO lines. It > supports read/write over 8 IO lines simulatenously. Add support for > Octal read mode for Micron mt35xu512aba. > Unfortunately, this flash is only complaint to SFDP JESD21

Re: [PATCH v7 08/14] sched/topology: Disable EAS on inappropriate platforms

2018-10-04 Thread Quentin Perret
On Thursday 04 Oct 2018 at 11:38:48 (+0200), Peter Zijlstra wrote: > On Thu, Oct 04, 2018 at 10:10:48AM +0100, Quentin Perret wrote: > > On Wednesday 03 Oct 2018 at 18:27:19 (+0200), Peter Zijlstra wrote: > > > On Wed, Sep 12, 2018 at 10:13:03AM +0100, Quentin Perret wrote: > > > > @@ -288,6 +321,2

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread Ingo Molnar
* Nadav Amit wrote: > > Another, separate question I wanted to ask: how do we ensure that the > > kernel stays fixed? > > I.e. is there some tooling we can use to actually measure whether there's > > bad inlining decisions > > done, to detect all these bad patterns that cause bad GCC code ge

Re: [PATCH 2/2] cpuidle/drivers/menu: Remove get_loadavg in the performance multiplier

2018-10-04 Thread Rafael J. Wysocki
On Thursday, October 4, 2018 11:36:44 AM CEST Peter Zijlstra wrote: > On Thu, Oct 04, 2018 at 10:47:04AM +0200, Rafael J. Wysocki wrote: > > > > The comment is irrelevant as the remaining function is used for > > > statistics in addition to the perf multiplier. It does exactly what the > > > funct

Re: [RFC] x86/cpu_entry_area: move part of it back to fixmap

2018-10-04 Thread Nadav Amit
at 12:37 AM, Peter Zijlstra wrote: > On Wed, Oct 03, 2018 at 09:59:48PM -0700, Nadav Amit wrote: >> This patch proposes to do something different: break >> it into two. One part holds code+data that is needed for the entry >> (trampoline code, entry stack and TSS), which is mapped in the fixmap.

Re: drivers binding to device node with multiple compatible strings

2018-10-04 Thread Grant Likely
On 04/10/2018 10:32, Grant Likely wrote: On Fri, Sep 28, 2018 at 10:01 PM Li Yang wrote: On Fri, Sep 28, 2018 at 3:07 PM Rob Herring wrote: On Thu, Sep 27, 2018 at 5:25 PM Li Yang wrote: Hi Rob and Grant, Various device tree specs are recommending to include all the potential compatible

Re: [PATCH v7 08/14] sched/topology: Disable EAS on inappropriate platforms

2018-10-04 Thread Peter Zijlstra
On Thu, Oct 04, 2018 at 10:10:48AM +0100, Quentin Perret wrote: > On Wednesday 03 Oct 2018 at 18:27:19 (+0200), Peter Zijlstra wrote: > > On Wed, Sep 12, 2018 at 10:13:03AM +0100, Quentin Perret wrote: > > > @@ -288,6 +321,21 @@ static void build_perf_domains(const struct cpumask > > > *cpu_map) >

[PATCH 2/7] staging: vc04_services: Drop 'connection' field from SERVICE_CREATION_T

2018-10-04 Thread Tuomas Tynkkynen
The connection field of SERVICE_CREATION_T is assigned to but its value is never read. Drop the field and the resulting no longer needed code from bcm2835-audio and bcm2835-camera. Signed-off-by: Tuomas Tynkkynen --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 3 --- drivers/st

[PATCH 7/7] staging: vc04_services: Drop no longer needed headers

2018-10-04 Thread Tuomas Tynkkynen
Previously, connection.h was only required for the definition of VCHI_CONNECTION_T, but now all usages of it are gone. Remove this unused header. After connection.h is gone, message.h and vchi_cfg_internal.h are no longer referenced by anything either. Drop them as well. Signed-off-by: Tuomas Tyn

[PATCH 5/7] staging: vc04_services: Drop VCHI_SERVICE_INIT and SERVICE_INFO_T

2018-10-04 Thread Tuomas Tynkkynen
These types are not used anywhere, remove them. Signed-off-by: Tuomas Tynkkynen --- drivers/staging/vc04_services/interface/vchi/vchi.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi/vchi.h b/drivers/staging/vc04_services/interface/vchi/

[PATCH 0/7] staging: vc04_services: Some dead code removal

2018-10-04 Thread Tuomas Tynkkynen
Drop various pieces of dead code from here and there to get rid of the remaining users of VCHI_CONNECTION_T. After that we get to drop entire header files worth of unused code. I've tested on a Raspberry Pi Model B (bcm2835_defconfig) that snd-bcm2835 can still play analog audio just fine. Tuomas

[PATCH 1/7] staging: vc04_services: Drop pointless stub functions

2018-10-04 Thread Tuomas Tynkkynen
These functions do nothing besides returning NULL and are unused. Just drop them. Signed-off-by: Tuomas Tynkkynen --- .../vc04_services/interface/vchi/vchi.h | 11 .../interface/vchiq_arm/vchiq_shim.c | 27 --- 2 files changed, 38 deletions(-) diff --git

[PATCH 3/7] staging: vc04_services: Drop trivially unused fields from SERVICE_CREATION_T

2018-10-04 Thread Tuomas Tynkkynen
These fields are only initialized with constants and never read. Drop them. Signed-off-by: Tuomas Tynkkynen --- .../vc04_services/bcm2835-audio/bcm2835-vchiq.c | 5 - .../staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 5 - drivers/staging/vc04_services/interface/vchi/vchi.h

[PATCH 4/7] staging: vc04_services: Drop declaration of vchi_crc_control()

2018-10-04 Thread Tuomas Tynkkynen
There is no definition for this unused function, so drop its prototype. Signed-off-by: Tuomas Tynkkynen --- drivers/staging/vc04_services/interface/vchi/vchi.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi/vchi.h b/drivers/staging/vc04_servi

[PATCH 6/7] staging: vc04_services: Drop unused parameters from vchi_connect()

2018-10-04 Thread Tuomas Tynkkynen
Remove two parameters which are never used and all where all callers just pass in dummy values anyway. Signed-off-by: Tuomas Tynkkynen --- .../vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +- .../staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 2 +- drivers/staging/vc04_services/i

Re: [GIT PULL] fixes for soc/fsl drivers for v4.19 take 2

2018-10-04 Thread Laurentiu Tudor
Hi Leo, On 02.10.2018 01:58, Li Yang wrote: > Hi arm-soc maintainers, > > Please merge the updated fix for the following issue. > > Regards, > Leo > > The following changes since commit 96fc74333f84cfdf8d434c6c07254e215e2aad00: > >soc: fsl: qe: Fix copy/paste bug in ucc_get_tdm_sync_shift(

Re: [PATCH 2/2] cpuidle/drivers/menu: Remove get_loadavg in the performance multiplier

2018-10-04 Thread Peter Zijlstra
On Thu, Oct 04, 2018 at 10:47:04AM +0200, Rafael J. Wysocki wrote: > > The comment is irrelevant as the remaining function is used for > > statistics in addition to the perf multiplier. It does exactly what the > > function name is. > > Which is my point. It shouldn't be dropped entirely, but up

Re: [PATCH v2 3/4] x86/asm: Simplify GEN_*_RMWcc() macros

2018-10-04 Thread Peter Zijlstra
On Wed, Oct 03, 2018 at 03:03:00PM +0200, Peter Zijlstra wrote: > +#define __GEN_RMWcc(fullop, _var, cc, clobbers, ...) \ > +({ \ > + __label__ cc_label; \ > asm_v

Re: [PATCH 2/2] cpuidle/drivers/menu: Remove get_loadavg in the performance multiplier

2018-10-04 Thread Peter Zijlstra
On Thu, Oct 04, 2018 at 10:12:44AM +0200, Daniel Lezcano wrote: > > Hi Peter, > > On 04/10/2018 09:57, Peter Zijlstra wrote: > > On Thu, Oct 04, 2018 at 09:42:07AM +0200, Daniel Lezcano wrote: > >> diff --git a/kernel/sched/core.c b/kernel/sched/core.c > >> index b88a145..5605f03 100644 > >> ---

Re: [PATCH v9 00/11] PM / Domains: Support hierarchical CPU arrangement (PSCI/ARM) (a subset)

2018-10-04 Thread Rafael J. Wysocki
On Thu, Oct 4, 2018 at 11:04 AM Rafael J. Wysocki wrote: > > On Thursday, October 4, 2018 10:58:53 AM CEST Ulf Hansson wrote: > > On 4 October 2018 at 10:39, Rafael J. Wysocki wrote: > > > On Wed, Oct 3, 2018 at 4:39 PM Ulf Hansson wrote: > > >> > > >> I have digested the review comments so far,

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread Nadav Amit
at 2:12 AM, Ingo Molnar wrote: > > * Nadav Amit wrote: > >> I can run some tests. (@hpa: I thought you asked about the -pipe overhead; >> perhaps I misunderstood). > > Well, tests are unlikely to show the overhead of extra lines of this > magnitude, unless done very carefully, yet the added b

Re: [PATCH v2] kvm: nVMX: fix entry with pending interrupt if APICv is enabled

2018-10-04 Thread Nikita Leshenko
On Wed, 2018-10-03 at 17:26 +0200, Paolo Bonzini wrote: > Commit b5861e5cf2fcf83031ea3e26b0a69d887adf7d21 introduced a check on > the interrupt-window and NMI-window CPU execution controls in order to > inject an external interrupt vmexit before the first guest instruction > executes. However, whe

RE: [PATCH 0/4] spi: add support for octal mode data transfer

2018-10-04 Thread Yogesh Narayan Gaur
Hi Vignesh, > -Original Message- > From: Vignesh R [mailto:vigne...@ti.com] > Sent: Thursday, October 4, 2018 2:52 PM > To: Yogesh Narayan Gaur ; linux- > m...@lists.infradead.org; boris.brezil...@bootlin.com; marek.va...@gmail.com; > linux-...@vger.kernel.org; devicet...@vger.kernel.org >

RE: [PATCH 4/4] arm64: dts: lx2160a: update fspi node

2018-10-04 Thread Yogesh Narayan Gaur
> -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Thursday, October 4, 2018 2:56 PM > To: Yogesh Narayan Gaur > Cc: linux-...@lists.infradead.org; marek.va...@gmail.com; vigne...@ti.com; > linux-...@vger.kernel.org; devicet...@vger.kernel.org; r..

Re: [PATCH 4/4] arm64: dts: lx2160a: update fspi node

2018-10-04 Thread Boris Brezillon
On Thu, 4 Oct 2018 09:24:57 + Yogesh Narayan Gaur wrote: > Hi Boris, > > > -Original Message- > > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > > Sent: Thursday, October 4, 2018 2:48 PM > > To: Yogesh Narayan Gaur > > Cc: linux-...@lists.infradead.org; marek.va...@gma

RE: [PATCH 1/4] spi: add support for octal I/O data transfer

2018-10-04 Thread Yogesh Narayan Gaur
Hi Boris, > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Thursday, October 4, 2018 2:50 PM > To: Yogesh Narayan Gaur > Cc: linux-...@lists.infradead.org; marek.va...@gmail.com; vigne...@ti.com; > linux-...@vger.kernel.org; devicet...@vger.kernel.

Re: [PATCH 3/3] ARM: socfpga: Turn on ARM errata for L2 cache

2018-10-04 Thread Clément Péron
Hi, On Thu, 4 Oct 2018 at 11:16, Russell King - ARM Linux wrote: > > On Thu, Oct 04, 2018 at 10:54:15AM +0200, Clément Péron wrote: > > From: Dinh Nguyen > > > > Turn on these ARM and PL310 errata for SoCFPGA: > > > > ARM_ERRATA_754322 > > ARM_ERRATA_764369 > > ARM_ERRATA_775420 > > > > PL310_ER

RE: [PATCH 4/4] arm64: dts: lx2160a: update fspi node

2018-10-04 Thread Yogesh Narayan Gaur
Hi Boris, > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Thursday, October 4, 2018 2:48 PM > To: Yogesh Narayan Gaur > Cc: linux-...@lists.infradead.org; marek.va...@gmail.com; vigne...@ti.com; > linux-...@vger.kernel.org; devicet...@vger.kernel.

Re: [PATCH 0/4] spi: add support for octal mode data transfer

2018-10-04 Thread Vignesh R
Hi Yogesh, On Thursday 04 October 2018 02:18 PM, Yogesh Gaur wrote: > Add support for octal mode IO data transfer. > Micron flash, mt35xu512aba, supports octal mode data transfer and > NXP FlexSPI controller supports 8 data lines for data transfer (Rx/Tx). > > Patch series > * Add support for oc

Re: [PATCH] perf tools: Store ids for events with their own cpus perf_event__synthesize_event_update_cpus

2018-10-04 Thread John Garry
Hi Jirka, Can you please double-check your new patch, as I'm getting this now: root@localhost:~# ./perf_debug record -e armv8_pmuv3_0/br_mis_pred/ sleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.001 MB perf.data (6 samples) ] root@localhost:~# ./perf_de

Re: [PATCH 1/4] spi: add support for octal I/O data transfer

2018-10-04 Thread Boris Brezillon
On Thu, 4 Oct 2018 09:14:36 + Yogesh Narayan Gaur wrote: > Hi Boris, > > > -Original Message- > > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > > Sent: Thursday, October 4, 2018 2:35 PM > > To: Yogesh Narayan Gaur > > Cc: linux-...@lists.infradead.org; marek.va...@gma

Re: [PATCH 4/4] arm64: dts: lx2160a: update fspi node

2018-10-04 Thread Boris Brezillon
On Thu, 4 Oct 2018 14:18:40 +0530 Yogesh Gaur wrote: > Flash mt35xu512aba connected to FlexSPI controller supports > 1-1-8 protocol. > Added flag spi-rx-bus-width and spi-tx-bus-width with values as > 8 and 1 respectively for both flashes connected at CS0 and CS1. > > Signed-off-by: Yogesh Gaur

Re: [BUG] sound: pci: trident: a possible data race

2018-10-04 Thread Jia-Ju Bai
On 2018/10/4 13:24, Takashi Iwai wrote: On Thu, 04 Oct 2018 05:08:45 +0200, Jia-Ju Bai wrote: Thanks for the reply :) On 2018/10/3 23:54, Takashi Iwai wrote: On Wed, 03 Oct 2018 14:50:25 +0200, Jia-Ju Bai wrote: CPU0: snd_trident_hw_free snd_trident_free_voice line 387

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread hpa
On October 4, 2018 2:12:22 AM PDT, Ingo Molnar wrote: > >* Nadav Amit wrote: > >> I can run some tests. (@hpa: I thought you asked about the -pipe >overhead; >> perhaps I misunderstood). > >Well, tests are unlikely to show the overhead of extra lines of this >magnitude, unless done very carefully

Re: [PATCH 3/3] ARM: socfpga: Turn on ARM errata for L2 cache

2018-10-04 Thread Russell King - ARM Linux
On Thu, Oct 04, 2018 at 10:54:15AM +0200, Clément Péron wrote: > From: Dinh Nguyen > > Turn on these ARM and PL310 errata for SoCFPGA: > > ARM_ERRATA_754322 > ARM_ERRATA_764369 > ARM_ERRATA_775420 > > PL310_ERRATA_588369 > PL310_ERRATA_727915 > PL310_ERRATA_753970 > PL310_ERRATA_769419 > > Fix

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread Ingo Molnar
* h...@zytor.com wrote: > Ingo: I wasn't talking necessarily about the specifics of each bit, but > rather the general > concept about being able to use macros in inlines... Ok, agreed about that part - and some of the patches did improve readability. Also, the 275 lines macros.s is a lot n

Re: [RFC PATCH] mm, proc: report PR_SET_THP_DISABLE in proc

2018-10-04 Thread David Rientjes
On Thu, 4 Oct 2018, Michal Hocko wrote: > > > > > So how about this? (not tested yet but it should be pretty > > > > > straightforward) > > > > > > > > Umm, prctl(PR_GET_THP_DISABLE)? > > > > > > /me confused. I thought you want to query for the flag on a > > > _different_ process. > > > > Why

Re: [PATCH 2/4] mtd: spi-nor: add support for octal mode data transfer

2018-10-04 Thread Boris Brezillon
On Thu, 4 Oct 2018 14:18:38 +0530 Yogesh Gaur wrote: > Add support for octal mode data transfer for Micron mt35xu512aba. > > Unfortunately, this flash is only complaint to SFDP JESD216B and does > not seem to support newer JESD216C standard that provides auto detection > of Octal mode capabilit

RE: [PATCH 1/4] spi: add support for octal I/O data transfer

2018-10-04 Thread Yogesh Narayan Gaur
Hi Boris, > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Thursday, October 4, 2018 2:35 PM > To: Yogesh Narayan Gaur > Cc: linux-...@lists.infradead.org; marek.va...@gmail.com; vigne...@ti.com; > linux-...@vger.kernel.org; devicet...@vger.kernel.

Re: [PATCH] mips: delete duplication of BUILTIN_DTB selection

2018-10-04 Thread Geert Uytterhoeven
On Thu, Oct 4, 2018 at 10:38 AM Sergei Shtylyov wrote: > On 10/3/2018 8:23 PM, Maksym Kokhan wrote: > > CONFIG_BUILTIN_DTB selection is duplicated in menu > > "Machine selection" under MIPS_MALTA. > > > > Fixes: e81a8c7dabac ("MIPS: Malta: Setup RAM regions via DT") > > Signed-off-by: Maksym Kokha

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread Ingo Molnar
* Nadav Amit wrote: > I can run some tests. (@hpa: I thought you asked about the -pipe overhead; > perhaps I misunderstood). Well, tests are unlikely to show the overhead of extra lines of this magnitude, unless done very carefully, yet the added bloat exists and is not even mentioned by the

Re: [PATCH 1/3] mtd: spi-nor: Add Octal mode support for mt35xu512aba

2018-10-04 Thread Boris Brezillon
On Thu, 4 Oct 2018 08:47:33 + Yogesh Narayan Gaur wrote: > > > > Yogesh, you already sent "spi: add flags for octal I/O data > > transfer" [3] which is only adding the new OCTAL flags but is not > > patching spi.c and spi-mem.c to take those new flags into account. > > Here is my version of

[PATCH] PM / core: Clear the direct_complete flag on errors

2018-10-04 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If __device_suspend() returns early on an error or pending wakeup and the power.direct_complete flag has been set for the device already, the subsequent device_resume() will be confused by it and it will call pm_runtime_enable() incorrectly, as runtime PM has not been disa

Re: [PATCH v7 08/14] sched/topology: Disable EAS on inappropriate platforms

2018-10-04 Thread Quentin Perret
On Wednesday 03 Oct 2018 at 18:27:19 (+0200), Peter Zijlstra wrote: > On Wed, Sep 12, 2018 at 10:13:03AM +0100, Quentin Perret wrote: > > @@ -288,6 +321,21 @@ static void build_perf_domains(const struct cpumask > > *cpu_map) > > goto free; > > tmp->next = pd; > >

[PATCH] sched: core: Fix comment regarding nr_iowait_cpu() and get_iowait_load()

2018-10-04 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The comment related to nr_iowait_cpu() and get_iowait_load() confuses cpufreq with cpuidle and is not very useful for this reason, so fix it. Fixes: e33a9bba85a8 "sched/core: move IO scheduling accounting from io_schedule_timeout() into scheduler" Signed-off-by: Rafael J

[PATCH] regulator: fixed: Use more standard GPIO binding

2018-10-04 Thread Linus Walleij
The fixed regulator uses "gpio" (singularis) for the GPIO line but the standard GPIO bindings recommend "gpios" (pluralis). We have augmented the Linux kernel to handle both, so recommend the best practice and deprecate the singularis variant. Cc: devicet...@vger.kernel.org Cc: Leonard Crestez S

Re: [PATCH 1/4] spi: add support for octal I/O data transfer

2018-10-04 Thread Boris Brezillon
Hi Yogesh, On Thu, 4 Oct 2018 14:18:37 +0530 Yogesh Gaur wrote: > Add flags for Octal I/O data transfer > Required for the SPI controller which can do the data transfer (TX/RX) > on 8 data lines e.g. NXP FlexSPI controller. > SPI_TX_OCTAL: transmit with 8 wires > SPI_RX_OCTAL: receive with 8

Re: [PATCH v5 4/5] sched/core: Prevent race condition between cpuset and __sched_setscheduler()

2018-10-04 Thread Juri Lelli
On 03/10/18 15:42, Steven Rostedt wrote: > On Mon, 3 Sep 2018 16:28:00 +0200 > Juri Lelli wrote: > > > > diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c > > index 5b43f482fa0f..8dc26005bb1e 100644 > > --- a/kernel/cgroup/cpuset.c > > +++ b/kernel/cgroup/cpuset.c > > @@ -2410,6 +241

Re: [PATCH v9 00/11] PM / Domains: Support hierarchical CPU arrangement (PSCI/ARM) (a subset)

2018-10-04 Thread Rafael J. Wysocki
On Thursday, October 4, 2018 10:58:53 AM CEST Ulf Hansson wrote: > On 4 October 2018 at 10:39, Rafael J. Wysocki wrote: > > On Wed, Oct 3, 2018 at 4:39 PM Ulf Hansson wrote: > >> > >> I have digested the review comments so far, including a recent offlist chat > >> with with Lorenzo Pieralisi arou

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread hpa
On October 4, 2018 1:56:37 AM PDT, Nadav Amit wrote: >at 1:40 AM, h...@zytor.com wrote: > >> On October 4, 2018 1:33:33 AM PDT, Ingo Molnar >wrote: >>> * Ingo Molnar wrote: >>> I'm also somewhat annoyed at the fact that this series carries a >>> boatload of reviewed-by's and acked-by'

Re: [PATCH v7 11/14] sched/fair: Introduce an energy estimation helper function

2018-10-04 Thread Quentin Perret
Hi Peter, On Thursday 04 Oct 2018 at 10:34:57 (+0200), Peter Zijlstra wrote: > On Wed, Sep 12, 2018 at 10:13:06AM +0100, Quentin Perret wrote: > > +static unsigned long cpu_util_next(int cpu, struct task_struct *p, int > > dst_cpu) > > +{ > > + struct cfs_rq *cfs_rq = &cpu_rq(cpu)->cfs; > > +

Re: [PATCH] ARM: dts: imx6sx-sdb: Fix enet phy regulator

2018-10-04 Thread Linus Walleij
On Wed, Oct 3, 2018 at 1:49 PM Leonard Crestez wrote: > On Tue, 2018-10-02 at 21:56 +0200, Linus Walleij wrote: > > I guess I could hack to make "gpios" be ignored by the > > regulator GPIO quirks in gpiolib, but I take it you probably > > prefer to fix up the real issue like this. > > Maybe you

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread Ingo Molnar
* Nadav Amit wrote: > Finally, note that it’s not as if the binary always becomes smaller. > Overall, with the full patch-set it is slightly bigger. But still, that’s > how it was supposed to be if gcc wasn’t doing things badly. So what I cited was the changelog for the refcount patch, which a

Re: [PATCH 4/4] PCI: imx: Add PME_Turn_Off support

2018-10-04 Thread Lucas Stach
Am Montag, den 01.10.2018, 22:53 +0300 schrieb Leonard Crestez: > When the root complex suspends it must send a PME_Turn_Off TLP. > Implement this by asserting the "turnoff" reset. > > On imx7d this is functionality is part of the SRC and exposed through > the linux reset-controller subsystem. On

Re: [PATCH v9 00/11] PM / Domains: Support hierarchical CPU arrangement (PSCI/ARM) (a subset)

2018-10-04 Thread Ulf Hansson
On 4 October 2018 at 10:39, Rafael J. Wysocki wrote: > On Wed, Oct 3, 2018 at 4:39 PM Ulf Hansson wrote: >> >> I have digested the review comments so far, including a recent offlist chat >> with with Lorenzo Pieralisi around the debatable PSCI changes. More or less I >> have a plan for how to mov

Re: x86/mm: Found insecure W+X mapping at address (ptrval)/0xc00a0000

2018-10-04 Thread Paul Menzel
Dear Borislav, On 10/04/18 10:49, Borislav Petkov wrote: > On Thu, Oct 04, 2018 at 10:40:49AM +0200, Paul Menzel wrote: >> Do you have a commit, I could test. > > Not yet I meant just the test you did. > but I have a question for you: why are you running 32-bit and > haven't moved to 64-bit al

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread Nadav Amit
at 1:40 AM, h...@zytor.com wrote: > On October 4, 2018 1:33:33 AM PDT, Ingo Molnar wrote: >> * Ingo Molnar wrote: >> >>> I'm also somewhat annoyed at the fact that this series carries a >> boatload >>> of reviewed-by's and acked-by's, yet none of those reviewers found it >>> important to point

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread Ingo Molnar
* h...@zytor.com wrote: > It's not just for working around a stupid GCC bug, but it also has a huge > potential for > cleaning up the inline asm in general. Sorry but that's just plain false. For example this patch: x86: cpufeature: use macros instead of inline assembly ... adds an extr

Re: [PATCH] Revert "serial: 8250_dw: Fix runtime PM handling"

2018-10-04 Thread Andy Shevchenko
On Mon, Oct 01, 2018 at 09:42:37PM -0700, Guenter Roeck wrote: > This reverts commit d76c74387e1c978b6c5524a146ab0f3f72206f98. > > While commit d76c74387e1c ("serial: 8250_dw: Fix runtime PM handling") > fixes runtime PM handling when using kgdb, it introduces a traceback for > everyone else. Ack

Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes"

2018-10-04 Thread Sergey Senozhatsky
On (10/04/18 10:36), Petr Mladek wrote: > > This looks like a reasonable explanation of what is happening here. > It also explains why the console owner logic helped. Well, I'm still a bit puzzled, frankly speaking. I've two theories. Theory #1 [most likely] Steven is a wizard and his code cu

[PATCH 1/3] ARM: socfpga: Clean unused functions

2018-10-04 Thread Clément Péron
These functions are unused externally, removed them and declare the one used locally as static. Signed-off-by: Clément Péron --- arch/arm/mach-socfpga/core.h| 2 -- arch/arm/mach-socfpga/socfpga.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-socfpga/cor

[PATCH 2/3] ARM: socfpga: Turn on all peripheral clocks for a system reboot

2018-10-04 Thread Clément Péron
From: Dinh Nguyen When doing a software reboot, all peripheral clocks must get turned on for the L3 interconnect to work. This code is needed when doing a "reboot" from user-space and a peripheral clock as been gated off. Why would a peripheral clock get gated? An example use case would be a .ko

[PATCH 3/3] ARM: socfpga: Turn on ARM errata for L2 cache

2018-10-04 Thread Clément Péron
From: Dinh Nguyen Turn on these ARM and PL310 errata for SoCFPGA: ARM_ERRATA_754322 ARM_ERRATA_764369 ARM_ERRATA_775420 PL310_ERRATA_588369 PL310_ERRATA_727915 PL310_ERRATA_753970 PL310_ERRATA_769419 Fixes: 387798b37c8d ("ARM: initial multiplatform support") Signed-off-by: Dinh Nguyen Signed-

[PATCH 0/4] spi: add support for octal mode data transfer

2018-10-04 Thread Yogesh Gaur
Add support for octal mode IO data transfer. Micron flash, mt35xu512aba, supports octal mode data transfer and NXP FlexSPI controller supports 8 data lines for data transfer (Rx/Tx). Patch series * Add support for octal mode flags and parsing of same in spi driver. * Add octal data communication

[PATCH 4/4] arm64: dts: lx2160a: update fspi node

2018-10-04 Thread Yogesh Gaur
Flash mt35xu512aba connected to FlexSPI controller supports 1-1-8 protocol. Added flag spi-rx-bus-width and spi-tx-bus-width with values as 8 and 1 respectively for both flashes connected at CS0 and CS1. Signed-off-by: Yogesh Gaur --- arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 4 1

[PATCH 2/4] mtd: spi-nor: add support for octal mode data transfer

2018-10-04 Thread Yogesh Gaur
Add support for octal mode data transfer for Micron mt35xu512aba. Unfortunately, this flash is only complaint to SFDP JESD216B and does not seem to support newer JESD216C standard that provides auto detection of Octal mode capabilities and opcodes. Therefore, this capability is manually added usin

[PATCH 1/4] spi: add support for octal I/O data transfer

2018-10-04 Thread Yogesh Gaur
Add flags for Octal I/O data transfer Required for the SPI controller which can do the data transfer (TX/RX) on 8 data lines e.g. NXP FlexSPI controller. SPI_TX_OCTAL: transmit with 8 wires SPI_RX_OCTAL: receive with 8 wires Signed-off-by: Yogesh Gaur --- drivers/spi/spi.c | 6 ++ in

[PATCH 3/4] spi: nxp-fspi: add mode flag bit for octal support

2018-10-04 Thread Yogesh Gaur
Add mode flags for octal I/O data transfer support. NXP FlexSPI controller supports octal mode data transfer. Signed-off-by: Yogesh Gaur --- drivers/spi/spi-nxp-fspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c

Re: x86/mm: Found insecure W+X mapping at address (ptrval)/0xc00a0000

2018-10-04 Thread Borislav Petkov
On Thu, Oct 04, 2018 at 10:40:49AM +0200, Paul Menzel wrote: > Do you have a commit, I could test. Not yet but I have a question for you: why are you running 32-bit and haven't moved to 64-bit already? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the r

Re: x86/mm: Found insecure W+X mapping at address (ptrval)/0xc00a0000

2018-10-04 Thread Borislav Petkov
On Thu, Oct 04, 2018 at 10:43:18AM +0200, Joerg Roedel wrote: > Yeah, that's what I also found out back then, the region needs to be WX. > So we can either leave with the warning, as we know it is harmless and > where it comes from or implement an exception in the checking code for > that region.

RE: [PATCH 1/3] mtd: spi-nor: Add Octal mode support for mt35xu512aba

2018-10-04 Thread Yogesh Narayan Gaur
Hi Boris, > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Thursday, October 4, 2018 1:09 PM > To: Yogesh Narayan Gaur > Cc: Vignesh R ; Marek Vasut ; Rob > Herring ; Brian Norris ; > Linux ARM Mailing List ; linux- > m...@lists.infradead.org; devi

Re: [PATCH 2/2] cpuidle/drivers/menu: Remove get_loadavg in the performance multiplier

2018-10-04 Thread Rafael J. Wysocki
On Thu, Oct 4, 2018 at 10:40 AM Daniel Lezcano wrote: > > On 04/10/2018 10:22, Rafael J. Wysocki wrote: > > On Thu, Oct 4, 2018 at 9:42 AM Daniel Lezcano > > wrote: [cut] > >> - interactivity_req = data->predicted_us / > >> performance_multiplier(nr_iowaiters, cpu_load); > >> +

Re: x86/mm: Found insecure W+X mapping at address (ptrval)/0xc00a0000

2018-10-04 Thread Joerg Roedel
On Thu, Oct 04, 2018 at 10:14:38AM +0200, Borislav Petkov wrote: > So looking at this, BIOS_BEGIN and BIOS_END is the same range as the ISA > range: > > #define ISA_START_ADDRESS 0x000a > #define ISA_END_ADDRESS 0x0010 > > #define BIOS_BEGIN 0x000a > #define

Re: [GIT PULL] parisc fixes for kernel v4.19

2018-10-04 Thread Helge Deller
On 04.10.2018 01:02, gregkh wrote: > On Wed, Oct 03, 2018 at 09:49:08PM +0200, Arnd Bergmann wrote: >> On Wed, Oct 3, 2018 at 8:16 PM Greg Kroah-Hartman >> wrote: >>> On Wed, Oct 03, 2018 at 04:47:30PM +0200, Helge Deller wrote: On 03.10.2018 00:24, Greg Kroah-Hartman wrote: > On Tue, Oct

Re: R8169: Network lockups in 4.18.{8,9,10} (and 4.19 dev)

2018-10-04 Thread Chris Clayton
Hi Heiner, Here's the reply to your questions. Sorry for the delay. On 28/09/2018 23:13, Heiner Kallweit wrote: > On 29.09.2018 00:00, Chris Clayton wrote: >> Thanks Maciej. >> >> On 28/09/2018 16:54, Maciej S. Szmigiero wrote: >>> Hi, >>> Hi, I upgraded my kernel to 4.18.10 recent

Re: [PATCH 2/2] cpuidle/drivers/menu: Remove get_loadavg in the performance multiplier

2018-10-04 Thread Daniel Lezcano
On 04/10/2018 10:22, Rafael J. Wysocki wrote: > On Thu, Oct 4, 2018 at 9:42 AM Daniel Lezcano > wrote: >> >> The function get_loadavg() returns almost always zero. To be more >> precise, statistically speaking for a total of 1023379 times passing >> in the function, the load is equal to zero 1020

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread Nadav Amit
at 12:57 AM, Ingo Molnar wrote: > > * Nadav Amit wrote: > >> GCC considers the number of statements in inlined assembly blocks, >> according to new-lines and semicolons, as an indication to the cost of >> the block in time and space. This data is distorted by the kernel code, >> which puts inf

Re: x86/mm: Found insecure W+X mapping at address (ptrval)/0xc00a0000

2018-10-04 Thread Paul Menzel
Dear Borislav, On 10/04/18 10:14, Borislav Petkov wrote: > On Thu, Oct 04, 2018 at 10:03:21AM +0200, Joerg Roedel wrote: >> I also triggered this when working in the PTI-x32 code. It always >> happens on a 32-bit PAE kernel for me. >> >> Tracking it down I ended up in (iirc) arch/x86/mm/pageattr.

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread hpa
On October 4, 2018 1:33:33 AM PDT, Ingo Molnar wrote: > >* Ingo Molnar wrote: > >> I'm also somewhat annoyed at the fact that this series carries a >boatload >> of reviewed-by's and acked-by's, yet none of those reviewers found it >> important to point out the large chasm that is gaping between >

Re: [PATCH v9 00/11] PM / Domains: Support hierarchical CPU arrangement (PSCI/ARM) (a subset)

2018-10-04 Thread Rafael J. Wysocki
On Wed, Oct 3, 2018 at 4:39 PM Ulf Hansson wrote: > > I have digested the review comments so far, including a recent offlist chat > with with Lorenzo Pieralisi around the debatable PSCI changes. More or less I > have a plan for how to move forward. > > However, to avoid re-posting non-changed patc

Re: [PATCH v4 2/6] dt-bindings: power: Add qcom rpm power domain driver bindings

2018-10-04 Thread Viresh Kumar
On 25-09-18, 14:43, Rob Herring wrote: > On Tue, Sep 25, 2018 at 5:25 AM Rajendra Nayak wrote: > > > > Hi Rob, > > > > []... > > > + rpmhpd_opp_table: opp-table { > > > + compatible = "operating-points-v2-qcom-level"; > > > + > > > + rpmhpd_opp_ret: opp1 { > >

Re: [PATCH] mips: delete duplication of BUILTIN_DTB selection

2018-10-04 Thread Sergei Shtylyov
Hello! On 10/3/2018 8:23 PM, Maksym Kokhan wrote: CONFIG_BUILTIN_DTB selection is duplicated in menu "Machine selection" under MIPS_MALTA. Fixes: e81a8c7dabac ("MIPS: Malta: Setup RAM regions via DT") Signed-off-by: Maksym Kokhan Signed-off-by: Andrii Bordunov --- arch/mips/Kconfig | 1 -

Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes"

2018-10-04 Thread Petr Mladek
On Thu 2018-10-04 16:44:42, Sergey Senozhatsky wrote: > On (10/03/18 11:37), Daniel Wang wrote: > > When `softlockup_panic` is set (which is what my original repro had and > > what we use in production), without the backport patch, the expected panic > > would hit a seemingly deadlock. So even when

<    1   2   3   4   5   6   7   >