[PATCH] ASoC: qcom: Kconfig: fix dependency for sdm845

2019-02-25 Thread Cheng-Yi Chiang
SND_SOC_CROS_EC_CODEC depends on MFD_CROS_EC. Add that dependency to SND_SOC_SDM845 to fix unmet direct dependencies warning. Fixes: 74c6ecf4194e (ASoC: qcom: Kconfig: select dmic for sdm845) Signed-off-by: Cheng-Yi Chiang --- sound/soc/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 dele

Re: [PATCH] perf hist: fix memory leak if histogram entry is reused

2019-02-25 Thread Jiri Olsa
On Sat, Feb 23, 2019 at 12:18:18PM +0900, Namhyung Kim wrote: > Hi, > > On Fri, Feb 22, 2019 at 1:29 AM Jiri Olsa wrote: > > > > On Thu, Feb 21, 2019 at 02:53:20PM +0100, Jonas Rabenstein wrote: > > > On Thu, Feb 21, 2019 at 01:39:09PM +0100, Jiri Olsa wrote: > > > > On Thu, Feb 21, 2019 at 01:23

Re: remove block layer bounce buffering for MMC v2

2019-02-25 Thread Ulf Hansson
On Tue, 12 Feb 2019 at 08:25, Christoph Hellwig wrote: > > Hi everyone, > > this series converts the remaining MMC host drivers to properly kmap the > scatterlist entries it does PIO operations on, and then goes on to > remove the usage of block layer bounce buffering (which I plan to remove > eve

Re: [Xen-devel] xen/evtchn and forced threaded irq

2019-02-25 Thread Julien Grall
Hi Oleksandr, On 25/02/2019 13:24, Oleksandr Andrushchenko wrote: On 2/22/19 3:33 PM, Julien Grall wrote: Hi, On 22/02/2019 12:38, Oleksandr Andrushchenko wrote: On 2/20/19 10:46 PM, Julien Grall wrote: Discussing with my team, a solution that came up would be to introduce one atomic field p

Re: [PATCH -next] platform/chrome: Fix Kconfig dependencies for wilco_ec

2019-02-25 Thread Cheng-yi Chiang
On Mon, Feb 25, 2019 at 8:23 PM Enric Balletbo i Serra wrote: > > Hi Cheng-yi, > > Attached the config that Randy sent. > > Thanks, > Enric Hi Enric, Thanks for the quick reply. I have posted a patch to fix it. > On 25/2/19 11:22, Cheng-yi Chiang wrote: > > On Mon, Feb 25, 2019 at 6:11 PM Enric

Re: [PATCH 10/20] perf data: Add directory support

2019-02-25 Thread Jiri Olsa
On Mon, Feb 25, 2019 at 10:45:48AM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, Feb 24, 2019 at 08:06:46PM +0100, Jiri Olsa escreveu: > > Adding support to have directory as perf.data. > > > > The caller needs to set 'struct perf_data::is_dir flag > > and the path will be treated as directory.

Re: [PATCH RFC] mm/vmscan: try to protect active working set of cgroup from reclaim.

2019-02-25 Thread Vlastimil Babka
On 2/22/19 6:58 PM, Andrey Ryabinin wrote: > In a presence of more than 1 memory cgroup in the system our reclaim > logic is just suck. When we hit memory limit (global or a limit on > cgroup with subgroups) we reclaim some memory from all cgroups. > This is sucks because, the cgroup that allocates

Re: [PATCH 08/11] perf tools: Add perf_exe() helper to find perf binary

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 25, 2019 at 01:56:22PM +0100, Jiri Olsa escreveu: > On Sun, Feb 24, 2019 at 07:37:19AM -0800, Andi Kleen wrote: > > From: Andi Kleen > > > > Also convert one existing user. > > > > Signed-off-by: Andi Kleen > > Acked-by: Jiri Olsa Applied. - Arnaldo

Re: [PATCH 0/5 v2] Enable wm8524 on i.MX8MQ

2019-02-25 Thread Chris Spencer
Hi Daniel, On Mon, 25 Feb 2019 at 13:26, Daniel Baluta wrote: > arm64: dts: imx8mq: Add SDMA nodes > arm64: dts: imx8mq: Add SAI2 node > arm64: dts: imx8qm: Add SAI pinctrl configuration > arm64: dts: imx8qm: Enable SAI2 for wm8524 codec > arm64: dts: imx8qm: Enable wm8524 codec imx8qm

Re: [PATCH 06/15] perf script python: add Python3 support to intel-pt-events.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 25, 2019 at 09:07:03AM +0200, Adrian Hunter escreveu: > On 23/02/19 1:06 AM, Tony Jones wrote: > > Support both Python2 and Python3 in the intel-pt-events.py script > > > > There may be differences in the ordering of output lines due to > > differences in dictionary ordering etc. Howe

Re: Fw: [Bug 202651] New: Thunderbolt: Regression in atlantic.ko between 4.20 and 5.00-rc4 for Aquantia NIC 1d6a:87b1

2019-02-25 Thread Igor Russkikh
Hi Stephen, Thanks for heads up. We are now looking into this, but the strange thing is atlantic driver had no valuable changes between 4.20 and 5.0rc. Also, from what user writes up in the ticket, the issue seems to be related with pci/thunderbolt subsystem, not with the device driver itself

[PATCH] div64.h: Fix description of do_div parameter

2019-02-25 Thread Jonathan Neuschäfer
Contrary to the description, the first parameter (n) should not be passed as a pointer, but directly as an lvalue. This is possible because do_div is a macro. Signed-off-by: Jonathan Neuschäfer --- include/asm-generic/div64.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --gi

[RFC PATCH 0/4] tracing/probes: uaccess: Add support user-space access

2019-02-25 Thread Masami Hiramatsu
Hi, Here is an RFC series of probe-event to support user-space access methods, which we discussed in previous thread. https://lkml.kernel.org/r/20190220171019.5e81a4946b56982f324f7...@kernel.org So in this thread, it is clear that current probe_kernel_read() and strncpy_from_unsafe() are not eno

[RFC PATCH 1/4] uaccess: Make sure kernel_uaccess_faults_ok is updated before pagefault

2019-02-25 Thread Masami Hiramatsu
Make sure the kernel_uaccess_faults_ok is updated before a pagefault can hit and the last loads/stores issued before resotring kernel_uaccess_faults_ok. Signed-off-by: Masami Hiramatsu --- fs/namespace.c |2 ++ mm/maccess.c | 12 ++-- 2 files changed, 8 insertions(+), 6 deletions

[RFC PATCH 2/4] uaccess: Add non-pagefault user-space read functions

2019-02-25 Thread Masami Hiramatsu
Add probe_user_read() and strncpy_from_unsafe_user() which will not involves mm_sem so we can use it for accessing user-space in irq-handler. Signed-off-by: Masami Hiramatsu --- include/linux/uaccess.h | 13 + mm/maccess.c| 134 +--

Re: [PATCH 02/15] perf script python: add Python3 support to check-perf-trace.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:06PM -0800, Tony Jones escreveu: > Support both Python 2 and Python 3 in the check-perf-trace.py script. > > There may be differences in the ordering of output lines due to > differences in dictionary ordering etc. However the format within lines > should be unchange

[RFC PATCH 3/4] tracing/probe: Add ustring type for user-space string

2019-02-25 Thread Masami Hiramatsu
Add "ustring" type for fetching user-space string from kprobe event. User can specify ustring type at uprobe event, and it is same as "string" for uprobe. Note that probe-event provides this option but it doesn't choose the correct type automatically since we have not way to decide the address is

RE: [PATCH resend] arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM

2019-02-25 Thread Alexey Brodkin
Hi Corentin, > -Original Message- > From: linux-snps-arc On Behalf > Of Corentin Labbe > Sent: Monday, February 25, 2019 12:46 PM > To: vineet.gup...@synopsys.com > Cc: khil...@baylibre.com; linux-snps-...@lists.infradead.org; > linux-kernel@vger.kernel.org; Corentin > Labbe > Subject:

[RFC PATCH 4/4] tracing/probe: Support user-space dereference

2019-02-25 Thread Masami Hiramatsu
Support user-space dereference syntax for probe event arguments to dereference the data-structure or array in user-space. The syntax is just adding 'u' before an offset value. +|-u() e.g. +u8(%ax), +u0(+0(%si)) For example, if you probe do_sched_setscheduler(pid, policy, param) and record para

Re: [Xen-devel] xen/evtchn and forced threaded irq

2019-02-25 Thread Oleksandr Andrushchenko
On 2/25/19 3:55 PM, Julien Grall wrote: Hi Oleksandr, On 25/02/2019 13:24, Oleksandr Andrushchenko wrote: On 2/22/19 3:33 PM, Julien Grall wrote: Hi, On 22/02/2019 12:38, Oleksandr Andrushchenko wrote: On 2/20/19 10:46 PM, Julien Grall wrote: Discussing with my team, a solution that came up

Re: [PATCH net] sctp: get sctphdr by offset in sctp_compute_cksum

2019-02-25 Thread Neil Horman
On Mon, Feb 25, 2019 at 09:20:44PM +0800, Xin Long wrote: > On Mon, Feb 25, 2019 at 8:47 PM Neil Horman wrote: > > > > On Mon, Feb 25, 2019 at 07:25:37PM +0800, Xin Long wrote: > > > sctp_hdr(skb) only works when skb->transport_header is set properly. > > > > > > But in the path of nf_conntrack_in

Re: [PATCH 03/15] perf script python: add Python3 support to event_analyzing_sample.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:07PM -0800, Tony Jones escreveu: > Support both Python2 and Python3 in the event_analyzing_sample.py script > > There may be differences in the ordering of output lines due to > differences in dictionary ordering etc. However the format within lines > should be uncha

Re: [PATCH 04/15] perf script python: add Python3 support to failed-syscalls-by-pid.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:08PM -0800, Tony Jones escreveu: > Support both Python2 and Python3 in the failed-syscalls-by-pid.py script > > There may be differences in the ordering of output lines due to > differences in dictionary ordering etc. However the format within lines > should be uncha

Re: [PATCH v1 1/3] perf diff: Support --time filter option

2019-02-25 Thread Jin, Yao
On 2/25/2019 9:38 PM, Jiri Olsa wrote: On Mon, Feb 25, 2019 at 09:42:42PM +0800, Jin Yao wrote: SNIP COMPARISON -- The comparison is governed by the baseline file. The baseline perf.data diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 751e197..ddc41e7

[Update PATCH] x86/Hyper-V: Fix definition HV_MAX_FLUSH_REP_COUNT

2019-02-25 Thread lantianyu1986
From: Lan Tianyu The max flush rep count of HvFlushGuestPhysicalAddressList hypercall is equal with how many entries of union hv_gpa_page_range can be populated into the input parameter page. The origin code lacks parenthesis around PAGE_SIZE - 2 * sizeof(u64). This patch is to fix it. Cc: Fixs

Re: [PATCH 0/5 v2] Enable wm8524 on i.MX8MQ

2019-02-25 Thread Daniel Baluta
On Mon, Feb 25, 2019 at 4:02 PM Chris Spencer wrote: > > Hi Daniel, > > On Mon, 25 Feb 2019 at 13:26, Daniel Baluta wrote: > > arm64: dts: imx8mq: Add SDMA nodes > > arm64: dts: imx8mq: Add SAI2 node > > arm64: dts: imx8qm: Add SAI pinctrl configuration > > arm64: dts: imx8qm: Enable SAI2

Re: [PATCH v1 1/3] perf diff: Support --time filter option

2019-02-25 Thread Jiri Olsa
On Mon, Feb 25, 2019 at 10:12:08PM +0800, Jin, Yao wrote: > > > On 2/25/2019 9:38 PM, Jiri Olsa wrote: > > On Mon, Feb 25, 2019 at 09:42:42PM +0800, Jin Yao wrote: > > > > SNIP > > > > > COMPARISON > > > -- > > > The comparison is governed by the baseline file. The baseline perf.d

Re: [Update PATCH] x86/Hyper-V: Fix definition HV_MAX_FLUSH_REP_COUNT

2019-02-25 Thread Greg KH
On Mon, Feb 25, 2019 at 10:12:14PM +0800, lantianyu1...@gmail.com wrote: > From: Lan Tianyu > > The max flush rep count of HvFlushGuestPhysicalAddressList hypercall > is equal with how many entries of union hv_gpa_page_range can be populated > into the input parameter page. The origin code lacks

Re: [PATCH] time64: Avoid undefined behaviour in timespec64_add()

2019-02-25 Thread Arnd Bergmann
On Mon, Feb 25, 2019 at 10:07 AM Arnd Bergmann wrote: > On Mon, Feb 25, 2019 at 10:01 AM Arnd Bergmann wrote: > > On Mon, Feb 25, 2019 at 5:53 AM Deepa Dinamani > > wrote: > > > On Sun, Feb 24, 2019 at 7:13 PM Hongbo Yao wrote: > > diff --git a/drivers/net/ethernet/cadence/macb_ptp.c > b/driv

Re: [RFC v9 2/5] dt-bindings: pstore-block: new support for blkoops

2019-02-25 Thread liaoweixiong
On 2019-02-22 23:36, Rob Herring wrote: > +boot-architecture list > > On Tue, Feb 19, 2019 at 07:52:47PM +0800, liaoweixiong wrote: >> Create DT binding document for blkoops. >> >> Signed-off-by: liaoweixiong >> --- >> .../devicetree/bindings/pstore/blkoops.txt | 53 >> +++

Re: [PATCH v4 19/22] vfio-pci: Register an iommu fault handler

2019-02-25 Thread Vincent Stehlé
Hi Eric, On Mon, Feb 18, 2019 at 02:55:00PM +0100, Eric Auger wrote: > This patch registers a fault handler which records faults in > a circular buffer and then signals an eventfd. This buffer is > exposed within the fault region. > > Signed-off-by: Eric Auger > --- > drivers/vfio/pci/vfio_pci.

[PATCH] drm/vkms: Solve bug on kms_crc_cursor tests

2019-02-25 Thread Shayenne Moura
vkms_crc_work_handle needs the value of the actual frame to schedule the workqueue that calls periodically the vblank handler and the destroy state functions. However, the frame value returned from vkms_vblank_simulate is updated and diminished in vblank_get_timestamp because it is not in a vblank

[PATCH v6] PCI: imx6: limit DBI register length

2019-02-25 Thread Stefan Agner
Define the length of the DBI registers and limit config space to its length. This makes sure that the kernel does not access registers beyond that point, avoiding the following abort on a i.MX 6Quad: # cat /sys/devices/soc0/soc/1ffc000.pcie/pci\:00/\:00\:00.0/config [ 100.021433] Unhan

Re: [PATCH 1/6] dt-bindings: media: cedrus: Add H6 compatible

2019-02-25 Thread Rob Herring
On Mon, 28 Jan 2019 21:54:59 +0100, Jernej Skrabec wrote: > This adds a compatible for H6. H6 VPU supports 10-bit HEVC decoding and > additional AFBC output format for HEVC. > > Signed-off-by: Jernej Skrabec > --- > Documentation/devicetree/bindings/media/cedrus.txt | 1 + > 1 file changed, 1 in

[PATCH V2] x86/Hyper-V: Fix definition HV_MAX_FLUSH_REP_COUNT

2019-02-25 Thread lantianyu1986
From: Lan Tianyu The max flush rep count of HvFlushGuestPhysicalAddressList hypercall is equal with how many entries of union hv_gpa_page_range can be populated into the input parameter page. The origin code lacks parenthesis around PAGE_SIZE - 2 * sizeof(u64). This patch is to fix it. Cc: Fixe

Re: [Update PATCH] x86/Hyper-V: Fix definition HV_MAX_FLUSH_REP_COUNT

2019-02-25 Thread Tianyu Lan
On Mon, Feb 25, 2019 at 10:19 PM Greg KH wrote: > > On Mon, Feb 25, 2019 at 10:12:14PM +0800, lantianyu1...@gmail.com wrote: > > From: Lan Tianyu > > > > The max flush rep count of HvFlushGuestPhysicalAddressList hypercall > > is equal with how many entries of union hv_gpa_page_range can be popul

Re: [PATCH] ASoC: qcom: Kconfig: fix dependency for sdm845

2019-02-25 Thread Enric Balletbo i Serra
Hi, On 25/2/19 14:54, Cheng-Yi Chiang wrote: > SND_SOC_CROS_EC_CODEC depends on MFD_CROS_EC. > Add that dependency to SND_SOC_SDM845 to fix unmet direct dependencies > warning. > > Fixes: 74c6ecf4194e (ASoC: qcom: Kconfig: select dmic for sdm845) Reported-by: Randy Dunlap > Signed-off-by: Chen

Re: [PATCH 7/7] arm: dts: mediatek: add basic support for MT7629 SoC

2019-02-25 Thread Rob Herring
On Tue, Jan 29, 2019 at 12:31:19PM +0800, Ryder Lee wrote: > This adds basic support for MT7629 reference board. > > Signed-off-by: Ryder Lee > --- > The I2C node depends on https://patchwork.kernel.org/patch/10772837/ > The PCIe node depends on https://patchwork.kernel.org/patch/10773637/ > ---

Re: [PATCH] Use flush tlb last level when change protection

2019-02-25 Thread kbuild test robot
Hi Xuefeng, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc8 next-20190225] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH v2 4/4] drm/panel: Add OSD101T2587-53TS driver

