Re: [PATCH v6 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-28 Thread Wanpeng Li
2017-06-28 22:11 GMT+08:00 Paolo Bonzini : > > > On 28/06/2017 16:09, Wanpeng Li wrote: >>> Yes, this was my question essentially. I would still migrate >>> nested_apf_token (as part of nested virt state), and then clear it in >>> KVM when doing the async-pf broadcast. >> Do you mean I should save

Re: [PATCH] selftests: net: use LDLIBS instead of LDFLAGS to link against libnuma

2017-06-28 Thread Shuah Khan
On 06/28/2017 05:19 AM, Fathi Boudra wrote: > reuseport_bpf_numa fails to build with undefined reference: > > aarch64-linaro-linux-gcc > --sysroot=/build/tmp-rpb-glibc/sysroots/hikey -Wall > -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -Wl,-O1 > -Wl,--hash-style=gnu -Wl,--as-needed -l

[GIT PULL] Please pull NFS client fixes for 4.12

2017-06-28 Thread Trond Myklebust
Hi Linus, The following changes since commit 3c2993b8c6143d8a5793746a54eba8f86f95240f: Linux 4.12-rc4 (2017-06-04 16:47:43 -0700) are available in the git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-4.12-3 for you to fetch changes up to 2e31b4cb895ae7

Re: [PATCH 1/1] selftests: timers: use LDLIBS instead of LDFLAGS to link against libpthread

2017-06-28 Thread Shuah Khan
On 06/28/2017 03:18 AM, Fathi Boudra wrote: > timers test fails to build due to undefined reference: > > aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey > -O2 -pipe -g -feliminate-unused-debug-types -O3 -Wl,-no-as-needed -Wall > -DKTEST -Wl,-O1 -Wl,--hash-style=gnu -Wl,-

Re: [PATCH v6 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-28 Thread Paolo Bonzini
On 28/06/2017 16:17, Wanpeng Li wrote: >> If for now we can leave out the GET/SET_VCPU_EVENTS changes, that would >> be best. nested_apf and nested_apf_token should be migrated together >> with the rest of the nested virt state. > Radim explains why we at least needs nested_apf here: > >> neste

Re: [PATCH 00/32] tracing: Inter-event (e.g. latency) support

2017-06-28 Thread Masami Hiramatsu
Hi Tom, On Mon, 26 Jun 2017 17:49:01 -0500 Tom Zanussi wrote: > This patchset adds support for 'inter-event' quantities to the trace > event subsystem. The most important example of inter-event quantities > are latencies, or the time differences between two events. > Thank you for your great

[gpu-drm-radeon] question about potential dead code in vce_v2_0_enable_mgcg()

2017-06-28 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1198635 I ran into the following piece of code at drivers/gpu/drm/radeon/vce_v2_0.c:107: 107void vce_v2_0_enable_mgcg(struct radeon_device *rdev, bool enable) 108{ 109bool sw_cg = false; 110 111if (enable && (rdev->cg_flags & RA

Re: [PATCH 0/3] kselftest build errors

2017-06-28 Thread Shuah Khan
On 06/28/2017 02:30 AM, Fathi Boudra wrote: > On 23 June 2017 at 22:44, Shuah Khan wrote: >> On 06/23/2017 04:37 AM, Marcin Nowakowski wrote: >>> This patch series fixes build errors observed when building net, memfd, >>> gpio and intel_pstate tests >>> >>> Marcin Nowakowski (3): >>> selftests/

Re: [PATCH v6 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-28 Thread Wanpeng Li
2017-06-28 22:20 GMT+08:00 Paolo Bonzini : > > > On 28/06/2017 16:17, Wanpeng Li wrote: >>> If for now we can leave out the GET/SET_VCPU_EVENTS changes, that would >>> be best. nested_apf and nested_apf_token should be migrated together >>> with the rest of the nested virt state. >> Radim explains

[PATCH] hwmon/ltc2990: Support all modes of operation

2017-06-28 Thread Mike Looijmans
The LTC2990 driver so far only supported "current" monitoring. This expands the driver to support all 8 modes of operation as defined in the mode bits in the datasheet, thus the device can now be used to monitor up to 4 voltages, 2 currents, or 2 temperature sensors, and some combinations thereof.

Re: [PATCH 4/4] arm64: dts: add RK3399-Q7 (Puma) SoM

2017-06-28 Thread Klaus Goger
Hi Shawn, > On 28 Jun 2017, at 14:41, Shawn Lin wrote: > > Hi > > On 2017/6/28 18:26, Heiko Stübner wrote: >> Hi Klaus, >> >> [added Kever from Rockchip concerning the cluster1-opps below] >> >> >> Am Montag, 26. Juni 2017, 21:18:54 CEST schrieb Klaus Goger: >>> The RK3399-Q7 SoM is a Qseven

[PATCH] perf Documentation: branch_type event parameter

2017-06-28 Thread kan . liang
From: Kan Liang There is no document for earlier patch. commit ac12f6764c50 ("perf tools: Implement branch_type event parameter") Document the branch_type event parameter. Signed-off-by: Kan Liang --- tools/perf/Documentation/perf-record.txt | 3 +++ 1 file changed, 3 insertions(+) diff --gi

Re: [PATCH] thermal: Fix improper clock_cooling header guard

2017-06-28 Thread Waldemar Rymarkiewicz
On 8 June 2017 at 17:47, Waldemar Rymarkiewicz wrote: > Most likely copy-paste mistake, so replace __CPU_COOLING_H__ header guard > with more suitable __CLOCK_COOLING_H__. > > Signed-off-by: Waldemar Rymarkiewicz > --- > include/linux/clock_cooling.h | 6 +++--- > 1 file changed, 3 insertions(+)

Re: [PATCH] thp, mm: Fix crash due race in MADV_FREE handling

2017-06-28 Thread Dave Hansen
I came up with the exact same patch. For posterity, here's the test case, generated by syzkaller and trimmed down by Reinette: https://www.sr71.net/~dave/intel/log2.c And the config that helps detect this: https://www.sr71.net/~dave/intel/config-log2 Acked-by: Dave Hansen

Re: [PATCH v3] KVM: LAPIC: Fix lapic timer injection delay

2017-06-28 Thread Wanpeng Li
2017-06-28 20:10 GMT+08:00 Paolo Bonzini : > > > On 28/06/2017 03:29, Wanpeng Li wrote: >> u64 tscdeadline = apic->lapic_timer.tscdeadline; >> + int ret = 0; >> >> if ((atomic_read(&apic->lapic_timer.pending) && >> !apic_lvtt_period(apic)) || >> - kvm_x86_o

Re: [PATCH 0/3] Enable namespaced file capabilities

2017-06-28 Thread Serge E. Hallyn
Quoting Amir Goldstein (amir7...@gmail.com): > On Wed, Jun 28, 2017 at 8:41 AM, Serge E. Hallyn wrote: > > Hi Amir, > > > > I was liking the prefix at first, but I'm actually not sure it's worth > > it. THe main advantage would be so that checking for namespace or other > > tags could be done alw

Re: [PATCH] kernel/watchdog: fix spurious hard lockups

2017-06-28 Thread Michal Hocko
On Wed 28-06-17 13:24:08, Liang, Kan wrote: > > > > From: Kan Liang > > > > > > Some users reported spurious NMI watchdog timeouts. > > > > > > We now have more and more systems where the Turbo range is wide > > enough > > > that the NMI watchdog expires faster than the soft watchdog timer that >

Re: [PATCH v2 2/2] drivers/watchdog: ASPEED reference dev tree properties for config

2017-06-28 Thread Christopher Bostic
On 6/28/17 6:31 AM, Guenter Roeck wrote: On 06/27/2017 02:17 PM, Christopher Bostic wrote: Reference the system device tree when configuring the watchdog engines. Set external signal mode on timeout if specified. Set system reset on timeout if specified. Signed-off-by: Christopher Bostic --

Re: [PATCH] selftests: ftrace: Use md5sum to take less time of checking logs

2017-06-28 Thread Shuah Khan
On 06/28/2017 08:17 AM, Steven Rostedt wrote: > On Tue, 27 Jun 2017 19:28:32 +0900 > Masami Hiramatsu wrote: > >> Use md5sum so that it takes less time of checking >> trace logs update. Since busybox tail/cat takes too >> long time to read the trace log, this uses md5sum >> to check whether trace

Re: [PATCH v3] KVM: LAPIC: Fix lapic timer injection delay

2017-06-28 Thread Paolo Bonzini
On 28/06/2017 16:27, Wanpeng Li wrote: > 2017-06-28 20:10 GMT+08:00 Paolo Bonzini : >> >> >> On 28/06/2017 03:29, Wanpeng Li wrote: >>> u64 tscdeadline = apic->lapic_timer.tscdeadline; >>> + int ret = 0; >>> >>> if ((atomic_read(&apic->lapic_timer.pending) && >>> !ap

RE: [PATCH] kernel/watchdog: fix spurious hard lockups

2017-06-28 Thread Liang, Kan
> > > > From: Kan Liang > > > > > > > > Some users reported spurious NMI watchdog timeouts. > > > > > > > > We now have more and more systems where the Turbo range is wide > > > enough > > > > that the NMI watchdog expires faster than the soft watchdog timer > > > > that updates the interrupt tic

[PATCH] perf tools: set no branch type for dummy event in PT

2017-06-28 Thread kan . liang
From: Kan Liang An earlier kernel patch allowed enabling PT and LBR at the same time on Goldmont. commit ccbebba4c6bf ("perf/x86/intel/pt: Bypass PT vs. LBR exclusivity if the core supports it") However, users still cannot use Intel PT and LBRs simultaneously. $ sudo perf record -e cycles,in

Re: [PATCH 1/2] dma-coherent: remove the DMA_MEMORY_INCLUDES_CHILDREN flag

2017-06-28 Thread Robin Murphy
On 27/06/17 21:17, Christoph Hellwig wrote: > This flag was never implemented or used. And at worst, we can always bring it back. Reviewed-by: Robin Murphy > Signed-off-by: Christoph Hellwig > --- > Documentation/DMA-API.txt | 4 > drivers/base/dma-coherent.c | 2 -- > drivers/char

Re: [PATCH] arch: remove unused macro/function thread_saved_pc()

2017-06-28 Thread Geert Uytterhoeven
On Wed, Jun 28, 2017 at 3:30 PM, Tobias Klauser wrote: > The only user of thread_saved_pc() in non-arch-specific code was removed > in commit 8243d5597793 ("sched/core: Remove pointless printout in > sched_show_task()"). Remove the implementations as well. > > Some architectures use thread_saved_p

Re: [PATCH][iio-next] iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static

2017-06-28 Thread Fabrice Gasnier
On 06/28/2017 03:06 PM, Colin King wrote: > From: Colin Ian King > > The array stm32h7_adc_ckmodes_spec does not need to be in global scope, so > make it static. > > Cleans up sparse warning: > "symbol 'stm32h7_adc_ckmodes_spec' was not declared. Should it be static?" > > Signed-off-by: Colin I

Re: [PATCH] selftests: net: use LDLIBS instead of LDFLAGS to link against libnuma

2017-06-28 Thread Fathi Boudra
On 28 June 2017 at 17:19, Shuah Khan wrote: > On 06/28/2017 05:19 AM, Fathi Boudra wrote: >> reuseport_bpf_numa fails to build with undefined reference: >> >> aarch64-linaro-linux-gcc >> --sysroot=/build/tmp-rpb-glibc/sysroots/hikey -Wall >> -Wl,--no-as-needed -O2 -g -I../../../../usr/include/

Re: [media] uvcvideo: Prevent heap overflow in uvc driver

2017-06-28 Thread Guenter Roeck
On Mon, May 22, 2017 at 12:48:04PM -0700, Guenter Roeck wrote: > From: Robb Glasser > > The size of uvc_control_mapping is user controlled leading to a > potential heap overflow in the uvc driver. This adds a check to verify > the user provided size fits within the bounds of the defined buffer >

Re: [PATCH 1/1] selftests: timers: use LDLIBS instead of LDFLAGS to link against libpthread

2017-06-28 Thread Fathi Boudra
On 28 June 2017 at 17:20, Shuah Khan wrote: > On 06/28/2017 03:18 AM, Fathi Boudra wrote: >> timers test fails to build due to undefined reference: >> >> aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey >> -O2 -pipe -g -feliminate-unused-debug-types -O3 -Wl,-no-as-needed -W

Re: [PATCH 1/1] selftests: timers: use LDLIBS instead of LDFLAGS to link against libpthread

2017-06-28 Thread Shuah Khan
On 06/28/2017 08:37 AM, Fathi Boudra wrote: > On 28 June 2017 at 17:20, Shuah Khan wrote: >> On 06/28/2017 03:18 AM, Fathi Boudra wrote: >>> timers test fails to build due to undefined reference: >>> >>> aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey >>> -O2 -pipe -g -fel

The security about KSM and "adds all memory pages from all processes to KSM"

2017-06-28 Thread Mark
Hi Hugh and experts, We are trying to enable KSM in a multi-container projects to save some memory. And as the celld project suggests: "To maximize the benefit of KSM, CellD uses a custom system call which adds all memory pages from all processes to the set of pages KSM attempts to merge. " [1]

Re: [PATCH 2/2] dma-coherent: remove the DMA_MEMORY_MAP and DMA_MEMORY_IO flags

2017-06-28 Thread Robin Murphy
On 27/06/17 21:17, Christoph Hellwig wrote: > DMA_MEMORY_IO was never used in the tree, so remove it. That means there is > no need for the DMA_MEMORY_MAP flag either now, so remove it as well and > change dma_declare_coherent_memory to return a normal errno value. > > Signed-off-by: Christoph He

Re: [PATCH] slub: make sysfs file removal asynchronous

2017-06-28 Thread Christoph Lameter
On Tue, 20 Jun 2017, Tejun Heo wrote: > And we have to weight that against the possibility of breakage from > the backport, however low it may be, right? I'm not strongly > convinced either way on this one and AFAICS the slub sysfs files there > are mostly for debugging, so we'd be risking breaka

Re: [PATCH v2 0/8] PM / Domains: Bunch of small improvements and fixes

2017-06-28 Thread Krzysztof Kozlowski
On Wed, Jun 28, 2017 at 12:51:45AM +0200, Rafael J. Wysocki wrote: > On Monday, June 12, 2017 05:17:40 PM Krzysztof Kozlowski wrote: > > Hi, > > > > Changes since v1: > > = > > 1. Patch 2/8: Follow Ulf's advice and use genpd_lookup_dev() which also > >solves risk of calling thi

Re: [PATCH] staging: speakup: make function ser_to_dev static

2017-06-28 Thread walter harms
Am 28.06.2017 15:13, schrieb Colin King: > From: Colin Ian King > > The helper function ser_to_dev does not need to be in global scope, so > make it static. > > Cleans up sparse warning: > "warning: symbol 'ser_to_dev' was not declared. Should it be static?" > > Signed-off-by: Colin Ian King

Re: [PATCH v2 3/3] hwmon: ltc2990: support all measurement modes

2017-06-28 Thread Mike Looijmans
On 17-11-16 17:56, Guenter Roeck wrote: On 11/17/2016 04:10 AM, Tom Levens wrote: Updated version of the ltc2990 driver which supports all measurement modes available in the chip. The mode can be set through a devicetree attribute. property Signed-off-by: Tom Levens --- Changes since v1:

Re: [PATCH v2 2/2] drivers/watchdog: ASPEED reference dev tree properties for config

2017-06-28 Thread Guenter Roeck
On Wed, Jun 28, 2017 at 09:29:50AM -0500, Christopher Bostic wrote: > > > On 6/28/17 6:31 AM, Guenter Roeck wrote: > >On 06/27/2017 02:17 PM, Christopher Bostic wrote: > >>Reference the system device tree when configuring the watchdog > >>engines. Set external signal mode on timeout if specified

Re: [PATCH] phy: cpcap-usb: remove a stray tab

2017-06-28 Thread Tony Lindgren
* Dan Carpenter [170628 05:20]: > This line was indented further that it should have been. > > Signed-off-by: Dan Carpenter Thanks for fixing it: Acked-by: Tony Lindgren > diff --git a/drivers/phy/motorola/phy-cpcap-usb.c > b/drivers/phy/motorola/phy-cpcap-usb.c > index 9b63efa5ae4d..accaaa

[PATCH] scsi: hisi_sas: optimise DMA slot memory

2017-06-28 Thread John Garry
From: Xiaofei Tan Currently we allocate 3 sets of DMA memories from separate pools for each slot. This is inefficient in terms of memory usage (buffers are less than 1 page in size, so we lose due to alignment), and also time spend in doing 3 allocations + de-allocations per slot, instead of 1.

Re: [PATCH v2 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-06-28 Thread Christopher Bostic
On 6/27/17 5:07 PM, Guenter Roeck wrote: On Tue, Jun 27, 2017 at 04:42:24PM -0500, Christopher Bostic wrote: On 6/27/17 4:32 PM, Guenter Roeck wrote: On Tue, Jun 27, 2017 at 04:17:33PM -0500, Christopher Bostic wrote: Describe device tree optional properties: * aspeed,arm-reet - ARM CPU

Re: [PATCH 4/8] usb: bdc: Small code cleanup

2017-06-28 Thread Al Cooper
On Wed, Jun 28, 2017 at 4:47 AM, David Laight wrote: >> >> temp = bdc_readl(bdc->regs, BDC_BDCSC); >> if ((temp & BDC_P64) && >> !dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64))) { >> - dev_dbg(bdc->dev, "Using 64-bit address\n"); >> + dev

[PATCH v3 1/8] PM / Domains: Constify genpd pointer

2017-06-28 Thread Krzysztof Kozlowski
Mark pointer to struct generic_pm_domain const (either passed in argument or used localy in a function), whenever it is not modifed by the function itself. Signed-off-by: Krzysztof Kozlowski Acked-by: Ulf Hansson --- drivers/base/power/domain.c | 17 ++--- 1 file changed, 10 inserti

[PATCH v3 4/8] PM / Domains: Fix unsafe iteration over modified list of domain providers

2017-06-28 Thread Krzysztof Kozlowski
of_genpd_del_provider() iterates over list of domain provides and removes matching element thus it has to use safe version of list iteration. Fixes: aa42240ab254 ("PM / Domains: Add generic OF-based PM domain look-up") Cc: Signed-off-by: Krzysztof Kozlowski Acked-by: Ulf Hansson --- drivers/ba

[PATCH v3 7/8] PM / Domains: Add lockdep asserts for domains list mutex

2017-06-28 Thread Krzysztof Kozlowski
Add lockdep checks for holding mutex protecting the list of domains. This might expose misuse even though only file-scope functions use it for now. Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/domain.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/base/power/doma

[PATCH v3 6/8] PM / Domains: Fix missing default_power_down_ok comment

2017-06-28 Thread Krzysztof Kozlowski
Commit fc5cbf0c94b6 ("PM / Domains: Support for multiple states") split out some code out of default_power_down_ok() function so the documentation has to be moved to appropriate place. Signed-off-by: Krzysztof Kozlowski Acked-by: Ulf Hansson --- drivers/base/power/domain_governor.c | 12 ++-

Re: [PATCH] hwmon/ltc2990: Support all modes of operation

2017-06-28 Thread Guenter Roeck
On Wed, Jun 28, 2017 at 04:17:50PM +0200, Mike Looijmans wrote: > The LTC2990 driver so far only supported "current" monitoring. This expands > the driver to support all 8 modes of operation as defined in the mode bits > in the datasheet, thus the device can now be used to monitor up to 4 > voltage

✰hello

2017-06-28 Thread gjbikw
good morning summer has arrived it is a chance to buy a Ray Ban sunglasses for your family, only 19.99euro, 13% discount, 2 days to fly to your door web: rbaobt .com 人生无须惊天动地,快乐就好;友谊无须甜言蜜语,想着就好;;朋友无须遍及天下,有你就好

Re: [PATCH 1/4] misc: sram: Allow ARM64 to select SRAM_EXEC

2017-06-28 Thread Mark Rutland
On Tue, Jun 27, 2017 at 11:21:17AM -0700, Florian Fainelli wrote: > On 06/27/2017 10:38 AM, Mark Rutland wrote: > > On Mon, Jun 26, 2017 at 03:32:42PM -0700, Florian Fainelli wrote: > >> Now that ARM64 also has a fncpy() implementation, allow selection > >> SRAM_EXEC for ARM64 as well. > >> > >> Si

[RFC v3 8/8] PM / Domains: Add asserts for PM domain locks

2017-06-28 Thread Krzysztof Kozlowski
Add lockdep checks for holding domain lock in few places where this is required. This might expose misuse even though only file-scope functions use it for now. Regular lockdep asserts can be entirely discarded by preprocessor, however domain code uses mixed type of lock: spinlock or mutex. This

[PATCH v3 3/8] PM / Domains: Fix unsafe iteration over modified list of device links

2017-06-28 Thread Krzysztof Kozlowski
pm_genpd_remove_subdomain() iterates over domain's master_links list and removes matching element thus it has to use safe version of list iteration. Fixes: f721889ff65a ("PM / Domains: Support for generic I/O PM domains (v8)") Cc: Signed-off-by: Krzysztof Kozlowski Acked-by: Ulf Hansson --- dr

[PATCH v3 2/8] PM / Domains: Handle safely genpd_syscore_switch() call on non-genpd device

2017-06-28 Thread Krzysztof Kozlowski
genpd_syscore_switch() had two problems: 1. It silently assumed that device, it is being called for, belongs to generic power domain and used container_of() on its power domain pointer. Such assumption might not be true always. 2. It iterated over list of generic power domains without holdi

[PATCH v3 5/8] PM / Domains: Fix unsafe iteration over modified list of domains

2017-06-28 Thread Krzysztof Kozlowski
of_genpd_remove_last() iterates over list of domains and removes matching element thus it has to use safe version of list iteration. Fixes: 17926551c98a ("PM / Domains: Add support for removing nested PM domains by provider") Cc: Signed-off-by: Krzysztof Kozlowski Acked-by: Ulf Hansson --- dr

Re: [PATCH] selftests: ftrace: Use md5sum to take less time of checking logs

2017-06-28 Thread Steven Rostedt
On Wed, 28 Jun 2017 08:30:24 -0600 Shuah Khan wrote: > On 06/28/2017 08:17 AM, Steven Rostedt wrote: > > On Tue, 27 Jun 2017 19:28:32 +0900 > > Masami Hiramatsu wrote: > > > >> Use md5sum so that it takes less time of checking > >> trace logs update. Since busybox tail/cat takes too > >> long

Re: [PATCH v2 2/2] drivers/watchdog: ASPEED reference dev tree properties for config

2017-06-28 Thread Christopher Bostic
On 6/28/17 9:54 AM, Guenter Roeck wrote: On Wed, Jun 28, 2017 at 09:29:50AM -0500, Christopher Bostic wrote: On 6/28/17 6:31 AM, Guenter Roeck wrote: On 06/27/2017 02:17 PM, Christopher Bostic wrote: Reference the system device tree when configuring the watchdog engines. Set external signa

[PATCH v3 0/8] PM / Domains: Bunch of small improvements and fixes

2017-06-28 Thread Krzysztof Kozlowski
Hi, Changes since v2: = 1. Add Ulf's acks. 2. Re-order patches so the un-acked commits are at the end. Changes since v1: = 1. Patch 2/8: Follow Ulf's advice and use genpd_lookup_dev() which also solves risk of calling this for non-genpd (thus I added Ulf's Re

Re: [PATCH v3 4/4] misc: sram: Allow ARM64 to select SRAM_EXEC

2017-06-28 Thread Mark Rutland
On Fri, Jun 16, 2017 at 05:07:44PM -0700, Florian Fainelli wrote: > Now that ARM64 also has a fncpy() implementation, allow selection > SRAM_EXEC for ARM64 as well. > > Signed-off-by: Florian Fainelli > --- > drivers/misc/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[PATCH] sysctl: don't read uninit memory in deprecated_sysctl_warning()

2017-06-28 Thread Alexander Potapenko
Don't attempt to read the first two elements of name[] unless they were actually copied from the userspace. This bug has been detected by KMSAN. Signed-off-by: Alexander Potapenko --- kernel/sysctl_binary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sysctl_binary

Re: [PATCH 1/1] selftests: timers: use LDLIBS instead of LDFLAGS to link against libpthread

2017-06-28 Thread Fathi Boudra
On 28 June 2017 at 17:41, Shuah Khan wrote: > On 06/28/2017 08:37 AM, Fathi Boudra wrote: >> On 28 June 2017 at 17:20, Shuah Khan wrote: >>> On 06/28/2017 03:18 AM, Fathi Boudra wrote: timers test fails to build due to undefined reference: aarch64-linaro-linux-gcc --sysroot=/build

Re: [PATCH v2 3/3] hwmon: ltc2990: support all measurement modes

2017-06-28 Thread Guenter Roeck
On Wed, Jun 28, 2017 at 04:24:03PM +0200, Mike Looijmans wrote: > On 17-11-16 17:56, Guenter Roeck wrote: > >On 11/17/2016 04:10 AM, Tom Levens wrote: > >>Updated version of the ltc2990 driver which supports all measurement > >>modes available in the chip. The mode can be set through a devicetree

Re: [virtio-dev] Re: [PATCH v11 6/6] virtio-balloon: VIRTIO_BALLOON_F_CMD_VQ

2017-06-28 Thread Michael S. Tsirkin
On Thu, Jun 22, 2017 at 04:40:39PM +0800, Wei Wang wrote: > On 06/21/2017 08:28 PM, Michael S. Tsirkin wrote: > > On Wed, Jun 21, 2017 at 11:28:00AM +0800, Wei Wang wrote: > > > On 06/21/2017 12:18 AM, Michael S. Tsirkin wrote: > > > > On Fri, Jun 09, 2017 at 06:41:41PM +0800, Wei Wang wrote: > > >

Re: [PATCH] staging: speakup: make function ser_to_dev static

2017-06-28 Thread Samuel Thibault
walter harms, on mer. 28 juin 2017 16:49:03 +0200, wrote: > Am 28.06.2017 15:13, schrieb Colin King: > > diff --git a/drivers/staging/speakup/spk_ttyio.c > > b/drivers/staging/speakup/spk_ttyio.c > > index 442f191a017e..ed8e96b06ead 100644 > > --- a/drivers/staging/speakup/spk_ttyio.c > > +++ b/dr

Re: [PATCH] mac80211_hwsim: use dyndbg for debug messages

2017-06-28 Thread Johannes Berg
On Wed, 2017-06-28 at 15:17 +0200, Lubomir Rintel wrote: > The mac80211_hwsim doesn't offer a way to disable the debugging > output. > Unfortunately, it's pretty chatty, dumping a  lot of stuff into the > message buffer. Why is this a problem? It's pretty much a testing tool only, and much of the

Re: [PATCH] mac80211_hwsim: use dyndbg for debug messages

2017-06-28 Thread Johannes Berg
On Wed, 2017-06-28 at 06:37 -0700, Joe Perches wrote: > On Wed, 2017-06-28 at 15:17 +0200, Lubomir Rintel wrote: > > The mac80211_hwsim doesn't offer a way to disable the debugging > > output. > > Unfortunately, it's pretty chatty, dumping a  lot of stuff into the > > message > > buffer. > > > > T

Re: [PATCH] clk: scpi: error when clock fails to register

2017-06-28 Thread Sudeep Holla
On 28/06/17 14:53, Jerome Brunet wrote: > Current implementation of scpi_clk_add just print a warning when clock > fails to register but then keep going as if nothing happened. The > provider is then registered with bogus data. > > This may latter lead to an Oops in __clk_create_clk when > hlist

[PATCH v2 00/52] irqchip: KVM: Add support for GICv4

2017-06-28 Thread Marc Zyngier
Yes, it's been a long time coming, but I really wasn't looking forward to picking this up again. Anyway... This (monster of a) series implements full support for GICv4, bringing direct injection of MSIs to KVM on arm and arm64, assuming you have the right hardware (which is quite unlikely). To ge

[PATCH v2 03/52] irqchip/gic-v3: Add VLPI/DirectLPI discovery

2017-06-28 Thread Marc Zyngier
Add helper functions that probe for VLPI and DirectLPI properties. Reviewed-by: Eric Auger Reviewed-by: Thomas Gleixner Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 22 ++ include/linux/irqchip/arm-gic-v3.h | 3 +++ 2 files changed, 25 insertions(+)

[PATCH v2 07/52] irqchip/gic-v3-its: Implement irq_set_irqchip_state for pending state

2017-06-28 Thread Marc Zyngier
Allow the pending state of an LPI to be set or cleared via irq_set_irqchip_state. Reviewed-by: Thomas Gleixner Reviewed-by: Eric Auger Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 78 1 file changed, 78 insertions(+) diff --git a/

[PATCH v2 01/52] genirq: Let irq_set_vcpu_affinity() iterate over hierarchy

2017-06-28 Thread Marc Zyngier
When assigning an interrupt to a vcpu, it is not unlikely that the level of the hierarchy implementing irq_set_vcpu_affinity is not the top level (think a generic MSI domain on top of a virtualization aware interrupt controller). In such a case, let's iterate over the hierarchy until we find an ir

[PATCH v2 08/52] irqchip/gic-v3-its: Split out property table allocation

2017-06-28 Thread Marc Zyngier
Move the LPI property table allocation into its own function, as this is going to be required for those associated with VMs in the future. Reviewed-by: Eric Auger Reviewed-by: Thomas Gleixner Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 28 ++-- 1

[PATCH v2 27/52] irqchip/gic-v3-its: Support VPE doorbell invalidation even when !DirectLPI

2017-06-28 Thread Marc Zyngier
When we don't have the DirectLPI feature, we must work around the architecture shortcomings to be able to perform the required invalidation. For this, we create a fake device whose sole purpose is to provide a way to issue a map/inv/unmap sequence (and the corresponding sync operations). That's 6

[PATCH v2 35/52] KVM: arm/arm64: vgic: Move kvm_vgic_destroy call around

2017-06-28 Thread Marc Zyngier
The way we call kvm_vgic_destroy is a bit bizarre. We call it *after* having freed the vcpus, which sort of defeats the point of cleaning up things before that point. Let's move kvm_vgic_destroy towards the beginning of kvm_arch_destroy_vm, which seems more sensible. Signed-off-by: Marc Zyngier

[PATCH v2 30/52] irqchip/gic-v4: Add VPE command interface

2017-06-28 Thread Marc Zyngier
Add the required interfaces to schedule a VPE and perform a VINVALL command. Reviewed-by: Thomas Gleixner Reviewed-by: Eric Auger Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v4.c | 25 + include/linux/irqchip/arm-gic-v4.h | 2 ++ 2 files changed, 27 i

[PATCH v2 37/52] KVM: arm/arm64: GICv4: Add init and teardown of the vPE irq domain

2017-06-28 Thread Marc Zyngier
In order to control the GICv4 view of virtual CPUs, we rely on an irqdomain allocated for that purpose. Let's add a couple of helpers to that effect. At the same time, the vgic data structures gain new fields to track all this... erm... wonderful stuff. Signed-off-by: Marc Zyngier --- arch/arm/

[PATCH v2 34/52] irqchip/gic-v3: Advertise GICv4 support to KVM

2017-06-28 Thread Marc Zyngier
As KVM needs to know about the availability of GICv4 to enable direct injection of interrupts, let's advertise the feature in the gic_kvm_info structure. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 2 ++ include/linux/irqchip/arm-gic-common.h | 2 ++ 2 files changed,

[PATCH v2 48/52] KVM: arm/arm64: GICv4: Add doorbell interrupt handling

2017-06-28 Thread Marc Zyngier
When a vPE is not running, the delivery of a VLPI results in a doorbell interrupt to be delivered. Let's handle this interrupt and update the pending_last flag that indicates that VLPIs are pending. Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-v4.c | 30 ++

[PATCH v2 45/52] KVM: arm/arm64: GICv4: Propagate property updates to VLPIs

2017-06-28 Thread Marc Zyngier
Upon updating a property, we propagate it all the way to the physical ITS, and ask for an INV command to be executed there. Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-its.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-it

[PATCH v2 49/52] KVM: arm/arm64: GICv4: Hook vPE scheduling into vgic flush/sync

2017-06-28 Thread Marc Zyngier
The redistributor needs to be told which vPE is about to be run, and tells us whether there is any pending VLPI on exit. Let's add the scheduling calls to the vgic flush/sync functions, allowing the VLPIs to be delivered to the guest. Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-v4.c

[PATCH v2 44/52] KVM: arm/arm64: GICv4: Handle MOVALL applied to a vPE

2017-06-28 Thread Marc Zyngier
The current implementation of MOVALL doesn't allow us to call into the core ITS code as we hold a number of spinlocks. Let's try a method used in other parts of the code, were we copy the intids of the candicate interrupts, and then do whatever we need to do with them outside of the critical secti

Re: [PATCH v2 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-06-28 Thread Guenter Roeck
On Wed, Jun 28, 2017 at 09:55:41AM -0500, Christopher Bostic wrote: > > > On 6/27/17 5:07 PM, Guenter Roeck wrote: > >On Tue, Jun 27, 2017 at 04:42:24PM -0500, Christopher Bostic wrote: > >> > >>On 6/27/17 4:32 PM, Guenter Roeck wrote: > >>>On Tue, Jun 27, 2017 at 04:17:33PM -0500, Christopher Bo

[PATCH v2 41/52] KVM: arm/arm64: GICv4: Unmap VLPI when freeing an LPI

2017-06-28 Thread Marc Zyngier
When freeing an LPI (on a DISCARD command, for example), we need to unmap the VLPI down to the physical ITS level. Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-its.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgi

[PATCH v2 43/52] KVM: arm/arm64: GICv4: Handle CLEAR applied to a VLPI

2017-06-28 Thread Marc Zyngier
Handling CLEAR is pretty easy. Just ask the ITS driver to clear the corresponding pending bit (which will turn into a CLEAR command on the physical side). Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-its.c | 4 1 file changed, 4 insertions(+) diff --git a/virt/kvm/arm/vgic/vgic-i

Re: [PATCH] clocksource: timer-u300: Unmap region and unprepare clk obtained by of_iomap/clk_prepare_enable.

2017-06-28 Thread Linus Walleij
On Wed, Jun 28, 2017 at 9:38 AM, Arvind Yadav wrote: > In case of error at init time, rollback iomapping and unprepare clk. > > Signed-off-by: Arvind Yadav Acked-by: Linus Walleij Yours, Linus Walleij

[PATCH v2 39/52] KVM: arm/arm64: GICv4: Wire mapping/unmapping of VLPIs in VFIO irq bypass

2017-06-28 Thread Marc Zyngier
Let's use the irq bypass mechanism introduced for platform device interrupts to intercept the virtual PCIe endpoint configuration and establish our LPI->VLPI mapping. Signed-off-by: Marc Zyngier --- include/kvm/arm_vgic.h | 8 virt/kvm/arm/arm.c | 27 + virt/kvm/a

[PATCH v2 52/52] KVM: arm/arm64: GICv4: Enable VLPI support

2017-06-28 Thread Marc Zyngier
All it takes is for the has_v4 flag to be set in gic_kvm_info, and we'll enable it... Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-v3.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/virt/kvm/arm/vgic/vgic-v3.c b/virt/kvm/arm/vgic/vgic-v3.c index 96ea597db0e7..fb7bc3b93482 1

[PATCH v2 50/52] KVM: arm/arm64: GICv4: Enable virtual cpuif if VLPIs can be delivered

2017-06-28 Thread Marc Zyngier
In order for VLPIs to be delivered to the guest, we must make sure that the cpuif is always enabled, irrespective of the presence of virtual interrupt in the LRs. Signed-off-by: Marc Zyngier --- virt/kvm/arm/hyp/vgic-v3-sr.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --

Re: [PATCH] scsi: hisi_sas: optimise DMA slot memory

2017-06-28 Thread Frans Klaver
On Wed, Jun 28, 2017 at 5:25 PM, John Garry wrote: > From: Xiaofei Tan > > Currently we allocate 3 sets of DMA memories from separate > pools for each slot. This is inefficient in terms of memory usage > (buffers are less than 1 page in size, so we lose due to alignment), > and also time spend in

Re: [PATCH v2 2/2] drivers/watchdog: ASPEED reference dev tree properties for config

2017-06-28 Thread Guenter Roeck
On Wed, Jun 28, 2017 at 09:59:22AM -0500, Christopher Bostic wrote: > > > On 6/28/17 9:54 AM, Guenter Roeck wrote: > >On Wed, Jun 28, 2017 at 09:29:50AM -0500, Christopher Bostic wrote: > >> > >>On 6/28/17 6:31 AM, Guenter Roeck wrote: > >>>On 06/27/2017 02:17 PM, Christopher Bostic wrote: >

[PATCH v2 51/52] KVM: arm/arm64: GICv4: Use pending_last as a scheduling hint

2017-06-28 Thread Marc Zyngier
When a vPE exits, the pending_last flag is set when there are pending VLPIs stored in the pending table. Similarily, we set this flag when a doorbell interrupt fires, as it indicates the same condition. Let's update kvm_vgic_vcpu_pending_irq() to account for that flag as well, making a vcpu runnab

[PATCH v2 46/52] KVM: arm/arm64: GICv4: Handle INVALL applied to a vPE

2017-06-28 Thread Marc Zyngier
Since when updating the properties one LPI at a time, there is no need to perform an INV each time we read one. Instead, we rely on the final VINVALL that gets sent to the ITS to do the work. Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-its.c | 15 +-- 1 file changed, 9 ins

[PATCH v2 40/52] KVM: arm/arm64: GICv4: Handle INT command applied to a VLPI

2017-06-28 Thread Marc Zyngier
If the guest issues an INT command targetting a VLPI, let's call into the irq_set_irqchip_state() helper to make it pending on the physical side. This works just as well if userspace decides to inject an interrupt using the normal userspace API... Signed-off-by: Marc Zyngier --- virt/kvm/arm/vg

[PATCH v2 47/52] KVM: arm/arm64: GICv4: Propagate VLPI properties at map time

2017-06-28 Thread Marc Zyngier
When the VLPI gets mapped, it must inherit the configuration of LPI configured at the vITS level. FOr that purpose, let's make update_lpi_config globally available and call it just after having performed the VLPI map operation. Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-its.c | 6 ++-

[PATCH v2 38/52] KVM: arm/arm64: GICv4: Wire init/teardown of per-VM support

2017-06-28 Thread Marc Zyngier
Should the HW support GICv4 and an ITS being associated with this VM, let's init the its_vm and its_vpe structures. Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-init.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic/vgic-init.c b/virt/k

[PATCH v2 26/52] irqchip/gic-v3-its: Add VPE interrupt masking

2017-06-28 Thread Marc Zyngier
When masking/unmasking a doorbell interrupt, it is necessary to issue an invalidation to the corresponding redistributor. We use the DirectLPI feature by writting directly to the corresponding redistributor. Reviewed-by: Thomas Gleixner Signed-off-by: Marc Zyngier --- arch/arm/include/asm/arch_

[PATCH v2 32/52] irqchip/gic-v4: Add some basic documentation

2017-06-28 Thread Marc Zyngier
Do a braindump of the way things are supposed to work. Reviewed-by: Thomas Gleixner Reviewed-by: Eric Auger Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v4.c | 71 1 file changed, 71 insertions(+) diff --git a/drivers/irqchip/irq-gic-v4.

[PATCH v2 36/52] KVM: arm/arm64: vITS: Add MSI translation helpers

2017-06-28 Thread Marc Zyngier
The whole MSI injection process is fairly monolithic. An MSI write gets turned into an injected LPI in one swift go. But this is actually a more fine-grained process: - First, a virtual ITS gets selected using the doorbell address - Then the DevID/EventID pair gets translated into an LPI - Finally

[PATCH v2 42/52] KVM: arm/arm64: GICv4: Handle MOVI applied to a VLPI

2017-06-28 Thread Marc Zyngier
When the guest issues a MOVI, we need to tell the physical ITS that we're now targetting a new vcpu. This is done by extracting the current mapping, updating the target, and reapplying the mapping. The core ITS code should do the right thing. Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgi

[PATCH v2 33/52] irqchip/gic-v4: Enable low-level GICv4 operations

2017-06-28 Thread Marc Zyngier
Get the show on the road... Reviewed-by: Thomas Gleixner Signed-off-by: Marc Zyngier --- drivers/irqchip/Makefile | 2 +- drivers/irqchip/irq-gic-v3-its.c | 3 ++- drivers/irqchip/irq-gic-v4.c | 13 + include/linux/irqchip/arm-gic-v4.h | 2 ++ 4 files changed, 1

Re: [PATCH 1/1] selftests: timers: use LDLIBS instead of LDFLAGS to link against libpthread

2017-06-28 Thread Shuah Khan
On 06/28/2017 09:00 AM, Fathi Boudra wrote: > On 28 June 2017 at 17:41, Shuah Khan wrote: >> On 06/28/2017 08:37 AM, Fathi Boudra wrote: >>> On 28 June 2017 at 17:20, Shuah Khan wrote: On 06/28/2017 03:18 AM, Fathi Boudra wrote: > timers test fails to build due to undefined reference: >>

Re: linux-next: build failure after merge of the block tree

2017-06-28 Thread Jens Axboe
On 06/28/2017 08:01 AM, Jens Axboe wrote: > On 06/28/2017 06:43 AM, Jens Axboe wrote: >> On 06/28/2017 02:04 AM, Stephen Rothwell wrote: >>> Hi Jens, >>> >>> After merging the block tree, today's linux-next build (powerpc >>> allnoconfig) failed like this: >>> >>> fs/fcntl.o: In function `do_fcntl'

[PATCH v2 1/8] objtool: move checking code to check.c

2017-06-28 Thread Josh Poimboeuf
In preparation for the new 'objtool undwarf generate' command, which will rely on 'objtool check', move the checking code from builtin-check.c to check.c where it can be used by other commands. Signed-off-by: Josh Poimboeuf Reviewed-by: Jiri Slaby --- tools/objtool/Build

[PATCH v2 3/8] objtool: stack validation 2.0

2017-06-28 Thread Josh Poimboeuf
This is a major rewrite of objtool. Instead of only tracking frame pointer changes, it now tracks all stack-related operations, including all register saves/restores. In addition to making stack validation more robust, this also paves the way for undwarf generation. Signed-off-by: Josh Poimboeuf

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