[PATCH] ARM: imx_v6_v7_defconfig: select the CONFIG_CPUFREQ_DT

2018-01-03 Thread Anson Huang
Select CONFIG_CPUFREQ_DT by default to enable cpu-freq driver for i.MX7D. The rest changes are generated by "make savedefconfig". Signed-off-by: Anson Huang --- arch/arm/configs/imx_v6_v7_defconfig | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/arm/c

Re: [PATCH v5 26/39] nds32: Device tree support

2018-01-03 Thread Greentime Hu
2018-01-04 3:14 GMT+08:00 Rob Herring : > On Tue, Jan 2, 2018 at 2:24 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> This patch adds support for device tree. >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu >> --- >> arch/nds32/boot/dts/Makefile |8 + >> arch/nds3

[PATCH v1 3/6] ASoC: mediatek: update MT2701 AFE documentation to adapt mfd device

2018-01-03 Thread Ryder Lee
As the new MFD parent is in place, modify MT2701 AFE documentation to adapt it. Also add three core clocks in example. Signed-off-by: Ryder Lee --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 171 +++-- 1 file changed, 93 insertions(+), 78 deletions(-) diff --git a/Docu

[PATCH v1 5/6] clk: mediatek: update missing clock data for MT7622 audsys

2018-01-03 Thread Ryder Lee
Add missing clock data 'CLK_AUDIO_AFE_CONN' for MT7622 audsys. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 3 ++- include/dt-bindings/clock/mt7622-clk.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/driv

[PATCH v1 6/6] clk: mediatek: add audsys support for MT2701

2018-01-03 Thread Ryder Lee
Add clock driver support for MT2701 audsys. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/Kconfig | 6 ++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt2701-aud.c | 174 ++ 3 files changed, 181 insertions(+) create mode

[PATCH v1 1/6] ASoC: mediatek: add some core clocks for MT2701 AFE

2018-01-03 Thread Ryder Lee
Add three core clocks for MT2701 AFE. Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 30 ++- sound/soc/mediatek/mt2701/mt2701-afe-common.h | 3 +++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/sound/soc/mediatek/mt2701/

[PATCH v1 4/6] dt-bindings: clock: mediatek: add "simple-mfd" in audsys documentation

2018-01-03 Thread Ryder Lee
Add "simple-mfd" to support MFD device and add a compatible string for MT2701. Signed-off-by: Ryder Lee --- .../bindings/arm/mediatek/mediatek,audsys.txt | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/mediate

Re: [PATCH] mm/fadvise: discard partial pages iff endbyte is also eof

2018-01-03 Thread 夷则(Caspar)
On 2018/1/4 14:13, 夷则(Caspar) wrote: This patch is trying to help to solve a real issue. Sometimes we need to evict the whole file from page cache because we are sure it will not be used in the near future. We try to use posix_fadvise() to finish our work but we often see a "small tail" at

[PATCH v1 0/6] add "simple-mfd" support for MediaTek audio subsystem

2018-01-03 Thread Ryder Lee
Hi, The reason for this series is that MediaTek audio hardware block expose more than a single functionality, but register those in different kernel subsystems. Same issue could also be found in MMSYS: https://lkml.org/lkml/2017/11/14/669 Hence use "simple-mfd" to handle this kind of situation,

[PATCH v1 2/6] ASoC: mediatek: modify MT2701 AFE driver to adapt mfd device

2018-01-03 Thread Ryder Lee
As the new MFD parent is in place, modify MT2701 AFE driver to adapt it. Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 45 +- sound/soc/mediatek/mt2701/mt2701-reg.h | 1 - 2 files changed, 20 insertions(+), 26 deletions(-) diff --git

Re: [PATCH 4.9 00/39] 4.9.75-stable review

2018-01-03 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 08:39:41AM +0100, Greg Kroah-Hartman wrote: > On Thu, Jan 04, 2018 at 01:24:55AM +, Ben Hutchings wrote: > > On Wed, 2018-01-03 at 21:11 +0100, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 4.9.75 release. > > > There are 39 patches

Re: [PATCH 4.9 00/39] 4.9.75-stable review

2018-01-03 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 01:24:55AM +, Ben Hutchings wrote: > On Wed, 2018-01-03 at 21:11 +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.75 release. > > There are 39 patches in this series, all will be posted as a response > > to this one. If anyon

Re: [PATCH 4.9 29/39] x86/kaiser: Check boottime cmdline params

2018-01-03 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 08:05:50AM +0100, Borislav Petkov wrote: > On Thu, Jan 04, 2018 at 12:16:08AM +, Ben Hutchings wrote: > > No such exception has been added upstream, so I don't think it's > > appropriate to add it in stable. > > On its way: > > https://git.kernel.org/tip/694d99d40972f1

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

