[PATCH v2] fpga: dfl: region: Restory symmetry in probe()/remove()

2018-08-20 Thread Moritz Fischer
Replace dev_get_drvdata() with platform_get_drvdata() to match the platform_set_drvdata() in the probe function of the platform driver. Fixes commit bb61b9be3e6b ("fpga: dfl: add fpga region platform driver for FME") Signed-off-by: Moritz Fischer --- Changes from v1: - Still compile after

[PATCH v2] fpga: dfl: region: Restory symmetry in probe()/remove()

2018-08-20 Thread Moritz Fischer
Replace dev_get_drvdata() with platform_get_drvdata() to match the platform_set_drvdata() in the probe function of the platform driver. Fixes commit bb61b9be3e6b ("fpga: dfl: add fpga region platform driver for FME") Signed-off-by: Moritz Fischer --- Changes from v1: - Still compile after

Re: [PATCH RFC] mm: don't miss the last page because of round-off error

2018-08-20 Thread Roman Gushchin
On Fri, Aug 17, 2018 at 06:22:13PM -0700, Matthew Wilcox wrote: > On Fri, Aug 17, 2018 at 04:18:34PM -0700, Roman Gushchin wrote: > > - scan = div64_u64(scan * fraction[file], > > -denominator); > > + if (scan > 1) > > +

Re: [PATCH RFC] mm: don't miss the last page because of round-off error

2018-08-20 Thread Roman Gushchin
On Fri, Aug 17, 2018 at 06:22:13PM -0700, Matthew Wilcox wrote: > On Fri, Aug 17, 2018 at 04:18:34PM -0700, Roman Gushchin wrote: > > - scan = div64_u64(scan * fraction[file], > > -denominator); > > + if (scan > 1) > > +

Re: [PATCH 1/4] regulator: core: If consumers don't call regulator_set_load() assume max

2018-08-20 Thread Mark Brown
On Fri, Aug 17, 2018 at 02:36:01PM -0700, Bjorn Andersson wrote: > FWIW, we've had this problem on other devices as well; where the eMMC > won't operate properly unless the supply operates in HPM. We've worked > around this by specifying regulator-system-load for said regulators. You can set the

Re: [PATCH 1/4] regulator: core: If consumers don't call regulator_set_load() assume max

2018-08-20 Thread Mark Brown
On Fri, Aug 17, 2018 at 02:36:01PM -0700, Bjorn Andersson wrote: > FWIW, we've had this problem on other devices as well; where the eMMC > won't operate properly unless the supply operates in HPM. We've worked > around this by specifying regulator-system-load for said regulators. You can set the

Re: [PATCH v2 1/2] x86: corruption-check: Passing memory_corruption_check to command line causes panic

2018-08-20 Thread Greg KH
On Mon, Aug 20, 2018 at 04:56:22PM +0800, He Zhe wrote: > Could you please provide your input? Thanks. It is the middle of the merge window, we can not do anything with new patches. This is a trivial cleanup fix, nothing that is really important at the moment it will be reviewed in time, please

Re: [PATCH v2 1/2] x86: corruption-check: Passing memory_corruption_check to command line causes panic

2018-08-20 Thread Greg KH
On Mon, Aug 20, 2018 at 04:56:22PM +0800, He Zhe wrote: > Could you please provide your input? Thanks. It is the middle of the merge window, we can not do anything with new patches. This is a trivial cleanup fix, nothing that is really important at the moment it will be reviewed in time, please

Re: [PATCH] mtd: m25p80: consider max message size when use the spi_mem_xx() API

2018-08-20 Thread Greg KH
On Mon, Aug 20, 2018 at 05:43:26PM +0800, Chuanhua Han wrote: > Signed-off-by: Chuanhua Han > --- > Changes in v2: > - Place the adjusted transfer bytes code in spi_mem_adjust_op_size() > and check spi_max_message_size(mem->spi) value before subtracting > opcode, addr and

Re: [PATCH] mtd: m25p80: consider max message size when use the spi_mem_xx() API

2018-08-20 Thread Greg KH
On Mon, Aug 20, 2018 at 05:43:26PM +0800, Chuanhua Han wrote: > Signed-off-by: Chuanhua Han > --- > Changes in v2: > - Place the adjusted transfer bytes code in spi_mem_adjust_op_size() > and check spi_max_message_size(mem->spi) value before subtracting > opcode, addr and

[PATCH] kobject: Access kobject name with caution if state is not initialized