2019-02-25 Thread Peter Ujfalusi
Hi Sam, On 23/02/2019 21.38, Sam Ravnborg wrote: > Hi Peter. > > Driver looks to be in good shape now. > With the few comments below addressed you can add my: > Reviewed-by: Sam Ravnborg > > Sam > > On Fri, Feb 22, 2019 at 03:16:18PM +0200, Peter Ujfalusi wrote: >> The panel is similar t

Re: [PATCH 02/10] dt-binding: gce: add gce header file for mt8183

2019-02-25 Thread Rob Herring
On Tue, 29 Jan 2019 15:31:59 +0800, Bibby Hsieh wrote: > Add documentation for the mt8183 gce. > > Add gce header file defined the gce hardware event, > subsys number and constant for mt8183. > > Signed-off-by: Bibby Hsieh > --- > .../devicetree/bindings/mailbox/mtk-gce.txt| 6 +- > i

Re: [Intel-gfx] BUG: KASAN: use-after-free in intel_hdmi_destroy+0x79/0x80

2019-02-25 Thread Hans Verkuil
Hi Jani, On 2/25/19 2:40 PM, Jani Nikula wrote: On Fri, 22 Feb 2019, Randy Dunlap wrote: This is 5.0-rc7 on an old Toshiba Portege laptop. No hdmi or other external video. Linux dragon.dunlab 5.0.0-rc7mod #3 SMP PREEMPT Wed Feb 20 00:05:17 PST 2019 x86_64 x86_64 x86_64 GNU/Linux on openSUSE

