Re: [PATCH] net/skbuff: silence warnings under memory pressure

2019-09-04 Thread Sergey Senozhatsky
On (09/04/19 15:41), Sergey Senozhatsky wrote: > But the thing is different in case of dump_stack() + show_mem() + > some other output. Because now we ratelimit not a single printk() line, > but hundreds of them. The ratelimit becomes - 10 * $$$ lines in 5 seconds > (IOW, now we talk about thousand

Re: [PATCH 4/4] gpio: Update documentation with ast2600 controllers

2019-09-04 Thread Bartosz Golaszewski
śr., 4 wrz 2019 o 08:13 Rashmica Gupta napisał(a): > Again, this needs a proper commit description and the subject should start with "dt-bindings: ...". You also need to Cc the device-tree maintainers. Use scripts/get_maintainer.pl to list all people that should get this patch. Bart > Signed-o

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

2019-09-04 Thread Greg Kroah-Hartman
On Wed, Sep 04, 2019 at 09:54:27AM +0800, 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 No prob

Re: [PATCH 1/6] soundwire: fix startup sequence for Intel/Cadence

2019-09-04 Thread Vinod Koul
On 13-08-19, 16:32, Pierre-Louis Bossart wrote: > Multiple changes squashed in single patch to avoid tick-tock effect. > > 1. Per the hardware documentation, all changes to MCP_CONFIG, > MCP_CONTROL, MCP_CMDCTRL and MCP_PHYCTRL need to be validated with a > self-clearing write to MCP_CONFIG_UPDATE

[PATCH] KVM: s390: Disallow invalid bits in kvm_valid_regs and kvm_dirty_regs

2019-09-04 Thread Thomas Huth
If unknown bits are set in kvm_valid_regs or kvm_dirty_regs, this clearly indicates that something went wrong in the KVM userspace application. The x86 variant of KVM already contains a check for bad bits (and the corresponding kselftest checks this), so let's do the same on s390x now, too. Signed

Re: [PATCH 2/6] soundwire: cadence_master: add hw_reset capability in debugfs

2019-09-04 Thread Vinod Koul
On 13-08-19, 16:32, Pierre-Louis Bossart wrote: > Provide debugfs capability to kick link and devices into hard-reset > (as defined by MIPI). This capability is really useful when some > devices are no longer responsive and/or to check the software handling > of resynchronization. > > Signed-off-b

[PATCH] soc: imx: imx-scu: Getting UID from SCU should have response

2019-09-04 Thread Anson Huang
The SCU firmware API for getting UID should have response, otherwise, the message stored in function stack could be released and then the response data received from SCU will be stored into that released stack and cause kernel NULL pointer dump. Fixes: 73feb4d0f8f1 ("soc: imx-scu: Add SoC UID(uniq

Re: [PATCH v4 09/12] docs: Add documentation for Symbol Namespaces

2019-09-04 Thread Greg KH
On Tue, Sep 03, 2019 at 04:06:35PM +0100, Matthias Maennich wrote: > Describe using Symbol Namespaces from a perspective of a user. I.e. > module authors or subsystem maintainers. > > Signed-off-by: Matthias Maennich Nice, it's good to have stuff to point people at. Reviewed-by: Greg Kroah-Hart

Re: [PATCH] tty: n_gsm: avoid recursive locking with async port hangup

2019-09-04 Thread Greg Kroah-Hartman
On Thu, Aug 29, 2019 at 09:42:31PM +0200, Martin Hundebøll wrote: > On 22/08/2019 23.56, Martin Hundebøll wrote: > > When tearing down the n_gsm ldisc while one or more of its child ports > > are open, a lock dep warning occurs: > > > > [ 56.254258] ==

Re: [PATCH] net/skbuff: silence warnings under memory pressure

2019-09-04 Thread Sergey Senozhatsky
On (09/04/19 08:54), Michal Hocko wrote: > I am sorry, I could have been more explicit when CCing you. Oh, sorry! My bad! > Sure the ratelimit is part of the problem. But I was more interested > in the potential livelock (infinite loop) mentioned by Qian Cai. It > is not important whether we gene

Re: [PATCH v3 2/2] binder: Validate the default binderfs device names.

2019-09-04 Thread Greg Kroah-Hartman
On Fri, Aug 09, 2019 at 11:41:12AM -0700, Hridya Valsaraju wrote: > On Fri, Aug 9, 2019 at 11:14 AM Christian Brauner > wrote: > > > > On Fri, Aug 09, 2019 at 04:55:08PM +0200, Greg Kroah-Hartman wrote: > > > On Thu, Aug 08, 2019 at 03:27:26PM -0700, Hridya Valsaraju wrote: > > > > Length of a bin

[PATCH v3] mm/hugetlb: avoid looping to the same hugepage if !pages and !vmas

2019-09-04 Thread Zhigang Lu
From: Zhigang Lu When mmapping an existing hugetlbfs file with MAP_POPULATE, we find it is very time consuming. For example, mmapping a 128GB file takes about 50 milliseconds. Sampling with perfevent shows it spends 99% time in the same_page loop in follow_hugetlb_page(). samples: 205 of event

Re: [RFC PATCH 3/5] ASoC: SOF: Intel: hda: add SoundWire IP support

2019-09-04 Thread Vinod Koul
On 21-08-19, 15:17, Pierre-Louis Bossart wrote: > The Core0 needs to be powered before the SoundWire IP is initialized. > > Call sdw_intel_init/exit and store the context. We only have one > context, but depending on the hardware capabilities and BIOS settings > may enable multiple SoundWire links

Re: [PATCH] ext2: Delete an unnecessary check before brelse()

2019-09-04 Thread Jan Kara
On Tue 03-09-19 14:44:08, Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 3 Sep 2019 14:40:18 +0200 > > The brelse() function tests whether its argument is NULL > and then returns immediately. > Thus the test around the call is not needed. > > This issue was detected by using the Cocci

Re: [PATCH 1/1] s390: vfio-ap: fix warning reset not completed

2019-09-04 Thread Christian Borntraeger
On 03.09.19 15:36, Halil Pasic wrote: > The intention seems to be to warn once when we don't wait enough for the > reset to complete. Let's use the right retry counter to accomplish that > semantic. > > Signed-off-by: Halil Pasic Thanks applied. I will let it sit in our tree for some days as I

Re: [PATCH v2] HID: apple: Fix stuck function keys when using FN

2019-09-04 Thread Benjamin Tissoires
On Tue, Sep 3, 2019 at 8:33 PM João Moreno wrote: > > Hi Benjamin, > > On Tue, 3 Sep 2019 at 16:46, Benjamin Tissoires > wrote: > > > > From: Joao Moreno > > > > This fixes an issue in which key down events for function keys would be > > repeatedly emitted even after the user has raised the phys

Re: [PATCH V6 0/3] riscv: Add perf callchain support

2019-09-04 Thread Greentime Hu
Mao Han 於 2019年8月29日 週四 下午2:57寫道: > > This patch set add perf callchain(FP/DWARF) support for RISC-V. > It comes from the csky version callchain support with some > slight modifications. The patchset base on Linux 5.3-rc6. > > Changes since v5: > - use walk_stackframe from stacktrace.c to handle

Re: [PATCH v5] perf machine: arm/arm64: Improve completeness for kernel address space

2019-09-04 Thread Adrian Hunter
On 2/09/19 5:15 PM, Leo Yan wrote: > Hi Adrian, > > On Mon, Aug 26, 2019 at 08:51:05PM +0800, Leo Yan wrote: >> Hi Adrian, >> >> On Fri, Aug 16, 2019 at 04:00:02PM +0300, Adrian Hunter wrote: >>> On 16/08/19 4:45 AM, Leo Yan wrote: Hi Adrian, On Thu, Aug 15, 2019 at 02:45:57PM +0300

RE: [PATCH 1/1] mm/migrate: fix list corruption in migration of non-LRU movable pages

2019-09-04 Thread sunqiuyang
isolate_migratepages_block() from another thread may try to isolate the page again: for (; low_pfn < end_pfn; low_pfn++) { /* ... */ page = pfn_to_page(low_pfn); /* ... */ if (!PageLRU(page)) { if (unlikely(__PageMovable(page)) && !PageIsolated(page)) { /* ... */ if (!i

Re: [PATCH] serial: max310x: turn off transmitter before activating AutoCTS or auto transmitter flow control

2019-09-04 Thread Greg Kroah-Hartman
On Fri, Aug 30, 2019 at 09:58:41AM +, Christoph Vogtländer wrote: > As documented in the data-sheet, the transmitter must be disabled before > activating AutoCTS or auto transmitter flow control. Accordingly, the > transmitter must be enabled after AutoCTS or auto transmitter flow > control get

Re: [PATCH] serial: max310x: Properly set flags in AutoCTS mode

2019-09-04 Thread Greg Kroah-Hartman
On Fri, Aug 30, 2019 at 09:58:34AM +, Christoph Vogtländer wrote: > Commit 391f93f2ec9f ("serial: core: Rework hw-assisted flow control > support") has changed the way the AutoCTS mode is handled. > > According to that change, serial drivers which enable H/W AutoCTS mode must > set UPSTAT_AUTO

[PATCH 3/3] perf stat: Add --per-node agregation support

2019-09-04 Thread Jiri Olsa
Adding new --per-node option to aggregate counts per NUMA nodes for system-wide mode measurements. You can specify --per-node in live mode: # perf stat -a -I 1000 -e cycles --per-node # time node cpus counts unit events 1.000542550 N0 20 6,202,09

[PATCHv2 0/3] perf stat: Add --per-node option

2019-09-04 Thread Jiri Olsa
hi, adding --per-node option to aggregate stats per NUMA nodes, you can get now use stat command like: # perf stat -a -I 1000 -e cycles --per-node # time node cpus counts unit events 1.000542550 N0 20 6,202,097 cycles 1.000542550 N

Re: [PATCH] KVM: s390: Disallow invalid bits in kvm_valid_regs and kvm_dirty_regs

2019-09-04 Thread Janosch Frank
On 9/4/19 9:13 AM, Thomas Huth wrote: > If unknown bits are set in kvm_valid_regs or kvm_dirty_regs, this > clearly indicates that something went wrong in the KVM userspace > application. The x86 variant of KVM already contains a check for > bad bits (and the corresponding kselftest checks this), s

[PATCH 2/3] perf tools: Add perf_env__numa_node function

2019-09-04 Thread Jiri Olsa
To speed up cpu to node lookup, adding perf_env__numa_node function, that creates cpu array on the first lookup, that holds numa nodes for each stored cpu. Link: http://lkml.kernel.org/n/tip-qqwxklhissf3yjyuaszh6...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/env.c | 40 +

[PATCH 1/3] libperf: Add perf_cpu_map__max function

2019-09-04 Thread Jiri Olsa
So it can be used from multiple places. Link: http://lkml.kernel.org/n/tip-yp3h5rl9e8piybufq41zq...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c| 14 +- tools/perf/lib/cpumap.c | 12 tools/perf/lib/include/perf/cpumap.h |

Re: [PATCH] soc: imx: imx-scu: Getting UID from SCU should have response

2019-09-04 Thread Leonard Crestez
On 2019-09-04 10:14 AM, Anson Huang wrote: > The SCU firmware API for getting UID should have response, > otherwise, the message stored in function stack could be > released and then the response data received from SCU will be > stored into that released stack and cause kernel NULL pointer > dump.

Re: [PATCH v2] s390: vfio-ap: remove unnecessary calls to disable queue interrupts

2019-09-04 Thread Christian Borntraeger
Halil, can you also send this patch as a separate mail. This also requires a much better patch description about the why and it certainly should also have an agreement from Anthony. On 30.08.19 18:02, Halil Pasic wrote: > From: Halil Pasic > Date: Fri, 30 Aug 2019 17:39:47 +0200 > Subject: [PA

Re: [RFC PATCH 4/5] ASoC: SOF: Intel: hda: add SoundWire stream config/free callbacks

2019-09-04 Thread Vinod Koul
On 22-08-19, 08:53, Pierre-Louis Bossart wrote: > Thanks for the review Guennadi > > > > +static int sdw_config_stream(void *arg, void *s, void *dai, > > > + void *params, int link_id, int alh_stream_id) > > > > I realise, that these function prototypes aren't being introduce

[PATCH net] ipv4: fix ifa_flags reuse problem in using ifconfig tool

2019-09-04 Thread Su Yanjun
When NetworkManager has already set ipv4 address then uses ifconfig set another ipv4 address. It will use previous ifa_flags that will cause device route not be inserted. As NetworkManager has already support IFA_F_NOPREFIXROUTE flag [1], but ifconfig will reuse the ifa_flags. It's weird especiall

RE: [PATCH] soc: imx: imx-scu: Getting UID from SCU should have response

2019-09-04 Thread Anson Huang
Hi, Leonard > On 2019-09-04 10:14 AM, Anson Huang wrote: > > The SCU firmware API for getting UID should have response, otherwise, > > the message stored in function stack could be released and then the > > response data received from SCU will be stored into that released > > stack and cause kerne

Re: [PATCH] net/skbuff: silence warnings under memory pressure

2019-09-04 Thread Sergey Senozhatsky
On (09/04/19 16:19), Sergey Senozhatsky wrote: > Hmm. I need to look at this more... wake_up_klogd() queues work only once > on particular CPU: irq_work_queue(this_cpu_ptr(&wake_up_klogd_work)); > > bool irq_work_queue() > { > /* Only queue if not already pending */ > if (!irq_work_cla

Re: [PATCH] KVM: s390: Disallow invalid bits in kvm_valid_regs and kvm_dirty_regs

2019-09-04 Thread Christian Borntraeger
On 04.09.19 09:33, Janosch Frank wrote: > On 9/4/19 9:13 AM, Thomas Huth wrote: >> If unknown bits are set in kvm_valid_regs or kvm_dirty_regs, this >> clearly indicates that something went wrong in the KVM userspace >> application. The x86 variant of KVM already contains a check for >> bad bits

Re: [PATCH] USB: dummy-hcd: fix power budget for SuperSpeed mode

2019-09-04 Thread Felipe Balbi
Hi, On Wed, Sep 4, 2019 at 9:47 AM wrote: > > The power budget for SuperSpeed mode should be 900 mA > > according to USB3.0 specification, so set the power > > budget to 900 mA for dummy_start_ss which is only used > > for SuperSpeed mode. > > > > If the max power consumption of SuperSpeed device

Re: [PATCH] i2c: stm32f7: Make structure stm32f7_i2c_algo constant

2019-09-04 Thread Pierre Yves MORDRET
Hi Wolfram Sorry for the delay. Acked-by: Pierre-Yves MORDRET BR On 9/3/19 8:05 PM, Wolfram Sang wrote: > On Thu, Aug 15, 2019 at 11:28:57AM +0530, Nishka Dasgupta wrote: >> Static structure stm32f7_i2c_algo, of type i2c_algorithm, is used only >> when it is assigned to constant field algo of

Re: [PATCH] fs-udf: Delete an unnecessary check before brelse()

2019-09-04 Thread Jan Kara
On Tue 03-09-19 21:15:58, Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 3 Sep 2019 21:12:09 +0200 > > The brelse() function tests whether its argument is NULL > and then returns immediately. > Thus the test around the call is not needed. > > This issue was detected by using the Cocci

[PATCH -next] ASoC: amd: use devm_platform_ioremap_resource() to simplify code

2019-09-04 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/amd/acp-pcm-dma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/ac

[PATCH] USB: dummy-hcd: fix power budget for SuperSpeed mode

2019-09-04 Thread Jacky.Cao
The power budget for SuperSpeed mode should be 900 mA according to USB3.0 specification, so set the power budget to 900 mA for dummy_start_ss which is only used for SuperSpeed mode. If the max power consumption of SuperSpeed device is larger than 500 mA, insufficient available bus power error happ

Re: [PATCH v3 4/7] serial: fsl_linflexuart: Be consistent with the name

2019-09-04 Thread gre...@linuxfoundation.org
On Fri, Aug 23, 2019 at 07:11:37PM +, Stefan-gabriel Mirea wrote: > For consistency reasons, spell the controller name as "LINFlexD" in > comments and documentation. > > Signed-off-by: Stefan-Gabriel Mirea > --- > Documentation/admin-guide/kernel-parameters.txt | 2 +- > drivers/tty/serial/K

Re: [PATCH] USB: dummy-hcd: fix power budget for SuperSpeed mode

2019-09-04 Thread Felipe Balbi
Hi, writes: > The power budget for SuperSpeed mode should be 900 mA > according to USB3.0 specification, so set the power > budget to 900 mA for dummy_start_ss which is only used > for SuperSpeed mode. > > If the max power consumption of SuperSpeed device is > larger than 500 mA, insufficient a

[PATCH 2/2] mmc: block: add CMD13 polling for ioctl() cmd with R1B response

2019-09-04 Thread Chaotian Jing
currently there is no CMD13 polling and other code to wait card change to transfer state after R1B command completed. and this polling operation cannot do in user space, because other request may coming before the CMD13 from user space. Signed-off-by: Chaotian Jing --- drivers/mmc/core/block.c |

Re: [PATCH] KVM: s390: Disallow invalid bits in kvm_valid_regs and kvm_dirty_regs

2019-09-04 Thread Cornelia Huck
On Wed, 4 Sep 2019 09:13:08 +0200 Thomas Huth wrote: > If unknown bits are set in kvm_valid_regs or kvm_dirty_regs, this > clearly indicates that something went wrong in the KVM userspace > application. The x86 variant of KVM already contains a check for > bad bits (and the corresponding kselfte

fix device in programming state after ioctl()

2019-09-04 Thread Chaotian Jing
the user space program may access eMMC by ioctl(), after the ioctl() was completed, it should ensure that eMMC is in transfer state, or it will cause other thread which access eMMC got timeout error, as it assume that card was in transfer state. this patch add CMD13 polling for R1B command to avoi

Re: [PATCH v2 0/3] soc: qcom: llcc cleanups

2019-09-04 Thread Vivek Gautam
On Wed, Sep 4, 2019 at 10:13 AM Bjorn Andersson wrote: > > On Tue 27 Aug 04:01 PDT 2019, Vivek Gautam wrote: > > > On Fri, Aug 2, 2019 at 11:43 AM Vivek Gautam > > wrote: > > > > > > On Thu, Jul 18, 2019 at 6:33 PM Vivek Gautam > > > wrote: > > > > > > > > To better support future versions of ll

[PATCH 1/2] mmc: block: make the card_busy_detect() more generic

2019-09-04 Thread Chaotian Jing
to use the card_busy_detect() to wait card levae the programming state, there may be do not have the "struct request *" argument. Signed-off-by: Chaotian Jing --- drivers/mmc/core/block.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/core/block.

RE: [PATCH] USB: dummy-hcd: fix power budget for SuperSpeed mode

2019-09-04 Thread Jacky.Cao
Hi >You must send plain/text emails. I'm not receiving this via the mailing list. >Please, fix your email client or use git send-email Thank you for your information. I resend mail with text format, would you kind confirm the patch, thank you. Best Regards Jacky -Original Message- From:

[PATCH] sched/core: Fix uclamp ABI bug, clean up and robustify sched_read_attr() ABI logic and code

2019-09-04 Thread Ingo Molnar
* Thadeu Lima de Souza Cascardo wrote: > After commit a509a7cd7974 (sched/uclamp: Extend sched_setattr() to support > utilization clamping), using sched_getattr with size 48 will return E2BIG. > > This breaks, for example, chrt. > $ chrt -p $$ > chrt: failed to get pid 26306's policy: Argument

Re: [PATCH] eeprom: Deprecate the legacy eeprom driver

2019-09-04 Thread Greg Kroah-Hartman
On Mon, Sep 02, 2019 at 10:48:38AM +0200, Jean Delvare wrote: > Time has come to get rid of the old eeprom driver. The at24 driver > should be used instead. So mark the eeprom driver as deprecated and > give users some time to migrate. Then we can remove the legacy > eeprom driver completely. > >

Re: [PATCH] USB: dummy-hcd: fix power budget for SuperSpeed mode

2019-09-04 Thread Greg KH
On Wed, Sep 04, 2019 at 10:54:28AM +0300, Felipe Balbi wrote: > > Hi, > > writes: > > > The power budget for SuperSpeed mode should be 900 mA > > according to USB3.0 specification, so set the power > > budget to 900 mA for dummy_start_ss which is only used > > for SuperSpeed mode. > > > > If th

dma api errors with swiotlb

2019-09-04 Thread VMware
Hi, Cristoph. Another DMA related question before I start to post patches in this area again.. Our virtual SCSI device (which BTW is fully DMA compliant) has a large queue depth and therefore runs out of SWIOTLB space => The scsi middle layer behaves nicely and asks the driver to retry the d

Re: [PATCH v1 1/2] clk: intel: Add CGU clock driver for a new SoC

2019-09-04 Thread Tanwar, Rahul
Hi Martin, On 4/9/2019 2:53 AM, Martin Blumenstingl wrote: My understanding is that if we do not use syscon, then there is no point in using regmap because this driver uses simple 32 bit register access. Can directly read/write registers using readl() & writel(). Would you agree ? if there w

Re: [PATCH 3/3] dt-bindings: regulator: add regulator-fixed-clock binding

2019-09-04 Thread Philippe Schenker
On Tue, 2019-09-03 at 09:45 +0100, Rob Herring wrote: > On Tue, Sep 3, 2019 at 9:03 AM Philippe Schenker > wrote: > > This adds the documentation to the compatible regulator-fixed-clock > > Please explain what that is in this patch. Hi Rob and thanks for your comments. I will change this commit

Re: [PATCH 1/2] ftrace: Fix NULL pointer dereference in t_probe_next()

2019-09-04 Thread Naveen N. Rao
Steven Rostedt wrote: On Thu, 4 Jul 2019 20:04:41 +0530 "Naveen N. Rao" wrote: kernel/trace/ftrace.c | 4 1 file changed, 4 insertions(+) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 7b037295a1f1..0791eafb693d 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/f

Re: [PATCH] platform/chrome: chromeos_tbmc : Report wake events.

2019-09-04 Thread Enric Balletbo i Serra
Hi Ravi, Many thanks for this patch. On 31/8/19 1:14, Ravi Chandra Sadineni wrote: > Mark chromeos_tbmc as wake capable and report wake events. This helps to > abort suspend on seeing a tablet mode switch event when kernel is > suspending. This also helps identifying if chroemos_tbmc is the wake

Re: [RFC,v2 2/6] i2c: add I2C Address Translator (ATR) support

2019-09-04 Thread Peter Rosin
Hi! [ Sorry about my absence. I've been meaning to comment on this series for a long time, but work and family keep interfering... ] On 2019-09-03 09:31, Luca Ceresoli wrote: > Hi Jacopo, > > thanks for your feedback. > > On 01/09/19 16:31, jacopo mondi wrote: >> Hi Luca, >>thanks for kee

Re: [PATCH 1/1] mm/migrate: fix list corruption in migration of non-LRU movable pages

2019-09-04 Thread Michal Hocko
Do not top post please On Wed 04-09-19 07:27:25, sunqiuyang wrote: > isolate_migratepages_block() from another thread may try to isolate the page > again: > > for (; low_pfn < end_pfn; low_pfn++) { > /* ... */ > page = pfn_to_page(low_pfn); > /* ... */ > if (!PageLRU(page)) { > if (un

Re: [PATCH v5 1/2] rpmsg: core: add API to get message length

2019-09-04 Thread Arnaud Pouliquen
Hi Suman On 9/3/19 6:06 PM, Suman Anna wrote: Hi Arnaud, On 9/3/19 4:49 AM, Arnaud Pouliquen wrote: hi Suman On 8/29/19 12:34 AM, Suman Anna wrote: Hi Arnaud, On 8/28/19 10:19 AM, Arnaud Pouliquen wrote: Return the rpmsg buffer size for sending message, so rpmsg users can split a long mess

Re: [PATCH 2/2] sched/debug: add sched_update_nr_running tracepoint

2019-09-04 Thread Peter Zijlstra
On Wed, Sep 04, 2019 at 12:23:10AM -0400, Joel Fernandes wrote: > On Tue, Sep 03, 2019 at 05:05:47PM +0100, Valentin Schneider wrote: > > On 03/09/2019 16:43, Radim Krčmář wrote: > > > The paper "The Linux Scheduler: a Decade of Wasted Cores" used several > > > custom data gathering points to bette

Re: [PATCH V7 1/3] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-09-04 Thread David Hildenbrand
On 03.09.19 11:45, Anshuman Khandual wrote: > Memory hot remove uses get_nid_for_pfn() while tearing down linked sysfs > entries between memory block and node. It first checks pfn validity with > pfn_valid_within() before fetching nid. With CONFIG_HOLES_IN_ZONE config > (arm64 has this enabled) pfn

[PATCH] microblaze: Enable Xilinx AXI emac driver by default

2019-09-04 Thread Michal Simek
Enable Xilinx AXI emac ethernet driver for Microblaze. Signed-off-by: Michal Simek --- arch/microblaze/configs/mmu_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/microblaze/configs/mmu_defconfig b/arch/microblaze/configs/mmu_defconfig index 000da33365c4..43ede33da900 100644

[PATCH] USB: usbfs: check cpu address range before remap

2019-09-04 Thread Nagarjuna Kristam
In usbfs mmap, usb_alloc_coherent is used to allocate memory. This Memory is then remapped to user space memory using remap_pfn_range. remap_pfn_range needs phy address of memory, for which virt_to_phy API is used. This API works only if memory is allocated using kmalloc. But usb_alloc_coherent can

Re: [PATCH] tty: n_gsm: avoid recursive locking with async port hangup

2019-09-04 Thread Jiri Slaby
On 29. 08. 19, 21:42, Martin Hundebøll wrote: > On 22/08/2019 23.56, Martin Hundebøll wrote: >> When tearing down the n_gsm ldisc while one or more of its child ports >> are open, a lock dep warning occurs: >> >> [   56.254258] == >> [   56.26044

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

2019-09-04 Thread Andrii Nakryiko
On 9/3/19 11:00 PM, Stephen Rothwell wrote: > Hi all, > > After merging the net-next tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > scripts/link-vmlinux.sh: 74: Bad substitution > > Caused by commit > >341dfcf8d78e ("btf: expose BTF info through sysfs") > >

Re: [PATCH v5 1/4] ftrace: Implement fs notification for tracing_max_latency

2019-09-04 Thread Peter Zijlstra
On Wed, Sep 04, 2019 at 12:00:39AM -0400, Joel Fernandes wrote: > [ Resending since I messed up my last email's headers! ] > > On Tue, Sep 03, 2019 at 03:25:59PM +0200, Viktor Rosendahl wrote: > > This patch implements the feature that the tracing_max_latency file, > > e.g. /sys/kernel/debug/traci

Re: Re: Re: Re: [PATCH] mm: Add nr_free_highatomimic to fix incorrect watermatk routine

2019-09-04 Thread Michal Hocko
On Wed 04-09-19 15:54:57, Park Sangwoo wrote: > > On Tue 03-09-19 18:59:59, Park Sangwoo wrote: > > > On Mon 02-09-19 13:34:54, Sangwoo� wrote: > > >>> On Fri 30-08-19 18:25:53, Sangwoo wrote: > > The highatomic migrate block can be increased to 1% of Total memory. > > And, this is for on

Re: [PATCH v5 1/4] ftrace: Implement fs notification for tracing_max_latency

2019-09-04 Thread Peter Zijlstra
On Tue, Sep 03, 2019 at 03:25:59PM +0200, Viktor Rosendahl wrote: > It seems like it would be possible to simply replace the calls to > latency_fsnotify_enable/disable() with calls to > start/stop_critical_timings(). However, the main problem is that it > would not work for the wakup tracer. The w

[PATCH] media: meson: Add NULL check after the call to kmalloc()

2019-09-04 Thread Austin Kim
If the kmalloc() return NULL, the NULL pointer dereference will occur. new_ts->ts = ts; Add exception check after the call to kmalloc() is made. Signed-off-by: Austin Kim --- drivers/staging/media/meson/vdec/vdec_helpers.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/

[Patch V8 2/8] phy: tegra: xusb: Add usb3 port fake support on Tegra210

2019-09-04 Thread Nagarjuna Kristam
On Tegra210, usb2 only otg/peripheral ports dont work in device mode. They need an assosciated usb3 port to work in device mode. Identify an unused usb3 port and assign it as a fake USB3 port to USB2 only port whose mode is otg/peripheral. Based on work by BH Hsieh . Signed-off-by: Nagarjuna Kris

[Patch V8 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-09-04 Thread Nagarjuna Kristam
Enable support for Nvidia XUSB device mode controller driver. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 358b163..e9233df 100644 --- a/arch/arm64/configs/d

[Patch V8 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-09-04 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller supports SS, HS and FS modes Based on work by: Mark Kuo Hui Fu Andrew Bresticker Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/usb/gadget/udc/Kconfig | 12 +

[Patch V8 5/8] arm64: tegra: Add xudc node for Tegra210

2019-09-04 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff

[Patch V8 3/8] phy: tegra: xusb: Add vbus override support on Tegra210

2019-09-04 Thread Nagarjuna Kristam
Tegra XUSB device control driver needs to control vbus override during its operations, add API for the support. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 57 +++ drivers/phy/tegra/xusb.c | 22 ++

[Patch V8 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-09-04 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on Tegra210 SoC. This controller supports the USB 3.0 specification. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Reviewed-by: Rob Herring Acked-by: Thierry Reding --- .../devicetree/bindings/usb/nvidia,

[Patch V8 1/8] phy: tegra: xusb: Add XUSB dual mode support on Tegra210

2019-09-04 Thread Nagarjuna Kristam
Configure the port capabilities based on usb_dr_mode settings. Based on work by JC Kuo . Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

[Patch V8 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-09-04 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 31 +- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-

[Patch V8 0/8] Tegra XUSB gadget driver support

2019-09-04 Thread Nagarjuna Kristam
This is the seventh version of series "Tegra XUSB gadget driver support" Patches 1-3 are phy driver changes to add support for device mode. Patches 4-7 are changes related to XUSB device mode controller driver. Patch 8 is to enable XUDC driver in defconfig Test Steps(USB 2.0): - Enable "USB Gadge

[PATCH -next] ASoC: ep93xx: use devm_platform_ioremap_resource() to simplify code

2019-09-04 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/cirrus/ep93xx-ac97.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/cirrus/ep93xx-ac97.c b/sound/soc

Re: [PATCH] net/skbuff: silence warnings under memory pressure

2019-09-04 Thread Michal Hocko
On Wed 04-09-19 16:00:42, Sergey Senozhatsky wrote: > On (09/04/19 15:41), Sergey Senozhatsky wrote: > > But the thing is different in case of dump_stack() + show_mem() + > > some other output. Because now we ratelimit not a single printk() line, > > but hundreds of them. The ratelimit becomes - 10

Re: [PATCH] i2c: cht-wc: drop check because i2c_unregister_device() is NULL safe

2019-09-04 Thread Hans de Goede
Hi, On 03-09-19 19:52, Wolfram Sang wrote: On Tue, Aug 20, 2019 at 05:34:40PM +0200, Wolfram Sang wrote: No need to check the argument of i2c_unregister_device() because the function itself does it. Signed-off-by: Wolfram Sang --- Hans, are you OK with this change? Yes this is fine by me:

Re: [PATCH v5 1/2] mm: Allow the page cache to allocate large pages

2019-09-04 Thread Michal Hocko
On Tue 03-09-19 21:30:30, William Kucharski wrote: > > > > On Sep 3, 2019, at 5:57 AM, Michal Hocko wrote: > > > > On Mon 02-09-19 03:23:40, William Kucharski wrote: > >> Add an 'order' argument to __page_cache_alloc() and > >> do_read_cache_page(). Ensure the allocated pages are compound pages

Re: [GIT PULL 2/3] ARM: samsung: mach for v5.4

2019-09-04 Thread Krzysztof Kozlowski
On Tue, 3 Sep 2019 at 19:32, Arnd Bergmann wrote: > > On Wed, Aug 21, 2019 at 9:52 AM Krzysztof Kozlowski wrote: > > On Fri, 16 Aug 2019 at 18:30, Krzysztof Kozlowski wrote: > > > > > > > Linus Walleij (1): > > > ARM: samsung

[PATCH v2] USB: dummy-hcd: fix power budget for SuperSpeed mode

2019-09-04 Thread Jacky.Cao
The power budget for SuperSpeed mode should be 900 mA according to USB3.0 specification. If the max power consumption of SuperSpeed device is larger than 500 mA, insufficient available bus power error happens in usb_choose_configuration function when the device connects to dummy hcd. Signed-off-b

Re: [PATCH v2] mmc: tegra: Implement enable_dma() to set dma_mask

2019-09-04 Thread Adrian Hunter
On 16/08/19 2:16 AM, Nicolin Chen wrote: > On Thu, Aug 15, 2019 at 02:48:20PM +0300, Adrian Hunter wrote: >> On 14/08/19 3:57 AM, Nicolin Chen wrote: >>> [ Integrated the change and commit message made by Thierry Reding ] >>> >>> The SDHCI controller found in early Tegra SoCs (from Tegra20 through

[PATCH -next] ASoC: sirf-audio: use devm_platform_ioremap_resource() to simplify code

2019-09-04 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/codecs/sirf-audio-codec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/sirf-audio-codec.c

Re: [GIT PULL 1/3] soc: samsung: Exynos for v5.4

2019-09-04 Thread Krzysztof Kozlowski
On Tue, 3 Sep 2019 at 19:21, Arnd Bergmann wrote: > > On Thu, Aug 22, 2019 at 8:35 PM Krzysztof Kozlowski wrote: > > On Wed, Aug 21, 2019 at 09:51:09AM +0200, Krzysztof Kozlowski wrote: > > > On Fri, 16 Aug 2019 at 18:30, Krzysztof Kozlowski wrote: > > > > > > > > The following changes since com

[PATCH -next] ASoC: tegra: use devm_platform_ioremap_resource() to simplify code

2019-09-04 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/tegra/tegra30_ahub.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/s

Re: [virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-09-04 Thread David Hildenbrand
>>> For some reason, I am not seeing this work as I would have expected >>> but I don't have solid reasoning to share yet. It could be simply >>> because I am putting my hook at the wrong place. I will continue >>> investigating this. >>> >>> In any case, I may be over complicating things here, so

Re: Bug?: unlink cause btrfs error but other fs don't

2019-09-04 Thread Hongzhi, Song
Hi Nikolay, > There were multiple fixes from Josef recently improving btrfs enospc handling with tiny filesystems (which is generally not the targeted use case of btrfs). The code lives in https://github.com/kdave/btrfs-devel/commits/misc-next should you want to test it. Otherwise re-test after

Re: [PATCH] media: meson: Add NULL check after the call to kmalloc()

2019-09-04 Thread Rasmus Villemoes
On 04/09/2019 10.22, Austin Kim wrote: > If the kmalloc() return NULL, the NULL pointer dereference will occur. > new_ts->ts = ts; > > Add exception check after the call to kmalloc() is made. > > Signed-off-by: Austin Kim > --- > drivers/staging/media/meson/vdec/vdec_helpers.c | 4 >

Re: [PATCH v2 3/4] drm/ttm, drm/vmwgfx: Correctly support support AMD memory encryption

2019-09-04 Thread VMware
On 9/4/19 10:19 AM, Thomas Hellström (VMware) wrote: Hi, Christian, On 9/4/19 9:33 AM, Koenig, Christian wrote: Am 03.09.19 um 23:05 schrieb Thomas Hellström (VMware): On 9/3/19 10:51 PM, Dave Hansen wrote: On 9/3/19 1:36 PM, Thomas Hellström (VMware) wrote: So the question here should really

[PATCH -next] USB: musb: use devm_platform_ioremap_resource() to simplify code

2019-09-04 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/usb/musb/musb_core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/m

Re: [PATCH v2] mm: emit tracepoint when RSS changes by threshold

2019-09-04 Thread Michal Hocko
On Tue 03-09-19 16:09:05, Joel Fernandes (Google) wrote: > Useful to track how RSS is changing per TGID to detect spikes in RSS and > memory hogs. Several Android teams have been using this patch in various > kernel trees for half a year now. Many reported to me it is really > useful so I'm posting

Re: [PATCH] media: meson: Add NULL check after the call to kmalloc()

2019-09-04 Thread Greg KH
On Wed, Sep 04, 2019 at 05:22:32PM +0900, Austin Kim wrote: > If the kmalloc() return NULL, the NULL pointer dereference will occur. > new_ts->ts = ts; > > Add exception check after the call to kmalloc() is made. > > Signed-off-by: Austin Kim > --- > drivers/staging/media/meson/vdec/vdec_

Re: [PATCH 1/1] soc: qcom: geni: Provide parameter error checking

2019-09-04 Thread Lee Jones
On Tue, 03 Sep 2019, Bjorn Andersson wrote: > On Tue 03 Sep 06:50 PDT 2019, Lee Jones wrote: > > > When booting with ACPI, the Geni Serial Engine is not set as the I2C/SPI > > parent and thus, the wrapper (parent device) is unassigned. This causes > > the kernel to crash with a null dereference

[PATCH -next] usb: phy: keystone: use devm_platform_ioremap_resource() to simplify code

2019-09-04 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/usb/phy/phy-keystone.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-keystone.c b/drivers/u

Re: [PATCH v4 12/12] RFC: watchdog: export core symbols in WATCHDOG_CORE namespace

2019-09-04 Thread Masahiro Yamada
On Wed, Sep 4, 2019 at 1:10 AM Guenter Roeck wrote: > > On Tue, Sep 03, 2019 at 04:06:38PM +0100, Matthias Maennich wrote: > > Modules using symbols from the WATCHDOG_CORE namespace are required to > > explicitly import the namespace. This patch was generated with the > > following steps and serve

Re: [RFC 5/5] ARM: dts: omap3-beagle: make explicitly compatible to ti,omap34xx

2019-09-04 Thread H. Nikolaus Schaller
Hi Tony, > Am 03.09.2019 um 15:40 schrieb Tony Lindgren : > > * H. Nikolaus Schaller [190902 10:56]: >> Matching the ti-cpufreq driver needs to specify explicitly if >> a board uses an omap34xx or omap36xx chip. >> >> Signed-off-by: H. Nikolaus Schaller >> --- >> arch/arm/boot/dts/omap3-beagle

[PATCH -next] usb: phy: mxs: use devm_platform_ioremap_resource() to simplify code

2019-09-04 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/usb/phy/phy-mxs-usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb

Re: [RFC PATCH 2/2] livepatch: Clear relocation targets on a module removal

2019-09-04 Thread Petr Mladek
On Tue 2019-09-03 15:02:34, Miroslav Benes wrote: > On Mon, 2 Sep 2019, Joe Lawrence wrote: > > > On 9/2/19 12:13 PM, Miroslav Benes wrote: > > >> I can easily foresee more problems like those in the future. Going > > >> forward we have to always keep track of which special sections are > > >> ne

[PATCH] soc: samsung: chipid: Make exynos_chipid_early_init() static

2019-09-04 Thread Sylwester Nawrocki
Add missing static qualifier to the chipid initcall function. Signed-off-by: Sylwester Nawrocki --- drivers/soc/samsung/exynos-chipid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index c55a47cfe61

  1   2   3   4   5   6   7   8   9   10   >