Re: [PATCH 2/2] mm: memcontrol: try harder to set a new memory.high

2019-10-23 Thread Michal Hocko
On Tue 22-10-19 16:15:18, Johannes Weiner wrote: > Setting a memory.high limit below the usage makes almost no effort to > shrink the cgroup to the new target size. > > While memory.high is a "soft" limit that isn't supposed to cause OOM > situations, we should still try harder to meet a user requ

[PATCH] spi: document CS setup, hold & inactive times in header

2019-10-23 Thread Alexandru Ardelean
This change documents the CS setup, host & inactive times. They were omitted when the fields were added, and were caught by one of the build bots. Fixes: 25093bdeb6bc ("spi: implement SW control for CS times") Reported-by: kbuild test robot Signed-off-by: Alexandru Ardelean --- include/linux/sp

[PATCH RESEND 2/2] dmaengine: JZ4780: Add support for the X1000.

2019-10-23 Thread Zhou Yanjie
Add support for probing the dma-jz4780 driver on the X1000 Soc. Signed-off-by: Zhou Yanjie --- drivers/dma/dma-jz4780.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index cafb1cc0..f809a6e 100644 --- a/drivers/dma/dma-jz4780.c +++

[PATCH RESEND 1/2] dt-bindings: dmaengine: Add X1000 bindings.

2019-10-23 Thread Zhou Yanjie
Add the dmaengine bindings for the X1000 Soc from Ingenic. Signed-off-by: Zhou Yanjie --- .../devicetree/bindings/dma/jz4780-dma.txt | 3 +- include/dt-bindings/dma/x1000-dma.h| 40 ++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 1006

Re: DMA: JZ4780: Add DMA driver for X1000.

2019-10-23 Thread Zhou Yanjie
Hi Vinod, On 2019年10月23日 13:15, Vinod Koul wrote: On 23-10-19, 11:05, Zhou Yanjie wrote: 1.Add the DMA bindings for the X1000 SoC from Ingenic. 2.Add support for probing the dma-jz4780 driver on the X1000 SoC from Ingenic. The subsystem in dmaengine and not dma Please resend with correct t

[PATCH net-next] ieee802154: remove set but not used variable 'status'

