[PATCHv6 13/19] x86/mm: Make early boot code support boot-time switching of paging modes

2017-08-23 Thread Kirill A. Shutemov
Early boot code, that setup page table should be able to initialize page tables for both 4- and 5-level paging modes. Signed-off-by: Kirill A. Shutemov --- arch/x86/kernel/head64.c | 33 ++--- arch/x86/kernel/head_64.S | 10 -- 2 files changed, 26 insertions(

[PATCHv6 06/19] x86/boot/compressed/64: Detect and handle 5-level paging at boot-time

2017-08-23 Thread Kirill A. Shutemov
This patch prepare decompression code to boot-time switching between 4- and 5-level paging. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/head_64.S | 24 1 file changed, 24 insertions(+) diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/c

[PATCHv6 16/19] x86/mm: Allow to boot without la57 if CONFIG_X86_5LEVEL=y

2017-08-23 Thread Kirill A. Shutemov
All pieces of the puzzle are in place and we can now allow to boot with CONFIG_X86_5LEVEL=y on a machine without la57 support. Kernel will detect that la57 is missing and fold p4d at runtime. Update documentation and Kconfig option description to reflect the change. Signed-off-by: Kirill A. Shut

[PATCHv6 15/19] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-23 Thread Kirill A. Shutemov
This patch converts the of CONFIG_X86_5LEVEL check to runtime checks for p4d folding. Signed-off-by: Kirill A. Shutemov --- arch/x86/mm/fault.c| 2 +- arch/x86/mm/ident_map.c| 2 +- arch/x86/mm/init_64.c | 30 ++ arch/x86/mm/kasan_init_6

[PATCHv6 11/19] x86/mm: Make STACK_TOP_MAX dynamic

2017-08-23 Thread Kirill A. Shutemov
For boot-time switching between paging modes, we need to be able to change STACK_TOP_MAX at runtime. The change is trivial and it doesn't affect kernel image size. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCHv6 05/19] x86/xen: Drop 5-level paging support code from XEN_PV code

2017-08-23 Thread Kirill A. Shutemov
It was decided 5-level paging is not going to be supported in XEN_PV. Let's drop the dead code from XEN_PV code. Signed-off-by: Kirill A. Shutemov Reviewed-by: Juergen Gross Tested-by: Juergen Gross --- arch/x86/xen/mmu_pv.c | 159 +++--- 1 file cha

[PATCHv6 03/19] x86/kasan: Use the same shadow offset for 4- and 5-level paging

2017-08-23 Thread Kirill A. Shutemov
We are going to support boot-time switching between 4- and 5-level paging. For KASAN it means we cannot have different KASAN_SHADOW_OFFSET for different paging modes: the constant is passed to gcc to generate code and cannot be changed at runtime. This patch changes KASAN code to use 0xdc0

[PATCHv6 00/19] Boot-time switching between 4- and 5-level paging

2017-08-23 Thread Kirill A. Shutemov
The basic idea is to implement the same logic as pgtable-nop4d.h provides, but at runtime. Runtime folding is only implemented for CONFIG_X86_5LEVEL=y case. With the option disabled, we do compile-time folding as before. Initially, I tried to fold pgd instread. I've got to shell, but it required

Re: [PATCH 00/13] Introduce IOMMU-API TLB Flushing Interface

2017-08-23 Thread Joerg Roedel
On Thu, Aug 17, 2017 at 05:22:20PM +0200, Joerg Roedel wrote: > What I absolutly don't want is that the whole explicit TLB flushing > of the IOMMU-API (as introduced in this patch-set) is considered some > optional part of the API, as it would be when I just introduce _async > versions of map/unmap

[PATCH 0/4] constify ac97_pcm structures

2017-08-23 Thread Arvind Yadav
ac97_pcm are not supposed to change at runtime. All functions working with ac97_pcm provided by work with const ac97_pcm. So mark the non-const structs as const. Arvind Yadav (4): [PATCH 1/4] ALSA: aaci: constify ac97_pcm structures [PATCH 2/4] ALSA: ac97c: constify ac97_pcm structures [PAT

[PATCH 3/4] ALSA: atiixp: constify ac97_pcm structures

2017-08-23 Thread Arvind Yadav
ac97_pcm are not supposed to change at runtime. All functions working with ac97_pcm provided by work with const ac97_pcm. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/pci/atiixp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/atii

[PATCH 4/4] ALSA: intel8x0: constify ac97_pcm structures

2017-08-23 Thread Arvind Yadav
ac97_pcm are not supposed to change at runtime. All functions working with ac97_pcm provided by work with const ac97_pcm. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/pci/intel8x0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/in

[PATCH 1/4] ALSA: aaci: constify ac97_pcm structures

2017-08-23 Thread Arvind Yadav
ac97_pcm are not supposed to change at runtime. All functions working with ac97_pcm provided by work with const ac97_pcm. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/arm/aaci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/arm/aaci.c

[PATCH 2/4] ALSA: ac97c: constify ac97_pcm structures

2017-08-23 Thread Arvind Yadav
ac97_pcm are not supposed to change at runtime. All functions working with ac97_pcm provided by work with const ac97_pcm. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/atmel/ac97c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/atmel/a

[PATCH v2 00/10] Remove unnecessary function

2017-08-23 Thread Peng Donglin
When calling the function devm_snd_soc_register_card to register a sound card,the address of snd_soc_card will be assigned to dev->driver_data automatically,so there is no extra need to call platform_set_drvdata. Peng Donglin (10): ASoC: s3c24xx_uda134x: Remove unnecessary function call ASoC:

Re: [PATCH 4/4] iommu/pamu: Add support for generic iommu-device

2017-08-23 Thread Michael Ellerman
Joerg Roedel writes: > From: Joerg Roedel > > This patch adds a global iommu-handle to the pamu driver and > initializes it at probe time. Also link devices added to the > iommu to this handle. > > Signed-off-by: Joerg Roedel > --- > drivers/iommu/fsl_pamu.c| 17 + > dr

[PATCH v2 01/10] ASoC: s3c24xx_uda134x: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/samsung/s3c24xx_uda134x.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index 55538e333cc

[PATCH 3/4] workqueue/lockdep: Fix flush_work() annotation

2017-08-23 Thread Peter Zijlstra
The flush_work() annotation as introduced by commit: e159489baa71 ("workqueue: relax lockdep annotation on flush_work()") hits on the lockdep problem with recursive read locks. The situation as described is: Work W1:Work W2:Task: ARR(Q) ARR(Q)

[PATCH 2/4] lockdep/selftests: Add mixed read-write ABBA tests

2017-08-23 Thread Peter Zijlstra
Currently lockdep has limited support for recursive readers, add a few mixed read-write ABBA selftests to show the extend of these limitations. [0.00] [0.00] | spin |wlock

[PATCH 1/4] workqueue: Use TASK_IDLE

2017-08-23 Thread Peter Zijlstra
Workqueues don't use signals, it (ab)uses TASK_INTERRUPTIBLE to avoid increasing the loadavg numbers. We've 'recently' introduced TASK_IDLE for this case: 80ed87c8a9ca ("sched/wait: Introduce TASK_NOLOAD and TASK_IDLE") use it. Signed-off-by: Peter Zijlstra (Intel) --- --- a/kernel/workqueue.

[PATCH v2 02/10] ASoC: mediatek: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650.c| 1 - 3 files cha

Re: [PATCH 3/5] ARC: AXS103: DTS: Add core pll node to manage cpu frequency

2017-08-23 Thread Eugeniy Paltsev
On Tue, 2017-08-22 at 13:45 -0700, Vineet Gupta wrote: > On 08/14/2017 09:12 AM, Eugeniy Paltsev wrote: > > Add core pll node (core_clk) to manage cpu frequency. > > core_clk represents pll itself. > > input_clk represents clock signal source (basically xtal) which > > comes to pll input. > > > >

[PATCH v2 03/10] ASoC: Intel: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- Changes in v2: -add missed occurrences. sound/soc/intel/boards/bytcht_da7213.c | 6 ++ sound/soc/intel/boards/bytcht_es8316.c | 6 ++ sound/soc/intel/boards/

[PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-08-23 Thread Peter Zijlstra
The new completion/crossrelease annotations interact unfavourable with the extant flush_work()/flush_workqueue() annotations. The problem is that when a single work class does: wait_for_completion(&C) and complete(&C) in different executions, we'll build dependencies like: lock_map_acqu

[PATCH v2 04/10] ASoC: atmel: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/atmel/atmel-classd.c | 1 - sound/soc/atmel/atmel-pdmic.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-cl

[PATCH 0/4] workqueue and lockdep stuffs..

2017-08-23 Thread Peter Zijlstra
Hi all, These are the patches I propose to deal with the current workqueue vs lockdep fallout. TJ, if you like 1/4, please pick it up yourself, its completely independent and not really that important. I'll carry the rest to make sure tip/locking stays functional.

[PATCH v2 05/10] ASoC: rockchip: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/rockchip/rk3288_hdmi_analog.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk32

[PATCH v2 06/10] ASoC: mxs-sgtl5000: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/mxs/mxs-sgtl5000.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c index a96276e77

[PATCH v2 07/10] ASoC: qcom: Remove useless function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Acked-by: Banajit Goswami Signed-off-by: Peng Donglin --- sound/soc/qcom/apq8016_sbc.c | 1 - sound/soc/qcom/storm.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sound/soc/qcom/apq8016_sbc.c b/sou

[PATCH v2 08/10] ASoC: sun4i-codec: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/sunxi/sun4i-codec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 150069987c0c..82beeae8edc5 100

[PATCH v2 09/10] ASoC: tegra: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/tegra/tegra_alc5632.c | 1 - sound/soc/tegra/tegra_max98090.c | 1 - sound/soc/tegra/tegra_rt5640.c | 1 - sound/soc/tegra/tegra_rt5677.c | 1 - sound/soc/tegra/teg

gcc-8 objtool warnings

2017-08-23 Thread Arnd Bergmann
Hi Josh, I upgraded the compiler to gcc-8.0.0 (from earlier this week) and into one configuration that produces countless objtool warnings, starting with kernel/panic.o: warning: objtool: nmi_panic()+0x31: sibling call from callable instruction with modified stack frame kernel/panic.o: warning:

[PATCH v2 10/10] ASoC: ux500: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/ux500/mop500.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index ba9fc099cf67..070a6880980e 100644 --- a/sound

Re: [PATCH v3 1/3] dt-bindings: usb: add DT binding for RK3328 dwc3 controller

2017-08-23 Thread wlf
Dear Balbi & Gregkh, 在 2017年08月21日 21:36, William Wu 写道: Adds the device tree bindings description for RK3328 and compatible USB DWC3 controller. Signed-off-by: William Wu --- Changes in v3: - Add this for separate usb dt-bindings patch. Changes in v2: - None Documentation/devicetree/bindi

Re: kvm splat in mmu_spte_clear_track_bits

2017-08-23 Thread Paolo Bonzini
On 22/08/2017 00:32, Adam Borowski wrote: > On Mon, Aug 21, 2017 at 09:58:34PM +0200, Radim Krčmář wrote: >> 2017-08-21 21:12+0200, Adam Borowski: >>> On Mon, Aug 21, 2017 at 09:26:57AM +0800, Wanpeng Li wrote: 2017-08-21 7:13 GMT+08:00 Adam Borowski : > I'm afraid I keep getting a quite r

Re: [PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state

2017-08-23 Thread Imran Khan
On 8/23/2017 2:06 AM, Peter Zijlstra wrote: > On Mon, Aug 21, 2017 at 03:55:53PM +0530, Imran Khan wrote: >> khungtask by default monitors either all tasks or no tasks at all >> for long unterruptible sleeps. >> For Android like environments this arrangement is not optimal because >> on one hand it

Re: [PATCH 3/3] mm: Count list_lru_one::nr_items lockless

2017-08-23 Thread Kirill Tkhai
On 23.08.2017 11:27, Vladimir Davydov wrote: > On Wed, Aug 23, 2017 at 11:00:56AM +0300, Kirill Tkhai wrote: >> On 22.08.2017 22:47, Vladimir Davydov wrote: >>> On Tue, Aug 22, 2017 at 03:29:35PM +0300, Kirill Tkhai wrote: During the reclaiming slab of a memcg, shrink_slab iterates over a

Re: [PATCH][V2][netdev-next] gre: remove duplicated assignment of iph

2017-08-23 Thread Nikolay Aleksandrov
On 23/08/17 14:59, Colin King wrote: > From: Colin Ian King > > iph is being assigned the same value twice; remove the redundant > first assignment. (Thanks to Nikolay Aleksandrov for pointing out > that the first asssignment should be removed and not the second) > > Fixes warning: > net/ipv4/ip

Re: [PATCH] selftests: timers: remove rtctest_setdate from run_destructive_tests

2017-08-23 Thread Benjamin Gaignard
2017-08-22 22:23 GMT+02:00 Shuah Khan : > Remove rtctest_setdate from run_destructive_tests target. Leave it in > TEST_GEN_PROGS_EXTENDED to be included in the install targets. > > Suggested-by: John Stultz > Signed-off-by: Shuah Khan Reviewed-by: Benjamin Gaignard > --- > tools/testing/selft

Re: [PATCH v2 2/2] KVM: X86: Fix loss of exception which has not yet injected

2017-08-23 Thread Paolo Bonzini
On 23/08/2017 12:23, Wanpeng Li wrote: > @@ -6341,7 +6345,8 @@ static int inject_pending_event(struct kvm_vcpu *vcpu, > bool req_int_win) > int r; > > /* try to reinject previous events if any */ > - if (vcpu->arch.exception.pending) { > + if (vcpu->arch.exception.pending ||

[PATCH] ALSA: ctxfi: make hw structures const

2017-08-23 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle: @match disable optional_qualifier@ identifier s; @@ static struct hw s = {...}; @ref@ position p; identifier match.s; @@ s@p @good1@ position ref.p; identifier match.s,f,c; expression e; @@ ( e = s@p | e = s@p.f |

Re: [v5 1/4] mm, oom: refactor the oom_kill_process() function

2017-08-23 Thread Roman Gushchin
On Tue, Aug 22, 2017 at 01:06:55PM -0400, Johannes Weiner wrote: > On Mon, Aug 14, 2017 at 07:32:09PM +0100, Roman Gushchin wrote: > > @@ -817,67 +817,12 @@ static bool task_will_free_mem(struct task_struct > > *task) > > return ret; > > } > > > > -static void oom_kill_process(struct oom_co

[PATCH] wireless: ipw2x00: make iw_handler_def const

2017-08-23 Thread Bhumika Goyal
Make these const as they are only stored in the const field of a net_device structure. Signed-off-by: Bhumika Goyal --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 4 ++-- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drive

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-23 Thread Auger Eric
Hi Will, On 23/08/2017 12:25, Will Deacon wrote: > On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: >> On Fri, Aug 18, 2017 at 05:49:42AM +0300, Michael S. Tsirkin wrote: >>> On Thu, Aug 17, 2017 at 05:34:25PM +0100, Will Deacon wrote: On Fri, Aug 11, 2017 at 03:45:28PM +02

[PATCH V1] spmi: pmic-arb: Move the ownership check to irq_chip callback

2017-08-23 Thread Kiran Gunda
Check the irq ownership in the irq_request_resources callback instead of checking it during the irq mapping. That we can prevent installing the flow handler for the interrupt that is not owned by the EE and allow the irq translation during the gpio driver probe. Signed-off-by: Kiran Gunda --- Thi

Re: DSA support for Micrel KSZ8895

2017-08-23 Thread Andrew Lunn
> Any ideas how to do the work in a way to minimize code duplication are > welcome... A lot depends on how much duplication there is. mv88e6xxx uses a set of function points per chip variant. Another option is to put the common code into a library, and have two drivers. Or if it is the same regist

Re: [PATCH 0/3] constify dsa_switch_ops

2017-08-23 Thread Andrew Lunn
On Wed, Aug 23, 2017 at 03:46:56PM +0530, Arvind Yadav wrote: > dsa_switch_ops are not supposed to change at runtime. All functions > working with dsa_switch_ops provided by work with > const dsa_switch_ops. So mark the non-const structs as const. > > Arvind Yadav (3): > [PATCH 1/3] net: dsa: l

Re: [PATCH v4 00/10] make L2's kvm-clock stable, get rid of pvclock_gtod_copy in KVM

2017-08-23 Thread Thomas Gleixner
On Tue, 22 Aug 2017, Paolo Bonzini wrote: > Regarding the "why is it best" part. Right now, the hypervisor makes a > copy of the timekeeper information in order to prepare the stable kvmclock. > This code is very much tied to the TSC. However, a snapshot of the timekeeper > information is almost

[PATCH V2] spmi: pmic-arb: Move the ownership check to irq_chip callback

2017-08-23 Thread Kiran Gunda
Check the irq ownership in the irq_request_resources callback instead of checking it during the irq mapping. This can prevent installing the flow handler for the interrupt that is not owned by the EE and allow the irq translation during the gpio driver probe. Signed-off-by: Kiran Gunda --- V2: Fi

[PATCH] net/mlx4_core: make mlx4_profile const

2017-08-23 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/net/ethernet/mellanox/mlx4/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c in

Re: gcc-8 objtool warnings

2017-08-23 Thread Josh Poimboeuf
On Wed, Aug 23, 2017 at 02:22:34PM +0200, Arnd Bergmann wrote: > Hi Josh, > > I upgraded the compiler to gcc-8.0.0 (from earlier this week) and into one > configuration that produces countless objtool warnings, starting with > > kernel/panic.o: warning: objtool: nmi_panic()+0x31: sibling call fr

All process has been hanged after a kernel WARNING in kernel 4.4.x

2017-08-23 Thread Feng Feng24 Liu
Dear experts I install kernel 4.4.70-rt83 in my environment, and run QEMU-KVM & OVS-DPDK on my server. After a kernel warning, I found that all of the process, such as sshd, has no response. The monitor cannot displayed. All process looks like has been hanged. But the server coul

[PATCH] net/mlx5e: make mlx5e_profile const

2017-08-23 Thread Bhumika Goyal
Make this const as it is only passed as an argument to the function mlx5e_create_netdev and the corresponding argument is of type const. Signed-off-by: Bhumika Goyal --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/n

[PATCH v2] ALSA: Fireface: Use common error handling code in pcm_open()

2017-08-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Aug 2017 14:45:20 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- v2: It seems that a source code adjust

Re: [PATCH V2] spmi: pmic-arb: Enforce the ownership check optionally

2017-08-23 Thread kgunda
On 2017-08-23 02:01, Stephen Boyd wrote: On 08/22, Shawn Guo wrote: On Mon, Aug 21, 2017 at 04:18:58PM -0700, Stephen Boyd wrote: > On 08/18/2017 08:28 AM, Kiran Gunda wrote: > > The peripheral ownership check is not necessary on single master > > platforms. Hence, enforce the peripheral ownersh

Re: All process has been hanged after a kernel WARNING in kernel 4.4.x

2017-08-23 Thread Michal Hocko
On Wed 23-08-17 12:40:36, Feng Feng24 Liu wrote: > Dear experts > I install kernel 4.4.70-rt83 in my environment, and run QEMU-KVM & > OVS-DPDK on my server. Is this reproducible? If yes could you try without RT patches applied to know this is applicable to vanilla kernel as well? >

Re: [PATCH v2] venus: fix copy/paste error in return_buf_error

2017-08-23 Thread Stanimir Varbanov
Gustavo, could you resend the patch with the Acked-by and Cc stable kernel. On 08/18/2017 07:07 PM, Gustavo A. R. Silva wrote: > Call function v4l2_m2m_dst_buf_remove_by_buf() instead of > v4l2_m2m_src_buf_remove_by_buf() > > Addresses-Coverity-ID: 1415317 > Cc: Stanimir Varbanov > Cc: Hans Ver

Re: [PATCH v5 3/4] perf, tools: Add support for printing new mem_info encodings

2017-08-23 Thread Jiri Olsa
On Wed, Aug 16, 2017 at 03:21:55PM -0700, Andi Kleen wrote: SNIP > int perf_mem__lvl_scnprintf(char *out, size_t sz, struct mem_info *mem_info) > { > size_t i, l = 0; > u64 m = PERF_MEM_LVL_NA; > u64 hit, miss; > + int printed; > > if (mem_info) > m

Re: [PATCH 4.9 00/27] 4.9.45-stable review

2017-08-23 Thread Sumit Semwal
Hi Greg, On 23 August 2017 at 00:43, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.45 release. > There are 27 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. >

Re: [PATCH v3 3/5] dt-bindings: sdhci-omap: Add bindings for the sdhci-omap controller

2017-08-23 Thread Ulf Hansson
On 23 August 2017 at 07:42, Kishon Vijay Abraham I wrote: > Add binding for the TI's sdhci-omap controller. This now includes only > a subset of properties documented in ti-omap-hsmmc.txt but will eventually > include all the properties. > > Signed-off-by: Kishon Vijay Abraham I > --- > Changes f

Re: [PATCH v2 00/16] mmc: meson-gx: driver fixups and upgrades

2017-08-23 Thread Ulf Hansson
On 22 August 2017 at 13:46, Jerome Brunet wrote: > On Tue, 2017-08-22 at 13:15 +0200, Ulf Hansson wrote: >> On 21 August 2017 at 18:02, Jerome Brunet wrote: >> > The patchset features several bugfixes, rework and upgrade for the >> > meson-gx MMC driver. >> > >> > The main goal is to improve read

Re: [PATCH] coccinelle: Improve setup_timer.cocci matching

2017-08-23 Thread Julia Lawall
On Tue, 22 Aug 2017, Kees Cook wrote: > This improves the patch mode of setup_timer.cocci. Several patterns were > missing: > - assignments-before-init_timer() cases > - limiting the .data case removal to the struct timer_list instance > - handling calls by dereference (timer->field vs timer.

[FYI] gcc 4.5.1 causes the Linux kernel to hang

2017-08-23 Thread Steven Rostedt
[ This is FYI only. Documenting what I found with gcc 4.5.1 (but is fixed in 4.5.4 ] Part of my test suit is to build the kernel with a compiler before asm goto was supported (to test jump labels without it). Recently I noticed that the kernel started to hang when building with it. For a while

[PATCH][drm-next] drm/amdgpu: remove duplicate return statement

2017-08-23 Thread Colin King
From: Colin Ian King Remove a redundant identical return statement, it has no use. Detected by CoverityScan, CID#1454586 ("Structurally dead code") Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gp

Re: [PATCH] mfd: Add support for TI LMP92001

2017-08-23 Thread Lee Jones
On Wed, 23 Aug 2017, Abhisit Sangjan wrote: > > > From: Abhisit Sangjan > > > > > > TI LMP92001 Analog System Monitor and Controller [...] > > > Signed-off-by: Abhisit Sangjan > > > --- > > > Documentation/ABI/testing/sysfs-bus-iio-lmp920001 | 92 > > > .../devicetree/bindings/gpio/gpi

[PATCH 2/3] staging: rtlwifi: add MAC80211 dependency

2017-08-23 Thread Arnd Bergmann
Like the version in drivers/net/wireless, this driver requires the MAC80211 framework, otherwise we run into a link error: ERROR: "ieee80211_rx_irqsafe" [drivers/staging/rtlwifi/r8822be.ko] undefined! ERROR: "cfg80211_unlink_bss" [drivers/staging/rtlwifi/r8822be.ko] undefined! ERROR: "ieee80211_be

[PATCH 3/3] staging: rtlwifi: simplify logical operation

2017-08-23 Thread Arnd Bergmann
gcc notices a very complicated way to check a value for being equal to one, and warns about it: drivers/staging/rtlwifi/btcoexist/halbtc8822b1ant.c: In function 'halbtc8822b1ant_set_ext_ant_switch': drivers/staging/rtlwifi/btcoexist/halbtc8822b1ant.c:2105:9: error: '~' on a boolean expression [-

Re: [PATCH 1/2] powerpc/workqueue: update list of possible CPUs

2017-08-23 Thread Tejun Heo
Hello, Michael. On Wed, Aug 23, 2017 at 09:00:39PM +1000, Michael Ellerman wrote: > > I don't think that's true. The CPU id used in kernel doesn't have to > > match the physical one and arch code should be able to pre-map CPU IDs > > to nodes and use the matching one when hotplugging CPUs. I'm n

[PATCH] ARM: ux500: don't select CPUFREQ_DT

2017-08-23 Thread Arnd Bergmann
The new 'select CPUFREQ_DT' statement causes a warning in some configurations: warning: (ARCH_U8500) selects CPUFREQ_DT which has unmet direct dependencies (CPU_FREQ && HAVE_CLK && OF && (!CPU_THERMAL || THERMAL)) No other platform does this, so I think for consistency it's best if we remove it

[PATCH] ARM: OMAP2+: fix missing variable declaration

2017-08-23 Thread Arnd Bergmann
The function that was added doesn't actually build: arch/arm/mach-omap2/display.c: In function 'omapdss_init_fbdev': arch/arm/mach-omap2/display.c:184:2: error: 'r' undeclared (first use in this function) This adds a declaration for 'r' to fix it. Fixes: 5ce783025c82 ("ARM: OMAP2+: Don't regist

[PATCH] media: omap3isp: fix uninitialized variable use

2017-08-23 Thread Arnd Bergmann
A debug printk statement was copied incorrectly into the new csi1 parser code and causes a warning there: drivers/media/platform/omap3isp/isp.c: In function 'isp_probe': include/linux/dynamic_debug.h:134:3: error: 'i' may be used uninitialized in this function [-Werror=maybe-uninitialized] Since

Re: [PATCH 1/4] workqueue: Use TASK_IDLE

2017-08-23 Thread Tejun Heo
On Wed, Aug 23, 2017 at 01:58:44PM +0200, Peter Zijlstra wrote: > Workqueues don't use signals, it (ab)uses TASK_INTERRUPTIBLE to avoid > increasing the loadavg numbers. We've 'recently' introduced TASK_IDLE > for this case: > > 80ed87c8a9ca ("sched/wait: Introduce TASK_NOLOAD and TASK_IDLE") >

Re: [PATCH 0/4] workqueue and lockdep stuffs..

2017-08-23 Thread Tejun Heo
On Wed, Aug 23, 2017 at 01:58:43PM +0200, Peter Zijlstra wrote: > Hi all, > > These are the patches I propose to deal with the current workqueue vs lockdep > fallout. > > TJ, if you like 1/4, please pick it up yourself, its completely independent > and > not really that important. I'll carry the

[PATCH] mm: swap: make free_swap_and_cache()/swapcache_prepare() inline functions

2017-08-23 Thread Arnd Bergmann
We get a build warning from a boolean expression that is never used: mm/madvise.c: In function 'madvise_free_pte_range': include/linux/swap.h:490:55: error: value computed is not used [-Werror=unused-value] #define free_swap_and_cache(e) (is_migration_entry(e) || is_device_private_entry(e))

[PATCH] spi: imx: fix little-endian build

2017-08-23 Thread Arnd Bergmann
The newly added dynamic burst code produces a harmless warning on big-endian configurations: drivers/spi/spi-imx.c: In function 'spi_imx_buf_rx_swap_u32': drivers/spi/spi-imx.c:284:15: error: unused variable 'bytes_per_word' [-Werror=unused-variable] unsigned int bytes_per_word;

[PATCH] Coccinelle: setup_timer: improve messages from setup_timer

2017-08-23 Thread Julia Lawall
Allow messages about multiple timers. Signed-off-by: Julia Lawall --- scripts/coccinelle/api/setup_timer.cocci | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/coccinelle/api/setup_timer.cocci b/scripts/coccinelle/api/setup_timer.cocci index eb6bd9e

Re: gcc-8 objtool warnings

2017-08-23 Thread Arnd Bergmann
On Wed, Aug 23, 2017 at 2:48 PM, Josh Poimboeuf wrote: > On Wed, Aug 23, 2017 at 02:22:34PM +0200, Arnd Bergmann wrote: >> ... >> >> : >>0: e8 00 00 00 00 callq 5 >> 1: R_X86_64_PC32__sanitizer_cov_trace_pc-0x4 >>5: 44 8b 8b 6

[PATCH] phy: ralink: fix 64-bit build warning

2017-08-23 Thread Arnd Bergmann
Casting between an 'int' and a pointer causes a warning on 64-bit architectures in compile-testing this driver: drivers/phy/ralink/phy-ralink-usb.c: In function 'ralink_usb_phy_probe': drivers/phy/ralink/phy-ralink-usb.c:195:13: error: cast from pointer to integer of different size [-Werror=point

Re: [stable 4.4 1/2] mei: me: add broxton pci device ids

2017-08-23 Thread Greg Kroah-Hartman
On Wed, Aug 23, 2017 at 09:30:28AM +0300, Tomas Winkler wrote: > Add device ids for Broxton SoC based devices. > > Cc: sta...@kernel.com #4.4.x > Signed-off-by: Tomas Winkler > Signed-off-by: Greg Kroah-Hartman > --- > drivers/misc/mei/hw-me-regs.h | 3 +++ > drivers/misc/mei/pci-me.c | 3 +

Re: [PATCH] storvsc: do not assume SG list is continuous when doing bounce buffers (for 4.1 stable only)

2017-08-23 Thread Greg KH
On Tue, Aug 22, 2017 at 11:43:19PM -0700, Christoph Hellwig wrote: > Ok. If the stable maintainers are ok with your small fix > I'm not going to complain too loudly. But I'm always worried about > stable trees divering too much from mainline. Given that 90% of the time we do this, something brea

[PATCH] pinctrl: aspeed: Rework strap register write logic for the AST2500

2017-08-23 Thread Andrew Jeffery
Yong Li found that writes to the AST2500 strapping register were not properly supported by the Aspeed pinctrl core and provided a patch to rectify the problem. Several revisions of the patch were posted and ultimately v4 should have been applied, however some unfortunate liberal application of tags

Re: [PATCH RFC] media: open.rst: document devnode-centric and mc-centric types

2017-08-23 Thread Mauro Carvalho Chehab
Em Wed, 23 Aug 2017 12:37:30 +0300 Sakari Ailus escreveu: > Hi Mauro, > > Thanks for the patch! Something like this was long due. > > I cc'd Hans and Laurent to get their attention, too. > > On Sat, Aug 19, 2017 at 07:04:40AM -0300, Mauro Carvalho Chehab wrote: > > When we added support for om

[PATCH] iommu: qcom: annotate PM functions as __maybe_unused

2017-08-23 Thread Arnd Bergmann
The qcom_iommu_disable_clocks() function is only called from PM code that is hidden in an #ifdef, causing a harmless warning without CONFIG_PM: drivers/iommu/qcom_iommu.c:601:13: error: 'qcom_iommu_disable_clocks' defined but not used [-Werror=unused-function] static void qcom_iommu_disable_cloc

[PATCH] seccomp: add missing semicolon

2017-08-23 Thread Arnd Bergmann
We get a compile error without it, at least in some configurations: kernel/seccomp.c:1221:1: error: expected ',' or ';' at end of input Fixes: 8e5f1ad116df ("seccomp: Sysctl to display available actions") Signed-off-by: Arnd Bergmann --- kernel/seccomp.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH] x86: enable RCU based table free when PARAVIRT

2017-08-23 Thread Vitaly Kuznetsov
On x86 software page-table walkers depend on the fact that remote TLB flush does an IPI: walk is performed lockless but with interrupts disabled and in case the pagetable is freed the freeing CPU will get blocked as remote TLB flush is required. On other architecture which don't require an IPI to d

Re: [PATCH 0/4] workqueue and lockdep stuffs..

2017-08-23 Thread Peter Zijlstra
On Wed, Aug 23, 2017 at 06:32:25AM -0700, Tejun Heo wrote: > On Wed, Aug 23, 2017 at 01:58:43PM +0200, Peter Zijlstra wrote: > > Hi all, > > > > These are the patches I propose to deal with the current workqueue vs > > lockdep > > fallout. > > > > TJ, if you like 1/4, please pick it up yourself,

Re: [PATCH v6 1/3] perf/core: use rb trees for pinned/flexible groups

2017-08-23 Thread Alexander Shishkin
Alexey Budankov writes: > bool event_less(left, right) > { > if (left->cpu < right->cpu) > return true; > > if (left->cpu > right_cpu) > return false; > > if (left->vtime < right->vtime) > return true; > > return false; > } >

Re: [PATCH v3] pinctrl: aspeed: Fix ast2500 strap register write logic

2017-08-23 Thread Andrew Jeffery
On Wed, 2017-08-23 at 10:23 +0200, Linus Walleij wrote: > > On Wed, Aug 23, 2017 at 1:54 AM, Andrew Jeffery wrote: > > On Tue, 2017-08-22 at 14:52 +0200, Linus Walleij wrote: > > > > > > > > On Tue, Aug 15, 2017 at 6:21 PM, Yong Li > > > > > > > > wrote: > > > > On AST2500, the hardware strap re

[PATCH] ASoC: tegra: Remove superfluous 'machine' variable

2017-08-23 Thread Arnd Bergmann
The last cleanup left behind an unused variable: sound/soc/tegra/tegra_wm8903.c: In function 'tegra_wm8903_remove': sound/soc/tegra/tegra_wm8903.c:206:23: error: unused variable 'machine' [-Werror=unused-variable] This removes it as welremoves it as welll Fixes: 2a8bd83af30e ("ASoC: tegra: Remo

[PATCH] pinctrl: freescale: make mxs_regs const

2017-08-23 Thread Bhumika Goyal
Make these const as they are only stored in the const field of a mxs_pinctrl_soc_data structure. Signed-off-by: Bhumika Goyal --- drivers/pinctrl/freescale/pinctrl-imx23.c | 2 +- drivers/pinctrl/freescale/pinctrl-imx28.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dri

Re: [PATCH] phy: ralink: fix 64-bit build warning

2017-08-23 Thread John Crispin
On 23/08/17 15:39, Arnd Bergmann wrote: Casting between an 'int' and a pointer causes a warning on 64-bit architectures in compile-testing this driver: drivers/phy/ralink/phy-ralink-usb.c: In function 'ralink_usb_phy_probe': drivers/phy/ralink/phy-ralink-usb.c:195:13: error: cast from pointer

Re: [PATCH v2] ALSA: Fireface: Use common error handling code in pcm_open()

2017-08-23 Thread Takashi Sakamoto
On Aug 23 2017 21:54, SF Markus Elfring wrote: From: Markus Elfring Date: Wed, 23 Aug 2017 14:45:20 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elf

Re: [RESEND PATCH 2/3] mm: Add page colored allocation path

2017-08-23 Thread Dave Hansen
On 08/23/2017 03:02 AM, Łukasz Daniluk wrote: > + cache_color_size= > + [KNL] Set cache size for purposes of cache coloring > + mechanism in buddy allocator. > + > + cache_color_min_order= > + [KNL] Set minimal order for which page

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Bjorn Helgaas
On Wed, Aug 23, 2017 at 03:57:02PM +0530, Oza Oza wrote: > On Wed, Aug 23, 2017 at 2:03 AM, Bjorn Helgaas wrote: > > [+cc Sinan, Timur, Alex] > > > > Hi Oza, > > > > On Mon, Aug 21, 2017 at 09:28:43PM +0530, Oza Pawandeep wrote: > >> PCIe spec r3.1, sec 2.3.2 > >> If CRS software visibility is not

Re: [Patch v2 13/19] CIFS: SMBD: Use registered memory RDMA read for SMB write

2017-08-23 Thread Leon Romanovsky
On Sun, Aug 20, 2017 at 12:04:37PM -0700, Long Li wrote: > From: Long Li > > When sending I/O, if size is larger than rdma_readwrite_threshold we prepare > to send SMB WRITE packet for a RDMA read via memory registration. The actual > I/O is done out-of-the-band, so modify the relevant fields in

Re: [PATCH v2] ALSA: Fireface: Use common error handling code in pcm_open()

2017-08-23 Thread Takashi Iwai
On Wed, 23 Aug 2017 14:54:32 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Wed, 23 Aug 2017 14:45:20 +0200 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function. > > This issue was detected by using the Coccinelle softwar

Re: [PATCH] ARM: OMAP2+: fix missing variable declaration

2017-08-23 Thread Laurent Pinchart
Hi Arnd, On Wednesday, 23 August 2017 16:28:19 EEST Arnd Bergmann wrote: > The function that was added doesn't actually build: > > arch/arm/mach-omap2/display.c: In function 'omapdss_init_fbdev': > arch/arm/mach-omap2/display.c:184:2: error: 'r' undeclared (first use in > this function) > > This

Re: [PATCH] iommu: qcom: annotate PM functions as __maybe_unused

2017-08-23 Thread Rob Clark
On Wed, Aug 23, 2017 at 9:42 AM, Arnd Bergmann wrote: > The qcom_iommu_disable_clocks() function is only called from PM > code that is hidden in an #ifdef, causing a harmless warning without > CONFIG_PM: > > drivers/iommu/qcom_iommu.c:601:13: error: 'qcom_iommu_disable_clocks' defined > but not u

Re: [PATCH v13 3/6] fpga manager: Add altera-ps-spi driver for Altera FPGAs

2017-08-23 Thread Bastian Stender
On 06/10/2017 12:39 AM, Joshua Clayton wrote: altera-ps-spi loads FPGA firmware over SPI, using the "passive serial" interface on Altera Arria 10, Cyclone V or Stratix V FPGAs. This is one of the simpler ways to set up an FPGA at runtime. The signal interface is close to unidirectional SPI with

Re: [PATCH 0/4] constify ac97_pcm structures

2017-08-23 Thread Takashi Iwai
On Wed, 23 Aug 2017 14:09:24 +0200, Arvind Yadav wrote: > > ac97_pcm are not supposed to change at runtime. All functions > working with ac97_pcm provided by work with > const ac97_pcm. So mark the non-const structs as const. > > Arvind Yadav (4): > [PATCH 1/4] ALSA: aaci: constify ac97_pcm st

<    1   2   3   4   5   6   7   8   9   >