Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-11 Thread maowenan
On 2019/3/12 14:35, Joe Perches wrote: > On Tue, 2019-03-12 at 14:29 +0800, maowenan wrote: >> ping... >> >> On 2019/3/9 11:26, Mao Wenan wrote: >>> Using is_zero_ether_addr() instead of directly use >>> memcmp() to determine if the ethernet address is all >>> zeros. > [] >>> diff --git a/driver

Re: [PATCH 1/3] userfaultfd/sysctl: introduce unprivileged_userfaultfd

2019-03-11 Thread Mike Rapoport
On Mon, Mar 11, 2019 at 05:36:59PM +0800, Peter Xu wrote: > Introduce a new sysctl called "vm.unprivileged_userfaultfd" that can > be used to decide whether userfaultfd syscalls are allowed by > unprivileged users. It'll allow three modes: > > - disabled: disallow unprivileged users to use uffd

[PATCH v2] media: rga: fix NULL pointer dereferences and a memory leak

2019-03-11 Thread Kangjie Lu
In case __get_free_pages fails, the fix releases resources and return -ENOMEM to avoid NULL pointer dereferences. Also, the fix frees pages when video_register_device fails to avoid a memory leak. Signed-off-by: Kangjie Lu --- drivers/media/platform/rockchip/rga/rga.c | 15 ++- 1 fi

