[PATCH 0/4] perf: Fix memory errors

2020-05-21 Thread Wei Li
Fix several memory errors in perf tool. Hongbo Yao (1): perf metrictroup: Fix memory leak of metric_events Li Bin (2): perf svghelper: Fix memory leak in svg_build_topology_map perf util: Fix potential segment fault in put_tracepoints_path Xie XiuQi (1): perf util: Fix memory leak of

[PATCH v5 4/6] clocksource/drivers/timer-riscv: Use per-CPU timer interrupt

2020-05-21 Thread Anup Patel
Instead of directly calling RISC-V timer interrupt handler from RISC-V local interrupt conntroller driver, this patch implements RISC-V timer interrupt as a per-CPU interrupt using per-CPU APIs of Linux IRQ subsystem. Signed-off-by: Anup Patel --- arch/riscv/include/asm/irq.h | 2 --

[PATCH v5 2/6] RISC-V: Rename and move plic_find_hart_id() to arch directory

2020-05-21 Thread Anup Patel
The plic_find_hart_id() can be useful to other interrupt controller drivers (such as RISC-V local interrupt driver) so we rename this function to riscv_of_parent_hartid() and place it in arch directory along with riscv_of_processor_hartid(). Signed-off-by: Anup Patel ---

[PATCH v5 1/6] RISC-V: self-contained IPI handling routine

2020-05-21 Thread Anup Patel
Currently, the IPI handling routine riscv_software_interrupt() does not take any argument and also does not perform irq_enter()/irq_exit(). This patch makes IPI handling routine more self-contained by: 1. Passing "pt_regs *" argument 2. Explicitly doing irq_enter()/irq_exit() 3. Explicitly

Re: [PATCH 31/33] sctp: add sctp_sock_set_nodelay

2020-05-21 Thread Marcelo Ricardo Leitner
On Thu, May 21, 2020 at 10:34:42AM +0200, Christoph Hellwig wrote: > On Wed, May 20, 2020 at 08:39:13PM -0300, Marcelo Ricardo Leitner wrote: > > On Wed, May 20, 2020 at 04:23:55PM -0700, David Miller wrote: > > > From: Marcelo Ricardo Leitner > > > Date: Wed, 20 May 2020 20:10:01 -0300 > > > >

[PATCH 4/4] perf util: Fix potential segment fault in put_tracepoints_path

2020-05-21 Thread Wei Li
From: Li Bin This patch fix potential segment fault triggerd in put_tracepoints_path when the address of the local variable 'path' be freed in error path of record_saved_cmdline. Signed-off-by: Li Bin --- tools/perf/util/trace-event-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v5 0/6] New RISC-V Local Interrupt Controller Driver

2020-05-21 Thread Anup Patel
This patchset provides a new RISC-V Local Interrupt Controller Driver for managing per-CPU local interrupts. The overall approach is inspired from the way per-CPU local interrupts are handled by Linux ARM64 and ARM GICv3 driver. Few advantages of this new driver over previous one are: 1. All

Re: [PATCH -tip v2 07/11] kcsan: Update Documentation to change supported compilers

2020-05-21 Thread Will Deacon
On Thu, May 21, 2020 at 01:08:50PM +0200, Marco Elver wrote: > Signed-off-by: Marco Elver > --- > Documentation/dev-tools/kcsan.rst | 9 + > 1 file changed, 1 insertion(+), 8 deletions(-) -ENOCOMMITMSG Will

[PATCH 1/4] perf metrictroup: Fix memory leak of metric_events

2020-05-21 Thread Wei Li
From: Hongbo Yao Fix memory leak of metric_events in function metricgroup__setup_events() Signed-off-by: Hongbo Yao --- tools/perf/util/metricgroup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index

[PATCH v5 3/6] irqchip: RISC-V per-HART local interrupt controller driver

2020-05-21 Thread Anup Patel
The RISC-V per-HART local interrupt controller manages software interrupts, timer interrupts, external interrupts (which are routed via the platform level interrupt controller) and other per-HART local interrupts. This patch adds a driver for the RISC-V local interrupt controller. It is a major

[PATCH 3/4] perf util: Fix memory leak of prefix_if_not_in

2020-05-21 Thread Wei Li
From: Xie XiuQi Need to free "str" before return when asprintf() failed to avoid memory leak. Signed-off-by: Xie XiuQi --- tools/perf/util/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index

[PATCH 2/4] perf svghelper: Fix memory leak in svg_build_topology_map

2020-05-21 Thread Wei Li
From: Li Bin Fix leak of memory pointed to by t.sib_thr and t.sib_core in svg_build_topology_map. Signed-off-by: Li Bin --- tools/perf/util/svghelper.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/svghelper.c b/tools/perf/util/svghelper.c

Re: [PATCH -tip v2 09/11] data_race: Avoid nested statement expression

2020-05-21 Thread Will Deacon
On Thu, May 21, 2020 at 01:08:52PM +0200, Marco Elver wrote: > It appears that compilers have trouble with nested statements > expressions, as such make the data_race() macro be only a single > statement expression. This will help us avoid potential problems in > future as its usage increases. >

[PATCH] media: platform: s3c-camif: Fix runtime PM imbalance on error

2020-05-21 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Also, call pm_runtime_disable() when pm_runtime_get_sync() returns an error code. Signed-off-by: Dinghao