2018-01-03 Thread Himanshu Jha
Hello Martin, On Thu, Jan 04, 2018 at 01:17:52AM -0500, Martin K. Petersen wrote: > > Himanshu, > > > Use dma_zalloc_coherent instead of dma_alloc_coherent followed by > > memset 0. > > Does not apply to 4.16/scsi-queue. Please resubmit. Thanks! No problem, I will resend the patch. scsi: qla4

Re: [f2fs-dev] [PATCH 2/2 v2] f2fs: add reserved blocks for root user

2018-01-03 Thread Chao Yu
On 2018/1/4 14:51, Jaegeuk Kim wrote: > This patch allows root to reserve some blocks via mount option. > > "-o reserve_root=N" means N x 4KB-sized blocks for root only. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

Re: [PATCH 1/2] jump_label: export static_key_slow_inc/dec_cpuslocked()

2018-01-03 Thread Konstantin Khlebnikov
On Thu, Jan 4, 2018 at 2:20 AM, Peter Zijlstra wrote: > On Wed, Jan 03, 2018 at 11:29:50PM +0300, Konstantin Khlebnikov wrote: >> For fixing cpu_hotplug_lock recursion in tg_set_cfs_bandwidth(). > > Why would that need module exports? Just for symmetry with other functions.

Re: [PATCH 0/6] mm, hugetlb: allocation API and migration improvements

2018-01-03 Thread Michal Hocko
On Wed 03-01-18 16:05:23, Andrew Morton wrote: > On Wed, 3 Jan 2018 10:32:07 +0100 Michal Hocko wrote: > > > I've posted this as an RFC [1] and both Mike and Naoya seem to be OK > > both with patches and the approach. I have rebased this on top of [2] > > because there is a small conflict in mm/

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

2018-01-03 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 --- drivers/clk/imx/clk-imx7d.c | 1 + inclu

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

2018-01-03 Thread Anson Huang
Add i.MX7 SNVS RTC clock. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7s.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index e718fd2..f9b97f3 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.d

Re: [PATCH net-next 2/2] tun: allow to attach ebpf socket filter

2018-01-03 Thread Jason Wang
On 2018年01月02日 17:19, Willem de Bruijn wrote: More importantly, should this program just return a boolean pass or drop. Taking a length and trimming may introduce bugs later on if the stack parses the packet unconditionally, expecting a minimum size to be present. This was the reason for intro

Re: [PATCH v4] f2fs: check segment type in __f2fs_replace_block

2018-01-03 Thread Chao Yu
On 2018/1/4 15:10, Jaegeuk Kim wrote: > On 01/04, Yunlong Song wrote: >> In some case, the node blocks has wrong blkaddr whose segment type is >> NODE, e.g., recover inode has missing xattr flag and the blkaddr is in >> the xattr range. Since fsck.f2fs does not check the recovery nodes, this >> wil

[PATCH V2 3/5] drivers: regulator: leave one item to record whether regulator is enabled

2018-01-03 Thread Chunyan Zhang
The items "disabled" and "enabled" are a little redundant, since only one of them would be set to record if the regulator device should keep on or be switched to off in suspend states. So in this patch, the "disabled" was removed, only leave the "enabled": - enabled == 1 for regulator-on-in-susp

Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs

2018-01-03 Thread Ingo Molnar
* Ingo Molnar wrote: > These will cherry-pick cleanly, so it would be nice to test them on top of of > the > -stable kernel that fails: > > for N in 450cbdd0125c 4d2dc2cc766c 1e0f25dbf246 be62a3204406 0c3292ca8025 > 9d0b62328d34; do git cherry-pick $N; done > > if this brute-force approac

Re: [PATCH v9 7/8] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2018-01-03 Thread Horia Geantă
On 1/3/2018 8:07 PM, Logan Gunthorpe wrote: > Clean up the extra ifdefs which defined the wr_reg64 and rd_reg64 > functions in non-64bit cases in favour of the new common > io-64-nonatomic-lo-hi header. > > Signed-off-by: Logan Gunthorpe > Cc: Andy Shevchenko > Cc: Horia Geantă > Cc: Dan Dougla

[PATCH V2 5/5] regulator: add PM suspend and resume hooks

2018-01-03 Thread Chunyan Zhang
In this patch, consumers are allowed to set suspend voltage, and this actually just set the "uV" in constraint::regulator_state, when the regulator_suspend_late() was called by PM core through callback when the system is entering into suspend, the regulator device would act suspend activity then.

[PATCH V2 4/5] drivers: regulator: empty the old suspend functions

2018-01-03 Thread Chunyan Zhang
Regualtor suspend/resume functions should only be called by PM suspend core via registering dev_pm_ops, and regulator devices should implement the callback functions. Thus, any regulator consumer shouldn't call the regulator suspend/resume functions directly. In order to avoid compile errors, two

[PATCH V2 2/5] regulator: make regulator voltage be an array to support more states

