Re: [RFC PATCH net-next v3 14/21] ethtool: provide link mode names as a string set

2019-02-20 Thread Florian Fainelli
On 2/18/2019 10:22 AM, Michal Kubecek wrote: > Add table of ethernet link mode names and make it available as a string set > to userspace GET_STRSET requests. > > Signed-off-by: Michal Kubecek > --- [snip] > > +const char *const link_mode_names[] = { Maybe you can define a macro (totally

Re: [RFC PATCH net-next v3 00/21] ethtool netlink interface, part 1

2019-02-20 Thread Florian Fainelli
Hi Michal, Let me start with a big thank you for tackling this humongous amount of work! On 2/18/2019 10:21 AM, Michal Kubecek wrote: > Note: this is marked as RFC because it's rather late in the cycle; the plan > is to make a regular submission (with changes based on review) once > net-next

RE: [PATCHv6 3/4] pci: layerscape: Add the EP mode support.

2019-02-20 Thread Xiaowei Bao
-Original Message- From: Lorenzo Pieralisi Sent: 2019年2月20日 18:06 To: Xiaowei Bao Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo Li ; kis...@ti.com; a...@arndb.de; gre...@linuxfoundation.org; M.h. Lian ; Mingkai Hu ; Roy Zang ;

Re: [LKP] [RFC PATCH] mm, memory_hotplug: fix off-by-one in is_pageblock_removable

2019-02-20 Thread Rong Chen
Hi, The patch can fix the issue for me. Best Regards, Rong Chen On 2/20/19 8:57 PM, Michal Hocko wrote: Rong Chen, coudl you double check this indeed fixes the issue for you please? On Mon 18-02-19 19:15:44, Michal Hocko wrote: From: Michal Hocko Rong Chen has reported the following boot

Re: [RFC PATCH net-next v3 15/21] ethtool: provide link settings and link modes in GET_SETTINGS request

2019-02-20 Thread Florian Fainelli
On 2/18/2019 10:22 AM, Michal Kubecek wrote: > Implement GET_SETTINGS netlink request to get link settings and link mode > information provided by ETHTOOL_GLINKSETTINGS ioctl command. > > The information is divided into two parts: supported, advertised and peer > advertised link modes when

Re: [LKP] [ACPICA] 4c1379d7bb: reaim.jobs_per_min -2.8% regression

2019-02-20 Thread kernel test robot
On Wed, Feb 20, 2019 at 08:28:49AM +0800, Schmauss, Erik wrote: > > > > -Original Message- > > From: Chen, Rong A > > Sent: Sunday, February 17, 2019 5:36 PM > > To: Moore, Robert > > Cc: Wysocki, Rafael J ; Schmauss, Erik > > ; LKML ; Linus > > Torvalds ; l...@01.org > > Subject: [LKP]

Re: [RESEND PATCH 3/7] mm/gup: Change GUP fast to use flags rather than a write 'bool'

2019-02-20 Thread Souptick Joarder
Hi Ira, On Wed, Feb 20, 2019 at 11:01 AM wrote: > > From: Ira Weiny > > To facilitate additional options to get_user_pages_fast() change the > singular write parameter to be gup_flags. > > This patch does not change any functionality. New functionality will > follow in subsequent patches. > >

[PATCH] io: accel: kxcjk1013: restore the range after resume.

2019-02-20 Thread He, Bo
restore the range register in case kxcjk1013 power is off after suspend we see the issue on some laptops, after system suspend and resume, the CTRL_REG1 register changed from 0xc8 to 0x80, so acceleration range is changed, the patch is to restore the acceleration range after resume.

Re: [LKP] [driver core] 570d020012: will-it-scale.per_thread_ops -12.2% regression

2019-02-20 Thread kernel test robot
On Tue, Feb 19, 2019 at 01:19:04PM +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 19, 2019 at 08:59:45AM +0800, Wei Yang wrote: > > On Mon, Feb 18, 2019 at 03:54:42PM +0800, kernel test robot wrote: > > >Greeting, > > > > > >FYI, we noticed a -12.2% regression of will-it-scale.per_thread_ops due

Re: [PATCH v2] clk: fractional-divider: check parent rate only if flag is set

2019-02-20 Thread Katsuhiro Suzuki
Ping... On 2019/02/11 0:38, Katsuhiro Suzuki wrote: Custom approximation of fractional-divider may not need parent clock rate checking. For example Rockchip SoCs work fine using grand parent clock rate even if target rate is greater than parent. This patch checks parent clock rate only if

Re: [RFC][PATCH 00/16] sched: Core scheduling

2019-02-20 Thread Subhra Mazumdar
On 2/18/19 9:49 AM, Linus Torvalds wrote: On Mon, Feb 18, 2019 at 9:40 AM Peter Zijlstra wrote: However; whichever way around you turn this cookie; it is expensive and nasty. Do you (or anybody else) have numbers for real loads? Because performance is all that matters. If performance is

Re: [PATCH v4] panic: Avoid the extra noise dmesg

2019-02-20 Thread Feng Tang
Hi Petr, Thanks for your review. On Wed, Feb 20, 2019 at 02:43:44PM +0100, Petr Mladek wrote: > On Fri 2019-02-15 13:56:54, Feng Tang wrote: > > Hi all, > > > > On Tue, Dec 11, 2018 at 09:32:30AM +0100, Petr Mladek wrote: > > > On Mon 2018-12-10 10:49:22, Kees Cook wrote: > > > > On Mon, Dec

Re: [PATCH v6 09/18] ia64/tlb: Conver to generic mmu_gather

2019-02-20 Thread Souptick Joarder
On Tue, Feb 19, 2019 at 4:03 PM Peter Zijlstra wrote: > > Generic mmu_gather provides everything ia64 needs (range tracking). > > Cc: Will Deacon > Cc: "Aneesh Kumar K.V" > Cc: Andrew Morton > Cc: Nick Piggin > Cc: Tony Luck > Signed-off-by: Peter Zijlstra (Intel) > --- >

Re: WARNING: ODEBUG bug in f2fs_fill_super

2019-02-20 Thread Sheng Yong
Hi, Dmitry, On 2019/2/20 23:12, Dmitry Vyukov wrote: On Mon, Aug 27, 2018 at 11:04 PM syzbot wrote: Hello, syzbot found the following crash on: HEAD commit:e27bc174c9c6 Add linux-next specific files for 20180824 git tree: linux-next console output:

Re: [PATCH v4 0/9] mm: Use vm_map_pages() and vm_map_pages_zero() API

2019-02-20 Thread Souptick Joarder
On Fri, Feb 15, 2019 at 8:06 AM Souptick Joarder wrote: > > Previouly drivers have their own way of mapping range of > kernel pages/memory into user vma and this was done by > invoking vm_insert_page() within a loop. > > As this pattern is common across different drivers, it can > be generalized

[PATCH 1/2] staging: erofs: no need to take page lock in readdir

2019-02-20 Thread Gao Xiang
VFS will take inode_lock for readdir, therefore no need to take page lock in readdir at all just as the majority of other generic filesystems. Signed-off-by: Gao Xiang --- drivers/staging/erofs/dir.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/erofs/dir.c

[PATCH 2/2] staging: erofs: switch to ->iterate_shared()

2019-02-20 Thread Gao Xiang
After commit 6192269444eb ("introduce a parallel variant of ->iterate()"), readdir can be done without taking exclusive inode lock of course. Signed-off-by: Gao Xiang --- drivers/staging/erofs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/erofs/dir.c

Re: [PATCH V5 5/8] clk: mediatek: add MUX_GATE_FLAGS_2

2019-02-20 Thread mtk14994
Dear Stephen, > + unsigned char mux_flags; > > Why isn't it an unsigned long? Isn't this supposed to match the > frameworks version of the clk flags? > it is unsigned char mux_flags ,becasuse struct clk_mux { u8 flags; } it is matched when use " mux->flags =

Re: [PATCH] printk: Pass caller information to log_store().

2019-02-20 Thread Sergey Senozhatsky
On (02/20/19 13:18), Petr Mladek wrote: > > Signed-off-by: Tetsuo Handa > > The patch looks fine to me: > > Reviewed-by: Petr Mladek Reviewed-by: Sergey Senozhatsky -ss

Re: [PATCH] printk: Pass caller information to log_store().

2019-02-20 Thread Sergey Senozhatsky
On (02/16/19 19:59), Tetsuo Handa wrote: > /* insert record into the buffer, discard old ones, update heads */ > -static int log_store(int facility, int level, > +static int log_store(u32 caller_id, int facility, int level, >enum log_flags flags, u64 ts_nsec, >

linux-next: build warning after merge of the sound-asoc tree

2019-02-20 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: sound/soc/samsung/odroid.c: In function 'odroid_audio_probe': sound/soc/samsung/odroid.c:298:22: warning: 'cpu_dai' may be used uninitialized in this function

[PATCH] iio: cros_ec_accel_legacy: Refactor code in cros_ec_accel_legacy_probe

2019-02-20 Thread Gustavo A. R. Silva
Refactor some code in order to fix both the technical implementation and the following warnings: drivers/iio/accel/cros_ec_accel_legacy.c: In function ‘cros_ec_accel_legacy_probe’: drivers/iio/accel/cros_ec_accel_legacy.c:387:36: warning: this statement may fall through

Re: [PATCH -next] mm/debug: use lx% for atomic64_read() on ppc64le

2019-02-20 Thread Qian Cai
Please ignore this patch. On 2/20/19 8:08 PM, Qian Cai wrote: > atomic64_read() on ppc64le returns "long int" while "long long" seems on > all other arches, so deal the special case for ppc64le. > > In file included from ./include/linux/printk.h:7, > from

[PATCH -next] mm/debug: add a cast to u64 for atomic64_read()

2019-02-20 Thread Qian Cai
atomic64_read() on ppc64le returns "long int", so fix the same way as the commit d549f545e690 ("drm/virtio: use %llu format string form atomic64_t") by adding a cast to u64, which makes it work on all arches. In file included from ./include/linux/printk.h:7, from

Re: [PATCH] iio: cros_ec_accel_legacy: Mark expected switch fall-throughs

2019-02-20 Thread Gustavo A. R. Silva
On 2/20/19 7:23 PM, Kees Cook wrote: > On Wed, Feb 20, 2019 at 10:47 AM Gustavo A. R. Silva > wrote: >> Yeah. Actually, we can even take the switch and for out of the equation, >> and the code can be rewritten as follows: >> >> ec_accel_channels[X].scan_index = Y; >>

Re: [PATCH v3 00/16] powerpc/32: Use BATs/LTLBs for STRICT_KERNEL_RWX

2019-02-20 Thread Michael Ellerman
Christophe Leroy writes: > The purpose of this serie is to: > - use BATs with STRICT_KERNEL_RWX on book3s (See patch 13 for details.) > - use LTLBs with STRICT_KERNEL_RWX on 8xx (See patch 15 for a few details.) This doesn't boot qemu-mac99 for me: spawn

Re: [PATCH v6 9/9] vsprintf: Avoid confusion between invalid address and value

2019-02-20 Thread Sergey Senozhatsky
On (02/20/19 10:24), Petr Mladek wrote: > Well, better be on the safe side. I'll move it at the beginning > of the patchset. > > PS: I am a bit busy with some other things. I'll send v7 later. If this is the only change you are going to make then I'm OK with v6. -ss

Re: [PATCH v2] platform/x86: wmi: fix potential null pointer dereference

2019-02-20 Thread Darren Hart
On Wed, Jan 30, 2019 at 05:43:34PM +0200, Andy Shevchenko wrote: > On Wed, Jan 30, 2019 at 5:15 PM Mattias Jacobsson <2...@mok.nu> wrote: > > > > In the function wmi_dev_match() the variable id is dereferenced without > > first performing a NULL check. The variable can for example be NULL if > > a

[PATCH 17/17] perf tools: Make rm_rf() remove single file

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Let rm_rf() remove a file if it's provided by path, not just directories. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190220122800.864-7-jo...@kernel.org

[PATCH 05/17] perf tools: Use sysfs__mountpoint() when reading cpu topology

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Use sysfs__mountpoint() when reading sysfs files to obtain cpu/numa topologies. Also use scnprintf instead of sprintf as suggested by Namhyung. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Alexander Shishkin Cc: Peter Zijlstra Link:

[PATCH 16/17] perf cpumap: Increase debug level for cpu_map__snprint verbose output

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa So it does not screw up single -v verbose output. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190220122800.864-6-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 15/17] perf bpf-event: Add missing new line into pr_debug call

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add a missing new line into pr_debug call in perf_event__synthesize_bpf_events(), so that the error message does not screw the verbose output. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Song Liu Link:

[PATCH 12/17] perf session: Don't report zero period samples for slave events

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no reason to deliver a sample with zero period. It means there was no value for slave event since its last group leader sample. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 14/17] perf script: Allow +- operator for type specific fields option

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add support to add/remove fields for specific event types in -F option. It's now possible to use '+-' after event type, like: # cat > test.c #include int main(void) { printf("Hello world\n"); while(1) {} } ^D # gcc -g -o test test.c # perf probe -x

[PATCH 13/17] perf evsel: Force sample_type for slave events

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Force sample_type setup for slave events in group leader sessions. We don't get sample for slave events, we make them when delivering group leader sample. Set the slave event to follow the master sample_type to ease up report. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin

[PATCH 02/17] perf header: Fix wrong node write in NUMA_TOPOLOGY feature

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We are currently passing the node index instead of the real node number. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Alexander Shishkin Cc: Peter Zijlstra Fixes: fbe96f29ce4b ("perf tools: Make perf.data more self-descriptive (v8)" Link:

[PATCH 11/17] perf trace: Allow dumping a BPF map after setting up BPF events

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Initial use case: Dumping the maps setup by tools/perf/examples/bpf/augmented_raw_syscalls.c, which so far are just booleans, showing just non-zeroed entries: # cat ~/.perfconfig [llvm] dump-obj = true clang-opt = -g [trace]

[PATCH 04/17] perf tools: Add numa_topology object

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add the numa_topology object to return the list of numa nodes together with their cpus. It will replace the numa code in header.c and will be used from 'perf record' in the following patches. Add the following interface functions to load numa details: struct numa_topology

[PATCH 06/17] perf report: Don't shadow inlined symbol with different addr range

2019-02-20 Thread Arnaldo Carvalho de Melo
From: He Kuang We can't assume inlined symbols with the same name are equal, because their address range may be different. This will cause the symbols with different addresses be shadowed when adding to the hist entry, and lead to ERANGE error when checking the symbol address during sample

[PATCH 01/17] perf tests shell: Skip trace+probe_vfs_getname.sh if built without trace support

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Tommi Rantala If perf was built without trace support, the trace+probe_vfs_getname.sh 'perf test' entry fails: # perf trace -h perf: 'trace' is not a perf-command. See 'perf --help' # perf test 64 64: Check open filename arg using perf trace + vfs_getname: FAILED! Check trace

[PATCH 03/17] perf tools: Add cpu_topology object

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Make struct cpu_topo global and rename it to 'struct cpu_topology', so that it can be used from the 'perf record' command in the following patches. Add the following interface functions to load/free cpu topology details: struct cpu_topology *cpu_topology__new(void); void

[PATCH 10/17] perf bpf: Add bpf_map dumper

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo At some point I'll suggest moving this to libbpf, for now I'll experiment with ways to dump BPF maps set by events in 'perf trace', starting with a very basic dumper for the current very limited needs of the augmented_raw_syscalls code: dumping booleans. Having

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

2019-02-20 Thread Arnaldo Carvalho de Melo
into perf/core (2019-02-15 10:19:11 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-5.1-20190220 for you to fetch changes up to b4409ae112caa6315f6ee678e953b9fc93e6919c: perf tools: Make rm_rf() remove single

[PATCH 09/17] perf test: Fix failure of 'evsel-tp-sched' test on s390

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Commit 489338a717a0 ("perf tests evsel-tp-sched: Fix bitwise operator") causes test case 14 "Parse sched tracepoints fields" to fail on s390. This test succeeds on x86. In fact this test now fails on all architectures with type char treated as type unsigned char. The root

[PATCH 07/17] perf doc: Fix HEADER_CMDLINE description in perf.data documentation

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jonas Rabenstein The content of the HEADER_CMDLINE feature header is a perf_header_string_list of the argument vector and not a perf_header_string of the commandline. Signed-off-by: Jonas Rabenstein Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Namhyung Kim Cc: Peter

[PATCH 08/17] perf doc: Fix documentation of the Flags section in perf.data

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jonas Rabenstein According to the current documentation the flags section is placed after the file header itself but the code assumes to find the flags section after the data section. This change updates the documentation to that assumption. Signed-off-by: Jonas Rabenstein Acked-by: Jiri

Re: [PATCH 4/6] perf tools: Add missing new line into pr_debug call

2019-02-20 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 20, 2019 at 01:27:58PM +0100, Jiri Olsa escreveu: > Adding missing new line into pr_debug call in > perf_event__synthesize_bpf_events function, > so the error message does not screw the verbose > output. Adding Song Liu to the CC list, - Arnaldo > Link:

Re: [PATCH] iio: cros_ec_accel_legacy: Mark expected switch fall-throughs

2019-02-20 Thread Kees Cook
On Wed, Feb 20, 2019 at 10:47 AM Gustavo A. R. Silva wrote: > Yeah. Actually, we can even take the switch and for out of the equation, > and the code can be rewritten as follows: > > ec_accel_channels[X].scan_index = Y; > ec_accel_channels[Y].scan_index = X; > ec_accel_channels[Z].scan_index = Z;

Re: [PATCH v5 06/10] Platform: OLPC: Add XO-1.75 EC driver

2019-02-20 Thread Darren Hart
On Thu, Jan 10, 2019 at 06:58:41PM +0100, Lubomir Rintel wrote: > It's based off the driver from the OLPC kernel sources. Somewhat > modernized and cleaned up, for better or worse. > > Modified to plug into the olpc-ec driver infrastructure (so that battery > interface and debugfs could be

[PATCH v2 0/1] Restore change_pte optimization

2019-02-20 Thread jglisse
From: Jérôme Glisse This patch is on top of my patchset to add context information to mmu notifier [1] you can find a branch with everything [2]. It has been tested with qemu/KVM building kernel within the guest and also running a benchmark which the result are given below. The change_pte()

[PATCH v2 1/1] kvm/mmu_notifier: re-enable the change_pte() optimization.

2019-02-20 Thread jglisse
From: Jérôme Glisse Since changes to mmu notifier the change_pte() optimization was lost for kvm. This re-enable it, when ever a pte is going from read and write to read only with same pfn, or from read only to read and write with different pfn. It is safe to update the secondary MMUs, because

Re: [PATCH v5 01/10] dt-bindings: olpc,xo1.75-ec: Add OLPC XO-1.75 EC bindings

2019-02-20 Thread Darren Hart
On Fri, Jan 11, 2019 at 08:36:35AM -0600, Rob Herring wrote: > On Thu, 10 Jan 2019 18:58:36 +0100, Lubomir Rintel wrote: > > The OLPC XO-1.75 Embedded Controller is a SPI master that uses extra > > signals for handshaking. It needs to know when is the slave (Linux) > > side's TX FIFO ready for

[PATCH v12 1/3] /proc/pid/status: Add support for architecture specific output

2019-02-20 Thread Aubrey Li
The architecture specific information of the running processes could be useful to the userland. Add support to examine process architecture specific information externally. Signed-off-by: Aubrey Li Cc: Peter Zijlstra Cc: Andi Kleen Cc: Tim Chen Cc: Dave Hansen Cc: Arjan van de Ven ---

[PATCH v12 3/3] Documentation/filesystems/proc.txt: add AVX512_elapsed_ms

2019-02-20 Thread Aubrey Li
Added AVX512_elapsed_ms in /proc//status. Report it in Documentation/filesystems/proc.txt Signed-off-by: Aubrey Li Cc: Peter Zijlstra Cc: Andi Kleen Cc: Tim Chen Cc: Dave Hansen Cc: Arjan van de Ven --- Documentation/filesystems/proc.txt | 28 +++- 1 file changed,

[PATCH v12 2/3] x86,/proc/pid/status: Add AVX-512 usage elapsed time

2019-02-20 Thread Aubrey Li
AVX-512 components use could cause core turbo frequency drop. So it's useful to expose AVX-512 usage elapsed time as a heuristic hint for the user space job scheduler to cluster the AVX-512 using tasks together. Tensorflow example: $ while [ 1 ]; do cat /proc/pid/status | grep AVX; sleep 1; done

Re: [PATCH 5/8] iio/counter: add FlexTimer Module Quadrature decoder counter driver

2019-02-20 Thread William Breathitt Gray
On Wed, Feb 20, 2019 at 04:41:54PM +, Jonathan Cameron wrote: > On Mon, 18 Feb 2019 15:03:18 +0100 > Patrick Havelange wrote: > > > This driver exposes the counter for the quadrature decoder of the > > FlexTimer Module, present in the LS1021A soc. > > > > Signed-off-by: Patrick Havelange >

[PATCH -next] mm/debug: use lx% for atomic64_read() on ppc64le

2019-02-20 Thread Qian Cai
atomic64_read() on ppc64le returns "long int" while "long long" seems on all other arches, so deal the special case for ppc64le. In file included from ./include/linux/printk.h:7, from ./include/linux/kernel.h:15, from mm/debug.c:9: mm/debug.c: In function

Re: [PATCH V7 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-02-20 Thread Eduardo Valentin
On Wed, Feb 20, 2019 at 06:53:40AM +, Anson Huang wrote: > 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 thermal sensors etc.. > > This patch adds i.MX system controller thermal driver support, >

[PATCH] IB/hfi1: Add missing break in switch statement

2019-02-20 Thread Gustavo A. R. Silva
Fix the following warning by adding a missing break: drivers/infiniband/hw/hfi1/tid_rdma.c: In function ‘hfi1_tid_rdma_wqe_interlock’: drivers/infiniband/hw/hfi1/tid_rdma.c:3251:3: warning: this statement may fall through [-Wimplicit-fallthrough=] switch (prev->wr.opcode) { ^~

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

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 4:52 PM Jann Horn wrote: > AFAICS the byte_at_a_time loop exits when max==0 is reached, and then > if `res >= count` (in other words, if we've copied as many bytes as > requested, haven't encountered a null byte so far, and haven't reached > the end of the address space),

Re: [PATCH V7 4/4] arm64: dts: imx: add i.MX8QXP thermal support

2019-02-20 Thread Eduardo Valentin
On Wed, Feb 20, 2019 at 06:53:58AM +, Anson Huang wrote: > Add i.MX8QXP CPU thermal zone support. > > Signed-off-by: Anson Huang > --- > Changes since V6: > - add fallback compatible string "fsl,imx-sc-thermal" according to i.MX > SC thermal driver > update. > --- >

[PATCH net-next v3 8/8] net: Get rid of switchdev_port_attr_get()

2019-02-20 Thread Florian Fainelli
With the bridge no longer calling switchdev_port_attr_get() to obtain the supported bridge port flags from a driver but instead trying to set the bridge port flags directly and relying on driver to reject unsupported configurations, we can effectively get rid of switchdev_port_attr_get() entirely

[PATCH net-next v3 6/8] net: bridge: Stop calling switchdev_port_attr_get()

2019-02-20 Thread Florian Fainelli
Now that all switchdev drivers have been converted to check the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS flags and report flags that they do not support accordingly, we can migrate the bridge code to try to set that attribute first, check the results and then do the actual setting. Signed-off-by:

[PATCH net-next v3 7/8] net: Remove SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT

2019-02-20 Thread Florian Fainelli
Now that we have converted the bridge code and the drivers to check for bridge port(s) flags at the time we try to set them, there is no need for a get() -> set() sequence anymore and SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT therefore becomes unused. Reviewed-by: Ido Schimmel Signed-off-by:

[PATCH net-next v3 4/8] net: dsa: Add setter for SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for removing SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT, add support for a function that processes the SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS and SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attributes and returns not supported for any flag set, since DSA does not currently support

[PATCH net-next v3 3/8] staging: fsl-dpaa2: ethsw: Handle PORT_PRE_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for removing SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT, handle the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute and check that the bridge port flags being configured are supported. Signed-off-by: Florian Fainelli --- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 14

[PATCH net-next v3 0/8] net: Get rid of switchdev_port_attr_get()

2019-02-20 Thread Florian Fainelli
Hi all, This patch series splits the removal of the switchdev_ops that was proposed a few times before and first tackles the easy part which is the removal of the single call to switchdev_port_attr_get() within the bridge code. As suggestd by Ido, this patch series adds a

[PATCH net-next v3 2/8] mlxsw: spectrum: Handle PORT_PRE_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for getting rid of switchdev_port_attr_get(), have mlxsw check for the bridge flags being set through switchdev_port_attr_set() when the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute identifier is used. Signed-off-by: Florian Fainelli ---

[PATCH net-next v3 5/8] rocker: Check Handle PORT_PRE_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for getting rid of switchdev_port_attr_get(), have rocker check for the bridge flags being set through switchdev_port_attr_set() with the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute identifier. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/rocker/rocker_main.c |

[PATCH net-next v3 1/8] net: switchdev: Add PORT_PRE_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for removing switchdev_port_attr_get(), introduce PORT_PRE_BRIDGE_FLAGS which will be called through switchdev_port_attr_set(), in the caller's context (possibly atomic) and which must be checked by the switchdev driver in order to return whether the operation is supported or not.

Re: [PATCH 12/12] thermal: qoriq: Add support for multiple thremal sites

2019-02-20 Thread Eduardo Valentin
On Mon, Feb 18, 2019 at 11:11:41AM -0800, Andrey Smirnov wrote: > TMU IP block provides temerature measurement for up to 16 sites, > current implementation of the driver however hardcodes a single site > ID. Change the code so it would be possible to reference multiple > sites as indivudial

Re: [PATCH 00/12] QorIQ TMU multi-sensor and HWMON support

2019-02-20 Thread Eduardo Valentin
Hey Andrey On Mon, Feb 18, 2019 at 11:11:29AM -0800, Andrey Smirnov wrote: > Everyone: > > This series contains patches adding support for HWMON integration, > multi-sensor support as well as a small fix and general improvements > (hopefully) for TMU driver I made while working on it on i.MX8MQ.

Re: [PATCH 4/6] lib/string: Add string copy/zero function

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > We have a function to copy strings safely and we have a function to copy > strings _and_ zero the tail of the destination (if source string is > shorter than destination buffer) but we do not have a function to do > both at once. This

[PATCH] regulator: fan53555: Add support for FAN53526

2019-02-20 Thread Bjorn Andersson
The FAN53526 differs from the FAN53555 only in that the mode bit in VSEL0/VSEL1 is moved to the CONTROL register, the voltage selector mask is extended by 1 bit and the step is different. So extend the existing fan53555 driver to support FAN53526 as well. Signed-off-by: Bjorn Andersson ---

Re: linux-next: Tree for Feb 20

2019-02-20 Thread Zhangshaokun
Hi Ard, On 2019/2/20 18:05, Ard Biesheuvel wrote: > On Wed, 20 Feb 2019 at 10:58, Jarkko Sakkinen > wrote: >> >> On Wed, Feb 20, 2019 at 11:52:52AM +0200, Jarkko Sakkinen wrote: >>> On Wed, Feb 20, 2019 at 05:11:15PM +0800, Zhangshaokun wrote: There is a compiler failure on arm64 platform,

Re: [PATCH 01/10] mm/hmm: use reference counting for HMM struct

2019-02-20 Thread John Hubbard
On 2/20/19 4:37 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 04:32:09PM -0800, John Hubbard wrote: On 2/20/19 4:15 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 04:06:50PM -0800, John Hubbard wrote: On 2/20/19 3:59 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 03:47:50PM -0800,

Re: linux-next: Fixes tag needs some work in the drivers-x86 tree

2019-02-20 Thread Darren Hart
On Wed, Feb 13, 2019 at 08:45:56PM +0530, Bhardwaj, Rajneesh wrote: > > On 07-Feb-19 9:25 PM, Andy Shevchenko wrote: > > On Thu, Feb 7, 2019 at 4:06 AM Bhardwaj, Rajneesh > > wrote: > > > On 07-Feb-19 4:27 AM, Stephen Rothwell wrote: > > > > > > Hi all, > > > > > > In commit > > > > > >

Re: [PATCH v3 3/9] dt-bindings: Add documentation for Milbeaut SoCs

2019-02-20 Thread Sugaya, Taichi
Hi, On 2019/02/20 22:33, Rob Herring wrote: On Wed, Feb 20, 2019 at 1:43 AM Sugaya Taichi wrote: This adds a DT binding documentation for the M10V and its evaluation board. Signed-off-by: Sugaya Taichi --- .../bindings/arm/socionext/milbeaut.yaml | 22 ++ 1

Re: [PATCH 01/10] mm/hmm: use reference counting for HMM struct

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 04:32:09PM -0800, John Hubbard wrote: > On 2/20/19 4:15 PM, Jerome Glisse wrote: > > On Wed, Feb 20, 2019 at 04:06:50PM -0800, John Hubbard wrote: > > > On 2/20/19 3:59 PM, Jerome Glisse wrote: > > > > On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: > > > > >

Re: [PATCH v3 9/9] ARM: configs: Add Milbeaut M10V defconfig

2019-02-20 Thread Sugaya, Taichi
Hi, On 2019/02/20 22:23, Masami Hiramatsu wrote: Hi Arnd, 2019年2月20日(水) 22:18 Arnd Bergmann : On Wed, Feb 20, 2019 at 2:16 PM Masami Hiramatsu wrote: 2019年2月20日(水) 21:28 Arnd Bergmann : On Wed, Feb 20, 2019 at 12:27 PM Sugaya, Taichi wrote: On 2019/02/20 18:28, Arnd Bergmann wrote: On

[PATCH] drm/bochs: Fix the ID mismatch error

2019-02-20 Thread Alistair Francis
When running RISC-V QEMU with the Bochs device attached via PCIe the probe of the Bochs device fails with: [drm:bochs_hw_init] *ERROR* ID mismatch This was introduced by this commit: 7780eb9ce8 bochs: convert to drm_dev_register To fix the error we ensure that pci_enable_device() is

Re: [PATCH 01/10] mm/hmm: use reference counting for HMM struct

2019-02-20 Thread John Hubbard
On 2/20/19 4:15 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 04:06:50PM -0800, John Hubbard wrote: On 2/20/19 3:59 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse Every time i read

Re: [PATCHv5] random: Make /dev/random wait for input_pool initializedy

2019-02-20 Thread Theodore Y. Ts'o
Hi Brend, I've been looking at your patch, and as far as the core part of what you're patching, I think this patch below is a conceptually simpler way of fixing the original core problem. Please take a look and let me know what you think. There are some other auxiliary things that your patch is

Re: [Xen-devel] [PATCH RFC 00/39] x86/KVM: Xen HVM guest support

2019-02-20 Thread Ankur Arora
On 2/20/19 3:39 PM, Marek Marczykowski-Górecki wrote: On Wed, Feb 20, 2019 at 08:15:30PM +, Joao Martins wrote: 2. PV Driver support (patches 17 - 39) We start by redirecting hypercalls from the backend to routines which emulate the behaviour that PV backends expect i.e. grant

Re: [PATCH RFC 00/39] x86/KVM: Xen HVM guest support

2019-02-20 Thread Ankur Arora
On 2/20/19 1:09 PM, Paolo Bonzini wrote: On 20/02/19 21:15, Joao Martins wrote: 2. PV Driver support (patches 17 - 39) We start by redirecting hypercalls from the backend to routines which emulate the behaviour that PV backends expect i.e. grant table and interdomain events. Next, we

Re: [PATCH 03/10] mm/hmm: improve and rename hmm_vma_get_pfns() to hmm_range_snapshot()

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 04:25:07PM -0800, John Hubbard wrote: > On 1/29/19 8:54 AM, jgli...@redhat.com wrote: > > From: Jérôme Glisse > > > > Rename for consistency between code, comments and documentation. Also > > improves the comments on all the possible returns values. Improve the > >

Re: [PATCH v2] powerpc/prom_init: add __init markers to all functions

2019-02-20 Thread Daniel Axtens
Hi Masahiro, > It is fragile to rely on the compiler's optimization to avoid the > section mismatch. Some functions may not be necessarily inlined > when the compiler's inlining heuristic changes. > > Add __init markers consistently. > Are you doing this with some sort of static analysis, or

Re: [PATCH 03/10] mm/hmm: improve and rename hmm_vma_get_pfns() to hmm_range_snapshot()

2019-02-20 Thread John Hubbard
On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse Rename for consistency between code, comments and documentation. Also improves the comments on all the possible returns values. Improve the function by returning the number of populated entries in pfns array. Signed-off-by:

[PATCH] Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255

2019-02-20 Thread Kalash Nainwal
Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255 to keep legacy software happy. This is similar to what was done for ipv4 in commit 709772e6e065 ("net: Fix routing tables with id > 255 for legacy software"). Signed-off-by: Kalash Nainwal --- net/ipv6/route.c | 2 +- 1 file changed, 1

Re: [PATCH] regulator: axp20x: Get rid of AXP20X_xxx_START/END/STEPS defines

2019-02-20 Thread Axel Lin
Olliver Schinagl 於 2019年2月21日 週四 上午6:57寫道: > > Hey Axel, > > On February 20, 2019 5:50:13 PM GMT+01:00, Axel Lin > wrote: > >The AXP20X_xxx_START/END/STEPS defines make the code hard to read and > >very hard to check the linear range settings because it needs to check > >the defines one-by-one.

Re: [PATCH v2] perf/core: use strndup_user() instead of buggy open-coded version

2019-02-20 Thread Masami Hiramatsu
Hi Jann, On Wed, 20 Feb 2019 17:54:43 +0100 Jann Horn wrote: > The first version of this method was missing the check for > `ret == PATH_MAX`; then such a check was added, but it didn't call kfree() > on error, so there was still a small memory leak in the error case. > Fix it by using

Re: [PATCH 6/6] net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver

2019-02-20 Thread David Miller
From: Tony Lindgren Date: Wed, 20 Feb 2019 13:01:27 -0800 > What I can do is set up a separate branch with just this > patch on top of the dts changes that the arm-soc guys can > then merge towards the end of the merge cycle. If that > works for you, let me know and I'll do it. Yes, it does

Re: [PATCH 01/10] mm/hmm: use reference counting for HMM struct

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 04:06:50PM -0800, John Hubbard wrote: > On 2/20/19 3:59 PM, Jerome Glisse wrote: > > On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: > > > On 1/29/19 8:54 AM, jgli...@redhat.com wrote: > > > > From: Jérôme Glisse > > > > > > > > Every time i read the code to

Re: [PATCH 3/6] lib/string: Use correct docstring format

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > Currently the docstring comments for strscpy() are not in the correct > format. Prior to working on this file fix up the docstring. > > Use correct docstring format for strscpy(). Is this attached to "make htmldocs" anywhere? Maybe in

Re: [PATCH 01/10] mm/hmm: use reference counting for HMM struct

2019-02-20 Thread John Hubbard
On 2/20/19 3:59 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse Every time i read the code to check that the HMM structure does not vanish before it should thanks to the many lock

Re: [RFC PATCH] kbuild: support llvm-ar

2019-02-20 Thread Jordan Rupprecht
Great to hear! If you discover anything later, let me know. On Tue, Feb 19, 2019 at 10:11 PM Masahiro Yamada wrote: > > Hi Jordan, > > > On Thu, Feb 7, 2019 at 9:56 AM Jordan Rupprecht wrote: > > > > I have a patch up for review that fixes the second case of chopping > > off the directory when

Re: [PATCH 2/6] lib/string: Fix erroneous 'overflow' documentation

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > Current documentation uses 'overflow' to describe a situation where less > data is written to a buffer than buffer size not more. 'overflow' is > the wrong word here - since we don't typically say 'underflow' change > the whole

Re: [PATCH 01/10] mm/hmm: use reference counting for HMM struct

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: > On 1/29/19 8:54 AM, jgli...@redhat.com wrote: > > From: Jérôme Glisse > > > > Every time i read the code to check that the HMM structure does not > > vanish before it should thanks to the many lock protecting its removal > > i get a

Re: [PATCH 1/6] lib/string: Enable string selftesting

2019-02-20 Thread Kees Cook
On Tue, Feb 19, 2019 at 1:55 PM Tobin C. Harding wrote: > > On Tue, Feb 19, 2019 at 12:55:09PM +0200, Andy Shevchenko wrote: > > On Tue, Feb 19, 2019 at 4:44 AM Tobin C. Harding wrote: > > > + If unsure, say N. > > Does that mean that this is redundant too? I've started leaving this off

linux-next: manual merge of the v4l-dvb tree with the dma-mapping tree

2019-02-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the v4l-dvb tree got a conflict in: drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c between commit: 82c5de0ab8db ("dma-mapping: remove the DMA_MEMORY_EXCLUSIVE flag") from the dma-mapping tree and commit: 43a445f188e1 ("media:

<    1   2   3   4   5   6   7   8   9   10   >