Re: [PATCH v8 5/5] dt-bindings: chosen: Document linux,low-memory-range for arm64 kdump

2020-05-21 Thread Rob Herring
On Thu, May 21, 2020 at 3:35 AM Chen Zhou wrote: > > Add documentation for DT property used by arm64 kdump: > linux,low-memory-range. > "linux,low-memory-range" is an another memory region used for crash > dump kernel devices. > > Signed-off-by: Chen Zhou > --- >

[PATCH v2 2/3] venus: Make debug infrastructure more flexible

2020-05-21 Thread Stanimir Varbanov
Here we introduce few debug macros with levels (low, medium and high) and debug macro for firmware. Enabling the particular level will be done by dynamic debug. For example to enable debug messages with low level: echo 'format "VENUSL" +p' > debugfs/dynamic_debug/control If you want to enable

[PATCH v2 1/3] venus: Add debugfs interface to set firmware log level

2020-05-21 Thread Stanimir Varbanov
This will be useful when debugging specific issues related to firmware HFI interface. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/Makefile| 2 +- drivers/media/platform/qcom/venus/core.c | 5 drivers/media/platform/qcom/venus/core.h | 3 +++

[PATCH v2 3/3] venus: Add a debugfs file for SSR trigger

2020-05-21 Thread Stanimir Varbanov
The SSR (SubSystem Restart) is used to simulate an error on FW side of Venus. We support following type of triggers - fatal error, div by zero and watchdog IRQ. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/dbgfs.c | 31 +++ 1 file changed, 31

[PATCH v2 0/3] Venus dynamic debug

2020-05-21 Thread Stanimir Varbanov
Hello, Here is second version of the dynamic debug series. Few things are changed since v1: * Rebased on current media-tree master * Added one more patch for SSR trigger debug file regards, Stan Stanimir Varbanov (3): venus: Add debugfs interface to set firmware log level venus: Make

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-21 Thread Michal Hocko
On Thu 21-05-20 14:05:30, Chris Down wrote: > Chris Down writes: > > > I believe I have asked in other email in this thread. Could you explain > > > why enforcint the requested target (memcg_nr_pages_over_high) is > > > insufficient for the problem you are dealing with? Because that would > > >

Re: [PATCH V1 RESEND 1/3] perf/imx_ddr: Add system PMU identifier for userspace