2018-08-20 Thread Srikar Dronamraju
If kobject state is not initialized, then its not even certain that kobject'name is initialized. Hence when accessing the kobject's name tread carefully. A stupid module test like https://github.com/srikard/tests/blob/master/modules/kobject_test.c can panic the system. With patch: We will see

[PATCH] kobject: Access kobject name with caution if state is not initialized

2018-08-20 Thread Srikar Dronamraju
If kobject state is not initialized, then its not even certain that kobject'name is initialized. Hence when accessing the kobject's name tread carefully. A stupid module test like https://github.com/srikard/tests/blob/master/modules/kobject_test.c can panic the system. With patch: We will see

[PATCH] sparc: fix KBUILD_DEFCONFIG for ARCH=sparc32

2018-08-20 Thread Masahiro Yamada
As commit 5ba800962a80 ("kbuild: update ARCH alias info for sparc") addressed, SPARC accepts ARCH=sparc32 as an alias. However, arch/sparc/Makefile wrongly sets KBUILD_DEFCONFIG, then sparc64_defconfig is chosen as the base configuration for ARCH=sparc32. $ make ARCH=sparc32 defconfig ***

[PATCH] sparc: fix KBUILD_DEFCONFIG for ARCH=sparc32

2018-08-20 Thread Masahiro Yamada
As commit 5ba800962a80 ("kbuild: update ARCH alias info for sparc") addressed, SPARC accepts ARCH=sparc32 as an alias. However, arch/sparc/Makefile wrongly sets KBUILD_DEFCONFIG, then sparc64_defconfig is chosen as the base configuration for ARCH=sparc32. $ make ARCH=sparc32 defconfig ***

Re: [PATCH] mm: introduce kvvirt_to_page() helper

2018-08-20 Thread Matthew Wilcox
On Mon, Aug 20, 2018 at 06:24:06PM +0200, Michal Hocko wrote: > On Mon 20-08-18 07:49:23, Matthew Wilcox wrote: > > On Mon, Aug 20, 2018 at 04:41:16PM +0200, Michal Hocko wrote: > > > On Sat 18-08-18 20:49:01, Li RongQing wrote: > > > > The new helper returns address mapping page, which has

Re: [PATCH] mm: introduce kvvirt_to_page() helper

2018-08-20 Thread Matthew Wilcox
On Mon, Aug 20, 2018 at 06:24:06PM +0200, Michal Hocko wrote: > On Mon 20-08-18 07:49:23, Matthew Wilcox wrote: > > On Mon, Aug 20, 2018 at 04:41:16PM +0200, Michal Hocko wrote: > > > On Sat 18-08-18 20:49:01, Li RongQing wrote: > > > > The new helper returns address mapping page, which has

Re: [PATCH v8 1/2] PCI: pciehp: Ignore link events when there is a fatal error pending

2018-08-20 Thread Sinan Kaya
On 8/20/2018 5:22 AM, Lukas Wunner wrote: + This differs from v7 of the patch in that*any* fatal error, not just a Surprise Link Down, results in pciehp waiting for the error to clear. I'm wondering if that's safe: Theoretically, the user might quickly swap the card in the slot during, say,

Re: [PATCH v1 2/2] Embedded USB Debugger (EUD) driver

2018-08-20 Thread pheragu
On 2018-08-17 12:47, Trilok Soni wrote: Hi Prakruthi, On 8/16/2018 5:05 PM, Prakruthi Deepak Heragu wrote: + +#define EUD_INT_VBUS BIT(2) +#define EUD_INT_CHGR BIT(3) +#define EUD_INT_SAFE_MODE BIT(4) + +#define EUD_NR 1 I don't see any use of EUD_NR

Re: [PATCH v8 1/2] PCI: pciehp: Ignore link events when there is a fatal error pending

2018-08-20 Thread Sinan Kaya
On 8/20/2018 5:22 AM, Lukas Wunner wrote: + This differs from v7 of the patch in that*any* fatal error, not just a Surprise Link Down, results in pciehp waiting for the error to clear. I'm wondering if that's safe: Theoretically, the user might quickly swap the card in the slot during, say,

Re: [PATCH v1 2/2] Embedded USB Debugger (EUD) driver

2018-08-20 Thread pheragu
On 2018-08-17 12:47, Trilok Soni wrote: Hi Prakruthi, On 8/16/2018 5:05 PM, Prakruthi Deepak Heragu wrote: + +#define EUD_INT_VBUS BIT(2) +#define EUD_INT_CHGR BIT(3) +#define EUD_INT_SAFE_MODE BIT(4) + +#define EUD_NR 1 I don't see any use of EUD_NR

