Re: [PATCH next 23/25] thermal: Use dev_get_drvdata()

2019-04-28 Thread Kefeng Wang
On 2019/4/29 11:47, Zhang Rui wrote: > On 二, 2019-04-23 at 15:50 +0800, Kefeng Wang wrote: >> Using dev_get_drvdata directly. >> >> Cc: Zhang Rui >> Cc: Eduardo Valentin >> Cc: Daniel Lezcano >> Cc: linux...@vger.kernel.org >> Signed-off-by: Kefeng Wang >> --- >>  .../intel/int340x_thermal/pr

Re: [PATCH v3] ARM: debug-ll: add default address for digicolor

2019-04-28 Thread Olof Johansson
On Wed, Apr 17, 2019 at 05:13:27PM +0200, Arnd Bergmann wrote: > The digicolor platform has three UARTs, but the Kconfig.debug > file explicitly lists port zero as the one to be used for the > console, while not providing any default values. > > This can get an automated randconfig build stuck in

Re: [PATCH] arm64: defconfig: Update UFSHCD for Hi3660 soc

2019-04-28 Thread Olof Johansson
On Tue, Apr 16, 2019 at 06:02:21PM +0100, Valentin Schneider wrote: > Commit 7ee7ef24d02d ("scsi: arm64: defconfig: enable configs for Hisilicon > ufs") > set 'CONFIG_SCSI_UFS_HISI=y', but the configs it depends > on > > (CONFIG_SCSI_HFSHCD_PLATFORM && CONFIG_SCSI_UFSHCD) > > were left to bein