2018-01-03 Thread Chunyan Zhang
Some regulator consumers would like to make the regulator device keeping a voltage range output when the system entering into suspend states. Making regulator voltage be an array can allow consumers to set voltage for normal state as well as for suspend states through the same code. Signed-off-by

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

2018-01-03 Thread Chunyan Zhang
Some systems need to set regulators to specific states when they enter low power modes, especially around CPUs. There are many of these modes depending on the particular runtime state. Currently the regulator consumers are not granted permission to change suspend state of regulator devices, the co

[PATCH V2 0/5] Add regulator suspend and resume support

2018-01-03 Thread Chunyan Zhang
Some systems need to set regulators to specific states when they enter low power modes, especially around CPUs. Currently the regulator driver, for suspend and resume features, provides two functions which are exported for being called directly by any modules or subsystems when they thought the re

Re: [f2fs-dev] [PATCH 1/2 v2] f2fs: show precise # of blocks that user/root can use

2018-01-03 Thread Chao Yu
On 2018/1/4 14:50, Jaegeuk Kim wrote: > Let's show precise # of blocks that user/root can use through bavail and bfree > respectively. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs

2018-01-03 Thread Ingo Molnar
* Greg Kroah-Hartman wrote: > On Thu, Jan 04, 2018 at 08:14:21AM +0100, Ingo Molnar wrote: > > - (or it's something I missed to consider) > > It was a operator error, the issue is also on 4.15-rc6, see another > email in this thread :) ah, ok :-) Nevertheless it made sense to go through all

Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs

2018-01-03 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 08:14:21AM +0100, Ingo Molnar wrote: > - (or it's something I missed to consider) It was a operator error, the issue is also on 4.15-rc6, see another email in this thread :)

Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs

2018-01-03 Thread Ingo Molnar
* Thomas Gleixner wrote: > On Wed, 3 Jan 2018, Benjamin Gilbert wrote: > > > On Wed, Jan 03, 2018 at 10:20:16AM +0100, Greg Kroah-Hartman wrote: > > > Ick, not good, any chance you can test 4.15-rc6 to verify that the issue > > > is also there (or not)? > > > > I haven't been able to reproduce

Re: [PATCH v4] f2fs: check segment type in __f2fs_replace_block

2018-01-03 Thread Jaegeuk Kim
On 01/04, Yunlong Song wrote: > In some case, the node blocks has wrong blkaddr whose segment type is > NODE, e.g., recover inode has missing xattr flag and the blkaddr is in > the xattr range. Since fsck.f2fs does not check the recovery nodes, this > will cause __f2fs_replace_block change the curs

[RECEND PATCH V7 11/12] arm64: dts: add syscon for whale2 platform

2018-01-03 Thread Chunyan Zhang
From: Chunyan Zhang Some clocks on SC9860 are in the same address area with syscon devices, the proper syscon node will be quoted under the definitions of those clocks in DT. Signed-off-by: Chunyan Zhang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 46 +++- 1 file

[RECEND PATCH V7 12/12] arm64: dts: add clocks for SC9860

2018-01-03 Thread Chunyan Zhang
From: Chunyan Zhang Some clocks on SC9860 are in the same address area with syscon devices, those are what have a property of 'sprd,syscon' which would refer to syscon devices, others would have a reg property indicated their address ranges. Signed-off-by: Chunyan Zhang --- arch/arm64/boot/dts

Re: [PATCH 4.9 29/39] x86/kaiser: Check boottime cmdline params

2018-01-03 Thread Borislav Petkov
On Thu, Jan 04, 2018 at 12:16:08AM +, Ben Hutchings wrote: > No such exception has been added upstream, so I don't think it's > appropriate to add it in stable. On its way: https://git.kernel.org/tip/694d99d40972f12e59a3696effee8a376b79d7c8 -- Regards/Gruss, Boris. SUSE Linux GmbH, GF:

[PATCH] thermal: Add debugfs support for cooling devices

2018-01-03 Thread Viresh Kumar
This implements the debugfs interface for thermal cooling devices and exposes some pretty useful statistics. These statistics have proven to be quite useful specially while doing benchmarks related to the task scheduler, where we want to make sure that nothing has disrupted the test, specially the

[PATCH v4] f2fs: check segment type in __f2fs_replace_block

2018-01-03 Thread Yunlong Song
In some case, the node blocks has wrong blkaddr whose segment type is NODE, e.g., recover inode has missing xattr flag and the blkaddr is in the xattr range. Since fsck.f2fs does not check the recovery nodes, this will cause __f2fs_replace_block change the curseg of node and do the update_sit_entry

Re: [PATCH 4.9 00/39] 4.9.75-stable review

2018-01-03 Thread Naresh Kamboju
On 4 January 2018 at 01:41, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.75 release. > There are 39 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Response

Re: Crashes with KPTI and -rc6

2018-01-03 Thread Ingo Molnar
* Laura Abbott wrote: > Hi, > > Fedora got a report via IRC of a double fault with KPTI > https://paste.fedoraproject.org/paste/SL~of04ZExXP6AN2gcJi7A I believe this one should be fixed by: d7732ba55c4b: x86/pti: Switch to kernel CR3 at early in entry_SYSCALL_compat() > This is on -rc6 . I

Re: [PATCH v3] f2fs: check segment type in __f2fs_replace_block

2018-01-03 Thread Jaegeuk Kim
On 01/04, Yunlong Song wrote: > In some case, the node blocks has wrong blkaddr whose segment type is > NODE, e.g., recover inode has missing xattr flag and the blkaddr is in > the xattr range. Since fsck.f2fs does not check the recovery nodes, this > will cause __f2fs_replace_block change the curs

Re: KASAN: use-after-free Read in __dev_queue_xmit

2018-01-03 Thread Eric Dumazet
On Wed, 2018-01-03 at 21:13 -0800, Eric Dumazet wrote: > Note: all commands must start from beginning of the line in the email body. > > I guess skb_probe_transport_header() should be hardened to reject malicious > packets given by user space, instead of being gentle. Although bug triggered for t

Re: [PATCH 2/2 v2] f2fs: add reserved blocks for root user

2018-01-03 Thread Jaegeuk Kim
This patch allows root to reserve some blocks via mount option. "-o reserve_root=N" means N x 4KB-sized blocks for root only. Signed-off-by: Jaegeuk Kim --- Change log from v1: - handle remount case to limit reserve_root=%u fs/f2fs/f2fs.h | 20 fs/f2fs/super.c | 34

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-03 Thread Naresh Kamboju
ers-tests - pass: 12, Hikey board test results, Summary kernel: 4.4.110-rc1 git repo: https://git.linaro.org/lkft/arm64-stable-rc.git git tag: 4.4.110-rc1-hikey-20180103-95 git commit: 0769c4b4aafd63e5d73b6d67f6fe93abcff67cdc git describe

Re: [PATCH v3 00/20] arm64: Unmap the kernel whilst running in userspace (KPTI)

2018-01-03 Thread Greg Kroah-Hartman
On Wed, Jan 03, 2018 at 09:17:26PM -0800, Florian Fainelli wrote: > On 12/11/2017 09:59 AM, Catalin Marinas wrote: > > On Wed, Dec 06, 2017 at 12:35:19PM +, Will Deacon wrote: > >> Patches are also pushed here: > >> > >> git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git kpti > >> >

Re: [PATCH v2 06/12] x86/retpoline/crypto: Convert xen assembler indirect jumps

2018-01-03 Thread Andi Kleen
> > diff --git a/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > > b/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > > index 1743e6850e00..9cd8450a2050 100644 > > --- a/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > > +++ b/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > > @@ -12,6 +12,7 @@ > > > >

Re: [PATCH 1/2 v2] f2fs: show precise # of blocks that user/root can use

2018-01-03 Thread Jaegeuk Kim
Let's show precise # of blocks that user/root can use through bavail and bfree respectively. Signed-off-by: Jaegeuk Kim --- Change log from v1: - clean up obsolete values fs/f2fs/super.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super

RE: [PATCH v5 6/9] ACPI/PPTT: Add topology parsing code

2018-01-03 Thread vkilari
Hi Jeremy > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] > On Behalf Of Jeremy Linton > Sent: Wednesday, January 3, 2018 10:28 PM > To: vkil...@codeaurora.org > Cc: 'Mark Rutland' ; jonathan.zh...@cavium.com; > jayachandran.n...@cavium.c

Re: [PATCH v2 06/12] x86/retpoline/crypto: Convert xen assembler indirect jumps

2018-01-03 Thread Juergen Gross
On 04/01/18 03:00, Andi Kleen wrote: > From: Andi Kleen > > Convert all indirect jumps in xen inline assembler code to use > non speculative sequences. > > Based on code from David Woodhouse and Tim Chen > > Signed-off-by: Andi Kleen > --- > arch/x86/crypto/camellia-aesni-avx2-asm_64.S | 1 +

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-03 Thread Dan Williams
On Wed, Jan 3, 2018 at 9:55 PM, Al Viro wrote: > On Thu, Jan 04, 2018 at 05:50:12AM +, Al Viro wrote: >> On Wed, Jan 03, 2018 at 09:44:33PM -0800, Dan Williams wrote: >> > On Wed, Jan 3, 2018 at 8:44 PM, Al Viro wrote: >> > > On Thu, Jan 04, 2018 at 03:10:51AM +, Williams, Dan J wrote: >>

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-03 Thread Dan Williams
On Wed, Jan 3, 2018 at 9:01 PM, Eric W. Biederman wrote: > "Williams, Dan J" writes: > > > >> Note that these are "a human looked at static analysis reports and >> could not rationalize that these are false positives". Specific domain >> knowledge about these paths may find that some of them are

Re: [PATCH 1/2] f2fs: use flexible array for f2fs_checkpoint::sit_nat_version_bitmap

2018-01-03 Thread Chao Yu
On 2018/1/4 14:16, Jaegeuk Kim wrote: > On 01/04, Chao Yu wrote: >> On 2018/1/4 4:12, Jaegeuk Kim wrote: >>> On 01/03, Chao Yu wrote: If we need an array with variable size in the end of structure, we can utilize flexible array feature which is supported in C99, so let's change sit_n

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-03 Thread Julia Lawall
On Wed, 3 Jan 2018, Dan Williams wrote: > [ adding Julia and Dan ] > > On Wed, Jan 3, 2018 at 5:07 PM, Alan Cox wrote: > > On Wed, 3 Jan 2018 16:39:31 -0800 > > Linus Torvalds wrote: > > > >> On Wed, Jan 3, 2018 at 4:15 PM, Dan Williams > >> wrote: > >> > The 'if_nospec' primitive marks loca

[PATCH v3] f2fs: check segment type in __f2fs_replace_block

2018-01-03 Thread Yunlong Song
In some case, the node blocks has wrong blkaddr whose segment type is NODE, e.g., recover inode has missing xattr flag and the blkaddr is in the xattr range. Since fsck.f2fs does not check the recovery nodes, this will cause __f2fs_replace_block change the curseg of node and do the update_sit_entry

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

2018-01-03 Thread Martin K. Petersen
Himanshu, > Use dma_zalloc_coherent instead of dma_alloc_coherent followed by > memset 0. Does not apply to 4.16/scsi-queue. Please resubmit. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 3/9] scsi: qedi: Use zeroing allocator instead of allocator/memset

