Re: [PATCH v2] kbuild: refactor scripts/Makefile.extrawarn

2019-08-29 Thread Sedat Dilek
On Thu, Aug 29, 2019 at 8:13 PM Masahiro Yamada wrote: > > Instead of the warning-[123] magic, let's accumulate compiler options > to KBUILD_CFLAGS directly as the top Makefile does. I think this makes > easier to understand what is going on in this file. > > This commit slightly changes the behav

Re: [PATCH 0/2] software node: fixes for two smatch errors

2019-08-29 Thread Heikki Krogerus
On Fri, Aug 30, 2019 at 08:32:24AM +0200, Greg Kroah-Hartman wrote: > On Thu, Aug 29, 2019 at 04:21:14PM +0300, Heikki Krogerus wrote: > > Hi, > > > > Both potentially unitialized variable errors. > > > > Heikki Krogerus (2): > > software node: Fix use of potentially uninitialized variable > >

Re: [PATCH v2] scripts: coccinelle: check for !(un)?likely usage

2019-08-29 Thread Denis Efremov
On 30.08.2019 03:42, Julia Lawall wrote: > > > On Thu, 29 Aug 2019, Denis Efremov wrote: > >> On 8/29/19 8:10 PM, Denis Efremov wrote: >>> This patch adds coccinelle script for detecting !likely and >>> !unlikely usage. These notations are confusing. It's better >>> to replace !likely(x) with

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-29 Thread Ivan Vecera
On Fri, 30 Aug 2019 08:36:24 +0200 Jiri Pirko wrote: > Fri, Aug 30, 2019 at 08:02:33AM CEST, da...@davemloft.net wrote: > >From: Jiri Pirko > >Date: Fri, 30 Aug 2019 07:39:40 +0200 > > > >> Because the "promisc mode" would gain another meaning. Now how the > >> driver should guess which meanin

Oops (request_key_auth_describe) while running cve-2016-7042 from LTP

2019-08-29 Thread Sachin Sant
While running LTP tests (specifically cve-2016-7042) against 5.3-rc6 (commit 4a64489cf8) on a POWER9 LPAR, following problem is seen [ 3373.814425] FS-Cache: Netfs 'nfs' registered for caching [ 7695.250230] Clock: inserting leap second 23:59:60 UTC [ 8074.351033] BUG: Kernel NULL pointer derefere

Re: [PATCH v2 3/6] mm/memory_hotplug: Process all zones when removing memory

2019-08-29 Thread Michal Hocko
On Fri 30-08-19 08:20:32, David Hildenbrand wrote: [...] > Regarding shrink_zone_span(), I suspect it was introduced by > > d0dc12e86b31 ("mm/memory_hotplug: optimize memory hotplug") zone shrinking code is much older - 815121d2b5cd5. But I do not think this is really needed for Fixes tag. -- Mi

Re: [PATCH v2 0/8] sched/fair: rework the CFS load balance

2019-08-29 Thread Vincent Guittot
Hi Phil, On Thu, 29 Aug 2019 at 21:23, Phil Auld wrote: > > On Thu, Aug 01, 2019 at 04:40:16PM +0200 Vincent Guittot wrote: > > Several wrong task placement have been raised with the current load > > > > -- > > 2.7.4 > > > > I keep expecting a v3 so I have not dug into all the patches in detail.

Re: [PATCH] arm64: numa: check the node id before accessing node_to_cpumask_map

2019-08-29 Thread Michal Hocko
On Fri 30-08-19 14:35:26, Yunsheng Lin wrote: > On 2019/8/30 13:55, Michal Hocko wrote: > > On Fri 30-08-19 10:26:31, Yunsheng Lin wrote: > >> Some buggy bios may not set the device' numa id, and dev_to_node > >> will return -1, which may cause global-out-of-bounds error > >> detected by KASAN. > >

Re: [PATCH v5 5/5] powerpc/perf: split callchain.c by bitness

2019-08-29 Thread Michal Suchánek
On Fri, 30 Aug 2019 06:35:11 + (UTC) Christophe Leroy wrote: > On 08/29/2019 10:28 PM, Michal Suchanek wrote: > > Building callchain.c with !COMPAT proved quite ugly with all the > > defines. Splitting out the 32bit and 64bit parts looks better. > > > > Also rewrite current_is_64bit as commo

Re: [PATCH 08/15] sched,fair: simplify timeslice length code

2019-08-29 Thread Vincent Guittot
On Thu, 29 Aug 2019 at 18:00, Rik van Riel wrote: > > On Thu, 2019-08-29 at 16:02 +0200, Vincent Guittot wrote: > > On Thu, 29 Aug 2019 at 01:19, Rik van Riel wrote: > > > > > What am I overlooking? > > > > My point is more for task that runs several ticks in a row. Their > > sched_slice will be

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-29 Thread Greg KH
On Fri, Aug 30, 2019 at 02:59:01AM +0800, Peikan Tsai wrote: > On Thu, Aug 29, 2019 at 05:27:22PM +0200, Christian Brauner wrote: > > On Thu, Aug 29, 2019 at 09:53:59AM -0400, Joel Fernandes wrote: > > > On Thu, Aug 29, 2019 at 08:42:29AM +0200, Greg KH wrote: > > > > On Thu, Aug 29, 2019 at 01:49:

