Re: -next20181010,1011 regression: thinkpad x60 (32 bit) dies during boot.

2018-10-12 Thread Ingo Molnar
* Pavel Machek wrote: > Hi! > > > > > > I updated to todays next... and boot crashes with > > > > > > > > > > .. > > > > > Call Trace: > > > > > kick_ilb > > > > > trigger_load_balance > > > > > ? active_load.. > > > > > scheduler_tick > > > > > update_process_times > > > > >

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

2018-10-12 Thread Ingo Molnar
* Kees Cook wrote: > On Thu, Oct 11, 2018 at 7:14 PM, Stephen Rothwell > wrote: > > Hi all, > > > > Today's linux-next merge of the tip tree got a conflict in: > > > > arch/x86/mm/pgtable.c > > > > between commit: > > > > 184d47f0fd36 ("x86/mm: Avoid VLA in pgd_alloc()") > > > > from

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

2018-10-12 Thread Ingo Molnar
* Kees Cook wrote: > On Thu, Oct 11, 2018 at 7:14 PM, Stephen Rothwell > wrote: > > Hi all, > > > > Today's linux-next merge of the tip tree got a conflict in: > > > > arch/x86/mm/pgtable.c > > > > between commit: > > > > 184d47f0fd36 ("x86/mm: Avoid VLA in pgd_alloc()") > > > > from

Re: [tip:sched/core] sched/completions/Documentation: Clean up the document some more

2018-10-11 Thread Ingo Molnar
hi Nicholas, I was wondering about this paragraph: > Using on-stack completions for code that calls any of the _timeout or > _interruptible/_killable variants is not advisable as they will require > additional synchronization to prevent the on-stack completion object in > the timeout/signal

Re: [tip:sched/core] sched/completions/Documentation: Clean up the document some more

2018-10-11 Thread Ingo Molnar
hi Nicholas, I was wondering about this paragraph: > Using on-stack completions for code that calls any of the _timeout or > _interruptible/_killable variants is not advisable as they will require > additional synchronization to prevent the on-stack completion object in > the timeout/signal

Re: [PATCH v2 1/3] x86: baytrail/cherrytrail: Rework and move P-Unit PMIC bus semaphore code

