[tip:perf/core] perf data: Move size to struct perf_data_file

2019-02-28 Thread tip-bot for Jiri Olsa
Commit-ID: 45112e89a8b2b4c9a004147cbfb448b1200cfbf7 Gitweb: https://git.kernel.org/tip/45112e89a8b2b4c9a004147cbfb448b1200cfbf7 Author: Jiri Olsa AuthorDate: Thu, 21 Feb 2019 10:41:29 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 22 Feb 2019 16:52:07 -0300 perf data: Move

[tip:perf/core] perf data: Add global path holder

2019-02-28 Thread tip-bot for Jiri Olsa
Commit-ID: 2d4f27999b8877409f326682fd8cc40c52f47cea Gitweb: https://git.kernel.org/tip/2d4f27999b8877409f326682fd8cc40c52f47cea Author: Jiri Olsa AuthorDate: Thu, 21 Feb 2019 10:41:30 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 22 Feb 2019 16:52:07 -0300 perf data: Add

[PATCH V4 1/2] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-28 Thread Anson Huang
i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and watchdog etc.. This patch adds i.MX system controller watchdog driver support, watchdog operation needs to be done in secure EL3 mode via

[PATCH V4 2/2] arm64: defconfig: add support for i.MX system controller watchdog

2019-02-28 Thread Anson Huang
Enable CONFIG_IMX_SC_WDT as module to support i.MX system controller watchdog. Signed-off-by: Anson Huang --- no changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2d9c390..690f4ba

[tip:perf/core] perf tools: Add depth checking to rm_rf

2019-02-28 Thread tip-bot for Jiri Olsa
Commit-ID: 05a486593977bfcf71de6bf5cad6d045c18829c6 Gitweb: https://git.kernel.org/tip/05a486593977bfcf71de6bf5cad6d045c18829c6 Author: Jiri Olsa AuthorDate: Sun, 24 Feb 2019 20:06:37 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 10:32:11 -0300 perf tools: Add

[tip:perf/core] perf tools: Add pattern name checking to rm_rf

2019-02-28 Thread tip-bot for Jiri Olsa
Commit-ID: cdb6b0235f170a5ffcd74731178efc064bd4d24a Gitweb: https://git.kernel.org/tip/cdb6b0235f170a5ffcd74731178efc064bd4d24a Author: Jiri Olsa AuthorDate: Sun, 24 Feb 2019 20:06:38 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 10:33:04 -0300 perf tools: Add

[tip:perf/core] perf data: Make check_backup work over directories

2019-02-28 Thread tip-bot for Jiri Olsa
Commit-ID: 5021fc4e8c7c3be6f8735eff76fb2520485fcec4 Gitweb: https://git.kernel.org/tip/5021fc4e8c7c3be6f8735eff76fb2520485fcec4 Author: Jiri Olsa AuthorDate: Sun, 24 Feb 2019 20:06:42 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 10:35:19 -0300 perf data: Make

[tip:perf/core] perf tools: Add rm_rf_perf_data function

2019-02-28 Thread tip-bot for Jiri Olsa
Commit-ID: c69e4c37b37c816c7dbd307a6e7d2d2a5cfe8788 Gitweb: https://git.kernel.org/tip/c69e4c37b37c816c7dbd307a6e7d2d2a5cfe8788 Author: Jiri Olsa AuthorDate: Sun, 24 Feb 2019 20:06:39 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 10:33:51 -0300 perf tools: Add

[tip:perf/core] perf data: Fail check_backup in case of error

2019-02-28 Thread tip-bot for Jiri Olsa
Commit-ID: ccb7a71dcea071c7fd68192909c4e54561c88043 Gitweb: https://git.kernel.org/tip/ccb7a71dcea071c7fd68192909c4e54561c88043 Author: Jiri Olsa AuthorDate: Sun, 24 Feb 2019 20:06:43 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 10:37:01 -0300 perf data: Fail

[tip:perf/core] perf data: Add perf_data__(create_dir|close_dir) functions

2019-02-28 Thread tip-bot for Jiri Olsa
Commit-ID: 145520631130bd64820b591775733256473eac62 Gitweb: https://git.kernel.org/tip/145520631130bd64820b591775733256473eac62 Author: Jiri Olsa AuthorDate: Sun, 24 Feb 2019 20:06:44 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 10:42:05 -0300 perf data: Add

[tip:perf/core] perf script: Handle missing fields with -F +..

2019-02-28 Thread tip-bot for Andi Kleen
Commit-ID: 4b6ac811bce46c83811b83cdf87b41251596b9fc Gitweb: https://git.kernel.org/tip/4b6ac811bce46c83811b83cdf87b41251596b9fc Author: Andi Kleen AuthorDate: Sun, 24 Feb 2019 07:37:12 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 10:58:07 -0300 perf script:

Re: [PATCH] staging: rtl8712: assign initial value to a static variable in r8712_efuse_pg_packet_write()

2019-02-28 Thread Greg KH
On Wed, Feb 27, 2019 at 11:33:22AM +0800, Mao Wenan wrote: > repeat_times is a static variable, but each time when it enters > r8712_efuse_pg_packet_write(), it is set to zero, > this value is not consistent with last calling, so next behavior > is not our expect. > > Signed-off-by: Mao Wenan >

