[PATCH v5 14/20] PM / devfreq: tegra30: Don't enable consecutive-down interrupt on startup

2019-07-30 Thread Dmitry Osipenko
The consecutive-down event tells that we should perform frequency de-boosting, but boosting is in a reset state on start and hence the event won't do anything useful for us and it will be just a dummy interrupt request. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 1 -

[PATCH v5 18/20] PM / devfreq: tegra30: Define ACTMON_DEV_CTRL_STOP

2019-07-30 Thread Dmitry Osipenko
Add verbose definition for the client's device control register value that makes ACTMON to stop monitoring of the device. Suggested-by: Chanwoo Choi Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v5 20/20] PM / devfreq: tegra20/30: Add Dmitry as a maintainer

2019-07-30 Thread Dmitry Osipenko
I was contributing to the NVIDIA Tegra20+ devfreq drivers recently and want to help keep them working and evolving in the future. Acked-by: Chanwoo Choi Signed-off-by: Dmitry Osipenko --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v5 06/20] PM / devfreq: tegra30: Tune up boosting thresholds

2019-07-30 Thread Dmitry Osipenko
Now that average-sustain coefficient / multiplier is gone, it won't hurt to re-tune the boosting thresholds to get a bit harder boosting for MCALL clients, resulting in a more reactive governing in a case of multimedia applications usage like 3d / video. Reviewed-by: Chanwoo Choi Signed-off-by:

[PATCH v5 01/20] PM / devfreq: tegra30: Change irq type to unsigned int

2019-07-30 Thread Dmitry Osipenko
IRQ numbers are always positive, hence the corresponding variable should be unsigned to keep types consistent. This is a minor change that cleans up code a tad more. Suggested-by: Thierry Reding Acked-by: MyungJoo Ham Reviewed-by: Chanwoo Choi Signed-off-by: Dmitry Osipenko ---

[PATCH v5 13/20] PM / devfreq: tegra30: Reset boosting on startup

2019-07-30 Thread Dmitry Osipenko
Governor could be stopped while boosting is active. We have assumption that everything is reset on governor's restart, including the boosting value, which was missed. Reviewed-by: Chanwoo Choi Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 3 +++ 1 file changed, 3

[PATCH v5 19/20] PM / devfreq: tegra30: Support variable polling interval

2019-07-30 Thread Dmitry Osipenko
The ACTMON governor is interrupt-driven and currently hardware's polling interval is fixed to 16ms in the driver. Devfreq supports variable polling interval by the generic governors, let's re-use the generic interface for changing of the polling interval. Now the polling interval can be changed

[PATCH v5 07/20] PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out

2019-07-30 Thread Dmitry Osipenko
There is another kHz-conversion bug in the code, resulting in integer overflow. Although, this time the resulting value is 4294966296 and it's close to ULONG_MAX, which is okay in this case. Reviewed-by: Chanwoo Choi Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 4 +++-

[PATCH v5 03/20] PM / devfreq: tegra30: Handle possible round-rate error

2019-07-30 Thread Dmitry Osipenko
The EMC clock rate rounding technically could fail, hence let's handle the error cases properly. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/tegra30-devfreq.c

[PATCH v5 00/20] More improvements for Tegra30 devfreq driver

2019-07-30 Thread Dmitry Osipenko
Hello, This series addresses some additional review comments that were made by Thierry Reding to [1], makes several important changes to the driver, fixing excessive interrupts activity, and adds new features. In the end I'm proposing myself as a maintainer for the Tegra devfreq drivers. [1]

Re: [PATCH v3 2/2] ARM: dts: imx6ul-kontron-n6310: Add Kontron i.MX6UL N6310 SoM and boards

2019-07-30 Thread Fabio Estevam
Hi Krzysztof, On Mon, Jul 29, 2019 at 2:20 PM Krzysztof Kozlowski wrote: > --- a/Documentation/devicetree/bindings/eeprom/at25.txt > +++ b/Documentation/devicetree/bindings/eeprom/at25.txt > @@ -3,6 +3,7 @@ EEPROMs (SPI) compatible with Atmel at25. > Required properties: > - compatible :

Re: [PATCH v3] modpost: check for static EXPORT_SYMBOL* functions

2019-07-30 Thread Masahiro Yamada
On Tue, Jul 30, 2019 at 4:00 PM Denis Efremov wrote: > > On 30.07.2019 01:26, Stephen Rothwell wrote: > > Hi Denis, > > > > On Mon, 29 Jul 2019 17:18:01 +0300 Denis Efremov wrote: > >> > >> This patch adds a check to warn about static EXPORT_SYMBOL* functions > >> during the modpost. In most of

Re: [PATCH RFC v3 0/14] sched,fair: flatten CPU controller runqueues

2019-07-30 Thread Peter Zijlstra
On Mon, Jul 22, 2019 at 01:33:34PM -0400, Rik van Riel wrote: > Plan for the CONFIG_CFS_BANDWIDTH reimplementation: > - When a cgroup gets throttled, mark the cgroup and its children > as throttled. > - When pick_next_entity finds a task that is on a throttled cgroup, > stash it on the cgroup

Re: [alsa-devel] [PATCH v2 3/3] ASoC: TDA7802: Add turn-on diagnostic routine

2019-07-30 Thread Thomas Preston
On 30/07/2019 16:50, Mark Brown wrote: > On Tue, Jul 30, 2019 at 04:25:56PM +0100, Thomas Preston wrote: >> On 30/07/2019 15:19, Mark Brown wrote: > >>> It is unclear what this mutex usefully protects, it only gets taken when >>> writing to the debugfs file to trigger this diagnostic mode but