Re: [PATCH 1/2] dt-bindings: input: sitronix-st1232: document optional reset-gpios property

2019-02-25 Thread Rob Herring
On Tue, Jan 29, 2019 at 11:23:46AM +0100, Martin Kepplinger wrote: > From: Martin Kepplinger > > The st1232 driver reads this via gpiod. What a driver does is not relevant to the binding. This breaks compatibility so you need to mention that and why this is okay. Either you need to keep 'gpios

Re: [PATCH 08/15] perf script python: add Python3 support to net_dropmonitor.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 25, 2019 at 07:37:55AM -0500, Neil Horman escreveu: > On Fri, Feb 22, 2019 at 03:06:12PM -0800, Tony Jones wrote: > > Support both Python2 and Python3 in the net_dropmonitor.py script > Acked-by: Neil Horman Applied.

Re: [PATCH v3 2/2] drivers: mux: Add Generic regmap bitfield-based multiplexer in mmio-mux

2019-02-25 Thread Peter Rosin
On 2019-02-24 09:27, Pankaj Bansal wrote: > Generic register bitfield-based multiplexer that controls the multiplexer > producer defined under a parent node. > The driver corresponding to parent node provides register read/write > capabilities. > > Signed-off-by: Pankaj Bansal > --- > > Notes: >