2018-01-03 Thread Martin K. Petersen
Himanshu, > Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset > 0. Does not apply to 4.16/scsi-queue. Please resubmit. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/2] f2fs: use flexible array for f2fs_checkpoint::sit_nat_version_bitmap

2018-01-03 Thread Jaegeuk Kim
On 01/04, Chao Yu wrote: > On 2018/1/4 4:12, Jaegeuk Kim wrote: > > On 01/03, Chao Yu wrote: > >> If we need an array with variable size in the end of structure, we > >> can utilize flexible array feature which is supported in C99, so > >> let's change sit_nat_version_bitmap[] to flexible array in

[PATCH v2 1/7] drm/panel: simple: add support for Ampire AM-800480AYTZQW-00H

2018-01-03 Thread Jagan Teki
This adds support for the Ampire AM-800480AYTZQW-00H 7.0" WGA LCD, which can be supported by the simple panel driver. Signed-off-by: Jagan Teki --- Changes for v2: - Updated binding info about optional properties, node and example .../display/panel/ampire,am-800480aytzqw-00h.txt | 25

[PATCH v2 6/7] ARM: dts: imx6q: Add Engicam i.CoreM6 Quad/Dual OpenFrame Cap 7 initial support

2018-01-03 Thread Jagan Teki
i.CoreM6 Quad/Dual OpenFrame modules are "system on modules plus openframe display carriers" which are good solution for develop user friendly graphic user interface. ofcap 7 general features: CPU NXP Freescale i.MX6Q rev1.5 at 792 MHz RAM 1GB, 32, 64 bit, DDR3-800/1066 NAND