2020-05-21 Thread Mark Rutland
On Wed, May 20, 2020 at 08:33:04AM +0100, Will Deacon wrote: > On Tue, May 19, 2020 at 12:51:25PM -0600, Rob Herring wrote: > > On Tue, May 12, 2020 at 03:31:13PM +0800, Joakim Zhang wrote: > > > +static ssize_t ddr_perf_identifier_show(struct device *dev, > > > +

Re: [PATCH -tip v2 03/11] kcsan: Support distinguishing volatile accesses

2020-05-21 Thread Marco Elver
On Thu, 21 May 2020 at 15:18, Will Deacon wrote: > > On Thu, May 21, 2020 at 01:08:46PM +0200, Marco Elver wrote: > > In the kernel, volatile is used in various concurrent context, whether > > in low-level synchronization primitives or for legacy reasons. If > > supported by the compiler, we will

Re: [PATCH v2] sched/cputime: make scale_stime() more precise

2020-05-21 Thread Oleg Nesterov
On 05/20, Peter Zijlstra wrote: > > I had a another go; I ended up with this... Oh, thanks Peter! Oleg.

Re: [PATCH v3 0/7] Introduce features and debugfs/sysfs entries for MHI

2020-05-21 Thread Manivannan Sadhasivam
Hi, On Mon, May 18, 2020 at 01:03:54PM -0700, Bhaumik Bhatt wrote: > Introduce independent bus and device voting mechanism for clients and save > hardware information from BHI. > Allow reading and modifying some MHI variables for debug, test, and > informational purposes using debugfs. > Read

Re: [patch V6 19/37] x86/irq: Convey vector as argument and not in ptregs

2020-05-21 Thread Thomas Gleixner
Andy Lutomirski writes: > On Fri, May 15, 2020 at 5:10 PM Thomas Gleixner wrote: > > + .align 8 >> +SYM_CODE_START(irq_entries_start) >> +vector=FIRST_EXTERNAL_VECTOR >> +.rept (FIRST_SYSTEM_VECTOR - FIRST_EXTERNAL_VECTOR) >> + UNWIND_HINT_IRET_REGS >> + .byte 0x6a,

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-21 Thread Michal Hocko
On Thu 21-05-20 13:57:59, Chris Down wrote: > Michal Hocko writes: > > > A cgroup is a unit and breaking it down into "reclaim fairness" for > > > individual tasks like this seems suspect to me. For example, if one task > > > in > > > a cgroup is leaking unreclaimable memory like crazy, everyone

Re: [PATCH v1 13/25] dma-buf: Use sequence counter with associated wound/wait mutex

2020-05-21 Thread Christian König
Am 21.05.20 um 02:09 schrieb Ahmed S. Darwish: On Wed, May 20, 2020, Christian König wrote: Am 19.05.20 um 23:45 schrieb Ahmed S. Darwish: A sequence counter write side critical section must be protected by some form of locking to serialize writers. If the serialization primitive is not

Re: [PATCH -tip v2 03/11] kcsan: Support distinguishing volatile accesses

2020-05-21 Thread Will Deacon
On Thu, May 21, 2020 at 01:08:46PM +0200, Marco Elver wrote: > In the kernel, volatile is used in various concurrent context, whether > in low-level synchronization primitives or for legacy reasons. If > supported by the compiler, we will assume that aligned volatile accesses > up to sizeof(long

[PATCH] Adjust comments in linux/fs_parser.h

2020-05-21 Thread David Howells
Fix some comments in linux/fs_parser.h that have not kept up with the changes. Signed-off-by: David Howells --- include/linux/fs_parser.h |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/fs_parser.h b/include/linux/fs_parser.h index

Re: [PATCH] drm/amd/amdkfd: Fix large framesize for kfd_smi_ev_read()

2020-05-21 Thread Aurabindo Pillai
On 05/20, Felix Kuehling wrote: > Am 2020-05-20 um 9:53 a.m. schrieb Aurabindo Pillai: > > The buffer allocated is of 1024 bytes. Allocate this from > > heap instead of stack. > > > > Also remove check for stack size since we're allocating from heap > > > > Signed-off-by: Aurabindo Pillai > >

Re: [PATCH 2/7] x86/percpu: Clean up percpu_to_op()

2020-05-21 Thread Brian Gerst
On Wed, May 20, 2020 at 1:26 PM Nick Desaulniers wrote: > > On Mon, May 18, 2020 at 8:38 PM Brian Gerst wrote: > > > > On Mon, May 18, 2020 at 5:15 PM Nick Desaulniers > > wrote: > > > > > > On Sun, May 17, 2020 at 8:29 AM Brian Gerst wrote: > > > > > > > > The core percpu macros already have

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-21 Thread Chris Down
Chris Down writes: I believe I have asked in other email in this thread. Could you explain why enforcint the requested target (memcg_nr_pages_over_high) is insufficient for the problem you are dealing with? Because that would make sense for large targets to me while it would keep relatively

Re: [PATCH V1 RESEND 1/3] perf/imx_ddr: Add system PMU identifier for userspace

2020-05-21 Thread Will Deacon
On Wed, May 20, 2020 at 09:23:41AM -0600, Rob Herring wrote: > On Wed, May 20, 2020 at 1:33 AM Will Deacon wrote: > > > > On Tue, May 19, 2020 at 12:51:25PM -0600, Rob Herring wrote: > > > On Tue, May 12, 2020 at 03:31:13PM +0800, Joakim Zhang wrote: > > > > +static ssize_t

Re: [PATCH v3 11/14] bus: cdmm: Add MIPS R5 arch support

2020-05-21 Thread Serge Semin
On Thu, May 21, 2020 at 01:25:21PM +0300, Sergei Shtylyov wrote: > Hello! > > On 21.05.2020 3:34, Serge Semin wrote: > > > CDMM may be available not only MIPS R2 architectures, but also in > ^ on -re, it's singular Thanks, Sergey. Got it. I'll fix it

Re: [PATCH] watchdog: Fix runtime PM imbalance on error

2020-05-21 Thread Guenter Roeck
On 5/21/20 1:01 AM, Dinghao Liu wrote: > When watchdog_register_device() returns an error code, > a pairing runtime PM usage counter decrement is needed > to keep the counter balanced. > > Signed-off-by: Dinghao Liu Reviewed-by: Guenter Roeck > --- > drivers/watchdog/omap_wdt.c | 1 + > 1

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-21 Thread Chris Down
Michal Hocko writes: A cgroup is a unit and breaking it down into "reclaim fairness" for individual tasks like this seems suspect to me. For example, if one task in a cgroup is leaking unreclaimable memory like crazy, everyone in that cgroup is going to be penalised by allocator throttling as a

[PATCH net-next] Extending bpf_setsockopt with SO_BINDTODEVICE sockopt

2020-05-21 Thread Ferenc Fejes
This option makes possible to programatically bind sockets to netdevices. With the help of this option sockets of VRF unaware applications could be distributed between multiple VRFs with eBPF sock_ops program. This let the applications benefit from the multiple possible routes. Signed-off-by:

Re: [PATCH v3 2/4] media: v4l2-common: add helper functions to call s_stream() callbacks

2020-05-21 Thread Helen Koike
Hi Dafna, On 5/21/20 9:03 AM, Dafna Hirschfeld wrote: > Hi > > On 15.04.20 03:30, Helen Koike wrote: >> Add v4l2_pipeline_stream_{enable,disable} helper functions to iterate >> through the subdevices in a given stream (i.e following links from sink >> to source) and call .s_stream() callback. >>

Re: [PATCH v5 05/19] mtd: spi-nor: add support for DTR protocol

2020-05-21 Thread Pratyush Yadav
Hi, On 21/05/20 05:24PM, masonccy...@mxic.com.tw wrote: > > Hi Pratyush, > > > > @@ -311,6 +313,7 @@ struct flash_info { > > * BP3 is bit 6 of status register. > > * Must be used with SPI_NOR_4BIT_BP. > > */ > > +#define SPI_NOR_OCTAL_DTR_READ

Re: [PATCH] ceph: show max caps in debugfs caps file

2020-05-21 Thread Jeff Layton
On Thu, 2020-05-21 at 20:19 +0800, Yanhu Cao wrote: > On Thu, May 21, 2020 at 7:09 PM Jeff Layton wrote: > > On Thu, 2020-05-21 at 17:38 +0800, Yanhu Cao wrote: > > > before > > > -- > > > total 1026 > > > avail 1024 > > > used

Re: [v4,0/7] Add Mediatek thermal dirver and dtsi

2020-05-21 Thread Matthias Brugger
Hi Michael, On 23/03/2020 13:15, Michael Kao wrote: > This patchset supports for MT8183 chip to mtk_thermal.c. > Add thermal zone of all the thermal sensor in SoC for > another get temperatrue. They don't need to thermal throttle. > And we bind coolers for thermal zone nodes of cpu_thermal. > >

Re: [PATCH v2 03/22] KVM: SVM: immediately inject INTR vmexit

2020-05-21 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > We can immediately leave SVM guest mode in svm_check_nested_events > now that we have the nested_run_pending mechanism. This makes > things easier because we can run the rest of inject_pending_event > with GIF=0, and KVM will naturally end up requesting the next >

Re: [PATCH v3 03/16] spi: dw: Discard static DW DMA slave structures

2020-05-21 Thread Andy Shevchenko
On Thu, May 21, 2020 at 3:12 PM Serge Semin wrote: > On Thu, May 21, 2020 at 12:57:17PM +0300, Andy Shevchenko wrote: > > On Thu, May 21, 2020 at 4:23 AM Serge Semin > > wrote: ... > > Thanks for an update, but that's not what I asked for... > > > > > -static struct dw_dma_slave mid_dma_tx = {

Re: [RFC PATCH 2/2] init: Allow multi-line output of kernel command line

2020-05-21 Thread Sergey Senozhatsky
On (20/05/20 21:40), Andrew Morton wrote: > > On (20/05/20 18:00), Andrew Morton wrote: > > [..] > > > I'm wondering if we shold add a kernel puts() (putsk()? yuk) which can > > > puts() a string of any length. > > > > > > I'm counting around 150 instances of printk("%s", ...) and pr_foo("%s", >

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-05-21 Thread Michal Hocko
On Thu 21-05-20 05:24:27, Hugh Dickins wrote: > On Thu, 21 May 2020, Michal Hocko wrote: > > On Thu 21-05-20 16:11:11, Naresh Kamboju wrote: > > > On Thu, 21 May 2020 at 15:25, Michal Hocko wrote: > > > > > > > > On Wed 20-05-20 20:09:06, Chris Down wrote: > > > > > Hi Naresh, > > > > > > > > > >

Re: [PATCH v2 1/1] dt-bindings: spi: Add schema for Cadence QSPI Controller driver

2020-05-21 Thread Ramuthevar, Vadivel MuruganX
Hi Mark, On 21/5/2020 8:37 pm, Mark Brown wrote: On Thu, May 21, 2020 at 08:34:43PM +0800, Ramuthevar, Vadivel MuruganX wrote: On 21/5/2020 8:20 pm, Mark Brown wrote: I mean that any changes to the bindings ought to be split out into separate patches, if there's multiple changes it may make

Re: Endless soft-lockups for compiling workload since next-20200519

2020-05-21 Thread Frederic Weisbecker
On Thu, May 21, 2020 at 01:00:27PM +0200, Peter Zijlstra wrote: > On Thu, May 21, 2020 at 12:49:37PM +0200, Peter Zijlstra wrote: > > On Thu, May 21, 2020 at 11:39:39AM +0200, Peter Zijlstra wrote: > > > On Thu, May 21, 2020 at 02:40:36AM +0200, Frederic Weisbecker wrote: > > > > > This: > > > >

Re: [PATCH v3 0/7] add support USB for MT8183

2020-05-21 Thread Matthias Brugger
Hi Chungfeng, On 04/09/2019 03:54, Chunfeng Yun wrote: > Hi Greg, > > > Please don't try to pick up this series, the dependent ones are still > under public review, I'll fix build warning and send out new version > after the dependent ones are applied > Sorry for inconvenience > I think

Re: [PATCH] sdhci: tegra: Avoid reading autocal timeout values when not applicable

2020-05-21 Thread Dmitry Osipenko
20.05.2020 23:08, Sowjanya Komatineni пишет: > When auto calibration timeouts, calibration is disabled and fail-safe > drive strength values are programmed based on the signal voltage. > > Different fail-safe drive strength values based on voltage are > applicable only for SoCs supporting 3V3 and

Re: [PATCH 1/3] arm64: dts: mt8183: Add gce setting in display node

2020-05-21 Thread Matthias Brugger
On 21/05/2020 12:47, Bibby Hsieh wrote: > On Thu, 2020-05-21 at 12:10 +0200, Matthias Brugger wrote: >> On 14/02/2020 11:06, Matthias Brugger wrote: >>> >>> >>> On 14/02/2020 05:49, Bibby Hsieh wrote: In order to use GCE function, we need add some information into display node

[PATCH] files: Use rcu lock to get the file structures for better performance

2020-05-21 Thread Muchun Song
There is another safe way to get the file structure without holding the files->file_lock. That is rcu lock, and this way has better performance. So use the rcu lock instead of the files->file_lock. Signed-off-by: Muchun Song --- fs/proc/fd.c | 31 ---

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-21 Thread Michal Hocko
On Thu 21-05-20 13:23:27, Chris Down wrote: > (I'll leave the dirty throttling discussion to Johannes, because I'm not so > familiar with that code or its history.) > > Michal Hocko writes: > > > > The main problem I see with that approach is that the loop could easily > > > > lead to reclaim

Re: [PATCH v2 1/1] dt-bindings: spi: Add schema for Cadence QSPI Controller driver

2020-05-21 Thread Mark Brown
On Thu, May 21, 2020 at 08:34:43PM +0800, Ramuthevar, Vadivel MuruganX wrote: > On 21/5/2020 8:20 pm, Mark Brown wrote: > > I mean that any changes to the bindings ought to be split out into > > separate patches, if there's multiple changes it may make sense for > > there to be multiple patches.

[PATCH] mwifiex: Add support for NL80211_ATTR_MAX_AP_ASSOC_STA

2020-05-21 Thread Pali Rohár
SD8997 firmware sends TLV_TYPE_MAX_CONN with struct hw_spec_max_conn to inform kernel about maximum number of p2p connections and stations in AP mode. During initialization of SD8997 wifi chip kernel prints warning: mwifiex_sdio mmc0:0001:1: Unknown GET_HW_SPEC TLV type: 0x217 This patch adds

Re: [PATCH 0/3] arm64: perf: Add support for Perf NMI interrupts

2020-05-21 Thread Alexandru Elisei
Hi, On 5/21/20 4:00 AM, Song Bao Hua (Barry Song) wrote: > >> -Original Message- >> From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] >> On Behalf Of Alexandru Elisei >> Sent: Wednesday, May 20, 2020 10:31 PM> >> Hi, >> >> On 5/18/20 12:17 PM, Alexandru Elisei

Re: [net-next RFC PATCH 00/13] net: hsr: Add PRP driver

2020-05-21 Thread Murali Karicheri
Hi David, et all, On 5/13/20 8:27 AM, Murali Karicheri wrote: Hello netdev experts, On 5/6/20 12:30 PM, Murali Karicheri wrote: This RFC series add support for Parallel Redundancy Protocol (PRP) as defined in IEC-62439-3 in the kernel networking subsystem. PRP Uses a Redundancy Control

[PATCH] mwifiex: Parse all API_VER_ID properties

2020-05-21 Thread Pali Rohár
During initialization of SD8997 wifi chip kernel prints warnings: mwifiex_sdio mmc0:0001:1: Unknown api_id: 3 mwifiex_sdio mmc0:0001:1: Unknown api_id: 4 This patch adds support for parsing all api ids provided by SD8997 firmware. Signed-off-by: Pali Rohár ---

Re: [PATCH v2 1/1] dt-bindings: spi: Add schema for Cadence QSPI Controller driver

2020-05-21 Thread Ramuthevar, Vadivel MuruganX
Hi Mark, On 21/5/2020 8:20 pm, Mark Brown wrote: On Thu, May 21, 2020 at 08:14:04PM +0800, Ramuthevar, Vadivel MuruganX wrote: On 21/5/2020 6:56 pm, Mark Brown wrote: That doesn't address either of the issues. The removal of the old bindings and addition of the YAML ones needs to be in a

Re: [RFC PATCH 2/2] init: Allow multi-line output of kernel command line

2020-05-21 Thread Petr Mladek
On Wed 2020-05-20 21:40:07, Andrew Morton wrote: > On Thu, 21 May 2020 13:36:28 +0900 Sergey Senozhatsky > wrote: > > > On (20/05/20 18:00), Andrew Morton wrote: > > [..] > > > I'm wondering if we shold add a kernel puts() (putsk()? yuk) which can > > > puts() a string of any length. > > > >

[RESEND PATCH V13 2/3] dt-bindings: input: Add document bindings for DA7280

2020-05-21 Thread Roy Im
Add device tree binding information for DA7280 haptic driver. Example bindings for DA7280 are added. Reviewed-by: Rob Herring . Signed-off-by: Roy Im --- v13: No changes. v12: No changes. v11: No changes. v10: No changes. v9: No changes. v8: Updated descriptions for new properties. v7: No

[RESEND PATCH V13 3/3] Input: new da7280 haptic driver

2020-05-21 Thread Roy Im
Adds support for the Dialog DA7280 LRA/ERM Haptic Driver with multiple mode and integrated waveform memory and wideband support. It communicates via an I2C bus to the device. Signed-off-by: Roy Im --- v13: - Updated some conditions in pwm function and alignments. v12: No changes. v11:

[RESEND PATCH V13 1/3] MAINTAINERS: da7280 updates to the Dialog Semiconductor search terms

2020-05-21 Thread Roy Im
This patch adds the da7280 bindings doc and driver to the Dialog Semiconductor support list. Signed-off-by: Roy Im --- v13: No changes. v12: Corrected file list order. v11: No changes. v10: No changes. v9: No changes. v8: No changes. v7: No changes. v6: No changes. v5: No changes. v4: No

[RESEND PATCH V13 0/3] da7280: haptic driver submission

2020-05-21 Thread Roy Im
This patch adds support for the Dialog DA7280 Haptic driver IC. In this patch set the following is provided: [PATCH V13 1/3] MAINTAINERS file update for DA7280 [PATCH V13 2/3] DA7280 DT Binding [PATCH V13 3/3] DA7280 Driver This patch applies against linux-next and v5.7-rc4 Thank you, Roy Im,

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-21 Thread Michal Hocko
On Thu 21-05-20 12:27:11, Chris Down wrote: [...] > Regardless, you're pushing for different reclaim semantics for memory.high > than memory.max here, which requires evidence that the current approach > taken for memory.max is wrong or causing issues. Sorry, I have skipped over this part. Memory

Re: [RFC PATCH] arm64: dts: rockchip: fix dmas dma-names for rk3308 i2s node

2020-05-21 Thread Johan Jonker
Hi Robin, Kever, Caesar, On 5/21/20 1:48 PM, Robin Murphy wrote: > On 2020-05-20 07:48, Johan Jonker wrote: >> One of the current rk3308 'i2s' nodes has a different dma layout >> with only 1 item. Table 9-2 DMAC1 Request Mapping Table shows that >> there 2 dma sources available, so fix the dmas

[PATCH v5 1/3] interconnect: Export of_icc_get_from_provider()

2020-05-21 Thread Sylwester Nawrocki
From: Artur Świgoń This patch makes the above function public (for use in exynos-bus devfreq driver). Signed-off-by: Artur Świgoń Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi Signed-off-by: Sylwester Nawrocki --- drivers/interconnect/core.c | 3 ++-

[PATCH v5 2/3] interconnect: Relax requirement in of_icc_get_from_provider()

2020-05-21 Thread Sylwester Nawrocki
From: Artur Świgoń This patch relaxes the condition in of_icc_get_from_provider() so that it is no longer required to set '#interconnect-cells' to <1> in the DT, and therefore it is not required to supply dummy node IDs in the 'interconnects' property when node IDs are dynamically generated

[PATCH v5 0/3] interconnect: Support Samsung Exynos use-case

2020-05-21 Thread Sylwester Nawrocki
Hi All, This is a continuation of Artur's efforts to add interconnect and PM QoS support for Exynos SoCs. Previous version of the patch set can be found at [1]. The only change comparing to v4 is an addition of missing 'static inline' qualifier to the of_icc_get_from_provider() function stub,

[PATCH v5 3/3] interconnect: Allow inter-provider pairs to be configured

2020-05-21 Thread Sylwester Nawrocki
From: Artur Świgoń This patch adds support for a new boolean 'inter_set' field in struct icc_provider. Setting it to 'true' enables calling '->set' for inter-provider node pairs. All existing users of the interconnect framework allocate this structure with kzalloc, and are therefore unaffected

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-21 Thread Chris Down
Chris Down writes: A cgroup is a unit and breaking it down into "reclaim fairness" for individual tasks like this seems suspect to me. For example, if one task in a cgroup is leaking unreclaimable memory like crazy, everyone in that cgroup is going to be penalised by allocator throttling as a

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-05-21 Thread Hugh Dickins
On Thu, 21 May 2020, Michal Hocko wrote: > On Thu 21-05-20 16:11:11, Naresh Kamboju wrote: > > On Thu, 21 May 2020 at 15:25, Michal Hocko wrote: > > > > > > On Wed 20-05-20 20:09:06, Chris Down wrote: > > > > Hi Naresh, > > > > > > > > Naresh Kamboju writes: > > > > > As a part of investigation

Re: [PATCH v4 2/2] mailbox: sprd: Add Spreadtrum mailbox driver

2020-05-21 Thread Baolin Wang
Hi Jassi, On Wed, May 13, 2020 at 2:32 PM Baolin Wang wrote: > > On Wed, May 13, 2020 at 2:05 PM Jassi Brar wrote: > > > > On Tue, May 12, 2020 at 11:14 PM Baolin Wang wrote: > > > > > > Hi Jassi, > > > > > > On Thu, May 7, 2020 at 11:23 AM Baolin Wang > > > wrote: > > > > > > > > Hi Jassi,

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-21 Thread Chris Down
(I'll leave the dirty throttling discussion to Johannes, because I'm not so familiar with that code or its history.) Michal Hocko writes: > The main problem I see with that approach is that the loop could easily > lead to reclaim unfairness when a heavy producer which doesn't leave the >

Re: [PATCH 0/2] opp: core: add regulators enable and disable

2020-05-21 Thread Clément Péron
Hi, On Fri, 15 May 2020 at 14:00, Clément Péron wrote: > > Hi Viresh, > > On Fri, 15 May 2020 at 09:57, Viresh Kumar wrote: > > > > Hi, > > > > This series reintroduces the usage of regulator_enable/disable() to the > > OPP core after the previous attempt was reverted [1] shortly after getting

Re: Re: Re: [PATCH] [v2] media: staging: tegra-vde: fix runtime pm imbalance on error

2020-05-21 Thread dinghao . liu
Sorry, I misunderstood your idea before. A new function is the best solution for this problem. Regards, Dinghao Dan Carpenter dan.carpen...@oracle.com写道: > On Thu, May 21, 2020 at 07:42:56PM +0800, dinghao@zju.edu.cn wrote: > > We need to make sure if pm_runtime_get_sync() is designed with

Re: [PATCH v2 1/1] dt-bindings: spi: Add schema for Cadence QSPI Controller driver

2020-05-21 Thread Mark Brown
On Thu, May 21, 2020 at 08:14:04PM +0800, Ramuthevar, Vadivel MuruganX wrote: > On 21/5/2020 6:56 pm, Mark Brown wrote: > > That doesn't address either of the issues. The removal of the old > > bindings and addition of the YAML ones needs to be in a single patch > > doing that conversion. What

[PATCH] exfat: add the dummy mount options to be backward compatible with staging/exfat

2020-05-21 Thread Namjae Jeon
As Ubuntu and Fedora release new version used kernel version equal to or higher than v5.4, They started to support kernel exfat filesystem. Linus Torvalds reported mount error with new version of exfat on Fedora. exfat: Unknown parameter 'namecase' This is because there is a difference

Re: [PATCH] ceph: show max caps in debugfs caps file

2020-05-21 Thread Yanhu Cao
On Thu, May 21, 2020 at 7:09 PM Jeff Layton wrote: > > On Thu, 2020-05-21 at 17:38 +0800, Yanhu Cao wrote: > > before > > -- > > total 1026 > > avail 1024 > > used2 > > reserved0 > > min

Re: [PATCH v2 1/1] dt-bindings: spi: Add schema for Cadence QSPI Controller driver

2020-05-21 Thread Ramuthevar, Vadivel MuruganX
Hi Mark, On 21/5/2020 6:56 pm, Mark Brown wrote: On Thu, May 21, 2020 at 10:18:26AM +0800, Ramuthevar, Vadivel MuruganX wrote: On 20/5/2020 8:43 pm, Mark Brown wrote: On Wed, May 20, 2020 at 08:36:12PM +0800, Ramuthevar,Vadivel MuruganX wrote:

[RFC PATCH v2] kbuild: add variables for compression tools

2020-05-21 Thread Denis Efremov
Allow user to use alternative implementations of compression tools. For example, multi-threaded tools to speed up the build: $ make GZIP=pigz BZIP2=pbzip2 Variable _GZIP is used internally instead of GZIP because the latter is reserved by the tool. The use of GZIP in gzip tool is obsolete since

Re: [PATCH v3 4/4] PCI: cadence: Use "dma-ranges" instead of "cdns,no-bar-match-nbits" property

2020-05-21 Thread Kishon Vijay Abraham I
Rob, On 5/21/2020 9:00 AM, Kishon Vijay Abraham I wrote: > Hi Rob, > > On 5/19/2020 10:41 PM, Rob Herring wrote: >> On Fri, May 8, 2020 at 7:07 AM Kishon Vijay Abraham I wrote: >>> >>> Cadence PCIe core driver (host mode) uses "cdns,no-bar-match-nbits" >>> property to configure the number of

[PATCH] media: camss: ispif: Fix runtime PM imbalance on error

2020-05-21 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/media/platform/qcom/camss/camss-ispif.c | 4 +++- 1 file changed,

Re: Re: [PATCH] [v2] media: staging: tegra-vde: fix runtime pm imbalance on error

2020-05-21 Thread Dan Carpenter
On Thu, May 21, 2020 at 07:42:56PM +0800, dinghao@zju.edu.cn wrote: > We need to make sure if pm_runtime_get_sync() is designed with > such behavior before modifying it. > > I received a response from Rafael when I commited a similar patch: > https://lkml.org/lkml/2020/5/20/1100 > It seems

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-21 Thread Michal Hocko
On Thu 21-05-20 12:27:11, Chris Down wrote: > Michal Hocko writes: > > On Wed 20-05-20 21:26:50, Chris Down wrote: > > > Michal Hocko writes: > > > > Let me try to understand the actual problem. The high memory reclaim has > > > > a target which is proportional to the amount of charged memory. For

Re: [PATCH] kthread: Use TASK_IDLE state for newly created kernel threads

2020-05-21 Thread Greg Kroah-Hartman
On Thu, May 21, 2020 at 03:21:25PM +0530, Pavan Kondeti wrote: > On Thu, May 21, 2020 at 07:56:39AM +0200, Greg Kroah-Hartman wrote: > > On Thu, May 21, 2020 at 07:05:44AM +0530, Pavan Kondeti wrote: > > > On Wed, May 20, 2020 at 08:18:58PM +0200, Greg Kroah-Hartman wrote: > > > > On Wed, May 20,

Re: [PATCH v3 2/4] media: v4l2-common: add helper functions to call s_stream() callbacks

2020-05-21 Thread Dafna Hirschfeld
Hi On 15.04.20 03:30, Helen Koike wrote: Add v4l2_pipeline_stream_{enable,disable} helper functions to iterate through the subdevices in a given stream (i.e following links from sink to source) and call .s_stream() callback. Add stream_count on the subdevice object for simultaneous streaming

Re: [PATCH v2 0/8] exec: Control flow simplifications

2020-05-21 Thread Eric W. Biederman
Kees Cook writes: > On Wed, May 20, 2020 at 05:12:10PM -0500, Eric W. Biederman wrote: >> >> I have pushed this out to: >> >> git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git >> exec-next >> >> I have collected up the acks and reviewed-by's, and fixed a couple of >>

[PATCH] media: camss: vfe: Fix runtime PM imbalance on error

2020-05-21 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/media/platform/qcom/camss/camss-vfe.c | 10 -- 1 file

linux-next: build warning after merge of the tip tree

2020-05-21 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allnoconfig) produced this warning: arch/x86/kernel/traps.c: In function 'exc_double_fault': arch/x86/kernel/traps.c:332:16: warning: unused variable 'address' [-Wunused-variable] 332 | unsigned long address = read_cr2();

[PATCH v4 2/2] mfd: ene-kb3930: Add driver for ENE KB3930 Embedded Controller

2020-05-21 Thread Lubomir Rintel
This driver provides access to the EC RAM of said embedded controller attached to the I2C bus as well as optionally supporting its slightly weird power-off/restart protocol. A particular implementation of the EC firmware can be identified by a model byte. If this driver identifies the Dell Ariel

[PATCH v4 0/2] mfd: Add ENE KB3930 Embedded Controller driver

2020-05-21 Thread Lubomir Rintel
Hi, please consider applying the patches chained to this message. It's the fourth version of the driver for the ENE KB3930 Embedded Controller. This version attempts to address the issues pointed out in review of v3. A more detailed change log it in the patch description of patch 2/2. Thanks,

[PATCH v4 1/2] dt-bindings: mfd: Add ENE KB3930 Embedded Controller binding

2020-05-21 Thread Lubomir Rintel
Add binding document for the ENE KB3930 Embedded Controller. Signed-off-by: Lubomir Rintel --- Changes since v1: - Addressed binding validation failure --- .../devicetree/bindings/mfd/ene-kb3930.yaml | 55 +++ 1 file changed, 55 insertions(+) create mode 100644

Re: linux-next: Signed-off-by missing for commit in the printk tree

2020-05-21 Thread Petr Mladek
On Thu 2020-05-21 08:04:56, Stephen Rothwell wrote: > Hi all, > > Commit > > bdb7f0530926 ("printk: Fix a typo in comment "interator"->"iterator"") > > is missing a Signed-off-by from its committer. Thanks for catching this. It should be fixed now. Best Regards, Petr

[PATCH] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-05-21 Thread Jonathan McDowell
The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error like: [ 59.028131] ipq806x-gmac-dwmac 3760.ethernet: Failed to reset the dma [

Re: [PATCH v3 3/9] perf stat: factor out event handling loop into a function

2020-05-21 Thread Jiri Olsa
On Wed, May 20, 2020 at 06:17:40PM +0300, Alexey Budankov wrote: SNIP > >> @@ -675,16 +708,9 @@ static int __run_perf_stat(int argc, const char > >> **argv, int run_idx) > >>perf_evlist__start_workload(evsel_list); > >>enable_counters(); > >> > >> - if

Re: [RFC PATCH] arm64: dts: rockchip: fix dmas dma-names for rk3308 i2s node

2020-05-21 Thread Robin Murphy
On 2020-05-20 07:48, Johan Jonker wrote: One of the current rk3308 'i2s' nodes has a different dma layout with only 1 item. Table 9-2 DMAC1 Request Mapping Table shows that there 2 dma sources available, so fix the dmas and dma-names for the rk3308 'i2s' node. 10 I2S/PCM_2CH_1 tx High level 11

Re: [PATCH v3 01/16] spi: dw: Add Tx/Rx finish wait methods to the MID DMA

2020-05-21 Thread Serge Semin
Hello Feng, On Thu, May 21, 2020 at 11:09:24AM +0800, Feng Tang wrote: > Hi Serge, > > On Thu, May 21, 2020 at 04:21:51AM +0300, Serge Semin wrote: [nip] > > /* > > * dws->dma_chan_busy is set before the dma transfer starts, callback for > > rx > > * channel will clear a corresponding

Re: [PATCH v4 0/7] firmware: smccc: Add basic SMCCC v1.2 + ARCH_SOC_ID support

2020-05-21 Thread Russell King - ARM Linux admin
On Thu, May 21, 2020 at 12:31:32PM +0200, Arnd Bergmann wrote: > On Thu, May 21, 2020 at 12:14 PM Russell King - ARM Linux admin > wrote: > > > > On Thu, May 21, 2020 at 11:06:23AM +0200, Arnd Bergmann wrote: > > > Note that the warning should come up for either W=1 or C=1, and I also > > > think

Re: [PATCH v2 0/7] Share events between metrics

2020-05-21 Thread Jiri Olsa
On Wed, May 20, 2020 at 11:20:04AM -0700, Ian Rogers wrote: SNIP > There are 5 out of 12 metric groups where no events are shared, such > as Power, however, disabling grouping of events always reduces the > number of events. > > The result for Memory_BW needs explanation: > > Metric group:

Re: Re: [PATCH] [v2] media: staging: tegra-vde: fix runtime pm imbalance on error

2020-05-21 Thread dinghao . liu
We need to make sure if pm_runtime_get_sync() is designed with such behavior before modifying it. I received a response from Rafael when I commited a similar patch: https://lkml.org/lkml/2020/5/20/1100 It seems that this behavior is intentional and needs to be kept. Regards, Dinghao Dan

<    5   6   7   8   9   10   11   12   13   >