Re: [PATCH 09/15] perf script python: add Python3 support to powerpc-hcalls.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:13PM -0800, Tony Jones escreveu: > Support both Python2 and Python3 in the powerpc-hcalls.py script Applied

Re: [PATCH 10/15] perf script python: add Python3 support to sctop.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:14PM -0800, Tony Jones escreveu: > Support both Python2 and Python3 in the sctop.py script Applied

Re: [PATCH RT 4/2] hrtimer: Don't lose state in cpu_chill()

2019-02-25 Thread Mike Galbraith
Hi Sebastian, My box claims that this patch is busted. It argues its case by IO deadlocking any kernel this patch is applied to when spinning rust is flogged, including virgin 4.19-rt14, said kernel becoming stable again when I whack the accused. On Tue, 2019-02-19 at 17:08 +0100, Sebastian Andr

Re: Clang patches for 4.9

2019-02-25 Thread Greg Kroah-Hartman
On Sun, Feb 24, 2019 at 11:13:01PM -0700, Nathan Chancellor wrote: > Hi Greg and Sasha, > > Attached are three mbox files containing patches that bring the Clang > backports that Nick did in 4.9.139 up to date with what is currently in > 4.14 and mainline, as well as fix warnings that are present

Re: [PATCH 11/15] perf script python: add Python3 support to stackcollapse.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:15PM -0800, Tony Jones escreveu: > Support both Python2 and Python3 in the stackcollapse.py script > > There may be differences in the ordering of output lines due to > differences in dictionary ordering etc. However the format within lines > should be unchanged. Ap