[PATCH v2 5/7] ARM: dts: imx6q-icore-ofcap12: Switch LVDS timings from panel-simple

2018-01-03 Thread Jagan Teki
Switch to use koe_tx31d200vm0baa LVDS timings from panel-simple instead hard coding the same in dts. Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/boot/dts/imx6q-icore-ofcap12.dts | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git

[PATCH v2 4/7] drm/panel: simple: Add support for KEO TX31D200VM0BAA

2018-01-03 Thread Jagan Teki
This adds support for the Kaohsiung Opto-Electronics., TX31D200VM0BAA 12.3" HSXGA LVDS panel, which can be supported by the simple panel driver. Signed-off-by: Jagan Teki --- Changes for v2: - Updated binding info about optional properties, node and example .../bindings/display/panel/koe,tx31d2

[PATCH v2 7/7] ARM: dts: imx6q: Add Engicam i.CoreM6 1.5 Quad/Dual MIPI starter kit support

2018-01-03 Thread Jagan Teki
i.CoreM6 1.5 is an another i.CoreM6 QDL cpu modules which can be connected to EDIMM starter kit design with eMMC and MIPI-CSI interfaces suitable for Android and video capture application. notable features: CPU NXP i.MX6 S/DL/D/Q, Up to 4 x Cortex-A9@800MHz Memory

[PATCH v2 3/7] ARM: dts: imx6dl-icore: Add LVDS node

2018-01-03 Thread Jagan Teki
Add ampire,am-800480aytzqw-00h LVDS support by using timings from panel-simple. Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/boot/dts/imx6dl-icore.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-icore.dts b/arch/ar