[tip:perf/core] perf data: Add perf_data__open_dir_data function

2019-02-28 Thread tip-bot for Jiri Olsa
Commit-ID: eb6176709b235b96511c7b4745c30412568395c7 Gitweb: https://git.kernel.org/tip/eb6176709b235b96511c7b4745c30412568395c7 Author: Jiri Olsa AuthorDate: Sun, 24 Feb 2019 20:06:45 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 10:43:07 -0300 perf data: Add

[tip:perf/core] perf script python: Add Python3 support to netdev-times.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: 02b03ec383e0c79d73aa4b402b3427a8b490ef9f Gitweb: https://git.kernel.org/tip/02b03ec383e0c79d73aa4b402b3427a8b490ef9f Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:05 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:16:42 -0300 perf script

Re: [PATCH] mm,mremap: Bail out earlier in mremap_to under map pressure

2019-02-28 Thread Vlastimil Babka
On 2/27/19 10:32 PM, Oscar Salvador wrote: > On Tue, Feb 26, 2019 at 02:04:28PM -0800, Andrew Morton wrote: >> How is this going to affect existing userspace which is aware of the >> current behaviour? > > Well, current behavior is not really predictable. > Our customer was "surprised" that the

[tip:perf/core] perf tools: Add perf_exe() helper to find perf binary

2019-02-28 Thread tip-bot for Andi Kleen
Commit-ID: 94816add0005595ea33fc8456519be582330401e Gitweb: https://git.kernel.org/tip/94816add0005595ea33fc8456519be582330401e Author: Andi Kleen AuthorDate: Sun, 24 Feb 2019 07:37:19 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 10:58:28 -0300 perf tools:

[tip:perf/core] perf script python: Add Python3 support to failed-syscalls-by-pid.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: 9b2700efc57f46fe63beee5f64fcfe2746936b4e Gitweb: https://git.kernel.org/tip/9b2700efc57f46fe63beee5f64fcfe2746936b4e Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:08 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:16:48 -0300 perf script

[tip:perf/core] perf script python: Add Python3 support to mem-phys-addr.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: e4d053ddb4c48cbde27b4c5edd3cc8f957684e4f Gitweb: https://git.kernel.org/tip/e4d053ddb4c48cbde27b4c5edd3cc8f957684e4f Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:11 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:16:51 -0300 perf script

[tip:perf/core] perf script python: Add Python3 support to powerpc-hcalls.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: 118af5bf799bd1876c3999766d1d2f845d45f019 Gitweb: https://git.kernel.org/tip/118af5bf799bd1876c3999766d1d2f845d45f019 Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:13 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:16:57 -0300 perf script

[tip:perf/core] perf script python: Add Python3 support to sctop.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: ee75a896ae535d4219a82cc361be96394536f3ba Gitweb: https://git.kernel.org/tip/ee75a896ae535d4219a82cc361be96394536f3ba Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:14 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:17:03 -0300 perf script

[tip:perf/core] perf script python: Add Python3 support to net_dropmonitor.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: 8c42b9600e561666233b9c557a5209d0dc853ba1 Gitweb: https://git.kernel.org/tip/8c42b9600e561666233b9c557a5209d0dc853ba1 Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:12 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:16:55 -0300 perf script

[tip:perf/core] perf script python: Add Python3 support to stackcollapse.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: 6d22d9991cf37edfe861569e2433342ad56206a7 Gitweb: https://git.kernel.org/tip/6d22d9991cf37edfe861569e2433342ad56206a7 Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:15 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:17:05 -0300 perf script

[tip:perf/core] perf script python: Add Python3 support to stat-cpi.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: e985bf761db7646cebcd236249da08bd264069de Gitweb: https://git.kernel.org/tip/e985bf761db7646cebcd236249da08bd264069de Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:16 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:17:07 -0300 perf script

Re: [PATCH v10 0/9] support ROHM BD70528 PMIC

2019-02-28 Thread Lee Jones
On Thu, 28 Feb 2019, Matti Vaittinen wrote: > Hello Lee and Mark, > > On Thu, Feb 14, 2019 at 03:02:37PM +0200, Matti Vaittinen wrote: > > Patch series introducing support for ROHM BD70528 PMIC > > > > ROHM BD70528 is a programmable Power Management IC for battery > > powered 'ultra low power'

[tip:perf/core] perf script python: Add Python3 support to syscall-counts.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: 1d1b0dbb859d175eb512a9f0e1ca7e44bd0192cd Gitweb: https://git.kernel.org/tip/1d1b0dbb859d175eb512a9f0e1ca7e44bd0192cd Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:17 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:17:10 -0300 perf script

Re: [RFC PATCH] soc/fsl/qe: support MPC8309

2019-02-28 Thread Rasmus Villemoes
On 28/02/2019 08.14, Qiang Zhao wrote: > On Tue, Feb 26, 2019 at 2:49 AM Rasmus Villemoes > wrote: >> -Original Message- >> From: Rasmus Villemoes >> Sent: 2019年2月26日 16:48 >> To: Qiang Zhao ; Leo Li >> Cc: linux-kernel@vger.kernel.org; Valentin Longchamp >> ; Scott Wood ; >> Rasmus