Re: [PATCH 1/3] iio: adxl372: Provide validate_trigger and validate_device callbacks

2018-08-20 Thread jic23
On 20.08.2018 16:47, Lars-Peter Clausen wrote: On 08/20/2018 04:53 PM, Stefan Popa wrote: This patch provides a validate_device callback for the trigger which makes sure that other devices are rejected. Signed-off-by: Stefan Popa @@ -762,11 +762,24 @@ static int

Re: [PATCH 1/3] iio: adxl372: Provide validate_trigger and validate_device callbacks

2018-08-20 Thread jic23
On 20.08.2018 16:47, Lars-Peter Clausen wrote: On 08/20/2018 04:53 PM, Stefan Popa wrote: This patch provides a validate_device callback for the trigger which makes sure that other devices are rejected. Signed-off-by: Stefan Popa @@ -762,11 +762,24 @@ static int

Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains

2018-08-20 Thread Halil Pasic
On 08/20/2018 04:23 PM, Cornelia Huck wrote: On Mon, 13 Aug 2018 17:48:09 -0400 Tony Krowiak wrote: From: Tony Krowiak Provides the sysfs interfaces for: 1. Assigning AP control domains to the mediated matrix device 2. Unassigning AP control domains from a mediated matrix device 3.

Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains

2018-08-20 Thread Halil Pasic
On 08/20/2018 04:23 PM, Cornelia Huck wrote: On Mon, 13 Aug 2018 17:48:09 -0400 Tony Krowiak wrote: From: Tony Krowiak Provides the sysfs interfaces for: 1. Assigning AP control domains to the mediated matrix device 2. Unassigning AP control domains from a mediated matrix device 3.

Re: [PATCH v9 07/22] KVM: s390: refactor crypto initialization

2018-08-20 Thread David Hildenbrand
On 13.08.2018 23:48, Tony Krowiak wrote: > From: Tony Krowiak > > This patch refactors the code that initializes and sets up the > crypto configuration for a guest. The following changes are > implemented via this patch: > > 1. Prior to the introduction of AP device virtualization, it >was

Re: [PATCH v9 07/22] KVM: s390: refactor crypto initialization

2018-08-20 Thread David Hildenbrand
On 13.08.2018 23:48, Tony Krowiak wrote: > From: Tony Krowiak > > This patch refactors the code that initializes and sets up the > crypto configuration for a guest. The following changes are > implemented via this patch: > > 1. Prior to the introduction of AP device virtualization, it >was

[GIT PULL] tracing: Updates for 4.19

2018-08-20 Thread Steven Rostedt
Linus, Updates for v4.19: - Restructure of lockdep and latency tracers This is the biggest change. Joel Fernandes restructured the hooks from irqs and preemption disabling and enabling. He got rid of a lot of the preprocessor #ifdef mess that they caused. He turned both lockdep

[GIT PULL] tracing: Updates for 4.19

2018-08-20 Thread Steven Rostedt
Linus, Updates for v4.19: - Restructure of lockdep and latency tracers This is the biggest change. Joel Fernandes restructured the hooks from irqs and preemption disabling and enabling. He got rid of a lot of the preprocessor #ifdef mess that they caused. He turned both lockdep

Re: [LINUX PATCH v10 2/2] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller

2018-08-20 Thread Boris Brezillon
Hi Naga, On Fri, 17 Aug 2018 18:49:24 +0530 Naga Sureshkumar Relli wrote: > > +config MTD_NAND_ARASAN > + tristate "Support for Arasan Nand Flash controller" > + depends on HAS_IOMEM > + depends on HAS_DMA Just nitpicking, but you can place them on the same line: depends

Re: [LINUX PATCH v10 2/2] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller

2018-08-20 Thread Boris Brezillon
Hi Naga, On Fri, 17 Aug 2018 18:49:24 +0530 Naga Sureshkumar Relli wrote: > > +config MTD_NAND_ARASAN > + tristate "Support for Arasan Nand Flash controller" > + depends on HAS_IOMEM > + depends on HAS_DMA Just nitpicking, but you can place them on the same line: depends

[GIT PULL] livepatching

2018-08-20 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching.git for-linus to receive livepatching updates = - code cleanups from Kamalesh Babulal = Thanks. Kamalesh Babulal (2):

[GIT PULL] livepatching

2018-08-20 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching.git for-linus to receive livepatching updates = - code cleanups from Kamalesh Babulal = Thanks. Kamalesh Babulal (2):

Re: [PATCH v3] staging: mt7621-mmc: Fix debug macros and their usages