Re: [PATCH] staging: exfat: add exfat filesystem code to staging

2019-08-29 Thread Gao Xiang
Hi Dan, On Fri, Aug 30, 2019 at 10:06:25AM +0800, Chao Yu wrote: > On 2019/8/29 23:43, Dan Carpenter wrote: > >> p.s. There are 2947 (un)likely places in fs/ directory. > > > > I was complaining about you adding new pointless ones, not existing > > ones. The likely/unlikely annotations are suppo

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-29 Thread Greg KH
On Thu, Aug 29, 2019 at 05:27:22PM +0200, Christian Brauner wrote: > On Thu, Aug 29, 2019 at 09:53:59AM -0400, Joel Fernandes wrote: > > On Thu, Aug 29, 2019 at 08:42:29AM +0200, Greg KH wrote: > > > On Thu, Aug 29, 2019 at 01:49:53PM +0800, Peikan Tsai wrote: > > [snip] > > > > The allocated size

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-29 Thread Jiri Pirko
Fri, Aug 30, 2019 at 08:02:33AM CEST, da...@davemloft.net wrote: >From: Jiri Pirko >Date: Fri, 30 Aug 2019 07:39:40 +0200 > >> Because the "promisc mode" would gain another meaning. Now how the >> driver should guess which meaning the user ment when he setted it? >> filter or trap? >> >> That is

Re: [PATCH] arm64: numa: check the node id before accessing node_to_cpumask_map

2019-08-29 Thread Yunsheng Lin
On 2019/8/30 13:55, Michal Hocko wrote: > On Fri 30-08-19 10:26:31, Yunsheng Lin wrote: >> Some buggy bios may not set the device' numa id, and dev_to_node >> will return -1, which may cause global-out-of-bounds error >> detected by KASAN. > > Why should we workaround a buggy bios like that? Is it

Re: [PATCH v5 3/5] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-29 Thread Christophe Leroy
On 08/29/2019 10:28 PM, Michal Suchanek wrote: > There are numerous references to 32bit functions in generic and 64bit > code so ifdef them out. > > Signed-off-by: Michal Suchanek > --- > v2: > - fix 32bit ifdef condition in signal.c > - simplify the compat ifdef condition in vdso.c - 64bit is re

Re: [PATCH v5 5/5] powerpc/perf: split callchain.c by bitness

2019-08-29 Thread Christophe Leroy
On 08/29/2019 10:28 PM, Michal Suchanek wrote: > Building callchain.c with !COMPAT proved quite ugly with all the > defines. Splitting out the 32bit and 64bit parts looks better. > > Also rewrite current_is_64bit as common function. No other code change > intended. Nice result. Could look even b

Re: [PATCH v5, 30/32] drm/mediatek: add connection from DITHER0 to DSI0

2019-08-29 Thread CK Hu
Hi, Yongqiang: On Thu, 2019-08-29 at 22:50 +0800, yongqiang@mediatek.com wrote: > From: Yongqiang Niu > > This patch add connection from DITHER0 to DSI0 Reviewed-by: CK Hu > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + > 1 file changed, 5 ins

Re: [PATCH 0/2] software node: fixes for two smatch errors

2019-08-29 Thread Greg Kroah-Hartman
On Thu, Aug 29, 2019 at 04:21:14PM +0300, Heikki Krogerus wrote: > Hi, > > Both potentially unitialized variable errors. > > Heikki Krogerus (2): > software node: Fix use of potentially uninitialized variable > software node: Fix use of potentially uninitialized variable You can't send 2 dif

Re: [PATCH AUTOSEL 4.19 11/29] binder: take read mode of mmap_sem in binder_alloc_free_page()

2019-08-29 Thread Greg Kroah-Hartman
On Thu, Aug 29, 2019 at 10:13:20AM -0500, Tyler Hicks wrote: > Hello, Sasha! > > On 2019-08-29 06:49:51, Sasha Levin wrote: > > From: Tyler Hicks > > > > [ Upstream commit 60d4885710836595192c42d3e04b27551d30ec91 ] > > > > Restore the behavior of locking mmap_sem for reading in > > binder_alloc

Re: [kbuild-all] [tip: x86/vmware] input/vmmouse: Update the backdoor call with support for new instructions

2019-08-29 Thread Philip Li
On Fri, Aug 30, 2019 at 02:20:53PM +0800, Philip Li wrote: > On Fri, Aug 30, 2019 at 08:06:27AM +0200, Thomas Gleixner wrote: > > Philip, > > > > On Fri, 30 Aug 2019, Philip Li wrote: > > > > > > wanna test trees, I'd suggest simply testing TIP's tip/master branch > > > > which gets redone on a d

RE: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-08-29 Thread Peng Fan
Hi Jassi, > Subject: Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM > SMC/HVC mailbox > > On Tue, Aug 27, 2019 at 10:02 PM Peng Fan wrote: > > > > From: Peng Fan > > > > The ARM SMC/HVC mailbox binding describes a firmware interface to > > trigger actions in software lay

[PATCH v1 3/3] perf cs-etm: Correct the packet usage for instruction sample