[tip:perf/core] perf script python: Add Python3 support to syscall-counts-by-pid.py

2019-02-28 Thread tip-bot for Tony Jones
Commit-ID: de667cce7f4f96b6e22da8fd9c065b961f355080 Gitweb: https://git.kernel.org/tip/de667cce7f4f96b6e22da8fd9c065b961f355080 Author: Tony Jones AuthorDate: Fri, 22 Feb 2019 15:06:18 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Feb 2019 17:17:13 -0300 perf script

linux-next: Tree for Feb 28

2019-02-28 Thread Stephen Rothwell
Hi all, Changes since 20190227: The mmc-fixes tree lost its build failure. The bpf-next tree gained a build failure for which I applied a hackisk patch. The staging tree gained a conflict against the net-next tree. Non-merge commits (relative to Linus' tree): 10428 10406 files changed,

Re: [PATCH v10 0/9] support ROHM BD70528 PMIC

2019-02-28 Thread Matti Vaittinen
Hello Lee, Mark, On Thu, Feb 28, 2019 at 08:10:55AM +, Lee Jones wrote: > On Thu, 28 Feb 2019, Matti Vaittinen wrote: > > > Hello Lee and Mark, > > > > On Thu, Feb 14, 2019 at 03:02:37PM +0200, Matti Vaittinen wrote: > > > Patch series introducing support for ROHM BD70528 PMIC > > > > > I

Re: [PATCH v4 4/7] vfio: ap: register IOMMU VFIO notifier

2019-02-28 Thread Christian Borntraeger
On 22.02.2019 16:29, Pierre Morel wrote: > To be able to use the VFIO interface to facilitate the > mediated device memory pining/unpining we need to register > a notifier for IOMMU. You might want to add that while we start to pin one guest page for the interrupt indicator byte in the next

Re: [RFC PATCH 1/4] X.509: Parse public key parameters from x509 for akcipher

2019-02-28 Thread Vitaly Chikunov
On Thu, Feb 28, 2019 at 03:51:41PM +0800, Herbert Xu wrote: > On Thu, Feb 28, 2019 at 10:04:49AM +0300, Vitaly Chikunov wrote: > > > > It seems that you insist on set_params to be removed and both key and > > params to be passed into set_{pub,priv}_key. This means reworking all > > existing RSA

Re: [PATCH][next] rsi: fix missing null pointer check from a failed ieee80211_probereq_get call

2019-02-28 Thread Kalle Valo
Colin King wrote: > From: Colin Ian King > > The call to ieee80211_probereq_get can return NULL if a skb allocation > fails, so add a null pointer check and free an earlier skb on the error > exit return path. > > Fixes: 7fdcb8e12660 ("rsi: add support for hardware scan offload") >

Re: [PATCH v4 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-02-28 Thread Christian Borntraeger
On 25.02.2019 19:36, Tony Krowiak wrote: > On 2/22/19 10:29 AM, Pierre Morel wrote: >> We prepare the interception of the PQAP/AQIC instruction for >> the case the AQIC facility is enabled in the guest. >> >> We add a callback inside the KVM arch structure for s390 for >> a VFIO driver to

Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-02-28 Thread Masami Hiramatsu
Hi Joel, On Wed, 27 Feb 2019 14:37:47 -0500 "Joel Fernandes (Google)" wrote: > Introduce in-kernel headers and other artifacts which are made available > as an archive through proc (/proc/kheaders.tar.xz file). This archive makes > it possible to build kernel modules, run eBPF programs, and

Re: [PATCH 1/2] device.h: pack struct dev_links_info

2019-02-28 Thread Greg Kroah-Hartman
On Wed, Feb 27, 2019 at 02:32:26PM +0100, Johan Hovold wrote: > On Wed, Feb 27, 2019 at 01:06:45PM +0100, Greg Kroah-Hartman wrote: > > On Wed, Feb 27, 2019 at 11:59:51AM +0100, Johan Hovold wrote: > > > Yeah, that is a good point, normally we use packed to keep padding from > > the middle of the

[PATCH v2 3/4] mm/compaction: pass pgdat to too_many_isolated() instead of zone

2019-02-28 Thread Andrey Ryabinin
too_many_isolated() in mm/compaction.c looks only at node state, so it makes more sense to change argument to pgdat instead of zone. Signed-off-by: Andrey Ryabinin Acked-by: Vlastimil Babka Acked-by: Rik van Riel Cc: Johannes Weiner Cc: Michal Hocko Cc: Mel Gorman --- Changes since v1: -

[PATCH v2 1/4] mm/workingset: remove unused @mapping argument in workingset_eviction()

2019-02-28 Thread Andrey Ryabinin
workingset_eviction() doesn't use and never did use the @mapping argument. Remove it. Signed-off-by: Andrey Ryabinin Acked-by: Johannes Weiner Acked-by: Rik van Riel Cc: Michal Hocko Cc: Vlastimil Babka Cc: Mel Gorman --- Changes since v1: - s/@mapping/@page->mapping in comment - Acks

[PATCH 2/2] mm/dax: Don't enable huge dax mapping by default

2019-02-28 Thread Aneesh Kumar K.V
Add a flag to indicate the ability to do huge page dax mapping. On architecture like ppc64, the hypervisor can disable huge page support in the guest. In such a case, we should not enable huge page dax mapping. This patch adds a flag which the architecture code will update to indicate huge page

[PATCH v2 4/4] mm/vmscan: remove unused lru_pages argument

2019-02-28 Thread Andrey Ryabinin
Since commit 9092c71bb724 ("mm: use sc->priority for slab shrink targets") the argument 'unsigned long *lru_pages' passed around with no purpose. Remove it. Signed-off-by: Andrey Ryabinin Acked-by: Johannes Weiner Acked-by: Vlastimil Babka Cc: Michal Hocko Cc: Rik van Riel Cc: Mel Gorman

[PATCH v2 2/4] mm: remove zone_lru_lock() function access ->lru_lock directly

2019-02-28 Thread Andrey Ryabinin
We have common pattern to access lru_lock from a page pointer: zone_lru_lock(page_zone(page)) Which is silly, because it unfolds to this: _DATA(page_to_nid(page))->node_zones[page_zonenum(page)]->zone_pgdat->lru_lock while we can simply do

[PATCH v4 0/10] perf: enable compression of record mode trace to save storage space

2019-02-28 Thread Alexey Budankov
The patch set implements runtime trace compression (-z option) in record mode and trace auto decompression in report and inject modes. Streaming Zstandard (Zstd) API (zstd) is used for compression and decompression of data that come from kernel mmaped data buffers. Usage of implemented

[PATCH 1/2] fs/dax: deposit pagetable even when installing zero page

2019-02-28 Thread Aneesh Kumar K.V
Architectures like ppc64 use the deposited page table to store hardware page table slot information. Make sure we deposit a page table when using zero page at the pmd level for hash. Without this we hit Unable to handle kernel paging request for data at address 0x Faulting instruction

Re: [PATCH 3/5] mt76: fix a leaked reference by adding a missing of_node_put

2019-02-28 Thread Kalle Valo
Wen Yang wrote: > The call to of_find_node_by_phandle returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > > Detected by coccinelle with the following warnings: > ./drivers/net/wireless/mediatek/mt76/eeprom.c:58:2-8: ERROR: missing

Re: [PATCH v2 1/4] mm/workingset: remove unused @mapping argument in workingset_eviction()

2019-02-28 Thread Vlastimil Babka
On 2/28/19 9:33 AM, Andrey Ryabinin wrote: > workingset_eviction() doesn't use and never did use the @mapping argument. > Remove it. > > Signed-off-by: Andrey Ryabinin > Acked-by: Johannes Weiner > Acked-by: Rik van Riel Acked-by: Vlastimil Babka > Cc: Michal Hocko > Cc: Vlastimil Babka >

Re: [PATCH 1/8] net/mlx4: use kzalloc instead of kmalloc

2019-02-28 Thread Tariq Toukan
On 2/27/2019 8:09 AM, Robert Eshleman wrote: > This patch replaces a kmalloc/memset(,0) call with a call to kzalloc. > It also removes a memset(,0) call that always follows a *zalloc call. > > Signed-off-by: Robert Eshleman > --- > drivers/net/ethernet/mellanox/mlx4/cmd.c | 1 - >

Re: [PATCH man-pages] Add rseq manpage

2019-02-28 Thread Michael Kerrisk (man-pages)
On 12/6/18 3:42 PM, Mathieu Desnoyers wrote: > [ Michael, rseq(2) was merged into 4.18. Can you have a look at this > patch which adds rseq documentation to the man-pages project ? ] Hi Matthieu Sorry for the long delay. I've merged this page into a private branch and have done quite a lot of

Re: [PATCH v2] posix-cpu-timers: Avoid undefined behaviour in timespec64_to_ns()

2019-02-28 Thread Arnd Bergmann
On Thu, Feb 28, 2019 at 5:25 AM Deepa Dinamani wrote: > > On Tue, Feb 26, 2019 at 11:52 PM Xiongfeng Wang > wrote: > > > > +++ b/kernel/time/posix-timers.c > > @@ -853,8 +853,8 @@ static int do_timer_settime(timer_t timer_id, int flags, > > unsigned long flag; > > int error = 0;

[PATCH 00/15] habanalabs fixes for merge window

2019-02-28 Thread Oded Gabbay
Hi Greg, This patch-set contains only fixes for H/W, F/W and driver bugs that were discovered and fixed since v5 of the habanalabs upstream patch-set. In addition, the patch-set contains fixes to sparse warnings regarding little-endian to/from cpu conversions (and to other sparse warnings).

[PATCH 07/15] habanalabs: extend QMAN0 job timeout

2019-02-28 Thread Oded Gabbay
From: Omer Shpigelman This patch fix a bug where the timeout for sending a job on QMAN0 by KMD wasn't enough in palladium environment. Signed-off-by: Omer Shpigelman Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/goya/goya.c | 12 +--- 1 file changed, 9 insertions(+), 3

[PATCH 12/15] habanalabs: soft-reset device if context-switch fails

2019-02-28 Thread Oded Gabbay
This patch fix a bug in the driver, where if the TPC or MME remains in non-IDLE even after all the command submissions are done (due to user bug or malicious user), then future command submissions will fail in the context-switch stage and the driver will remain in "stuck" mode. The fix is to do a

[PATCH 15/15] habanalabs: fix little-endian<->cpu conversion warnings

2019-02-28 Thread Oded Gabbay
Add __cpu_to_le16/32/64 and __le16/32/64_to_cpu where needed according to sparse. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/debugfs.c | 15 --- drivers/misc/habanalabs/habanalabs_ioctl.c | 2 +- drivers/misc/habanalabs/hw_queue.c | 23 +-

[PATCH 03/15] habanalabs: disable CPU access on timeouts

2019-02-28 Thread Oded Gabbay
This patch provides a workaround for a bug in the F/W where the response time for a request from KMD may take more then 100ms. This could cause the queue between KMD and the F/W to get out of sync. The WA is to: 1. Increase the timeout of ALL requests to 1s. 2. In case a request isn't answered in

[PATCH 13/15] habanalabs: fix little-endian<->cpu conversion warnings

2019-02-28 Thread Oded Gabbay
From: Tomer Tayar Add __cpu_to_le16/32/64 and __le16/32/64_to_cpu where needed according to sparse. Signed-off-by: Tomer Tayar Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/goya/goya.c | 223 1 file changed, 125 insertions(+), 98 deletions(-) diff --git

[PATCH 01/15] habanalabs: Dissociate RAZWI info from event types

2019-02-28 Thread Oded Gabbay
From: Tomer Tayar This patch provides a workaround for a H/W bug in the RAZWI logger in Goya. The logger doesn't recognize the initiator correctly and as a result, accesses from one initiator are reported that were coming from a different initiator. The WA is to print the error information from

[PATCH 10/15] habanalabs: fix memory leak with CBs with unaligned size

2019-02-28 Thread Oded Gabbay
This patch fix a bug when a command buffer with unaligned size (with regard to PAGE_SIZE) was used. The accounting for the unmap operation wasn't done correctly and could result in a memory leak. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/command_buffer.c | 9 ++--- 1 file

[PATCH 11/15] habanalabs: print pointer using %p

2019-02-28 Thread Oded Gabbay
Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/goya/goya.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c index 13923f4127af..39824214ce61 100644 --- a/drivers/misc/habanalabs/goya/goya.c

[PATCH 09/15] habanalabs: return correct error code on MMU mapping failure

2019-02-28 Thread Oded Gabbay
From: Omer Shpigelman This patch fix a bug where EINVAL was returned instead of -EINVAL. Signed-off-by: Omer Shpigelman Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/habanalabs/mmu.c

[PATCH 06/15] habanalabs: set DMA0 completion to SOB 1007

2019-02-28 Thread Oded Gabbay
This patch fix a bug where DMA channel 0 completion address wasn't initialized by the driver. The patch sets the address to Sync Object no. 1007 Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/goya/goya.c| 14 +++---

[PATCH 14/15] habanalabs: use NULL to initialize array of pointers

2019-02-28 Thread Oded Gabbay
This patch fixes the following sparse warnings: drivers/misc/habanalabs/hwmon.c:20:56: warning: Using plain integer as NULL pointer Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 02/15] habanalabs: add MMU DRAM default page mapping

2019-02-28 Thread Oded Gabbay
From: Omer Shpigelman This patch provides a workaround for a H/W bug in Goya, where access to RAZWI from TPC can cause PCI completion timeout. The WA is to use the device MMU to map any unmapped DRAM memory to a default page in the DRAM. That way, the TPC will never reach RAZWI upon accessing a

[PATCH 05/15] habanalabs: fix validation of WREG32 to DMA completion

2019-02-28 Thread Oded Gabbay
This patch fix a bug in the validation of WREG32 in DMA queues. The validation was too strict. It allowed the user to set the completion address only for DMA channel 1. The fix allows the user to set the completion address for all 5 DMA channels. Signed-off-by: Oded Gabbay ---

[PATCH 04/15] habanalabs: fix mmu cache registers init

2019-02-28 Thread Oded Gabbay
This patch fix an incorrect initialization of the MMU cache registers. The shift operation was done in the wrong direction. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/goya/goya.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 08/15] habanalabs: add comments in uapi/misc/habanalabs.h

2019-02-28 Thread Oded Gabbay
Signed-off-by: Oded Gabbay --- include/uapi/misc/habanalabs.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h index 23d6ad3459cb..7fd6f633534c 100644 --- a/include/uapi/misc/habanalabs.h +++

Re: [PATCH v4 4/7] vfio: ap: register IOMMU VFIO notifier

2019-02-28 Thread Pierre Morel
On 28/02/2019 09:23, Christian Borntraeger wrote: On 22.02.2019 16:29, Pierre Morel wrote: To be able to use the VFIO interface to facilitate the mediated device memory pining/unpining we need to register a notifier for IOMMU. You might want to add that while we start to pin one guest page

Re: [PATCH v4 0/9] Introduce STMFX I2C Multi-Function eXpander

2019-02-28 Thread Alexandre Torgue
Hi Amélie On 2/27/19 10:34 AM, Amelie Delaunay wrote: This series adds support for STMicroelectronics Multi-Function eXpander (STMFX), used on some STM32 discovery and evaluation boards. STMFX is an STM32L152 slave controller whose firmware embeds the following features: - I/O expander (16

Re: [PATCH] xhci: use iopoll for xhci_handshake

2019-02-28 Thread Mathias Nyman
On 28.2.2019 9.09, Greg Kroah-Hartman wrote: On Wed, Feb 27, 2019 at 03:19:17PM -0700, Daniel Kurtz wrote: In cases such as xhci_abort_cmd_ring(), xhci_handshake() is called with a spin lock held (and local interrupts disabled) with a huge 5 second timeout. This can translates to 5 million

Re: [PATCH v4 1/9] dt-bindings: mfd: Add ST Multi-Function eXpander (STMFX) core bindings

2019-02-28 Thread Amelie DELAUNAY
On 2/28/19 12:55 AM, Rob Herring wrote: > On Wed, 27 Feb 2019 10:34:46 +0100, Amelie Delaunay wrote: >> This patch adds documentation of device tree bindings for the >> STMicroelectronics Multi-Function eXpander (STMFX) MFD core. >> >> Signed-off-by: Amelie Delaunay >> Reviewed-by: Linus Walleij

[PATCH 2/2] dt-bindings: clock: imx7ulp: remove SNVS clock

2019-02-28 Thread Anson Huang
Since i.MX7ULP B0 chip, SNVS module is moved into M4 domain, so remove it from Linux clock table. Signed-off-by: Anson Huang --- include/dt-bindings/clock/imx7ulp-clock.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dt-bindings/clock/imx7ulp-clock.h

[PATCH 1/2] clk: imx7ulp: remove snvs clock

2019-02-28 Thread Anson Huang
Since i.MX7ULP B0 chip, the SNVS module is moved into M4 domain and its clock is also moved into PCC0 which is contorlled by M4, Linux kernel should NOT add it into clock tree. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx7ulp.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH] tmpfs: fix uninitialized return value in shmem_link

2019-02-28 Thread Nathan Chancellor
On Wed, Feb 27, 2019 at 09:09:40AM -0500, Qian Cai wrote: > On Mon, 2019-02-25 at 16:07 -0800, Linus Torvalds wrote: > > On Mon, Feb 25, 2019 at 4:03 PM Qian Cai wrote: > > > > > > > > Of course, that's just gcc. I have no idea what llvm ends up doing. > > > > > > Clang 7.0: > > > > > > #

[PATCH v4 01/10] feature: implement libzstd check, LIBZSTD_DIR and NO_LIBZSTD defines

2019-02-28 Thread Alexey Budankov
Implement libzstd feature check, NO_LIBZSTD and LIBZSTD_DIR defines to override Zstd library sources or disable the feature from the command line: $ make -C tools/perf LIBZSTD_DIR=/path/to/zstd/sources/ clean all $ make -C tools/perf NO_LIBZSTD=1 clean all Auto detection feature status is

[PATCH] perf tools: Fix function name in comment

2019-02-28 Thread Shaokun Zhang
get_cpuid_str() is used in tools/perf/arch/xxx/util/header.c, fix the name in comment. Cc: Arnaldo Carvalho de Melo CC: Andi Kleen Signed-off-by: Shaokun Zhang --- tools/perf/pmu-events/pmu-events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v4 02/10] perf record: implement -f,--mmap-flush= option