"mm: account nr_isolated_xxx in [isolate|putback]_lru_page" breaks OOM with swap

2019-07-30 Thread Qian Cai
.983431][  T711]   Not tainted 5.3.0-rc2-next-20190730 #7 [  509.983447][  T711] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [  509.983477][  T711] oom01   D24656  5331   5157 0x0004 [  509.983513][  T711] Call Trace: [  509.98353

Re: [PATCH 2/2] locking/mutex: Use mutex flags macro instead of hard code value

2019-07-30 Thread Mukesh Ojha
On 7/30/2019 9:32 PM, Peter Zijlstra wrote: On Tue, Jul 30, 2019 at 06:10:49PM +0530, Mukesh Ojha wrote: To make it static , i have to export mutex_is_locked() after moving it inside mutex.c, so that other module can use it. Yep, see below -- completely untested. Also are we thinking of

Re: [PATCH] kmemleak: Increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K

2019-07-30 Thread Dmitry Vyukov
On Tue, Jul 30, 2019 at 5:42 PM Catalin Marinas wrote: > > On Tue, Jul 30, 2019 at 11:40:27PM +0800, Nicolas Boichat wrote: > > The current default value (400) is too low on many systems (e.g. > > some ARM64 platform takes up 1000+ entries). > > > > syzbot uses 16000 as default value, and has

Re: [PATCH 2/2] devcoredump: fix typo in comment

2019-07-30 Thread Greg KH
On Sat, Jul 27, 2019 at 08:43:21PM +0200, Johannes Berg wrote: > On Sun, 2019-07-28 at 00:59 +0900, Akinobu Mita wrote: > > s/dev_coredumpmsg/dev_coredumpsg/ > > Oops, thanks > > Reviewed-by: Johannes Berg > > Greg, I think before you took these patches? Took what patches? I don't see

Re: [PATCH 5/6] drm: uapi: add gdepaper uapi header

2019-07-30 Thread Jan Sebastian Götte
Hi Emil, thank you for your comments. On 7/30/19 11:08 PM, Emil Velikov wrote: > On 2019/07/30, Jan Sebastian Götte wrote: >> Signed-off-by: Jan Sebastian Götte >> --- >> include/uapi/drm/gdepaper_drm.h | 62 + >> 1 file changed, 62 insertions(+) >> create mode

Re: [PATCH 1/3] scsi: qla2xxx: Replace vmalloc + memset with vzalloc

2019-07-30 Thread Martin K. Petersen
Chuhong, > Use vzalloc instead of using vmalloc to allocate memory and then > zeroing it with memset. This simplifies the code. Applied to 5.4/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 4/4] net: dsa: mv88e6xxx: add PTP support for MV88E6250 family

2019-07-30 Thread Hubert Feurstein
Hi Richard, thank you for your comments. Am Di., 30. Juli 2019 um 18:00 Uhr schrieb Richard Cochran : [...] > > -/* Raw timestamps are in units of 8-ns clock periods. */ > > -#define CC_SHIFT 28 > > -#define CC_MULT (8 << CC_SHIFT) > > -#define CC_MULT_NUM (1 << 9) > > -#define

Re: [PATCH v2 7/7] n_tty: Provide an informational line on VSTATUS receipt

2019-07-30 Thread Greg Kroah-Hartman
On Tue, Jun 25, 2019 at 07:11:53PM +0300, Arseny Maslennikov wrote: > If the three termios local flags isig, icanon, iexten are enabled > and the local flag nokerninfo is disabled for a tty governed > by the n_tty line discipline, then on receiving the keyboard status > character n_tty will

Re: [PATCH] powerpc: workaround clang codegen bug in dcbz

2019-07-30 Thread Segher Boessenkool
On Tue, Jul 30, 2019 at 04:30:29PM +0200, Arnd Bergmann wrote: > On Tue, Jul 30, 2019 at 3:49 PM Segher Boessenkool > wrote: > > > > On Tue, Jul 30, 2019 at 09:34:28AM +0200, Arnd Bergmann wrote: > > > Upon a second look, I think the issue is that the "Z" is an input argument > > > when it should

Re: media: mtk-vcodec: Handle H264 error bitstreams

2019-07-30 Thread Mauro Carvalho Chehab
Em Fri, 26 Jul 2019 16:54:33 +0800 escreveu: > From: gtk_ruiwang ... > Signed-off-by: gtk_ruiwang Please use your real name on your SOB and at the From: line. Thanks, Mauro

Re: [PATCH] fgraph: Remove redundant ftrace_graph_notrace_addr() test

2019-07-30 Thread Steven Rostedt
On Tue, 30 Jul 2019 22:08:50 +0800 Changbin Du wrote: > We already have tested it before. The second one should be removed. > With this change, the performance should have little improvement. > > Fixes: 9cd2992f2d6c ("fgraph: Have set_graph_notrace only affect > function_graph tracer")

Re: [PATCH -next] scsi: aic94xx: Remove unnecessary null check

2019-07-30 Thread Martin K. Petersen
YueHaibing, > kmem_cache_destroy() can handle NULL pointer correctly, so there is > no need to check NULL pointer before calling kmem_cache_destroy(). Applied to 5.4/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v10 3/4] mm, thp: introduce FOLL_SPLIT_PMD

2019-07-30 Thread Oleg Nesterov
I don't understand this code, so I can't review, but. On 07/29, Song Liu wrote: > > This patches introduces a new foll_flag: FOLL_SPLIT_PMD. As the name says > FOLL_SPLIT_PMD splits huge pmd for given mm_struct, the underlining huge > page stays as-is. > > FOLL_SPLIT_PMD is useful for cases where