2019-08-29 Thread Leo Yan
It uses 'tidq->packet' rather than 'tidq->prev_packet' to generate instruction sample, comparing against the thread stack and the branch samples which are using the 'tidp->prev_packet', thus this leads the instruction sample to use one ahead packet than thread stack and branch samples. As result,

[PATCH v1 2/3] perf cs-etm: Add callchain to instruction sample

2019-08-29 Thread Leo Yan
Firstly, this patch adds support for the thread stack; when every branch packet is coming we will push or pop the stack based on the sample flags. Secondly, based on the thread stack we can synthesize call chain for the instruction sample, this can be used by itrace option '--itrace=g'. Signed-of

[PATCH v1 1/3] perf cs-etm: Refactor instruction size handling

2019-08-29 Thread Leo Yan
There has several code pieces need to know the instruction size, but now every place calculates the instruction size separately. This patch refactors to create a new function cs_etm__instr_size() as a central place to analyze the instruction length based on ISA type and instruction value. Signed-

[PATCH v1 0/3] perf cs-etm: Add support for callchain

2019-08-29 Thread Leo Yan
This patch seris adds support for instruction sample's callchain. Patch 01 is to refactor the instruction size calculation; patch 02 is to add thread stack and callchain support; patch 03 is a minor fixing for instruction sample generation thus the instruction sample can be alignment with the call

Re: [PATCH AUTOSEL 4.14 05/14] binder: take read mode of mmap_sem in binder_alloc_free_page()

2019-08-29 Thread Greg Kroah-Hartman
On Thu, Aug 29, 2019 at 10:10:52AM -0500, Tyler Hicks wrote: > Hello, Sasha! > > On 2019-08-29 06:50:34, Sasha Levin wrote: > > From: Tyler Hicks > > > > [ Upstream commit 60d4885710836595192c42d3e04b27551d30ec91 ] > > > > Restore the behavior of locking mmap_sem for reading in > > binder_alloc

Re: [PATCH 04/11] dt-bindings: phy-mtk-tphy: add a new reference clock

2019-08-29 Thread Chunfeng Yun
On Thu, 2019-08-29 at 15:05 -0500, Rob Herring wrote: > On Fri, Aug 23, 2019 at 03:00:11PM +0800, Chunfeng Yun wrote: > > Usually the digital and anolog phys use the same reference clock, > > but on some platforms, they are separated, so add another optional > > clock to support it. > > In order to

Re: [PATCH v5, 26/32] drm/mediatek: add connection from RDMA0 to COLOR0

2019-08-29 Thread CK Hu
Hi, Yongqiang: On Thu, 2019-08-29 at 22:50 +0800, yongqiang@mediatek.com wrote: > From: Yongqiang Niu > > This patch add connection from RDMA0 to COLOR0 Reviewed-by: CK Hu > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + > 1 file changed, 5 ins

Re: linux-next: Tree for Aug 27 (objtool)

2019-08-29 Thread Masami Hiramatsu
Hi Josh, On Thu, 29 Aug 2019 12:59:31 -0500 Josh Poimboeuf wrote: > On Thu, Aug 29, 2019 at 10:53:56AM +0900, Masami Hiramatsu wrote: > > Hi Josh, > > > > On Wed, 28 Aug 2019 11:34:33 -0500 > > Josh Poimboeuf wrote: > > > > > On Wed, Aug 28, 2019 at 11:13:31AM -0500, Josh Poimboeuf wrote: >

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-29 Thread Michal Hocko
On Thu 29-08-19 10:03:21, Yang Shi wrote: > On Wed, Aug 28, 2019 at 9:02 AM Michal Hocko wrote: > > > > On Wed 28-08-19 17:46:59, Kirill A. Shutemov wrote: > > > On Wed, Aug 28, 2019 at 02:12:53PM +, Michal Hocko wrote: > > > > On Wed 28-08-19 17:03:29, Kirill A. Shutemov wrote: > > > > > On W

Re: [PATCH 02/11] dt-bindings: phy-mtk-tphy: make the ref clock optional

2019-08-29 Thread Chunfeng Yun
On Thu, 2019-08-29 at 14:25 -0500, Rob Herring wrote: > On Fri, Aug 23, 2019 at 03:00:09PM +0800, Chunfeng Yun wrote: > > Make the ref clock optional, then we no need refer to a fixed-clock > > in DTS anymore when the clock of USB3 PHY comes from oscillator > > directly > > > > Signed-off-by: Chun

Re: [PATCH v2 3/3] nvme: fire discovery log page change events to userspace

2019-08-29 Thread Greg Kroah-Hartman
On Thu, Aug 29, 2019 at 11:21:02AM -0700, Sagi Grimberg wrote: > > > > > > You are correct that this information can be derived from sysfs, but > > > > > the > > > > > main reason why we add these here, is because in udev rule we can't > > > > > just go ahead and start looking these up and parsin

Re: [PATCH v2 3/6] mm/memory_hotplug: Process all zones when removing memory

2019-08-29 Thread David Hildenbrand
On 30.08.19 08:01, Michal Hocko wrote: > On Thu 29-08-19 18:59:31, David Hildenbrand wrote: >> On 29.08.19 18:27, Michal Hocko wrote: > [...] >>> No rush, really... It seems this is quite unlikely event as most hotplug >>> usecases simply online memory before removing it later on. >>> >> >> I can t

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-29 Thread David Miller
From: Jiri Pirko Date: Fri, 30 Aug 2019 08:13:27 +0200 > In fact, I have usecase where I need to see only slow-path traffic by > wireshark, not all packets going through hw. This could be an attribute in the descriptor entries for the packets provided to userspace, and BPF filters could act on t

