[PATCH 3/3] btrfs: tree-checker: Avoid accidental stack VLA

2018-03-07 Thread Kees Cook
In the quest to remove all stack VLAs from the kernel[1], this refactors the stack array size calculation to avoid using max(), which makes the compiler think the size isn't fixed. [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Kees Cook --- fs/btrfs/tree-checker.c | 3 ++- 1 file change

[PATCH v2 1/3] vsprintf: Remove accidental VLA usage

2018-03-07 Thread Kees Cook
In the quest to remove all stack VLAs from the kernel[1], this introduces a new "simple max" macro, and changes the "sym" array size calculation to use it. The value is actually a fixed size, but since the max() macro uses some extensive tricks for safety, it ends up looking like a variable size to

[PATCH v3] perf report: Provide libtraceevent with a kernel symbol resolver

2018-03-07 Thread Wang YanQing
So that beautifiers wanting to resolve kernel function addresses to names can do its work, and when we use "perf report" for output of "perf kmem record", we will get kernel symbol output. This patch affect the output of "perf report" for the record data generated by "perf kmem record" looks like

Re: [PATCH] f2fs: add nowait aio support

2018-03-07 Thread Chao Yu
On 2018/3/2 15:48, Hyunchul Lee wrote: > From: Hyunchul Lee > > This patch adds nowait aio support[1]. > > Return EAGAIN if any of the following checks fail for direct I/O: > - i_rwsem is not lockable > - Blocks are not allocated at the write location > > And xfstests generic/471 is passed.

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