2018-08-20 Thread Nishad Kamdar
On Sun, Aug 19, 2018 at 01:34:01PM +0200, Greg Kroah-Hartman wrote: > On Sun, Aug 19, 2018 at 03:35:02PM +0530, Nishad Kamdar wrote: > > Fixed four debug macros and their usages. Replaced printk with > > dev_ without __func__ or __LINE__ or current->comm and > > current->pid. Further removed the

Re: [PATCH v3] staging: mt7621-mmc: Fix debug macros and their usages

2018-08-20 Thread Nishad Kamdar
On Sun, Aug 19, 2018 at 01:34:01PM +0200, Greg Kroah-Hartman wrote: > On Sun, Aug 19, 2018 at 03:35:02PM +0530, Nishad Kamdar wrote: > > Fixed four debug macros and their usages. Replaced printk with > > dev_ without __func__ or __LINE__ or current->comm and > > current->pid. Further removed the

[PATCH] ia64: Fix kernel BUG at lib/ioremap.c:72!

2018-08-20 Thread Tony Luck
Commit: 0bbf47eab469 ("ia64: use asm-generic/io.h") results in a BUG while booting ia64. This is because asm-generic/io.h defines PCI_IOBASE, which results in the function acpi_pci_root_remap_iospace() doing a lot of unnecessary (and wrong) things. I'd suggested an #if !CONFIG_IA64 in the

[PATCH] ia64: Fix kernel BUG at lib/ioremap.c:72!

2018-08-20 Thread Tony Luck
Commit: 0bbf47eab469 ("ia64: use asm-generic/io.h") results in a BUG while booting ia64. This is because asm-generic/io.h defines PCI_IOBASE, which results in the function acpi_pci_root_remap_iospace() doing a lot of unnecessary (and wrong) things. I'd suggested an #if !CONFIG_IA64 in the

Re: [PATCH V3 0/4] clk: new APIs to handle all available clocks

2018-08-20 Thread Thor Thayer
Hi, On 08/16/2018 09:33 PM, A.s. Dong wrote: Hi Stephen, Do you want me to resend this series for review? It seems have been pending for quite a long time. Thor just pinged me for its status as he wants to use it. Regards Dong Aisheng -Original Message- From: A.s. Dong Sent:

Re: [PATCH V3 0/4] clk: new APIs to handle all available clocks

2018-08-20 Thread Thor Thayer
Hi, On 08/16/2018 09:33 PM, A.s. Dong wrote: Hi Stephen, Do you want me to resend this series for review? It seems have been pending for quite a long time. Thor just pinged me for its status as he wants to use it. Regards Dong Aisheng -Original Message- From: A.s. Dong Sent:

Re: Crash in MM code in v4.4.y, v4.9.y with TRANSPARENT_HUGEPAGE enabled

2018-08-20 Thread Michal Hocko
On Fri 17-08-18 15:27:33, Guenter Roeck wrote: > Hi, > > the following crash is seen in v4.4.148, v4.4.149, v4.9.120, and v4.9.121 > with CONFIG_TRANSPARENT_HUGEPAGE=y, CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y. Could you try to apply fd7e315988b7 ("x86/mm: Simplify p[g4um]d_page() macros"). I do

Re: Crash in MM code in v4.4.y, v4.9.y with TRANSPARENT_HUGEPAGE enabled

2018-08-20 Thread Michal Hocko
On Fri 17-08-18 15:27:33, Guenter Roeck wrote: > Hi, > > the following crash is seen in v4.4.148, v4.4.149, v4.9.120, and v4.9.121 > with CONFIG_TRANSPARENT_HUGEPAGE=y, CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y. Could you try to apply fd7e315988b7 ("x86/mm: Simplify p[g4um]d_page() macros"). I do