2018-10-11 Thread Ingo Molnar
* Hans de Goede wrote: > +int iosf_mbi_block_punit_i2c_access(void) > +{ > + unsigned long start, end; > + int ret = 0; > + u32 sem; > + > + if (WARN_ON(!mbi_pdev || !iosf_mbi_sem_address)) > + return -ENXIO; > + > +

Re: [PATCH v2 1/3] x86: baytrail/cherrytrail: Rework and move P-Unit PMIC bus semaphore code

2018-10-11 Thread Ingo Molnar
* Hans de Goede wrote: > +int iosf_mbi_block_punit_i2c_access(void) > +{ > + unsigned long start, end; > + int ret = 0; > + u32 sem; > + > + if (WARN_ON(!mbi_pdev || !iosf_mbi_sem_address)) > + return -ENXIO; > + > +

[GIT PULL] x86 fixes

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: 184d47f0fd365108bd06ab26cdb3450b716269fd x86/mm: Avoid VLA in pgd_alloc() An intel_rdt memory access fix and a VLA fix in pgd_alloc().

[GIT PULL] x86 fixes

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: 184d47f0fd365108bd06ab26cdb3450b716269fd x86/mm: Avoid VLA in pgd_alloc() An intel_rdt memory access fix and a VLA fix in pgd_alloc().

[GIT PULL] scheduler fix

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus # HEAD: e054637597ba36d3729ba6a3a3dd7aad8e2a3003 mm, sched/numa: Remove remaining traces of NUMA rate-limiting Cleanup of dead code left

[GIT PULL] scheduler fix

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus # HEAD: e054637597ba36d3729ba6a3a3dd7aad8e2a3003 mm, sched/numa: Remove remaining traces of NUMA rate-limiting Cleanup of dead code left

[GIT PULL] perf fixes

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: c1883f10cfe05c707cce46d6999411c50a2413ca Merge tag 'perf-urgent-for-mingo-4.19-20181005' of

[GIT PULL] perf fixes

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: c1883f10cfe05c707cce46d6999411c50a2413ca Merge tag 'perf-urgent-for-mingo-4.19-20181005' of

[GIT PULL] scheduler fix

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus # HEAD: e054637597ba36d3729ba6a3a3dd7aad8e2a3003 mm, sched/numa: Remove remaining traces of NUMA rate-limiting Cleanup of dead code left

[GIT PULL] scheduler fix

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus # HEAD: e054637597ba36d3729ba6a3a3dd7aad8e2a3003 mm, sched/numa: Remove remaining traces of NUMA rate-limiting Cleanup of dead code left

[GIT PULL] perf fixes

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: c1883f10cfe05c707cce46d6999411c50a2413ca Merge tag 'perf-urgent-for-mingo-4.19-20181005' of

[GIT PULL] perf fixes

2018-10-11 Thread Ingo Molnar
Greg, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: c1883f10cfe05c707cce46d6999411c50a2413ca Merge tag 'perf-urgent-for-mingo-4.19-20181005' of

[tip:sched/core] sched/completions/Documentation: Clean up the document some more

2018-10-11 Thread tip-bot for Ingo Molnar
Commit-ID: 0c373344b5c1eaa9e186368a32a169a2802be3ca Gitweb: https://git.kernel.org/tip/0c373344b5c1eaa9e186368a32a169a2802be3ca Author: Ingo Molnar AuthorDate: Thu, 11 Oct 2018 10:36:23 +0200 Committer: Ingo Molnar CommitDate: Thu, 11 Oct 2018 10:36:23 +0200 sched/completions

[tip:sched/core] sched/completions/Documentation: Clean up the document some more

2018-10-11 Thread tip-bot for Ingo Molnar
Commit-ID: 0c373344b5c1eaa9e186368a32a169a2802be3ca Gitweb: https://git.kernel.org/tip/0c373344b5c1eaa9e186368a32a169a2802be3ca Author: Ingo Molnar AuthorDate: Thu, 11 Oct 2018 10:36:23 +0200 Committer: Ingo Molnar CommitDate: Thu, 11 Oct 2018 10:36:23 +0200 sched/completions

Re: [PATCH v3 0/3] mm: Fix for movable_node boot option

2018-10-10 Thread Ingo Molnar
ns(-) If the problem is fixed then the e820 revert looks good to me: Acked-by: Ingo Molnar The other patches need review and acks from MM folks, and the series (assuming all patches are fine - I only looked at the e820 one) is -mm material I suppose? Thanks, Ingo

Re: [PATCH v3 0/3] mm: Fix for movable_node boot option

2018-10-10 Thread Ingo Molnar
ns(-) If the problem is fixed then the e820 revert looks good to me: Acked-by: Ingo Molnar The other patches need review and acks from MM folks, and the series (assuming all patches are fine - I only looked at the e820 one) is -mm material I suppose? Thanks, Ingo

Re: perf report segfault

2018-10-10 Thread Ingo Molnar
* Sandipan Das wrote: > Hi Jiri, > > Yes, this happens when entry->map is NULL. While your fix seems correct, the > following commit from Milian Wolff had already addressed this. I think this > was pulled in with one of Arnaldo's recent perf/urgent updates. > > ff4ce2885af8 ("perf report:

Re: perf report segfault

2018-10-10 Thread Ingo Molnar
* Sandipan Das wrote: > Hi Jiri, > > Yes, this happens when entry->map is NULL. While your fix seems correct, the > following commit from Milian Wolff had already addressed this. I think this > was pulled in with one of Arnaldo's recent perf/urgent updates. > > ff4ce2885af8 ("perf report:

Re: [RFC PATCH 0/7] Introduce thermal pressure

2018-10-10 Thread Ingo Molnar
* Thara Gopinath wrote: > Thermal governors can respond to an overheat event for a cpu by > capping the cpu's maximum possible frequency. This in turn > means that the maximum available compute capacity of the > cpu is restricted. But today in linux kernel, in event of maximum > frequency

Re: [RFC PATCH 0/7] Introduce thermal pressure

2018-10-10 Thread Ingo Molnar
* Thara Gopinath wrote: > Thermal governors can respond to an overheat event for a cpu by > capping the cpu's maximum possible frequency. This in turn > means that the maximum available compute capacity of the > cpu is restricted. But today in linux kernel, in event of maximum > frequency

Re: [RFC PATCH] kernel/panic: Filter out a potential trailing newline

2018-10-10 Thread Ingo Molnar
nst char *fmt, ...) > console_verbose(); > bust_spinlocks(1); > va_start(args, fmt); > - vsnprintf(buf, sizeof(buf), fmt, args); > + len = vscnprintf(buf, sizeof(buf), fmt, args); > va_end(args); > + > + if (len && buf[len - 1] =

Re: [RFC PATCH] kernel/panic: Filter out a potential trailing newline

2018-10-10 Thread Ingo Molnar
nst char *fmt, ...) > console_verbose(); > bust_spinlocks(1); > va_start(args, fmt); > - vsnprintf(buf, sizeof(buf), fmt, args); > + len = vscnprintf(buf, sizeof(buf), fmt, args); > va_end(args); > + > + if (len && buf[len - 1] =

Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-09 Thread Ingo Molnar
* Yi Sun wrote: > On 18-10-09 12:54:27, Ingo Molnar wrote: > > > > * Yi Sun wrote: > > > > > Follow PV spinlock mechanism to implement the callback functions > > > to allow the CPU idling and kicking operations on Hype

Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-09 Thread Ingo Molnar
* Yi Sun wrote: > On 18-10-09 12:54:27, Ingo Molnar wrote: > > > > * Yi Sun wrote: > > > > > Follow PV spinlock mechanism to implement the callback functions > > > to allow the CPU idling and kicking operations on Hype

Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-09 Thread Ingo Molnar
* Yi Sun wrote: > Follow PV spinlock mechanism to implement the callback functions > to allow the CPU idling and kicking operations on Hyper-V. > +#if defined(CONFIG_SMP) > + smp_ops.smp_prepare_boot_cpu = hv_smp_prepare_boot_cpu; > +#endif What's wrong with using the common pattern of:

Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-09 Thread Ingo Molnar
* Yi Sun wrote: > Follow PV spinlock mechanism to implement the callback functions > to allow the CPU idling and kicking operations on Hyper-V. > +#if defined(CONFIG_SMP) > + smp_ops.smp_prepare_boot_cpu = hv_smp_prepare_boot_cpu; > +#endif What's wrong with using the common pattern of:

Re: [Patch] sched/fair: Avoid throttle_list starvation with low cfs quota

2018-10-09 Thread Ingo Molnar
t; Signed-off-by: Phil Auld > Fixes: c06f04c70489 ("sched: Fix potential near-infinite > distribute_cfs_runtime() loop") > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: sta...@vger.kernel.org > --- > > This is easy to reproduce with a handful of cpu consu

Re: [Patch] sched/fair: Avoid throttle_list starvation with low cfs quota

2018-10-09 Thread Ingo Molnar
t; Signed-off-by: Phil Auld > Fixes: c06f04c70489 ("sched: Fix potential near-infinite > distribute_cfs_runtime() loop") > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: sta...@vger.kernel.org > --- > > This is easy to reproduce with a handful of cpu consu

Re: [tip:x86/urgent] x86/mm: Avoid VLA in pgd_alloc()

2018-10-09 Thread Ingo Molnar
* Joerg Roedel wrote: > Hi Arnd, > > On Tue, Oct 09, 2018 at 09:33:56AM +0200, Arnd Bergmann wrote: > > Ah, cool, thanks for the analysis. Is the patch already reverted? > > I.e. should I send a replacement patch, or a relative fix, or is > > someone else already on it? > > Kees sent a fix

Re: [tip:x86/urgent] x86/mm: Avoid VLA in pgd_alloc()

2018-10-09 Thread Ingo Molnar
* Joerg Roedel wrote: > Hi Arnd, > > On Tue, Oct 09, 2018 at 09:33:56AM +0200, Arnd Bergmann wrote: > > Ah, cool, thanks for the analysis. Is the patch already reverted? > > I.e. should I send a replacement patch, or a relative fix, or is > > someone else already on it? > > Kees sent a fix

Re: [PATCH] mm,numa: Remove remaining traces of rate-limiting.

2018-10-09 Thread Ingo Molnar
* Mel Gorman wrote: > On Sat, Oct 06, 2018 at 04:53:19PM +0530, Srikar Dronamraju wrote: > > With Commit efaffc5e40ae ("mm, sched/numa: Remove rate-limiting of automatic > > NUMA balancing migration"), we no more require migrate lock and its > > initialization. Its redundant. Hence remove it.

Re: [PATCH] mm,numa: Remove remaining traces of rate-limiting.

2018-10-09 Thread Ingo Molnar
* Mel Gorman wrote: > On Sat, Oct 06, 2018 at 04:53:19PM +0530, Srikar Dronamraju wrote: > > With Commit efaffc5e40ae ("mm, sched/numa: Remove rate-limiting of automatic > > NUMA balancing migration"), we no more require migrate lock and its > > initialization. Its redundant. Hence remove it.

Re: unwind_init() takes 100 ms

2018-10-09 Thread Ingo Molnar
* Josh Poimboeuf wrote: > > 4. Would a command line parameter be reasonable `disable_unwind`, so people > > could decrease their boot time with distribution kernels, and easily turn it > > back on, when they need a stacktrace without having to rebuild the Linux > > kernel? > > I think a boot

Re: unwind_init() takes 100 ms

2018-10-09 Thread Ingo Molnar
* Josh Poimboeuf wrote: > > 4. Would a command line parameter be reasonable `disable_unwind`, so people > > could decrease their boot time with distribution kernels, and easily turn it > > back on, when they need a stacktrace without having to rebuild the Linux > > kernel? > > I think a boot

Re: unwind_init() takes 100 ms

2018-10-09 Thread Ingo Molnar
* Josh Poimboeuf wrote: > On Mon, Oct 08, 2018 at 12:34:17PM -0500, Josh Poimboeuf wrote: > > > 4. Would a command line parameter be reasonable `disable_unwind`, so > > > people > > > could decrease their boot time with distribution kernels, and easily turn > > > it > > > back on, when they

Re: unwind_init() takes 100 ms

2018-10-09 Thread Ingo Molnar
* Josh Poimboeuf wrote: > On Mon, Oct 08, 2018 at 12:34:17PM -0500, Josh Poimboeuf wrote: > > > 4. Would a command line parameter be reasonable `disable_unwind`, so > > > people > > > could decrease their boot time with distribution kernels, and easily turn > > > it > > > back on, when they

Re: [GIT PULL 00/12] perf/core improvements and fixes

2018-10-08 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 7c5314b88da6d5af98239786772a1c44cc5eb67d: > > perf/x86/intel: Add quirk for Goldmont Plus

Re: [GIT PULL 00/12] perf/core improvements and fixes

2018-10-08 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 7c5314b88da6d5af98239786772a1c44cc5eb67d: > > perf/x86/intel: Add quirk for Goldmont Plus

[tip:x86/asm] x86/segments: Introduce the 'CPUNODE' naming to better document the segment limit CPU/node NR trick

2018-10-08 Thread tip-bot for Ingo Molnar
Commit-ID: 22245bdf0ad805d6c29f82b6d5e977ee94bb2166 Gitweb: https://git.kernel.org/tip/22245bdf0ad805d6c29f82b6d5e977ee94bb2166 Author: Ingo Molnar AuthorDate: Mon, 8 Oct 2018 10:41:59 +0200 Committer: Ingo Molnar CommitDate: Mon, 8 Oct 2018 10:45:02 +0200 x86/segments: Introduce

[tip:x86/asm] x86/fsgsbase/64: Clean up various details

2018-10-08 Thread tip-bot for Ingo Molnar
Commit-ID: ec3a94188df7d28b374868d9a2a0face910e62ab Gitweb: https://git.kernel.org/tip/ec3a94188df7d28b374868d9a2a0face910e62ab Author: Ingo Molnar AuthorDate: Mon, 8 Oct 2018 10:41:59 +0200 Committer: Ingo Molnar CommitDate: Mon, 8 Oct 2018 10:45:04 +0200 x86/fsgsbase/64: Clean up

[tip:x86/asm] x86/segments: Introduce the 'CPUNODE' naming to better document the segment limit CPU/node NR trick

2018-10-08 Thread tip-bot for Ingo Molnar
Commit-ID: 22245bdf0ad805d6c29f82b6d5e977ee94bb2166 Gitweb: https://git.kernel.org/tip/22245bdf0ad805d6c29f82b6d5e977ee94bb2166 Author: Ingo Molnar AuthorDate: Mon, 8 Oct 2018 10:41:59 +0200 Committer: Ingo Molnar CommitDate: Mon, 8 Oct 2018 10:45:02 +0200 x86/segments: Introduce

[tip:x86/asm] x86/fsgsbase/64: Clean up various details

2018-10-08 Thread tip-bot for Ingo Molnar
Commit-ID: ec3a94188df7d28b374868d9a2a0face910e62ab Gitweb: https://git.kernel.org/tip/ec3a94188df7d28b374868d9a2a0face910e62ab Author: Ingo Molnar AuthorDate: Mon, 8 Oct 2018 10:41:59 +0200 Committer: Ingo Molnar CommitDate: Mon, 8 Oct 2018 10:45:04 +0200 x86/fsgsbase/64: Clean up

Re: [PATCH v6 8/8] x86/vdso: Move out the CPU initialization

2018-10-08 Thread Ingo Molnar
* Chang S. Bae wrote: > The CPU and node number will be written, as early enough, > to the segment limit of per CPU data and TSC_AUX MSR entry. > The information has been retrieved by vgetcpu in user space > and will be also loaded from the paranoid entry, when > FSGSBASE enabled. > > The new

Re: [PATCH v6 8/8] x86/vdso: Move out the CPU initialization

2018-10-08 Thread Ingo Molnar
* Chang S. Bae wrote: > The CPU and node number will be written, as early enough, > to the segment limit of per CPU data and TSC_AUX MSR entry. > The information has been retrieved by vgetcpu in user space > and will be also loaded from the paranoid entry, when > FSGSBASE enabled. > > The new

Re: [GIT PULL 0/5] perf/urgent fixes

2018-10-05 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 5d05dfd13f20b01a3cd5d293058baa7d5c1583b6: > > Merge tag 'perf-urgent-for-mingo-4.19-20180918' of >

Re: [GIT PULL 0/5] perf/urgent fixes

2018-10-05 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 5d05dfd13f20b01a3cd5d293058baa7d5c1583b6: > > Merge tag 'perf-urgent-for-mingo-4.19-20180918' of >

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

2018-10-05 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Oct 05, 2018 at 11:31:08AM +0200, Ingo Molnar wrote: > > > > * Nadav Amit wrote: > > > > > > Are you using defconfig or a reasonable distro-config for your tests? > > > > > > I think it is best to

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

2018-10-05 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Oct 05, 2018 at 11:31:08AM +0200, Ingo Molnar wrote: > > > > * Nadav Amit wrote: > > > > > > Are you using defconfig or a reasonable distro-config for your tests? > > > > > > I think it is best to

Re: [GIT PULL] perf fixes

2018-10-05 Thread Ingo Molnar
* Ingo Molnar wrote: > Linus, ... and Greg as well!! ;-) Thanks, Ingo ps. script fixed.

Re: [GIT PULL] perf fixes

2018-10-05 Thread Ingo Molnar
* Ingo Molnar wrote: > Linus, ... and Greg as well!! ;-) Thanks, Ingo ps. script fixed.