2018-03-07 Thread Chen-Yu Tsai
e this: >> >> arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dtb: ERROR (phandle_references): >> Reference to non-existent node or label "mmc2_8bits_pins" >> >> Caused by commit >> >> 89fd776b2b9f ("dts: sunxi: Add eMMC for NanoPi M1 P

Re: [PATCH v3 0/4] PINCTRL: Mediatek pinctrl driver for mt2712

2018-03-07 Thread Sean Wang
Hi, Zhiyong you should checkpatch every patch before sending them out because I saw tons of check messages like below result for scanning v3 3/4 CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #152: FILE: drivers/pinctrl/mediatek/pinctrl-mt2712.c:85: +static int mt2712_spec_

Re: [PATCH 2/2] mm: Add kvmalloc_ab_c and kvzalloc_struct

2018-03-07 Thread Matthew Wilcox
On Wed, Mar 07, 2018 at 10:18:21PM +0100, Julia Lawall wrote: > > Otherwise, yes, please. We could build a coccinelle rule for > > additional replacements... > > A potential semantic patch and the changes it generates are attached > below. Himanshu Jha helped with its development. Working on thi

[PATCH v2] perf report: Provide libtraceevent with a kernel symbol resolver

2018-03-07 Thread Wang YanQing
So that beautifiers wanting to resolve kernel function addresses to names can do its work, and when we use "perf report" for output of "perf kmem record", we will get kernel symbol output. This patch affect the output of "perf report" for the record data generated by "perf kmem record" looks like

Re: [PATCH 00/17] Include linux trace docs to Sphinx TOC tree

2018-03-07 Thread Du, Changbin
On Wed, Mar 07, 2018 at 10:46:49AM -0700, Jonathan Corbet wrote: > On Tue, 27 Feb 2018 17:43:37 -0500 > Steven Rostedt wrote: > > > On Tue, 27 Feb 2018 17:34:22 +0800 > > "Du, Changbin" wrote: > > > > > Ten days past, will you accept this serias? Thank you! > > > > Currently I'm very overloaded

[PATCH] mm: memcg: expose mem_cgroup_put API

2018-03-07 Thread Shakeel Butt
This patch exports mem_cgroup_put API to put the refcnt of the memory cgroup. Signed-off-by: Shakeel Butt --- include/linux/memcontrol.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index c46016bb25eb..0da79e116a07 100644 --

Re: [PATCHv2] reset: ti-rstctrl: use the reset-simple driver

2018-03-07 Thread Rob Herring
On Wed, Mar 07, 2018 at 10:21:43AM -0800, Tony Lindgren wrote: > We can support the RSTCTRL reset registers on many TI SoCs with > reset-simple. > > Note that some devices will also need to check the RSTST bits > for reset reason. Support for these could be possibly added to > the reset controller

Re: [RESEND PATCH 1/3] rtc: Use time64_t to save range_max of RTC

2018-03-07 Thread Baolin Wang
Hi Alexandre, On 8 March 2018 at 06:54, Alexandre Belloni wrote: > Hi, > > On 26/02/2018 at 16:33:56 +0800, Baolin Wang wrote: >> We need use rtc->range_max to valid if the time values are valid, >> and the time values are saved by time64_t type. So change the >> rtc->range_max to time64_t type f

[PATCH net-next 06/23] {topost} net: hns3: fix for ipv6 address loss problem after setting channels

2018-03-07 Thread Peng Li
From: Fuyun Liang The function of dev_close and dev_open is just likes ifconfig down and ifconfig up. The ipv6 address will be lost after dev_close and dev_open are called. This patch uses hns3_nic_net_stop to replace dev_close and uses hns3_nic_net_open to replace dev_open. Signed-off-by: Fuy

[PATCH net-next 01/23] {topost} net: hns3: VF should get the real rss_size instead of rss_size_max

2018-03-07 Thread Peng Li
VF driver should get the real rss_size which is assigned by host PF, not rss_size_max. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/d

[PATCH net-next 12/23] {topost} net: hns3: fix for RSS configuration loss problem during reset

2018-03-07 Thread Peng Li
From: Yunsheng Lin RSS configuration will be set to default value by hclge_rss_init_hw during reset, which causes the RSS configuration loss problem. This patch fixes it by setting the default value in hclge_rss_init_cfg function, which will not be called in the reset process. Signed-off-by: Yu

Re: [PATCH v4 01/10] dt-bindings: scsi: hisi_sas: add an property of signal attenuation

2018-03-07 Thread Rob Herring
On Wed, Mar 07, 2018 at 08:25:05PM +0800, John Garry wrote: > From: Xiaofei Tan > > For some new boards with hip07 chipset we are required to > set PHY config registers differently. The hw property which > determines how to set these registers is in the PHY signal > attenuation readings. > > Thi

[PATCH net-next 05/23] {topost} net: hns3: fix for netdev not running problem after calling net_stop and net_open

2018-03-07 Thread Peng Li
From: Fuyun Liang The link status update function is called by timer every second. But net_stop and net_open may be called with very short intervals. The link status update function can not detect the link state has changed. It causes the netdev not running problem. This patch fixes it by updati

[PATCH net-next 04/23] {topost} net: hns3: fix endian issue when PF get mbx message flag

2018-03-07 Thread Peng Li
This patch fixes the endian issue when PF get mbx message flag. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ether

Re: mmotm 2018-03-07-16-19 uploaded (UML & memcg)

2018-03-07 Thread Andrew Morton
On Wed, 7 Mar 2018 18:20:12 -0800 Randy Dunlap wrote: > On 03/07/2018 04:20 PM, a...@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2018-03-07-16-19 has been uploaded to > > > >http://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > > README for mm-of-the-mome

Re: mmotm 2018-03-07-16-19 uploaded (UML & memcg)

2018-03-07 Thread Shakeel Butt
On Wed, Mar 7, 2018 at 6:34 PM, Shakeel Butt wrote: > On Wed, Mar 7, 2018 at 6:23 PM, Randy Dunlap wrote: >> On 03/07/2018 06:20 PM, Randy Dunlap wrote: >>> On 03/07/2018 04:20 PM, a...@linux-foundation.org wrote: The mm-of-the-moment snapshot 2018-03-07-16-19 has been uploaded to

[PATCH net-next 08/23] {topost} net: hns3: fix rx path skb->truesize reporting bug

2018-03-07 Thread Peng Li
Original skb->truesize reports the received packet size, not the actual buffer size NIC driver allocated(1 Page). The linux net protocol will misjudge the true size of rx queue. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 10 -- 1 file changed, 4 insertio

[PATCH net-next 11/23] {topost} net: hns3: refactor the hclge_get/set_rss_tuple function

2018-03-07 Thread Peng Li
From: Yunsheng Lin This patch refactors the hclge_get/set_rss_tuple function in order to fix the rss configuration loss problem during reset process. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 91 +- .../ethe

[PATCH net-next 14/23] {topost} net: hns3: fix for use-after-free when setting ring parameter

2018-03-07 Thread Peng Li
From: Yunsheng Lin In hns3_set_ringparam, hns3_uninit_all_ring frees the memory pointed by priv->ring_data[i].ring, and hns3_change_all_ring_bd_num use that pointer without mallocing, which will cause a use-after-free problem. The patch fixes it by not freeing the memory in hns3_uninit_all_ring,

[PATCH net-next 13/23] {topost} net: hns3: fix for pause configuration lost during reset

2018-03-07 Thread Peng Li
From: Yunsheng Lin Pause configuration will be set to default value by hclge_tm_schd_init during reset, which causes the RSS configuration loss problem. This patch fixes it by calling hclge_tm_init_hw during reset process , which will set the pause configuration to default value. Signed-off-by:

[PATCH net-next 07/23] {topost} net: hns3: unify the pause params setup function

2018-03-07 Thread Peng Li
From: Fuyun Liang Since the firmware cmd to setup mac pause params is the same as the firmware cmd to pfc pause params, this patch unifies the pause params setup function. Signed-off-by: Fuyun Liang Signed-off-by: Peng Li --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 2 +- .../net

[PATCH net-next 10/23] {topost} net: hns3: refactor the hclge_get/set_rss function

2018-03-07 Thread Peng Li
From: Yunsheng Lin This patch refactors the hclge_get/set_rss function in order to fix the rss configuration loss problem during reset process. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 39 -- .../ethernet/h

[PATCH net-next 02/23] {topost} net: hns3: add existence check when remove old uc mac address

2018-03-07 Thread Peng Li
From: Fuyun Liang When driver is in initial state, the mac_vlan table table is empty. So the delete operation for mac address must fail. Existence check is needed here. Otherwise, the error message will make user confused. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibi

[PATCH net-next 19/23] {topost} net: hns3: fix for loopback failure when vlan filter is enable

2018-03-07 Thread Peng Li
From: Yunsheng Lin When vlan ctag filter is enabled, the loopback selftest fails because loopback selftest does not support vlan. This patch fixes it by disabling the vlan ctag filter when runnig loopback selftest. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li --- drivers/net/ethernet/h

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

2018-03-07 Thread Emmanuel Vadot
Reference to non-existent node or label "mmc2_8bits_pins" > > Caused by commit > > 89fd776b2b9f ("dts: sunxi: Add eMMC for NanoPi M1 Plus") > > I have merged the version of the sunxi tree from next-20180307 for today. > > -- > Cheers, > Stephen R

[PATCH net-next 03/23] {topost} net: hns3: set the cmdq out_vld bit to 0 after used

2018-03-07 Thread Peng Li
Driver check the out_vld bit when get a new cmdq BD, if the bit is 1, the BD is valid. driver Should set the bit 0 after used and hw will set the bit 1 if get a valid BD. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 1 + drivers/net/ethernet/hisilicon/hns

[PATCH net-next 23/23] {topost} net: hns3: add support for VF driver inner interface hclgevf_ops.get_tqps_and_rss_info

2018-03-07 Thread Peng Li
This patch adds support for VF driver inner interface hclgevf_ops.get_tqps_and_rss_info. This interface will be used in the initialization process. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a

[PATCH net-next 00/23] net: hns3: HNS3 bug fixes & code improvements

2018-03-07 Thread Peng Li
This patch-set introduces various HNS3 bug fixes, optimizations and code improvements. Fuyun Liang (4): {topost} net: hns3: add existence check when remove old uc mac address {topost} net: hns3: fix for netdev not running problem after calling net_stop and net_open {topost} net: hns3: fi

[PATCH net-next 17/23] {topost} net: hns3: refactor the coalesce related struct

2018-03-07 Thread Peng Li
From: Yunsheng Lin This patch refoctors the coalesce related struct by introducing the hns3_enet_coalesce struct, in order to fix the coalesce configuation lost problem when changing the channel number. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3

[PATCH net-next 20/23] {topost} net: hns3: fix for buffer overflow smatch warning

2018-03-07 Thread Peng Li
From: Yunsheng Lin This patch fixes the buffer overflow warning by refactoring hclgevf_bind_ring_to_vector and hclge_get_ring_chain_from_mbx. Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support") Fixes: dde1a86e93ca ("net: hns3: Add mailbox support to PF drive

[PATCH net-next 18/23] {topost} net: hns3: fix for coal configuation lost when setting the channel

2018-03-07 Thread Peng Li
From: Yunsheng Lin This patch fixes the coalesce configuation lost problem when setting the channel number by restoring all vectors's coalesce configuation to vector 0's, because all vectors belonging to the same netdev have the same coalesce configuation for now. Signed-off-by: Yunsheng Lin Si

linux-kernel@vger.kernel.org

2018-03-07 Thread Peng Li
Command HCLGE_OPC_CFG_COM_TQP_QUEUE should use queue id in the function, but command HCLGE_OPC_RESET_TQP_QUEUE should use global queue id. This patch fixes the queue id about queue enable/disable/reset. Signed-off-by: Peng Li --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 50 ++

[PATCH net-next 15/23] {topost} net: hns3: refactor the get/put_vector function

2018-03-07 Thread Peng Li
From: Yunsheng Lin There is a get_vector function, which allocate the vectors for a client, but there is not a put_vector to free the vector. This patch introduces the put_vector function in order to fix the coalesce configuration lost problem during reset process. Signed-off-by: Yunsheng Lin

[PATCH net-next 22/23] {topost} net: hns3: set the max ring num when alloc netdev

2018-03-07 Thread Peng Li
HNS3 driver should alloc netdev with max support ring num, as driver support change netdev count by ethtool -L. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 27 - 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/net/e

[PATCH net-next 16/23] {topost} net: hns3: fix for coalesce configuration lost during reset

2018-03-07 Thread Peng Li
From: Yunsheng Lin Coalesce configuration will be set to default value by hns3_nic_init_vector_data during reset, which causes the coalesce configuration loss problem. This patch fixes it by setting the default value in hns3_nic_alloc_vector_data, which will not be called in the reset process.

Re: mmotm 2018-03-07-16-19 uploaded (UML & memcg)

2018-03-07 Thread Shakeel Butt
On Wed, Mar 7, 2018 at 6:23 PM, Randy Dunlap wrote: > On 03/07/2018 06:20 PM, Randy Dunlap wrote: >> On 03/07/2018 04:20 PM, a...@linux-foundation.org wrote: >>> The mm-of-the-moment snapshot 2018-03-07-16-19 has been uploaded to >>> >>>http://www.ozlabs.org/~akpm/mmotm/ >>> >>> mmotm-readme.t

[PATCH net-next 09/23] {topost} net: hns3: add support for querying pfc puase packets statistic

2018-03-07 Thread Peng Li
This patch add support for querying pfc puase packets statistic in hclge_ieee_getpfc, which is used to tell user how many pfc puase packets have been sent and received by this mac port. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c | 1

[PATCH v2] rtc: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA and replace it with a fixed-length array instead. >From a security viewpoint, the use of Variable Length Arrays can be a vector for stack overflow attacks. Also, in general, as the code evolves it is easy to lose track of how big a VLA can get. Thus, we

Re: mmotm 2018-03-07-16-19 uploaded (UML & memcg)

2018-03-07 Thread Randy Dunlap
On 03/07/2018 06:20 PM, Randy Dunlap wrote: > On 03/07/2018 04:20 PM, a...@linux-foundation.org wrote: >> The mm-of-the-moment snapshot 2018-03-07-16-19 has been uploaded to >> >>http://www.ozlabs.org/~akpm/mmotm/ >> >> mmotm-readme.txt says >> >> README for mm-of-the-moment: >> >> http://www.o

Re: mmotm 2018-03-07-16-19 uploaded (UML & memcg)

2018-03-07 Thread Randy Dunlap
On 03/07/2018 04:20 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2018-03-07-16-19 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of m

Re: [PATCH v4 0/4] x86/devicetree: Re-enable x86-specific implementation

2018-03-07 Thread Frank Rowand
+ Frank Please include me on future versions. On 03/07/18 11:45, Ivan Gorinov wrote: > Fixing x86-specific DT implementation in the kernel allows reusing most of > firmware code for SoC that have ARM core replaced with x86, e.g. SC9853i. > > Changes since v3: > > * Using fdt_totalsize() to ge

Re: [PATCH 2/2] ARM: npcm: drop extraneous 'select' statements

2018-03-07 Thread Joel Stanley
On Thu, Mar 8, 2018 at 2:54 AM, Arnd Bergmann wrote: > While looking at the build regression, I noticed that the > platform selects a lot of other Kconfig symbols that it really > should not: > > CPU_V7, ARM_GIC, HAVE_SMP, COMMON_CLK, GENERIC_CLOCKEVENTS, > and CLKDEV_LOOKUP are all implied by ARC

Re: [PATCH 2/2] dt-bindings: backlight: Add binding for RAVE SP backlight driver

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 06:40:11PM -0800, Andrey Smirnov wrote: > Add Device Tree bindings for RAVE SP backlihgt drvier - an MFD cell of > parent RAVE SP driver (documented in > Documentation/devicetree/bindings/mfd/zii,rave-sp.txt). > > Cc: Lee Jones > Cc: Daniel Thompson > Cc: Jingoo Han > Cc

Re: linux-next: manual merge of the selinux tree with the net-next tree

2018-03-07 Thread Stephen Rothwell
Hi all, On Mon, 5 Mar 2018 12:40:54 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the selinux tree got a conflict in: > > net/sctp/socket.c > > between several refactoring commits from the net-next tree and commit: > > 2277c7cd75e3 ("sctp: Add LSM hooks") > > from the sel

Re: [PATCH v3 2/2] dt-bindings: input: Add binding for RAVE SP input driver

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 06:01:34PM -0800, Andrey Smirnov wrote: > Add Device Tree bindings for RAVE SP input drvier - an MFD cell of > parent RAVE SP driver (documented in > Documentation/devicetree/bindings/mfd/zii,rave-sp.txt). > > Cc: Dmitry Torokhov > Cc: linux-in...@vger.kernel.org > Cc: lin

[PATCH 4/5] drm/vgem: Add space around operators

2018-03-07 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl check and warning: vgem_fence.c:28: CHECK: spaces preferred around that '*' (ctx:VxV) vgem_drv.c:255: CHECK: spaces preferred around that '|' (ctx:VxV) vgem_drv.c:256: WARNING: line over 80 characters Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vgem/vg

[PATCH 3/5] drm/vgem: Replace uint32_t for u32

2018-03-07 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl check: vgem_drv.c:229: CHECK: Prefer kernel type 'u32' over 'uint32_t' Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vgem/vgem_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vge

[PATCH 5/5] drm/vgem: Remove '(' from the end of line

2018-03-07 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl check: vgem_drv.c:91: CHECK: Lines should not end with a '(' Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vgem/vgem_drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vg

[PATCH 2/5] drm/vgem: Remove assignment in if condition

2018-03-07 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl error: vgem_fence.c:196: ERROR: do not use assignment in if condition Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vgem/vgem_fence.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vgem/vgem_fence.c b/driver

[PATCH 0/5] drm/vgem: Checkpatch cleanup for vgem

2018-03-07 Thread Rodrigo Siqueira
This patchset fixes warnings and errors found by checkpatch.pl in the drm/vgem: * Removes assignment in if condition; * Removes '(' from the end of line; * Adds spaces around operators; * Replaces uint32_t for u32; * Indents switch and case at the same level. Rodrigo Siqueira (5): drm/vgem: Ind

[PATCH 1/5] drm/vgem: Indent switch and case at the same level

2018-03-07 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl errors: vgem_drv.c:97: ERROR: switch and case should be at the same indent vgem_drv.c:97: ERROR: trailing statements should be on next line Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vgem/vgem_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deleti

Re: [PATCH 12/12] thermal: exynos: remove separate thermal_exynos.h header file

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 03:43:55PM +0100, Bartlomiej Zolnierkiewicz wrote: > thermal_exynos.h is used only by exynos_tmu.c so there is no need > for a separate include file. Also while it remove unused defines. > > There should be no functional changes caused by this patch. > > Signed-off-by: Bar

Re: [PATCH 11/12] dt-bindings: thermal: remove no longer needed samsung thermal properties

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 03:43:54PM +0100, Bartlomiej Zolnierkiewicz wrote: > Remove documentation for longer needed samsung thermal properties. > > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > .../devicetree/bindings/thermal/exynos-thermal.txt | 23 > +- > 1 file changed

Re: [PATCH 3/4] module: Support to show the current enforcement policy

2018-03-07 Thread Jia Zhang
On 2018/3/8 上午4:14, Jessica Yu wrote: > +++ Jia Zhang [01/03/18 17:09 +0800]: >> /sys/kernel/security/modsign/enforce gives the result of current >> enforcement policy of loading module. >> >> Signed-off-by: Jia Zhang > > Why is this being added as part of securityfs? AFAIK that's primarily > u

Re: [PATCH v3 2/2] dt-bindings: Document the Synopsys DW AXI DMA bindings

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 02:46:15PM +0300, Eugeniy Paltsev wrote: > This patch adds documentation of device tree bindings for the Synopsys > DesignWare AXI DMA controller. > > Signed-off-by: Eugeniy Paltsev > --- > Changes v2->v3: > * None. > > .../devicetree/bindings/dma/snps,dw-axi-dmac.txt

Re: [PATCH v5 0/6] dt-bindings: add bindings for USB physical connector

2018-03-07 Thread Chanwoo Choi
Hi Andrzej, Archit, On 2018년 03월 07일 20:13, Andrzej Hajda wrote: > Hi Chanwoo, Archit, > > On 07.03.2018 05:48, Chanwoo Choi wrote: >> On 2018년 03월 07일 11:12, Chanwoo Choi wrote: >>> Hi Rob and Andrzej, >>> >>> On 2018년 03월 06일 21:53, Andrzej Hajda wrote: Hi Rob, Chanwoo, Krzysztof, >>>

Re: [PATCH] bloat-o-meter: fix typo in help

2018-03-07 Thread Randy Dunlap
On 03/07/2018 03:39 PM, Matteo Croce wrote: > On Wed, Feb 14, 2018 at 6:47 PM, Matteo Croce wrote: >> the bloat-o-meter script has two typos in the help, fix both. >> >> Fixes: 192efb7a1f9b ("bloat-o-meter: provide 3 different arguments for data, >> function and All") >> Signed-off-by: Matteo Cro

Re: [PATCH 2/2] x86/Kconfig: Add config to allow not defining old serial ports

2018-03-07 Thread Randy Dunlap
On 03/07/2018 03:24 PM, Daniel Kurtz wrote: > The old_serial_port global array in 8250_core is supposed to hold an entry > for each serial port on the system that cannot be discovered via a > standard enumeration mechanism (aka ACPI/PCI/DTS). The array is populated > at compile-time from the value

Re: [PATCH 4.15 004/122] platform/x86: dell-laptop: Allocate buffer on heap rather than globally

2018-03-07 Thread Greg KH
On Thu, Mar 08, 2018 at 01:14:39AM +, mario.limoncie...@dell.com wrote: > Greg, > > Can you please make sure that the one that came in right after this is also > applied at the same time? > https://www.spinics.net/lists/stable/msg215268.html > > As you recommended before they weren't squashe

Re: [PATCH v5 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 04:59:10PM +0800, Ran Wang wrote: > Property "snps,incr-burst-type-adjustment = , ..." for USB3.0 DWC3. > When only one value means INCRx mode with fix burst type. > When more than one value, means undefined length burst mode, USB controller > can use the length less than or

Re: [PATCH] hugetlbfs: check for pgoff value overflow

2018-03-07 Thread Yisheng Xie
Hi Mike, On 2018/3/8 7:59, Mike Kravetz wrote: > A vma with vm_pgoff large enough to overflow a loff_t type when > converted to a byte offset can be passed via the remap_file_pages > system call. The hugetlbfs mmap routine uses the byte offset to > calculate reservations and file size. > > A seq

Re: [PATCH v5 3/3] USB3/DWC3: Enable undefined length INCR burst type

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 04:59:11PM +0800, Ran Wang wrote: > Enable the undefined length INCR burst type and set INCRx. > Different platform may has the different burst size type. > In order to get best performance, we need to tune the burst size to > one special value, instead of the default value.

linux-next: manual merge of the mfd tree with Linus' tree

2018-03-07 Thread Stephen Rothwell
Hi Lee, Today's linux-next merge of the mfd tree got a conflict in: drivers/mfd/syscon.c between commit: 3bafc09e7797 ("mfd: syscon: Add hardware spinlock support") from Linus' tree and commit: 34c90dcce6b1 ("mfd: syscon: Set regmap name to DT node name") from the mfd tree. I fixed it

Re: [PATCH v4 3/4] of: Documentation: Add x86 local APIC ID property

2018-03-07 Thread Rob Herring
On Wed, Mar 7, 2018 at 7:11 PM, Ivan Gorinov wrote: > On Wed, 2018-03-07 at 14:23 -0600, Rob Herring wrote: > >> > Add new "intel,apic-id" property to allow using CPU descriptions >> > in Device Tree data provided by the U-Boot loader. >> > Address specified in 'reg' to be used as default local AP

Re: [PATCH v4 1/2] dt-bindings: add bindings doc for HiSilicon INNO USB2 PHY

2018-03-07 Thread Shawn Guo
On Wed, Mar 07, 2018 at 03:11:18PM -0600, Rob Herring wrote: > > +Example: > > + > > +perictrl: peripheral-controller@8a2 { > > + compatible = "hisilicon,hi3798cv200-perictrl", "syscon", > > +"simple-mfd"; > > Is syscon needed here? Doesn't look like the phys need it. For ph

RE: [RFC/RFT][PATCH v2 0/6] sched/cpuidle: Idle loop rework

2018-03-07 Thread Doug Smythies
On 2018.03.07 14:12 Rafael J. Wysocki wrote: > On Wed, Mar 7, 2018 at 6:04 PM, Doug Smythies wrote: >> On 2018.03.06 12:57 Rafael J. Wysocki wrote: > >> During the test I got some messages (I also got some with the V1 patch set): > Can you please check if that's reporoducible with just the first

Re: [PATCH] ARM64: dts: meson-gxbb-wetek: add a wetek specific dtsi to cleanup hub and play2

2018-03-07 Thread Kevin Hilman
Neil Armstrong writes: > This patch adds a specific wetek dtsi to handle the specific Hub and Play2 > boards by no more depending on the p20x dtsi. > This simplifies the hub and play2 dts and will avoid breaking these > boards when adding p200 and p201 specific changes. > > Signed-off-by: Neil Ar

Re: [PATCH] ARM64: dts: meson: reduce odroid-c2 eMMC maximum rate

2018-03-07 Thread Kevin Hilman
Jerome Brunet writes: > Different modules maybe installed by the user on the eMMC connector > of the odroid-c2. While the red modules are working without an issue, > it seems some black modules (apparently Samsung based) are having > issue at 200MHz > > While the tuning algorithm introduced in v4

Re: [PATCHv2 4/7] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding

2018-03-07 Thread Rob Herring
On Wed, Mar 7, 2018 at 4:20 PM, Alan Tull wrote: > On Wed, Mar 7, 2018 at 1:47 PM, Rob Herring wrote: >> On Thu, Mar 01, 2018 at 06:19:32PM -0600, richard.g...@linux.intel.com wrote: >>> From: Alan Tull >>> >>> Add a Device Tree binding for the Intel Stratix10 SoC FPGA manager. >>> >>> Signed-of

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

2018-03-07 Thread Luis R. Rodriguez
On Mon, Mar 05, 2018 at 05:34:57PM -0800, Alexei Starovoitov wrote: > As the first step in development of bpfilter project [1] So meta :) The URL refers an lwn article, which in turn refers to this effort's first RFC. As someone only getting *one* of these patches in emails, It would be useful if

Re: [PATCH] ARM64: dts: amlogic: Convert to new-style SPDX license identifiers

2018-03-07 Thread Kevin Hilman
Neil Armstrong writes: > Move the SPDX-License-Identifier lines to the top and drop the > license splat. > > Signed-off-by: Neil Armstrong Applied to v4.17/dt64, Thanks for the cleanup, Kevin

Re: [BUG] Kernel crash on Allwinner H3 due to sound core changes

2018-03-07 Thread Kuninori Morimoto
Hi Jernej Thank you for your hard work > I found the issue. Commit be7ee5f32a9a ("ASoC: soc-generic-dmaengine-pcm: > replace platform to component") changes struct dmaengine_pcm: > > struct dmaengine_pcm { > struct dma_chan *chan[SNDRV_PCM_STREAM_LAST + 1]; > const struct snd_dmae

Re: [PATCH 2/3] dt-bindings: clock: Add bindings for ZynqMP clock driver

2018-03-07 Thread Rob Herring
On Wed, Mar 7, 2018 at 4:47 PM, Jolly Shah wrote: > Hi Rob, > > >> -Original Message- >> From: Rob Herring [mailto:r...@kernel.org] >> Sent: Monday, March 05, 2018 5:46 PM >> To: Jolly Shah >> Cc: mturque...@baylibre.com; sb...@codeaurora.org; >> michal.si...@xilinx.com; mark.rutl...@arm.

Re: [PATCH v4 3/4] of: Documentation: Add x86 local APIC ID property

2018-03-07 Thread Ivan Gorinov
On Wed, 2018-03-07 at 14:23 -0600, Rob Herring wrote: > > Add new "intel,apic-id" property to allow using CPU descriptions > > in Device Tree data provided by the U-Boot loader. > > Address specified in 'reg' to be used as default local APIC ID > > to avoid breaking existing systems with DTB provi

RE: [PATCH 4.15 004/122] platform/x86: dell-laptop: Allocate buffer on heap rather than globally

2018-03-07 Thread Mario.Limonciello
Greg, Can you please make sure that the one that came in right after this is also applied at the same time? https://www.spinics.net/lists/stable/msg215268.html As you recommended before they weren't squashed together, but they should both come in at the same time. Thanks, > -Original Mess

Re: [PATCH v2 2/7] kexec_file,x86,powerpc: factor out kexec_file_ops functions

2018-03-07 Thread Dave Young
On 03/06/18 at 07:22pm, AKASHI Takahiro wrote: > As arch_kexec_kernel_image_{probe,load}(), > arch_kimage_file_post_load_cleanup() and arch_kexec_kernel_verify_sig() > are almost duplicated among architectures, they can be commonalized with > an architecture-defined kexec_file_ops array. So let's f

Re: [PATCH] ARM64: dts: meson-axg: add sec_AO system controller

2018-03-07 Thread Kevin Hilman
Neil Armstrong writes: > On 15/02/2018 11:12, Jerome Brunet wrote: >> add the secure AO system controller with chipid enabled >> >> Signed-off-by: Jerome Brunet >> --- >> arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 6 ++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/arch/arm64/bo

Re: [PATCH] ARM64: dts: meson-axg: fix pwm_AO_cd compatible

2018-03-07 Thread Kevin Hilman
Neil Armstrong writes: > On 15/02/2018 11:10, Jerome Brunet wrote: >> The compatible in pwm_AO_cd is wrong and does not match anything. >> Correct this with the correct compatible string >> >> Fixes: 4a81e5ddfb43 ("ARM64: dts: meson-axg: add PWM DT info for Meson-Axg >> SoC") >> Signed-off-by:

Re: [PATCH] amlogic: meson-gx-socinfo: Update soc ids

2018-03-07 Thread Kevin Hilman
Jerome Brunet writes: > On Wed, 2018-02-14 at 15:58 +0100, Neil Armstrong wrote: >> Updates the Amlogic Meson SoCs IDs for the Armv8 based SoCs. >> It includes the new families and packages. >> >> Signed-off-by: Neil Armstrong >> --- >> drivers/soc/amlogic/meson-gx-socinfo.c | 8 >> 1

[PATCH 5/5] kbuild: move modname and modname-multi close to modname_flags

2018-03-07 Thread Masahiro Yamada
Just a cosmetic change to put related code close together. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 2 -- scripts/Makefile.lib | 14 -- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index b8aecb7.

[PATCH 1/5] kbuild: remove unnecessary $(subst $(obj)/,,...) in modname-multi

2018-03-07 Thread Masahiro Yamada
In the context ... $(obj)/%.s: $(src)/%.c FORCE $(call if_changed_dep,cc_s_c) $(obj)/%.i: $(src)/%.c FORCE $(call if_changed_dep,cpp_i_c) $(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE $(call cmd,force_checksrc) $(ca

Re: [PATCH] audit: set TIF_AUDIT_SYSCALL only if audit filter has been populated

2018-03-07 Thread Andy Lutomirski
On Wed, Mar 7, 2018 at 11:41 PM, Paul Moore wrote: > On Wed, Mar 7, 2018 at 11:48 AM, Jiri Kosina wrote: >> On Wed, 7 Mar 2018, Andy Lutomirski wrote: >>> Wow, this was a long time ago. >> >> Oh yeah; but it now resurfaced on our side, as we are of course receiving >> a lot of requests with respe

[PATCH 0/5] kbuild: always define KBUILD_MODNAME, and clean-up/fix modname

2018-03-07 Thread Masahiro Yamada
3/5 takes into account '-m' case for multi-used-m. 2/5 is necessary beforehand because 3/5 would cause a build error for drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 1, 4, 5 are just clean-ups. Cao jin (1): kbuild: fix modname for composite modules Masahiro Yamada (4): kbuild: remo

[PATCH 2/5] kbuild: define KBUILD_MODNAME even if multiple modules share objects

2018-03-07 Thread Masahiro Yamada
Currently, KBUILD_MODNAME is defined only when $(modname) contains just one word. If an object is shared among multiple modules, undefined KBUILD_MODNAME could cause a build error. For example, if CONFIG_DYNAMIC_DEBUG is enabled, any call of printk() populates .modname, then fails to build due to

[PATCH 3/5] kbuild: fix modname for composite modules

2018-03-07 Thread Masahiro Yamada
From: Cao jin Commit cf4f21938e13 ("kbuild: Allow to specify composite modules with modname-m") added modname-m support, but missed to update the corresponding multi-objs-m & modname-multi definition. Signed-off-by: Cao jin Signed-off-by: Masahiro Yamada --- I rebased the previous version: ht

[PATCH 4/5] kbuild: simplify modname calculation

2018-03-07 Thread Masahiro Yamada
modname can be calculated much more simply. If modname-multi is empty, it is a single-used object. So, modname = $(basetarget). Otherwise, modname = $(modname-multi). Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 12 +--- scripts/Makefile.lib | 7 --- 2 files chan

Re: [PATCH] perf mmap: Discard head in overwrite_rb_find_range

2018-03-07 Thread Yisheng Xie
Hi Arnaldo, On 2018/3/7 21:58, Arnaldo Carvalho de Melo wrote: > Em Wed, Mar 07, 2018 at 11:21:57AM +0100, Jiri Olsa escreveu: >> On Tue, Mar 06, 2018 at 07:44:23PM +0800, Yisheng Xie wrote: >>> In overwrite mode, start will be set to head in perf_mmap__read_init. >>> Therefore, it is no need to s

Re: [PATCH v2 0/7] kexec_file, x86, powerpc: refactoring for other architecutres

2018-03-07 Thread Dave Young
[Cc Andrew] On 03/06/18 at 07:22pm, AKASHI Takahiro wrote: > This is a preparatory patch set for adding kexec_file support on arm64. > > It was originally included in a arm64 patch set[1], but Philipp is also > working on their kexec_file support on s390[2] and some changes are now > conflicting.

RE: [PATCH v5 02/12] [media] cxd2880-spi: Add support for CXD2880 SPI interface

2018-03-07 Thread Yasunari.Takiguchi
Dear Mauro I am very glad to hear your message. Being busy, thank you for taking care of fixing patches as well also. And we will improve about your below comments continuously. Regards & Thanks Takiguchi > -Original Message- > From: Mauro Carvalho Chehab [mailto:mche...@s-opensource.co

linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2018-03-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/sun4i/sun4i_tcon.c between commit: e742a17cd360 ("drm/sun4i: tcon: Reduce the scope of the LVDS error a bit") from the drm-misc-fixes tree and commit: 34d698f6e349 ("drm/sun4i: Add has_channel_0 TCON qui

Re: [PATCH V2 2/2] dt-bindings: Document the Rockchip RK1608 bindings

2018-03-07 Thread leo
Hi Sakari, Thanks for your advice,  i'll revise it. Hi Wen, On Mon, Feb 26, 2018 at 04:25:04PM +0800, Wen Nuan wrote: From: Leo Wen Add DT bindings documentation for Rockchip RK1608. Changes V2: - Delete spi-min-frequency property. - Add the external sensor's control pin and clock properti

Re: [PATCH] vsprintf: Remove accidental VLA usage

2018-03-07 Thread Kees Cook
On Wed, Mar 7, 2018 at 4:03 PM, Andrew Morton wrote: > On Wed, 7 Mar 2018 15:59:27 -0800 Kees Cook wrote: > >> I didn't want to encourage a global macro that _lacked_ the safety >> built into the max*() family, though... thoughts for a reasonable >> approach? > > I think SIMPLE_MAX() is OK.Al

Re: [PATCH v2 0/3] pinctrl: bcm2835: Add brcm,level property

2018-03-07 Thread Matheus Castello
Hi Stefan, On 03/07/2018 07:58 AM, Stefan Wahren wrote: > Hi Matheus, > >> Matheus Castello hat am 5. März 2018 um 03:29 >> geschrieben: >> >> >> Hi Linus and Stefan, >> >> thanks for the tips. >> >> This series adds support for generic binding for pinctrl bcm2835 driver, >> and add the code fo

Re: linux-next: Signed-off-by missing for commit in the pinctrl tree

2018-03-07 Thread Stephen Rothwell
Hi Linus, On Wed, 7 Mar 2018 23:25:48 +0100 Linus Walleij wrote: > > On Wed, Mar 7, 2018 at 9:39 PM, Stephen Rothwell > wrote: > > > Commit > > > > fc08fa6009a0 ("pinctrl: sh-pfc: r8a7795: remove duplicate of CLKOUT pin > > in pinmux_pins[]") > > > > is missing a Signed-off-by from its com

Re: [PATCH 7/7] RCU, workqueue: Implement rcu_work

2018-03-07 Thread Lai Jiangshan
On Wed, Mar 7, 2018 at 10:54 PM, Paul E. McKenney wrote: > On Wed, Mar 07, 2018 at 10:49:49AM +0800, Lai Jiangshan wrote: >> On Wed, Mar 7, 2018 at 1:33 AM, Tejun Heo wrote: >> >> > +/** >> > + * queue_rcu_work_on - queue work on specific CPU after a RCU grace period >> > + * @cpu: CPU number to

Re: [PATCH 08/17] staging: lustre: obdclass: use workqueue for zombie management.

2018-03-07 Thread Dilger, Andreas
On Mar 1, 2018, at 16:31, NeilBrown wrote: > > obdclass currently maintains two lists of data structures > (imports and exports), and a kthread which will free > anything on either list. The thread is woken whenever > anything is added to either list. > > This is exactly the sort of thing that

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