Regression: 18996f2db918 ("ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume" breaks resume from suspend

2018-08-20 Thread Michal Suchánek
Hello, after commit 18996f2db918 ("ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume") I am no longer able to resume from suspend. Reported in bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=200841 Reverting this on top of 4.18 fixes the issue. acpidump output

Regression: 18996f2db918 ("ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume" breaks resume from suspend

2018-08-20 Thread Michal Suchánek
Hello, after commit 18996f2db918 ("ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume") I am no longer able to resume from suspend. Reported in bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=200841 Reverting this on top of 4.18 fixes the issue. acpidump output

[tip:locking/urgent] futex: Mark expected switch fall-throughs

2018-08-20 Thread tip-bot for Gustavo A. R. Silva
Commit-ID: b639186ffe9168fd1d2f95a1fff8571720739126 Gitweb: https://git.kernel.org/tip/b639186ffe9168fd1d2f95a1fff8571720739126 Author: Gustavo A. R. Silva AuthorDate: Thu, 16 Aug 2018 12:21:24 -0500 Committer: Thomas Gleixner CommitDate: Mon, 20 Aug 2018 18:23:00 +0200 futex: Mark

[tip:locking/urgent] futex: Mark expected switch fall-throughs

2018-08-20 Thread tip-bot for Gustavo A. R. Silva
Commit-ID: b639186ffe9168fd1d2f95a1fff8571720739126 Gitweb: https://git.kernel.org/tip/b639186ffe9168fd1d2f95a1fff8571720739126 Author: Gustavo A. R. Silva AuthorDate: Thu, 16 Aug 2018 12:21:24 -0500 Committer: Thomas Gleixner CommitDate: Mon, 20 Aug 2018 18:23:00 +0200 futex: Mark

Re: [PATCH] locking: Remove an insn from spin and write locks

2018-08-20 Thread Matthew Wilcox
On Mon, Aug 20, 2018 at 05:56:50PM +0200, Peter Zijlstra wrote: > Yeah, _acquire should be retained; sorry about loosing that. I'm neck > deep into tlb invalidate stuff and wrote this without much thinking > involved. NP. Here's the current version I've got, with some updated likely() hints.

Re: [PATCH] locking: Remove an insn from spin and write locks

2018-08-20 Thread Matthew Wilcox
On Mon, Aug 20, 2018 at 05:56:50PM +0200, Peter Zijlstra wrote: > Yeah, _acquire should be retained; sorry about loosing that. I'm neck > deep into tlb invalidate stuff and wrote this without much thinking > involved. NP. Here's the current version I've got, with some updated likely() hints.

Re: [PATCH] x86/spectre: Expand test for vulnerability to empty RSB exploits

2018-08-20 Thread Thomas Gleixner
On Mon, 20 Aug 2018, Jim Mattson wrote: > On Mon, Aug 20, 2018 at 9:00 AM, Thomas Gleixner wrote: > > > > On Tue, 7 Aug 2018, Jim Mattson wrote: > > > > > Skylake-era Intel CPUs are vulnerable to exploits of empty RSB > > > conditions. On hardware, platform vulnerability can be determined > > >

Re: [PATCH] x86/spectre: Expand test for vulnerability to empty RSB exploits

2018-08-20 Thread Thomas Gleixner
On Mon, 20 Aug 2018, Jim Mattson wrote: > On Mon, Aug 20, 2018 at 9:00 AM, Thomas Gleixner wrote: > > > > On Tue, 7 Aug 2018, Jim Mattson wrote: > > > > > Skylake-era Intel CPUs are vulnerable to exploits of empty RSB > > > conditions. On hardware, platform vulnerability can be determined > > >

Re: [PATCH] mm: introduce kvvirt_to_page() helper

2018-08-20 Thread Michal Hocko
On Mon 20-08-18 07:49:23, Matthew Wilcox wrote: > On Mon, Aug 20, 2018 at 04:41:16PM +0200, Michal Hocko wrote: > > On Sat 18-08-18 20:49:01, Li RongQing wrote: > > > The new helper returns address mapping page, which has several users > > > in individual subsystem, like mem_to_page in xfs_buf.c

Re: [PATCH] mm: introduce kvvirt_to_page() helper

2018-08-20 Thread Michal Hocko
On Mon 20-08-18 07:49:23, Matthew Wilcox wrote: > On Mon, Aug 20, 2018 at 04:41:16PM +0200, Michal Hocko wrote: > > On Sat 18-08-18 20:49:01, Li RongQing wrote: > > > The new helper returns address mapping page, which has several users > > > in individual subsystem, like mem_to_page in xfs_buf.c

[GIT PULL] HID

2018-08-20 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive HID subsystem updates: = - touch_max detection improvements and quirk handling fixes in wacom driver from Jason Gerecke and Ping Cheng - Palm rejection from Dmitry Torokhov and

[GIT PULL] HID

2018-08-20 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive HID subsystem updates: = - touch_max detection improvements and quirk handling fixes in wacom driver from Jason Gerecke and Ping Cheng - Palm rejection from Dmitry Torokhov and

Re: [PATCH] x86/spectre: Expand test for vulnerability to empty RSB exploits

2018-08-20 Thread Jim Mattson
On Mon, Aug 20, 2018 at 9:00 AM, Thomas Gleixner wrote: > > On Tue, 7 Aug 2018, Jim Mattson wrote: > > > Skylake-era Intel CPUs are vulnerable to exploits of empty RSB > > conditions. On hardware, platform vulnerability can be determined > > simply by checking the processor's

Re: [PATCH] x86/spectre: Expand test for vulnerability to empty RSB exploits

2018-08-20 Thread Jim Mattson
On Mon, Aug 20, 2018 at 9:00 AM, Thomas Gleixner wrote: > > On Tue, 7 Aug 2018, Jim Mattson wrote: > > > Skylake-era Intel CPUs are vulnerable to exploits of empty RSB > > conditions. On hardware, platform vulnerability can be determined > > simply by checking the processor's

[PATCH 21/21] tools arch: Update arch/x86/lib/memcpy_64.S copy used in 'perf bench mem memcpy'

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To bring in the change made in this cset: Fixes: a7bea8308933 ("x86/asm/64: Use 32-bit XOR to zero registers") CC /tmp/build/perf/bench/mem-memcpy-x86-64-asm.o LD /tmp/build/perf/bench/perf-in.o LD /tmp/build/perf/perf-in.o LINK

[PATCH 20/21] tools arch x86: Update tools's copy of cpufeatures.h

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the changes in the following csets: 301d328a6f8b ("x86/cpufeatures: Add EPT_AD feature bit") 706d51681d63 ("x86/speculation: Support Enhanced IBRS on future CPUs") No tools were affected, copy it to silence this perf tool build warning: Warning:

[PATCH 21/21] tools arch: Update arch/x86/lib/memcpy_64.S copy used in 'perf bench mem memcpy'

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To bring in the change made in this cset: Fixes: a7bea8308933 ("x86/asm/64: Use 32-bit XOR to zero registers") CC /tmp/build/perf/bench/mem-memcpy-x86-64-asm.o LD /tmp/build/perf/bench/perf-in.o LD /tmp/build/perf/perf-in.o LINK

[PATCH 20/21] tools arch x86: Update tools's copy of cpufeatures.h

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the changes in the following csets: 301d328a6f8b ("x86/cpufeatures: Add EPT_AD feature bit") 706d51681d63 ("x86/speculation: Support Enhanced IBRS on future CPUs") No tools were affected, copy it to silence this perf tool build warning: Warning:

[PATCH 19/21] perf python: Fix pyrf_evlist__read_on_cpu() interface

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Jaroslav reported errors from valgrind over perf python script: # echo 0 > /sys/devices/system/cpu/cpu4/online # valgrind ./test.py ==7524== Memcheck, a memory error detector ... ==7524== Command: ./test.py ==7524== pid 7526 exited ==7524== Invalid read of size 8

[PATCH 19/21] perf python: Fix pyrf_evlist__read_on_cpu() interface

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Jaroslav reported errors from valgrind over perf python script: # echo 0 > /sys/devices/system/cpu/cpu4/online # valgrind ./test.py ==7524== Memcheck, a memory error detector ... ==7524== Command: ./test.py ==7524== pid 7526 exited ==7524== Invalid read of size 8

[PATCH 16/21] perf tools: Add gzip_is_compressed function

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add implementation of the is_compressed callback for gzip. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-13-jo...@kernel.org Signed-off-by: Arnaldo

[PATCH 15/21] perf tools: Add lzma_is_compressed function

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add implementation of the is_compressed callback for lzma. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-12-jo...@kernel.org Signed-off-by: Arnaldo

[PATCH 17/21] perf tools: Remove ext from struct kmod_path

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Having comp carrying the compression ID, we no longer need return the extension. Removing it and updating the automated test. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 16/21] perf tools: Add gzip_is_compressed function

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add implementation of the is_compressed callback for gzip. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-13-jo...@kernel.org Signed-off-by: Arnaldo

[PATCH 15/21] perf tools: Add lzma_is_compressed function

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add implementation of the is_compressed callback for lzma. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-12-jo...@kernel.org Signed-off-by: Arnaldo

[PATCH 17/21] perf tools: Remove ext from struct kmod_path

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Having comp carrying the compression ID, we no longer need return the extension. Removing it and updating the automated test. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 18/21] perf mmap: Store real cpu number in 'struct perf_mmap'

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Store the real cpu number in 'struct perf_mmap', which will be used by python interface that allows user to read a particular memory map for given cpu. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Jaroslav Škarvada Cc: Joe Mario Cc: Namhyung Kim Cc:

[PATCH 13/21] perf tools: Move the temp file processing into decompress_kmodule

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We will add a compression check in the following patch and it makes it easier if the file processing is done in a single place. It also makes the current code simpler. The decompress_kmodule function now returns the fd of the uncompressed file and the file name in the pathname

[PATCH 14/21] perf tools: Add is_compressed callback to compressions array

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add is_compressed callback to the compressions array, that returns 0 if the file is compressed or != 0 if not. The new callback is used to recognize the situation when we have a 'compressed' object, like: /lib/modules/.../drivers/net/ethernet/intel/igb/igb.ko.xz but we need

[PATCH 18/21] perf mmap: Store real cpu number in 'struct perf_mmap'

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Store the real cpu number in 'struct perf_mmap', which will be used by python interface that allows user to read a particular memory map for given cpu. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Jaroslav Škarvada Cc: Joe Mario Cc: Namhyung Kim Cc:

[PATCH 13/21] perf tools: Move the temp file processing into decompress_kmodule

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We will add a compression check in the following patch and it makes it easier if the file processing is done in a single place. It also makes the current code simpler. The decompress_kmodule function now returns the fd of the uncompressed file and the file name in the pathname

[PATCH 14/21] perf tools: Add is_compressed callback to compressions array

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add is_compressed callback to the compressions array, that returns 0 if the file is compressed or != 0 if not. The new callback is used to recognize the situation when we have a 'compressed' object, like: /lib/modules/.../drivers/net/ethernet/intel/igb/igb.ko.xz but we need