Re: [kbuild-all] [tip: x86/vmware] input/vmmouse: Update the backdoor call with support for new instructions

2019-08-29 Thread Philip Li
On Fri, Aug 30, 2019 at 08:06:27AM +0200, Thomas Gleixner wrote: > Philip, > > On Fri, 30 Aug 2019, Philip Li wrote: > > > > wanna test trees, I'd suggest simply testing TIP's tip/master branch > > > which gets redone on a daily basis instead of testing patches in the > > > tip-bot{,2} notificati

Re: [PATCH v3 4/7] erofs: kill __packed for on-disk structures

2019-08-29 Thread Chao Yu
On 2019/8/30 11:36, Gao Xiang wrote: > As Christoph claimed "Please don't add __packed" [1], > I have to remove all __packed except struct erofs_dirent here. > > Note that all on-disk fields except struct erofs_dirent > (12 bytes with a 8-byte nid) in EROFS are naturally aligned. > > [1] https://

[PATCH] x86/Hyper-V: Fix overflow issue in the fill_gva_list()

2019-08-29 Thread lantianyu1986
From: Tianyu Lan fill_gva_list() populates gva list and adds offset HV_TLB_FLUSH_UNIT(0x100) to variable "cur" in the each loop. When diff between "end" and "cur" is less than HV_TLB_FLUSH_UNIT, the gva entry should be the last one and the loop should be end. If cur is equal or greater than

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-29 Thread Jiri Pirko
Thu, Aug 29, 2019 at 04:37:32PM CEST, and...@lunn.ch wrote: >> Wait, I believe there has been some misundestanding. Promisc mode is NOT >> about getting packets to the cpu. It's about setting hw filters in a way >> that no rx packet is dropped. >> >> If you want to get packets from the hw forwardi

[PATCH v3] ipv6: Not to probe neighbourless routes

2019-08-29 Thread Cheng Lin
From: Cheng Lin Originally, Router Reachability Probing require a neighbour entry existed. Commit 2152caea7196 ("ipv6: Do not depend on rt->n in rt6_probe().") removed the requirement for a neighbour entry. And commit f547fac624be ("ipv6: rate-limit probes for neighbourless routes") adds rate-lim

[PATCH] soundwire: bus: set initial value to port_status

2019-08-29 Thread Bard liao
From: Bard Liao port_status[port_num] are assigned for each port_num in some if conditions. So some of the port_status may not be initialized. Signed-off-by: Bard Liao --- drivers/soundwire/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soundwire/bus.c b/driv

Re: [PATCH 2/2] mmc: core: Run handlers for pending SDIO interrupts on resume

2019-08-29 Thread Ulf Hansson
On Thu, 29 Aug 2019 at 19:40, Doug Anderson wrote: > > Hi, > > On Thu, Aug 29, 2019 at 10:16 AM Matthias Kaehlcke wrote: > > > > > In one way, this change makes sense as it adopts the legacy behavior, > > > signaling "cached" SDIO IRQs also for the new SDIO irq work interface. > > > > > > However

Re: [kbuild-all] [tip: x86/vmware] input/vmmouse: Update the backdoor call with support for new instructions

2019-08-29 Thread Thomas Gleixner
Philip, On Fri, 30 Aug 2019, Philip Li wrote: > > wanna test trees, I'd suggest simply testing TIP's tip/master branch > > which gets redone on a daily basis instead of testing patches in the > > tip-bot{,2} notification mails. > > Thanks Boris for the input. Besides the repo monitoring, we also

Re: [PATCH 01/11] dt-bindings: phy-mtk-tphy: add two optional properties for u2phy

2019-08-29 Thread Chunfeng Yun
On Thu, 2019-08-29 at 14:23 -0500, Rob Herring wrote: > On Fri, Aug 23, 2019 at 03:00:08PM +0800, Chunfeng Yun wrote: > > Add two optional properties, one for J-K test, another for disconnect > > threshold, both of them can be used to debug disconnection issues. > > Testing and debug properties ar

[PATCH] pinctrl: qcom: sdm845: Fix UFS_RESET pin

2019-08-29 Thread Stephen Boyd
The UFS_RESET pin is the magical pin #150 now, not 153 per the sdm845_groups array declared in this file. Fix the order of pins so that UFS_RESET is 150 and the SDC pins follow after. Fixes: 53a5372ce326 ("pinctrl: qcom: sdm845: Expose ufs_reset as gpio") Signed-off-by: Stephen Boyd --- drivers/

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-29 Thread David Miller
From: Jiri Pirko Date: Fri, 30 Aug 2019 07:39:40 +0200 > Because the "promisc mode" would gain another meaning. Now how the > driver should guess which meaning the user ment when he setted it? > filter or trap? > > That is very confusing. If the flag is the way to do this, let's > introduce anot

Re: [tip: timers/core] itimers: Use quick sample function