Re: [PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-28 Thread Wenwen Wang
On Mon, Apr 29, 2019 at 1:42 AM Takashi Iwai wrote: > > On Mon, 29 Apr 2019 07:50:11 +0200, > Wenwen Wang wrote: > > > > On Mon, Apr 29, 2019 at 12:36 AM Takashi Iwai wrote: > > > > > > On Sun, 28 Apr 2019 09:18:40 +0200, > > > Takashi Iwai wrote: > > > > > > > > On Sun, 28 Apr 2019 08:42:32 +020

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

2019-04-28 Thread Krzysztof Kozlowski
On Sun, 14 Apr 2019 at 17:48, Krzysztof Kozlowski wrote: > > > The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b: > > Linux 5.1-rc1 (2019-03-17 14:22:26 -0700) > > are available in the Git repository at: > > https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.g

Re: [PATCH 1/2] serial: 8250: Allow port registration without UPF_BOOT_AUTOCONF

2019-04-28 Thread Esben Haabendal
"Enrico Weigelt, metux IT consult" writes: > On 27.04.19 10:58, Esben Haabendal wrote: > > Hi folks, > >> That said, the purpose of UPF_BOOT_AUTOCONF (for 8250 driver) is to >> request and map the register memory. So when that is already done by >> the parent MFD driver, I think it is silly to w

Re: [PATCH] misc: aspeed-p2a-ctrl: fix mixed declarations

2019-04-28 Thread Joel Stanley
On Fri, 26 Apr 2019 at 16:57, Patrick Venture wrote: > > Fix up mixed declarations and code in aspeed_p2a_mmap. > > Tested: Verified the build had the error and that this patch resolved it > and there were no other warnings or build errors associated with > compilation of this driver. > > Reported

Re: [PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-28 Thread Takashi Iwai
On Mon, 29 Apr 2019 07:50:11 +0200, Wenwen Wang wrote: > > On Mon, Apr 29, 2019 at 12:36 AM Takashi Iwai wrote: > > > > On Sun, 28 Apr 2019 09:18:40 +0200, > > Takashi Iwai wrote: > > > > > > On Sun, 28 Apr 2019 08:42:32 +0200, > > > Wenwen Wang wrote: > > > > > > > > In usX2Y_In04_init(), a new

[tip:locking/core] locking/static_key: Factor out the fast path of static_key_slow_dec()

2019-04-28 Thread tip-bot for Jakub Kicinski
Commit-ID: b92e793bbe4a1c49dbf78d8d526561e7a7dd568a Gitweb: https://git.kernel.org/tip/b92e793bbe4a1c49dbf78d8d526561e7a7dd568a Author: Jakub Kicinski AuthorDate: Fri, 29 Mar 2019 17:08:53 -0700 Committer: Ingo Molnar CommitDate: Mon, 29 Apr 2019 08:29:21 +0200 locking/static_key: Fact

[tip:locking/core] locking/static_key: Don't take sleeping locks in __static_key_slow_dec_deferred()

2019-04-28 Thread tip-bot for Jakub Kicinski
Commit-ID: 94b5f312cfb4a66055d9b688dc9ab6b297eb9dcc Gitweb: https://git.kernel.org/tip/94b5f312cfb4a66055d9b688dc9ab6b297eb9dcc Author: Jakub Kicinski AuthorDate: Fri, 29 Mar 2019 17:08:54 -0700 Committer: Ingo Molnar CommitDate: Mon, 29 Apr 2019 08:29:21 +0200 locking/static_key: Don'

[tip:locking/core] locking/static_key: Add support for deferred static branches

2019-04-28 Thread tip-bot for Jakub Kicinski
Commit-ID: ad282a8117d5048398f506f20b092c14b3b3c43f Gitweb: https://git.kernel.org/tip/ad282a8117d5048398f506f20b092c14b3b3c43f Author: Jakub Kicinski AuthorDate: Fri, 29 Mar 2019 17:08:52 -0700 Committer: Ingo Molnar CommitDate: Mon, 29 Apr 2019 08:29:20 +0200 locking/static_key: Add

[tip:sched/core] trace: Fix preempt_enable_no_resched() abuse

2019-04-28 Thread tip-bot for Peter Zijlstra
Commit-ID: e8bd5814989b994cf1b0cb179e1c777e40c0f02c Gitweb: https://git.kernel.org/tip/e8bd5814989b994cf1b0cb179e1c777e40c0f02c Author: Peter Zijlstra AuthorDate: Tue, 23 Apr 2019 22:03:18 +0200 Committer: Ingo Molnar CommitDate: Mon, 29 Apr 2019 08:27:09 +0200 trace: Fix preempt_enabl

[tip:locking/core] locking/lockdep: Test all incompatible scenarios at once in check_irq_usage()

2019-04-28 Thread tip-bot for Frederic Weisbecker
Commit-ID: 948f83768a180ec8e85c4a8ff269d5e433d10815 Gitweb: https://git.kernel.org/tip/948f83768a180ec8e85c4a8ff269d5e433d10815 Author: Frederic Weisbecker AuthorDate: Tue, 2 Apr 2019 18:02:44 +0200 Committer: Ingo Molnar CommitDate: Mon, 29 Apr 2019 08:29:20 +0200 locking/lockdep: Tes

[tip:sched/core] sched/nohz: Run NOHZ idle load balancer on HK_FLAG_MISC CPUs

2019-04-28 Thread tip-bot for Nicholas Piggin
Commit-ID: 9b019acb72e4b5741d88e8936d6f200ed44b66b2 Gitweb: https://git.kernel.org/tip/9b019acb72e4b5741d88e8936d6f200ed44b66b2 Author: Nicholas Piggin AuthorDate: Fri, 12 Apr 2019 14:26:13 +1000 Committer: Ingo Molnar CommitDate: Mon, 29 Apr 2019 08:27:03 +0200 sched/nohz: Run NOHZ id

[tip:perf/core] perf/x86: Make perf callchains work without CONFIG_FRAME_POINTER

2019-04-28 Thread tip-bot for Kairui Song
Commit-ID: d15d356887e770c5f2dcf963b52c7cb510c9e42d Gitweb: https://git.kernel.org/tip/d15d356887e770c5f2dcf963b52c7cb510c9e42d Author: Kairui Song AuthorDate: Tue, 23 Apr 2019 00:26:52 +0800 Committer: Ingo Molnar CommitDate: Mon, 29 Apr 2019 08:25:05 +0200 perf/x86: Make perf callcha

RE: [EXT] Re: [PATCH] dmaengine: fsl-qdma: fixed the source/destination descriptior format

2019-04-28 Thread Peng Ma
>-Original Message- >From: Vinod Koul >Sent: 2019年4月29日 13:16 >To: Peng Ma >Cc: dan.j.willi...@intel.com; Leo Li ; >dmaeng...@vger.kernel.org; linux-kernel@vger.kernel.org >Subject: Re: [EXT] Re: [PATCH] dmaengine: fsl-qdma: fixed the >source/destination descriptior format > >Caution: E

Re: [PATCH 1/2] serial: 8250: Allow port registration without UPF_BOOT_AUTOCONF

2019-04-28 Thread Esben Haabendal
Andy Shevchenko writes: > On Sat, Apr 27, 2019 at 12:01 PM Esben Haabendal wrote: >> Andy Shevchenko writes: >> > On Fri, Apr 26, 2019 at 06:54:05PM +0200, Esben Haabendal wrote: >> >> Andy Shevchenko writes: >> >> The reason for this patch is to be able to do exactly that (set port >> >> type

Re: [RFC PATCH v2 11/17] sched: Basic tracking of matching tasks

2019-04-28 Thread Aaron Lu
On Tue, Apr 23, 2019 at 04:18:16PM +, Vineeth Remanan Pillai wrote: > +/* > + * Find left-most (aka, highest priority) task matching @cookie. > + */ > +struct task_struct *sched_core_find(struct rq *rq, unsigned long cookie) > +{ > + struct rb_node *node = rq->core_tree.rb_node; > + str

Re: [RFC PATCH v2 00/17] Core scheduling v2

2019-04-28 Thread Ingo Molnar
* Li, Aubrey wrote: > > I suspect it's pretty low, below 1% for all rows? > > Hope my this mail box works for this... > > .-. > |NA/AVX vanilla-SMT [std% / sem%] | coresched-SMT [

[PATCH V2] staging: fieldbus: anybus-s: force endiannes annotation

2019-04-28 Thread Nicholas Mc Guire
While the endiannes is being handled correctly sparse was unhappy with the missing annotation as be16_to_cpu() expects a __be16. The __force cast to __be16 makes sparse happy but has no impact on the generated binary. Signed-off-by: Nicholas Mc Guire --- Problem reported by sparse V2: As reque

[PATCH V3] staging: fieldbus: anybus-s: consolidate wait_for_completion_timeout return handling

2019-04-28 Thread Nicholas Mc Guire
wait_for_completion_timeout() returns unsigned long (0 on timeout or remaining jiffies) not int - so this type error allows for a theoretically int overflow - though not in this case where TIMEOUT is only HZ*2). To fix this type inconsistency the completion is wrapped into the if() rather than intr

Re: [GIT PULL] Please pull RDMA subsystem changes

2019-04-28 Thread Heiko Carstens
On Sun, Apr 28, 2019 at 11:52:12AM +, Jason Gunthorpe wrote: > Hi Linus, > > Third rc pull request > > Nothing particularly special here. There is a small merge conflict > with Adrea's mm_still_valid patches which is resolved as below: ... > Jason Gunthorpe (3): > RDMA/mlx5: Do not allo

[PATCH v2] gpio: sch: Add interrupt support

2019-04-28 Thread Jan Kiszka
Validated on the Quark platform, this adds interrupt support on rising and/or falling edges. Signed-off-by: Jan Kiszka --- Changes in v2: - consistently use spinlock irqsave drivers/gpio/gpio-sch.c | 144 +--- 1 file changed, 137 insertions(+), 7 de

[PATCH v2 1/3] power: supply: core: Add POWER_SUPPLY_HEALTH_OVERCURRENT constant

2019-04-28 Thread Andrey Smirnov
Add POWER_SUPPLY_HEALTH_OVERCURRENT constant in order to allow singalling overcurrent condition via power supply health information. Signed-off-by: Andrey Smirnov Reviewed-by: Guenter Roeck Cc: Enric Balletbo Serra Cc: Chris Healy Cc: Lucas Stach Cc: Fabio Estevam Cc: Guenter Roeck Cc: Seba

[PATCH v2 0/3] Driver for UCS1002

2019-04-28 Thread Andrey Smirnov
Everyone: This small series adds a driver for UCS1002 Programmable USB Port Power Controller with Charger Emulation. See [page] for product page and [datasheet] for device dataseet. Hopefully each individual patch is self explanatory. Note that this series is a revival of the upstreaming effort b

[PATCH v2 3/3] dt-bindings: power: supply: Add bindings for Microchip UCS1002

2019-04-28 Thread Andrey Smirnov
Add bindings for Microchip UCS1002 Programmable USB Port Power Controller with Charger Emulation. Signed-off-by: Andrey Smirnov Cc: Enric Balletbo Serra Cc: Chris Healy Cc: Lucas Stach Cc: Fabio Estevam Cc: Guenter Roeck Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: Sebastian Reichel

Re: [-next] system hangs likely due to "modules: Only return -EEXIST for modules that have finished loading"

2019-04-28 Thread Heiko Carstens
On Sat, Apr 27, 2019 at 06:42:51AM -0400, Prarit Bhargava wrote: > On 4/27/19 6:24 AM, Heiko Carstens wrote: > > > > > diff --git a/kernel/module.c b/kernel/module.c > > index 410eeb7e4f1d..48748cfec991 100644 > > --- a/kernel/module.c > > +++ b/kernel/module.c > > @@ -3585,6 +3585,7 @@ again: >

[PATCH 1/2] gpio: vf610: Use devm_platform_ioremap_resource()

2019-04-28 Thread Andrey Smirnov
Replace calls to platform_get_resource() and devm_ioremap_resource() with newly added devm_platform_ioremap_resource() for brevity. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Chris Healy Cc: linux-g...@vger.kernel.org Cc: linux-ke

Re: [PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-28 Thread Wenwen Wang
On Mon, Apr 29, 2019 at 12:36 AM Takashi Iwai wrote: > > On Sun, 28 Apr 2019 09:18:40 +0200, > Takashi Iwai wrote: > > > > On Sun, 28 Apr 2019 08:42:32 +0200, > > Wenwen Wang wrote: > > > > > > In usX2Y_In04_init(), a new urb is firstly created through usb_alloc_urb() > > > and saved to 'usX2Y->In

Re: [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright

2019-04-28 Thread Viresh Kumar
On 28-04-19, 11:51, Daniel Lezcano wrote: > The copyright format does not conform to the format requested by > Linaro: https://wiki.linaro.org/Copyright > > Fix it. > > Signed-off-by: Daniel Lezcano > Viresh Kumar What exactly have I done here ? :) > --- > drivers/thermal/cpu_cooling.c | 6 +

[PATCH 2/2] gpio: vf610: Use PTR_ERR_OR_ZERO() in vf610_gpio_probe()

2019-04-28 Thread Andrey Smirnov
Simplify error checking code by replacing multiple ERR macros with a call to PTR_ERR_OR_ZERO. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Chris Healy Cc: linux-g...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/gpio

[PATCH v2 2/3] power: supply: Add driver for Microchip UCS1002

2019-04-28 Thread Andrey Smirnov
Add driver for Microchip UCS1002 Programmable USB Port Power Controller with Charger Emulation. The driver exposed a power supply device to control/monitor various parameter of the device as well as a regulator to allow controlling VBUS line. Signed-off-by: Enric Balletbo Serra Signed-off-by: And

Re: [RFC PATCH v2 09/17] sched: Introduce sched_class::pick_task()

2019-04-28 Thread Aaron Lu
On Tue, Apr 23, 2019 at 04:18:14PM +, Vineeth Remanan Pillai wrote: > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index c055bad249a9..45d86b862750 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -4132,7 +4132,7 @@ pick_next_entity(struct cfs_rq *cfs_rq, struct

Re: [PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-28 Thread Takashi Iwai
On Sun, 28 Apr 2019 09:18:40 +0200, Takashi Iwai wrote: > > On Sun, 28 Apr 2019 08:42:32 +0200, > Wenwen Wang wrote: > > > > In usX2Y_In04_init(), a new urb is firstly created through usb_alloc_urb() > > and saved to 'usX2Y->In04urb'. Then, a buffer is allocated through > > kmalloc() and saved to

Re: general protection fault in fanotify_handle_event

2019-04-28 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger crash: Reported-and-tested-by: syzbot+15927486a4f1bfcba...@syzkaller.appspotmail.com Tested on: commit: b1da6a51 fsnotify: Fix NULL ptr deref in fanotify_get_fsid() git tree: git://git.kernel.o

Re: [V3 2/2] dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 qDMA controller driver for Layerscape SoCs

2019-04-28 Thread Vinod Koul
On 09-04-19, 15:22, Peng Ma wrote: > DPPA2(Data Path Acceleration Architecture 2) qDMA > The qDMA supports channel virtualization by allowing DMA jobs to be enqueued > into different frame queues. Core can initiate a DMA transaction by preparing > a frame descriptor(FD) for each DMA job and enqueui

linux-next: manual merge of the driver-core tree with the block tree

2019-04-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the driver-core tree got a conflict in: block/blk-sysfs.c between commit: 4d25339e32a1 ("block: don't show io_timeout if driver has no timeout handler") from the block tree and commit: 800f5aa1e7e1 ("block: Replace all ktype default_attrs with groups"

Re: INFO: task hung in __get_super

2019-04-28 Thread Dmitry Vyukov
On Sun, Apr 28, 2019 at 8:51 PM Al Viro wrote: > > On Sun, Apr 28, 2019 at 11:14:06AM -0700, syzbot wrote: > > down_read+0x49/0x90 kernel/locking/rwsem.c:26 > > __get_super.part.0+0x203/0x2e0 fs/super.c:788 > > __get_super include/linux/spinlock.h:329 [inline] > > get_super+0x2e/0x50 fs/super.

v5.1-rc7 fails to build on s390x (Re: Linux 5.1-rc7)

2019-04-28 Thread Michal Kubecek
v5.1-rc7 fails to build on s390x due to vmf->page = ZERO_PAGE(vmf->vm_start); from commit 67f269b37f9b ("RDMA/ucontext: Fix regression with disassociate"). This is not a problem on x86_64 where ZERO_PAGE() doesn't use its argument but s390 version does. I suppose the line should

Re: [PATCH] dmaengine: stm32-dma: fix residue calculation in stm32-dma

2019-04-28 Thread Vinod Koul
On 26-04-19, 15:41, Arnaud Pouliquen wrote: > >> During residue calculation. the DMA can switch to the next sg. When > >> this race condition occurs, the residue returned value is not valid. > >> Indeed the position in the sg returned by the hardware is the position > >> of the next sg, not the cur

Re: [PATCH next v2 1/2] dmaengine: bcm-sba-raid: Use dev_get_drvdata()

2019-04-28 Thread Vinod Koul
On 28-04-19, 12:00, Kefeng Wang wrote: > Using dev_get_drvdata directly. > Applied both, thanks -- ~Vinod

Re: [EXT] Re: [PATCH] dmaengine: fsl-qdma: fixed the source/destination descriptior format

2019-04-28 Thread Vinod Koul
On 28-04-19, 02:00, Peng Ma wrote: > Hi Vinod, > > Thanks your comments. > Please see my comments inline. > > Best Regards, > Peng > > >-Original Message- > >From: Vinod Koul > >Sent: 2019年4月26日 19:51 > >To: Peng Ma > >Cc: dan.j.willi...@intel.com; Leo Li ; > >dmaeng...@vger.kernel.org

Re: [PATCH v4] cpufreq: qoriq: add support for lx2160a

2019-04-28 Thread Viresh Kumar
On 26-04-19, 06:55, Vabhav Sharma wrote: > Enable support of NXP SoC lx2160a to handle the > lx2160a SoC. > > Signed-off-by: Tang Yuantian > Signed-off-by: Yogesh Gaur > Signed-off-by: Vabhav Sharma > Acked-by: Scott Wood > Acked-by: Stephen Boyd > Acked-by: Viresh Kumar > --- > Changes for

[RFC PATCH 01/10] fs/locks: Add trace_leases_conflict

2019-04-28 Thread ira . weiny
From: Ira Weiny Signed-off-by: Ira Weiny --- fs/locks.c | 20 ++- include/trace/events/filelock.h | 35 + 2 files changed, 50 insertions(+), 5 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index eaa1cfaf73b0..4b66ed91fb53

Re: [PATCH V32 01/27] Add the ability to lock down access to the running kernel image

2019-04-28 Thread Daniel Axtens
Hi, >>> I'm thinking about whether we should lock down the powerpc xmon debug >>> monitor - intuitively, I think the answer is yes if for no other reason >>> than Least Astonishment, when lockdown is enabled you probably don't >>> expect xmon to keep letting you access kernel memory. >> >> The or

[RFC PATCH 09/10] fs/locks: Add tracepoint for SIGBUS on LONGTERM expiration

2019-04-28 Thread ira . weiny
From: Ira Weiny --- fs/locks.c | 1 + include/trace/events/filelock.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/locks.c b/fs/locks.c index c77eee081d11..42b96bfc71fa 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1592,6 +1592,7 @@ static void t

[RFC PATCH 07/10] fs/dax: Create function dax_mapping_is_dax()

2019-04-28 Thread ira . weiny
From: Ira Weiny In order to support longterm lease breaking operations. Lease break code in the file systems need to know if a mapping is DAX. Split out the logic to determine if a mapping is DAX and export it. --- fs/dax.c| 23 --- include/linux/dax.h | 6

[RFC PATCH 00/10] RDMA/FS DAX "LONGTERM" lease proposal

2019-04-28 Thread ira . weiny
From: Ira Weiny In order to support RDMA to File system pages[*] without On Demand Paging a number of things need to be done. 1) GUP "longterm"[1] users need to inform the other subsystems that they have taken a pin on a page which may remain pinned for a very "long time".[1] 2) Any page whi

[RFC PATCH 05/10] mm/gup: Take FL_LONGTERM lease if not set by user

2019-04-28 Thread ira . weiny
From: Ira Weiny If a user has failed to take a F_LONGTERM lease on a file and they do a longterm pin on the pages associated with a file, take a FL_LONGTERM lease for them. If the user has not taken a lease on the file they are trying to pin create a FL_LONGTERM lease and attach it to the inode

[RFC PATCH 06/10] fs/locks: Add longterm lease traces

2019-04-28 Thread ira . weiny
From: Ira Weiny --- fs/locks.c | 5 + include/trace/events/filelock.h | 37 - 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/fs/locks.c b/fs/locks.c index ae508d192223..58c6d7a411b6 100644 --- a/fs/locks.c +++ b/fs/locks.c

[RFC PATCH 10/10] mm/gup: Remove FOLL_LONGTERM DAX exclusion

2019-04-28 Thread ira . weiny
From: Ira Weiny Now that there is a mechanism for users to safely take LONGTERM pins on FS DAX pages. Remove the FS DAX exclusion from GUP with FOLL_LONGTERM. Special processing remains in effect for CONFIG_CMA --- mm/gup.c | 65 ++-- 1 file

[RFC PATCH 08/10] mm/gup: fs: Send SIGBUS on truncate of active file

2019-04-28 Thread ira . weiny
From: Ira Weiny Now that the taking of LONGTERM leases is in place we can now facilitate sending a SIGBUS to process if a file truncate or hole punch is performed and they do not respond by releasing the lease. The standard file lease_break_time is used to time out the LONGTERM lease which is in

[RFC PATCH 04/10] WIP: mm/gup: Ensure F_LONGTERM lease is held on GUP pages

2019-04-28 Thread ira . weiny
From: Ira Weiny Honestly I think I should remove this patch. It is removed later in the series and ensuring the lease is there at GUP time does not guarantee the lease is held. The user could remove the lease??? Regardless the code in GUP to take the lease holds it even if the user does try to

[RFC PATCH 02/10] fs/locks: Introduce FL_LONGTERM file lease

2019-04-28 Thread ira . weiny
From: Ira Weiny GUP longterm pins of non-pagecache file system pages (FS DAX) are currently disallowed because they are unsafe. The danger for pinning these pages comes from the fact that hole punch and/or truncate of those files results in the pages being mapped and pinned by a user space proce

[RFC PATCH 03/10] mm/gup: Pass flags down to __gup_device_huge* calls

2019-04-28 Thread ira . weiny
From: Ira Weiny In order to support taking and/or checking for a LONGTERM lease on a FS DAX inode these calls need to know if FOLL_LONGTERM was specified. This patch passes the flags down but does not use them. It does this in prep for 2 future patches. --- mm/gup.c | 26 +-

[PATCH] soc: ti: pm33xx: Add a print while entering RTC only mode with DDR in self-refresh

2019-04-28 Thread Keerthy
Currently there is no way to distinguish if the SoC entered DS0 mode or the RTC only mode. Hence add a print before entering the RTC only mode. Signed-off-by: Keerthy --- drivers/soc/ti/pm33xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/ti/pm33xx.c b/drivers/soc/ti/pm33xx.c

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

2019-04-28 Thread Stephen Rothwell
Hi Mark, After merging the spi tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/spi/spi-ep93xx.c: In function 'ep93xx_spi_probe': drivers/spi/spi-ep93xx.c:654:6: warning: unused variable 'i' [-Wunused-variable] int i; ^ Introduced by commit 06a391b16

Re: linux-next: Fixes tag needs some work in the slave-dma tree

2019-04-28 Thread Vinod Koul
On 28-04-19, 17:17, Stephen Rothwell wrote: > Hi all, > > In commit > > 9bd1be60f55b ("dmaengine: stm32-dma: Fix unsigned variable compared with > zero") > > Fixes tag > > Fixes: f4fd2ec08f17: ("dmaengine: stm32-dma: use platform_get_irq()") > > has these problem(s): > > - The colon fo

Re: [PATCH v3 RESEND 2/2] x86/mm/KASLR: Fix the size of vmemmap section

2019-04-28 Thread Kirill A. Shutemov
On Mon, Apr 22, 2019 at 05:10:45PM +0800, Baoquan He wrote: > kernel_randomize_memory() hardcodes the size of vmemmap section as 1 TB, > to support the maximum amount of system RAM in 4-level paging mode, 64 TB. > > However, 1 TB is not enough for vmemmap in 5-level paging mode. Assuming > the siz

[PATCH] scripts/tags.sh: fix direct execution of scripts/tags.sh

2019-04-28 Thread Masahiro Yamada
I thought this script was run via "make tags" etc. but some people run it directly. Prior to commit a9a49c2ad9b9 ("kbuild: use $(srctree) instead of KBUILD_SRC to check out-of-tree build"), in such a usecase, "tree" was set empty since KBUILD_SRC is undefined. Now, "tree" is set to "${srctree}/",

[PATCH 2/2] pinctrl: mediatek: Update cur_mask in mask/mask ops

2019-04-28 Thread Nicolas Boichat
During suspend/resume, mtk_eint_mask may be called while wake_mask is active. For example, this happens if a wake-source with an active interrupt handler wakes the system: irq/pm.c:irq_pm_check_wakeup would disable the interrupt, so that it can be handled later on in the resume flow. However, this

[PATCH 0/2] pinctrl: mediatek: Fix 2 issues related to resume from wake sources.

2019-04-28 Thread Nicolas Boichat
This fixes 2 issues when resuming from a wake source, especially if these wake sources are level-sensitive. Tested on mt8183 with the series in https://patchwork.kernel.org/cover/10921121/, but this should affect all mediatek platforms. Nicolas Boichat (2): pinctrl: mediatek: Ignore interrupts

[PATCH 1/2] pinctrl: mediatek: Ignore interrupts that are wake only during resume

2019-04-28 Thread Nicolas Boichat
Before suspending, mtk-eint would set the interrupt mask to the one in wake_mask. However, some of these interrupts may not have a corresponding interrupt handler, or the interrupt may be disabled. On resume, the eint irq handler would trigger nevertheless, and irq/pm.c:irq_pm_check_wakeup would b

Re: [RFC PATCH v2 00/17] Core scheduling v2

2019-04-28 Thread Aaron Lu
On Tue, Apr 23, 2019 at 06:45:27PM +, Vineeth Remanan Pillai wrote: > >> - Processes with different tags can still share the core > > > I may have missed something... Could you explain this statement? > > > This, to me, is the whole point of the patch series. If it's not > > doing this then .

Re: [PATCH next 23/25] thermal: Use dev_get_drvdata()

2019-04-28 Thread Zhang Rui
On 二, 2019-04-23 at 15:50 +0800, Kefeng Wang wrote: > Using dev_get_drvdata directly. > > Cc: Zhang Rui > Cc: Eduardo Valentin > Cc: Daniel Lezcano > Cc: linux...@vger.kernel.org > Signed-off-by: Kefeng Wang > --- >  .../intel/int340x_thermal/processor_thermal_device.c  | 8 +- > -- >  

Re: [PATCH 037/114] arch: powerpc: Kconfig: pedantic formatting

2019-04-28 Thread Michael Ellerman
"Enrico Weigelt, metux IT consult" writes: > Formatting of Kconfig files doesn't look so pretty, so let the > Great White Handkerchief come around and clean it up. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > arch/powerpc/Kconfig | 28 ++--

Re: [RFC PATCH v2 11/17] sched: Basic tracking of matching tasks

2019-04-28 Thread Aaron Lu
On Tue, Apr 23, 2019 at 04:18:16PM +, Vineeth Remanan Pillai wrote: > +/* > + * l(a,b) > + * le(a,b) := !l(b,a) > + * g(a,b) := l(b,a) > + * ge(a,b) := !l(a,b) > + */ > + > +/* real prio, less is less */ > +static inline bool __prio_less(struct task_struct *a, struct task_struct *b, > bool co

[PATCH 2/2] pinctrl: mediatek: mt8183: Add mtk_eint_pm_ops

2019-04-28 Thread Nicolas Boichat
Setting this up will configure wake from suspend properly, and wake only for the interrupts that are setup in wake_mask, not all interrupts. Signed-off-by: Nicolas Boichat Reviewed-by: Chuanjia Liu --- drivers/pinctrl/mediatek/pinctrl-mt8183.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH 1/2] pinctrl: mediatek: Add mtk_eint_pm_ops to common-v2

2019-04-28 Thread Nicolas Boichat
pinctrl variants that include pinctrl-mtk-common-v2.h (and not pinctrl-mtk-common.h) also need to use mtk_eint_pm_ops to setup wake mask properly, so copy over the pm_ops to v2. It is not easy to merge the 2 copies (or move mtk_eint_suspend/resume to mtk-eint.c), as we need to dereference pctrl->e

[PATCH 0/2] pinctrl: mediatek: mt8183: Add support for wake sources

2019-04-28 Thread Nicolas Boichat
This adds support for wake sources in pinctrl-mtk-common-v2, and pinctrl-mt8183. Without this patch, all interrupts that are left enabled on suspend act as wake sources (and wake sources without interrupt enabled do not). Nicolas Boichat (2): pinctrl: mediatek: Add mtk_eint_pm_ops to common-v2

Re: [PATCH v2] moduleparam: Save information about built-in modules in separate file

2019-04-28 Thread Masahiro Yamada
On Sat, Apr 27, 2019 at 12:29 AM Alexey Gladkov wrote: > > On Fri, Apr 19, 2019 at 12:03:50PM +0900, Masahiro Yamada wrote: > > On Fri, Apr 19, 2019 at 12:36 AM Jessica Yu wrote: > > > > > > +++ Masahiro Yamada [19/04/19 00:26 +0900]: > > > >On Thu, Apr 18, 2019 at 10:52 PM Jessica Yu wrote: > >

[PATCH] clk: imx: add fractional-N pll support to pllv4

2019-04-28 Thread Anson Huang
The pllv4 supports fractional-N function, the formula is: PLL output freq = input * (mult + num/denom), This patch adds fractional-N function support, including clock round rate, calculate rate and set rate, with this patch, the clock rate of APLL in clock tree is more accurate than before: With

RE: [EXT] Re: [PATCH 1/6] PCI: mobiveil: Add the EP mode support

2019-04-28 Thread Xiaowei Bao
Hi Lorenzo, Thanks a lot for your comments, I am waiting for this patches approve of http://patchwork.ozlabs.org/project/linux-pci/list/?series=102378, and once these patches approved, I will resent the patches base on the latest base. Best regards Xiaowei -Original Message- From: Lore

Re: [PATCH-tip v7 00/20] locking/rwsem: Rwsem rearchitecture part 2

2019-04-28 Thread Linus Torvalds
On Sun, Apr 28, 2019 at 5:28 PM Waiman Long wrote: > > Not really, this is a serious problem that have to be backported to > earlier stable releases and downstream. The clever code is helpful in > those cases. Fair enough, I guess the code will live in the stable trees for a longish while.

Re: [RFC PATCH v2 00/17] Core scheduling v2

2019-04-28 Thread Li, Aubrey
On 2019/4/28 20:17, Ingo Molnar wrote: > > * Aubrey Li wrote: > >> On Sun, Apr 28, 2019 at 5:33 PM Ingo Molnar wrote: >>> So because I'm a big fan of presenting data in a readable fashion, here >>> are your results, tabulated: >> >> I thought I tried my best to make it readable, but this one lo

RE: [PATCH] mfd: imx6sx: add MQS register definition for iomuxc gpr

2019-04-28 Thread Aisheng Dong
> From: S.j. Wang > Sent: Sunday, April 28, 2019 5:53 PM > > Add macros to define masks and bits for imx6sx MQS registers > > Signed-off-by: Shengjiu Wang Reviewed-by: Dong Aisheng Regards Dong Aisheng

Greetings Friend

2019-04-28 Thread ibrahim Isma
Greetings Friend Forgive me for writing you this letter , I will like to bring to your that (8.5.million Euro claims ) This is a legitimate transaction and The money will be shared 60% for me and 40% for you . get back to me, I will give you full details on how the money will be transfer to y

Re: general protection fault in fanotify_handle_event

2019-04-28 Thread Jan Kara
On Fri 26-04-19 04:13:00, syzbot wrote: > Hello, > > syzbot has tested the proposed patch but the reproducer still triggered > crash: > general protection fault in fanotify_handle_event > > kasan: CONFIG_KASAN_INLINE enabled > kasan: GPF could be caused by NULL-ptr deref or user memory access > g

Re: INFO: task hung in __get_super

2019-04-28 Thread Tetsuo Handa
On 2019/04/29 3:51, Al Viro wrote: > ioctl(..., BLKRRPART) blocked on ->s_umount in __get_super(). > The trouble is, the only things holding ->s_umount appears to be > these: Not always true. lockdep_print_held_locks() from debug_show_all_locks() can not report locks held by TASK_RUNNING threads.

Re: [RFC PATCH v5 4/4] x86/acrn: Add hypercall for ACRN guest

2019-04-28 Thread Zhao, Yakui
On 2019年04月28日 18:03, Borislav Petkov wrote: On Sun, Apr 28, 2019 at 09:56:35AM +0800, Zhao, Yakui wrote: Thanks for the reminder about the access width. It is 64-bit register. What I said is the "movq", not "movl". (I understand that movl is incorrect for 64-bit register). I didn't say any

Re: [PATCH 1/4] PCI: Replace dev_*() printk wrappers with pci_*() printk wrappers

2019-04-28 Thread Bjorn Helgaas
On Sun, Apr 28, 2019 at 07:02:58PM -0500, Bjorn Helgaas wrote: > On Sat, Apr 27, 2019 at 02:13:01PM -0500, f...@fredlawl.com wrote: > > From: Frederick Lawler > > > > Replace remaining instances of dev_*() printk wrappers with pci_*() > > printk wrappers. No functional change intended. > > > > S

Re: [PATCH 2/4] PCI: pciehp: Replace ctrl_*() with pci_*()

2019-04-28 Thread Bjorn Helgaas
On Sat, Apr 27, 2019 at 10:03:01PM +0200, Lukas Wunner wrote: > On Sat, Apr 27, 2019 at 02:13:02PM -0500, f...@fredlawl.com wrote: > > Hotplug useses custom ctrl_*() dev_*() printk wrappers for logging > > messages. To make hotplug conform to pci logging, replace uses of these > > wrappers with pci

Dear Friend (Assalamu Alaikum),

2019-04-28 Thread AISHA GADDAFI
-- Dear Friend (Assalamu Alaikum), I came across your e-mail contact prior a private search while in need of your assistance. My name is Aisha Al-Qaddafi a single Mother and a Widow with three Children. I am the only biological Daughter of late Libyan President (Late Colonel Muammar Gaddafi). I

Re: [PATCH-tip v7 00/20] locking/rwsem: Rwsem rearchitecture part 2

2019-04-28 Thread Waiman Long
On 4/28/19 8:10 PM, Linus Torvalds wrote: > On Sun, Apr 28, 2019 at 4:12 PM Waiman Long wrote: >> I implemented your suggestion in patch 1 as it will produce simpler and >> faster code. However, one of the changes in my patchset is to wake up >> all the readers in the wait list. This means I have

Linux 5.1-rc7

2019-04-28 Thread Linus Torvalds
If rc6 was bigger than I wished, it really does seem to have been just due to timing of pull requests. Because rc7 is tiny. Just under half of the patch is various kinds of networking changes: a mix of core networking, network drivers and some netfilter selftests. The rest is mostly the usual arc

Re: [PATCH 4/4] PCI/portdrv: Add dev_fmt() to port drivers

2019-04-28 Thread Bjorn Helgaas
On Sat, Apr 27, 2019 at 02:13:04PM -0500, f...@fredlawl.com wrote: > From: Frederick Lawler > > Add dev_fmt() to port drivers. > > Signed-off-by: Frederick Lawler > --- > drivers/pci/hotplug/pciehp_core.c | 3 +++ > drivers/pci/hotplug/pciehp_ctrl.c | 2 ++ > drivers/pci/hotplug/pciehp_hpc.c

Re: [PATCH-tip v7 00/20] locking/rwsem: Rwsem rearchitecture part 2

2019-04-28 Thread Linus Torvalds
On Sun, Apr 28, 2019 at 4:12 PM Waiman Long wrote: > > I implemented your suggestion in patch 1 as it will produce simpler and > faster code. However, one of the changes in my patchset is to wake up > all the readers in the wait list. This means I have to jump over the > writers and wake up the re

Re: [PATCH 3/4] PCI: pciehp: Remove unused macro definitions

2019-04-28 Thread Bjorn Helgaas
On Sun, Apr 28, 2019 at 06:55:36PM +0300, Andy Shevchenko wrote: > On Sat, Apr 27, 2019 at 02:13:03PM -0500, f...@fredlawl.com wrote: > > Now that all uses for the ctrl_*() printk wrappers are removed from > > files and replaces with pci_*() or pr_*() printk wrappers, remove the > > unused macro de

Re: [GIT PULL] Please pull RDMA subsystem changes

2019-04-28 Thread Linus Torvalds
On Sun, Apr 28, 2019 at 4:49 PM Jason Gunthorpe wrote: > > It is for high availability - we have situations where the hardware > can fault and needs some kind of destructive recovery. For instance a > firmware reboot, or a VM migration. > > In these designs there may be multiple cards in the syste

Re: [PATCH 1/4] PCI: Replace dev_*() printk wrappers with pci_*() printk wrappers

2019-04-28 Thread Bjorn Helgaas
On Sat, Apr 27, 2019 at 02:13:01PM -0500, f...@fredlawl.com wrote: > From: Frederick Lawler > > Replace remaining instances of dev_*() printk wrappers with pci_*() > printk wrappers. No functional change intended. > > Signed-off-by: Frederick Lawler > --- > drivers/pci/pcie/aer.c| 13 +

[PATCH] memcg, oom: no oom-kill for __GFP_RETRY_MAYFAIL

2019-04-28 Thread Shakeel Butt
The documentation of __GFP_RETRY_MAYFAIL clearly mentioned that the OOM killer will not be triggered and indeed the page alloc does not invoke OOM killer for such allocations. However we do trigger memcg OOM killer for __GFP_RETRY_MAYFAIL. Fix that. Signed-off-by: Shakeel Butt --- mm/memcontrol.

Re: [PATCH v2] memcg: refill_stock for kmem uncharging too

2019-04-28 Thread Shakeel Butt
On Wed, Apr 24, 2019 at 11:49 PM Michal Hocko wrote: > > On Tue 23-04-19 08:44:05, Shakeel Butt wrote: > > The commit 475d0487a2ad ("mm: memcontrol: use per-cpu stocks for socket > > memory uncharging") added refill_stock() for skmem uncharging path to > > optimize workloads having high network tr

Re: [GIT PULL] Please pull RDMA subsystem changes

2019-04-28 Thread Jason Gunthorpe
On Sun, Apr 28, 2019 at 09:59:56AM -0700, Linus Torvalds wrote: > On Sun, Apr 28, 2019 at 4:52 AM Jason Gunthorpe wrote: > > > > Nothing particularly special here. There is a small merge conflict > > with Adrea's mm_still_valid patches which is resolved as below: > > I still don't understand *why

Re: [PATCH 1/4] x86/thread_info: introduce ->ftrace_int3_stack member

2019-04-28 Thread Andy Lutomirski
> On Apr 28, 2019, at 2:22 PM, Nicolai Stange wrote: > > Steven Rostedt writes: > >> On Sun, 28 Apr 2019 10:41:10 -0700 >> Andy Lutomirski wrote: >> >> Note that at any given point in time, there can be at most four such call insn emulations pending: namely at most one per "

Re: [PATCH 3/7] thermal/drivers/core: Add init section table for self-encapsulation

2019-04-28 Thread Daniel Lezcano
On 23/04/2019 07:59, Zhang Rui wrote: > Hi, Daniel, > > thanks for clarifying. > It is true that we need to make thermal framework ready as early as > possible. And a static table works for me as long as vmlinux.lds.h is > the proper place. > > Arnd, > are you okay with this patch? if yes, I supp

Re: [PATCH-tip v7 00/20] locking/rwsem: Rwsem rearchitecture part 2

2019-04-28 Thread Waiman Long
On 4/28/19 7:12 PM, Waiman Long wrote: > On 4/28/19 6:46 PM, Linus Torvalds wrote: >> This doesn't seem to be the full diff - looking at that patch 1 you >> seem to have taken my suggested list_cut_before() change too. >> >> I'm not against it (it does seem to be simpler and better), I just >> hope

Re: [PATCH-tip v7 00/20] locking/rwsem: Rwsem rearchitecture part 2

2019-04-28 Thread Waiman Long
On 4/28/19 6:46 PM, Linus Torvalds wrote: > This doesn't seem to be the full diff - looking at that patch 1 you > seem to have taken my suggested list_cut_before() change too. > > I'm not against it (it does seem to be simpler and better), I just > hope you double-checked it, since I kind of hand-w

Re: [PATCH] md: properly lock and unlock in rdev_attr_store()

2019-04-28 Thread NeilBrown
On Sun, Apr 28 2019, Lukas Bulwahn wrote: > rdev_attr_store() should lock and unlock mddev->reconfig_mutex in a > balanced way with mddev_lock() and mddev_unlock(). It does. > > But when rdev->mddev is NULL, rdev_attr_store() would try to unlock > without locking before. Resolve this locking iss

Re: [PATCH-tip v7 00/20] locking/rwsem: Rwsem rearchitecture part 2

2019-04-28 Thread Linus Torvalds
This doesn't seem to be the full diff - looking at that patch 1 you seem to have taken my suggested list_cut_before() change too. I'm not against it (it does seem to be simpler and better), I just hope you double-checked it, since I kind of hand-waved it. Linus On Sun, Apr 28

Re: [PATCH] mm/oom_killer: Add task UID to info message on an oom kill

2019-04-28 Thread Michal Hocko
On Wed 24-04-19 14:20:13, Joel Savitz wrote: > In the event of an oom kill, useful information about the killed > process is printed to dmesg. Users, especially system administrators, > will find it useful to immediately see the UID of the process. > > In the following example, abuse_the_ram is th

  1   2   3   >