[PATCH 12/21] perf tools: Use compression id in decompress_kmodule()

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Once we parsed out the compression ID, we dont need to iterate all available compressions and we can call it directly. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 11/21] perf tools: Store compression id into struct dso

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add comp to 'struct dso' to hold the compression index. It will be used in the following patches. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 12/21] perf tools: Use compression id in decompress_kmodule()

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Once we parsed out the compression ID, we dont need to iterate all available compressions and we can call it directly. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 11/21] perf tools: Store compression id into struct dso

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add comp to 'struct dso' to hold the compression index. It will be used in the following patches. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 10/21] perf tools: Add compression id into 'struct kmod_path'

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Store a decompression ID in 'struct kmod_path', so it can be later stored in 'struct dso'. Switch 'struct kmod_path's 'comp' from 'bool' to 'int' to return the compressions array index. Add 0 index item into compressions array, so that the comp usage stays as it was: 0 - no

[PATCH 10/21] perf tools: Add compression id into 'struct kmod_path'

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Store a decompression ID in 'struct kmod_path', so it can be later stored in 'struct dso'. Switch 'struct kmod_path's 'comp' from 'bool' to 'int' to return the compressions array index. Add 0 index item into compressions array, so that the comp usage stays as it was: 0 - no

[PATCH 07/21] perf tools: Get rid of dso__needs_decompress() call in __open_dso()

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no need to call dso__needs_decompress() twice in the function. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-4-jo...@kernel.org

[PATCH 04/21] tools lib traceevent: Change to SPDX License format

2018-08-20 Thread Arnaldo Carvalho de Melo
From: "Steven Rostedt (VMware)" Replace the GPL text with SPDX tags in the tools/lib/traceevent files. Signed-off-by: Steven Rostedt Cc: Jiri Olsa Cc: Tzvetomir Stoyanov (VMware) Cc: Yordan Karadzhov (VMware) Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 09/21] perf tools: Make is_supported_compression() static

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no outside user of it. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-6-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

Re: [PATCH] nios2: kconfig: remove duplicate DEBUG_STACK_USAGE symbol defintions

2018-08-20 Thread Masahiro Yamada
2018-08-16 16:05 GMT+09:00 Tobias Klauser : > DEBUG_STACK_USAGE is already defined in lib/Kconfig.debug > > Signed-off-by: Tobias Klauser Reviewed-by: Masahiro Yamada > --- > arch/nios2/Kconfig.debug | 9 - > 1 file changed, 9 deletions(-) > > diff --git a/arch/nios2/Kconfig.debug

[PATCH 08/21] perf tools: Make decompress_to_file() function static

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no outside user of it. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-5-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

[GIT PULL 00/21] perf/core improvements and fixes