2019-10-23 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ieee802154/cc2520.c:221:5: warning: variable status set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Signed-off-by: YueHaibing --- drivers/net/ieee802154/cc2520.c | 3 --- 1 file changed, 3 deletions(-

[PATCH][RESEND] input: adp5589: Make keypad support optional

2019-10-23 Thread Alexandru Ardelean
From: Lars-Peter Clausen On some platforms the adp5589 is used in GPIO only mode. On these platforms we do not want to register a input device, so make that optional and only create the input device if a keymap is supplied. Signed-off-by: Lars-Peter Clausen Signed-off-by: Alexandru Ardelean --

[PATCH V9 6/6] backlight: qcom-wled: Add auto string detection logic

2019-10-23 Thread Kiran Gunda
The auto string detection algorithm checks if the current WLED sink configuration is valid. It tries enabling every sink and checks if the OVP fault is observed. Based on this information it detects and enables the valid sink configuration. Auto calibration will be triggered when the OVP fault inte

Re: [PATCH 3/7] soc: fsl: qe: avoid ppc-specific io accessors

2019-10-23 Thread Rasmus Villemoes
On 22/10/2019 17.01, Christophe Leroy wrote: > > > On 10/18/2019 12:52 PM, Rasmus Villemoes wrote: >> In preparation for allowing to build QE support for architectures >> other than PPC, replace the ppc-specific io accessors. Done via >> > > This patch is not transparent in terms of performance,

[PATCH v5 0/4] perf/core: fix restoring of Intel LBR call stack on a context switch

2019-10-23 Thread Alexey Budankov
Restore Intel LBR call stack from cloned inactive task perf context on a context switch. This change inherently addresses inconsistency in LBR call stack data provided on a sample in record profiling mode: $ perf record -N -B -T -R --call-graph lbr \ -e cpu/period=0xcdfe60,event=0x3c

dmaengine: JZ4780: Add dmaengine driver for X1000.

2019-10-23 Thread Zhou Yanjie
1.Add the dmaengine bindings for the X1000 SoC from Ingenic. 2.Add support for probing the dma-jz4780 driver on the X1000 SoC from Ingenic.

Re: [PATCH] perf/core: fix multiplexing event scheduling issue

2019-10-23 Thread Stephane Eranian
On Mon, Oct 21, 2019 at 3:06 AM Peter Zijlstra wrote: > > On Thu, Oct 17, 2019 at 05:27:46PM -0700, Stephane Eranian wrote: > > @@ -2153,6 +2157,7 @@ __perf_remove_from_context(struct perf_event *event, > > void *info) > > { > > unsigned long flags = (unsigned long)

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-23 Thread Tiwei Bie
On Wed, Oct 23, 2019 at 01:46:23PM +0800, Jason Wang wrote: > On 2019/10/23 上午11:02, Tiwei Bie wrote: > > On Tue, Oct 22, 2019 at 09:30:16PM +0800, Jason Wang wrote: > > > On 2019/10/22 下午5:52, Tiwei Bie wrote: > > > > This patch introduces a mdev based hardware vhost backend. > > > > This backend

[PATCH v5 1/4] perf/core,x86: introduce swap_task_ctx() method at struct pmu

2019-10-23 Thread Alexey Budankov
Declare swap_task_ctx() methods at the generic and x86 specific pmu types to bridge calls to platform specific pmu code on optimized context switch path between equivalent task perf event contexts. Signed-off-by: Alexey Budankov --- arch/x86/events/perf_event.h | 8 include/linux/perf

[PATCH v5 2/4] perf/x86: install platform specific swap_task_ctx adapter

2019-10-23 Thread Alexey Budankov
Bridge perf core and x86 swap_task_ctx() method calls. Signed-off-by: Alexey Budankov --- arch/x86/events/core.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index 7b21455d7504..6e3f0c18908e 100644 --- a/arch/x86/events/core.c +++

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-23 Thread Matthias Brugger
On 22/10/2019 13:23, Nicolas Saenz Julienne wrote: > On Mon, 2019-10-21 at 16:36 -0400, Qian Cai wrote: >> I managed to get more information here, >> >> [0.00] cma: dma_contiguous_reserve(limit c000) >> [0.00] cma: dma_contiguous_reserve: reserving 64 MiB for global area >> [

[PATCH v5 3/4] perf/x86/intel: implement LBR callstacks context synchronization

2019-10-23 Thread Alexey Budankov
Implement intel_pmu_lbr_swap_task_ctx() method updating counters of the events that requested LBR callstack data on a sample. The counter can be zero for the case when task context belongs to a thread that has just come from a block on a futex and the context contains saved (lbr_stack_state == L

[PATCH v5 4/4] perf/core,x86: synchronize PMU task contexts on optimized context switches

2019-10-23 Thread Alexey Budankov
Install Intel specific PMU task context synchronization adapter and extend optimized context switch path with PMU specific task context synchronization to fix LBR callstack virtualization on context switches. Signed-off-by: Alexey Budankov --- arch/x86/events/intel/core.c | 7 +++ kernel/

Re: [PATCH] hugetlbfs: add O_TMPFILE support

2019-10-23 Thread Piotr Sarna
On 10/23/19 4:55 AM, Mike Kravetz wrote: On 10/22/19 12:09 AM, Piotr Sarna wrote: On 10/21/19 7:17 PM, Mike Kravetz wrote: On 10/15/19 4:37 PM, Mike Kravetz wrote: On 10/15/19 3:50 AM, Michal Hocko wrote: On Tue 15-10-19 11:01:12, Piotr Sarna wrote: With hugetlbfs, a common pattern for mappi

INFO: task hung in acct_process

2019-10-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:4f5cafb5 Linux 5.4-rc3 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14e1d2a0e0 kernel config: https://syzkaller.appspot.com/x/.config?x=de66e73d1c10cebb dashboard link: https://syzkaller.appspo

Re: [PATCH] clocksource/drivers: Fix error handling in ttc_setup_clocksource

2019-10-23 Thread Markus Elfring
> In the implementation of ttc_setup_clocksource() when > clk_notifier_register() fails the execution should go to error handling. > Additionally, to avoid memory leak the allocated memory for ttccs should > be released, too. I got other wording preferences. Thus I imagine that such a change descr

INFO: task hung in register_netdevice_notifier (2)

2019-10-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3b7c59a1 Merge tag 'pinctrl-v5.4-2' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=131abff760 kernel config: https://syzkaller.appspot.com/x/.config?x=420126a10fdda0f1 da

INFO: task hung in vfs_unlink

2019-10-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d72e90f3 Linux 4.18-rc6 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=104dc65840 kernel config: https://syzkaller.appspot.com/x/.config?x=68af3495408deac5 dashboard link: https://syzkaller.appsp

RE: [PATCH v1 1/1] scsi: ufs: Add command logging infrastructure

2019-10-23 Thread Winkler, Tomas
> Add the necessary infrastructure to keep timestamp history of commands, > events and other useful info for debugging complex issues. This helps in > diagnosing events leading upto failure. Why not use tracepoints, for that? Thanks Tomas > Signed-off-by: Can Guo > --- > drivers/scsi/ufs/Kconfi

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-23 Thread Jason Wang
On 2019/10/23 下午3:07, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 01:46:23PM +0800, Jason Wang wrote: On 2019/10/23 上午11:02, Tiwei Bie wrote: On Tue, Oct 22, 2019 at 09:30:16PM +0800, Jason Wang wrote: On 2019/10/22 下午5:52, Tiwei Bie wrote: This patch introduces a mdev based hardware vhost bac

Re: [PATCH 3/7] Add a UFFD_SECURE flag to the userfaultfd API.

2019-10-23 Thread Cyrill Gorcunov
On Tue, Oct 22, 2019 at 09:11:04PM -0700, Andy Lutomirski wrote: > Trying again. It looks like I used the wrong address for Pavel. Thanks for CC Andy! I must confess I didn't dive into userfaultfd engine personally but let me CC more people involved from criu side. (overquoting left untouched for

Re: [PATCH] perf/core: fix multiplexing event scheduling issue

2019-10-23 Thread Stephane Eranian
On Mon, Oct 21, 2019 at 3:21 AM Peter Zijlstra wrote: > > On Thu, Oct 17, 2019 at 05:27:46PM -0700, Stephane Eranian wrote: > > This patch complements the following commit: > > 7fa343b7fdc4 ("perf/core: Fix corner case in perf_rotate_context()") > > > > The fix from Song addresses the consequences

[GIT PULL] EDAC fix for 5.4

2019-10-23 Thread Borislav Petkov
Hi Linus, please pull, thx. --- The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c: Linux 5.4-rc1 (2019-09-30 10:35:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git tags/edac_urgent_for_5.4 for you to fet

[PATCH] ASoC: fsl_esai: Add spin lock to protect reset and stop

2019-10-23 Thread Shengjiu Wang
xrun may happen at the end of stream, the trigger->fsl_esai_trigger_stop maybe called in the middle of fsl_esai_hw_reset, this may cause esai in wrong state after stop, and there may be endless xrun interrupt. So Add spin lock to lock these two function. Fixes: 7ccafa2b3879 ("ASoC: fsl_esai: recov

Re: [PATCH v2] clocksource/drivers: Fix memory leak in ttc_setup_clockevent

2019-10-23 Thread Michal Simek
On 23. 10. 19 6:31, Navid Emamdoost wrote: > In the implementation of ttc_setup_clockevent() release the allocated > memory for ttcce if clk_notifier_register() fails. > > Fixes: 70504f311d4b ("clocksource/drivers/cadence_ttc: Convert init function > to return error") > Signed-off-by: Navid Emamd

Re: [PATCH 1/3] phy: cadence: Sierra: add phy_reset hook

2019-10-23 Thread Kishon Vijay Abraham I
Roger, On 22/10/19 6:52 PM, Roger Quadros wrote: > This is required if type C driver needs to hold > global reset on J7ES to perform LN10 swap. Can you replace "This" with something more specific. Thanks Kishon > > Signed-off-by: Roger Quadros > Signed-off-by: Sekhar Nori > --- > drivers/phy

[PATCH net-next] net: lan78xx: remove set but not used variable 'event'

2019-10-23 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/usb/lan78xx.c:3995:6: warning: variable event set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Signed-off-by: YueHaibing --- drivers/net/usb/lan78xx.c | 3 --- 1 file changed, 3 deletions(-) diff --gi

[PATCH] adm80211: remove set but not used variables 'mem_addr' and 'io_addr'

2019-10-23 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/admtek/adm8211.c:1784:16: warning: variable mem_addr set but not used [-Wunused-but-set-variable] drivers/net/wireless/admtek/adm8211.c:1785:15: warning: variable io_addr set but not used [-Wunused-but-set-variable] They are ne

[PATCH] uprobes/x86: fix arch_uprobe_analyze_insn() comment

2019-10-23 Thread Yi Wang
Fix parameter name in comment and adjust the order. No functional change. Signed-off-by: Yi Wang --- arch/x86/kernel/uprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/uprobes.c b/arch/x86/kernel/uprobes.c index 8cd745e..15e5aad 100644 --- a/arch/x86/ke

[PATCH] atmel: remove set but not used variable 'dev'

2019-10-23 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/atmel/atmel_cs.c:120:21: warning: variable dev set but not used [-Wunused-but-set-variable] It is never used, so can remove it. Signed-off-by: YueHaibing --- drivers/net/wireless/atmel/atmel_cs.c | 2 -- 1 file changed, 2 del

[PATCH -next] phy: ti: dm816x: remove set but not used variable 'phy_data'

2019-10-23 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/phy/ti/phy-dm816x-usb.c:192:29: warning: variable phy_data set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Signed-off-by: YueHaibing --- drivers/phy/ti/phy-dm816x-usb.c | 3 --- 1 file changed, 3 deletion

Re: [PATCH] net: usb: lan78xx: Use phy_mac_interrupt() for interrupt handling

2019-10-23 Thread Daniel Wagner
> > Wouldn't handle_nested_irq() work here instead of the simple thingy? > > Daniel could you try this suggestion? Would it work? [6.427289] [ cut here ] [6.431977] kernel BUG at drivers/net/phy/mdio_bus.c:626! [6.437453] Internal error: Oops - BUG: 0 [#1] PRE

[PATCH -next] staging: comedi: dt2814: remove set but not used variables 'data'

2019-10-23 Thread YueHaibing
drivers/staging/comedi/drivers/dt2814.c:193:6: warning: variable data set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Signed-off-by: YueHaibing --- drivers/staging/comedi/drivers/dt2814.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --gi

[PATCH v3] ACPI/processor_idle: Remove dummy wait if kernel is in guest mode

2019-10-23 Thread Yin Fengwei
In function acpi_idle_do_entry(), an ioport access is used for dummy wait to guarantee hardware behavior. But it could trigger unnecessary vmexit if kernel is running as guest in virtualization environtment. If it's in virtualization environment, the deeper C state enter operation (inb()) will tra

Re: [PATCH] sched/fair: fix rework of find_idlest_group()

2019-10-23 Thread Chen, Rong A
Tested-by: kernel test robot On 10/23/2019 12:46 AM, Vincent Guittot wrote: The task, for which the scheduler looks for the idlest group of CPUs, must be discounted from all statistics in order to get a fair comparison between groups. This includes utilization, load, nr_running and idle_cpus.

[PATCH -next] staging: comedi: remove unused variable 'route_table_size'

2019-10-23 Thread YueHaibing
drivers/staging/comedi/drivers/ni_routes.c:52:21: warning: route_table_size defined but not used [-Wunused-const-variable=] It is never used since introduction. Signed-off-by: YueHaibing --- drivers/staging/comedi/drivers/ni_routes.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers

Re: [PATCH v2 2/2] PCI: pciehp: Prevent deadlock on disconnect

2019-10-23 Thread Mika Westerberg
On Tue, Oct 22, 2019 at 06:00:06PM -0500, Bjorn Helgaas wrote: > On Mon, Aug 12, 2019 at 05:31:33PM +0300, Mika Westerberg wrote: > > If there are more than one PCIe switch with hotplug downstream ports > > hot-removing them leads to a following deadlock: > > > > INFO: task irq/126-pciehp:198 blo

[PATCH] rtl8xxxu: remove set but not used variable 'rate_mask'

2019-10-23 Thread YueHaibing
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:4484:6: warning: variable rate_mask set but not used [-Wunused-but-set-variable] It is never used since commit a9bb0b515778 ("rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver") Signed-off-by: YueHaibing --- drivers/net/wirel

Re: [PATCHv2 0/2] perf tools: Share struct map after clone

2019-10-23 Thread Jiri Olsa
On Wed, Oct 16, 2019 at 10:22:24AM +0200, Jiri Olsa wrote: > hi, > Andi reported that maps cloning is eating lot of memory and > it's probably unnecessary, because they keep the same data. > > This 'maps sharing' seems to save lot of heap for reports with > many forks/cloned mmaps (over 60% in exa

[PATCH] x86/mce/amd: fix -Wmissing-prototypes warnings

2019-10-23 Thread Yi Wang
We get two warnings when build kernel W=1: arch/x86/kernel/cpu/mce/amd.c:586:6: warning: no previous prototype for ‘disable_err_thresholding’ [-Wmissing-prototypes] Make the function static to fix this. Signed-off-by: Yi Wang --- arch/x86/kernel/cpu/mce/amd.c | 2 +- 1 file changed, 1 insertio

Re: [PATCH] arch: microblaze: support for reserved-memory entries in DT

2019-10-23 Thread Michal Simek
Hi, On 22. 10. 19 10:19, Alvaro Gamez Machado wrote: > Signed-off-by: Alvaro Gamez Machado please put there reasonable description to commit message. > --- > arch/microblaze/mm/init.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm

[PATCH -next] drm/amdgpu: remove set but not used variable 'adev'

2019-10-23 Thread YueHaibing
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:1221:24: warning: variable adev set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:488:24: warning: variable adev set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:547:24: warning: variabl

Re: [PATCH v2] clocksource/drivers: Fix memory leak in ttc_setup_clockevent

2019-10-23 Thread Markus Elfring
> In the implementation of ttc_setup_clockevent() release the allocated > memory for ttcce if clk_notifier_register() fails. I got other wording preferences. Thus I imagine that such a change description can still be improved another bit. Would you like to express the addition of a jump target (ac

Re: [PATCH v2 10/11] gpio: pca953x: Convert to use bitmap API

2019-10-23 Thread Andy Shevchenko
On Tue, Oct 22, 2019 at 08:03:00PM +0200, Geert Uytterhoeven wrote: > On Tue, Oct 22, 2019 at 7:29 PM Andy Shevchenko > wrote: > > Instead of customized approach convert the driver to use bitmap API. > > #define MAX_BANK 5 > > #define BANK_SZ 8 > > +#define MAX_LINE (MAX_BANK * BANK_SZ) >

Re: [PATCH] ASoC: mediatek: Check SND_SOC_CROS_EC_CODEC dependency

2019-10-23 Thread Tzung-Bi Shih
On Wed, Oct 23, 2019 at 2:31 PM Mao Wenan wrote: > > If SND_SOC_MT8183_MT6358_TS3A227E_MAX98357A=y, > below errors can be seen: > sound/soc/codecs/cros_ec_codec.o: In function `send_ec_host_command': > cros_ec_codec.c:(.text+0x534): undefined reference to > `cros_ec_cmd_xfer_status' > cros_ec_cod

[PATCH RESEND] dt-bindings: max77693: fix missing curly brace

2019-10-23 Thread Matti Vaittinen
Add missing curly brace to charger node example. Signed-off-by: Matti Vaittinen --- Resending as I forgot to add the LKML in first attempt. Sorry peeps. Documentation/devicetree/bindings/mfd/max77693.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/

Re: [PATCH] net: usb: lan78xx: Use phy_mac_interrupt() for interrupt handling

2019-10-23 Thread Daniel Wagner
Sebastian suggested to try this here: --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -1264,8 +1264,11 @@ static void lan78xx_status(struct lan78xx_net *dev, struct urb *urb) netif_dbg(dev, link, dev->net, "PHY INTR: 0x%08x\n", intdata); lan78xx_

Re: [PATCH] x86/mce/amd: fix -Wmissing-prototypes warnings

2019-10-23 Thread Borislav Petkov
On Wed, Oct 23, 2019 at 03:57:17PM +0800, Yi Wang wrote: > We get two warnings when build kernel W=1: > arch/x86/kernel/cpu/mce/amd.c:586:6: warning: no previous prototype for > ‘disable_err_thresholding’ [-Wmissing-prototypes] > > Make the function static to fix this. > > Signed-off-by: Yi Wang

Re: [PATCH -next] phy: ti: dm816x: remove set but not used variable 'phy_data'

2019-10-23 Thread Roger Quadros
On 23/10/2019 10:45, YueHaibing wrote: Fixes gcc '-Wunused-but-set-variable' warning: drivers/phy/ti/phy-dm816x-usb.c:192:29: warning: variable phy_data set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Signed-off-by: YueHaibing Reviewed-by: Roger Quadro

Re: [RFC v1] memcg: add memcg lru for page reclaiming

2019-10-23 Thread Michal Hocko
On Wed 23-10-19 12:44:48, Hillf Danton wrote: > > On Tue, 22 Oct 2019 15:58:32 +0200 Michal Hocko wrote: > > > > On Tue 22-10-19 21:30:50, Hillf Danton wrote: [...] > > > in this RFC after ripping pages off > > > the first victim, the work finishes with the first ancestor of the victim > > > adde

Re: [PATCH 1/3] phy: cadence: Sierra: add phy_reset hook

2019-10-23 Thread Roger Quadros
Kishon, On 23/10/2019 10:36, Kishon Vijay Abraham I wrote: Roger, On 22/10/19 6:52 PM, Roger Quadros wrote: This is required if type C driver needs to hold global reset on J7ES to perform LN10 swap. Can you replace "This" with something more specific. I meant this patch, but I will revise

Re: [PATCH v2 0/6] musb: Improve performance for hub-attached webcams

2019-10-23 Thread Matwey V. Kornilov
пн, 9 сент. 2019 г. в 19:33, Matwey V. Kornilov : > > вт, 2 июл. 2019 г. в 20:33, Bin Liu : > > > > Matwey, > > > > On Tue, Jul 02, 2019 at 08:29:03PM +0300, Matwey V. Kornilov wrote: > > > Ping? > > > > I was offline and just got back. I will review it soon. Sorry for the > > delay. > > Ping? > P

Re: [PATCH 3/3] phy: ti: j721e-wiz: Manage typec-gpio-dir

2019-10-23 Thread Roger Quadros
On 23/10/2019 08:28, Jyri Sarha wrote: On 22/10/2019 16:22, Roger Quadros wrote: Based on this GPIO state we need to configure LN10 bit to swap lane0 and lane1 if required (flipped connector). Type-C companions typically need some time after the cable is plugged before and before they reflec

Re: [PATCH 2/5] ARM: qcom_defconfig: add msm8974 interconnect support

2019-10-23 Thread Georgi Djakov
Hi Brian, Thank you for working on this! On 13.10.19 г. 11:08 ч., Brian Masney wrote: > Add interconnect support for msm8974-based SoCs in order to support the > GPU on this platform. > > Signed-off-by: Brian Masney > --- > arch/arm/configs/qcom_defconfig | 3 +++ > 1 file changed, 3 insertion

Re: [PATCH v5.1 RESEND] dt-bindings: hwrng: Add Samsung Exynos 5250+ True RNG bindings

2019-10-23 Thread Andreas Färber
next.git/commit/devicetree/bindings/rng/samsung,exynos5250-trng.txt?h=next-20191023&id=85552c22f03c9066c33f26f34538b67fee6a91a8 Thanks, Andreas -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)

Re: [PATCH v4] erofs: support superblock checksum

2019-10-23 Thread Chao Yu
Hi, Xiang, Pratik, On 2019/10/23 12:05, Gao Xiang wrote: > From: Pratik Shinde > > Introduce superblock checksum feature in order to check > a number of given blocks at mounting time. > > Signed-off-by: Pratik Shinde > Signed-off-by: Gao Xiang > --- > changes from v3: > (based on Pratik's v3

Re: [PATCH v2] sched/nohz: Optimize get_nohz_timer_target()

2019-10-23 Thread Wanpeng Li
On Fri, 28 Jun 2019 at 09:10, Frederic Weisbecker wrote: > > On Fri, Jun 28, 2019 at 08:43:12AM +0800, Wanpeng Li wrote: > > From: Wanpeng Li > > > > On a machine, cpu 0 is used for housekeeping, the other 39 cpus in the > > same socket are in nohz_full mode. We can observe huge time burn in the

Re: [RFC v1] mm: add page preemption

2019-10-23 Thread Michal Hocko
On Tue 22-10-19 22:28:02, Hillf Danton wrote: > > On Tue, 22 Oct 2019 14:42:41 +0200 Michal Hocko wrote: > > > > On Tue 22-10-19 20:14:39, Hillf Danton wrote: > > > > > > On Mon, 21 Oct 2019 14:27:28 +0200 Michal Hocko wrote: > > [...] > > > > Why do we care and which workloads would benefit and

Re: [PATCH v4] media: vimc: Implement debayer control for mean window size

2019-10-23 Thread Hans Verkuil
Hi Arthur, I added this patch to my pull request, but I have a request for a follow-up patch: On 10/2/19 2:46 AM, Arthur Moraes do Lago wrote: > Add mean window size parameter for debayer filter as a control in > vimc-debayer. > > vimc-debayer was patched to allow changing mean window parameter

Re: [PATCH] clocksource/drivers: Fix error handling in ttc_setup_clocksource

2019-10-23 Thread Markus Elfring
> Fixes: e932900a3279 ("arm: zynq: Use standard timer binding") How do you think about to add the tag “Reported-by” for Michal Simek? https://lore.kernel.org/linux-arm-kernel/2a6cdb63-397b-280a-7379-740e8f43d...@xilinx.com/ https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Do

Re: [PATCH v2] perf jevents: Fix resource leak in process_mapfile() and main()

2019-10-23 Thread Yunfeng Ye
On 2019/10/16 22:25, Arnaldo Carvalho de Melo wrote: > Em Wed, Oct 16, 2019 at 09:50:17PM +0800, Yunfeng Ye escreveu: >> There are memory leaks and file descriptor resource leaks in >> process_mapfile() and main(). >> >> Fix this by adding free(), fclose() and free_arch_std_events() >> on the er

Re: [PATCH] PCI: Warn about host bridge device when its numa node is NO_NODE

2019-10-23 Thread Yunsheng Lin
On 2019/10/23 5:04, Bjorn Helgaas wrote: > On Sat, Oct 19, 2019 at 02:45:43PM +0800, Yunsheng Lin wrote: >> As the disscusion in [1]: > > We need to justify this patch right here in the commit log, not with a > pointer to a 50+ message email thread. Ok, thanks. > >> A PCI device really _MUST_ h

[PATCH v9 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-10-23 Thread Ran Wang
Some user might want to go through all registered wakeup sources and doing things accordingly. For example, SoC PM driver might need to do HW programming to prevent powering down specific IP which wakeup source depending on. So add this API to help walk through all registered wakeup source objects

[PATCH v9 3/3] soc: fsl: add RCPM driver

2019-10-23 Thread Ran Wang
The NXP's QorIQ Processors based on ARM Core have RCPM module (Run Control and Power Management), which performs system level tasks associated with power management such as wakeup source control. This driver depends on PM wakeup source framework which help to collect wake information. Signed-off-

[PATCH v9 2/3] Documentation: dt: binding: fsl: Add 'little-endian' and update Chassis define

2019-10-23 Thread Ran Wang
By default, QorIQ SoC's RCPM register block is Big Endian. But there are some exceptions, such as LS1088A and LS2088A, are Little Endian. So add this optional property to help identify them. Actually LS2021A and other Layerscapes won't totally follow Chassis 2.1, so separate them from powerpc SoC.

Re: [PATCH] PCI: Warn about host bridge device when its numa node is NO_NODE

2019-10-23 Thread Yunsheng Lin
On 2019/10/22 21:55, Robin Murphy wrote: > On 21/10/2019 05:05, Yunsheng Lin wrote: >> On 2019/10/19 16:34, Christoph Hellwig wrote: >>> On Sat, Oct 19, 2019 at 02:45:43PM +0800, Yunsheng Lin wrote: +if (nr_node_ids > 1 && dev_to_node(bus->bridge) == NUMA_NO_NODE) +dev_err(bus

[PATCH] iio: dln2-adc: fix iio_triggered_buffer_postenable() position

2019-10-23 Thread Alexandru Ardelean
The iio_triggered_buffer_postenable() hook should be called first to attach the poll function. The iio_triggered_buffer_predisable() hook is called last (as is it should). This change moves iio_triggered_buffer_postenable() to be called first. It adds iio_triggered_buffer_predisable() on the error

[PATCH] iio: at91-sama5d2_adc: fix iio_triggered_buffer_{predisable,postenable} positions

2019-10-23 Thread Alexandru Ardelean
The iio_triggered_buffer_{predisable,postenable} functions attach/detach poll functions. The iio_triggered_buffer_postenable() should be called first to attach the poll function, and then the driver can init the data to be triggered. Similarly, iio_triggered_buffer_predisable() should be called l

Re: [PATCH v12 2/6] mm: Use zone and order instead of free area in free_list manipulators

2019-10-23 Thread David Hildenbrand
On 23.10.19 00:28, Alexander Duyck wrote: From: Alexander Duyck In order to enable the use of the zone from the list manipulator functions I will need access to the zone pointer. As it turns out most of the accessors were always just being directly passed &zone->free_area[order] anyway so it wo

[PATCH] iio: hdc100x: fix iio_triggered_buffer_{predisable,postenable} positions

2019-10-23 Thread Alexandru Ardelean
The iio_triggered_buffer_postenable() hook should be called first to attach the poll function and the iio_triggered_buffer_predisable() hook should be called last in the predisable hook. This change updates the driver to attach/detach the poll func in the correct order. Signed-off-by: Alexandru A

Re: [PATCH] arch: microblaze: support for reserved-memory entries in DT

2019-10-23 Thread Alvaro Gamez Machado
Hi Michal On Wed, Oct 23, 2019 at 09:59:40AM +0200, Michal Simek wrote: > Hi, > > > On 22. 10. 19 10:19, Alvaro Gamez Machado wrote: > > Signed-off-by: Alvaro Gamez Machado > > please put there reasonable description to commit message. Ok, will use those below as template. > > --- > > arch

[PATCH] can: peak_usb: fix slab info leak

2019-10-23 Thread Johan Hovold
Fix a small slab info leak due to a failure to clear the command buffer at allocation. The first 16 bytes of the command buffer are always sent to the device in pcan_usb_send_cmd() even though only the first two may have been initialised in case no argument payload is provided (e.g. when waiting f

Re: [PATCH v1 1/2] usb: chipidea: use of extcon framework to work for non OTG case

2019-10-23 Thread Peter Chen
On 19-10-22 16:54:30, Igor Opaniuk wrote: > Hi Peter, > > On Tue, Oct 22, 2019 at 5:11 AM Peter Chen wrote: > > > > On 19-10-21 19:16:53, Igor Opaniuk wrote: > > > From: Stefan Agner > > > > > > The existing usage of extcon in chipidea driver freezes the kernel > > > presumably due to OTGSC regi

Re: [PATCH] perf tools: avoid reading out of scope array

2019-10-23 Thread Jiri Olsa
On Thu, Oct 17, 2019 at 10:05:31AM -0700, Ian Rogers wrote: > Modify tracepoint name into 2 sys components and assemble at use. This > avoids the sys_name array being out of scope at the point of use. > Bug caught with LLVM's address sanitizer with fuzz generated input of > ":cs\1" to parse_events.

Re: [PATCH v2] sched/nohz: Optimize get_nohz_timer_target()

2019-10-23 Thread Thomas Gleixner
On Wed, 23 Oct 2019, Wanpeng Li wrote: > I didn't see your refactor to get_nohz_timer_target() which you > mentioned in IRC after four months, I can observe cyclictest drop from > 4~5us to 8us in kvm guest(we offload the lapic timer emulation to > housekeeping cpu to avoid timer fire external inter

Re: [PATCH V2] usb: typec: Add sysfs node to show connector orientation

2019-10-23 Thread Heikki Krogerus
+Guenter On Tue, Oct 22, 2019 at 04:59:24PM +0800, Puma Hsu wrote: > Export the Type-C connector orientation so that user space > can get this information. > > Signed-off-by: Puma Hsu > --- > Documentation/ABI/testing/sysfs-class-typec | 11 +++ > drivers/usb/typec/class.c

[PATCH] dc.c:use kzalloc without test

2019-10-23 Thread zhongshiqi
dc.c:583:null check is needed after using kzalloc function Signed-off-by: zhongshiqi --- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 5d1aded..4b8819c 10

Re: [PATCH] mm/vmstat: Reduce zone lock hold time when reading /proc/pagetypeinfo

2019-10-23 Thread Mel Gorman
On Tue, Oct 22, 2019 at 06:57:45PM +0200, Michal Hocko wrote: > [Cc Mel] > > On Tue 22-10-19 12:21:56, Waiman Long wrote: > > The pagetypeinfo_showfree_print() function prints out the number of > > free blocks for each of the page orders and migrate types. The current > > code just iterates the ea

Re: [PATCH] ASoC: mediatek: Check SND_SOC_CROS_EC_CODEC dependency

2019-10-23 Thread Tzung-Bi Shih
On Wed, Oct 23, 2019 at 2:31 PM Mao Wenan wrote: > > If SND_SOC_MT8183_MT6358_TS3A227E_MAX98357A=y, > below errors can be seen: > sound/soc/codecs/cros_ec_codec.o: In function `send_ec_host_command': > cros_ec_codec.c:(.text+0x534): undefined reference to > `cros_ec_cmd_xfer_status' > cros_ec_cod

Re: [PATCH v2 10/11] gpio: pca953x: Convert to use bitmap API

2019-10-23 Thread Geert Uytterhoeven
Hi Andy, On Wed, Oct 23, 2019 at 10:01 AM Andy Shevchenko wrote: > On Tue, Oct 22, 2019 at 08:03:00PM +0200, Geert Uytterhoeven wrote: > > On Tue, Oct 22, 2019 at 7:29 PM Andy Shevchenko > > wrote: > > > Instead of customized approach convert the driver to use bitmap API. > > > > #define MAX_BA

[PATCH] perf tests: Fix a typo

2019-10-23 Thread Leo Yan
Correct typo in comment: s/suck/stuck. Signed-off-by: Leo Yan --- tools/perf/tests/bp_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/bp_signal.c b/tools/perf/tests/bp_signal.c index 166f411568a5..415903b48578 100644 --- a/tools/perf/tests/bp_signal.

Re: [PATCH v2 1/9] perf tools: add parse events append error

2019-10-23 Thread Jiri Olsa
On Tue, Oct 22, 2019 at 05:53:29PM -0700, Ian Rogers wrote: > Parse event error handling may overwrite one error string with another > creating memory leaks and masking errors. Introduce a helper routine > that appends error messages and avoids the memory leak. good idea, it became little messy wi

Re: [PATCH 3/3] vhost, kcov: collect coverage from vhost_worker

2019-10-23 Thread Dmitry Vyukov
On Tue, Oct 22, 2019 at 6:46 PM Andrey Konovalov wrote: > > This patch adds kcov_remote_start()/kcov_remote_stop() annotations to the > vhost_worker() function, which is responsible for processing vhost works. > Since vhost_worker() threads are spawned per vhost device instance > the common kcov h

[PATCH 0/1] Add support for setting MMIO PREF hotplug bridge size

2019-10-23 Thread Nicholas Johnson
This patch adds support for two new kernel parameters. This patch has been in the making for quite some time, and has changed several times based on feedback. I realised I was making the mistake of putting it as part of my Thunderbolt patch series. Although the other patches in the series are very

Re: [PATCH 0/3] kcov: collect coverage from usb and vhost

2019-10-23 Thread Dmitry Vyukov
On Tue, Oct 22, 2019 at 6:46 PM Andrey Konovalov wrote: > > This patchset extends kcov to allow collecting coverage from the USB > subsystem and vhost workers. See the first patch description for details > about the kcov extension. The other two patches apply this kcov extension > to USB and vhost

[PATCH 1/1] PCI: Add hp_mmio_size and hp_mmio_pref_size parameters

2019-10-23 Thread Nicholas Johnson
Add kernel parameter pci=hpmmiosize=nn[KMG] to set MMIO bridge window size for hotplug bridges. Add kernel parameter pci=hpmmioprefsize=nn[KMG] to set MMIO_PREF bridge window size for hotplug bridges. Leave pci=hpmemsize=nn[KMG] unchanged, to prevent disruptions to existing users. This sets both

Re: [RFC PATCH 11/13] led: bd71828: Support LED outputs on ROHM BD71828 PMIC

2019-10-23 Thread Vaittinen, Matti
Morning Jacek, Thanks for the reply again. I did some cleaning to this mail as it was getting lengthy. On Tue, 2019-10-22 at 19:40 +0200, Jacek Anaszewski wrote: > Matti, > > On 10/22/19 2:40 PM, Vaittinen, Matti wrote: > > Hello Jacek, > > > > Thanks for the clarifications. I think I now under

Re: [PATCH v3 1/2] arm64: Relax ICC_PMR_EL1 accesses when ICC_CTLR_EL1.PMHE is clear

2019-10-23 Thread liwei (GF)
Hi Marc, On 2019/10/2 17:06, Marc Zyngier wrote: > The GICv3 architecture specification is incredibly misleading when it > comes to PMR and the requirement for a DSB. It turns out that this DSB > is only required if the CPU interface sends an Upstream Control > message to the redistributor in orde

Re: [PATCH v4] arm64: dts: imx8mq: Init rates and parents configs for clocks

2019-10-23 Thread Leonard Crestez
On 2019-10-23 9:29 AM, Viorel Suman wrote: > On Mi, 2019-08-21 at 20:39 +, Leonard Crestez wrote: >> The audio PLLs should run below 650 mHz so please use 393216000 and >> 361267200 instead of 786432000 and 722534400. For the 8mm equivalent see >> commit 053a4ffe2988 ("clk: imx: imx8mm: fix aud

Re: [PATCH] ASoC: mediatek: Check SND_SOC_CROS_EC_CODEC dependency

2019-10-23 Thread maowenan
On 2019/10/23 16:32, Tzung-Bi Shih wrote: > On Wed, Oct 23, 2019 at 2:31 PM Mao Wenan wrote: >> >> If SND_SOC_MT8183_MT6358_TS3A227E_MAX98357A=y, >> below errors can be seen: >> sound/soc/codecs/cros_ec_codec.o: In function `send_ec_host_command': >> cros_ec_codec.c:(.text+0x534): undefined ref

Re: [PATCH v2 2/9] perf tools: splice events onto evlist even on error

2019-10-23 Thread Jiri Olsa
On Tue, Oct 22, 2019 at 05:53:30PM -0700, Ian Rogers wrote: > If event parsing fails the event list is leaked, instead splice the list > onto the out result and let the caller cleanup. > > Signed-off-by: Ian Rogers > --- > tools/perf/util/parse-events.c | 17 +++-- > 1 file changed,

Re: [PATCH v5.1 RESEND] dt-bindings: hwrng: Add Samsung Exynos 5250+ True RNG bindings

2019-10-23 Thread Herbert Xu
: > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/devicetree/bindings/rng/samsung,exynos5250-trng.txt?h=next-20191023&id=85552c22f03c9066c33f26f34538b67fee6a91a8 It's because the patch https://patchwork.kernel.org/patch/11181265/ was generated at the wr

RE: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec 0x623

2019-10-23 Thread Kailang
> -Original Message- > From: Takashi Iwai > Sent: Wednesday, October 23, 2019 12:08 AM > To: Aaron Ma > Cc: pe...@perex.cz; Kailang ; > hui.w...@canonical.com; alsa-de...@alsa-project.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] ALSA: hda/realtek - Fix 2 front mics of cod

[PATCH] mm, meminit: Recalculate pcpu batch and high limits after init completes -fix

2019-10-23 Thread Mel Gorman
LKP reported the following build problem from two hunks that did not survive the reshuffling of the series reordering. ld: mm/page_alloc.o: in function `page_alloc_init_late': mm/page_alloc.c:1956: undefined reference to `zone_pcp_update' This is a fix for the mmotm patch mm-meminit-recalculate

[PATCH v2 0/3] phy: cadence: j721e-wiz: Add Type-C plug flip support

2019-10-23 Thread Roger Quadros
Hi, On J721e platform, the 2 lanes of SERDES PHY are used to achieve USB Type-C plug flip support without any additional MUX component by using a lane swap feature. However, the driver needs to know the Type-C plug orientation before it can decide whether to swap the lanes or not. This is achieve

  1   2   3   4   5   6   7   8   >