[PATCH v2 2/7] ARM: dts: imx6q-icore: Switch LVDS timings from panel-simple

2018-01-03 Thread Jagan Teki
Switch to use ampire,am-800480aytzqw-00h LVDS timings from panel-simple instead hard coding the same in dts. Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/boot/dts/imx6q-icore.dts| 31 +-- arch/arm/boot/dts/imx6qdl-icore.dtsi | 2 +- 2 files chan

Re: [PATCH] mm/fadvise: discard partial pages iff endbyte is also eof

2018-01-03 Thread 夷则(Caspar)
On 2018/1/3 18:48, Mel Gorman wrote: On Wed, Jan 03, 2018 at 02:53:43PM +0800, ??(Caspar) wrote: ?? 2017??12??2312:16?? ?? From: "shidao.ytt" in commit 441c228f817f7 ("mm: fadvise: document the fadvise(FADV_DONTNEED) behaviour for partial pages") Mel Gorman explained why

[PATCH v2 0/7] ARM: dts: imx6q: engicam LVDS panel changes

2018-01-03 Thread Jagan Teki
Series add LVDS panel attributes on panel drivers instead of defining them in dts nodes, and also added new icorem6 engicam boards Jagan Teki (7): drm/panel: simple: add support for Ampire AM-800480AYTZQW-00H ARM: dts: imx6q-icore: Switch LVDS timings from panel-simple ARM: dts: imx6dl-icore

Re: [PATCH v2 2/2] PCI: dra7xx: Iterate over INTx status bits

2018-01-03 Thread Vignesh R
On Tuesday 02 January 2018 09:17 PM, Lorenzo Pieralisi wrote: > On Fri, Dec 29, 2017 at 05:11:31PM +0530, Vignesh R wrote: >> It is possible that more than one legacy IRQ may be set at the same >> time, therefore iterate and handle all the pending INTx interrupts >> before clearing the status and

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

2018-01-03 Thread Martin K. Petersen
Himanshu, > Use dma_zalloc_coherent instead of dma_alloc_coherent followed by > memset 0. Applied to 4.16/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 8/9] scsi: bfa: Use zeroing allocator rather than allocator/memset

2018-01-03 Thread Martin K. Petersen
Himanshu, > Use vzalloc instead of vmalloc followed by memset 0. Applied to 4.16/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 2/9] scsi: qla2xxx: Use zeroing allocator rather than allocator/memset

2018-01-03 Thread Martin K. Petersen
Himanshu, > Use dma_zalloc_coherent and vzalloc instead of dma_alloc_coherent and > vmalloc respectively, followed by memset 0. Applied to 4.16/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/9] scsi: qla4xxx: Use zeroing allocator rather than allocator/memset

2018-01-03 Thread Martin K. Petersen
Himanshu, > Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset > 0. Applied to 4.16/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2 1/2] PCI: dra7xx: Fix legacy INTD IRQ handling

2018-01-03 Thread Kishon Vijay Abraham I
On Friday 29 December 2017 05:11 PM, Vignesh R wrote: > Legacy INTD IRQ handling is broken on dra7xx due to fact that driver > uses hwirq in range of 1-4 for INTA, INTD whereas IRQ domain is of size > 4 which is numbered 0-3. Therefore when INTD IRQ line is used with > pci-dra7xx driver following

Re: [PATCH v2 2/2] PCI: dra7xx: Iterate over INTx status bits

2018-01-03 Thread Kishon Vijay Abraham I
On Friday 29 December 2017 05:11 PM, Vignesh R wrote: > It is possible that more than one legacy IRQ may be set at the same > time, therefore iterate and handle all the pending INTx interrupts > before clearing the status and exiting the IRQ handler. Otherwise, some > interrupts would be lost. >

[PATCH net] net: dsa: b53: Turn off Broadcom tags for more switches

2018-01-03 Thread Florian Fainelli
Models such as BCM5395/97/98 and BCM53125/24/53115 and compatible require that we turn on managed mode to actually act on Broadcom tags, otherwise they just pass them through on ingress (host -> switch) and don't insert them in egress (switch -> host). Turning on managed mode is simple, but require

Re: [PATCH v5 0/7] Enhance libsas hotplug feature

2018-01-03 Thread Martin K. Petersen
John, > At this point we feel that we have a decent solution to the > long-standing libsas hotplug issues. > > Hannes has kindly reviewed the series. > > Can you let us know what else you require for acceptance? More > independent review or testing? According to my notes, Hannes had some concern

Re: [f2fs-dev] [PATCH v5] f2fs: add reserved blocks for root user

2018-01-03 Thread Jaegeuk Kim
On 01/04, Chao Yu wrote: > On 2018/1/4 3:06, Jaegeuk Kim wrote: > > On 01/03, Chao Yu wrote: > >> On 2018/1/3 10:21, Jaegeuk Kim wrote: > >>> This patch allows root to reserve some blocks via mount option. > >>> > >>> "-o reserve_root=N" means N x 4KB-sized blocks for root only. > >>> > >>> Signed-