2018-08-20 Thread Arnaldo Carvalho de Melo
into perf/urgent (2018-08-18 13:11:51 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.19-20180820 for you to fetch changes up to 78303650e4cd873c6c4276c6fe3e768ff0b46d22: tools arch: Update arch/x86/lib

[PATCH 07/21] perf tools: Get rid of dso__needs_decompress() call in __open_dso()

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no need to call dso__needs_decompress() twice in the function. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-4-jo...@kernel.org

[PATCH 04/21] tools lib traceevent: Change to SPDX License format

2018-08-20 Thread Arnaldo Carvalho de Melo
From: "Steven Rostedt (VMware)" Replace the GPL text with SPDX tags in the tools/lib/traceevent files. Signed-off-by: Steven Rostedt Cc: Jiri Olsa Cc: Tzvetomir Stoyanov (VMware) Cc: Yordan Karadzhov (VMware) Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 09/21] perf tools: Make is_supported_compression() static

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no outside user of it. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-6-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

Re: [PATCH] nios2: kconfig: remove duplicate DEBUG_STACK_USAGE symbol defintions

2018-08-20 Thread Masahiro Yamada
2018-08-16 16:05 GMT+09:00 Tobias Klauser : > DEBUG_STACK_USAGE is already defined in lib/Kconfig.debug > > Signed-off-by: Tobias Klauser Reviewed-by: Masahiro Yamada > --- > arch/nios2/Kconfig.debug | 9 - > 1 file changed, 9 deletions(-) > > diff --git a/arch/nios2/Kconfig.debug

[PATCH 08/21] perf tools: Make decompress_to_file() function static

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no outside user of it. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-5-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

[GIT PULL 00/21] perf/core improvements and fixes

2018-08-20 Thread Arnaldo Carvalho de Melo
into perf/urgent (2018-08-18 13:11:51 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.19-20180820 for you to fetch changes up to 78303650e4cd873c6c4276c6fe3e768ff0b46d22: tools arch: Update arch/x86/lib

[PATCH 06/21] perf tools: Get rid of dso__needs_decompress() call in symbol__disassemble()

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no need to call dso__needs_decompress() twice in the function. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-3-jo...@kernel.org

[PATCH 01/21] perf tools: Disable parallelism for 'make clean'

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Rasmus Villemoes The Yocto build system does a 'make clean' when rebuilding due to changed dependencies, and that consistently fails for me (causing the whole BSP build to fail) with errors such as | find: '[...]/perf/1.0-r9/perf-1.0/plugin_mac80211.so': No such file or directory | find:

[PATCH 03/21] perf llvm: Allow passing options to llc in addition to clang

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The newly added 'llvm.opts' variable allows passing options directly to llc, like needed to get sane DWARF in BPF ELF debug sections: With: [root@seventh perf]# cat ~/.perfconfig [llvm] dump-obj = true clang-opt = -g [root@seventh perf]#

[PATCH 03/21] perf llvm: Allow passing options to llc in addition to clang

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The newly added 'llvm.opts' variable allows passing options directly to llc, like needed to get sane DWARF in BPF ELF debug sections: With: [root@seventh perf]# cat ~/.perfconfig [llvm] dump-obj = true clang-opt = -g [root@seventh perf]#

[PATCH 06/21] perf tools: Get rid of dso__needs_decompress() call in symbol__disassemble()

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no need to call dso__needs_decompress() twice in the function. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-3-jo...@kernel.org

[PATCH 01/21] perf tools: Disable parallelism for 'make clean'

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Rasmus Villemoes The Yocto build system does a 'make clean' when rebuilding due to changed dependencies, and that consistently fails for me (causing the whole BSP build to fail) with errors such as | find: '[...]/perf/1.0-r9/perf-1.0/plugin_mac80211.so': No such file or directory | find:

[PATCH 05/21] perf tools: Get rid of dso__needs_decompress() call in read_object_code()

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no need to call dso__needs_decompress() twice in the function. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-2-jo...@kernel.org

[PATCH 02/21] perf parser: Improve error message for PMU address filters

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jack Henschel This is the second version of a patch that improves the error message of the perf events parser when the PMU hardware does not support address filters. Previously, the perf returned the following error: $ perf record -e intel_pt// --filter 'filter sys_write' --filter

[PATCH 05/21] perf tools: Get rid of dso__needs_decompress() call in read_object_code()

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no need to call dso__needs_decompress() twice in the function. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180817094813.15086-2-jo...@kernel.org

[PATCH 02/21] perf parser: Improve error message for PMU address filters

2018-08-20 Thread Arnaldo Carvalho de Melo
From: Jack Henschel This is the second version of a patch that improves the error message of the perf events parser when the PMU hardware does not support address filters. Previously, the perf returned the following error: $ perf record -e intel_pt// --filter 'filter sys_write' --filter

<    1   2   3   4   5   6   7   8   9   >