Re: [PATCH 12/15] perf script python: add Python3 support to stat-cpi.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:16PM -0800, Tony Jones escreveu: > Support both Python2 and Python3 in the stat-cpi.py script Applied

Re: [PATCH 13/15] perf script python: add Python3 support to syscall-counts.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:17PM -0800, Tony Jones escreveu: > Support both Python2 and Python3 in the syscall-counts.py script applied

Re: Clang patches for 4.9

2019-02-25 Thread Greg Kroah-Hartman
On Mon, Feb 25, 2019 at 03:45:13PM +0100, Greg Kroah-Hartman wrote: > On Sun, Feb 24, 2019 at 11:13:01PM -0700, Nathan Chancellor wrote: > > Hi Greg and Sasha, > > > > Attached are three mbox files containing patches that bring the Clang > > backports that Nick did in 4.9.139 up to date with what

Re: [PATCH v6] PCI: imx6: limit DBI register length

2019-02-25 Thread Leonard Crestez
On Mon, 2019-02-25 at 15:25 +0100, Stefan Agner wrote: > Define the length of the DBI registers and limit config space to its > length. This makes sure that the kernel does not access registers > beyond that point, avoiding the following abort on a i.MX 6Quad: > # cat /sys/devices/soc0/soc/1ffc00

Re: [PATCH 14/15] perf script python: add Python3 support to syscall-counts-by-pid.py

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:18PM -0800, Tony Jones escreveu: > Support both Python2 and Python3 in the syscall-counts-by-pid.py script Applied

Re: [PATCH] nvmet: disable direct I/O when unavailable

2019-02-25 Thread Bart Van Assche
On 2/25/19 1:37 AM, Johannes Thumshirn wrote: On 24/02/2019 11:54, Max Gurtovoy wrote: What is the status of iSCSI/SRP targets in this case ? iSCSI/SRP passes in the following: /* * Use O_DSYNC by default instead of O_SYNC to forgo syncing * of pure timestamp updates. */ flags =

BUG: unable to handle kernel paging request in __kvm_mmu_prepare_zap_page

2019-02-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:94a47529a645 Add linux-next specific files for 20190222 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=13c1c692c0 kernel config: https://syzkaller.appspot.com/x/.config?x=51cd1c8c39e8a207 dashb

Re: [RESEND PATCH] selftests/ftrace: Handle the absence of tput