2019-08-29 Thread Thomas Gleixner
On Fri, 30 Aug 2019, kbuild test robot wrote: > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [cannot apply to v5.3-rc6 next-20190829] Of course not. Because the patch is already in v5.3-rc6 next-20190829 > [if your patch is

Re: [PATCH v2 3/6] mm/memory_hotplug: Process all zones when removing memory

2019-08-29 Thread Michal Hocko
On Thu 29-08-19 18:59:31, David Hildenbrand wrote: > On 29.08.19 18:27, Michal Hocko wrote: [...] > > No rush, really... It seems this is quite unlikely event as most hotplug > > usecases simply online memory before removing it later on. > > > > I can trigger it reliably right now while working/t

[PATCH] arm64: dts: qcom: sdm845: Use UFS reset gpio instead of pinctrl

2019-08-29 Thread Stephen Boyd
We use a pinctrl "workaround" to toggle the UFS reset line. Now that UFS controller can issue the reset, just specify the line as a GPIO and let it be reset that way. Signed-off-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 51 +- 1 file changed, 2 inserti

Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-08-29 Thread Jassi Brar
On Tue, Aug 27, 2019 at 10:02 PM Peng Fan wrote: > > From: Peng Fan > > The ARM SMC/HVC mailbox binding describes a firmware interface to trigger > actions in software layers running in the EL2 or EL3 exception levels. > The term "ARM" here relates to the SMC instruction as part of the ARM > inst

Re: [PATCH v2 3/3] nvme: fire discovery log page change events to userspace

2019-08-29 Thread Christoph Hellwig
On Thu, Aug 29, 2019 at 11:21:02AM -0700, Sagi Grimberg wrote: >> Yes we do, userspace should use it to order events. Does udev not >> handle that properly today? > > The problem is not ordering of events, its really about the fact that > the chardev can be removed and reallocated for a different

Re: [PATCH] arm64: numa: check the node id before accessing node_to_cpumask_map

2019-08-29 Thread Michal Hocko
On Fri 30-08-19 10:26:31, Yunsheng Lin wrote: > Some buggy bios may not set the device' numa id, and dev_to_node > will return -1, which may cause global-out-of-bounds error > detected by KASAN. Why should we workaround a buggy bios like that? Is it so widespread and no BIOS update available? Also

Re: [PATCH] mm: memcontrol: fix percpu vmstats and vmevents flush

2019-08-29 Thread Michal Hocko
On Thu 29-08-19 13:31:10, Shakeel Butt wrote: > Instead of using raw_cpu_read() use per_cpu() to read the actual data of > the corresponding cpu otherwise we will be reading the data of the > current cpu for the number of online CPUs. > > Fixes: bb65f89b7d3d ("mm: memcontrol: flush percpu vmevents

Re: [PATCH 5/8] media: cedrus: Detect first slice of a frame

2019-08-29 Thread Boris Brezillon
On Thu, 29 Aug 2019 21:04:28 +0200 Jernej Škrabec wrote: > Dne ponedeljek, 26. avgust 2019 ob 20:28:31 CEST je Boris Brezillon > napisal(a): > > Hi Jernej, > > > > On Thu, 22 Aug 2019 21:44:57 +0200 > > > > Jernej Skrabec wrote: > > > When codec supports multiple slices in one frame, VPU ha

[PATCH] fs/epoll: fix the edge-triggered mode for epoll itself

2019-08-29 Thread hev
From: Heiher The structure of event pools: efd[2]: { sfd[0] (EPOLLIN) } efd[1]: { efd[2] (EPOLLIN) } efd[0]: { efd[2] (EPOLLIN | EPOLLET) } When sfd[0] to be readable: * the epoll_wait(efd[0], ..., 0) should return efd[2]'s events on first call, and returns 0 on nex

Re: [PATCH] leds: pwm: Use struct_size() helper

2019-08-29 Thread Kees Cook
On Thu, Aug 29, 2019 at 07:53:20PM -0500, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct l

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-29 Thread Jiri Pirko
Fri, Aug 30, 2019 at 12:12:01AM CEST, da...@davemloft.net wrote: >From: Ido Schimmel >Date: Thu, 29 Aug 2019 22:36:13 +0300 > >> I fully agree that we should make it easy for users to capture offloaded >> traffic, which is why I suggested patching libpcap. Add a flag to >> capable netdevs that tel

Re: [PATCH] xfs: Initialize label array properly

2019-08-29 Thread Darrick J. Wong
On Fri, Aug 30, 2019 at 02:37:07PM +0900, Austin Kim wrote: > In case kernel stack variable is not initialized properly, > there is a risk of kernel information disclosure. > > So, initialize 'char label[]' array with null characters. Got a testcase for this? At least a couple other filesystems

Re: [PATCH 1/2] w1: add 1-wire master driver for IP block found in SGI ASICs

2019-08-29 Thread kbuild test robot
Hi Thomas, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [cannot apply to v5.3-rc6 next-20190829] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [PATCH] mm/vmalloc: move 'area->pages' after if statement

2019-08-29 Thread Michal Hocko
On Fri 30-08-19 12:57:16, Austin Kim wrote: > If !area->pages statement is true where memory allocation fails, > area is freed. > > In this case 'area->pages = pages' should not executed. > So move 'area->pages = pages' after if statement. > > Signed-off-by: Austin Kim Acked-by: Michal Hocko

Re: [PATCH 4/5] dt-bindings: dma: ti-edma: Add option for reserved channel ranges

2019-08-29 Thread Peter Ujfalusi
Rob, On 30/08/2019 1.47, Rob Herring wrote: > On Fri, Aug 23, 2019 at 03:56:17PM +0300, Peter Ujfalusi wrote: >> Similarly to paRAM slots, channels can be used by other cores. >> >> Add optional property to configure the reserved channel ranges. >> >> Signed-off-by: Peter Ujfalusi >> --- >> Docu

Re: [RFC PATCH v2 2/2] ELF: Add ELF program property parsing support

2019-08-29 Thread Kees Cook
On Fri, Aug 23, 2019 at 06:23:40PM +0100, Dave Martin wrote: > ELF program properties will needed for detecting whether to enable > optional architecture or ABI features for a new ELF process. > > For now, there are no generic properties that we care about, so do > nothing unless CONFIG_ARCH_USE_G

Re: [PATCH v3 07/11] xfs: remove unlikely() from WARN_ON() condition

2019-08-29 Thread Christoph Hellwig
On Thu, Aug 29, 2019 at 07:50:21PM +0300, Denis Efremov wrote: > "unlikely(WARN_ON(x))" is excessive. WARN_ON() already uses unlikely() > internally. Looks good, Reviewed-by: Christoph Hellwig

[PATCH] xfs: Initialize label array properly

2019-08-29 Thread Austin Kim
In case kernel stack variable is not initialized properly, there is a risk of kernel information disclosure. So, initialize 'char label[]' array with null characters. Signed-off-by: Austin Kim --- fs/xfs/xfs_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_

Re: [PATCH 1/2] arm64: dts: qcom: qcs404: add sleep clk fixed rate oscillator

2019-08-29 Thread Stephen Boyd
Quoting Jorge Ramirez-Ortiz (2019-08-29 13:03:39) > This fixed rate clock is required for the operation of some devices > (ie watchdog). > > Signed-off-by: Jorge Ramirez-Ortiz > --- Reviewed-by: Stephen Boyd

Re: [PATCH 2/2] arm64: dts: qcom: qcs404: add the watchdog node

2019-08-29 Thread Stephen Boyd
Quoting Jorge Ramirez-Ortiz (2019-08-29 13:03:40) > Allows QCS404 based designs to enable watchdog support > > Signed-off-by: Jorge Ramirez-Ortiz > --- Reviewed-by: Stephen Boyd

Re: [RESEND PATCH v2 1/2] dt-bindings: reset: aoss: Add AOSS reset binding for SC7180 SoCs

2019-08-29 Thread Stephen Boyd
Quoting Sibi Sankar (2019-08-24 08:24:10) > Add SC7180 AOSS reset to the list of possible bindings. > > Signed-off-by: Sibi Sankar > --- > Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt | 4 ++-- Can you convert this binding to YAML/JSON schema? Would help to describe the 'one of' r

Re: [PATCH v5, 12/32] drm/mediatek: add mmsys private data for ddp path config

2019-08-29 Thread CK Hu
Hi, Yongqiang: On Thu, 2019-08-29 at 22:50 +0800, yongqiang@mediatek.com wrote: > From: Yongqiang Niu > > This patch add mmsys private data for ddp path config > all these register offset and value will be different in future SOC > add these define into mmsys private data > u32 ovl0_mo

Re: [PATCH] arm64: dts: sdm845: Add parent clock for rpmhcc

2019-08-29 Thread Stephen Boyd
Quoting Vinod Koul (2019-08-22 10:11:35) > RPM clock controller has parent as xo, so specify that in DT node for > rpmhcc > > Signed-off-by: Vinod Koul > --- Reviewed-by: Stephen Boyd

Re: [PATCH V3 01/10] dt-bindings: soc: Add dvfsrc driver bindings

2019-08-29 Thread Henry Chen
On Thu, 2019-08-29 at 14:16 -0500, Rob Herring wrote: > On Wed, 28 Aug 2019 20:28:39 +0800, Henry Chen wrote: > > Document the binding for enabling dvfsrc on MediaTek SoC. > > > > Signed-off-by: Henry Chen > > --- > > .../devicetree/bindings/soc/mediatek/dvfsrc.txt| 23 > > +

Re: [RFC][PATCH 1/1] Carry ima measurement log for arm64 via kexec_file_load

2019-08-29 Thread Stephen Boyd
Why is linux-arm-msm list CCed on this topic? Quoting Prakhar Srivastava (2019-08-29 13:05:32) > Carry ima measurement log for arm64 via kexec_file_load. > add support to kexec_file_load to pass the ima measurement log These first two sentences look sort of odd for a commit text. > > This patch

LOANS !!!

2019-08-29 Thread DIAL DIRECT LOANS SA
Dial Direct Loan SA Consolidate your debts with Dial Direct Loan SA for your peace of mind at a fixed interest rate of 4.75%,personal and business loans are also welcome.For details file in your applications by sending an email to:dialdirectloan...@mail2consultant.com. Yours in Service, Su

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-29 Thread Sergey Senozhatsky
On (08/29/19 11:01), shuah wrote: [..] > Hi Sergey, > > What are the guidelines for using printk(). I recall some discussion > about not using printk(). I am seeing the following from checkpatch > script: Hello, > WARNING: Prefer [subsystem eg: netdev]_level([subsystem]dev, ... then > dev_level(

Re: [PATCH v4] firmware: google: check if size is valid when decoding VPD data

2019-08-29 Thread Stephen Boyd
Quoting Hung-Te Lin (2019-08-29 19:23:58) > The VPD implementation from Chromium Vital Product Data project used to > parse data from untrusted input without checking if the meta data is > invalid or corrupted. For example, the size from decoded content may > be negative value, or larger than whole

[PATCH v2] Bluetooth: hci_qca: wait for Pre shutdown complete event before sending the Power off pulse

2019-08-29 Thread Harish Bandi
When SoC receives pre shut down command, it share the same with other COEX shared clients. So SoC needs a short time after sending VS pre shutdown command before turning off the regulators and sending the power off pulse. Along with short delay, needs to wait for command complete event for Pre shut

Hoping to hear from you

2019-08-29 Thread Mr.Patrick Joseph
Dear Sir/Madam, Although you might be apprehensive about my email as we have never met before. I am Mr.Patrick Joseph, a Banker and Head of Operations with Bank here in Burkina Faso West Africa, there is the sum of $28.500,000.00 Million Dollars currently in my branch, there were no beneficiary st

Re: Adding depends-on DT binding to break cyclic dependencies

2019-08-29 Thread Saravana Kannan
On Thu, Aug 29, 2019 at 9:28 AM Rob Herring wrote: > > On Thu, Aug 22, 2019 at 1:55 AM Saravana Kannan wrote: > > > > Hi Rob, > > > > Frank, Greg and I got together during ELC and had an extensive and > > very productive discussion about my "postboot supplier state cleanup" > > patch series [1].

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-29 Thread Joe Perches
On Thu, 2019-08-29 at 21:44 -0700, Joe Perches wrote: > On Thu, 2019-08-29 at 11:01 -0600, shuah wrote: [] > > WARNING: Prefer [subsystem eg: netdev]_level([subsystem]dev, ... then > > dev_level(dev, ... then pr_level(... to printk(KERN_LEVEL ... > > #105: FILE: include/kunit/test.h:343: > > +

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-29 Thread Joe Perches
On Thu, 2019-08-29 at 11:01 -0600, shuah wrote: > On 8/28/19 3:49 AM, Sergey Senozhatsky wrote: > > On (08/28/19 02:31), Brendan Higgins wrote: > > [..] > > > Previously KUnit assumed that printk would always be present, which is > > > not a valid assumption to make. Fix that by removing call to >

Re: [PATCH V2 1/1] spi: bcm-qspi: Make BSPI default mode

2019-08-29 Thread Rayagonda Kokatanur
On Thu, Aug 29, 2019 at 3:29 PM Mark Brown wrote: > > On Thu, Aug 29, 2019 at 09:46:13AM +0530, Rayagonda Kokatanur wrote: > > The spi-nor controller defaults to BSPI mode, hence switch back > > to its default mode after MSPI operations (write or erase) > > are completed. > > > > Changes from V1:

[PATCH v1 18/18] MAINTAINERS: Add myself as maintainer of LOONGSON64

2019-08-29 Thread Jiaxun Yang
I'm going to help with LOONGSON64 maintainance as well. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 242970af939c..e14edf51ee15 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10758,6 +10758,7 @@ F: drivers/*/*

[PATCH v1 17/18] MAINTAINERS: Add new pathes to LOONGSON64 ARCHITECTURE

2019-08-29 Thread Jiaxun Yang
Place newly submited irqchip drivers and devicetree support under MIPS/LOONGSON64 ARCHITECTURE. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d5d4fed632e6..242970af939c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v1 14/18] MIPS: Loongson64: Add generic dts

2019-08-29 Thread Jiaxun Yang
Add generic device dts for Loongson-3 devices. They seems identical but will be different later. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 4 +- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/loongson/Makefile | 8 + ar

[PATCH] drm/amd/powerplay: Variable ps could be NULL when it get dereferenced

2019-08-29 Thread Yizhuo
Inside function cz_get_performance_level(), pointer ps could be NULL via cast_const_PhwCzPowerState(). However, this pointer is dereferenced without any check, which is potentially unsafe. Signed-off-by: Yizhuo --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 3 +++ 1 file changed, 3 inserti

[PATCH v1 15/18] MIPS: Loongson64: Load built-in dtbs

2019-08-29 Thread Jiaxun Yang
Load proper dtb according to firmware passed parameters and CPU PRID. Signed-off-by: Jiaxun Yang --- .../asm/mach-loongson64/builtin_dtbs.h| 26 +++ .../include/asm/mach-loongson64/loongson64.h | 2 + arch/mips/loongson64/env.c| 67 +++ arch/mips

[PATCH v1 16/18] MIPS: Loongson: Regenerate defconfigs

2019-08-29 Thread Jiaxun Yang
We've touched kconfig a lot in previous patches. Signed-off-by: Jiaxun Yang --- arch/mips/configs/fuloong2e_defconfig | 8 +++- arch/mips/configs/lemote2f_defconfig | 8 ++-- arch/mips/configs/loongson3_defconfig | 12 3 files changed, 9 insertions(+), 19 deletions(-) di

[PATCH v3] kbuild: change *FLAGS_.o to take the path relative to $(obj)

2019-08-29 Thread Masahiro Yamada
Kbuild provides per-file compiler flag addition/removal: CFLAGS_.o CFLAGS_REMOVE_.o AFLAGS_.o AFLAGS_REMOVE_.o CPPFLAGS_.lds HOSTCFLAGS_.o HOSTCXXFLAGS_.o The is the filename of the target with its directory and suffix stripped. This syntax comes into a trouble when two files with

[PATCH v1 13/18] dt-bindings: Document loongson vendor-prefix

2019-08-29 Thread Jiaxun Yang
Loongson is a MIPS-compatible processor vendor. Signed-off-by: Jiaxun Yang --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.

[PATCH v1 12/18] dt-bindings: mips: Add loongson cpus & boards

2019-08-29 Thread Jiaxun Yang
Prepare for later dts. Signed-off-by: Jiaxun Yang --- .../bindings/mips/loongson/cpus.yaml | 38 +++ .../bindings/mips/loongson/devices.yaml | 64 +++ 2 files changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/loongson/cpu

[PATCH v1 11/18] MIPS: Loongson64: Drop legacy IRQ code

2019-08-29 Thread Jiaxun Yang
We've made generic irqchip drivers for Loongson-3 platform, it's time to say goodbye to these legacy code. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/irq.h | 1 - arch/mips/loongson64/irq.c | 167 +--- arch/mips/loongson64/smp.c

[PATCH v1 10/18] irqchip: mips-cpu: Convert to simple domain

2019-08-29 Thread Jiaxun Yang
The old code is using legacy domain to setup irq_domain for CPU interrupts which requires irq_desc being preallocated. However, when MIPS_CPU_IRQ_BASE >= 16, irq_desc for CPU IRQs may end up unallocated and lead to incorrect behavior. Thus we convert the legacy domain to simple domain which can a

[PATCH v1 09/18] irqchip: i8259: Add plat-poll support

2019-08-29 Thread Jiaxun Yang
For some platforms (e.g. Loongson-3), platfrom interrupt controller supports polling interrupt vector from i8259 automaticly and generating sepreated interrupt. Thus we add plat-poll OF property for these platforms and setup sepreated chained interrupt handler. Signed-off-by: Jiaxun Yang --- dr

[PATCH V3 1/1] spi: bcm-qspi: Make BSPI default mode

2019-08-29 Thread Rayagonda Kokatanur
The spi-nor controller defaults to BSPI mode, hence switch back to its default mode after MSPI operations (write or erase) are completed. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Mark Brown Reviewed-by: Kamal Dasu --- changes from V2: - Address code review comment from Mark Brown about

[PATCH v1 08/18] dt-bindings: interrupt-controller: Add Loongson-3 HTINTC

2019-08-29 Thread Jiaxun Yang
Document Loongson-3 HyperTransport Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-htintc.yaml | 55 +++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-htintc.yaml d

[PATCH v1 06/18] dt-bindings: interrupt-controller: Add Loongson-3 IOINTC

2019-08-29 Thread Jiaxun Yang
Document Loongson-3 I/O Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-iointc.yaml | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-iointc.yaml diff --git

[PATCH v1 07/18] irqchip: Add driver for Loongson-3 HyperTransport interrupt controller

2019-08-29 Thread Jiaxun Yang
This controller appeared on Loongson-3 family of chips to receive interrupts from PCH chip. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls3-htintc.c | 147 +++ 3 files changed,

Re: [ext4] [confidence: ] 2f7f60cf9f: WARNING:at_lib/list_debug.c:#__list_add_valid

2019-08-29 Thread Oliver Sang
On Fri, Aug 30, 2019 at 11:33:22AM +0800, Shaokun Zhang wrote: > Hi Oliver, > > On 2019/8/30 11:11, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > > > commit: 2f7f60cf9fbcd80200edee8c29b9b35681c63c3e ("[PATCH] ext4: change the > > type of ext4 cache sta

[PATCH v1 05/18] irqchip: Add driver for Loongson-3 I/O interrupt controller

2019-08-29 Thread Jiaxun Yang
This controller appeared on Loongson-3 family of chips as the primary package interrupt source. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig | 9 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls3-iointc.c | 275 +++ 3 files chang

[PATCH v1 03/18] MAINTAINERS: Fix entries for new loongson64 path

2019-08-29 Thread Jiaxun Yang
As we sepreated the code of loongson2ef/loongson3a, they can now have their own entries. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a2c343ee3b2c..d5d4fed632e6 100644 --- a/MAINTAINERS +++

[PATCH v1 02/18] MIPS: Loongson64: separate loongson2ef/loongson64 code

2019-08-29 Thread Jiaxun Yang
As later model of GSx64 family processors including 2-series-soc have similar design with initial loongson3a while loongson2e/f seems less identical, we separate loongson2e/f support code out of mach-loongson64 to make our life easier. Signed-off-by: Jiaxun Yang --- arch/mips/Kbuild.platforms

  1   2   3   4   5   6   7   8   9   10   >