Re: [PATCH v2 -next] scsi: qla2xxx: Remove unnecessary null check

2019-07-30 Thread Martin K. Petersen
YueHaibing, > A null check before dma_pool_destroy is redundant, > so remove it. This is detected by coccinelle. Applied to 5.4/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 5/5] sched/deadline: Use return value of SCHED_WARN_ON() in bw accounting

2019-07-30 Thread Dietmar Eggemann
On 7/30/19 9:23 AM, Peter Zijlstra wrote: > On Mon, Jul 29, 2019 at 05:59:04PM +0100, Dietmar Eggemann wrote: >> On 7/29/19 5:54 PM, Peter Zijlstra wrote: >>> On Fri, Jul 26, 2019 at 12:18:19PM +0200, luca abeni wrote: Hi Dietmar, On Fri, 26 Jul 2019 09:27:56 +0100 Dietmar

Re: [PATCH] ARM: DTS: vybrid: Update qspi node description for VF610 BK4 board

2019-07-30 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Tue, Jul 30, 2019 at 12:53 PM Lukasz Majewski > wrote: > > > Shall I refer to the original commit (which added this DTS)? Or the > > original issue posted to linux-mtd [1] ? > > You can add a Fixes tag like this: > > Fixes: a67d2c52a82f ("ARM: dts: Add support

Re: [PATCH] rcu: Fix spelling mistake "greate"->"great"

2019-07-30 Thread Paul E. McKenney
On Mon, Jul 29, 2019 at 01:25:57PM +0530, Mukesh Ojha wrote: > There is a spelling mistake in file tree_exp.h, > fix this. > > Signed-off-by: Mukesh Ojha Queued, thank you very much! Thanx, Paul > --- > kernel/rcu/tree_exp.h | 2 +- > 1

Re: [PATCH 2/2] locking/mutex: Use mutex flags macro instead of hard code value

2019-07-30 Thread Peter Zijlstra
On Tue, Jul 30, 2019 at 06:10:49PM +0530, Mukesh Ojha wrote: > To make it static , i have to export mutex_is_locked() after moving it > inside mutex.c, so that other module can use it. Yep, see below -- completely untested. > Also are we thinking of removing > static inline /* __deprecated */

Re: [PATCH net-next v5 0/5] vsock/virtio: optimizations to increase the throughput

2019-07-30 Thread Stefano Garzarella
On Tue, Jul 30, 2019 at 11:55:09AM -0400, Michael S. Tsirkin wrote: > On Tue, Jul 30, 2019 at 11:54:53AM -0400, Michael S. Tsirkin wrote: > > On Tue, Jul 30, 2019 at 05:43:29PM +0200, Stefano Garzarella wrote: > > > This series tries to increase the throughput of virtio-vsock with slight > > >

Re: [PATCH 4/4] net: dsa: mv88e6xxx: add PTP support for MV88E6250 family

2019-07-30 Thread Richard Cochran
On Tue, Jul 30, 2019 at 12:04:29PM +0200, Hubert Feurstein wrote: > diff --git a/drivers/net/dsa/mv88e6xxx/ptp.c b/drivers/net/dsa/mv88e6xxx/ptp.c > index 768d256f7c9f..51cdf4712517 100644 > --- a/drivers/net/dsa/mv88e6xxx/ptp.c > +++ b/drivers/net/dsa/mv88e6xxx/ptp.c > @@ -15,11 +15,38 @@ >

Re: [PATCH] ARM: DTS: vybrid: Update qspi node description for VF610 BK4 board

2019-07-30 Thread Fabio Estevam
Hi Lukasz, On Tue, Jul 30, 2019 at 12:53 PM Lukasz Majewski wrote: > Shall I refer to the original commit (which added this DTS)? Or the > original issue posted to linux-mtd [1] ? You can add a Fixes tag like this: Fixes: a67d2c52a82f ("ARM: dts: Add support for Liebherr's BK4 device (vf610

[PATCH 3/4] kbuild: modpost: remove unnecessary dependency for __modpost

2019-07-30 Thread Masahiro Yamada
__modpost is a phony target. The dependency on FORCE is pointless. All the objects have been built in the previous stage, so the dependency on the objects are not necessary either. Count the number of modules in a more straightforward way. Signed-off-by: Masahiro Yamada ---

[PATCH 4/4] kbuild: modpost: do not parse unnecessary rules for vmlinux modpost

2019-07-30 Thread Masahiro Yamada
Since commit ff9b45c55b26 ("kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod"), 'make vmlinux' emits a warning, like this: $ make defconfig vmlinux [ snip ] LD vmlinux.o cat: modules.order: No such file or directory MODPOST vmlinux.o MODINFO modules.builtin.modinfo

Re: [PATCH] Use term cumul-fence instead of fence in ->prop ordering example

2019-07-30 Thread Paul E. McKenney
On Mon, Jul 29, 2019 at 04:41:34PM -0400, Alan Stern wrote: > On Mon, 29 Jul 2019, Joel Fernandes (Google) wrote: > > > To reduce ambiguity in the more exotic ->prop ordering example, let us > > use the term cumul-fence instead fence for the 2 fences, so that the > > implict ->rfe on loads/stores

Re: [alsa-devel] [RFC PATCH 17/40] soundwire: bus: use runtime_pm_get_sync/pm when enabled

2019-07-30 Thread Andy Shevchenko
On Tue, Jul 30, 2019 at 06:58:09PM +0300, Andy Shevchenko wrote: > On Tue, Jul 30, 2019 at 07:57:46AM -0500, Pierre-Louis Bossart wrote: > > On 7/30/19 6:21 AM, Andy Shevchenko wrote: > > > On Mon, Jul 29, 2019 at 05:07:39PM -0500, Pierre-Louis Bossart wrote: > > > > On 7/26/19 2:08 PM, Andy

[PATCH 2/4] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

2019-07-30 Thread Masahiro Yamada
KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) while I was here. Signed-off-by: Masahiro Yamada --- scripts/Makefile.modpost | 2

[PATCH 1/4] kbuild: modpost: include .*.cmd files only when targets exist

2019-07-30 Thread Masahiro Yamada
A build rule fails, the .DELETE_ON_ERROR special target removes the target, but does nothing for the .*.cmd file, which might be corrupted. So, .*.cmd files should be included only when the corresponding targets exist. Commit 392885ee82d3 ("kbuild: let fixdep directly write to .*.cmd files")

Re: [alsa-devel] [RFC PATCH 17/40] soundwire: bus: use runtime_pm_get_sync/pm when enabled

2019-07-30 Thread Andy Shevchenko
On Tue, Jul 30, 2019 at 07:57:46AM -0500, Pierre-Louis Bossart wrote: > On 7/30/19 6:21 AM, Andy Shevchenko wrote: > > On Mon, Jul 29, 2019 at 05:07:39PM -0500, Pierre-Louis Bossart wrote: > > > On 7/26/19 2:08 PM, Andy Shevchenko wrote: > > > > On Fri, Jul 26, 2019 at 01:08:57PM -0500,

Re: Marking legacy watchdog drivers as deprecated / obsolete

2019-07-30 Thread Guenter Roeck
On Tue, Jul 30, 2019 at 10:00:36AM +0200, Arnd Bergmann wrote: > On Tue, Jul 30, 2019 at 12:07 AM Guenter Roeck wrote: > > > > Hi, > > > > we have recently seen a number of changes to legacy watchdog drivers, > > mostly surrounding the coding style used some 10+ years ago, but also > > fixing

Re: [PATCH 19/24] tty: serial: fsl_lpuart: Introduce lpuart_tx_dma_startup()

2019-07-30 Thread Greg Kroah-Hartman
On Mon, Jul 29, 2019 at 12:52:21PM -0700, Andrey Smirnov wrote: > Code configure DMA TX path in lpuart_startup(), lpuart32_startup() and > lpuart_resume() is doing exactly the same thing, so move it into a > standalone subroutine. > > Signed-off-by: Andrey Smirnov > Cc: Stefan Agner > Cc:

Re: [PATCH net-next v5 0/5] vsock/virtio: optimizations to increase the throughput

2019-07-30 Thread Michael S. Tsirkin
On Tue, Jul 30, 2019 at 11:54:53AM -0400, Michael S. Tsirkin wrote: > On Tue, Jul 30, 2019 at 05:43:29PM +0200, Stefano Garzarella wrote: > > This series tries to increase the throughput of virtio-vsock with slight > > changes. > > While I was testing the v2 of this series I discovered an huge use

Re: [PATCH net-next v5 0/5] vsock/virtio: optimizations to increase the throughput

2019-07-30 Thread Michael S. Tsirkin
On Tue, Jul 30, 2019 at 05:43:29PM +0200, Stefano Garzarella wrote: > This series tries to increase the throughput of virtio-vsock with slight > changes. > While I was testing the v2 of this series I discovered an huge use of memory, > so I added patch 1 to mitigate this issue. I put it in this

Re: [PATCH 00/24] LPUART fixes and improvements

2019-07-30 Thread Greg Kroah-Hartman
On Tue, Jul 30, 2019 at 05:53:57PM +0200, Greg Kroah-Hartman wrote: > On Mon, Jul 29, 2019 at 12:52:02PM -0700, Andrey Smirnov wrote: > > Everyone: > > > > This series contains fixes/improvements to LPUART dirver I came up > > with recently as well as fixes picked up from Toradex and NXP Vybrid >

Re: [PATCH 00/24] LPUART fixes and improvements

2019-07-30 Thread Greg Kroah-Hartman
On Mon, Jul 29, 2019 at 12:52:02PM -0700, Andrey Smirnov wrote: > Everyone: > > This series contains fixes/improvements to LPUART dirver I came up > with recently as well as fixes picked up from Toradex and NXP Vybrid > repos. > > Feedback is welcome! Nice cleanups, all now queued up. greg k-h

Re: [PATCH] ARM: DTS: vybrid: Update qspi node description for VF610 BK4 board

2019-07-30 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > Subject line could be improved: > > ARM: dts: vf610-bk4: Fix qspi node description > > On Tue, Jul 30, 2019 at 12:06 PM Lukasz Majewski > wrote: > > > > Before this change the device tree description of qspi node for > > second memory on BK4 board was wrong

Re: [alsa-devel] [PATCH v2 3/3] ASoC: TDA7802: Add turn-on diagnostic routine

2019-07-30 Thread Mark Brown
On Tue, Jul 30, 2019 at 04:25:56PM +0100, Thomas Preston wrote: > On 30/07/2019 15:19, Mark Brown wrote: > > It is unclear what this mutex usefully protects, it only gets taken when > > writing to the debugfs file to trigger this diagnostic mode but doesn't > > do anything to control interactions

Re: [PATCH v5 2/3] treewide: Remove dev_err() usage after platform_get_irq()

2019-07-30 Thread Greg Kroah-Hartman
On Tue, Jul 30, 2019 at 08:35:59AM -0700, Stephen Boyd wrote: > Quoting Greg Kroah-Hartman (2019-07-29 23:49:17) > > On Mon, Jul 29, 2019 at 10:38:44PM -0700, Stephen Boyd wrote: > > > We don't need dev_err() messages when platform_get_irq() fails now that > > > platform_get_irq() prints an error

Re: [PATCH 06/24] tty: serial: fsl_lpuart: Drop unnecessary sg_set_buf() call

2019-07-30 Thread Greg Kroah-Hartman
On Mon, Jul 29, 2019 at 12:52:08PM -0700, Andrey Smirnov wrote: > Sg_init_one() will already call sg_set_buf(), so another explicit call > right after it is unnecessary. Drop it. > > Signed-off-by: Andrey Smirnov > Cc: Stefan Agner > Cc: Bhuvanchandra DV > Cc: Chris Healy > Cc: Cory Tusar >

Re: [PATCH 1/2] net: dsa: mv88e6xxx: add support to setup led-control register through device-tree

2019-07-30 Thread Hubert Feurstein
Am Di., 30. Juli 2019 um 16:09 Uhr schrieb Andrew Lunn : [...] > Sorry, but this is not going to be accepted. There is an ongoing > discussion about PHY LEDs and how they should be configured. Switch > LEDs are no different from PHY LEDs. So they should use the same basic > concept. > > Please

[PATCH 2/2 v2] locking/mutex: Use mutex flags macro instead of hard code value

2019-07-30 Thread Mukesh Ojha
Use the mutex flag macro instead of hard code value inside __mutex_owner(). Signed-off-by: Mukesh Ojha --- Changes in v2: - Framed the commit according the changes done in 1/2 of the patchset. kernel/locking/mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/2 v2] locking/mutex: Make __mutex_owner static to mutex.c