2019-02-25 Thread shuah
On 2/25/19 6:14 AM, Juerg Haefliger wrote: In environments where tput is not available, we get the following error $ ./ftracetest: 163: [: Illegal number: because ncolors is an empty string. Fix that by setting it to 0 if the tput command fails. Acked-by: Steven Rostedt (VMware) Acked-by: Masam

Re: [PATCH 15/15] perf script python: add Python3 support to sql scripts

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 22, 2019 at 03:06:19PM -0800, Tony Jones escreveu: > Support both Python2 and Python3 in the exported-sql-viewer.py, > export-to-postgresql.py and export-to-sqlite.py scripts > > There may be differences in the ordering of output lines due to > differences in dictionary ordering etc.

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-25 Thread Peter Zijlstra
On Mon, Feb 25, 2019 at 09:33:09AM +0100, Peter Zijlstra wrote: > On Sun, Feb 24, 2019 at 09:26:45AM -0800, Linus Torvalds wrote: > > PeterZ, do you remember the particular use case that triggered that > > commit 7c4788950ba5 ("x86/uaccess, sched/preempt: Verify access_ok() > > context")? > > This

Re: [PATCH 0/4] mwifiex PCI/wake-up interrupt fixes

2019-02-25 Thread Marc Zyngier
Hi Ard, On 25/02/2019 12:45, Ard Biesheuvel wrote: > On Sun, 24 Feb 2019 at 15:08, Marc Zyngier wrote: >> >> For quite some time, I wondered why the PCI mwifiex device built in my >> Chromebook was unable to use the good old legacy interrupts. But as MSIs >> were working fine, I never really both

Re: [PATCH v7 11/28] x86/asm/head: annotate data appropriatelly

2019-02-25 Thread Borislav Petkov
On Wed, Jan 30, 2019 at 01:46:54PM +0100, Jiri Slaby wrote: > Use the new SYM_DATA, SYM_DATA_START, and SYM_DATA_END in both 32 and 64 > bit heads. In the 64-bit version, define also > SYM_DATA_START_PAGE_ALIGNED locally using the new SYM_START. It is used > in the code instead of NEXT_PAGE() whic

Re: [PATCH 2/6] dt-bindings: mfd: Add compatible for the MediaTek MT6358 PMIC

2019-02-25 Thread Rob Herring
On Wed, 30 Jan 2019 17:18:07 +0800, Hsin-Hsiung Wang wrote: > This adds compatible for the MediaTek MT6358 PMIC. > > Signed-off-by: Hsin-Hsiung Wang > --- > Documentation/devicetree/bindings/mfd/mt6397.txt | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > Reviewed-by: Rob Herr

Re: [PATCH 15/15] perf script python: add Python3 support to sql scripts

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 25, 2019 at 11:51:19AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Feb 22, 2019 at 03:06:19PM -0800, Tony Jones escreveu: > > Support both Python2 and Python3 in the exported-sql-viewer.py, > > export-to-postgresql.py and export-to-sqlite.py scripts > > @@ -234,12 +236,17 @@ pe

Re: [PATCH v1 1/3] perf diff: Support --time filter option

2019-02-25 Thread Jin, Yao
On 2/25/2019 10:19 PM, Jiri Olsa wrote: On Mon, Feb 25, 2019 at 10:12:08PM +0800, Jin, Yao wrote: On 2/25/2019 9:38 PM, Jiri Olsa wrote: On Mon, Feb 25, 2019 at 09:42:42PM +0800, Jin Yao wrote: SNIP COMPARISON -- The comparison is governed by the baseline file. The base

Re: Clang patches for 4.9

2019-02-25 Thread Greg Kroah-Hartman
On Sun, Feb 24, 2019 at 11:13:01PM -0700, Nathan Chancellor wrote: > Hi Greg and Sasha, > > Attached are three mbox files containing patches that bring the Clang > backports that Nick did in 4.9.139 up to date with what is currently in > 4.14 and mainline, as well as fix warnings that are present

Re: [Intel-gfx] BUG: KASAN: use-after-free in intel_hdmi_destroy+0x79/0x80

2019-02-25 Thread Jani Nikula
On Mon, 25 Feb 2019, Hans Verkuil wrote: > Hi Jani, > > On 2/25/19 2:40 PM, Jani Nikula wrote: >> On Fri, 22 Feb 2019, Randy Dunlap wrote: >>> This is 5.0-rc7 on an old Toshiba Portege laptop. >>> No hdmi or other external video. >>> >>> Linux dragon.dunlab 5.0.0-rc7mod #3 SMP PREEMPT Wed Feb 20

Re: [PATCH] PCIE/PME: fix possible use-after-free on remove

2019-02-25 Thread Mika Westerberg
On Mon, Feb 18, 2019 at 02:57:30PM -0500, Sven Van Asbroeck wrote: > In remove(), ensure that the pme work cannot run after kfree() > is called. Otherwise, this could result in a use-after-free. > > This issue was detected with the help of Coccinelle. > > Cc: Sinan Kaya > Cc: Frederick Lawler >

Re: [RFC PATCH v1 13/25] printk: track seq per console

2019-02-25 Thread Petr Mladek
On Tue 2019-02-12 15:29:51, John Ogness wrote: > Allow each console to track which seq record was last printed. This > simplifies identifying dropped records. I would like to see a better justification here. And I think that it is part of this patchset. One reason is to implement console reply a

Re: [PATCH] cpuidle: Add a predict callback for the governors

2019-02-25 Thread Daniel Lezcano
Hi Rafael, On 22/02/2019 11:35, Rafael J. Wysocki wrote: > On Thu, Feb 21, 2019 at 6:40 PM Daniel Lezcano > wrote: >> >> On 21/02/2019 17:18, Rafael J. Wysocki wrote: >>> On Thu, Feb 21, 2019 at 3:56 PM Daniel Lezcano >>> wrote: Predicting the next event on the current CPU is impleme

Re: [RESEND PATCH] selftests/ftrace: Handle the absence of tput

2019-02-25 Thread Juerg Haefliger
On Mon, 25 Feb 2019 07:51:13 -0700 shuah wrote: > On 2/25/19 6:14 AM, Juerg Haefliger wrote: > > In environments where tput is not available, we get the following > > error > > $ ./ftracetest: 163: [: Illegal number: > > because ncolors is an empty string. Fix that by setting it to 0 if the > > t

Re: [PATCH] Use flush tlb last level when change protection

2019-02-25 Thread kbuild test robot
Hi Xuefeng, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc8 next-20190225] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [RFC PATCH 2/4] uaccess: Add non-pagefault user-space read functions

2019-02-25 Thread Peter Zijlstra
On Mon, Feb 25, 2019 at 11:05:41PM +0900, Masami Hiramatsu wrote: > +static __always_inline long __strncpy_from_unsafe_user(char *dst, > + const char __user *unsafe_addr, long count) > +{ > + if (!access_ok(unsafe_addr, count)) > + return -EFAULT; > + > + r

Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-02-25 Thread Vlastimil Babka
On 2/19/19 1:32 PM, Lars Persson wrote: > Our MIPS 1004Kc SoCs were seeing random userspace crashes with SIGILL > and SIGSEGV that could not be traced back to a userspace code > bug. They had all the magic signs of an I/D cache coherency issue. > > Now recently we noticed that the /proc/sys/vm/com

Re: [PATCH 10/20] perf data: Add directory support

2019-02-25 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 25, 2019 at 02:56:51PM +0100, Jiri Olsa escreveu: > On Mon, Feb 25, 2019 at 10:45:48AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Sun, Feb 24, 2019 at 08:06:46PM +0100, Jiri Olsa escreveu: > > > Adding support to have directory as perf.data. > > > > > > The caller needs to set 'stru

Re: [PATCH 1/2] percpu: km: remove SMP check

2019-02-25 Thread Dennis Zhou
On Sun, Feb 24, 2019 at 01:13:43PM +, Peng Fan wrote: > percpu-km could only be selected by NEED_PER_CPU_KM which > depends on !SMP, so CONFIG_SMP will be false when choose percpu-km. > > Signed-off-by: Peng Fan > --- > mm/percpu-km.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [PATCH] ARM: tegra: enforce PM requirement

2019-02-25 Thread Dmitry Osipenko
05.02.2019 14:16, Sameer Pujar пишет: > Drivers need to handle !PM case with work arounds for managing clocks > and power explicitly, which is not really necessary when PM support on > tegra is in good shape. In fact ARM 64-bit tegra platforms enforce PM Tegra > support and there is no reason why

Re: [PATCH 2/2] percpu: km: no need to consider pcpu_group_offsets[0]

2019-02-25 Thread den...@kernel.org
On Sun, Feb 24, 2019 at 01:13:50PM +, Peng Fan wrote: > percpu-km is used on UP systems which only has one group, > so the group offset will be always 0, there is no need > to subtract pcpu_group_offsets[0] when assigning chunk->base_addr > > Signed-off-by: Peng Fan > --- > mm/percpu-km.c |

Re: [PATCH v2] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-02-25 Thread Vignesh R
On 22-Feb-19 8:20 PM, liujian (CE) wrote: > >> -Original Message- >> From: Vignesh R [mailto:vigne...@ti.com] >> Sent: Friday, February 22, 2019 1:59 PM >> To: liujian (CE) ; dw...@infradead.org; >> computersforpe...@gmail.com; bbrezil...@kernel.org; >> marek.va...@gmail.com; rich...@no

Re: [PATCH] div64.h: Fix description of do_div parameter

2019-02-25 Thread Geert Uytterhoeven
Hi Jonathan, On Mon, Feb 25, 2019 at 3:05 PM Jonathan Neuschäfer wrote: > Contrary to the description, the first parameter (n) should not be > passed as a pointer, but directly as an lvalue. This is possible because > do_div is a macro. > > Signed-off-by: Jonathan Neuschäfer Thanks for your pat

Re: [RFC] percpu: decrease pcpu_nr_slots by 1

2019-02-25 Thread den...@kernel.org
On Sun, Feb 24, 2019 at 09:17:08AM +, Peng Fan wrote: > Entry pcpu_slot[pcpu_nr_slots - 2] is wasted with current code logic. > pcpu_nr_slots is calculated with `__pcpu_size_to_slot(size) + 2`. > Take pcpu_unit_size as 1024 for example, __pcpu_size_to_slot will > return max(11 - PCPU_SLOT_BASE_

Re: [PATCH 3/6] x86/numa: define numa_init_array() conditional on CONFIG_NUMA

2019-02-25 Thread Dave Hansen
On 2/24/19 4:34 AM, Pingfan Liu wrote: > +#ifdef CONFIG_NUMA > /* > * There are unfortunately some poorly designed mainboards around that > * only connect memory to a single CPU. This breaks the 1:1 cpu->node > @@ -618,6 +619,9 @@ static void __init numa_init_array(void) > rr = n

Re: [Xen-devel] xen/evtchn and forced threaded irq

2019-02-25 Thread Julien Grall
Hi Oleksandr, On 25/02/2019 14:08, Oleksandr Andrushchenko wrote: On 2/25/19 3:55 PM, Julien Grall wrote: Hi Oleksandr, On 25/02/2019 13:24, Oleksandr Andrushchenko wrote: On 2/22/19 3:33 PM, Julien Grall wrote: Hi, On 22/02/2019 12:38, Oleksandr Andrushchenko wrote: On 2/20/19 10:46 PM, J

Re: [PATCH v2 2/4] perf record: implement -z= and --mmap-flush= options

2019-02-25 Thread Alexey Budankov
On 21.02.2019 14:23, Alexey Budankov wrote: > > On 21.02.2019 12:47, Jiri Olsa wrote: >> On Wed, Feb 20, 2019 at 05:15:13PM +0300, Alexey Budankov wrote: >>> >>> On 12.02.2019 16:08, Jiri Olsa wrote: On Mon, Feb 11, 2019 at 11:22:38PM +0300, Alexey Budankov wrote: SNIP >

Re: [PATCH v2 2/4] perf record: implement -z= and --mmap-flush= options

2019-02-25 Thread Alexey Budankov
On 21.02.2019 14:24, Alexey Budankov wrote: > > On 21.02.2019 12:49, Jiri Olsa wrote: >> On Wed, Feb 20, 2019 at 06:24:30PM +0300, Alexey Budankov wrote: >>> >>> On 12.02.2019 16:08, Jiri Olsa wrote: On Mon, Feb 11, 2019 at 11:22:38PM +0300, Alexey Budankov wrote: SNIP >

Re: [PATCH v2 3/4] perf record: enable runtime trace compression

2019-02-25 Thread Alexey Budankov
On 20.02.2019 18:09, Alexey Budankov wrote: > > On 12.02.2019 16:09, Jiri Olsa wrote: >> On Mon, Feb 11, 2019 at 11:23:40PM +0300, Alexey Budankov wrote: >> >> SNIP >> >>> + compress_fn = (record__comp_enabled(rec) ? >>> + perf_session__zstd_compress : perf_session__zstd_copy); >>> +

Re: [PATCH v2 4/4] perf report: support record trace file decompression

2019-02-25 Thread Alexey Budankov
On 20.02.2019 18:19, Alexey Budankov wrote: > > On 12.02.2019 16:08, Jiri Olsa wrote: >> On Mon, Feb 11, 2019 at 11:25:00PM +0300, Alexey Budankov wrote: >> >> SNIP >> >>> size_t perf_session__zstd_copy(void *to __maybe_unused, >>> @@ -533,6 +646,8 @@ void perf_tool__fill_defaults(struct perf_t

Re: [PATCH v2 2/4] perf record: implement -z= and --mmap-flush= options

2019-02-25 Thread Alexey Budankov
On 20.02.2019 17:14, Alexey Budankov wrote: > > On 12.02.2019 16:09, Jiri Olsa wrote: >> On Mon, Feb 11, 2019 at 11:22:38PM +0300, Alexey Budankov wrote: >> >> SNIP >> >>> @@ -1147,6 +1193,10 @@ static int __cmd_record(struct record *rec, int >>> argc, const char **argv) >>> fd = perf_data_

Re: [stable 3.18 backport v2] netlink: Trim skb to alloc size to avoid MSG_TRUNC

2019-02-25 Thread Greg Kroah-Hartman
On Fri, Feb 22, 2019 at 08:03:28AM -0800, Mark Salyzyn wrote: > From: "Arad, Ronen" > > Direct this upstream db65a3aaf29ecce2e34271d52e8d2336b97bd9fe sha to > stable 3.18. This patch addresses a race condition where a call to > > nlk->max_recvmsg_len = max(nlk->max_recvmsg_len, len); > nlk->m

Re: [PATCH 5/6] x86/numa: push forward the setup of node to cpumask map

2019-02-25 Thread Dave Hansen
On 2/24/19 4:34 AM, Pingfan Liu wrote: > At present the node to cpumask map is set up until the secondary > cpu boot up. But it is too late for the purpose of building node fall back > list at early boot stage. Considering that init_cpu_to_node() already owns > cpu to node map, it is a good place t

[PATCH v2] au0828: minor fix to a misleading comment in _close()

2019-02-25 Thread Shuah Khan
Fix a misleading comment in _close() and a spelling error. Reviewed-by: Niklas Söderlund Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/au0828/au0828-video.c b/drivers/media/usb/au0

Re: [PATCH v2 14/26] userfaultfd: wp: handle COW properly for uffd-wp

2019-02-25 Thread Jerome Glisse
On Mon, Feb 25, 2019 at 03:13:36PM +0800, Peter Xu wrote: > On Fri, Feb 22, 2019 at 10:35:09AM -0500, Jerome Glisse wrote: > > On Fri, Feb 22, 2019 at 04:46:03PM +0800, Peter Xu wrote: > > > On Thu, Feb 21, 2019 at 01:04:24PM -0500, Jerome Glisse wrote: > > > > On Tue, Feb 12, 2019 at 10:56:20AM +0

Re: [PATCH 2/6] mm/memblock: make full utilization of numa info

2019-02-25 Thread Dave Hansen
On 2/24/19 4:34 AM, Pingfan Liu wrote: > +/* > + * build_node_order() relies on cpumask_of_node(), hence arch should > + * set up cpumask before calling this func. > + */ Whenever I see comments like this, I wonder what happens if the arch doesn't do this? Do we just crash in early boot in wonde

Re: [RFC][PATCH] objtool: STAC/CLAC validation

2019-02-25 Thread Andy Lutomirski
> On Feb 25, 2019, at 3:53 AM, Peter Zijlstra wrote: > >> On Mon, Feb 25, 2019 at 11:51:44AM +0100, Peter Zijlstra wrote: >>> On Fri, Feb 22, 2019 at 03:55:25PM -0800, Andy Lutomirski wrote: >>> I'm wondering if we can just change the code that does getreg() and >>> load_gs_index() so it doesn

Re: [PATCH v6] PCI: imx6: limit DBI register length

2019-02-25 Thread Stefan Agner
On 25.02.2019 15:47, Leonard Crestez wrote: > On Mon, 2019-02-25 at 15:25 +0100, Stefan Agner wrote: >> Define the length of the DBI registers and limit config space to its >> length. This makes sure that the kernel does not access registers >> beyond that point, avoiding the following abort on a i

Re: [PATCH 10/20] perf data: Add directory support

2019-02-25 Thread Jiri Olsa
On Mon, Feb 25, 2019 at 12:07:22PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > > > +} > > > > + > > > > static int open_file_read(struct perf_data *data) > > > > { > > > > struct stat st; > > > > @@ -254,6 +270,22 @@ static int open_file_dup(struct perf_data *data) > > > > r

Re: [PATCH] nvmet: disable direct I/O when unavailable

2019-02-25 Thread Johannes Thumshirn
On Mon, Feb 25, 2019 at 06:49:04AM -0800, Bart Van Assche wrote: > On 2/25/19 1:37 AM, Johannes Thumshirn wrote: > > On 24/02/2019 11:54, Max Gurtovoy wrote: > > > What is the status of iSCSI/SRP targets in this case ? > > > > iSCSI/SRP passes in the following: > > > > /* > >* Use O_DSYNC b

Re: [PATCH 5/6] lib: Fix function documentation for strncpy_from_user

2019-02-25 Thread Rasmus Villemoes
On 22/02/2019 00.03, Kees Cook wrote: > On Thu, Feb 21, 2019 at 6:58 AM Rasmus Villemoes > wrote: >> >> On 21/02/2019 07.02, Kees Cook wrote: >> > >>> ... snprintf returns what it WOULD have written, much like strlcpy >>> above. At least snprintf has an excuse: it can be used to calculate an >>>

Re: [PATCH 2/6] x86/ia32: Fix ia32_restore_sigcontext AC leak

2019-02-25 Thread Andy Lutomirski
On Mon, Feb 25, 2019 at 4:53 AM Peter Zijlstra wrote: > > Don't call load_gs_index() with AC set; delay the segment setting > until after the AC section. > > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/x86/ia32/ia32_signal.c | 29 +++-- > 1 file changed, 19 inser

Re: [PATCH v2 06/26] userfaultfd: wp: add helper for writeprotect check

2019-02-25 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 10:56:12AM +0800, Peter Xu wrote: > From: Shaohua Li > > add helper for writeprotect check. Will use it later. > > Cc: Andrea Arcangeli > Cc: Pavel Emelyanov > Cc: Rik van Riel > Cc: Kirill A. Shutemov > Cc: Mel Gorman > Cc: Hugh Dickins > Cc: Johannes Weiner > Sig

  1   2   3   4   5   6   7   8   9   10   >