2019-02-28 Thread Alexey Budankov
Implemented -f,--mmap-flush option that specifies threshold to postpone and/or trigger the move of data from mmaped kernel buffers to a storage. The option can be used to avoid capturing every single byte of data into the stored trace. The default option value is 1. $ tools/perf/perf record

Re: [RFC PATCH 1/4] X.509: Parse public key parameters from x509 for akcipher

2019-02-28 Thread Herbert Xu
On Thu, Feb 28, 2019 at 11:28:01AM +0300, Vitaly Chikunov wrote: > On Thu, Feb 28, 2019 at 03:51:41PM +0800, Herbert Xu wrote: > > On Thu, Feb 28, 2019 at 10:04:49AM +0300, Vitaly Chikunov wrote: > > > > > > It seems that you insist on set_params to be removed and both key and > > > params to be

[PATCH v4 03/10] perf session: define bytes_transferred and bytes_compressed metrics

2019-02-28 Thread Alexey Budankov
Define bytes_transferred and bytes_compressed metrics to calculate comp_ratio=transferred/compressed in the end of the data collection. bytes_transferred accumulates the amount of bytes that was captured from the mmaped kernel buffers for compression. bytes_compressed accumulates the amount of

Re: [RFC v4 08/17] kunit: test: add support for test abort

