[RFC PATCH 0/9] soc: samsung: Add support of suspend-to-RAM on Exynos5433

2018-01-08 Thread Chanwoo Choi
In the mainline, there is no case to support the suspend-to-RAM for Samsung Exynos SoC. This patchset support the suspend-to-RAM for 64bit Exynos SoC. For 32bit, arch/arm/mach-exynos/* directoy contains the suspend-related codes such as suspend.c/exynos.c. But, 64bit Exynos should contain the susp

[PATCH 7/9] arm64: dts: exynos: Use power key as a wakeup source on TM2/TM2E board

2018-01-08 Thread Chanwoo Choi
This patch uses the power-key as a wakeup source from suspend/freeze state. Signed-off-by: Chanwoo Choi --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exyno

Re: [lkp-robot] [sched/fair] a4c3c04974: unixbench.score -4.3% regression

2018-01-08 Thread Vincent Guittot
Hi, On 8 January 2018 at 10:34, Vincent Guittot wrote: > Hi Xiaolong, > > On 25 December 2017 at 07:07, kernel test robot wrote: >> >> Greeting, >> >> FYI, we noticed a -4.3% regression of unixbench.score due to commit: >> >> >> commit: a4c3c04974d648ee6e1a09ef4131eb32a02ab494 ("sched/fair: Upda

[mkp-scsi:for-next 237/263] drivers/scsi/libsas/sas_discover.c:364:6: sparse: symbol 'sas_destruct_ports' was not declared. Should it be static?

2018-01-08 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next head: f7c3d0667404295422c9a5d71fd87ca20c770f49 commit: 99cfdc04c12ea1bc5719bff15f24dae8b5b90da9 [237/263] scsi: libsas: direct call probe and destruct reproduce: # apt-get install sparse git checkout 99

[RFC PATCH mkp-scsi] scsi: libsas: sas_destruct_ports() can be static

2018-01-08 Thread kbuild test robot
Fixes: 99cfdc04c12e ("scsi: libsas: direct call probe and destruct") Signed-off-by: Fengguang Wu --- sas_discover.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c index 190108e..e4fd078 100644 --- a/

Re: [PATCH v6 2/3] fs: fat: Add volume label entry method function

2018-01-08 Thread OGAWA Hirofumi
ChenGuanqiao writes: > +static int fat_get_volume_label_entry(struct inode *dir, loff_t *pos, > +struct buffer_head **bh, > +struct msdos_dir_entry **de) > +{ > + while (fat_get_entry(dir, pos, bh, de) >= 0) { > + if (((*de)-

HELLO

2018-01-08 Thread Mr. Hamza Kabore
-- Hello Dear Friend, Greetings and how are you doing? I want to know if you are keen to be my partner in claiming the fortune $12.8 Million USD left by a late client. If you're interested Revert for more details. Awaiting your reply Hamza Kabore

Re: [PATCH v3 24/27] staging: ccree: use a consistent file naming convention

2018-01-08 Thread Gilad Ben-Yossef
On Mon, Jan 8, 2018 at 5:28 PM, Greg Kroah-Hartman wrote: > On Sun, Jan 07, 2018 at 12:14:35PM +, Gilad Ben-Yossef wrote: >> The ccree driver source files were using an inconsistent >> naming convention stemming from what the company was called >> when they were added. >> >> Move to a single c

Re: [PATCH] crypto: clear htmldocs build warnings for crypto/hash

2018-01-08 Thread Herbert Xu
On Mon, Jan 08, 2018 at 05:43:18PM +0100, Kamil Konieczny wrote: > Is it mandatory for both async hash and shash ? > > in crypto/ahash.c in function > > static int crypto_ahash_init_tfm(struct crypto_tfm *tfm) > > there is: > > hash->export = ahash_no_export; > hash->import = ahash

RE: [PATCH v2 1/4] dmaengine: xilinx_dma: populate dma caps properly

2018-01-08 Thread Appana Durga Kedareswara Rao
Hi, Thanks for the review... >On Tue, Jan 09, 2018 at 04:48:10AM +, Appana Durga Kedareswara Rao >wrote: >> Hi, >> >> >On Mon, Jan 08, 2018 at 05:25:01PM +, Appana Durga Kedareswara >> >Rao >> >wrote: >> >> Hi, >> >> >> >> >> >> >> >> + xdev->common.dst_addr_widths = BIT(addr_

Re: [PATCH v2] v4l: doc: Clarify v4l2_mbus_fmt height definition

2018-01-08 Thread Hans Verkuil
On 01/08/2018 06:55 PM, Kieran Bingham wrote: > The v4l2_mbus_fmt width and height corresponds directly with the > v4l2_pix_format definitions, yet the differences in documentation make > it ambiguous what to do in the event of field heights. > > Clarify this using the same text as is provided for

Re: [PATCH] ath9k: add a quirk to set use_msi automatically

2018-01-08 Thread Kalle Valo
AceLan Kao writes: > Some platform(BIOS) blocks legacy interrupts (INTx), and only allows MSI > for WLAN device. So adding a quirk to list those machines and set > use_msi automatically. > Adding the following platforms to the quirk. >Dell Inspiron 24-3460 >Dell Inspiron 3472 >Dell In

Re: [PATCH v2] media: i2c: adv748x: fix HDMI field heights

2018-01-08 Thread Hans Verkuil
On 01/08/2018 07:14 PM, Kieran Bingham wrote: > The ADV748x handles interlaced media using V4L2_FIELD_ALTERNATE field > types. The correct specification for the height on the mbus is the > image height, in this instance, the field height. > > The AFE component already correctly adjusts the height

Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y

2018-01-08 Thread Dave Young
On 01/09/18 at 01:41pm, Baoquan He wrote: > On 01/09/18 at 09:09am, Dave Young wrote: > > On 01/09/18 at 03:13am, Kirill A. Shutemov wrote: > > > On Mon, Jan 08, 2018 at 08:46:53PM +0300, Kirill A. Shutemov wrote: > > > > On Mon, Jan 08, 2018 at 04:04:44PM +, Ingo Molnar wrote: > > > > > > > >

Re: [lkp-robot] [mm/cma] 2b0f904a5a: fio.read_bw_MBps -16.1% regression

2018-01-08 Thread Joonsoo Kim
On Sat, Jan 06, 2018 at 05:26:31PM +0800, Ye Xiaolong wrote: > Hi, > > On 01/03, Joonsoo Kim wrote: > >Hello! > > > >On Tue, Jan 02, 2018 at 02:35:28PM +0800, kernel test robot wrote: > >> > >> Greeting, > >> > >> FYI, we noticed a -16.1% regression of fio.read_bw_MBps due to commit: > >> > >>

Re: [PATCH V3 04/12] perf mmap: introduce perf_mmap__read_done

2018-01-08 Thread Namhyung Kim
Hi, On Thu, Jan 04, 2018 at 02:00:03PM +, Liang, Kan wrote: > > Hi Kan, > > > > On Wed, Jan 03, 2018 at 02:15:38PM +, Liang, Kan wrote: > > > > Hello, > > > > > > > > On Thu, Dec 21, 2017 at 10:08:46AM -0800, kan.li...@intel.com wrote: > > > > > From: Kan Liang > > > > > > > > > > The di

Re: Feedback on 4.9 performance after PTI fixes

2018-01-08 Thread Willy Tarreau
Hi again, updating the table after Yves-Alexis' comment on PCID. Rerunning the test with -cpu=Haswell to enable PCID gave me much better numbers : On Sun, Jan 07, 2018 at 11:18:56AM +0100, Willy Tarreau wrote: > Hi, > > I managed to take a bit of time to run some more tests on PTI both > native

Re: [PATCH 2/8] blk-mq: protect completion path with RCU

2018-01-08 Thread Hannes Reinecke
On 01/08/2018 08:15 PM, Tejun Heo wrote: > Currently, blk-mq protects only the issue path with RCU. This patch > puts the completion path under the same RCU protection. This will be > used to synchronize issue/completion against timeout by later patches, > which will also add the comments. > > S

Re: [PATCH 07/11] powerpc/64s: Add support for RFI flush of L1-D cache

2018-01-08 Thread Joel Stanley
On Mon, Jan 8, 2018 at 8:54 AM, Michael Ellerman wrote: > On some CPUs we can prevent the Meltdown vulnerability by flushing the > L1-D cache on exit from kernel to user mode, and from hypervisor to > guest. Super minor nitpicks below. Don't let this hold up your work. > --- a/arch/powerpc/kerne

[PATCH] usb: f_fs: Prevent gadget unbind if it is already unbound

2018-01-08 Thread Amit Pundir
From: Hemant Kumar Upon usb composition switch there is possibility of ep0 file release happening after gadget driver bind. In case of composition switch from adb to a non-adb composition gadget will never gets bound again resulting into failure of usb device enumeration. Fix this issue by checki

[PATCH] powerpc/32: Remove memory clobber asm constraint on dcbX() functions

2018-01-08 Thread Christophe Leroy
Instead of just telling GCC that dcbz(), dcbi(), dcbf() and dcbst() clobber memory, tell it what it clobbers: * dcbz(), dcbi() and dcbf() clobbers one cacheline as output * dcbf() and dcbst() clobbers one cacheline as input Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/cache.h | 1

Re: Applied "ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update" to the asoc tree

2018-01-08 Thread Takashi Sakamoto
Hi Jiada, On Jan 9 2018 14:42, Jiada Wang wrote: Only the first patch in https://www.spinics.net/lists/alsa-devel/msg71021.html was applied, but the second patch "ASoC: rsnd: ssi: remove unnesessary period_pos" was missed Could you please have a look I can see all of them were applied to Ma

Re: [PATCH] perf ftrace: Fix the buffer size in __write_tracing_file

2018-01-08 Thread Namhyung Kim
Hi, On Mon, Jan 08, 2018 at 03:34:57PM +0100, Jiri Olsa wrote: > On Mon, Jan 08, 2018 at 11:05:12AM +0800, Du, Changbin wrote: > > Hi Olsa, > > What about this fix now? Thanks! > > > > On Tue, Dec 26, 2017 at 05:26:56PM +0800, changbin...@intel.com wrote: > > > From: Changbin Du > > > > > > The

[PATCH v5 0/4] vm: add a syscall to map a process memory into a pipe

2018-01-08 Thread Mike Rapoport
Hi, This patches introduces new process_vmsplice system call that combines functionality of process_vm_read and vmsplice. It allows to map the memory of another process into a pipe, similarly to what vmsplice does for its own address space. The patch 2/4 ("vm: add a syscall to map a process memo

[PATCH v5 4/4] test: add a test for the process_vmsplice syscall

2018-01-08 Thread Mike Rapoport
From: Andrei Vagin This test checks that process_vmsplice() can splice pages from a remote process and returns EFAULT, if process_vmsplice() tries to splice pages by an unaccessiable address. Signed-off-by: Andrei Vagin Signed-off-by: Mike Rapoport --- tools/testing/selftests/process_vmsplice

[PATCH v5 1/4] fs/splice: introduce pages_to_pipe helper

2018-01-08 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- fs/splice.c | 57 - 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/fs/splice.c b/fs/splice.c index 39e2dc01ac12..7f1ffc50ff1d 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -1185,6 +1185,36 @@

[PATCH v5 3/4] x86: wire up the process_vmsplice syscall

2018-01-08 Thread Mike Rapoport
From: Andrei Vagin Signed-off-by: Andrei Vagin --- arch/x86/entry/syscalls/syscall_32.tbl | 1 + arch/x86/entry/syscalls/syscall_64.tbl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/syscalls/syscall_32.tbl index 448ac2161112..dc6

[PATCH v5 2/4] vm: add a syscall to map a process memory into a pipe

2018-01-08 Thread Mike Rapoport
From: Andrei Vagin It is a hybrid of process_vm_readv() and vmsplice(). vmsplice can map memory from a current address space into a pipe. process_vm_readv can read memory of another process. A new system call can map memory of another process into a pipe. ssize_t process_vmsplice(pid_t pid, in

[PATCH v7 5/9] dmtimer: Add timer ops to the platform data structure

2018-01-08 Thread Keerthy
Add timer ops to the platform data structure Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- include/linux/platform_data/dmtimer-omap.h | 38 ++ 1 file changed, 38 insertions(+) diff --git a/include/linux/platform_data/dmtimer-om

[PATCH v7 4/9] arm: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksource

2018-01-08 Thread Keerthy
Move the dmtimer driver out of plat-omap to clocksource. So that non-omap devices also could use this. No Code changes done to the driver file only renamed to timer-dm.c. Also removed the config dependencies for OMAP_DM_TIMER. Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Lad

[PATCH v7 6/9] clocksource: dmtimer: Populate the timer ops to the pdata

2018-01-08 Thread Keerthy
Add the timer ops to the platform data Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- drivers/clocksource/timer-dm.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/clocksource/timer-dm.c b/drivers/clocksource/timer-dm

[PATCH v7 3/9] arm: omap: Move dmtimer.h out of plat-omap

2018-01-08 Thread Keerthy
The header file is currently under plat-omap directory under arch/omap. Move this out to an accessible place. No Code changes done to the header file. Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- arch/arm/mach-omap1/pm.c

[PATCH v7 9/9] arm: omap: pdata-quirks: Remove unused timer pdata

2018-01-08 Thread Keerthy
Remove unused timer pdata. Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- arch/arm/mach-omap2/pdata-quirks.c | 32 1 file changed, 32 deletions(-) diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata

[PATCH v7 8/9] pwm: pwm-omap-dmtimer: Adapt driver to utilize dmtimer pdata ops

2018-01-08 Thread Keerthy
Adapt driver to utilize dmtimer pdata ops instead of pdata-quirks. Signed-off-by: Keerthy Acked-by: Neil Armstrong Reviewed-by: Claudiu Beznea --- drivers/pwm/pwm-omap-dmtimer.c | 68 ++ 1 file changed, 43 insertions(+), 25 deletions(-) diff --git a/dri

[PATCH v7 1/9] clocksource: dmtimer: Remove all the exports

2018-01-08 Thread Keerthy
Remove all the unwanted exports from the driver Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- arch/arm/plat-omap/dmtimer.c | 27 --- 1 file changed, 27 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmt

[PATCH v7 0/9] omap: dmtimer: Move driver out of plat-omap

2018-01-08 Thread Keerthy
The series moves dmtimer out of plat-omap to drivers/clocksource. The series also does a bunch of changes to pwm-omap-dmtimer code to adapt to the driver migration and clean up plat specific pdata-quirks and use the dmtimer platform data. Boot tested on DRA7-EVM and AM437X-GP-EVM. Compile tested o

[PATCH v7 2/9] arm: omap: timer: Wrap the inline functions under OMAP2PLUS define

2018-01-08 Thread Keerthy
Wrap the inline functions under OMAP2PLUS/OMAP1 defines. Signed-off-by: Keerthy Tested-by: Ladislav Michl --- arch/arm/plat-omap/include/plat/dmtimer.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/incl

[PATCH v7 7/9] clocksource: timer-dm: Hook device platform data if not already assigned

2018-01-08 Thread Keerthy
From: Ladislav Michl In the case of device tree boot the device platform data is usually NULL so hook the platform data obtained from the match. As part of un-constify the platform_data pointer. Signed-off-by: Ladislav Michl Signed-off-by: Keerthy --- drivers/clocksource/timer-dm.c | 10 +

[PATCH net-next 1/2] Revert "net: hns3: Add packet statistics of netdev"

2018-01-08 Thread Peng Li
This reverts commit 8491000754796c838a0081c267f9dd54ad2ccba3. It is duplicate to add statistics of netdev for ethtool -S. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 80 +- 1 file changed, 1 insertion(+), 79 deletions(-) diff --git a/driv

[PATCH net-next 2/2] net: hns3: report the function type the same line with hns3_nic_get_stats64

2018-01-08 Thread Peng Li
The function type should be on the same line with the function name, or it may cause display error if a patch edit the function. There is am example following: https://www.spinics.net/lists/netdev/msg476141.html Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 ++--

[PATCH net-next 0/2] code improvements in HNS3 driver

2018-01-08 Thread Peng Li
This patchset fixes 2 comments for community review. [patch 1/2] reverts "net: hns3: Add packet statistics of netdev" reported by Jakub Kicinski and David Miller. [patch 2/2] reports the function type the same line with hns3_nic_get_stats64, reported by Andrew Lunn. Peng Li (2): Revert "net: hns

Re: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-08 Thread Randy Dunlap
On 01/08/18 19:13, shufan_lee(李書帆) wrote: > From: ShuFan Lee > > Richtek RT1711H Type-C chip driver that works with > Type-C Port Controller Manager to provide USB PD and > USB Type-C functionalities. > > Signed-off-by: ShuFan Lee > ---​ > > Documentation/devicetree/bindings/usb/richtek,rt1711

Re: [PATCH v2] x86/kexec: Exclude GART aperture from vmcore

2018-01-08 Thread Baoquan He
On 01/06/18 at 02:00am, Jiri Bohac wrote: > Hi Baoquan, > > thank you very much for your review! > > On Wed, Dec 27, 2017 at 03:44:49PM +0800, Baoquan He wrote: > > > > 1) If 'iommu=off' is specified in 1st kernel but not in kdump kernel, it > > > > will ignore the ram we need dump. > > > > > >

Re: [PATCH] perf ftrace: Fix the buffer size in __write_tracing_file

2018-01-08 Thread Du, Changbin
On Mon, Jan 08, 2018 at 03:34:57PM +0100, Jiri Olsa wrote: > On Mon, Jan 08, 2018 at 11:05:12AM +0800, Du, Changbin wrote: > > Hi Olsa, > > What about this fix now? Thanks! > > > > On Tue, Dec 26, 2017 at 05:26:56PM +0800, changbin...@intel.com wrote: > > > From: Changbin Du > > > > > > The term

Re: [PATCH V2 1/5] bindings: regulator: added support for suspend states

2018-01-08 Thread Chunyan Zhang
On 8 January 2018 at 20:35, Mark Brown wrote: > On Mon, Jan 08, 2018 at 02:36:36PM +0800, Chunyan Zhang wrote: >> On 6 January 2018 at 03:18, Mark Brown wrote: > >> > No, it means that the software has permission to use those changes to >> > those registers - we only want to be changing things if

Re: [PATCH v2] PM / runtime: Rework pm_runtime_force_suspend/resume()

2018-01-08 Thread Ulf Hansson
On 3 January 2018 at 12:06, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > One of the limitations of pm_runtime_force_suspend/resume() is that > if a parent driver wants to use these functions, all of its child > drivers have to do that too because of the parent usage counter > manipulati

Re: [PATCH 09/11] powerpc/64s: Allow control of RFI flush via sysfs

2018-01-08 Thread Jon Masters
On 01/08/2018 05:09 PM, Michael Ellerman wrote: > Thomas Gleixner writes: > >> On Tue, 9 Jan 2018, Michael Ellerman wrote: >> >> Sorry, I wasn't aware about your efforts and did not cc you. I've just >> queued a more generic sysfs interface for this whole mess: > > No worries. > >> https://lkml

[RESEND PATCH] ARM: pinctrl: sunxi-pinctrl: fix pin funtion can not be match correctly.

2018-01-08 Thread hao_zhang
Pin function can not be match correctly when SUNXI_PIN describe with mutiple variant and same function. such as: on pinctrl-sun4i-a10.c SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 2), SUNXI_FUNCTION(0x0, "gpio_in"), SUNXI_FUNCTION(0x1, "gpio_out"), SUNXI_FUNCTIO

Re: [PATCH 5/7] blk-mq: remove REQ_ATOM_COMPLETE usages from blk-mq

2018-01-08 Thread jianchao.wang
Hi tejun Many thanks for your kindly response. On 01/09/2018 11:37 AM, Tejun Heo wrote: > Hello, > > On Tue, Jan 09, 2018 at 11:08:04AM +0800, jianchao.wang wrote: >>> But what'd prevent the completion reinitializing the request and then >>> the actual completion path coming in and completing th

Re: WARNING: held lock freed!

2018-01-08 Thread Xin Long
On Mon, Jan 8, 2018 at 8:09 PM, Marcelo Ricardo Leitner wrote: > On Mon, Jan 08, 2018 at 06:01:14PM +0800, Xin Long wrote: >> On Mon, Jan 8, 2018 at 6:58 AM, syzbot >> wrote: >> > Hello, >> > >> > syzkaller hit the following crash on >> > 3219e264b984ec0a13923aa66385819c2e98d582 >> > git://git.ke

linux-next: Tree for Jan 9

2018-01-08 Thread Stephen Rothwell
Hi all, Changes since 20180108: The net-next tree gained a conflict against the bpf tree. The akpm-current tree still had its build failure for which I applied a patch. The akpm tree gained a conflict against the tip tree for which I dropped a patch. Non-merge commits (relative to Linus'

Re: Applied "ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update" to the asoc tree

2018-01-08 Thread Jiada Wang
Hi Mark Only the first patch in https://www.spinics.net/lists/alsa-devel/msg71021.html was applied, but the second patch "ASoC: rsnd: ssi: remove unnesessary period_pos" was missed Could you please have a look Thanks, Jiada On 12/11/2017 03:38 AM, Mark Brown wrote: On Sat, Dec 09, 2017 at

Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y

2018-01-08 Thread Baoquan He
On 01/09/18 at 09:09am, Dave Young wrote: > On 01/09/18 at 03:13am, Kirill A. Shutemov wrote: > > On Mon, Jan 08, 2018 at 08:46:53PM +0300, Kirill A. Shutemov wrote: > > > On Mon, Jan 08, 2018 at 04:04:44PM +, Ingo Molnar wrote: > > > > > > > > hi Kirill, > > > > > > > > As Mike reported it b

Re: [PATCH v2] x86: xen: remove the use of VLAIS

2018-01-08 Thread Juergen Gross
On 08/01/18 19:49, Ingo Molnar wrote: > > * Juergen Gross wrote: > >> On 08/01/18 17:10, Peter Zijlstra wrote: >>> On Sat, Jan 06, 2018 at 01:39:48PM -0800, Nick Desaulniers wrote: Variable Length Arrays In Structs (VLAIS) is not supported by Clang, and frowned upon by others. >>>

Re: [PATCH] Input: stmfts,s6sy671 - add SPDX identifier

2018-01-08 Thread Andi Shyti
Hi Dmitry, On Fri, Jan 05, 2018 at 08:49:58AM -0800, Dmitry Torokhov wrote: > Hi Andi, > > On Fri, Jan 05, 2018 at 06:57:15PM +0900, Andi Shyti wrote: > > Hi Dmitry, > > > > this is a kind ping, would you also mind giving me a feedback to > > Yes, sorry. Could you please split the patch for eac

Re: [PATCH] gitignore: add *.gcda files

2018-01-08 Thread Jaejoong Kim
Hi, Peter Could you check this patch? Thanks, Jaejoong 2017-12-20 16:09 GMT+09:00 Jaejoong Kim : > Ignore the *.gcda files generated by gcov > > Signed-off-by: Jaejoong Kim > --- > .gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.gitignore b/.gitignore > index 0c39aa2..580e

Re: [PATCH 1/2] bitmap: new bitmap_copy_safe and bitmap_{from,to}_arr32

2018-01-08 Thread Yury Norov
On Tue, Jan 09, 2018 at 12:29:23AM +0100, Rasmus Villemoes wrote: > On 28 December 2017 at 16:00, Yury Norov wrote: > > > > In this patch, bitmap_copy_safe and bitmap_{from,to}_arr32 are introduced. > > > > 'Safe' in bitmap_copy_safe() stands for clearing unused bits in bitmap > > beyond last bit

linux-next: manual merge of the akpm tree with the tip tree

2018-01-08 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in: arch/x86/platform/intel-mid/device_libs/platform_bt.c between commit: 9d0513d82f1a ("x86/platform/intel-mid: Revert "Make 'bt_sfi_data' const"") from the tip tree and patch: "arch/x86/platform/intel-mid/device_libs/

Re: [PATCH v2 1/4] dmaengine: xilinx_dma: populate dma caps properly

2018-01-08 Thread Vinod Koul
On Tue, Jan 09, 2018 at 04:48:10AM +, Appana Durga Kedareswara Rao wrote: > Hi, > > >On Mon, Jan 08, 2018 at 05:25:01PM +, Appana Durga Kedareswara Rao > >wrote: > >> Hi, > >> > >> > >> >> >> +xdev->common.dst_addr_widths = BIT(addr_width / 8); > >> >> >> +xdev->common.src_addr_wi

[PATCH] soundwire: select REGMAP_SOUNDWIRE

2018-01-08 Thread Vinod Koul
SoundWire bus needs to select the regmap support. So, add it Signed-off-by: Vinod Koul --- drivers/soundwire/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soundwire/Kconfig b/drivers/soundwire/Kconfig index 08aad9f52152..b46084b4b1f8 100644 --- a/drivers/soundwire/Kconfig +

[PATCH v2 bpf] bpf: introduce BPF_JIT_ALWAYS_ON config

2018-01-08 Thread Alexei Starovoitov
The BPF interpreter has been used as part of the spectre 2 attack CVE-2017-5715. A quote from goolge project zero blog: "At this point, it would normally be necessary to locate gadgets in the host kernel code that can be used to actually leak data by reading from an attacker-controlled location, s

Re: [PATCH] zswap: only save zswap header if zpool is shrinkable

2018-01-08 Thread Sergey Senozhatsky
On (01/08/18 14:51), Yu Zhao wrote: [..] > int zpool_shrink(struct zpool *zpool, unsigned int pages, > unsigned int *reclaimed) > { > - return zpool->driver->shrink(zpool->pool, pages, reclaimed); > + return zpool_shrinkable(zpool) ? > +zpool->driver->shr

RE: [PATCH v2 1/4] dmaengine: xilinx_dma: populate dma caps properly

2018-01-08 Thread Appana Durga Kedareswara Rao
Hi, >On Mon, Jan 08, 2018 at 05:25:01PM +, Appana Durga Kedareswara Rao >wrote: >> Hi, >> >> >> >> >> + xdev->common.dst_addr_widths = BIT(addr_width / 8); >> >> >> + xdev->common.src_addr_widths = BIT(addr_width / 8); >> >> > >> >> >Do you not support trf of 1byte, 2 bytes, or 4 by

Re: [PATCH v2 1/4] dmaengine: xilinx_dma: populate dma caps properly

2018-01-08 Thread Vinod Koul
On Mon, Jan 08, 2018 at 05:25:01PM +, Appana Durga Kedareswara Rao wrote: > Hi, > > > >> >> + xdev->common.dst_addr_widths = BIT(addr_width / 8); > >> >> + xdev->common.src_addr_widths = BIT(addr_width / 8); > >> > > >> >Do you not support trf of 1byte, 2 bytes, or 4 bytes wide tr

[PATCH] soundwire: Fix incorrect return value check

2018-01-08 Thread Vinod Koul
From: Shreyas NC pm_runtime_get_sync will return negative values for error and 0 or 1 for success. Update the error check accordingly. Signed-off-by: Shreyas NC Reported-by: Dan Carpenter Fixes: 9d715fa005eb: ("soundwire: Add IO transfer") Signed-off-by: Vinod Koul --- drivers/soundwire/bus.

[PATCH] soundwire: Add Pierre as reviewer

2018-01-08 Thread Vinod Koul
Pierre was MIPI chair for SoundWire spec and we could use his help in code reviews, so add him as a reviewer. Signed-off-by: Vinod Koul --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ef6e802dc882..715d054531af 100644 --- a/MAINTAINERS +++ b/MA

Re: [PATCH] zsmalloc: use U suffix for negative literals being shifted

2018-01-08 Thread Nick Desaulniers
On Sun, Jan 7, 2018 at 7:04 AM, Minchan Kim wrote: > Sorry for the delay. I have missed this until now. ;-( No worries, figured patches would need a post holiday bump for review. > > On Sun, Dec 24, 2017 at 11:33 AM, Nick Desaulniers > wrote: >> - link->next = -1 << OBJ_TA

[PATCH] arm64: dts: Hi3660: Remove 'CPU_NAP' idle state

2018-01-08 Thread Leo Yan
Thanks a lot for Vincent Guittot careful work to find bug for 'CPU_NAP' idle state. At early time, the CPU CA73 CPU_NAP idle state has been supported on Hikey960. Later we found the system has the hang issue and for resolving this issue Hisilicon released new MCU firmware, but unfortunately the n

Re: Can RCU stall lead to hard lockups?

2018-01-08 Thread Paul E. McKenney
On Mon, Jan 08, 2018 at 07:52:07PM -0800, Tejun Heo wrote: > Hello, Paul. > > So, I was looking at a machine which triggered crashdump from NMI hard > lockup. The dmesg was filled up with backtraces - many were stuck in > reclaim path, which seems to be the culprit, the others were stuck in > RCU

Re: [PATCH RFC 3/4] x86/pti: don't mark the user PGD with _PAGE_NX.

2018-01-08 Thread Willy Tarreau
Hi Andy, On Mon, Jan 08, 2018 at 03:05:48PM -0800, Andy Lutomirski wrote: > On 01/08/2018 09:03 AM, Dave Hansen wrote: > > On 01/08/2018 08:12 AM, Willy Tarreau wrote: > I vote per-thread. The per-mm approach that Linus suggested doesn't look bad either and makes quite some sense. > Anyway, we c

Re: [PATCH 16/18] net: mpls: prevent bounds-check bypass via speculative execution

2018-01-08 Thread Linus Torvalds
On Mon, Jan 8, 2018 at 8:13 PM, Linus Torvalds wrote: > > # carry will be clear if idx >= max > cmpq %idx,%max Bah. Other way around. cmpq %max,%idx I'm a moron. > # mask will be clear if carry was clear, ~0 otherwise > sbbq %mask,%mask > > to generate mask directly. I

Re: [PATCH] cgroup/cpuset: fix circular locking dependency

2018-01-08 Thread Paul E. McKenney
On Mon, Jan 08, 2018 at 07:42:11PM -0800, Tejun Heo wrote: > Hello, Paul. > > On Mon, Jan 08, 2018 at 04:31:27PM -0800, Paul E. McKenney wrote: > > +static int __init rcu_init_wq_rescuer(void) > > +{ > > + WARN_ON(init_rescuer(rcu_gp_workqueue)); > > + return 0; > > +} > > +core_initcall(rcu_i

Re: [PATCH] ASoC: codecs: dmic: Make number of channels configurable

2018-01-08 Thread Rob Herring
On Fri, Jan 05, 2018 at 12:39:57PM -0800, Matthias Kaehlcke wrote: > The DMIC DAI driver specifies a number of 1 to 8 channels for each DAI. > The actual number of mics can currently not be configured in the device > tree or audio glue, but is derived from the min/max channels of the CPU > and code

Re: [PATCH 16/18] net: mpls: prevent bounds-check bypass via speculative execution

2018-01-08 Thread Linus Torvalds
On Mon, Jan 8, 2018 at 7:42 PM, Dan Williams wrote: > > originally from Linus and tweaked by Alexei and I: Sadly, that tweak - while clever - is wrong. > unsigned long _mask = ~(long)(_m - 1 - _i) >> BITS_PER_LONG - 1;\ Why? Because "(long)(_m-1-_i)" is not negative just because "i >=

Re: [PATCH] of: unittest: refactor Makefile

2018-01-08 Thread Rob Herring
On Fri, Jan 05, 2018 at 08:55:30PM +0900, Masahiro Yamada wrote: > Some cleanups: > - use obj-$(CONFIG_OF_OVERLAY) instead of ifdef ... endif > - compute targets from obj-y > > Signed-off-by: Masahiro Yamada > --- > > drivers/of/unittest-data/Makefile | 19 +-- > 1 file change

Re: [v2,03/11] arm64: Take into account ID_AA64PFR0_EL1.CSV3

2018-01-08 Thread Jayachandran C
On Mon, Jan 08, 2018 at 05:51:00PM +, Will Deacon wrote: > On Mon, Jan 08, 2018 at 09:40:17AM -0800, Jayachandran C wrote: > > On Mon, Jan 08, 2018 at 09:20:09AM +, Marc Zyngier wrote: > > > On 08/01/18 07:24, Jayachandran C wrote: > > > > diff --git a/arch/arm64/kernel/cpufeature.c > > >

Can RCU stall lead to hard lockups?

2018-01-08 Thread Tejun Heo
Hello, Paul. So, I was looking at a machine which triggered crashdump from NMI hard lockup. The dmesg was filled up with backtraces - many were stuck in reclaim path, which seems to be the culprit, the others were stuck in RCU path. It looks like by the time crashdump was created, all CPUs got s

Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y

2018-01-08 Thread Mike Galbraith
On Tue, 2018-01-09 at 03:13 +0300, Kirill A. Shutemov wrote: > > Mike, could you test this? (On top of the rest of the fixes.) homer:..crash/2018-01-09-04:25 # ll total 1863604 -rw--- 1 root root 66255 Jan 9 04:25 dmesg.txt -rw-r--r-- 1 root root182 Jan 9 04:25 README.txt -rw-r

Re: [PATCH] cgroup/cpuset: fix circular locking dependency

2018-01-08 Thread Tejun Heo
Hello, Paul. On Mon, Jan 08, 2018 at 04:31:27PM -0800, Paul E. McKenney wrote: > +static int __init rcu_init_wq_rescuer(void) > +{ > + WARN_ON(init_rescuer(rcu_gp_workqueue)); > + return 0; > +} > +core_initcall(rcu_init_wq_rescuer); So, what I don't get is why RCU needs to call this expl

Re: [PATCH 16/18] net: mpls: prevent bounds-check bypass via speculative execution

2018-01-08 Thread Dan Williams
On Mon, Jan 8, 2018 at 7:11 PM, Eric W. Biederman wrote: > Dan Williams writes: > >> Static analysis reports that 'index' may be a user controlled value that >> is used as a data dependency reading 'rt' from the 'platform_label' >> array. In order to avoid potential leaks of kernel memory values

Re: [PATCH v2 6/8] dt-bindings: ARM: sunxi: Document A80 SoC secure SRAM usage by SMP hotplug

2018-01-08 Thread Rob Herring
On Thu, Jan 04, 2018 at 10:37:52PM +0800, Chen-Yu Tsai wrote: > On the Allwinner A80 SoC the BROM supports hotplugging the primary core > (cpu0) by checking two 32bit values at a specific location within the > secure SRAM block. This region needs to be reserved and accessible to > the SMP code. >

Re: [PATCH] net: gianfar_ptp: move set_fipers() to spinlock protecting area

2018-01-08 Thread Richard Cochran
On Mon, Jan 08, 2018 at 10:53:40AM -0200, Fabio Estevam wrote: > On Mon, Jan 8, 2018 at 8:13 AM, Yangbo Lu wrote: > > set_fipers() calling should be protected by spinlock. > > This patch is to move set_fipers() to spinlock protecting > > area in ptp_gianfar_adjtime() function. > > It would be nic

Re: [v2] net: gianfar_ptp: move set_fipers() to spinlock protecting area

2018-01-08 Thread Richard Cochran
On Tue, Jan 09, 2018 at 11:02:33AM +0800, Yangbo Lu wrote: > set_fipers() calling should be protected by spinlock in > case that any interrupt breaks related registers setting > and the function we expect. This patch is to move set_fipers() > to spinlock protecting area in ptp_gianfar_adjtime(). >

Re: [PATCH 5/7] blk-mq: remove REQ_ATOM_COMPLETE usages from blk-mq

2018-01-08 Thread Tejun Heo
Hello, On Tue, Jan 09, 2018 at 11:08:04AM +0800, jianchao.wang wrote: > > But what'd prevent the completion reinitializing the request and then > > the actual completion path coming in and completing the request again? > > blk_mark_rq_complete() will gate and ensure there will be only one > __blk

Re: [PATCH 7/9] scsi: bnx2fc: Use zeroing allocator rather than allocator/memset

2018-01-08 Thread Martin K. Petersen
Himanshu, > scsi: qedi: Use zeroing allocator instead of allocator/memset --Resend > scsi: mvsas: Use zeroing allocator rather than allocator/memset > scsi: fnic: Use zeroing allocator rather than allocator/memset > scsi: dpt_i2o: Use zeroing allocator rather than allocator/memset > scsi: bnx2fc:

Re: [PATCH v2 2/2] media: dt-bindings: Add OF properties to ov7670

2018-01-08 Thread Rob Herring
On Thu, Jan 04, 2018 at 10:52:33AM +0100, Jacopo Mondi wrote: > Describe newly introduced OF properties for ov7670 image sensor. > The driver supports two standard properties to configure synchronism > signals polarities and two custom properties already supported as > platform data options by the

Re: [PATCH 01/12] dt-bindings: clock: mediatek: add missing required #reset-cells

2018-01-08 Thread Rob Herring
On Thu, Jan 04, 2018 at 05:40:51PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > All ethsys, pciesys and ssusbsys internally include reset controller, so > explicitly add back these missing cell definitions to related bindings > and examples. > > Signed-off-by: Sean Wang > Cc: Rob

Re: [PATCH] ION: Sys_heap: fix the incorrect pool->gfp_mask setting

2018-01-08 Thread Chen Feng
On 2018/1/9 18:43, Zeng Tao wrote: > This issue is introduced by the commit ("ION: Sys_heap: > Add cached pool to spead up cached buffer alloc"), the gfp_mask low > order pool is overlapped by the high order inside the loop, so the > gfp_mask of all pools are set to high_order_gfp_flags. > Tha

Re: [PATCH net-next 12/20] net: hns3: Add packet statistics of netdev

2018-01-08 Thread lipeng (Y)
On 2018/1/9 11:06, David Miller wrote: From: "lipeng (Y)" Date: Tue, 9 Jan 2018 10:48:04 +0800 So I think it is OK if you can revert [patch 12/20 ]("net: hns3: Add packet statistics of netdev"). I think it is OK if you send the revert patch, which is what I am asking for :-) . sure, i wi

Re: [PATCH v6 11/10] x86/retpoline: Avoid return buffer underflows on context switch

2018-01-08 Thread Andy Lutomirski
> On Jan 8, 2018, at 5:15 PM, Andrew Cooper wrote: > >> On 09/01/2018 00:58, Linus Torvalds wrote: >>> On Mon, Jan 8, 2018 at 4:44 PM, Andi Kleen wrote: >>> Essentially the RSB are hidden registers, and the only way to clear them >>> is the FILL_RETURN_BUFFER sequence. I don't see how clearing

RE: [PATCH] net: gianfar_ptp: move set_fipers() to spinlock protecting area

2018-01-08 Thread Y.b. Lu
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年1月8日 20:54 > To: Y.b. Lu > Cc: Claudiu Manoil ; Richard Cochran > ; net...@vger.kernel.org; linux-kernel > > Subject: Re: [PATCH] net: gianfar_ptp: move set_fipers() to spinlock > protecting > area > >

[PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-08 Thread 李書帆
From: ShuFan Lee Richtek RT1711H Type-C chip driver that works with Type-C Port Controller Manager to provide USB PD and USB Type-C functionalities. Signed-off-by: ShuFan Lee ---​ Documentation/devicetree/bindings/usb/richtek,rt1711h.txt | 38 arch/arm64/boot/dts/hisilicon/rt1711h.dtsi

[v2] net: gianfar_ptp: move set_fipers() to spinlock protecting area

2018-01-08 Thread Yangbo Lu
set_fipers() calling should be protected by spinlock in case that any interrupt breaks related registers setting and the function we expect. This patch is to move set_fipers() to spinlock protecting area in ptp_gianfar_adjtime(). Signed-off-by: Yangbo Lu --- Changes for v2: - explained wh

Re: [PATCH 06/67] hexagon: remove unused flush_write_buffers definition

2018-01-08 Thread Richard Kuo
On Fri, Dec 29, 2017 at 09:18:10AM +0100, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig > --- > arch/hexagon/include/asm/io.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h > index 66f5e9a61efc..9e8621d94ee9 1

[GIT] Networking

2018-01-08 Thread David Miller
Highlights: 1) Frag and UDP handling fixes in i40e driver, from Amritha Nambiar and Alexander Duyck. 2) Undo unintentional UAPI change in netfilter conntrack, from Florian Westphal. 3) Revert a change to how error codes are returned from dev_get_valid_name(), it broke some apps. 4) Ca

Re: [PATCH 16/18] net: mpls: prevent bounds-check bypass via speculative execution

2018-01-08 Thread Eric W. Biederman
Dan Williams writes: > Static analysis reports that 'index' may be a user controlled value that > is used as a data dependency reading 'rt' from the 'platform_label' > array. In order to avoid potential leaks of kernel memory values, block > speculative execution of the instruction stream that c

Re: [RFC PATCH] drivers: soc: xilinx: Add ZynqMP PM driver

2018-01-08 Thread Sean Wang
On Mon, 2018-01-08 at 14:10 -0800, Jolly Shah wrote: > Add ZynqMP PM driver. PM driver provides power management > support for ZynqMP. > > Signed-off-by: Jolly Shah > Signed-off-by: Rajan Vaja > --- > .../bindings/soc/xilinx/xlnx,zynqmp-pm.txt | 15 ++ The patch should be split into t

[PATCH V2 1/2] clk: imx: imx7d: add the snvs clock

2018-01-08 Thread Anson Huang
According to the i.MX7D Reference Manual, SNVS block has a clock gate, accessing SNVS block would need this clock gate to be enabled, add it into clock tree so that SNVS module driver can operate this clock gate. Signed-off-by: Anson Huang --- no changes since v1. drivers/clk/imx/clk-imx7d.c

[PATCH V2 2/2] ARM: dts: imx7s: add snvs rtc clock

2018-01-08 Thread Anson Huang
Add i.MX7 SNVS RTC clock. Signed-off-by: Anson Huang --- changes since v1: update snvs lp rtc binding-doc for clock info. Documentation/devicetree/bindings/crypto/fsl-sec4.txt | 16 arch/arm/boot/dts/imx7s.dtsi | 2 ++ 2 files changed, 18 insert

Re: [PATCH 5/7] blk-mq: remove REQ_ATOM_COMPLETE usages from blk-mq

2018-01-08 Thread jianchao.wang
Hi tejun Many thanks for you kindly response. On 01/09/2018 01:27 AM, Tejun Heo wrote: > Hello, Jianchao. > > On Fri, Dec 22, 2017 at 12:02:20PM +0800, jianchao.wang wrote: >>> On Thu, Dec 21, 2017 at 11:56:49AM +0800, jianchao.wang wrote: It's worrying that even though the blk_mark_rq_comp

  1   2   3   4   5   6   7   8   9   10   >