[lkp-robot] [workqueue] 5c0338c687: blogbench.write_score -21.2% regression

2018-01-03 Thread kernel test robot
Greeting, FYI, we noticed a -21.2% regression of blogbench.write_score due to commit: commit: 5c0338c68706be53b3dc472e4308961c36e4ece1 ("workqueue: restore WQ_UNBOUND/max_active==1 to be ordered") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: blogbench on

Re: [PATCH v2] f2fs: check segment type in __f2fs_replace_block

2018-01-03 Thread Chao Yu
Please add simple description here to explain why we need to add this, even though this change is very simple. On 2018/1/4 11:48, Yunlong Song wrote: > Signed-off-by: Yunlong Song > --- > fs/f2fs/segment.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/f2fs/segment.c b/fs/f2fs/se

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-03 Thread Al Viro
On Thu, Jan 04, 2018 at 05:50:12AM +, Al Viro wrote: > On Wed, Jan 03, 2018 at 09:44:33PM -0800, Dan Williams wrote: > > On Wed, Jan 3, 2018 at 8:44 PM, Al Viro wrote: > > > On Thu, Jan 04, 2018 at 03:10:51AM +, Williams, Dan J wrote: > > > > > >> diff --git a/include/linux/fdtable.h b/inc

Re: [PATCHv4 0/2] capability controlled user-namespaces

2018-01-03 Thread महेश बंडेवार
On Wed, Jan 3, 2018 at 8:44 AM, Eric W. Biederman wrote: > Mahesh Bandewar writes: > >> From: Mahesh Bandewar >> >> TL;DR version >> - >> Creating a sandbox environment with namespaces is challenging >> considering what these sandboxed processes can engage into. e.g. >> CVE-2017-6074

Re: [PATCH] virtio_balloon: use non-blocking allocation

2018-01-03 Thread Wei Wang
On 01/02/2018 10:50 PM, Tetsuo Handa wrote: Commit c7cdff0e864713a0 ("virtio_balloon: fix deadlock on OOM") tried to avoid OOM lockup by moving memory allocations to outside of balloon_lock. Now, Wei is trying to allocate far more pages outside of balloon_lock and some more memory inside of ball

Re: linux-next: build warning after merge of the cifs tree

2018-01-03 Thread Stephen Rothwell
Hi Steve, On Wed, 3 Jan 2018 16:44:59 -0600 Steve French wrote: > > I don't see this with gcc 5.4 Good to know. > Harmless to initialize flags here ... even if unneeded ... so if it > makes your life easier I don't mind initializes to 0. Let me know. > Wonder why it doesn't generate the warnin

[lkp-robot] [perf machine] 8edf8850d5: stderr./usr/src/linux-perf-x86_64-rhel-#/tools/perf/util/rb_resort.h:#:#:error:passing_argument#of'threads_sorted__new'from_incompatible_pointer_type[-Werror=in

2018-01-03 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 8edf8850d51e911a35b5d7aad4f8604db11abc66 ("perf machine: Use cached rbtrees") url: https://github.com/0day-ci/linux/commits/Davidlohr-Bueso/tools-perf-Update-rbtree-implementation-and-optimize-users/20171128-120320 in testcase:

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-03 Thread Al Viro
On Wed, Jan 03, 2018 at 09:44:33PM -0800, Dan Williams wrote: > On Wed, Jan 3, 2018 at 8:44 PM, Al Viro wrote: > > On Thu, Jan 04, 2018 at 03:10:51AM +, Williams, Dan J wrote: > > > >> diff --git a/include/linux/fdtable.h b/include/linux/fdtable.h > >> index 1c65817673db..dbc12007da51 100644 >

[lkp-robot] [mm/memory_hotplug] 3072e413e3: page_allocation_failure:order:#,mode:#(GFP_KERNEL|__GFP_RETRY_MAYFAIL|__GFP_ZERO),nodemask=(null)

2018-01-03 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 3072e413e305e353cd4654f8a57d953b66e85bf3 ("mm/memory_hotplug: introduce add_pages") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: nvml with following parameters: group: obj te

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-03 Thread Dave Hansen
On 01/03/2018 09:44 PM, Dan Williams wrote: > No, the concern is that an fd value >= fdt->max_fds may cause the cpu > to read arbitrary memory addresses relative to files->fdt and > userspace can observe that it got loaded. Yep, it potentially tells you someting about memory after fdt->fd[]. For i

Re: [f2fs-dev] [PATCH] f2fs: enable quota at remount from r to w

2018-01-03 Thread Chao Yu
On 2018/1/3 10:01, Jaegeuk Kim wrote: > We have to enable quota only when remounting from read to write. Otherwise, > we'll get remount failure. (e.g., write to write case) > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