2019-02-28 Thread Brendan Higgins
On Tue, Feb 26, 2019 at 12:35 PM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-02-14 13:37:20) > > Add support for aborting/bailing out of test cases. Needed for > > implementing assertions. > > Can you add some more text here with the motivating reasons for > implementing assertions and

Re: MT76x2U crashes XHCI driver on AMD Ryzen system

2019-02-28 Thread Stanislaw Gruszka
On Tue, Feb 26, 2019 at 12:24:08PM +0100, Stanislaw Gruszka wrote: > On Tue, Feb 26, 2019 at 11:44:13AM +0100, Joerg Roedel wrote: > > On Tue, Feb 26, 2019 at 11:34:51AM +0100, Stanislaw Gruszka wrote: > > > On Tue, Feb 26, 2019 at 11:05:36AM +0100, Joerg Roedel wrote: > > > If sg->offset >

drivers/infiniband/core/.tmp_gl_uverbs_main.o:undefined reference to `__user_bad'

2019-02-28 Thread kbuild test robot
Hi Jason, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7d762d69145a54d169f58e56d6dac57a5508debc commit: 3a6532c9af1a7836da2d597f1aaca73cb16c3b97 RDMA/uverbs: Use uverbs_attr_bundle to pass udata for write date:

Re: linux-next: manual merge of the net-next tree with the rdma tree

2019-02-28 Thread Leon Romanovsky
On Wed, Feb 27, 2019 at 11:24:51AM -0500, Doug Ledford wrote: > On Wed, 2019-02-27 at 11:25 +1100, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the net-next tree got a conflict in: > > > > drivers/infiniband/hw/mlx4/Kconfig > > > > between commit: > > > >

Re: [PATCH RFC] mac80211: Use IFF_ECHO to force delivery of tx_status frames

2019-02-28 Thread Julius Niedworok
> On 26.02.2019 14:33 Johannes Berg wrote > > You're proposing to add this to the *monitor* interfaces and you really > should have made the flag conditional on that to make that clear. > > However, even on monitor interfaces, you typically *already* see the > frames you transmitted there (as

[PATCH v4 04/10] perf record: implement COMPRESSED event record and its attributes

2019-02-28 Thread Alexey Budankov
Implemented PERF_RECORD_COMPRESSED event, related data types, header feature and functions to write, read and print feature attributes from the trace header section. comp_mmap_len preserves the size of mmaped kernel buffer that was used during collection. comp_mmap_len size is used on loading

Re: [PATCH v6 3/6] arm64/kvm: context-switch ptrauth registers

2019-02-28 Thread Amit Daniel Kachhap
Hi Mark, On 2/21/19 5:59 PM, Mark Rutland wrote: On Tue, Feb 19, 2019 at 02:54:28PM +0530, Amit Daniel Kachhap wrote: From: Mark Rutland When pointer authentication is supported, a guest may wish to use it. This patch adds the necessary KVM infrastructure for this to work, with a semi-lazy

[PATCH v4 05/10] perf mmap: implement dedicated memory buffer for data compression

2019-02-28 Thread Alexey Budankov
Implemented mmap data buffer that is used as the memory to operate on when compressing sampling data in case of serial trace streaming. In case of AIO trace streaming AIO buffers are used to implement sampling data compression. Signed-off-by: Alexey Budankov --- tools/perf/builtin-record.c |

[PATCH v4 06/10] perf util: introduce Zstd based streaming compression API

2019-02-28 Thread Alexey Budankov
Implemented functions are based on Zstd streaming compression API. The functions are used in runtime to compress data that come from mmaped kernel buffer data and then stored into a trace. Signed-off-by: Alexey Budankov --- tools/perf/util/Build | 2 + tools/perf/util/compress.h | 18

Re: [PATCH v2 0/2] x86/mm/KASLR: Change the granularity of randomization to PUD size in 5-level

2019-02-28 Thread Kirill A. Shutemov
On Thu, Feb 28, 2019 at 08:35:20AM +0800, Baoquan He wrote: > arch/x86/mm/kaslr.c | 92 - > 1 file changed, 40 insertions(+), 52 deletions(-) What tree is it against? I cannot apply on current Linus' tree or tip/master. -- Kirill A. Shutemov

Re: [PATCH] tracing: Fix event filters and triggers to handle negative numbers

2019-02-28 Thread Pavel Tikhomirov
ping, looks like the patch was lost On 8/24/18 3:48 AM, Steven Rostedt wrote: > On Thu, 23 Aug 2018 13:25:34 +0300 > Pavel Tikhomirov wrote: > >> Then tracing syscall exit event it is extremely useful to filter exit >> codes equal to some negative value, to react only to required errors. >> But

[PATCH v4 07/10] perf record: implement -z,--compression_level=n option and compression

2019-02-28 Thread Alexey Budankov
Implemented -z,--compression_level=n option that enables compression of mmaped kernel data buffers content in runtime during perf record sampling collection. Compression is implemented using the functions from zstd.c. As the memory to operate on the compression employs mmap->data buffer in case

Re: [PATCH] kasan: prevent recursive instrumentation

2019-02-28 Thread Mark Rutland
On Mon, Feb 25, 2019 at 01:01:08PM +0100, Dmitry Vyukov wrote: > On Mon, Feb 25, 2019 at 12:35 PM Mark Rutland wrote: > > > > On Sat, Feb 23, 2019 at 11:29:45AM +0100, Dmitry Vyukov wrote: > > > On Fri, Feb 22, 2019 at 7:29 PM Mark Rutland wrote: > > > > > > > > When CONFIG_KASAN is selected,

Re: [RFC PATCH] mm,memory_hotplug: Unlock 1GB-hugetlb on x86_64

2019-02-28 Thread Michal Hocko
On Thu 28-02-19 08:38:34, David Hildenbrand wrote: > On 27.02.19 23:00, Mike Kravetz wrote: > > On 2/27/19 1:51 PM, Oscar Salvador wrote: > >> On Thu, Feb 21, 2019 at 10:42:12AM +0100, Oscar Salvador wrote: > >>> [1] https://lore.kernel.org/patchwork/patch/998796/ > >>> > >>> Signed-off-by: Oscar

[PATCH] perf machine: Update kernel map address and re-order properly

2019-02-28 Thread Wei Li
Since commit 1fb87b8e9599 ("perf machine: Don't search for active kernel start in __machine__create_kernel_maps"), the __machine__create_kernel_maps() just create a map what start and end are both zero. Though the address will be updated later, the order of map in the rbtree may be incorrect. The

[PATCH v4 08/10] perf report: implement record trace decompression

2019-02-28 Thread Alexey Budankov
Trace frames containing PERF_RECORD_COMPRESSED records are decompressed using functions from zstd.c into a linked list of mmaped memory regions of mmap_comp_len size (struct decomp). After decompression of one COMPRESSED record its content is iterated and fetched for usual processing. The

[PATCH v4 09/10] perf inject: enable COMPRESSED records decompression

2019-02-28 Thread Alexey Budankov
Initialized decompression API so COMPRESSED record would be decompressed into the resulting output data file. Signed-off-by: Alexey Budankov --- tools/perf/builtin-inject.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index

[PATCH v4 10/10] perf tests: implement Zstd comp/decomp integration test

2019-02-28 Thread Alexey Budankov
Implemented basic integration test for Zstd based trace compression/decompression in record and report modes. Signed-off-by: Alexey Budankov --- .../tests/shell/record+zstd_comp_decomp.sh| 28 +++ 1 file changed, 28 insertions(+) create mode 100755

[PATCH] net: e1000e: add MAC address kernel cmd line parameter

2019-02-28 Thread Flavio Suligoi
Sometimes, in some embedded systems boards (i.e. ARM boards), the NVM eeprom is not mounted, to save cost and space. In this case it is necessary to bypass the NVM management and directly force the MAC address using a kernel command-line parameter (macaddr). Signed-off-by: Flavio Suligoi ---

Re: powerpc/xmon: Fix opcode being uninitialized in print_insn_powerpc

2019-02-28 Thread Michael Ellerman
On Tue, 2019-02-26 at 05:38:55 UTC, Nathan Chancellor wrote: > When building with -Wsometimes-uninitialized, Clang warns: > > arch/powerpc/xmon/ppc-dis.c:157:7: warning: variable 'opcode' is used > uninitialized whenever 'if' condition is false > [-Wsometimes-uninitialized] > if

Re: [PATCH 1/2] fs/dax: deposit pagetable even when installing zero page

2019-02-28 Thread Jan Kara
On Thu 28-02-19 14:05:21, Aneesh Kumar K.V wrote: > Architectures like ppc64 use the deposited page table to store hardware > page table slot information. Make sure we deposit a page table when > using zero page at the pmd level for hash. > > Without this we hit > > Unable to handle kernel

Re: powerpc/fsl: Fix the flush of branch predictor.

2019-02-28 Thread Michael Ellerman
On Tue, 2019-02-26 at 18:18:48 UTC, Christophe Leroy wrote: > The commit identified below adds MC_BTB_FLUSH macro only when > CONFIG_PPC_FSL_BOOK3E is defined. This results in the following error > on some configs (seen several times with kisskb randconfig_defconfig) > >

Re: [RFC PATCH] mm,memory_hotplug: Unlock 1GB-hugetlb on x86_64

2019-02-28 Thread Michal Hocko
On Thu 21-02-19 10:42:12, Oscar Salvador wrote: [...] > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > index d5f7afda67db..04f6695b648c 100644 > --- a/mm/memory_hotplug.c > +++ b/mm/memory_hotplug.c > @@ -1337,8 +1337,7 @@ static unsigned long scan_movable_pages(unsigned long > start,

Re: [PATCH v2 0/2] x86/mm/KASLR: Change the granularity of randomization to PUD size in 5-level

2019-02-28 Thread Baoquan He
On 02/28/19 at 12:10pm, Kirill A. Shutemov wrote: > On Thu, Feb 28, 2019 at 08:35:20AM +0800, Baoquan He wrote: > > arch/x86/mm/kaslr.c | 92 - > > 1 file changed, 40 insertions(+), 52 deletions(-) > > What tree is it against? > > I cannot apply on

Re: [PATCH v6 4/6] arm64/kvm: add a userspace option to enable pointer authentication

2019-02-28 Thread Amit Daniel Kachhap
Hi, On 2/21/19 6:04 PM, Mark Rutland wrote: On Tue, Feb 19, 2019 at 02:54:29PM +0530, Amit Daniel Kachhap wrote: This feature will allow the KVM guest to allow the handling of pointer authentication instructions or to treat them as undefined if not set. It uses the existing vcpu API

  1   2   3   4   5   6   7   8   9   10   >