Re: [PATCH v10 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-11-21 Thread Viresh Kumar
On 21-11-18, 14:06, Matthias Kaehlcke wrote: > On Wed, Nov 21, 2018 at 04:12:47PM +0530, Taniya Das wrote: > > + .boost_enabled = true, > > I have no real expertise with cpufreq boost, but after reading a bit > through cpufreq code this seems wrong. Boost is enabled statically, > however the dr

Re: [PATCH 4/6] zram: support idle page writeback

2018-11-21 Thread Minchan Kim
On Thu, Nov 22, 2018 at 11:14:43AM +0900, Sergey Senozhatsky wrote: > On (11/21/18 05:34), Minchan Kim wrote: > > > > > > Just a thought, > > > > > > I wonder if it will make sense (and if it will be possible) to writeback > > > idle _compressed_ objects. Right now we decompress, say, a perfectly

Re: [PATCH v3] mm: use swp_offset as key in shmem_replace_page()

2018-11-21 Thread Andrew Morton
On Wed, 21 Nov 2018 14:54:42 -0700 Yu Zhao wrote: > We changed key of swap cache tree from swp_entry_t.val to > swp_offset. Need to do so in shmem_replace_page() as well. What are the user-visible effects of this change? > Fixes: f6ab1f7f6b2d ("mm, swap: use offset of swap entry as key of swap

Re: [PATCH 4.9 00/59] 4.9.139-stable review

2018-11-21 Thread kernelci.org bot
stable-rc/linux-4.9.y boot: 79 boots: 0 failed, 78 passed with 1 offline (v4.9.138-60-g70b13958eeae) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.9.y/kernel/v4.9.138-60-g70b13958eeae/ Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-4.9.y/ke

Re: [PATCH v5] kernel/signal: Signal-based pre-coredump notification

2018-11-21 Thread Enke Chen
Hi, Andrew: As suggested, I will post them as a patch series (with the same version v5): [PATCH v5 1/2] kernel/signal: Signal-based pre-coredump notification [PATCH v5 2/2] selftests/prctl: selftest for pre-coredump signal notification I have a diff for the manpage as well. I guess that

linux-next: Tree for Nov 22

2018-11-21 Thread Stephen Rothwell
Hi all, Changes since 20181121: The bpf-next tree gained a conflict against the net-next tree. Non-merge commits (relative to Linus' tree): 4106 4327 files changed, 188873 insertions(+), 127896 deletions(-) I

[PATCH 00/11] mfd: simple demodularization of non-modular drivers

2018-11-21 Thread Paul Gortmaker
This group of MFD drivers are all controlled by "bool" Kconfig settings, but contain traces of module infrastructure like unused/orphaned __exit functions, use of and/or MODULE_ macros that are no-ops in the non-modular case. We can remove/replace all of the above. We are trying to make driver c

[PATCH 08/11] mfd: syscon: Make it explicitly non-modular

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_SYSCON drivers/mfd/Kconfig:bool "System Controller Register R/W Based on Regmap" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essential

[PATCH 11/11] mfd: wm8400-core: Make it explicitly non-modular

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_WM8400 drivers/mfd/Kconfig:bool "Wolfson Microelectronics WM8400" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so

[PATCH 06/11] mfd: rc5t583: Make it explicitly non-modular

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_RC5T583 drivers/mfd/Kconfig:bool "Ricoh RC5T583 Power Management system device" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentiall

[PATCH 07/11] mfd: sta2x11: drop unused MODULE_ tags from non-modular code

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_STA2X11 drivers/mfd/Kconfig:bool "STMicroelectronics STA2X11" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so t

[PATCH 10/11] mfd: wm831x-core: drop unused MODULE_ tags from non-modular code

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_WM831X drivers/mfd/Kconfig:bool ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver th

[PATCH 09/11] mfd: tps65910: Make it explicitly non-modular

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_TPS65910 drivers/mfd/Kconfig-bool "TI TPS65910 Power Management chip" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned

[PATCH 01/11] mfd: as3711: Make it explicitly non-modular

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_AS3711 drivers/mfd/Kconfig:bool "AMS AS3711" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading th

[PATCH 02/11] mfd: da9055-core: make it explicitly non-modular

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_DA9055 drivers/mfd/Kconfig:bool "Dialog Semiconductor DA9055 PMIC Support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orp

[PATCH 04/11] mfd: htc-i2cpld: Make it explicitly non-modular

2018-11-21 Thread Paul Gortmaker
The Kconfig for this option is currently: config HTC_I2CPLD bool "HTC I2C PLD chip support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-onl

[PATCH 03/11] mfd: db8500-prcmu: drop unused MODULE_ tags from non-modular code

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_DB8500_PRCMU drivers/mfd/Kconfig:bool "ST-Ericsson DB8500 Power Reset Control Management Unit" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces o

[PATCH 05/11] mfd: max8925-core: drop unused MODULE_ tags from non-modular code

2018-11-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_MAX8925 drivers/mfd/Kconfig:bool "Maxim Semiconductor MAX8925 PMIC Support" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastruc

[PATCH 1/2] modpost: file2alias: go back to simple devtable lookup

2018-11-21 Thread Masahiro Yamada
Commit e49ce14150c6 ("modpost: use linker section to generate table.") was not so cool as we had expected because it ended up with ugly section hacks when commit dd2a3acaecd7 ("mod/file2alias: make modpost compile on darwin again") came in. Given a certain degree of unknowledge about the link stag

[PATCH 2/2] modpost: file2alias: check prototype of handler

2018-11-21 Thread Masahiro Yamada
Use specific prototype instead of an opaque pointer so that the compiler can catch incompatible pointer type. Signed-off-by: Masahiro Yamada --- scripts/mod/file2alias.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.

Re: [PATCH 4/4] base/drivers/topology: Default dmpis-mhz if they are not set in DT

2018-11-21 Thread Viresh Kumar
On 21-11-18, 23:12, Daniel Lezcano wrote: > On 30/10/2018 09:58, Viresh Kumar wrote: > > s/dmpis/dmips/ in $subject > > > > On 29-10-18, 17:23, Daniel Lezcano wrote: > >> In the case of assymetric SoC with the same micro-architecture, we > > > > asymmetric ? > > > >> have a grou

Elantech SMBus support regression

2018-11-21 Thread Kai Heng Feng
Hi Benjamin, It appears the Elantech SMBus support breaks some users’ touchpad. Please have a look at [1] [2], thanks! [1] https://bugs.launchpad.net/bugs/1803600 [2] https://bugs.archlinux.org/task/59714 Kai-Heng

Re: LPC Traffic Shaping w/ BPF Talk - percpu followup

2018-11-21 Thread Vlad Dumitrescu
On Tue, Nov 20, 2018 at 2:17 PM Dennis Zhou wrote: > > Hi Eddie, Vlad, and Willem, > > A few people mentioned to me that you guys were experiencing issues with > the percpu memory allocator. I saw the talk slides mention the > following two bullets: > > 1) allocation pattern makes the per cpu allo

Re: [PATCH] perf stat: fix csv mode column output for non-cgroup events

2018-11-21 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 07, 2018 at 02:50:45AM -0800, Stephane Eranian escreveu: > When using the -x option, perf stat prints csv-style output > with one event per line. For each event, it prints the count, > the unit, the event name, the cgroup, and a bunch of other event > specific fields (such as insn per

[PATCH 01/28] perf bpf: Add unistd.h to the headers accessible to bpf proggies

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Start with a getpid() function wrapping BPF_FUNC_get_current_pid_tgid, idea is to mimic the system headers. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-zo8hv22onidep7tm785dz...@git.kernel.or

[PATCH 18/28] tools build feature: Check if eventfd() is available

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo A new 'perf bench epoll' will use this, and to disable it for older systems, add a feature test for this API. This is just a simple program that if successfully compiled, means that the feature is present, at least at the library level, in a build that sets the out

[PATCH 26/28] perf jvmti: Separate jvmti cmlr check

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The Compiled Method Load Record (cmlr) is JDK specific interface to access JVM stack info. This makes the jvmti agent code not compile under another jdk, which does not support that. Separating jvmti cmlr check into special feature check, and adding HAVE_JVMTI_CMLR macro to indic

[PATCH 20/28] perf bench: Add epoll_ctl(2) benchmark

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Davidlohr Bueso Benchmark the various operations allowed for epoll_ctl(2). The idea is to concurrently stress a single epoll instance doing add/mod/del operations. Committer testing: # perf bench epoll ctl # Running 'epoll/ctl' benchmark: Run summary [PID 20344]: 4 threads doing ep

[PATCH 19/28] perf bench: Add epoll parallel epoll_wait benchmark

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Davidlohr Bueso This program benchmarks concurrent epoll_wait(2) for file descriptors that are monitored with with EPOLLIN along various semantics, by a single epoll instance. Such conditions can be found when using single/combined or multiple queuing when load balancing. Each thread has a

[PATCH 28/28] perf pmu: Move *_cpuid_str() weak functions to header.c

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Kan Liang The weak functions, strcmp_cpuid_str() and get_cpuid_str(), are defined in pmu.c. Most of the cpuid related functions, including *_cpuid_str()'s declaration and platform specific definition, are in header.c/h. To make the declaration and definition of all cpuid related functions

[PATCH 27/28] perf symbols: Fix slowness due to -ffunction-section

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Eric Saint-Etienne Perf can take minutes to parse an image when -ffunction-section is used. This is especially true with the kernel image when it is compiled this way, which is the arm64 default since the patcheset "Enable deadcode elimination at link time". Perf organize maps using a rbtr

[PATCH 23/28] perf stat: Use perf_evsel__is_clocki() for clock events

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria We already have function to check if a given event is either SW_CPU_CLOCK or SW_TASK_CLOCK. Utilize it. Signed-off-by: Ravi Bangoria Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Anton Blanchard Cc: Jin Yao Cc: Namhyung Kim Cc: Thomas Richter Cc: yuzhouj...@didichuxin

[PATCH 16/28] perf script: Share code and output format for uregs and iregs output

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Milian Wolff The iregs output was missing the newline at end as well as the leading ABI output. This made it hard to compare the iregs and uregs values. Instead, use a single function to output the register values and use it for both, iregs and uregs, to ensure the output is consistent. Be

[PATCH 24/28] perf vendor events: Add stepping in CPUID string for x86

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf tools cannot find the proper event list for the Cascadelake server. Because the Cascadelake server and the Skylake server have the same CPU model number, which are used by the perf tools to find the event list. The stepping for Skylake server is up to 4. The stepping f

[PATCH 14/28] perf script: Add newline after uregs output

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Milian Wolff This change makes it much easier to easily distinguish between consecutive samples by keeping the empty line between them, like we see when we do not enable uregs output. Before: cpp-inlining 28298 [-01] 54837.342780:3068085 cycles:pp: 77c96709 __hypot

[PATCH 17/28] perf bench: Move HAVE_PTHREAD_ATTR_SETAFFINITY_NP into bench.h

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Davidlohr Bueso Both futex and epoll need this call, and can cause build failure on systems that don't have it pthread_attr_setaffinity_np(). Signed-off-by: Davidlohr Bueso Reported-by: Arnaldo Carvalho de Melo Cc: Andrew Morton Cc: Davidlohr Bueso Cc: Jason Baron Link: http://lkml.ke

[PATCH 22/28] perf pmu: Suppress potential format-truncation warning

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Ben Hutchings Depending on which functions are inlined in util/pmu.c, the snprintf() calls in perf_pmu__parse_{scale,unit,per_pkg,snapshot}() might trigger a warning: util/pmu.c: In function 'pmu_aliases': util/pmu.c:178:31: error: '%s' directive output may be truncated writing up to

[PATCH 21/28] perf tools: Add Hygon Dhyana support

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Pu Wen The tool perf is useful for the performance analysis on the Hygon Dhyana platform. But right now there is no Hygon support for it to analyze the KVM guest os data. So add Hygon Dhyana support to it by checking vendor string to share the code path of AMD. Signed-off-by: Pu Wen Acked

[PATCH 03/28] perf augmented_syscalls: Remove needless linux/socket.h include

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Leftover from when we started augmented_raw_syscalls.c from tools/perf/examples/bpf/augmented_syscalls. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Fixes: e58a0322dbac ("perf examples bpf: Start augmenting raw_syscalls:sys_{s

[PATCH 06/28] perf augmented_syscalls: Drop 'write', 'poll' for testing without self pid filter

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When testing system wide tracing without filtering the syscalls called by 'perf trace' itself we get into a feedback loop, drop for now those two syscalls, that are the ones that 'perf trace' does in its loop for writing the syscalls it intercepts, to help with test

[PATCH 12/28] perf augmented_syscalls: Remove example hardcoded set of filtered pids

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Now that 'perf trace' fills in that "filtered_pids" BPF map, remove the set of filtered pids used as an example to test that feature. That feature works like this: Starting a system wide 'strace' like 'perf trace' augmented session we noticed that lots of events t

[PATCH 15/28] perf bpf: Reduce the hardcoded .max_entries for pid_maps

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo While working on augmented syscalls I got into this error: # trace -vv --filter-pids 2469,1663 -e tools/perf/examples/bpf/augmented_raw_syscalls.c sleep 1 libbpf: map 0 is "__augmented_syscalls__" libbpf: map 1 is "__bpf_stdout__" libbpf: map 2 is "pids

[PATCH 08/28] perf evlist: Rename perf_evlist__set_filter* to perf_evlist__set_tp_filter*

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To better reflect that this is a tracepoint filter, as opposed, for instance to map based BPF filters. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-9138svli6ddcphrr3ymy9...@git.kernel.org Sig

[PATCH 02/28] perf augmented_syscalls: Filter on a hard coded pid

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Just to show where we'll hook pid based filters, and what we use to obtain the current pid, using a BPF getpid() equivalent. Now we need to remove that hardcoded PID with a BPF hash map, so that we start by filtering 'perf trace's own PID, implement the --filter-pi

[PATCH 13/28] Revert "perf augmented_syscalls: Drop 'write', 'poll' for testing without self pid filter"

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Now that we have the "filtered_pids" logic in place, no need to do this rough filter to avoid the feedback loop from 'perf trace's own syscalls, revert it. This reverts commit 7ed71f124284359676b6496ae7db724fee9da753. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri O

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

2018-11-21 Thread Arnaldo Carvalho de Melo
merged. - Arnaldo Test results at the end of this message, as usual. The following changes since commit b1a9d7b0190119dad5b9b7841751b5a7586bbc8b: Merge tag 'perf-urgent-for-mingo-4.20-20181121' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent (2018-11-21 15:5

[PATCH 05/28] perf bpf: Add simple pid_filter class accessible to BPF proggies

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Will be used in the augmented_raw_syscalls.c to implement 'perf trace --filter-pids'. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-9sybmz4vchlbpqwx2am13...@git.kernel.org Signed-off-by: Arnal

[PATCH 11/28] perf trace: Fill in BPF "filtered_pids" map when present

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This makes the augmented_syscalls support the --filter-pids and auto-filtered feedback loop pids just like when working without BPF, i.e. with just raw_syscalls:sys_{enter,exit} and tracepoint filters. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung

[PATCH 10/28] perf trace: See if there is a map named "filtered_pids"

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Lookup for the first map named "filtered_pids" and, if augmenting syscalls, i.e. if a BPF event is present and the "__augmented_syscalls__" is present, then fill in that map with the pids to filter, be it feedback loop ones (perf trace's pid, its father if it is "ss

[PATCH 09/28] perf trace: Add "_from_option" suffix to trace__set_filter()

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo As we'll need that name for a new function to set filters for both tracepoints and BPF maps for filtering pids. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-mdkck6hf3fnd21rz27662...@git.kerne

[PATCH 07/28] perf augmented_syscalls: Use pid_filter

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Just to test filtering a bunch of pids, now its time to go and get that hooked up in 'perf trace', right after we load the bpf program, if we find a "pids_filtered" map defined, we'll populate it with the filtered pids. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri

[PATCH 04/28] perf bpf: Add defines for map insertion/lookup

2018-11-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Starting with a helper for a basic pid_map(), a hash using a pid as a key. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-gdwvq53wltvq6b3g5tdmh...@git.kernel.org Signed-off-by: Arnaldo Carvalho

Re: [PATCH] procfs: fix the output format in /proc/PID/wchan

2018-11-21 Thread Andrew Morton
On Mon, 19 Nov 2018 19:17:52 +0800 Yafang Shao wrote: > Just add the missing newline. > > ... > > --- a/fs/proc/base.c > +++ b/fs/proc/base.c > @@ -370,11 +370,12 @@ static int proc_pid_wchan(struct seq_file *m, struct > pid_namespace *ns, > wchan = get_wchan(task); > if (wchan && !

Re: [PATCH v4 1/3] kernel.h: disable type-checks in container_of() for Sparse

2018-11-21 Thread Andrew Morton
On Thu, 22 Nov 2018 12:14:20 +0900 Masahiro Yamada wrote: > When I tried to enable BUILD_BUG_ON for Sparse, the kbuild test robot > reported lots of "unknown expression" warnings from container_of(), > which seemed false positive. > > I addressed this in [1], but fixing Sparse is the right thin

Re: [PATCH -next 1/2] mm/memfd: make F_SEAL_FUTURE_WRITE seal more robust

2018-11-21 Thread Andy Lutomirski
On Wed, Nov 21, 2018 at 6:27 PM Andrew Morton wrote: > > On Tue, 20 Nov 2018 13:13:35 -0800 Joel Fernandes > wrote: > > > > > I am Ok with whatever Andrew wants to do, if it is better to squash it > > > > with > > > > the original, then I can do that and send another patch. > > > > > > > > > >

[PATCH v4 3/5] nds32: support denormalized result through FP emulator

2018-11-21 Thread Vincent Chen
Currently, the nds32 FPU dose not support the arithmetic of denormalized number. When the nds32 FPU finds the result of the instruction is a denormlized number, the nds32 FPU considers it to be an underflow condition and rounds the result to an appropriate number. It may causes some loss of precisi

[PATCH v4 3/3] build_bug.h: remove most of dummy BUILD_BUG_ON stubs for Sparse

2018-11-21 Thread Masahiro Yamada
The introduction of these dummy BUILD_BUG_ON stubs dates back to commit 903c0c7cdc21 ("sparse: define dummy BUILD_BUG_ON definition for sparse"). At that time, BUILD_BUG_ON() was implemented with the negative array trick *and* the link-time trick, like this: extern int __build_bug_on_failed;

[PATCH v4 4/5] math-emu/op-2.h: Use statement expressions to prevent negative constant shift

2018-11-21 Thread Vincent Chen
This modification is quoted from glibc 'commit < sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: Moved to> (fe0b1e854ad32a69b260)' Signed-off-by: Vincent Chen --- include/math-emu/op-2.h | 97 ++ 1 files changed, 46 insertions(+), 51 deletions(-

[PATCH v4 2/3] build_bug.h: remove negative-array fallback for BUILD_BUG_ON()

2018-11-21 Thread Masahiro Yamada
The kernel can only be compiled with an optimization option (-O2, -Os, or the currently proposed -Og). Hence, __OPTIMIZE__ is always defined in the kernel source. The fallback for the -O0 case is just hypothetical and pointless. Moreover, commit 0bb95f80a38f ("Makefile: Globally enable VLA warning

[PATCH v4 2/5] nds32: Support FP emulation

2018-11-21 Thread Vincent Chen
The Andes FPU coprocessor does not support denormalized number handling. According to the specification, FPU generates a denorm input exception that requires the kernel to deal with this instrution operation when it encounters denormalized operands. Hence an nds32 FPU ISA emulator in the kernel is

[PATCH v4 5/5] math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning

2018-11-21 Thread Vincent Chen
_FP_ROUND_ZERO is defined as 0 and used as a statemente in macro _FP_ROUND. This generates "error: statement with no effect [-Werror=unused-value]" from gcc. Defining _FP_ROUND_ZERO as (void)0 to fix it. This modification is quoted from glibc 'commit (8ed1e7d5894000c155acbd06f)' Signed-off-by: V

[PATCH v4 1/3] kernel.h: disable type-checks in container_of() for Sparse

2018-11-21 Thread Masahiro Yamada
When I tried to enable BUILD_BUG_ON for Sparse, the kbuild test robot reported lots of "unknown expression" warnings from container_of(), which seemed false positive. I addressed this in [1], but fixing Sparse is the right thing to do. The issue was fixed by Sparse commit 0eb8175d3e9c ("fix expan

[PATCH v4 0/5] nds32 FPU port

2018-11-21 Thread Vincent Chen
This patch set contains basic components for supporting the nds32 FPU, such as exception handlers and context switch for FPU registers. By default, the lazy FPU scheme is supported and the user can configure it via CONFIG_LZAY_FPU. In addition, a floating point emulator is required to handle all

[PATCH v4 1/5] nds32: nds32 FPU port

2018-11-21 Thread Vincent Chen
This patch set contains basic components for supporting the nds32 FPU, such as exception handlers and context switch for FPU registers. By default, the lazy FPU scheme is supported and the user can configure it via CONFIG_LZAY_FPU. Signed-off-by: Vincent Chen --- arch/nds32/Kconfig

[PATCH 2/4] arm64: hyperv: Add support for Hyper-V as a hypervisor

2018-11-21 Thread kys
From: Michael Kelley Add ARM64-specific code to enable Hyper-V. This code includes: * Detecting Hyper-V and initializing the guest/Hyper-V interface * Setting up Hyper-V's synthetic clocks * Making hypercalls using the HVC instruction * Setting up VMbus and stimer0 interrupts * Setting up kexec a

[PATCH 3/4] Drivers: hv: vmbus: Add hooks for per-CPU IRQ

2018-11-21 Thread kys
From: Michael Kelley Add hooks to enable/disable a per-CPU IRQ for VMbus. These hooks are in the architecture independent setup and shutdown paths for Hyper-V, and are needed by Linux guests on Hyper-V on ARM64. The x86/x64 implementation is null because VMbus interrupts on x86/x64 don't use an

[PATCH 4/4] Drivers: hv: Enable CONFIG_HYPERV on ARM64

2018-11-21 Thread kys
From: Michael Kelley Update drivers/hv/Kconfig so CONFIG_HYPERV can be selected on ARM64, causing the Hyper-V specific code to be built. Signed-off-by: Michael Kelley Signed-off-by: K. Y. Srinivasan --- drivers/hv/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/d

[PATCH 1/4] arm64: hyperv: Add core Hyper-V include files

2018-11-21 Thread kys
From: Michael Kelley hyperv-tlfs.h defines Hyper-V interfaces from the Hyper-V Top Level Functional Spec (TLFS). The TLFS is distinctly oriented to x86/x64, and Hyper-V has not separated out the architecture-dependent parts into x86/x64 vs. ARM64. So hyperv-tlfs.h includes information for ARM64 t

[PATCH 0/4] Hyper-V: Enable Linux guests on Hyper-V on ARM64

2018-11-21 Thread kys
From: "K. Y. Srinivasan" This series enables Linux guests running on Hyper-V on ARM64 hardware. New ARM64-specific code in arch/arm64/hyperv initializes Hyper-V, including its synthetic clocks and hypercall mechanism. Existing architecture independent drivers for Hyper-V's VMbus and synthetic dev

Re: [PATCH 5/6] drivers: power: suspend: call devfreq suspend/resume

2018-11-21 Thread Chanwoo Choi
Hi, On 2018년 11월 22일 03:01, Lukasz Luba wrote: > Devfreq framework supports suspend of its devices. > Call the the devfreq interface and allow devfreq devices preserve/restore > their states during suspend/resume. > > The patch draws on Tobias Jakobi's work posted ~2 years ago, who tried to > sol

Re: [PATCH 6/6] arm: dts: exynos4: set opp-suspend for DMC and leftbus

2018-11-21 Thread Chanwoo Choi
Hi, On 2018년 11월 22일 03:01, Lukasz Luba wrote: > Mark the state for devfreq device while entring suspend/resume process. > > The patch draws on Tobias Jakobi's work posted ~2 years ago, who tried to > solve issue with devfreq device's frequency during suspend/resume. > During the discussion on LK

Re: [PATCH 4/6] devfreq: add devfreq_suspend/resume() functions

2018-11-21 Thread Chanwoo Choi
Hi, On 2018년 11월 22일 03:01, Lukasz Luba wrote: > This patch adds implementation for global suspend/resume for > devfreq framework. System suspend will next use these functions. > > The patch draws on Tobias Jakobi's work posted ~2 years ago, who tried to > solve issue with devfreq device's freque

Re: [PATCH 2/6] lib/lzo: enable 64-bit CTZ on Arm

2018-11-21 Thread Markus F.X.J. Oberhumer
On 2018-11-21 18:31, Christoph Hellwig wrote: >> #define LZO_USE_CTZ32 1 >> #elif defined(__i386__) || defined(__powerpc__) >> #define LZO_USE_CTZ32 1 >> -#elif defined(__arm__) && (__LINUX_ARM_ARCH__ >= 5) >> +#elif defined(__arm__) >> +#if (__LINUX_ARM_ARCH__ >= 5) >> #define LZO_

[PATCH 2/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-11-21 Thread Wesley Sheng
From: Paul Selles Current Switchtec's BAR setup registers are limited to 32bits, corresponding to the maximum MW (memory window) size is <4G. Increase the MW sizes with the addition of the BAR Setup Extension Register for the upper 32bits of a 64bits MW size. This increases the MW range to betwe

[PATCH 1/3] ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers

2018-11-21 Thread Wesley Sheng
From: Paul Selles Switchtec NTB crosslink BARs are 64bit addressed but they are printed as 32bit addressed BARs. Fix debug log to increment the BAR numbers by 2 to reflect the 64bit address alignment. Signed-off-by: Paul Selles Signed-off-by: Wesley Sheng --- drivers/ntb/hw/mscc/ntb_hw_switch

[PATCH 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-11-21 Thread Wesley Sheng
Hi, Everyone, This patch series adds support of >=4G memory windows. Current Switchtec's BAR setup registers are limited to 32bits, corresponding to the maximum MW (memory window) size is <4G. Increase the MW sizes with the addition of the BAR Setup Extension Register for the upper 32bits of a 64

[PATCH v8 1/2] perf, uncore: Adding documentation for ThunderX2 pmu uncore driver

2018-11-21 Thread Kulkarni, Ganapatrao
The SoC has PMU support in its L3 cache controller (L3C) and in the DDR4 Memory Controller (DMC). Signed-off-by: Ganapatrao Kulkarni --- Documentation/perf/thunderx2-pmu.txt | 106 +++ 1 file changed, 106 insertions(+) create mode 100644 Documentation/perf/thunderx2-pmu.

[PATCH 3/3] ntb_hw_switchtec: NT req id mapping table register entry number should be 512

2018-11-21 Thread Wesley Sheng
The number of available NT req id mapping table entries per NTB control register is 512. The driver mistakenly limits the number to 256. Fix the array size of NT req id mapping table. Signed-off-by: Wesley Sheng --- include/linux/switchtec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

RE: [PATCH 0/4] Hyper-V: Enable Linux guests on Hyper-V on ARM64

2018-11-21 Thread KY Srinivasan
> -Original Message- > From: k...@linuxonhyperv.com > Sent: Wednesday, November 21, 2018 6:51 PM > To: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com; Stephen Hemminger ; > Michael Kelle

Re: [PATCH 3/6] devfreq: add support for suspend/resume of a devfreq device

2018-11-21 Thread Chanwoo Choi
On 2018년 11월 22일 03:01, Lukasz Luba wrote: > The patch adds support for handling suspend/resume process. > It uses atomic variables to make sure no race condition > affects the process. > > The patch draws on Tobias Jakobi's work posted ~2 years ago, who tried to > solve issue with devfreq device'

[PATCH] ARM: dts: imx6sll-evk: use WDOG_B pin reset

2018-11-21 Thread Anson Huang
i.MX6SLL EVK board has WDOG_B pin connected to the PMIC; Add the WDOG_B pinctrl entry and 'fsl,ext-reset-output' property to wdog node to let watchdog trigger a system POR reset via the PMIC. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll-evk.dts | 12 1 file changed, 12

Re: [PATCH 2/6] devfreq: refactor set_target frequency function

2018-11-21 Thread Chanwoo Choi
On 2018년 11월 22일 11:52, Chanwoo Choi wrote: > On 2018년 11월 22일 03:01, Lukasz Luba wrote: >> The refactoring is needed for the new client in devfreq: suspend. >> To avoid code duplication, move it to the new local function >> devfreq_set_target. >> >> The patch draws on Tobias Jakobi's work posted ~

Re: [PATCH 2/6] devfreq: refactor set_target frequency function

2018-11-21 Thread Chanwoo Choi
On 2018년 11월 22일 03:01, Lukasz Luba wrote: > The refactoring is needed for the new client in devfreq: suspend. > To avoid code duplication, move it to the new local function > devfreq_set_target. > > The patch draws on Tobias Jakobi's work posted ~2 years ago, who tried to > solve issue with devfr

[PATCH 0/4] Hyper-V: Enable Linux guests on Hyper-V on ARM64

2018-11-21 Thread kys
From: "K. Y. Srinivasan" This series enables Linux guests running on Hyper-V on ARM64 hardware. New ARM64-specific code in arch/arm64/hyperv initializes Hyper-V, including its synthetic clocks and hypercall mechanism. Existing architecture independent drivers for Hyper-V's VMbus and synthetic dev

Re: [RFC PATCH] of: make MAX_RESERVED_REGIONS configurable

2018-11-21 Thread Miles Chen
On Wed, 2018-11-21 at 10:39 -0600, Rob Herring wrote: > On Wed, Nov 21, 2018 at 2:11 AM wrote: > > > > From: Miles Chen > > > > When we use more than 32 entries in /resered-memory, > > there will be an error message: "not enough space all defined regions.". > > We can increase MAX_RESERVED_REGION

Re: [PATCH v5 2/2] PCI: amlogic: Add the Amlogic Meson PCIe controller driver

2018-11-21 Thread Hanjie Lin
On 2018/11/17 1:49, Lorenzo Pieralisi wrote: > On Tue, Oct 09, 2018 at 09:53:10AM +0800, Hanjie Lin wrote: >> From: Yue Wang >> >> The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare >> PCI core. This patch adds the driver support for Meson PCIe controller. >> >> Signed-o

Re: [PATCH 1/6] devfreq: add basic fileds supporting suspend functionality

2018-11-21 Thread Chanwoo Choi
Hi, On 2018년 11월 22일 03:01, Lukasz Luba wrote: > The patch prepares devfreq device for handling suspend/resume functionality. > The new fields will store needed information during this process. > Devfreq framework handles opp-suspend DT entry and there is no need of > modyfications in the drivers

[PATCH] firmware: qcom: scm: fix compilation error when disabled

2018-11-21 Thread Jonathan Marek
This fixes the case when CONFIG_QCOM_SCM is not enabled, and linux/errno.h has not been included previously. Signed-off-by: Jonathan Marek --- drm/msm includes qcom_scm.h, but can be used with non-qcom hw (IMX5) include/linux/qcom_scm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc

RE: [PATCH V4 1/1] can: flexcan: add self wakeup support

2018-11-21 Thread Aisheng DONG
[...] > + > +static int __maybe_unused flexcan_noirq_suspend(struct device *device) > +{ > + struct net_device *dev = dev_get_drvdata(device); > + struct flexcan_priv *priv = netdev_priv(dev); > + > + if (netif_running(dev) && device_may_wakeup(device)) > + flexcan_enable_w

Re: [patch 24/24] x86/speculation: Add seccomp Spectre v2 app to app protection mode

2018-11-21 Thread Tim Chen
On Wed, Nov 21, 2018 at 09:14:54PM +0100, Thomas Gleixner wrote: > From: Jiri Kosina > > If 'prctl' mode of app2app protection from spectre v2 is selected on the > kernel command-line, STIBP and IBPB are applied on tasks which restrict > their indirect branch speculation via prctl. > > SECCOMP e

Re: [RFC PATCH 3/3] mm, fault_around: do not take a reference to a locked page

2018-11-21 Thread Hugh Dickins
On Wed, 21 Nov 2018, Michal Hocko wrote: > On Tue 20-11-18 17:47:21, Hugh Dickins wrote: > > On Tue, 20 Nov 2018, Michal Hocko wrote: > > > > > From: Michal Hocko > > > > > > filemap_map_pages takes a speculative reference to each page in the > > > range before it tries to lock that page. While

Re: [PATCH -next 1/2] mm/memfd: make F_SEAL_FUTURE_WRITE seal more robust

2018-11-21 Thread Andrew Morton
On Tue, 20 Nov 2018 13:13:35 -0800 Joel Fernandes wrote: > > > I am Ok with whatever Andrew wants to do, if it is better to squash it > > > with > > > the original, then I can do that and send another patch. > > > > > > > > > > From experience, Andrew will food in fixups on request :) > > A

Re: [PATCH 05/14] clocksource/drivers/timer-milbeaut: Add Milbeaut M10V timer

2018-11-21 Thread Sugaya, Taichi
Hi Daniel Thank you for your comments. On 2018/11/21 19:08, Daniel Lezcano wrote: Hi Sugaya, On 19/11/2018 02:01, Sugaya Taichi wrote: Add Milbeaut M10V timer using 32bit timer in peripheral. Give a better description of the timer as it is new timer introduced. I got it. Add more descript

Re: [PATCH] ptrace: take into account saved_sigmask in PTRACE_{GET,SET}SIGMASK

2018-11-21 Thread Andrew Morton
On Mon, 19 Nov 2018 22:06:16 -0800 Andrei Vagin wrote: > There are a few system calls (pselect, ppoll, etc) which replace a task > sigmask while they are running in a kernel-space > > When a task calls one of these syscalls, the kernel saves a current > sigmask in task->saved_sigmask and sets a

Re: [patch 20/24] x86/speculation: Split out TIF update

2018-11-21 Thread Tim Chen
On Wed, Nov 21, 2018 at 09:14:50PM +0100, Thomas Gleixner wrote: > +static void task_update_spec_tif(struct task_struct *tsk, int tifbit, bool > on) > { > bool update; > > + if (on) > + update = !test_and_set_tsk_thread_flag(tsk, tifbit); > + else > + update

Re: [PATCH 4/6] zram: support idle page writeback

2018-11-21 Thread Sergey Senozhatsky
On (11/21/18 05:34), Minchan Kim wrote: > > > > Just a thought, > > > > I wonder if it will make sense (and if it will be possible) to writeback > > idle _compressed_ objects. Right now we decompress, say, a perfectly > > fine 400-byte compressed object to a PAGE_SIZE-d object and then push > > i

Re: [PATCH v5 1/2] dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller

2018-11-21 Thread Hanjie Lin
On 2018/11/20 4:12, Martin Blumenstingl wrote: > Hello Hanjie, Hello Yue, > > sorry for being late with my comment > > On Tue, Oct 9, 2018 at 3:53 AM Hanjie Lin wrote: >> >> From: Yue Wang >> >> The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare >> PCI core. This patc

Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-21 Thread Li Zhijian
ping This patch is to fix initrd cannot be extracted properly in some cases. Thanks On 11/16/2018 03:12 PM, Li Zhijian wrote: Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare a basic

[PATCH v2 4/9] drm/msm: use contiguous vram for MSM_BO_SCANOUT when possible

2018-11-21 Thread Jonathan Marek
Makes it possible to have MMU for GPU but not display. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/msm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c index d97f6ecb0531..6657453a3a58 100644 --- a/d

[PATCH v2 5/9] drm/msm: add headless gpu device (for imx5)

2018-11-21 Thread Jonathan Marek
This patch allows using drm/msm without qcom display hardware. This is especially useful for iMX5 hardware, which has a a2xx GPU but uses the imx-drm driver for display. Signed-off-by: Jonathan Marek --- v2: added commit message and removed unnecessary comment drivers/gpu/drm/msm/Kconfig

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