[lkp-robot] [x86/mm/kasan] 2533a63618: BUG:KASAN:use-after-scope_in__lock_acquire

2018-01-03 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 2533a63618fcfd5fb0c7bb7549913e173a1908af ("x86/mm/kasan: Don't use vmemmap_populate() to initialize shadow") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: trinity with following parameters:

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-03 Thread Dan Williams
On Wed, Jan 3, 2018 at 8:44 PM, Al Viro wrote: > On Thu, Jan 04, 2018 at 03:10:51AM +, Williams, Dan J wrote: > >> diff --git a/include/linux/fdtable.h b/include/linux/fdtable.h >> index 1c65817673db..dbc12007da51 100644 >> --- a/include/linux/fdtable.h >> +++ b/include/linux/fdtable.h >> @@ -

Re: [PATCH v1 1/1] usb: xhci: do not create and register shared_hcd when USB3.0 is disabled

2018-01-03 Thread Thang Q. Nguyen
Hi, On Sat, Dec 16, 2017 at 10:45 AM, Thang Q. Nguyen wrote: > From: Tung Nguyen > > Currently, hcd->shared_hcd always creates and registers to the usb-core. > If, for some reasons, USB3 downstream port is disabled, no roothub port for > USB3.0 is found. This causes kernel to display an error: >

Re: [PATCH v3 00/20] arm64: Unmap the kernel whilst running in userspace (KPTI)

2018-01-03 Thread Florian Fainelli
On 12/11/2017 09:59 AM, Catalin Marinas wrote: > On Wed, Dec 06, 2017 at 12:35:19PM +, Will Deacon wrote: >> Patches are also pushed here: >> >> git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git kpti >> >> Feedback and testing welcome. At this point, I'd like to start thinking >> a

Re: KASAN: use-after-free Read in __dev_queue_xmit

2018-01-03 Thread Eric Dumazet
On Wed, Jan 3, 2018 at 8:58 PM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 37759fa6d0fa9e4d6036d19ac12f555bfc0aeafd > git://git.cmpxchg.org/linux-mmots.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > C reproducer is a

linux-next: Tree for Jan 4

2018-01-03 Thread Stephen Rothwell
Hi all, Changes since 20180103: Non-merge commits (relative to Linus' tree): 6793 7290 files changed, 280741 insertions(+), 199625 deletions(-) I have created today's linux-next tree at git://git.kernel.o

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-03 Thread Eric W. Biederman
"Williams, Dan J" writes: > Note that these are "a human looked at static analysis reports and > could not rationalize that these are false positives". Specific domain > knowledge about these paths may find that some of them are indeed false > positives. > > The change to m_start in kernel/user

Re: [PATCH v2 0/2] clk: qcom: MISC RCG changes for SDM845

2018-01-03 Thread Amit Nischal
On 2018-01-02 23:43, Stephen Boyd wrote: On 01/02, Amit Nischal wrote: Changes in v2: * Changed usage of clk_hw_is_prepared() to __clk_is_enabled() in clk_rcg2_shared_ops to fix build test error. Please change it to read the hardware directly and not use __clk_is_enabled() or clk_hw_is_prepa

Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs

2018-01-03 Thread Andy Lutomirski
On Wed, Jan 3, 2018 at 8:35 PM, Benjamin Gilbert wrote: > On Wed, Jan 03, 2018 at 04:37:53PM -0800, Andy Lutomirski wrote: >> Maybe try rebuilding a bad kernel with free_ldt_pgtables() modified >> to do nothing, and the read /sys/kernel/debug/page_tables/current (or >> current_kernel, or whatever

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-03 Thread Al Viro
On Thu, Jan 04, 2018 at 03:10:51AM +, Williams, Dan J wrote: > diff --git a/include/linux/fdtable.h b/include/linux/fdtable.h > index 1c65817673db..dbc12007da51 100644 > --- a/include/linux/fdtable.h > +++ b/include/linux/fdtable.h > @@ -82,8 +82,10 @@ static inline struct file *__fcheck_files

Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs

2018-01-03 Thread Benjamin Gilbert
On Wed, Jan 03, 2018 at 05:37:42PM -0800, Benjamin Gilbert wrote: > I was caught by the fact that 4.14.11 has PAGE_TABLE_ISOLATION default y > but 4.15-rc6 doesn't. Retesting. It turns out that 4.15-rc6 has the same problem as 4.14.11. --Benjamin Gilbert

Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs

2018-01-03 Thread Benjamin Gilbert
On Wed, Jan 03, 2018 at 04:37:53PM -0800, Andy Lutomirski wrote: > Maybe try rebuilding a bad kernel with free_ldt_pgtables() modified > to do nothing, and the read /sys/kernel/debug/page_tables/current (or > current_kernel, or whatever it's called). The problem may be obvious. current_kernel att

  1   2   3   4   5   6   7   8   9   10   >