[GIT PULL] x86 fixes

2018-10-05 Thread Ingo Molnar
Greg, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: 02e425668f5c9deb42787d10001a3b605993ad15 x86/vdso: Fix vDSO syscall fallback asm constraint regression Misc fixes: - fix various

[GIT PULL] x86 fixes

2018-10-05 Thread Ingo Molnar
Greg, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: 02e425668f5c9deb42787d10001a3b605993ad15 x86/vdso: Fix vDSO syscall fallback asm constraint regression Misc fixes: - fix various

[GIT PULL] scheduler fixes

2018-10-05 Thread Ingo Molnar
Greg, Please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus # HEAD: 37355bdc5a129899f6b245900a8eb944a092f7fd sched/numa: Migrate pages to local nodes quicker early in the lifetime of a task These

[GIT PULL] scheduler fixes

2018-10-05 Thread Ingo Molnar
Greg, Please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus # HEAD: 37355bdc5a129899f6b245900a8eb944a092f7fd sched/numa: Migrate pages to local nodes quicker early in the lifetime of a task These

[GIT PULL] perf fixes

2018-10-05 Thread Ingo Molnar
Linus, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: d7cbbe49a9304520181fb8c9272d1327deec8453 perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events Misc fixes: -

[GIT PULL] perf fixes