Re: [PATCH v8 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-03-11 Thread Yash Shah
On Mon, Mar 11, 2019 at 6:59 PM Uwe Kleine-König wrote: > > Hello, > > On Mon, Mar 11, 2019 at 05:10:17PM +0530, Yash Shah wrote: > > On Fri, Mar 8, 2019 at 5:27 PM Uwe Kleine-König > > wrote: > > > On Fri, Mar 08, 2019 at 04:59:36PM +0530, Yash Shah wrote: > > > > On Thu, Mar 7, 2019 at 8:57 PM

[PATCH 1/1] PM / Domains: Avoid a potential deadlock

2019-03-11 Thread Jiada Wang
Lockdep warns that prepare_lock and genpd->mlock can cause a deadlock the deadlock scenario is like following: First thread is probing cs2000 cs2000_probe() clk_register() __clk_core_init() clk_prepare_lock()> acquires prepare_lock cs2000_recalc_r

Re: [PATCH] mfd: cros: Update EC protocol to match current EC code

2019-03-11 Thread Gwendal Grignou
Regarding: """While we are here I'd suggest if we can also fix the few errors (3) and warnings (5) spotted by checkpatch. With that it's an ack from my side.""" These errors and warning are for code that is not used by the kernel: WARNING: __aligned(size) is preferred over __attribute__((aligned(s

Re: KASAN: null-ptr-deref Read in reclaim_high

2019-03-11 Thread Eric Biggers
On Mon, Mar 11, 2019 at 11:25:41PM -0700, Andrew Morton wrote: > On Tue, 12 Mar 2019 07:08:38 +0100 Dmitry Vyukov wrote: > > > On Tue, Mar 12, 2019 at 12:37 AM Andrew Morton > > wrote: > > > > > > On Mon, 11 Mar 2019 06:08:01 -0700 syzbot > > > wrote: > > > > > > > syzbot has bisected this bug

Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-11 Thread Joe Perches
On Tue, 2019-03-12 at 14:29 +0800, maowenan wrote: > ping... > > On 2019/3/9 11:26, Mao Wenan wrote: > > Using is_zero_ether_addr() instead of directly use > > memcmp() to determine if the ethernet address is all > > zeros. [] > > diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c > > b/drive

Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-11 Thread maowenan
ping... On 2019/3/9 11:26, Mao Wenan wrote: > Using is_zero_ether_addr() instead of directly use > memcmp() to determine if the ethernet address is all > zeros. > > Signed-off-by: Mao Wenan > --- > drivers/staging/rtl8188eu/core/rtw_mlme.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(

Re: [PATCH] PM / OPP: Update performance state when freq == old_freq

2019-03-11 Thread Jorge Ramirez
On 3/12/19 05:57, Viresh Kumar wrote: > At boot up, CPUfreq core performs a sanity check to see if the system is > running at a frequency defined in the frequency table of the CPU. If so, > we try to find a valid frequency (lowest frequency greater than the > currently programmed frequency) from th

Re: [PATCH 3/3] arm64: librem5-devkit: Add defconfig for the Librem5 devkit

2019-03-11 Thread Daniel Baluta
On Tue, Mar 12, 2019 at 1:47 AM Angus Ainslie (Purism) wrote: > > Signed-off-by: Angus Ainslie (Purism) Hi Angus, My impression was that for arm64 world there will be only one defconfig. So, I'm not sure if this patch would be acceptable. thanks, Daniel. > --- > arch/arm64/configs/librem5-devk

Re: [RFC PATCH v3 0/5] tracing: common error_log for ftrace

2019-03-11 Thread Masami Hiramatsu
Hi Tom, On Tue, 5 Mar 2019 23:06:46 +0900 Masami Hiramatsu wrote: > On Mon, 4 Mar 2019 17:36:43 -0600 > > Changes from v2: > > > > - Added [n] numbering as suggested by Masami > Hmm, this seems a bit different what I suggested. I'm trying to port probe event's error report on your error

Re: KASAN: null-ptr-deref Read in reclaim_high

2019-03-11 Thread Andrew Morton
On Tue, 12 Mar 2019 07:08:38 +0100 Dmitry Vyukov wrote: > On Tue, Mar 12, 2019 at 12:37 AM Andrew Morton > wrote: > > > > On Mon, 11 Mar 2019 06:08:01 -0700 syzbot > > wrote: > > > > > syzbot has bisected this bug to: > > > > > > commit 29a4b8e275d1f10c51c7891362877ef6cffae9e7 > > > Author: Sh

Re: [PATCH 2/3] arm64: dts: fsl: Build the Librem5 devkit devicetree

2019-03-11 Thread Daniel Baluta
On Tue, Mar 12, 2019 at 1:48 AM Angus Ainslie (Purism) wrote: > > Compile the Librem5 devkit device tree > > Signed-off-by: Angus Ainslie (Purism) > --- > arch/arm64/boot/dts/freescale/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/dts/freescale/Makefile > b/a

[PATCH v2] hid: logitech: check the return value of create_singlethread_workqueue

2019-03-11 Thread Kangjie Lu
create_singlethread_workqueue may fail and return NULL. The fix checks if it is NULL to avoid NULL pointer dereference. Also, the fix moves the call of create_singlethread_workqueue earlier to avoid resource-release issues. Signed-off-by: Kangjie Lu --- drivers/hid/hid-logitech-hidpp.c | 8 +

Re: KASAN: null-ptr-deref Read in reclaim_high

2019-03-11 Thread Dmitry Vyukov
On Tue, Mar 12, 2019 at 12:37 AM Andrew Morton wrote: > > On Mon, 11 Mar 2019 06:08:01 -0700 syzbot > wrote: > > > syzbot has bisected this bug to: > > > > commit 29a4b8e275d1f10c51c7891362877ef6cffae9e7 > > Author: Shakeel Butt > > Date: Wed Jan 9 22:02:21 2019 + > > > > memcg: sche

Re: FS-Cache: Duplicate cookie detected

2019-03-11 Thread Christian Kujau
On Mon, 11 Mar 2019, David Howells wrote: > I've a couple more patches for you - one a bugfix and one that will print more > information. They don't actually affect the problem you're seeing. I'll post > them as replies to this message. Thanks for the patches. I've applied all three to v5.0 and

[PATCH v7 12/12] perf tests: implement Zstd comp/decomp integration test

2019-03-11 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 tools/perf/tests/shell/r

[PATCH v7 11/12] perf inject: enable COMPRESSED records decompression

2019-03-11 Thread Alexey Budankov
Initialized decompression part of Zstd based API so COMPRESSED records 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/buil

[PATCH v7 10/12] perf report: implement record trace decompression

2019-03-11 Thread Alexey Budankov
zstd_init(, comp_level = 0) initializes decompression part of API only that now consists of zstd_decompress_stream() function. Trace frames containing PERF_RECORD_COMPRESSED records are decompressed using zstd_decompress_stream() function into a linked list of mmaped memory regions of mmap_comp

kernel 5.0 blk_clear_pm_only triggers a warning during resume

2019-03-11 Thread Jisheng Zhang
Hi, kernel version: 5.0 I got below warning during resume: [ 673.65] sd 0:0:0:0: [sda] Starting disk [ 673.658899] WARNING: CPU: 3 PID: 1039 at blk_clear_pm_only+0x2a/0x30 [ 673.658902] CPU: 3 PID: 1039 Comm: kworker/u8:49 Not tainted 5.0.0+ #1 [ 673.658902] sd 2:0:0:0: [sdb] Starting di

Re: [PATCH v9 1/9] bitops: Introduce the for_each_set_clump8 macro

2019-03-11 Thread Masahiro Yamada
On Fri, Mar 8, 2019 at 5:57 PM William Breathitt Gray wrote: > > On Fri, Mar 08, 2019 at 09:31:00AM +0100, Linus Walleij wrote: > > On Sun, Mar 3, 2019 at 8:47 AM William Breathitt Gray > > wrote: > > > > > This macro iterates for each 8-bit group of bits (clump) with set bits, > > > within a bit

[PATCH v7 09/12] perf record: implement -z,--compression_level=n option

2019-03-11 Thread Alexey Budankov
Implemented -z,--compression_level=n option that enables compression of mmaped kernel data buffers content in runtime during perf record mode collection. Compression overhead has been measured for serial and AIO streaming when profiling matrix multiplication workload: --

[PATCH v9 perf,bpf 02/15] bpf: libbpf: introduce bpf_program__get_prog_info_linear()

2019-03-11 Thread Song Liu
Currently, bpf_prog_info includes 9 arrays. The user has the option to fetch any combination of these arrays. However, this requires a lot of handling of these arrays. This work becomes more tricky when we need to store bpf_prog_info to a file, because these arrays are allocated independently. Thi

[PATCH v9 perf,bpf 04/15] perf, bpf: synthesize bpf events with bpf_program__get_prog_info_linear()

2019-03-11 Thread Song Liu
With bpf_program__get_prog_info_linear, we can simplify the logic that synthesizes bpf events. This patch doesn't change the behavior of the code. Signed-off-by: Song Liu --- tools/perf/util/bpf-event.c | 118 1 file changed, 40 insertions(+), 78 deletions(-

[PATCH v9 perf,bpf 05/15] perf: change prototype of perf_event__synthesize_bpf_events()

2019-03-11 Thread Song Liu
This patch changes the arguments of perf_event__synthesize_bpf_events() to include perf_session* instead of perf_tool*. perf_session will be used in the next patch. Signed-off-by: Song Liu --- tools/perf/builtin-record.c | 2 +- tools/perf/builtin-top.c| 2 +- tools/perf/util/bpf-event.c | 8

[PATCH v7 08/12] perf record: implement compression for AIO trace streaming

2019-03-11 Thread Alexey Budankov
Compression is implemented using the functions from zstd.c. As the memory to operate on the compression uses mmap->aio.data[] buffers. If Zstd streaming compression API fails for some reason the data to be compressed are just copied into the memory buffers using plain memcpy(). Compressed trace

[PATCH v7 07/12] perf record: implement compression for serial trace streaming

2019-03-11 Thread Alexey Budankov
Compression is implemented using the functions from zstd.c. As the memory to operate on the compression uses mmap->data buffer. If Zstd streaming compression API fails for some reason the data to be compressed are just copied into the memory buffers using plain memcpy(). Compressed trace frame c

Re: [PATCH v3 0/1] mm: introduce put_user_page*(), placeholder versions

2019-03-11 Thread Christopher Lameter
On Mon, 11 Mar 2019, Dave Chinner wrote: > > Direct IO on a mmapped file backed page doesnt make any sense. > > People have used it for many, many years as zero-copy data movement > pattern. i.e. mmap the destination file, use direct IO to DMA direct > into the destination file page cache pages, f

[PATCH v7 06/12] perf util: introduce Zstd based streaming compression API

2019-03-11 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. zstd_init(), zstd_fini() are used for initialization and finalization to allocate and deallocate internal zstd objects. zstd_compress_stream_

[PATCH v7 05/12] perf mmap: implement dedicated memory buffer for data compression

2019-03-11 Thread Alexey Budankov
Implemented mmap data buffer that is used as the memory to operate on when compressing data in case of serial trace streaming. Signed-off-by: Alexey Budankov --- tools/perf/builtin-record.c | 6 +- tools/perf/util/evlist.c| 8 +--- tools/perf/util/evlist.h| 2 +- tools/perf/

[PATCH v7 04/12] perf record: implement COMPRESSED event record and its attributes

2019-03-11 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 st

[PATCH v7 03/12] perf session: define bytes_transferred and bytes_compressed metrics

2019-03-11 Thread Alexey Budankov
Define bytes_transferred and bytes_compressed metrics to calculate ratio in the end of the data collection: compression ratio = bytes_transferred / bytes_compressed bytes_transferred accumulates the amount of bytes that was extracted from the mmaped kernel buffers for compression. byt

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

2019-03-11 Thread Alexey Budankov
Implemented -f,--mmap-flush option that specifies minimal size of data chunk that is extracted from mmaped kernel buffer to store into a trace. The default option value is 1 byte what means every time trace writing thread finds some new data in the mmaped buffer the data is extracted, possibly co

Re: [PATCH v9 1/9] bitops: Introduce the for_each_set_clump8 macro

2019-03-11 Thread Masahiro Yamada
On Sun, Mar 3, 2019 at 4:48 PM William Breathitt Gray wrote: > > This macro iterates for each 8-bit group of bits (clump) with set bits, > within a bitmap memory region. For each iteration, "start" is set to the > bit offset of the found clump, while the respective clump value is > stored to the l

[PATCH v7 01/12] feature: implement libzstd check, LIBZSTD_DIR and NO_LIBZSTD defines

2019-03-11 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 r

Re: [PATCH v3 0/3] gcov: add Clang support

2019-03-11 Thread Tri Vo
On Tue, Mar 5, 2019 at 6:29 AM Peter Oberparleiter wrote: > > On 23.01.2019 00:37, Tri Vo wrote: > > This patch series adds Clang supoprt for gcov. > > > > Patch 1 refactors existing code in preparation for Clang support. > > Patch 2 implements necessary LLVM runtime hooks and gcov kernel interfac

[PATCH v7 00/12] perf: enable compression of record mode trace to save storage space

2019-03-11 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 Zstd API [1] is used for compression and decompression of data that come from kernel mmaped data buffers. Usage of implemented -z,--compression_level

[PATCH] PM / OPP: Update performance state when freq == old_freq

2019-03-11 Thread Viresh Kumar
At boot up, CPUfreq core performs a sanity check to see if the system is running at a frequency defined in the frequency table of the CPU. If so, we try to find a valid frequency (lowest frequency greater than the currently programmed frequency) from the table and set it. When the call reaches dev_

Re: [PATCH] net: fjes: fix potential NULL pointer dereferences

2019-03-11 Thread Kangjie Lu
> On Mar 11, 2019, at 6:19 PM, David Miller wrote: > > From: Kangjie Lu > Date: Mon, 11 Mar 2019 02:10:21 -0500 > >> adapter->control_wq = alloc_workqueue(DRV_NAME "/control", >>WQ_MEM_RECLAIM, 0); >> +if (!adapter->control_wq) { >> +

Re: [PATCH v3 0/1] mm: introduce put_user_page*(), placeholder versions

2019-03-11 Thread Christopher Lameter
On Fri, 8 Mar 2019, Jerome Glisse wrote: > > > > It would good if that understanding would be enforced somehow given the > > problems > > that we see. > > This has been discuss extensively already. GUP usage is now widespread in > multiple drivers, removing that would regress userspace ie break e

RE: [PATCHv4 10/28] PCI: mobiveil: fix the INTx process error

2019-03-11 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your comments! > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 2019年3月11日 22:08 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > ro

RE: [PATCHv4 24/28] PCI: mobiveil: add PCIe Gen4 RC driver for NXP Layerscape SoCs

2019-03-11 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your comments! > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 2019年3月11日 22:02 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > ro

Re: [RFC 04/15] slub: Enable Slab Movable Objects (SMO)

2019-03-11 Thread Christopher Lameter
On Mon, 11 Mar 2019, Roman Gushchin wrote: > > +static inline void *alloc_scratch(struct kmem_cache *s) > > +{ > > + unsigned int size = oo_objects(s->max); > > + > > + return kmalloc(size * sizeof(void *) + > > + BITS_TO_LONGS(size) * sizeof(unsigned long), > > +

[PATCH v2] net: brcm80211: fix missing checks for kmemdup

2019-03-11 Thread Kangjie Lu
In case kmemdup fails, the fix sets conn_info->req_ie_len to zero to avoid buffer overflows. Signed-off-by: Kangjie Lu --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211

[GIT PULL] chrome-platform updates for v5.1

2019-03-11 Thread Benson Leung
Hi Linus, The following changes since commit 49a57857aeea06ca831043acbb0fa5e0f50602fd: Linux 5.0-rc3 (2019-01-21 13:14:44 +1300) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git tags/tag-chrome-platform-for-v5.1 for you to fet

Re: [PATCH v9 9/9] gpio: uniphier: Utilize for_each_set_clump8 macro

2019-03-11 Thread Masahiro Yamada
On Sun, Mar 3, 2019 at 4:51 PM William Breathitt Gray wrote: > > Replace verbose implementation in set_multiple callback with > for_each_set_clump8 macro to simplify code and improve clarity. An > improvement in this case is that banks that are not masked will now be > skipped. > > Cc: Masahiro Ya

Re: [RFC 02/15] slub: Add isolate() and migrate() methods

2019-03-11 Thread Christopher Lameter
On Mon, 11 Mar 2019, Roman Gushchin wrote: > > --- a/mm/slub.c > > +++ b/mm/slub.c > > @@ -4325,6 +4325,34 @@ int __kmem_cache_create(struct kmem_cache *s, > > slab_flags_t flags) > > return err; > > } > > > > +void kmem_cache_setup_mobility(struct kmem_cache *s, > > +

[BUG] perf/core: report a task hung issue in __perf_event_ctx_lock_double()

2019-03-11 Thread liwei (GF)
Hi peter, The syzkaller reported a task hung issue, and it was on a qemu x86_64 machine with kernel 4.19.27. I analysed and found that, the gctx got in __perf_event_ctx_lock_double and ctx are just equal.It is caused by race between two concurrent sys_perf_event_open() calls where both try and m

RE: [PATCHv4 00/28] PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs

2019-03-11 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your comments! > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 2019年3月11日 21:33 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > ro

Re: [PATCH v4 1/3] dt-bindings: phy: Add Stingray USB PHY binding document

2019-03-11 Thread Srinath Mannam
Hi Rob, Thank you, I will send next patch set with the changes as you suggested. Regards, Srinath. On Tue, Mar 12, 2019 at 3:00 AM Rob Herring wrote: > > On Sun, Mar 10, 2019 at 10:32 PM Srinath Mannam > wrote: > > > > Hi Rob, > > > > Please find my comments below, > > > > On Sat, Feb 23, 2019

Re: [PATCH 0/4] mm: Use slab_list list_head instead of lru

2019-03-11 Thread Tobin C. Harding
On Mon, Mar 11, 2019 at 07:38:28PM -0700, Matthew Wilcox wrote: > On Tue, Mar 12, 2019 at 12:05:54PM +1100, Tobin C. Harding wrote: > > > slab_list and lru are in the same bits. Once this patch set is in, > > > we can remove the enigmatic 'uses lru' comment that I added. > > > > Funny you should

Re: [PATCH v9 1/9] bitops: Introduce the for_each_set_clump8 macro

2019-03-11 Thread Masahiro Yamada
On Sun, Mar 3, 2019 at 4:48 PM William Breathitt Gray wrote: > > This macro iterates for each 8-bit group of bits (clump) with set bits, > within a bitmap memory region. For each iteration, "start" is set to the > bit offset of the found clump, while the respective clump value is > stored to the l

Some bug fixes to the res sample / script code

2019-03-11 Thread Andi Kleen
Some minor bug fixes to the recently merged res sample / scripting improvelement in perf report. -Andi

[PATCH 3/3] perf, tools, report: Set up samples correctly in hierarchy mode

2019-03-11 Thread Andi Kleen
From: Andi Kleen In hierarchy mode the res samples need to be cloned from the parent entry. Copy them in this case. This fixes res sample browsing with --hierarchy. Signed-off-by: Andi Kleen --- tools/perf/util/hist.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --gi

[PATCH 2/3] perf, tools, report: Pass on -f to child perf script

2019-03-11 Thread Andi Kleen
From: Andi Kleen Pass on -f to the child perf script, so that it can read the perf.data file if it's owned by a different user. Signed-off-by: Andi Kleen --- tools/perf/ui/browsers/res_sample.c | 3 ++- tools/perf/ui/browsers/scripts.c| 5 +++-- 2 files changed, 5 insertions(+), 3 deletion

[PATCH 1/3] perf, tools, report: Handle samples without time

2019-03-11 Thread Andi Kleen
From: Andi Kleen When a sample doesn't have a time stamp (e.g. from --no-time), show the beginning of the trace for res samples instead of generating an impossible time range that errors out. Signed-off-by: Andi Kleen --- tools/perf/ui/browsers/res_sample.c | 4 +++- 1 file changed, 3 insertio

Re: [GIT PULL] XArray updates for 5.1-rc1

2019-03-11 Thread pr-tracker-bot
The pull request you sent on Mon, 11 Mar 2019 11:28:29 -0700: > git://git.infradead.org/users/willy/linux-dax.git xarray has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ea295481b6e313b4ea3ca2720ffcafd6005b5643 Thank you! -- Deet-doot-dot, I am a bot. https://korg.wik

Re: [PATCH v3 1/6] x86/mm/KASLR: Improve code comments about struct kaslr_memory_region

2019-03-11 Thread Baoquan He
On 02/18/19 at 11:17am, Baoquan He wrote: > > > + * When KASLR is active then the MM code makes sure that for each region > > > + * there's such a single, dynamic, global base address 'unsigned long' > > > + * variable available for the KASLR code to point to and modify directly: > > > + * > > > +

Re: [PATCH 1/2] PM / wakeup: Remove timer from wakeup_source_remove()

2019-03-11 Thread Viresh Kumar
On 11-03-19, 13:05, Rafael J. Wysocki wrote: > On Friday, March 8, 2019 10:53:11 AM CET Viresh Kumar wrote: > > wakeup_source_remove() is the counterpart of wakeup_source_add() helper > > and must undo the initializations done by wakeup_source_add(). Currently > > the timer is initialized by wakeup

[PATCH v4 23/31] docs/zh_CN: update Zhang Wei's email address

2019-03-11 Thread Alex Shi
to replace the obsolete email address with new one. Signed-off-by: Alex Shi Cc: Zhang Wei Cc: Li Yang Signed-off-by: Weiwei Jia --- Documentation/translations/zh_CN/process/submitting-drivers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/translations/zh

Re: [PATCH] PM / wakeup: Drop wakeup_source_drop()

2019-03-11 Thread Viresh Kumar
On 11-03-19, 12:53, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit d856f39ac1cc ("PM / wakeup: Rework wakeup source timer > cancellation") wakeup_source_drop() is a trivial wrapper around > __pm_relax() and it has no users except for wakeup_source_destroy() > and wakeup_sourc

[PATCH v4 08/31] docs/zh_CN: format the submitting-patches doc to rst

2019-03-11 Thread Alex Shi
And remove Enghlish explainations in the docs, which it isn't necessary in Chinese doc. Signed-off-by: Alex Shi Cc: Harry Wei Cc: Jonathan Corbet Cc: TripleX Chung Cc: Li Zefan Cc: Shawn Guo Cc: Fengguang Wu Cc: Coly Li Signed-off-by: Weiwei Jia --- .../zh_CN/process/submitting-patches.r

[PATCH 1/1] initrd: move initrd_start calculate within linear mapping range check

2019-03-11 Thread pierre Kuo
in the previous case, initrd_start and initrd_end can be successfully returned even (base < memblock_start_of_DRAM()) or (base + size > memblock_start_of_DRAM() + linear_region_size). That means even linear mapping range check fail for initrd_start and initrd_end, it still can get virtual address.

RE: [PATCHv4 23/28] dt-bindings: pci: Add NXP Layerscape SoCs PCIe Gen4 controller

2019-03-11 Thread Z.q. Hou
Hi Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: 2019年3月12日 6:12 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; robh...@kernel.org; ma

Re: [PATCH 09/10] mm/hmm: allow to mirror vma of a file on a DAX backed filesystem

2019-03-11 Thread Dan Williams
On Thu, Mar 7, 2019 at 10:56 AM Jerome Glisse wrote: > > On Thu, Mar 07, 2019 at 09:46:54AM -0800, Andrew Morton wrote: > > On Tue, 5 Mar 2019 20:20:10 -0800 Dan Williams > > wrote: > > > > > My hesitation would be drastically reduced if there was a plan to > > > avoid dangling unconsumed symbol

Re: [RFC PATCH v1 19/25] printk: introduce emergency messages

2019-03-11 Thread Sergey Senozhatsky
On (03/08/19 11:31), Petr Mladek wrote: > Great catch! > > I think that it is doable to guard the list using RCU. I think console_sem is more than just list lock. E.g. fb_flashcursor() - console_sem protects framebuffer from concurrent modifications. And many other examples. I think the last ti

Re: [RFC PATCH v1 19/25] printk: introduce emergency messages

2019-03-11 Thread Sergey Senozhatsky
On (03/11/19 13:04), John Ogness wrote: > > Great catch! > > Yes, thanks! > > > I think that it is doable to guard the list using RCU. > > I think it would be enough to take the prb_cpulock when modifying the > console linked list. That will keep printk_emergency() out until the > list has been

Re: [PATCH 29/42] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-03-11 Thread Baolin Wang
Hi, On Tue, 12 Mar 2019 at 02:57, Enrico Weigelt, metux IT consult wrote: > > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/gpio/gpio-sprd.c | 4 +--- > 1 file changed

Re: [PATCH 09/42] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-03-11 Thread Baolin Wang
On Tue, 12 Mar 2019 at 02:55, Enrico Weigelt, metux IT consult wrote: > > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/gpio/gpio-eic-sprd.c | 9 ++--- > 1 file ch

Re: [PATCH v6 1/2] dt-bindings: misc: aspeed-p2a-ctrl: add support

2019-03-11 Thread Rob Herring
On Mon, Mar 11, 2019 at 6:49 PM Patrick Venture wrote: > > On Mon, Mar 11, 2019 at 3:20 PM Rob Herring wrote: > > > > On Mon, Mar 04, 2019 at 10:55:36AM -0800, Patrick Venture wrote: > > > Document the ast2400, ast2500 PCI-to-AHB bridge control driver bindings. > > > > > > Signed-off-by: Patrick

Re: [PATCH 0/4] mm: Use slab_list list_head instead of lru

2019-03-11 Thread Matthew Wilcox
On Tue, Mar 12, 2019 at 12:05:54PM +1100, Tobin C. Harding wrote: > > slab_list and lru are in the same bits. Once this patch set is in, > > we can remove the enigmatic 'uses lru' comment that I added. > > Funny you should say this, I came to me today while daydreaming that I > should have remove

Re: [PATCH] arm64: dts: fsl: imx8mq: enable the thermal management unit (TMU)

2019-03-11 Thread Andrey Smirnov
On Mon, Mar 11, 2019 at 2:35 PM Angus Ainslie (Purism) wrote: > > These are the TMU nodes from the NXP vendor kernel > Hey Angus, TMU block supports multiple thermal zones and vendor kernel doesn't really account for that (see below). Latest version of the driver in thermal tree now actually sup

Re: [PATCH v2 3/9] dt-bindings: mfd: Add compatible for the MediaTek MT6358 PMIC

2019-03-11 Thread Sean Wang
On Mon, Mar 11, 2019 at 3:06 PM Rob Herring wrote: > > On Mon, Mar 11, 2019 at 12:19:32PM -0700, Sean Wang wrote: > > Hi, > > > > Always put the patches about dt-binding changes at the head of the > > series to let the related maintainer more easily find them. > > > > On Sun, Mar 10, 2019 at 8:48

[PATCH V5 3/4] ARM: dts: imx: make MMDC node name generic

2019-03-11 Thread Anson Huang
Node name should be generic, so use "memory-controller" instead of "mmdc" for MMDC node name, also remove "mmdc" label for platforms with single MMDC node. Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam --- No changes. --- arch/arm/boot/dts/imx6qdl.dtsi | 4 ++-- arch/arm/boot/dts/imx6sl

[PATCH V5 4/4] ARM: dts: imx6qdl: Improve mmdc1 node

2019-03-11 Thread Anson Huang
Add MMDC1 compatible string which is missing, and also set it to be disabled by default, as most of the platforms ONLY use single channel MMDC0, if dual MMDC channels are used, it can be enabled in board dts file. Signed-off-by: Anson Huang --- New patch. --- arch/arm/boot/dts/imx6qdl.dtsi | 2 +

[PATCH v2 2/5] drm/amd: fix fb references in async update

2019-03-11 Thread Helen Koike
Async update callbacks are expected to set the old_fb in the new_state so prepare/cleanup framebuffers are balanced. Calling drm_atomic_set_fb_for_plane() (which gets a reference of the new fb and put the old fb) is not required, as it's taken care by drm_mode_cursor_universal() when calling drm_a

[PATCH V5 1/4] dt-bindings: memory-controllers: freescale: add MMDC binding doc

2019-03-11 Thread Anson Huang
Freescale MMDC (Multi Mode DDR Controller) driver is supported since i.MX6Q, but not yet documented, this patch adds binding doc for MMDC module driver. Signed-off-by: Anson Huang --- Changes since V4: - update mmdc1 example. --- .../bindings/memory-controllers/fsl/mmdc.txt | 35 ++

[PATCH V5 2/4] ARM: dts: imx7ulp: add mmdc support

2019-03-11 Thread Anson Huang
i.MX7ULP has a MMDC module to control DDR, it reuses i.MX6Q's MMDC module, add support for it. Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam --- No changes. --- arch/arm/boot/dts/imx7ulp.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch

Re: [GIT PULL] XArray updates for 5.1-rc1

2019-03-11 Thread Matthew Wilcox
On Mon, Mar 11, 2019 at 06:39:41PM -0700, Linus Torvalds wrote: > On Mon, Mar 11, 2019 at 11:28 AM Matthew Wilcox wrote: > > > > git://git.infradead.org/users/willy/linux-dax.git xarray > > You forgot to tag it, and I don't pull from external untrusted sites > without signed tags.. > > Please?

[PATCH v2 0/5] drm: Fix fb changes for async updates

2019-03-11 Thread Helen Koike
Hello, This series fixes the slow down in performance introduced by "[PATCH v2] drm: Block fb changes for async plane updates" where async update falls back to a sync update, causing igt failures of type: "CRITICAL: completed 97 cursor updated in a period of 30 flips, we expect to complet

[PATCH 17/30] perf script python: Add Python3 support to export-to-sqlite.py

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Tony Jones Support both Python2 and Python3 in the export-to-sqlite.py script The use of 'from __future__' implies the minimum supported Python2 version is now v2.6 Signed-off-by: Tony Jones Acked-by: Adrian Hunter Link: http://lkml.kernel.org/r/20190309000518.2438-4-to...@suse.de Signe

[PATCH] appletalk: Fix potential NULL pointer dereference in unregister_snap_client

2019-03-11 Thread Yue Haibing
From: YueHaibing register_snap_client may return NULL, all the callers check it, but only print a warning. This will result in NULL pointer dereference in unregister_snap_client and other places. It has always been used like this since v2.6 Reported-by: Dan Carpenter Signed-off-by: YueHaibing

[PATCH 28/30] perf script: Add array bound checking to list_scripts

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Don't overflow array when the scripts directory is too large, or the script file name is too long. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20190311144502.15423-11-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/

[PATCH 04/30] perf time-utils: Add utility function to print time stamps in nanoseconds

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add a utility function to print nanosecond timestamps. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20190305144758.12397-11-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/time-utils.c | 8

[PATCH 19/30] perf tools: Update x86's syscall_64.tbl, no change in tools/perf behaviour

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick the changes in 7948450d4556 ("x86/x32: use time64 versions of sigtimedwait and recvmmsg"), that doesn't cause any change in behaviour in tools/perf/ as it deals just with the x32 entries. This silences this tools/perf build warning: Warning: Kernel ABI h

[PATCH 21/30] tools headers uapi: Update linux/in.h copy

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the changes in: 4effd28c1245 ("bridge: join all-snoopers multicast address") That do not generate any changes in tools/ use of this file. Silences this tools/perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/in.h' differs fro

[PATCH 25/30] perf report: Support builtin perf script in scripts menu

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen The scripts menu traditionally only showed custom perf scripts. Allow to run standard perf script with useful default options too. - Normal perf script - perf script with assembler (needs xed installed) - perf script with source code output (needs debuginfo) - perf script with

[PATCH 27/30] perf tools: Add some new tips describing the new options

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20190311144502.15423-9-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/tips.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/perf/Document

[PATCH 29/30] perf ui browser: Fix ui popup argv browser for many entries

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Fix the argv ui browser code to correctly display more entries than fit on the screen without crashing. The problem was some type confusion with pointer types in the ->seek function. Do the argv arithmetic correctly with char ** pointers. Also add some asserts to find overruns an

[PATCH 22/30] perf script: Filter COMM/FORK/.. events by CPU

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen The --cpu option only filtered samples. Filter other perf events, such as COMM, FORK, SWITCH by the CPU too. Reported-by: Jiri Olsa Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20190311144502.15423-2-a...@firstfloor.org Signed-off-by: Arnaldo C

[PATCH 30/30] perf tools report: Add custom scripts to script menu

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add a way to define custom scripts through ~/.perfconfig, which are then added to the scripts menu. The scripts get the same arguments as 'perf script', in particular -i, --cpu, --tid. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20190311144502.

[PATCH 24/30] perf report: Support running scripts for current time range

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen When using the time sort key, add new context menus to run scripts for only the currently selected time range. Compute the correct range for the selection add pass it as the --time option to perf script. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.or

[PATCH 23/30] perf report: Support time sort key

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add a time sort key to perf report to display samples for different time quantums separately. This allows easier analysis of workloads that change over time, and also will allow looking at the context of samples. % perf record ... % perf report --sort time,overhead,symbol --time

[PATCH 26/30] perf report: Implement browsing of individual samples

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Now 'perf report' can show whole time periods with 'perf script', but the user still has to find individual samples of interest manually. It would be expensive and complicated to search for the right samples in the whole perf file. Typically users only need to look at a small nu

WARN ON at kernel/sched/deadline.c task_non_contending

2019-03-11 Thread chengjian (D)
Hi. When looking to test SCHED_DEADLINE syzkaller report an warn in task_non_contending(). I tested the mainline kernel with the C program and captured the same call trace. [The previous message contains some strings in other formats, making the mail less readable. So I resend it. SORRY.] [ 

[PATCH 18/30] perf script python: Add printdate function to SQL exporters

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Tony Jones Introduce a printdate function to eliminate the repetitive use of datetime.datetime.today() in the SQL exporting scripts. Signed-off-by: Tony Jones Acked-by: Adrian Hunter Link: http://lkml.kernel.org/r/20190309000518.2438-5-to...@suse.de Signed-off-by: Arnaldo Carvalho de Mel

[PATCH 16/30] perf script python: Add Python3 support to export-to-postgresql.py

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Tony Jones Support both Python2 and Python3 in the export-to-postgresql.py script. The use of 'from __future__' implies the minimum supported Python2 version is now v2.6 Signed-off-by: Tony Jones Link: http://lkml.kernel.org/r/20190309000518.2438-3-to...@suse.de Signed-off-by: Adrian Hun

[PATCH 15/30] perf script python: Add Python3 support to exported-sql-viewer.py

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Tony Jones Support both Python2 and Python3 in the exported-sql-viewer.py script. The use of 'from __future__' implies the minimum supported Python2 version is now v2.6 Signed-off-by: Tony Jones Acked-by: Adrian Hunter Link: http://lkml.kernel.org/r/20190309000518.2438-2-to...@suse.de S

[PATCH 09/30] perf data: Don't store auxtrace index for directory data file

2019-03-11 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We can't store the auxtrace index when we store into multiple files, because we keep only offset for it, not the file. The auxtrace data will be processed correctly in the 'pipe' mode. Signed-off-by: Jiri Olsa Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Alexey Budankov Cc:

  1   2   3   4   5   6   7   8   9   10   >