[PATCH v8 09/13] arm64: dts: freescale: sl28: enable sl28cpld

2020-08-13 Thread Michael Walle
Add the board management controller node. Signed-off-by: Michael Walle --- Changes since v7: - none Changes since v6: - renamed "sl28cpld-r1" to "sl28cpld" - moved "reg" and "compatible" properties to the top of a node Changes since v5: - none Changes since v4: - none Changes since v3:

[PATCH v8 11/13] arm64: dts: freescale: sl28: enable LED support

2020-08-13 Thread Michael Walle
Now that we have support for GPIO lines of the SMARC connector, enable LED support on the KBox A-230-LS. There are two LEDs without fixed functions, one is yellow and one is green. Unfortunately, it is just one multi-color LED, thus while it is possible to enable both at the same time it is hard

[PATCH v8 07/13] gpio: add support for the sl28cpld GPIO controller

2020-08-13 Thread Michael Walle
Add support for the GPIO controller of the sl28 board management controller. This driver is part of a multi-function device. A controller has 8 lines. There are three different flavors: full-featured GPIO with interrupt support, input-only and output-only. Signed-off-by: Michael Walle

[PATCH v8 00/13] Add support for Kontron sl28cpld

2020-08-13 Thread Michael Walle
The Kontron sl28cpld is a board management chip providing gpio, pwm, fan monitoring and an interrupt controller. For now this controller is used on the Kontron SMARC-sAL28 board. But because of its flexible nature, it might also be used on other boards in the future. The individual blocks (like

Re: [PATCH 1/5] timer: kasan: record and print timer stack

2020-08-13 Thread Walter Wu
Hi Thomas, Please ignore my previous mail. Thanks. On Thu, 2020-08-13 at 13:48 +0200, Thomas Gleixner wrote: > Walter, > > Walter Wu writes: > > This patch records the last two timer queueing stacks and prints > > "This patch" is useless information as we already know from the subject > line

[PATCH v8 03/13] mfd: simple-mfd-i2c: add sl28cpld support

2020-08-13 Thread Michael Walle
Add the core support for the board management controller found on the SMARC-sAL28 board. Also add a virtual symbol which pulls in the simple-mfd-i2c driver and provide a common symbol on which the subdevice drivers can depend on. At the moment, this controller is used on the Kontron SMARC-sAL28

[PATCH v8 01/13] mfd: add simple regmap based I2C driver

2020-08-13 Thread Michael Walle
There are I2C devices which contain several different functions but doesn't require any special access functions. For these kind of drivers an I2C regmap should be enough. Create an I2C driver which creates an I2C regmap and enumerates its children. If a device wants to use this as its MFD core

[PATCH v8 12/13] arm64: dts: freescale: sl28: enable fan support

2020-08-13 Thread Michael Walle
Add a pwm-fan mapped to the PWM channel 0 which is connected to the fan connector of the carrier. Signed-off-by: Michael Walle --- Changes since v7: - none Changes since v6: - none Changes since v5: - none Changes since v4: - none Changes since v3: - see cover letter

[PATCH v8 02/13] dt-bindings: mfd: Add bindings for sl28cpld

2020-08-13 Thread Michael Walle
Add a device tree bindings for the board management controller found on the Kontron SMARC-sAL28 board. Signed-off-by: Michael Walle Reviewed-by: Rob Herring --- Changes since v7: - none Changes since v6: - renamed "sl28cpld-r1" to "sl28cpld" - made paths relative - moved "reg" and

[PATCH v8 13/13] arm64: defconfig: enable the sl28cpld board management controller

2020-08-13 Thread Michael Walle
Enable the kernel modules for the board management controller "sl28cpld" which is used on the SMARC-sAL28 board. Signed-off-by: Michael Walle --- Changes since v7: - added new virtual symbol CONFIG_MFD_SL28CPLD Changes since v6: - none Changes since v5: - new patch

[PATCH] kexec: Delete an unnecessary comparison

2020-08-13 Thread Youling Tang
Regardless of whether the ret value is zero or non-zero, the trajectory of the program execution is the same, so there is no need to compare. Signed-off-by: Youling Tang --- kernel/kexec_file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index

Re: [PATCH] drm/nouveau: Add fine-grain temperature reporting

2020-08-13 Thread Karol Herbst
Reviewed-by: Karol Herbst On Wed, Aug 12, 2020 at 10:50 PM Jeremy Cline wrote: > > Commit d32656373857 ("drm/nouveau/therm/gp100: initial implementation of > new gp1xx temperature sensor") added support for reading finer-grain > temperatures, but continued to report temperatures in 1 degree

man-pages-5.08 is released

2020-08-13 Thread Michael Kerrisk (man-pages)
Gidday, The Linux man-pages maintainer proudly announces: man-pages-5.08 - man pages for Linux This release resulted from patches, bug reports, reviews, and comments from more than 30 people, with over 190 commits making changes to more than 340 pages. Tarball download:

[PATCH stable-4.19] cgroup: add missing skcd->no_refcnt check in cgroup_sk_clone()

2020-08-13 Thread Yang Yingliang
Add skcd->no_refcnt check which is missed when backporting ad0f75e5f57c ("cgroup: fix cgroup_sk_alloc() for sk_clone_lock()"). This patch is needed in stable-4.9, stable-4.14 and stable-4.19. Signed-off-by: Yang Yingliang --- kernel/cgroup/cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [PATCH] net: correct zerocopy refcnt with newly allocated UDP or RAW uarg

2020-08-13 Thread Willem de Bruijn
On Thu, Aug 13, 2020 at 1:59 PM Miaohe Lin wrote: > > The var extra_uref is introduced to pass the initial reference taken in > sock_zerocopy_alloc to the first generated skb. But now we may fail to pass > the initial reference with newly allocated UDP or RAW uarg when the skb is > zcopied. > >

Re: [PATCH 1/2] PM / Domains: Add GENPD_FLAG_SUSPEND_ON flag

2020-08-13 Thread Ulf Hansson
On Wed, 12 Aug 2020 at 19:03, Sibi Sankar wrote: > > Uffe, > Thanks for taking time to review the > series! > > On 2020-08-12 15:15, Ulf Hansson wrote: > > On Tue, 11 Aug 2020 at 21:03, Sibi Sankar wrote: > >> > >> This is for power domains which needs to stay powered on for suspend > >> but can

Re: [PATCH v2] PCI: Introduce flag for detached virtual functions

2020-08-13 Thread Niklas Schnelle
On 8/13/20 12:40 PM, Niklas Schnelle wrote: > > > On 8/13/20 11:59 AM, Oliver O'Halloran wrote: >> On Thu, Aug 13, 2020 at 7:00 PM Niklas Schnelle >> wrote: >>> >>> >>> On 8/13/20 3:55 AM, Oliver O'Halloran wrote: On Thu, Aug 13, 2020 at 5:21 AM Matthew Rosato wrote: >

Re: [PATCH] arm64: Add KRYO4XX gold CPU core to spectre-v2 safe list

2020-08-13 Thread Sai Prakash Ranjan
On 2020-08-13 16:09, Marc Zyngier wrote: On 2020-08-13 10:40, Will Deacon wrote: On Thu, Aug 13, 2020 at 02:49:37PM +0530, Sai Prakash Ranjan wrote: On 2020-08-13 14:33, Will Deacon wrote: > On Thu, Aug 13, 2020 at 01:48:34PM +0530, Sai Prakash Ranjan wrote: > > KRYO4XX gold/big CPU cores are

[PATCH stable-4.14] cgroup: add missing skcd->no_refcnt check in cgroup_sk_clone()

2020-08-13 Thread Yang Yingliang
Add skcd->no_refcnt check which is missed when backporting ad0f75e5f57c ("cgroup: fix cgroup_sk_alloc() for sk_clone_lock()"). This patch is needed in stable-4.9, stable-4.14 and stable-4.19. Signed-off-by: Yang Yingliang --- kernel/cgroup/cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH stable-4.9 v2] cgroup: add missing skcd->no_refcnt check in cgroup_sk_clone()