2018-10-05 Thread Ingo Molnar
Linus, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: d7cbbe49a9304520181fb8c9272d1327deec8453 perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events Misc fixes: -

[GIT PULL] locking fixes

2018-10-05 Thread Ingo Molnar
Greg, Please pull the latest locking-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-for-linus # HEAD: e4a02ed2aaf447fa849e3254bfdb3b9b01e1e520 locking/ww_mutex: Fix runtime warning in the WW mutex selftest A fix in the ww_mutex

[GIT PULL] locking fixes

2018-10-05 Thread Ingo Molnar
Greg, Please pull the latest locking-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-for-linus # HEAD: e4a02ed2aaf447fa849e3254bfdb3b9b01e1e520 locking/ww_mutex: Fix runtime warning in the WW mutex selftest A fix in the ww_mutex

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

2018-10-05 Thread Ingo Molnar
t Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Philippe Ombredanne Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20181003213100.189959-11-na...@vmware.com Signed-off-by: Ingo Molnar commit dfc243615d43bb477d1d16a0064fc3d69ade5b3a Author: Nadav Amit Date: Wed Oct 3 14:

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

2018-10-05 Thread Ingo Molnar
t Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Philippe Ombredanne Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20181003213100.189959-11-na...@vmware.com Signed-off-by: Ingo Molnar commit dfc243615d43bb477d1d16a0064fc3d69ade5b3a Author: Nadav Amit Date: Wed Oct 3 14:

Re: [PATCH v2 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-04 Thread Ingo Molnar
* Waiman Long wrote: > diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h > index b0d0b51c4d85..1fd82ff99c65 100644 > --- a/include/linux/lockdep.h > +++ b/include/linux/lockdep.h > @@ -99,13 +99,8 @@ struct lock_class { >*/ > unsigned intversion;

Re: [PATCH v2 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-04 Thread Ingo Molnar
* Waiman Long wrote: > diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h > index b0d0b51c4d85..1fd82ff99c65 100644 > --- a/include/linux/lockdep.h > +++ b/include/linux/lockdep.h > @@ -99,13 +99,8 @@ struct lock_class { >*/ > unsigned intversion;

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

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

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

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

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 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 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

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

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

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

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

2018-10-04 Thread Ingo Molnar
* 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 description > and reality. Another problem I j

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

2018-10-04 Thread Ingo Molnar
* 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 description > and reality. Another problem I j

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

2018-10-04 Thread Ingo Molnar
istic, it might still happen, any decade now. [ mingo: Wrote new changelog. ] Tested-by: Kees Cook Signed-off-by: Nadav Amit Acked-by: Peter Zijlstra (Intel) Cc: Borislav Petkov Cc: Jan Beulich Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20181003213100.189959-5-na...@vmware.com Signed-off-by: Ingo Molnar ---

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

2018-10-04 Thread Ingo Molnar
istic, it might still happen, any decade now. [ mingo: Wrote new changelog. ] Tested-by: Kees Cook Signed-off-by: Nadav Amit Acked-by: Peter Zijlstra (Intel) Cc: Borislav Petkov Cc: Jan Beulich Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20181003213100.189959-5-na...@vmware.com Signed-off-by: Ingo Molnar ---

Re: X86-64 uses generic string functions (strlen, strchr, memcmp, ...)

2018-10-03 Thread Ingo Molnar
* Jann Horn wrote: > Hi! > > I noticed that X86-64 is using the generic string functions from > lib/string.c for things like strlen(), strchr(), memcmp() and so on. > Is that an intentional omission, because they're not considered worth > optimizing, or is this an oversight? The kernel

Re: X86-64 uses generic string functions (strlen, strchr, memcmp, ...)

2018-10-03 Thread Ingo Molnar
* Jann Horn wrote: > Hi! > > I noticed that X86-64 is using the generic string functions from > lib/string.c for things like strlen(), strchr(), memcmp() and so on. > Is that an intentional omission, because they're not considered worth > optimizing, or is this an oversight? The kernel

Re: [PATCH v2 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-03 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, Oct 02, 2018 at 04:19:19PM -0400, Waiman Long wrote: > > +DEFINE_PER_CPU(unsigned long [MAX_LOCKDEP_KEYS], lock_class_ops); > > > @@ -179,9 +181,30 @@ DECLARE_PER_CPU(struct lockdep_stats, lockdep_stats); > > }

Re: [PATCH v2 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-03 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, Oct 02, 2018 at 04:19:19PM -0400, Waiman Long wrote: > > +DEFINE_PER_CPU(unsigned long [MAX_LOCKDEP_KEYS], lock_class_ops); > > > @@ -179,9 +181,30 @@ DECLARE_PER_CPU(struct lockdep_stats, lockdep_stats); > > }

Re: [Patch v2 4/4] x86/speculation: Add prctl to control indirect branch speculation per process

2018-10-03 Thread Ingo Molnar
* Tim Chen wrote: > Thanks for the corrections. I'll update the patchset. Please also go beyond the direct review feedback me and Thomas gave, and pro-actively look out for similar patterns of mistakes in these patches and in all future patches you send. As Thomas's and my review made it

Re: [Patch v2 4/4] x86/speculation: Add prctl to control indirect branch speculation per process

2018-10-03 Thread Ingo Molnar
* Tim Chen wrote: > Thanks for the corrections. I'll update the patchset. Please also go beyond the direct review feedback me and Thomas gave, and pro-actively look out for similar patterns of mistakes in these patches and in all future patches you send. As Thomas's and my review made it

Re: [PATCH v6 0/3] Add a kernel parameter to change the padding size for KASLR

2018-10-03 Thread Ingo Molnar
* Masayoshi Mizuma wrote: > This patch series are adding an kernel parameter to change > the padding size used for KASLR. It is useful for memory hotplug > capable system. User can adjust the padding size to use it. > > It is better if the padding size is calculated automatically, > however,

Re: [PATCH v6 0/3] Add a kernel parameter to change the padding size for KASLR

2018-10-03 Thread Ingo Molnar
* Masayoshi Mizuma wrote: > This patch series are adding an kernel parameter to change > the padding size used for KASLR. It is useful for memory hotplug > capable system. User can adjust the padding size to use it. > > It is better if the padding size is calculated automatically, > however,

Re: [PATCH 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-02 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, Oct 02, 2018 at 10:10:48AM -0400, Waiman Long wrote: > > One alternative is to group it under CONFIG_DEBUG_LOCKDEP again. This > > metric was originally under CONFIG_DEBUG_LOCKDEP, but was moved to > > CONFIG_LOCKDEP when trying to make other lock debugging

Re: [PATCH 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-02 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, Oct 02, 2018 at 10:10:48AM -0400, Waiman Long wrote: > > One alternative is to group it under CONFIG_DEBUG_LOCKDEP again. This > > metric was originally under CONFIG_DEBUG_LOCKDEP, but was moved to > > CONFIG_LOCKDEP when trying to make other lock debugging

Re: [PATCH v8 02/10] Makefile: Prepare for using macros for inline asm

2018-10-02 Thread Ingo Molnar
* Nadav Amit wrote: > at 1:58 AM, Rasmus Villemoes wrote: > > > On 2018-09-18 23:28, Nadav Amit wrote: > > > >> diff --git a/arch/x86/Makefile b/arch/x86/Makefile > >> index 8f6e7eb8ae9f..944fa3bc9376 100644 > >> --- a/arch/x86/Makefile > >> +++ b/arch/x86/Makefile > >> @@ -214,8 +214,8 @@

Re: [PATCH v8 02/10] Makefile: Prepare for using macros for inline asm

2018-10-02 Thread Ingo Molnar
* Nadav Amit wrote: > at 1:58 AM, Rasmus Villemoes wrote: > > > On 2018-09-18 23:28, Nadav Amit wrote: > > > >> diff --git a/arch/x86/Makefile b/arch/x86/Makefile > >> index 8f6e7eb8ae9f..944fa3bc9376 100644 > >> --- a/arch/x86/Makefile > >> +++ b/arch/x86/Makefile > >> @@ -214,8 +214,8 @@

Re: [PATCH 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-02 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Fri, Sep 28, 2018 at 01:53:20PM -0400, Waiman Long wrote: > > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c > > index ca002c0..7a0ed1d 100644 > > --- a/kernel/locking/lockdep.c > > +++ b/kernel/locking/lockdep.c > > @@ -139,6 +139,7 @@ static

Re: [PATCH 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-02 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Fri, Sep 28, 2018 at 01:53:20PM -0400, Waiman Long wrote: > > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c > > index ca002c0..7a0ed1d 100644 > > --- a/kernel/locking/lockdep.c > > +++ b/kernel/locking/lockdep.c > > @@ -139,6 +139,7 @@ static

Re: [PATCH 22/22] x86_64: use relative pointers with dynamic debug

2018-10-02 Thread Ingo Molnar
"\t.long 0\t# \n" \ > + _DPRINTK_ASM_KEY_INIT \ > + ".popsection\n" \ > + ".endif\n" \ > + : : "i" (KBUILD_MODNAME), "i" (__func__), \ > +"i" (__FILE__), "i" (fmt), \ > +"i" (_DPRINTK_FLAGS_LINENO_INIT)) > + > +#endif /* _ASM_X86_DYNAMIC_DEBUG_H */ > + Reviewed-by: Ingo Molnar Thanks, Ingo

Re: [PATCH 22/22] x86_64: use relative pointers with dynamic debug

2018-10-02 Thread Ingo Molnar
"\t.long 0\t# \n" \ > + _DPRINTK_ASM_KEY_INIT \ > + ".popsection\n" \ > + ".endif\n" \ > + : : "i" (KBUILD_MODNAME), "i" (__func__), \ > +"i" (__FILE__), "i" (fmt), \ > +"i" (_DPRINTK_FLAGS_LINENO_INIT)) > + > +#endif /* _ASM_X86_DYNAMIC_DEBUG_H */ > + Reviewed-by: Ingo Molnar Thanks, Ingo

Re: [PATCH 21/22] x86: jump_label: introduce ASM_STATIC_KEY_INIT_{TRUE,FALSE}

2018-10-02 Thread Ingo Molnar
h > +++ b/include/linux/jump_label.h > @@ -132,6 +132,8 @@ struct module; > > #ifdef HAVE_JUMP_LABEL > > +#define __JUMP_TYPE_FALSE0 > +#define __JUMP_TYPE_TRUE 1 > #define JUMP_TYPE_FALSE 0UL > #define JUMP_TYPE_TRUE 1UL > #define JUMP_TYPE_LINKED 2UL Looks sane! Reviewed-by: Ingo Molnar Thanks, Ingo

Re: [PATCH 21/22] x86: jump_label: introduce ASM_STATIC_KEY_INIT_{TRUE,FALSE}

2018-10-02 Thread Ingo Molnar
h > +++ b/include/linux/jump_label.h > @@ -132,6 +132,8 @@ struct module; > > #ifdef HAVE_JUMP_LABEL > > +#define __JUMP_TYPE_FALSE0 > +#define __JUMP_TYPE_TRUE 1 > #define JUMP_TYPE_FALSE 0UL > #define JUMP_TYPE_TRUE 1UL > #define JUMP_TYPE_LINKED 2UL Looks sane! Reviewed-by: Ingo Molnar Thanks, Ingo

Re: [PATCH v2 1/3] Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved"

2018-10-02 Thread Ingo Molnar
* Masayoshi Mizuma wrote: > From: Masayoshi Mizuma > > commit 124049decbb1 ("x86/e820: put !E820_TYPE_RAM regions into > memblock.reserved") breaks movable_node kernel option because it > changed the memory gap range to reserved memblock. So, the node > is marked as Normal zone even if the

<    8   9   10   11   12   13   14   15   16   17   >