2019-07-30 Thread Mukesh Ojha
__mutex_owner() should only be used by the mutex api's. So, put this restiction let's move the __mutex_owner() function definition from linux/mutex.h to mutex.c file. There exist functions that uses __mutex_owner() like mutex_is_locked() and mutex_trylock_recursive(), So to keep the thing intact

Re: [alsa-devel] [PATCH v2 2/3] ASoC: Add codec driver for ST TDA7802

2019-07-30 Thread Thomas Preston
On 30/07/2019 13:38, Charles Keepax wrote: > On Tue, Jul 30, 2019 at 01:09:36PM +0100, Thomas Preston wrote: >> Add an I2C based codec driver for ST TDA7802 amplifier. The amplifier >> supports 4 audio channels but can support up to 16 with multiple >> devices. >> >> Signed-off-by: Thomas Preston

Re: [PATCH V13 12/12] PCI: tegra: Add Tegra194 PCIe support

2019-07-30 Thread Lorenzo Pieralisi
On Tue, Jul 23, 2019 at 08:14:08PM +0530, Vidya Sagar wrote: > On 7/16/2019 4:52 PM, Lorenzo Pieralisi wrote: > > On Sat, Jul 13, 2019 at 12:34:34PM +0530, Vidya Sagar wrote: > > > > [...] > > > > > > > > > +static int tegra_pcie_bpmp_set_ctrl_state(struct tegra_pcie_dw > > > > > > > *pcie, > >

Re: [PATCH 1/2] mm/filemap: don't initiate writeback if mapping has no dirty pages

2019-07-30 Thread Jan Kara
On Tue 30-07-19 17:57:18, Konstantin Khlebnikov wrote: > On 30.07.2019 17:14, Jan Kara wrote: > > On Tue 23-07-19 11:16:51, Konstantin Khlebnikov wrote: > > > On 23.07.2019 3:52, Andrew Morton wrote: > > > > > > > > (cc linux-fsdevel and Jan) > > > > Thanks for CC Andrew. > > > > > > On Mon, 22

Re: [PATCH] h8300: Add missing symbol "BOOT_LINK_OFFSET"

2019-07-30 Thread Guenter Roeck
On Wed, Jul 17, 2019 at 10:55:00PM +0900, Yoshinori Sato wrote: > Signed-off-by: Yoshinori Sato > --- > arch/h8300/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig > index ecfc4b4b6373..6974513b1ae9 100644 > --- a/arch/h8300/Kconfig >

Re: [patch v4 1/5] AST2500 DMA UART driver

2019-07-30 Thread Greg KH
On Fri, Jul 26, 2019 at 06:57:16PM +0530, sudheer.v wrote: > From: sudheer veliseti > > UART driver for Aspeed's bmc chip AST2500 > > Design approch: > AST2500 has dedicated Uart DMA controller which has 12 sets of Tx and RX > channels > connected to UART controller directly. > Since the DMA

Re: [PATCH 4/4] csky: Add dma_inv_range for DMA_FROM_DEVICE

2019-07-30 Thread Guo Ren
Thx Arnd, On Tue, Jul 30, 2019 at 11:22 PM Arnd Bergmann wrote: > > On Tue, Jul 30, 2019 at 5:11 PM Guo Ren wrote: > > > > diff --git a/arch/csky/mm/dma-mapping.c b/arch/csky/mm/dma-mapping.c > > > > cache_op(paddr, size, dma_wb_range); > > > > break; > > > >

[PATCH net-next v5 5/5] vsock/virtio: change the maximum packet size allowed

2019-07-30 Thread Stefano Garzarella
Since now we are able to split packets, we can avoid limiting their sizes to VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE. Instead, we can use VIRTIO_VSOCK_MAX_PKT_BUF_SIZE as the max packet size. Signed-off-by: Stefano Garzarella Reviewed-by: Stefan Hajnoczi Acked-by: Michael S. Tsirkin ---

[PATCH net-next v5 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-30 Thread Stefano Garzarella
If the packets to sent to the guest are bigger than the buffer available, we can split them, using multiple buffers and fixing the length in the packet header. This is safe since virtio-vsock supports only stream sockets. Signed-off-by: Stefano Garzarella Reviewed-by: Stefan Hajnoczi Acked-by:

[PATCH net-next v5 1/5] vsock/virtio: limit the memory used per-socket

2019-07-30 Thread Stefano Garzarella
Since virtio-vsock was introduced, the buffers filled by the host and pushed to the guest using the vring, are directly queued in a per-socket list. These buffers are preallocated by the guest with a fixed size (4 KB). The maximum amount of memory used by each socket should be controlled by the

[PATCH net-next v5 3/5] vsock/virtio: fix locking in virtio_transport_inc_tx_pkt()

2019-07-30 Thread Stefano Garzarella
fwd_cnt and last_fwd_cnt are protected by rx_lock, so we should use the same spinlock also if we are in the TX path. Move also buf_alloc under the same lock. Signed-off-by: Stefano Garzarella Reviewed-by: Stefan Hajnoczi Acked-by: Michael S. Tsirkin --- include/linux/virtio_vsock.h

[PATCH net-next v5 0/5] vsock/virtio: optimizations to increase the throughput

2019-07-30 Thread Stefano Garzarella
This series tries to increase the throughput of virtio-vsock with slight changes. While I was testing the v2 of this series I discovered an huge use of memory, so I added patch 1 to mitigate this issue. I put it in this series in order to better track the performance trends. v5: - rebased all

[PATCH net-next v5 2/5] vsock/virtio: reduce credit update messages

2019-07-30 Thread Stefano Garzarella
In order to reduce the number of credit update messages, we send them only when the space available seen by the transmitter is less than VIRTIO_VSOCK_MAX_PKT_BUF_SIZE. Signed-off-by: Stefano Garzarella Reviewed-by: Stefan Hajnoczi Acked-by: Michael S. Tsirkin --- include/linux/virtio_vsock.h

Re: [PATCH] dt-bindings: Fix generated example files getting added to schemas

2019-07-30 Thread Guido Günther
Hi, On Tue, Jul 30, 2019 at 08:59:35AM -0600, Rob Herring wrote: > Commit 837158b847a4 ("dt-bindings: Check the examples against the > schemas") started generating YAML encoded DT files to validate the > examples against the schema. When running 'make dt_binding_check' in > tree after the 1st

Re: [PATCH] kmemleak: Increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K

2019-07-30 Thread Catalin Marinas
On Tue, Jul 30, 2019 at 11:40:27PM +0800, Nicolas Boichat wrote: > The current default value (400) is too low on many systems (e.g. > some ARM64 platform takes up 1000+ entries). > > syzbot uses 16000 as default value, and has proved to be enough > on beefy configurations, so let's pick that

Re: [PATCH v1 3/3] clk: qcom: rcg: update the DFS macro for RCG

2019-07-30 Thread Stephen Boyd
Quoting Taniya Das (2019-07-30 03:51:07) > > > On 7/17/2019 4:52 AM, Stephen Boyd wrote: > > Quoting Taniya Das (2019-07-15 21:22:02) > >> Hello Stephen, > >> > >> Thanks for the review. > >> > >> On 7/16/2019 4:14 AM, Stephen Boyd wrote: > >>> Quoting Taniya Das (2019-05-12 20:44:46) > On

[PATCH] kmemleak: Increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K

2019-07-30 Thread Nicolas Boichat
The current default value (400) is too low on many systems (e.g. some ARM64 platform takes up 1000+ entries). syzbot uses 16000 as default value, and has proved to be enough on beefy configurations, so let's pick that value. This consumes more RAM on boot (each entry is 160 bytes, so in total

Re: [PATCH] fs: afs: Fix a possible null-pointer dereference in afs_put_read()

2019-07-30 Thread David Howells
This is in my afs-fixes branch. David

[Linux-kernel-mentees][PATCH v4 1/1] sgi-gru: Remove *pte_lookup functions

2019-07-30 Thread Bharath Vedartham
The *pte_lookup functions can be removed and be easily replaced with get_user_pages_fast functions. In the case of atomic lookup, __get_user_pages_fast is used which does not fall back to slow get_user_pages. get_user_pages_fast on the other hand tries to use __get_user_pages_fast but fallbacks to

[Linux-kernel-mentees][PATCH v4 0/1] get_user_pages changes

2019-07-30 Thread Bharath Vedartham
In this 4th version of the patch series, I have compressed the patches of the v2 patch series into one patch. This was suggested by Christoph Hellwig. The suggestion was to remove the pte_lookup functions and use the get_user_pages* functions directly instead of the pte_lookup functions. There

Re: [PATCH v4 0/5] vsock/virtio: optimizations to increase the throughput

2019-07-30 Thread Stefano Garzarella
On Tue, Jul 30, 2019 at 06:03:24PM +0800, Jason Wang wrote: > > On 2019/7/30 下午5:40, Stefano Garzarella wrote: > > On Mon, Jul 29, 2019 at 09:59:23AM -0400, Michael S. Tsirkin wrote: > > > On Wed, Jul 17, 2019 at 01:30:25PM +0200, Stefano Garzarella wrote: > > > > This series tries to increase

Re: [PATCH v1 2/3] clk: qcom: rcg2: Add support for hardware control mode

2019-07-30 Thread Stephen Boyd
Quoting Taniya Das (2019-07-30 03:50:08) > Hello Stephen, > > On 7/17/2019 4:48 AM, Stephen Boyd wrote: > > Quoting Taniya Das (2019-07-15 21:19:02) > >> Hello Stephen, > >> > >> Thanks for your review. > >> > >> On 7/16/2019 4:22 AM, Stephen Boyd wrote: > >>> Quoting Taniya Das (2019-05-08

Re: [PATCH v5 2/3] treewide: Remove dev_err() usage after platform_get_irq()

2019-07-30 Thread Stephen Boyd
Quoting Greg Kroah-Hartman (2019-07-29 23:49:17) > On Mon, Jul 29, 2019 at 10:38:44PM -0700, Stephen Boyd wrote: > > We don't need dev_err() messages when platform_get_irq() fails now that > > platform_get_irq() prints an error message itself when something goes > > wrong. Let's remove these

Re: [PATCH v3] nvme-pci: Support shared tags across queues for Apple 2018 controllers

2019-07-30 Thread Keith Busch
On Fri, Jul 19, 2019 at 03:31:02PM +1000, Benjamin Herrenschmidt wrote: > From 8dcba2ef5b1466b023b88b4eca463b30de78d9eb Mon Sep 17 00:00:00 2001 > From: Benjamin Herrenschmidt > Date: Fri, 19 Jul 2019 15:03:06 +1000 > Subject: > > Another issue with the Apple T2 based 2018 controllers seem to

[PATCH v2] drm: mali-dp: Mark expected switch fall-through

2019-07-30 Thread Anders Roxell
Now that -Wimplicit-fallthrough is passed to GCC by default, the following warnings shows up: ../drivers/gpu/drm/arm/malidp_hw.c: In function ‘malidp_format_get_bpp’: ../drivers/gpu/drm/arm/malidp_hw.c:387:8: warning: this statement may fall through [-Wimplicit-fallthrough=] bpp = 30;

[PATCH v3] net/socket: fix GCC8+ Wpacked-not-aligned warnings

2019-07-30 Thread Qian Cai
There are a lot of those warnings with GCC8+ 64-bit, In file included from ./include/linux/sctp.h:42, from net/core/skbuff.c:47: ./include/uapi/linux/sctp.h:395:1: warning: alignment 4 of 'struct sctp_paddr_change' is less than 8 [-Wpacked-not-aligned] } __attribute__((packed,

Re: [PATCH 1/4] csky: Fixup dma_rmb/wmb synchronization problem

2019-07-30 Thread Guo Ren
Thx Arnd, On Tue, Jul 30, 2019 at 9:29 PM Arnd Bergmann wrote: > > On Tue, Jul 30, 2019 at 2:15 PM wrote: > > > > From: Guo Ren > > > > If arch didn't define dma_r/wmb(), linux will use w/rmb instead. Csky > > use bar.xxx to implement mb() and that will cause problem when sync data > > with

RE: [PATCH] enetc: Fix build error without PHYLIB

2019-07-30 Thread Claudiu Manoil
>-Original Message- >From: YueHaibing >Sent: Tuesday, July 30, 2019 5:30 PM >To: Claudiu Manoil ; da...@davemloft.net >Cc: linux-kernel@vger.kernel.org; net...@vger.kernel.org; YueHaibing > >Subject: [PATCH] enetc: Fix build error without PHYLIB > >If PHYLIB is not set, build enetc will

Re: [alsa-devel] [PATCH v2 3/3] ASoC: TDA7802: Add turn-on diagnostic routine

2019-07-30 Thread Thomas Preston
On 30/07/2019 15:20, Mark Brown wrote: > On Tue, Jul 30, 2019 at 03:04:19PM +0100, Thomas Preston wrote: >> On 30/07/2019 13:41, Charles Keepax wrote: > >>> This could probably be removed using regmap_multi_reg_write. > >> The problem is that I want to retain the state of the other bits in those

Re: [PATCH 1/2] soc: qcom: Extend AOSS QMP driver to support resources that are used to wake up the SoC.

2019-07-30 Thread Thara Gopinath
Hi Amit, Thanks for the review. On 07/30/2019 08:43 AM, Amit Kucheria wrote: > On Mon, Jul 29, 2019 at 10:03 PM Thara Gopinath > wrote: >> >> The AOSS QMP driver is extended to communicate with the additional >> resources. These resources are then registered as cooling devices >> with the

Re: [PATCH 2/4] counter: new TI eQEP driver

2019-07-30 Thread David Lechner
On 7/30/19 7:35 AM, Uwe Kleine-König wrote: On Mon, Jul 22, 2019 at 10:45:36AM -0500, David Lechner wrote: This adds a new counter driver for the Texas Instruments Enhanced Quadrature Encoder Pulse (eQEP) module. Only very basic functionality is currently implemented - only enough to be able

Re: [alsa-devel] [PATCH v2 3/3] ASoC: TDA7802: Add turn-on diagnostic routine

2019-07-30 Thread Thomas Preston
On 30/07/2019 15:19, Mark Brown wrote: > On Tue, Jul 30, 2019 at 01:09:37PM +0100, Thomas Preston wrote: > >> +struct dentry *debugfs; >> +struct mutex diagnostic_mutex; >> +}; > > It is unclear what this mutex usefully protects, it only gets taken when > writing to the debugfs file to

[v6 2/2] gpio: aspeed: Add SGPIO driver

2019-07-30 Thread Hongwei Zhang
Add SGPIO driver support for Aspeed AST2500 SoC. Signed-off-by: Hongwei Zhang --- drivers/gpio/sgpio-aspeed.c | 521 1 file changed, 521 insertions(+) create mode 100644 drivers/gpio/sgpio-aspeed.c diff --git a/drivers/gpio/sgpio-aspeed.c

[v6 1/2] dt-bindings: gpio: aspeed: Add SGPIO support

2019-07-30 Thread Hongwei Zhang
Add bindings to support SGPIO on AST2400 or AST2500. Signed-off-by: Hongwei Zhang --- .../devicetree/bindings/gpio/sgpio-aspeed.txt | 55 ++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/sgpio-aspeed.txt diff --git

[v6 0/2] gpio: aspeed: Add SGPIO driver

2019-07-30 Thread Hongwei Zhang
Hello, This short series introduce dt-binding document and a driver for the Aspeed AST2500 SGPIO controller. Please review. [v6]: Changes between v5 and v6: - fix a bug in aspeed_sgpio_dir_out() - v5 feedback updates, some comments cleanup The related SGPM pinmux dt-binding

[Patch v2 0/2] Add support for AOSS resources that are used to warm up the SoC

2019-07-30 Thread Thara Gopinath
The Always On Sub System (AOSS) hosts certain resources that are used to warm up the soc if the temperature falls below certain threshold. These resources are added can be considered as thermal warming devices (opposite of thermal cooling devices). These resources are controlled via AOSS QMP

[Patch v2 1/2] soc: qcom: Extend AOSS QMP driver to support resources that are used to wake up the SoC.

2019-07-30 Thread Thara Gopinath
The AOSS QMP driver is extended to communicate with the additional resources. These resources are then registered as cooling devices with the thermal framework. Signed-off-by: Thara Gopinath --- v1->v2: Added back name variable in qmp_cooling_device to fix the compilation error.

[Patch v2 2/2] arm64: dts: qcom: Extend AOSS QMP node

2019-07-30 Thread Thara Gopinath
AOSS hosts resources that can be used to warm up the SoC. Add nodes for these resources. Signed-off-by: Thara Gopinath --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi

Re: RFC: remove Nuvoton w90x900/nuc900 platform?

2019-07-30 Thread Arnd Bergmann
On Tue, Jul 30, 2019 at 3:59 PM Avi Fishman wrote: > > Note that we we are going to add soon > drivers/net/ethernet/nuvoton/npcm7xx_emc.c > so maybe don't remove drivers/net/ethernet/nuvoton Ok, thanks for a taking a look. I can leave an empty Makefile/Kconfig pair there then. Arnd

Re: [PATCH] kmemleak: Increase maximum early log entries to 1000000

2019-07-30 Thread Nicolas Boichat
On Wed, Jul 24, 2019 at 2:01 AM Andrey Ryabinin wrote: > > > > On 7/23/19 11:13 AM, Nicolas Boichat wrote: > > On Tue, Jul 23, 2019 at 3:46 PM Dmitry Vyukov wrote: > >> > >> On Tue, Jul 23, 2019 at 9:26 AM Nicolas Boichat > >> wrote: > >>> > >>> When KASan is enabled, a lot of memory is

Re: [PATCH 4/4] csky: Add dma_inv_range for DMA_FROM_DEVICE

2019-07-30 Thread Arnd Bergmann
On Tue, Jul 30, 2019 at 5:11 PM Guo Ren wrote: > > > diff --git a/arch/csky/mm/dma-mapping.c b/arch/csky/mm/dma-mapping.c > > > cache_op(paddr, size, dma_wb_range); > > > break; > > > case DMA_FROM_DEVICE: > > > + cache_op(paddr, size,

Re: [PATCH] arm_pmu: Mark expected switch fall-through

2019-07-30 Thread Anders Roxell
On Tue, 30 Jul 2019 at 14:43, Will Deacon wrote: > > On Tue, Jul 30, 2019 at 02:30:27PM +0200, Anders Roxell wrote: > > On Tue, 30 Jul 2019 at 13:28, Will Deacon wrote: > > > > > > On Tue, Jul 30, 2019 at 12:24:15PM +0100, Mark Rutland wrote: > > > > On Fri, Jul 26, 2019 at 04:18:25PM +0100,

Re: [PATCH] ARM: DTS: vybrid: Update qspi node description for VF610 BK4 board

2019-07-30 Thread Fabio Estevam
Hi Lukasz, Subject line could be improved: ARM: dts: vf610-bk4: Fix qspi node description On Tue, Jul 30, 2019 at 12:06 PM Lukasz Majewski wrote: > > Before this change the device tree description of qspi node for > second memory on BK4 board was wrong (applicable to old, in-house > tunned

Re: [PATCH 1/4] csky: Fixup dma_rmb/wmb synchronization problem

2019-07-30 Thread Guo Ren
On Tue, Jul 30, 2019 at 9:29 PM Arnd Bergmann wrote: > > On Tue, Jul 30, 2019 at 2:15 PM wrote: > > > > From: Guo Ren > > > > If arch didn't define dma_r/wmb(), linux will use w/rmb instead. Csky > > use bar.xxx to implement mb() and that will cause problem when sync data > > with dma device,

Re: [PATCH 4/4] clk: meson: g12a: expose CPUB clock ID for G12B

2019-07-30 Thread Neil Armstrong
On 29/07/2019 15:16, Neil Armstrong wrote: > Expose the CPUB clock id to add DVFS to the second CPU cluster of > the Amlogic G12B SoC. > > Reviewed-by: Martin Blumenstingl > Signed-off-by: Neil Armstrong > --- > include/dt-bindings/clock/g12a-clkc.h | 1 + > 1 file changed, 1 insertion(+) > >

Re: [PATCH 2/4] clk: meson: regmap: export regmap_div ops functions

2019-07-30 Thread Neil Armstrong
On 29/07/2019 15:16, Neil Armstrong wrote: > The G12A CPU Clock Postmux divider needs a custom div_set_rate() call. > > Export the clk_regmap_div_round_rate() and clk_regmap_div_recalc_rate() > to be able to override the default clk_regmap_div_set_rate() callback. Signoff missing will fix in

<    3   4   5   6   7   8   9   10   11   12   >