2020-08-13 Thread Yang Yingliang
Add skcd->no_refcnt check which is missed when backporting ad0f75e5f57c ("cgroup: fix cgroup_sk_alloc() for sk_clone_lock()"). This patch is needed in stable-4.9, stable-4.14 and stable-4.19. Signed-off-by: Yang Yingliang --- kernel/cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] Documentation/locking/locktypes: fix the typo

2020-08-13 Thread Will Deacon
On Thu, Aug 13, 2020 at 02:02:20PM +0800, Huang Shijie wrote: > We have three categories locks, not two. > > Signed-off-by: Huang Shijie > --- > Documentation/locking/locktypes.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/locking/locktypes.rst >

[PATCH] locks: Convert to use the preferred fallthrough macro

2020-08-13 Thread Miaohe Lin
Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Miaohe Lin --- fs/locks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index 938fe325bc54..32c948fe2944 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1499,7 +1499,7

[PATCH stable-4.9] cgroup: add missing skcd->no_refcnt check in cgroup_sk_alloc()

2020-08-13 Thread Yang Yingliang
Add skcd->no_refcnt check which is missed when backporting ad0f75e5f57c ("cgroup: fix cgroup_sk_alloc() for sk_clone_lock()"). This patch is needed in stable-4.9, stable-4.14 and stable-4.19. Signed-off-by: Yang Yingliang --- kernel/cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 1/5] timer: kasan: record and print timer stack

2020-08-13 Thread Walter Wu
On Thu, 2020-08-13 at 13:48 +0200, Thomas Gleixner wrote: > Walter, > > Walter Wu writes: > > This patch records the last two timer queueing stacks and prints > > "This patch" is useless information as we already know from the subject > line that this is a patch. > > git grep 'This patch'

RE: [PATCH] fs/select.c: batch user writes in do_sys_poll

2020-08-13 Thread David Laight
From: Daniel Axtens > Sent: 13 August 2020 12:37 > > >> Seem like this could simply use a copy_to_user to further simplify > >> things? > > > > I'll benchmark it and find out. > > I tried this: > > for (walk = head; walk; walk = walk->next) { > - struct pollfd *fds =

[PATCH] futex: Convert to use the preferred fallthrough macro

2020-08-13 Thread Miaohe Lin
Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Miaohe Lin --- kernel/futex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/futex.c b/kernel/futex.c index 83404124b77b..5310dc330656 100644 --- a/kernel/futex.c +++ b/kernel/futex.c

Re: [PATCHv4 4/4] Input: EXC3000: Add support to query model and fw_version

2020-08-13 Thread Sebastian Reichel
Hi Dmitry, On Thu, Aug 06, 2020 at 05:39:01PM -0700, Dmitry Torokhov wrote: > Hi Sebastian, > > On Wed, Aug 05, 2020 at 06:05:20PM +0200, Sebastian Reichel wrote: > > > > +static int exc3000_query_interrupt(struct exc3000_data *data) > > +{ > > + u8 *buf = data->buf; > > + int err; > > + >

[tip: x86/urgent] x86/alternatives: Acquire pte lock with interrupts enabled

2020-08-13 Thread tip-bot2 for Sebastian Andrzej Siewior
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: a6d996cbd38b42341ad3fce74506b9fdc280e395 Gitweb: https://git.kernel.org/tip/a6d996cbd38b42341ad3fce74506b9fdc280e395 Author:Sebastian Andrzej Siewior AuthorDate:Thu, 13 Aug 2020 12:50:26

Re: [PATCH 1/5] powerpc: Remove flush_instruction_cache for book3s/32

2020-08-13 Thread Christoph Hellwig
On Thu, Aug 13, 2020 at 01:13:08PM +0100, Christoph Hellwig wrote: > On Thu, Aug 13, 2020 at 10:12:00AM +, Christophe Leroy wrote: > > -#ifndef CONFIG_PPC_8xx > > +#if !defined(CONFIG_PPC_8xx) && !defined(CONFIG_PPC_BOOK3S_32) > > _GLOBAL(flush_instruction_cache) > > #if defined(CONFIG_4xx)

[PATCH] net: add missing skb_uarg refcount increment in pskb_carve_inside_header()

2020-08-13 Thread Miaohe Lin
If the skb is zcopied, we should increase the skb_uarg refcount before we involve skb_release_data(). See pskb_expand_head() as a reference. Fixes: 6fa01ccd8830 ("skbuff: Add pskb_extract() helper function") Signed-off-by: Miaohe Lin --- net/core/skbuff.c | 2 ++ 1 file changed, 2 insertions(+)

Re: [RFC PATCH 6/7] core/metricfs: expose x86-specific irq information through metricfs

2020-08-13 Thread Thomas Gleixner
Paolo Bonzini writes: > On 13/08/20 12:11, Thomas Gleixner wrote: >>> Add metricfs support for displaying percpu irq counters for x86. >>> The top directory is /sys/kernel/debug/metricfs/irq_x86. >>> Then there is a subdirectory for each x86-specific irq counter. >>> For example: >>> >>>cat

Re: [PATCH 1/5] powerpc: Remove flush_instruction_cache for book3s/32

2020-08-13 Thread Christoph Hellwig
On Thu, Aug 13, 2020 at 10:12:00AM +, Christophe Leroy wrote: > -#ifndef CONFIG_PPC_8xx > +#if !defined(CONFIG_PPC_8xx) && !defined(CONFIG_PPC_BOOK3S_32) > _GLOBAL(flush_instruction_cache) > #if defined(CONFIG_4xx) > lis r3, KERNELBASE@h > @@ -290,18 +289,11 @@

Re: [PATCH v2 0/4] Perf tool: Enable Arm arch timer counter and arm-spe's timestamp

2020-08-13 Thread John Garry
On 13/08/2020 12:18, Will Deacon wrote: [ Adding John, as I only just realised he wasn't on CC and we were talking about him! ] On Thu, Aug 13, 2020 at 10:59:01AM +0100, Will Deacon wrote: On Wed, Aug 12, 2020 at 03:53:34PM -0300, Arnaldo Carvalho de Melo wrote: Em Wed, Aug 12, 2020 at

Re: [PATCH v3 1/2] perf bench numa: use numa_node_to_cpus() to bind tasks to nodes

2020-08-13 Thread Srikar Dronamraju
* Alexander Gordeev [2020-08-13 13:32:48]: > It is currently assumed that each node contains at most > nr_cpus/nr_nodes CPUs and nodes' CPU ranges do not overlap. > That assumption is generally incorrect as there are archs > where a CPU number does not depend on to its node number. > > This

Re: [PATCH 4.19 016/133] cgroup: fix cgroup_sk_alloc() for sk_clone_lock()

2020-08-13 Thread Yang Yingliang
On 2020/8/13 19:41, Greg Kroah-Hartman wrote: On Thu, Aug 13, 2020 at 07:30:55PM +0800, Yang Yingliang wrote: Hi, On 2020/7/20 23:36, Greg Kroah-Hartman wrote: From: Cong Wang [ Upstream commit ad0f75e5f57ccbceec13274e1e242f2b5a6397ed ] When we clone a socket in sk_clone_lock(), its

Re: [PATCH v3 1/2] perf bench numa: fix cpumask memory leak in node_has_cpus()

2020-08-13 Thread Srikar Dronamraju
* Alexander Gordeev [2020-08-13 13:30:42]: > Couple numa_allocate_cpumask() and numa_free_cpumask() functions > > Signed-off-by: Alexander Gordeev > --- > tools/perf/bench/numa.c | 13 + > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/tools/perf/bench/numa.c

Re: [PATCH] mtd: spi-nor: intel-spi: Do not try to make the SPI flash chip writable

2020-08-13 Thread Greg Kroah-Hartman
On Thu, Aug 13, 2020 at 08:42:57AM -0300, Daniel Gutson wrote: > El jue., 13 ago. 2020 6:00 a. m., Greg Kroah-Hartman < > gre...@linuxfoundation.org> escribió: > > > On Wed, Aug 12, 2020 at 12:41:35PM -0300, Daniel Gutson wrote: > > > ping > > > > What does that mean here? > > > > I didn't get

Re: [PATCH v5 06/17] sched/debug: Output SD flag names rather than their values

2020-08-13 Thread Luc Van Oostenryck
On Wed, Aug 12, 2020 at 07:51:08PM +0100, Valentin Schneider wrote: > On 12/08/20 17:35, kernel test robot wrote: > > > config: i386-randconfig-s001-20200811 (attached as .config) > > reproduce: > > # sparse version: v0.6.2-168-g9554805c-dirty > > make W=1 C=1

Re: [PATCH 10/10] mm/hugetlb: not necessary to abuse temporary page to workaround the nasty free_huge_page

2020-08-13 Thread Michal Hocko
On Tue 11-08-20 14:43:28, Mike Kravetz wrote: > On 8/10/20 11:54 PM, Michal Hocko wrote: > > > > I have managed to forgot all the juicy details since I have made that > > change. All that remains is that the surplus pages accounting was quite > > tricky and back then I didn't figure out a simpler

Re: [PATCH] block: insert a general SMP memory barrier before wake_up_bit()

2020-08-13 Thread Matthew Wilcox
On Thu, Aug 13, 2020 at 01:40:50PM +0200, pet...@infradead.org wrote: > On Thu, Aug 13, 2020 at 08:31:15AM +0100, Christoph Hellwig wrote: > > On Thu, Aug 13, 2020 at 10:44:38AM +0800, Jacob Wen wrote: > > > wake_up_bit() uses waitqueue_active() that needs the explicit smp_mb(). > > > > Sounds

[PATCH] net: correct zerocopy refcnt with newly allocated UDP or RAW uarg

2020-08-13 Thread Miaohe Lin
The var extra_uref is introduced to pass the initial reference taken in sock_zerocopy_alloc to the first generated skb. But now we may fail to pass the initial reference with newly allocated UDP or RAW uarg when the skb is zcopied. If the skb is zcopied, we always set extra_uref to false. This is

Re: Recursive/circular locking in serial8250_console_write/serial8250_do_startup

2020-08-13 Thread Greg KH
On Wed, Aug 12, 2020 at 10:06:29PM -0700, Guenter Roeck wrote: > On Wed, Aug 12, 2020 at 08:48:13AM -0700, Guenter Roeck wrote: > > Hi, > > > > crbug.com/1114800 reports a hard lockup due to circular locking in the > > 8250 console driver. This is seen if CONFIG_PROVE_LOCKING is enabled. > > > >

Re: [RFC PATCH 6/7] core/metricfs: expose x86-specific irq information through metricfs

2020-08-13 Thread Paolo Bonzini
On 13/08/20 12:11, Thomas Gleixner wrote: >> Add metricfs support for displaying percpu irq counters for x86. >> The top directory is /sys/kernel/debug/metricfs/irq_x86. >> Then there is a subdirectory for each x86-specific irq counter. >> For example: >> >>cat

Re: [PATCH] task_work: only grab task signal lock when needed

2020-08-13 Thread Oleg Nesterov
On 08/12, Jens Axboe wrote: > > On 8/12/20 8:54 AM, Oleg Nesterov wrote: > > > > --- x/kernel/signal.c > > +++ x/kernel/signal.c > > @@ -2541,7 +2541,7 @@ bool get_signal(struct ksignal *ksig) > > > > relock: > > spin_lock_irq(>siglock); > > - current->jobctl &= ~JOBCTL_TASK_WORK; > > +

Re: [PATCH 1/5] timer: kasan: record and print timer stack

2020-08-13 Thread Thomas Gleixner
Walter, Walter Wu writes: > This patch records the last two timer queueing stacks and prints "This patch" is useless information as we already know from the subject line that this is a patch. git grep 'This patch' Documentation/process/ > up to 2 timer stacks in KASAN report. It is useful for

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-13 Thread Sergey Senozhatsky
On (20/08/13 10:41), Petr Mladek wrote: > > My concerns about this idea: > > > > - What if the printk user does not correctly terminate the cont message? > > There is no mechanism to allow that open record to be force-finalized > > so that readers can read newer records. > > This is a real

Re: [PATCH 4.19 016/133] cgroup: fix cgroup_sk_alloc() for sk_clone_lock()

2020-08-13 Thread Greg Kroah-Hartman
On Thu, Aug 13, 2020 at 07:30:55PM +0800, Yang Yingliang wrote: > Hi, > > On 2020/7/20 23:36, Greg Kroah-Hartman wrote: > > From: Cong Wang > > > > [ Upstream commit ad0f75e5f57ccbceec13274e1e242f2b5a6397ed ] > > > > When we clone a socket in sk_clone_lock(), its sk_cgrp_data is > > copied, so

[PATCH][V2] of/address: check for invalid range.cpu_addr

2020-08-13 Thread Colin King
From: Colin Ian King Currently invalid CPU addresses are not being sanity checked resulting in SATA setup failure on a SynQuacer SC2A11 development machine. The original check was removed by and earlier commit, so add a sanity check back in to avoid this regression. Fixes: 7a8b64d17e35

Re: [PATCH V2] mm, page_alloc: fix core hung in free_pcppages_bulk()

2020-08-13 Thread Michal Hocko
On Tue 11-08-20 18:28:23, Charan Teja Reddy wrote: [...] > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index e4896e6..839039f 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -1304,6 +1304,11 @@ static void free_pcppages_bulk(struct zone *zone, int > count, > struct page

Re: [PATCH] block: insert a general SMP memory barrier before wake_up_bit()

2020-08-13 Thread peterz
On Thu, Aug 13, 2020 at 08:31:15AM +0100, Christoph Hellwig wrote: > On Thu, Aug 13, 2020 at 10:44:38AM +0800, Jacob Wen wrote: > > wake_up_bit() uses waitqueue_active() that needs the explicit smp_mb(). > > Sounds like the barrier should go into wake_up_bit then.. Oh, thanks for reminding me..

Re: [PATCH] fs/select.c: batch user writes in do_sys_poll

2020-08-13 Thread Daniel Axtens
Hi, >> Seem like this could simply use a copy_to_user to further simplify >> things? > > I'll benchmark it and find out. I tried this: for (walk = head; walk; walk = walk->next) { - struct pollfd *fds = walk->entries; - int j; - - for (j = 0; j

Re: [PATCH] overflow: Add __must_check attribute to check_*() helpers

2020-08-13 Thread Rasmus Villemoes
On 13/08/2020 13.23, Matthew Wilcox wrote: > On Wed, Aug 12, 2020 at 02:51:52PM -0700, Kees Cook wrote: >> +/* >> + * Allows to effectively us apply __must_check to a macro so we can have >> + * both the type-agnostic benefits of the macros while also being able to >> + * enforce that the return

ATTENTION PLEASE

2020-08-13 Thread Ambrose Cooker
Greetings My Dear Friend, Please reply to my private email ambrosecooker...@gmail.com Before I introduce myself, I wish to inform you that this letter is not a hoax mail and I urge you to treat it serious.This letter must come to you as a big surprise, but I believe it is only a day that people

drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c:470:82-83: Unneeded semicolon

2020-08-13 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dc06fe51d26efc100ac74121607c01a454867c91 commit: 7c6981e7ca74be39a16a770315606d495a860275 drm/amd/display: populate new dml variable date: 7 days ago config: i386-randconfig-c001-20200813 (attached

Re: [PATCH] drivers: crypto: picoxcell_crypto: Fix potential race condition bug

2020-08-13 Thread Jamie Iles
On Tue, Aug 11, 2020 at 06:00:24PM +0530, madhuparnabhowmi...@gmail.com wrote: > From: Madhuparna Bhowmik > > engine->stat_irq_thresh was initialized after device_create_file() in > the probe function, the initialization may race with call to > spacc_stat_irq_thresh_store() which updates

[PATCH v3 1/2] perf bench numa: use numa_node_to_cpus() to bind tasks to nodes

2020-08-13 Thread Alexander Gordeev
It is currently assumed that each node contains at most nr_cpus/nr_nodes CPUs and nodes' CPU ranges do not overlap. That assumption is generally incorrect as there are archs where a CPU number does not depend on to its node number. This update removes the described assumption by simply calling

Re: [RFC PATCH] printk: Change timestamp to triplet as mono, boot and real

2020-08-13 Thread Sergey Senozhatsky
On (20/08/13 12:22), Petr Mladek wrote: > > + would take more space (prefix + text vs. binary representation) Dict buffer is allocated regardless of how we use it, and only printks from drivers/* (dev_printk*) add dict payload. It might be the case that on some (if not most) systems dict pages

Re: [PATCH 4.19 016/133] cgroup: fix cgroup_sk_alloc() for sk_clone_lock()

2020-08-13 Thread Yang Yingliang
Hi, On 2020/7/20 23:36, Greg Kroah-Hartman wrote: From: Cong Wang [ Upstream commit ad0f75e5f57ccbceec13274e1e242f2b5a6397ed ] When we clone a socket in sk_clone_lock(), its sk_cgrp_data is copied, so the cgroup refcnt must be taken too. And, unlike the sk_alloc() path,

[PATCH v3 1/2] perf bench numa: fix cpumask memory leak in node_has_cpus()

2020-08-13 Thread Alexander Gordeev
Couple numa_allocate_cpumask() and numa_free_cpumask() functions Signed-off-by: Alexander Gordeev --- tools/perf/bench/numa.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index 31e2601..9066511 100644 ---

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-13 Thread Petr Mladek
On Thu 2020-08-13 12:35:47, John Ogness wrote: > On 2020-08-13, Petr Mladek wrote: > > On Thu 2020-08-13 09:50:25, John Ogness wrote: > >> On 2020-08-13, Sergey Senozhatsky wrote: > >> > This is not an unseen pattern, I'm afraid. And the problem here can > >> > be more general: > >> > > >> >

pcm|dmaengine|imx-sdma race condition on i.MX6

2020-08-13 Thread Richard Leitner
Hi, we've found a race condition with the PCM on the i.MX6 which results in an -EIO for the SNDRV_PCM_IOCTL_READI_FRAMES ioctl after an -EPIPE (XRUN). A possible reproduction may look like the following reduced call graph during a PCM capture: us -> ioctl(SNDRV_PCM_IOCTL_READI_FRAMES) -

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Andy Shevchenko
On Thu, Aug 13, 2020 at 2:14 PM Crt Mori wrote: > > On Thu, 13 Aug 2020 at 13:03, Andy Shevchenko > wrote: > > > > On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > > > > > Reduce number of lines and improve readability to convert polling while > > > loops to do-while. The iopoll.h

Re: [PATCH] overflow: Add __must_check attribute to check_*() helpers

2020-08-13 Thread Matthew Wilcox
On Wed, Aug 12, 2020 at 02:51:52PM -0700, Kees Cook wrote: > +/* > + * Allows to effectively us apply __must_check to a macro so we can have > + * both the type-agnostic benefits of the macros while also being able to > + * enforce that the return value is, in fact, checked. > + */ > +static

Re: INFO: task hung in pipe_read (2)

2020-08-13 Thread Tetsuo Handa
On 2020/08/13 16:00, Tetsuo Handa wrote: > On 2020/08/11 4:29, Andrea Arcangeli wrote: >> However once the mutex is killable there's no concern anymore and the >> hangcheck timer is correct also not reporting any misbehavior anymore. > > Do you mean something like below untested patch? I think

Re: [PATCH 1/9] dt-bindings: display: renesas,du: Document r8a774e1 bindings

2020-08-13 Thread Lad, Prabhakar
Hi Laurent, On Thu, Aug 13, 2020 at 12:11 PM Laurent Pinchart wrote: > > Hi Prabhakar, > > On Thu, Aug 13, 2020 at 12:08:58PM +0100, Lad, Prabhakar wrote: > > On Thu, Aug 13, 2020 at 11:59 AM Laurent Pinchart wrote: > > > On Thu, Aug 13, 2020 at 11:38:03AM +0100, Lad, Prabhakar wrote: > > >> On

arch/arm/include/asm/arch_gicv3.h:44:2: error: implicit declaration of function 'write_sysreg'

2020-08-13 Thread kernel test robot
Hi Peng, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dc06fe51d26efc100ac74121607c01a454867c91 commit: d82bcef5157de1368c08244a846ab968b3e5cb7e soc: imx: select ARM_GIC_V3 for i.MX8M date: 4 weeks ago config:

Re: [RFC PATCH] mm : using bdi->ra_pages instead of ra->ra_pages within readahead

2020-08-13 Thread Matthew Wilcox
On Thu, Aug 13, 2020 at 04:11:22PM +0800, Zhaoyang Huang wrote: > file->f_ra->ra_pages will remain the initialized value since it opend, which > may > be NOT equal to bdi->ra_pages as the latter one is updated somehow(etc, > echo xxx > /sys/block/dm/queue/read_ahead_kb).So having readahead use >

Re: [RFC PATCH v5 1/7] drivers: thermal: tsens: Add VER_0 tsens version

2020-08-13 Thread Amit Kucheria
On Tue, Aug 11, 2020 at 6:48 PM wrote: > > > > > -Messaggio originale- > > Da: Amit Kucheria > > > > > if (IS_ERR(priv->rf[i])) > > > return PTR_ERR(priv->rf[i]); > > > } > > > @@ -775,12 +800,80 @@ int __init

Re: [PATCH v2 0/4] Perf tool: Enable Arm arch timer counter and arm-spe's timestamp

2020-08-13 Thread Will Deacon
[ Adding John, as I only just realised he wasn't on CC and we were talking about him! ] On Thu, Aug 13, 2020 at 10:59:01AM +0100, Will Deacon wrote: > On Wed, Aug 12, 2020 at 03:53:34PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, Aug 12, 2020 at 10:06:53AM -0600, Mathieu Poirier

Re: [PATCH] mm: include CMA pages in lowmem_reserve at boot

2020-08-13 Thread Michal Hocko
On Wed 12-08-20 20:51:38, Doug Berger wrote: > The lowmem_reserve arrays provide a means of applying pressure > against allocations from lower zones that were targeted at > higher zones. Its values are a function of the number of pages > managed by higher zones and are assigned by a call to the >

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Crt Mori
On Thu, 13 Aug 2020 at 13:03, Andy Shevchenko wrote: > > On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > > > Reduce number of lines and improve readability to convert polling while > > loops to do-while. The iopoll.h interface was not used, because we > > require more than 20ms timeout,

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-13 Thread Michal Hocko
On Thu 13-08-20 11:58:40, Uladzislau Rezki wrote: [...] > Sorry for jumping in. We can rely on preemptable() for sure, if > CONFIG_PREEMPT_RT > is enabled, something like below: > > if (IS_ENABLED_RT && preemptebale()) Sure. I thought this was an RT specific thing that would be noop otherwise.

[PATCH] pinctrl: mediatek: check mtk_is_virt_gpio input parameter

2020-08-13 Thread Hanks Chen
check mtk_is_virt_gpio input parameter, virtual gpio need to support eint mode. add error handler for the ko case to fix this boot fail: pc : mtk_is_virt_gpio+0x20/0x38 [pinctrl_mtk_common_v2] lr : mtk_gpio_get_direction+0x44/0xb0 [pinctrl_paris] Fixes: edd546465002 ("pinctrl: mediatek: avoid

Re: [PATCH v2] x86/alternatives: Let __text_poke() acquire the pte lock with enabled interrupts

2020-08-13 Thread peterz
On Thu, Aug 13, 2020 at 12:50:26PM +0200, Sebastian Andrzej Siewior wrote: > The pte lock is never acquired in-IRQ context so it does not require the > interrupts to be disabled. > > RT complains here because the spinlock_t must not be acquired with > disabled interrupts. > > use_temporary_mm()

[PATCH] drm/amd/display: fix semicolon.cocci warnings

2020-08-13 Thread kernel test robot
From: kernel test robot drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c:470:82-83: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 7c6981e7ca74 ("drm/amd/display: populate new dml variable") CC: Dmytro Laktyushkin

Re: [PATCH 1/9] dt-bindings: display: renesas,du: Document r8a774e1 bindings

2020-08-13 Thread Laurent Pinchart
Hi Prabhakar, On Thu, Aug 13, 2020 at 12:08:58PM +0100, Lad, Prabhakar wrote: > On Thu, Aug 13, 2020 at 11:59 AM Laurent Pinchart wrote: > > On Thu, Aug 13, 2020 at 11:38:03AM +0100, Lad, Prabhakar wrote: > >> On Thu, Aug 13, 2020 at 10:05 AM Geert Uytterhoeven wrote: > >>> On Wed, Aug 12, 2020

Re: [PATCH 1/9] dt-bindings: display: renesas,du: Document r8a774e1 bindings

2020-08-13 Thread Lad, Prabhakar
Hi Laurent, On Thu, Aug 13, 2020 at 11:59 AM Laurent Pinchart wrote: > > Hello, > > On Thu, Aug 13, 2020 at 11:38:03AM +0100, Lad, Prabhakar wrote: > > On Thu, Aug 13, 2020 at 10:05 AM Geert Uytterhoeven wrote: > > > On Wed, Aug 12, 2020 at 4:02 PM Lad Prabhakar wrote: > > > > From:

Re: [PATCH v5 4/5] iio:temperature:mlx90632: Adding extended calibration option

2020-08-13 Thread Andy Shevchenko
On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > For some time the market wants medical grade accuracy in medical range, > while still retaining the declared accuracy outside of the medical range > within the same sensor. That is why we created extended calibration > which is automatically

RE: [PATCH v2 1/2] scsi: ufs: Cleanup completed request without interrupt notification

2020-08-13 Thread Avri Altman
> > > > Signed-off-by: Stanley Chu > > Reviewed-by: Can Guo > > Signed-off-by: Bean Huo Acked-by: Avri Altman

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Andy Shevchenko
On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > Reduce number of lines and improve readability to convert polling while > loops to do-while. The iopoll.h interface was not used, because we > require more than 20ms timeout, because time for sensor to perform a > measurement is around 10ms and

nvme crash - Re: linux-next: Tree for Aug 13

2020-08-13 Thread John Garry
On 13/08/2020 07:58, Stephen Rothwell wrote: Hi all, Hi guys, I have experienced this this crash below on linux-next for the last few days on my arm64 system. Linus' master branch today also has it. root@ubuntu:/home/john# insmod nvme.ko [148.254564] nvme :81:00.0: Adding to iommu

Re: [PATCH v5 5/5] iio:temperature:mlx90632: Some stylefixing leftovers

2020-08-13 Thread Andy Shevchenko
On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > There is some inconsistency and whitespace cleanup performed in this > patch. It was done on top of my other patches, but I can rebase to head > of the togreg branch if it would go in sooner. ... > -#define MLX90632_REF_1212LL

Re: [Resend PATCH 2/6] mm/memcg: remove useless check on page->mem_cgroup

2020-08-13 Thread Michal Hocko
On Thu 13-08-20 17:45:19, Alex Shi wrote: > > > 在 2020/8/13 下午2:20, Michal Hocko 写道: > > On Wed 12-08-20 11:25:53, Alex Shi wrote: > >> >From 999b0fe5fc65865c3b59ff28500d45572a4a9570 Mon Sep 17 00:00:00 2001 > >> From: Alex Shi > >> Date: Wed, 5 Aug 2020 21:02:30 +0800 > >> Subject: [PATCH 2/6]

Re: [PATCH 1/9] dt-bindings: display: renesas,du: Document r8a774e1 bindings

2020-08-13 Thread Laurent Pinchart
Hello, On Thu, Aug 13, 2020 at 11:38:03AM +0100, Lad, Prabhakar wrote: > On Thu, Aug 13, 2020 at 10:05 AM Geert Uytterhoeven wrote: > > On Wed, Aug 12, 2020 at 4:02 PM Lad Prabhakar wrote: > > > From: Marian-Cristian Rotariu > > > > > > Document the RZ/G2H (a.k.a. r8a774e1) SoC in the R-Car DU

Re: [Cocci] [PATCH] scripts: coccicheck: Change default value for parallelism

2020-08-13 Thread Julia Lawall
On Thu, 13 Aug 2020, Sumera Priyadarsini wrote: > > > On Thu, 13 Aug, 2020, 1:45 AM Julia Lawall, wrote: > > > On Wed, 12 Aug 2020, Sumera Priyadarsini wrote: > > > By default, coccicheck utilizes all available threads to implement > > parallelisation. However, when

Re: [PATCH v5 2/5] iio:temperature:mlx90632: Add kerneldoc to the internal struct

2020-08-13 Thread Andy Shevchenko
On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > Document internal/private struct for mlx90632 device. Reviewed-by: Andy Shevchenko > Signed-off-by: Crt Mori > --- > drivers/iio/temperature/mlx90632.c | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git

[PATCH] sched: print fields name when do sched_show_task

2020-08-13 Thread Libing Zhou
Current sysrq(t) output task fields name are not aligned with actual task fields value, e.g.: kernel: sysrq: SysRq : Show State kernel: taskPC stack pid father kernel: systemd S12456 1 0 0x kernel: Call Trace:

RE: [PATCH] regulator: da9211: add cache_type

2020-08-13 Thread Adam Thomson
On 12 August 2020 14:31, Hsin-Yi Wang wrote: > Add regmap_cache to reduce wakeups events of interrupt if regulator is > accessed frequently. This results in saving more power. > > Suggested-by: Daniel Kurtz > Signed-off-by: Hsin-Yi Wang Acked-by: Adam Thomson

Dear Valued Customer,

2020-08-13 Thread Ms. Rana Salatt
ATTN; DEAR, This is Ms. Rana Salatt ,I have registered your ATM CARD to the POST OFFICE BENIN REPUBLIC so that they will Post it to your home address and I believe your current address is still the same. Your total amount in the envelope is $3.2 Million USD and the POST OFFICE assured me that

[PATCH v2] x86/alternatives: Let __text_poke() acquire the pte lock with enabled interrupts

2020-08-13 Thread Sebastian Andrzej Siewior
The pte lock is never acquired in-IRQ context so it does not require the interrupts to be disabled. RT complains here because the spinlock_t must not be acquired with disabled interrupts. use_temporary_mm() expects interrupts to be off because it invokes switch_mm_irqs_off() and uses per-CPU

Re: [PATCH] x86/alternatives: Let __text_poke() acquire the pte lock with enabled interrupts

2020-08-13 Thread Sebastian Andrzej Siewior
On 2020-08-12 16:39:41 [+0200], Thomas Gleixner wrote: > Sebastian, Hi tglx, > Sebastian Andrzej Siewior writes: > > > The pte lock is never acquired from an IRQ-off region so it does not > > require the interrupts to be disabled. > > I doubt that this is true. It surely is acquired within

Re: [PATCH v2] driver/perf: Add PMU driver for the ARM DMC-620 memory controller.

2020-08-13 Thread Mark Rutland
On Mon, May 11, 2020 at 01:44:52PM -0700, Tuan Phan wrote: > DMC-620 PMU supports 10 total counters that are independently > programmable for different events and can be individually started and > stopped. > > ACPI is only supported; device tree support is welcomed to be added and > tested for

[rcu:dev.2020.08.11a] BUILD SUCCESS 9030fc13639a71b15466520f09ca07b80fc30ed1

2020-08-13 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.08.11a branch HEAD: 9030fc13639a71b15466520f09ca07b80fc30ed1 squash! rcu: Report QS for outermost PREEMPT=n rcu_read_unlock() for strict GPs elapsed time: 720m configs tested: 74 configs skipped: 2

Re: [PATCH 4/6] drm/rockchip: dw_hdmi: Add vendor hdmi properties

2020-08-13 Thread Laurent Pinchart
On Thu, Aug 13, 2020 at 10:42:28AM +0300, Pekka Paalanen wrote: > On Wed, 12 Aug 2020 16:30:17 +0300 Laurent Pinchart wrote: > > On Wed, Aug 12, 2020 at 07:08:10PM +0800, crj wrote: > > > 在 2020/8/12 17:33, Laurent Pinchart 写道: > > > > On Wed, Aug 12, 2020 at 04:35:43PM +0800, Algea Cao wrote:

Re: [PATCH] timer: mask unnecessary set of flags in do_init_timer

2020-08-13 Thread Thomas Gleixner
Qianli Zhao writes: Please start the first word after the colon with an upper case letter. > do_init_timer can specify flags of timer_list, Please write do_init_timer() so it's entirely clear that this is about a function. > but this function does not expect to specify the CPU or idx. or idx

Re: upstream boot error: WARNING in mem_cgroup_css_alloc

2020-08-13 Thread Michal Hocko
This smells like 3e38e0aaca9e ("mm: memcg: charge memcg percpu memory to the parent cgroup"). On Thu 13-08-20 02:47:26, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:dc06fe51 Merge tag 'rtc-5.9' of git://git.kernel.org/pub/s.. > git tree: upstream >

Re: [PATCH v2] PCI: Introduce flag for detached virtual functions

2020-08-13 Thread Niklas Schnelle
On 8/13/20 11:59 AM, Oliver O'Halloran wrote: > On Thu, Aug 13, 2020 at 7:00 PM Niklas Schnelle > wrote: >> >> >> On 8/13/20 3:55 AM, Oliver O'Halloran wrote: >>> On Thu, Aug 13, 2020 at 5:21 AM Matthew Rosato >>> wrote: *snip* diff --git a/arch/s390/pci/pci.c

Re: [PATCH 1/9] dt-bindings: display: renesas,du: Document r8a774e1 bindings

2020-08-13 Thread Lad, Prabhakar
Hi Geert, Thank you for the review. On Thu, Aug 13, 2020 at 10:05 AM Geert Uytterhoeven wrote: > > Hi Prabhakar, Laurent, Kieran, > > On Wed, Aug 12, 2020 at 4:02 PM Lad Prabhakar > wrote: > > From: Marian-Cristian Rotariu > > > > Document the RZ/G2H (a.k.a. r8a774e1) SoC in the R-Car DU

Re: [PATCH] arm64: Add KRYO4XX gold CPU core to spectre-v2 safe list

2020-08-13 Thread Marc Zyngier
On 2020-08-13 10:40, Will Deacon wrote: On Thu, Aug 13, 2020 at 02:49:37PM +0530, Sai Prakash Ranjan wrote: On 2020-08-13 14:33, Will Deacon wrote: > On Thu, Aug 13, 2020 at 01:48:34PM +0530, Sai Prakash Ranjan wrote: > > KRYO4XX gold/big CPU cores are based on Cortex-A76 which has CSV2 > >

Re: file metadata via fs API

2020-08-13 Thread Karel Zak
On Wed, Aug 12, 2020 at 12:50:28PM -0700, Linus Torvalds wrote: > Convince me otherwise. AGAIN. This is the exact same issue I had with > the notification queues that I really wanted actual use-cases for, and > feedback from actual outside users. I thought (in last 10 years) we all agree that

<    2   3   4   5   6   7   8   9   10   >