[PATCH v2 2/8] staging: rtl8188eu: remove unnecessary parentheses

2018-09-18 Thread Michael Straube
Remove unnecessary parentheses as reported by checkpatch and from conditionals. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ioctl_set.c| 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git

[PATCH v2 4/8] staging: rtl8188eu: fix comparsions to true

2018-09-18 Thread Michael Straube
Use if(x) instead of if(x == true). Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ioctl_set.c| 26 +-- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

[PATCH v2 5/8] staging: rtl8188eu: fix comparsions to false

2018-09-18 Thread Michael Straube
Use if(!x) instead of if(x == false). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c index

[PATCH v2 3/8] staging: rtl8188eu: remove whitespace

2018-09-18 Thread Michael Straube
Replace tabs with spaces or just remove spaces in declarations. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ioctl_set.c| 34 +-- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

Re: [patch V3 02/11] x86/mm/cpa: Split, rename and clean up try_preserve_large_page()

2018-09-18 Thread Peter Zijlstra
On Mon, Sep 17, 2018 at 04:29:08PM +0200, Thomas Gleixner wrote: > @@ -1288,23 +1287,23 @@ static int __change_page_attr(struct cpa > err = split_large_page(cpa, kpte, address); > if (!err) { > /* > + * Do a global flush tlb after splitting the large page > +

Re: [PATCH 2/9] ARM: change NR_IPIS to 8

2018-09-18 Thread Chunyan Zhang
Hi, Any conclusion on this patch? The coverity tool is still complaining error on the issue which this patch can fix. Thanks, Chunyan On 18 February 2016 at 23:18, Arnd Bergmann wrote: > On Thursday 18 February 2016 14:37:09 Russell King - ARM Linux wrote: >> On Thu, Feb 18, 2016 at 03:01:54PM

[PATCH] PCI/AER: Clear uncorrectable error status for device

2018-09-18 Thread Oza Pawandeep
PCI based device drivers handles ERR_NONFATAL by registering pci_error_handlers. some of the drivers clear AER uncorrectable status in slot_reset while some in resume. Drivers should not have responsibility of clearing the AER status, instead shall be done by error and recovery framework defined

[PATCH] ASoC: remove redundant include

2018-09-18 Thread zhong jiang
module.h already contained moduleparam.h, so it is safe to remove the redundant include. The issue is detected with the help of Coccinelle. Signed-off-by: zhong jiang --- sound/soc/codecs/rt5651.c | 1 - sound/soc/codecs/wm8904.c | 1 - sound/soc/codecs/wm8974.c | 1 - sound/soc/soc-dapm.c

RE: [PATCH v2 1/5] spi: spi-mem: Add driver for NXP FlexSPI controller

2018-09-18 Thread Yogesh Narayan Gaur
Hi Frieder, > -Original Message- > From: Frieder Schrempf [mailto:frieder.schre...@exceet.de] > Sent: Tuesday, September 18, 2018 1:52 PM > To: Boris Brezillon ; Yogesh Narayan Gaur > > Cc: linux-...@lists.infradead.org; marek.va...@gmail.com; linux- > s...@vger.kernel.org;

Re: [PATCH RESEND 3/6] arm64: add sysfs vulnerability show for spectre v1

2018-09-18 Thread Will Deacon
On Mon, Sep 17, 2018 at 07:22:07PM +0200, Robert Richter wrote: > On 27.08.18 16:33:07, Mian Yousaf Kaukab wrote: > > Hard-coded since patches are merged and there are no configuration > > options. > > Could you add a list of upstream patches to the description that are > required to solve this?

[PATCH 1/4] kbuild: remove VERSION and PATCHLEVEL from $(objtree)/Makefile

2018-09-18 Thread Masahiro Yamada
Neither VERSION nor PATCHLEVEL is used in any useful way. Signed-off-by: Masahiro Yamada --- Makefile | 3 +-- scripts/mkmakefile | 6 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Makefile b/Makefile index d2976b5..6e1a059 100644 --- a/Makefile +++ b/Makefile

RE: [PATCH] misc: remove redundant include moduleparam.h

2018-09-18 Thread Winkler, Tomas
> module.h already contains moduleparam.h, so it is safe to remove the > redundant include. > > The issue is detected with the help of Coccinelle. > > eePlease enter the commit message for your changes. Lines starting > > Signed-off-by: zhong jiang > --- > drivers/misc/mei/bus-fixup.c |

Re: [PATCH] tty/sysrq: Make local variable 'killer' in sysrq_handle_crash() global

2018-09-18 Thread Sai Prakash Ranjan
On 9/18/2018 12:50 PM, Greg Kroah-Hartman wrote: On Tue, Sep 18, 2018 at 12:28:39PM +0530, Sai Prakash Ranjan wrote: On 9/18/2018 11:41 AM, Jiri Slaby wrote: On 09/17/2018, 11:33 PM, Matthias Kaehlcke wrote: sysrq_handle_crash() dereferences a NULL pointer on purpose to force an exception,

Re: [BUG] mm: direct I/O (using GUP) can write to COW anonymous pages

2018-09-18 Thread Konstantin Khlebnikov
On 18.09.2018 03:35, Jann Horn wrote: On Tue, Sep 18, 2018 at 2:05 AM Hugh Dickins wrote: Hi Jann, On Mon, 17 Sep 2018, Jann Horn wrote: [I'm not sure who the best people to ask about this are, I hope the recipient list resembles something reasonable...] I have noticed that the dup_mmap()

Re: soundwire fixes for v4.19

2018-09-18 Thread Greg KH
On Wed, Sep 12, 2018 at 03:27:42PM +0530, Vinod wrote: > Hi Greg, > > Please pull to receive soundwire fixes for 4.19, these include stream > state and lock fix on release. > > The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: > > Linux 4.19-rc1 (2018-08-26 14:11:59

[PATCH 2/5] RISC-V: Use swiotlb on RV64 only

2018-09-18 Thread Zong Li
Only RV64 supports swiotlb. Signed-off-by: Zong Li --- arch/riscv/kernel/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index aee6031..872a280 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -227,7

[PATCH 1/5] RISC-V: Build tishift only on 64-bit

2018-09-18 Thread Zong Li
Only RV64 supports 128 integer size. Signed-off-by: Zong Li --- arch/riscv/lib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile index 445ec84..5739bd0 100644 --- a/arch/riscv/lib/Makefile +++

[PATCH 0/5] Fix some bugs on RV32 build fail and issue.

2018-09-18 Thread Zong Li
This patches fix up the building fail, less function and other issue on RV32. Vincent Chen (1): RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap Zong Li (4): RISC-V: Build tishift only on 64-bit RISC-V: Use swiotlb on RV64 only lib: Add umoddi3 and udivmoddi4 of GCC

Re: [PATCH 0/3] ARM: dspi: Provide slave mode support for Vybryd vf610

2018-09-18 Thread Lukasz Majewski
Dear All, By a mistake I've forgotten to add (to CC/TO) some developers who worked on this driver before (they were not generated from get_maintainers.py script). I'm sending the notification now. > This patch series provides support for DSPI slave mode operation. > It tries to maximally reuse

RE: [PATCH v2] fanotify reports the thread id of the event trigger

2018-09-18 Thread Nixiaoming
On Tue, Sep 18, 2018 3:07 PM Amir Goldstein >On Tue, Sep 18, 2018 at 6:01 AM Nixiaoming wrote: >> >> On Mon, Sep 17, 2018 11:51 PM Amir Goldstein wrote: >> >On Mon, Sep 17, 2018 at 6:05 PM nixiaoming wrote: >... >> >> diff --git a/include/linux/fsnotify_backend.h >> >>

Re: [PATCH] x86/speculation: Use AMD specific retpoline for inline asm on AMD

2018-09-18 Thread Peter Zijlstra
On Mon, Sep 17, 2018 at 10:17:30PM -0700, Zhenzhong Duan wrote: > Lfence is preferred than general retpoline on AMD, add this option > in C / inline asm just as the ASM code does. > > For x86_64, it still help to have minimal retpoline for kernel even > if gcc doesn't support it, change the

Re: [PATCH 11/19] vmw_balloon: rework the inflate and deflate loops

2018-09-18 Thread kbuild test robot
-ci/linux/commits/Nadav-Amit/vmw_balloon-compaction-shrinker-64-bit-etc/20180918-152302 config: i386-randconfig-s2-09171149 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new

Re: [PATCH 14/33] vfs: Implement a filesystem superblock creation/configuration context [ver #11]

2018-09-18 Thread Sergey Senozhatsky
On (08/01/18 16:25), David Howells wrote: [..] > @@ -2460,18 +2428,41 @@ static int do_remount(struct path *path, int > ms_flags, int sb_flags, > if (!can_change_locked_flags(mnt, mnt_flags)) > return -EPERM; > > - err = security_sb_remount(sb, data, data_size); > -

Re: pinctrl-icelake: driver writes to wrong offsets?

2018-09-18 Thread Mika Westerberg
On Mon, Sep 17, 2018 at 11:16:41AM -0700, Rajat Jain wrote: > On Mon, Sep 17, 2018 at 1:13 AM Mika Westerberg > wrote: > > > > On Fri, Sep 14, 2018 at 05:18:34PM -0700, Rajat Jain wrote: > > > This is to report what I think is a problem in the pinctrl-icelake > > > driver. It seems that when

[PATCH 2/4] kbuild: remove user ID check in scripts/mkmakefile

2018-09-18 Thread Masahiro Yamada
This line was added by commit fd5f0cd6b0ce ("kbuild: Do not overwrite makefile as anohter user"). Its commit description says the intention was to prevent $(objtree)/Makefile from being owned by root when e.g. running 'make install'. However, as commit 19514fc665ff ("arm, kbuild: make "make

[PATCH] misc: remove redundant include moduleparam.h

2018-09-18 Thread zhong jiang
module.h already contains moduleparam.h, so it is safe to remove the redundant include. The issue is detected with the help of Coccinelle. eePlease enter the commit message for your changes. Lines starting Signed-off-by: zhong jiang --- drivers/misc/mei/bus-fixup.c | 1 -

[PATCH 4/4] kbuild: simplify command line creation in scripts/mkmakefile

2018-09-18 Thread Masahiro Yamada
Assuming we never invoke the generated Makefile from outside of the $(objtree) directory, $(CURDIR) points to the absolute path of $(objtree). BTW, 'lastword' is natively supported by GNU Make 3.81+, which is the current requirement for building the kernel. Signed-off-by: Masahiro Yamada ---

[PATCH 3/4] kbuild: do not pass $(objtree) to scripts/mkmakefile

2018-09-18 Thread Masahiro Yamada
Since $(objtree) is always '.', it is not useful to pass it to scripts/mkmakefile. I assume nobody wants to run this script directly. Signed-off-by: Masahiro Yamada --- Makefile | 2 +- scripts/mkmakefile | 7 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git

[LKP] [vfree, kvfree] a79ed8bfb2: BUG:sleeping_function_called_from_invalid_context_at_mm/util.c

2018-09-18 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-6): commit: a79ed8bfb24e899aa55de42703ae4508ff016311 ("[PATCH 3/3] vfree, kvfree: Add debug might sleeps.") url: https://github.com/0day-ci/linux/commits/Andrey-Ryabinin/kvfree-Fix-misleading-comment/20180915-094734 in testcase: trinity

Re: [PATCH] misc: remove redundant include moduleparam.h

2018-09-18 Thread zhong jiang
On 2018/9/18 16:55, Greg KH wrote: > On Tue, Sep 18, 2018 at 04:34:42PM +0800, zhong jiang wrote: >> module.h already contains moduleparam.h, so it is safe to remove >> the redundant include. >> >> The issue is detected with the help of Coccinelle. >> >> eePlease enter the commit message for your

[PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines

2018-09-18 Thread Zong Li
Add umoddi3 and udivmoddi4 support for 32-bit. Signed-off-by: Zong Li --- lib/Kconfig | 3 + lib/Makefile | 1 + lib/udivmoddi4.c | 291 +++ lib/umoddi3.c| 16 +++ 4 files changed, 311 insertions(+) create mode 100644

[PATCH 4/5] RISC-V: Select GENERIC_LIB_UMODDI3 on RV32

2018-09-18 Thread Zong Li
On 32-bit, it need to use __umoddi3 by some drivers. Signed-off-by: Zong Li --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a344980..dc262fa 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -108,6 +108,7 @@

[PATCH 5/5] RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap

2018-09-18 Thread Zong Li
From: Vincent Chen For 32bit, the upper 32-bit of phys_addr_t will be flushed to zero after AND with PAGE_MASK because the data type of PAGE_MASK is unsigned long. To fix this problem, the page alignment is done by subtracting the page offset instead of AND with PAGE_MASK. Signed-off-by:

Re: [PATCH v4 2/2] pci: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode

2018-09-18 Thread Lorenzo Pieralisi
On Mon, Sep 17, 2018 at 11:36:35PM +0530, Vignesh R wrote: > Errata i870 is applicable in both EP and RC mode. Therefore rename > function dra7xx_pcie_ep_unaligned_memaccess(), that implements errata > workaround, to dra7xx_pcie_unaligned_memaccess() and call it from a > common place. So, that

Re: [PATCH v3 2/2] [media] videobuf2-dc: Support cacheable MMAP

2018-09-18 Thread Tomasz Figa
Hi Hans, On Mon, Sep 17, 2018 at 11:41 PM Hans Verkuil wrote: > > I'm going through old patches in patchwork that fell through the > cracks, and this is one of them. > > If this is still desired, please rebase and repost. > > I'm marking this series as Obsoleted in patchwork, since it no longer

Re: [PATCH 14/33] vfs: Implement a filesystem superblock creation/configuration context [ver #11]

2018-09-18 Thread Sergey Senozhatsky
On (09/18/18 18:07), Sergey Senozhatsky wrote: > emergency_remount() > do_emergency_remount() > do_emergency_remount_callback() >reconfigure_super() > > At fc->ops dereference: > > 981 if (fc->ops->reconfigure) { > ^ > 982 retval =

Re: [PATCH] samples: disable CONFIG_SAMPLES for UML

2018-09-18 Thread Richard Weinberger
Am Dienstag, 18. September 2018, 05:58:33 CEST schrieb Masahiro Yamada: > Some samples require headers installation, so commit 3fca1700c4c3 > ("kbuild: make samples really depend on headers_install") added > such dependency in the top Makefile. However, UML fails to build > with CONFIG_SAMPLES=y

Re: [PATCH] md: bitmap: use mddev_suspend/resume instead of ->quiesce()

2018-09-18 Thread Gi-Oh Kim
On Thu, Sep 13, 2018 at 5:35 PM, Jack Wang wrote: > From: Jack Wang > > After 9e1cc0a54556 ("md: use mddev_suspend/resume instead of ->quiesce()") > We still have similar left in bitmap functions. > > Replace quiesce() with mddev_suspend/resume. > > Also move md_bitmap_create out of

Re: [PATCH V5 1/3] irqchip: add C-SKY irqchip drivers

2018-09-18 Thread Guo Ren
On Mon, Sep 17, 2018 at 02:27:31PM +0100, Marc Zyngier wrote: > On Mon, 17 Sep 2018 03:09:29 +0100, > Guo Ren wrote: > > [...] > > > > > + > > > > + irq_set_default_host(root_domain); > > > > > > Please drop this. There is no reason to use this on any modern, DT > > > based architecture.

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

2018-09-18 Thread Daniel Borkmann
On 09/18/2018 02:11 AM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > tools/testing/selftests/net/tls.c > > between commit: > > 50c6b58a814d ("tls: fix currently broken MSG_PEEK behavior") > > from the net tree and commit: > >

[PATCH v2] misc: remove redundant include moduleparam.h

2018-09-18 Thread zhong jiang
module.h already contains moduleparam.h, so it is safe to remove the redundant include. The issue is detected with the help of Coccinelle. Signed-off-by: zhong jiang --- drivers/misc/mei/bus-fixup.c | 1 - drivers/misc/vmw_vmci/vmci_host.c | 1 - 2 files changed, 2 deletions(-) diff

[PATCH v3 18/20] tpm: use u32 instead of int for pcr index

2018-09-18 Thread Tomas Winkler
TPM pcr indices cannot be negative, also the tpm commands accept u32 number as a pcr index. 1. Adjust the API to use u32 instead of int in all pcr related functions. 2. Rename tpm1_pcr_read_dev to tpm1_pcr_read() to match the counterpart tpm2_pcr_read() 3. Remove redundant constants in

[PATCH v3 05/20] tpm: factor out tpm_get_timeouts

2018-09-18 Thread Tomas Winkler
Factor out tpm_get_timeouts into tpm2_get_timeouts and tpm1_get_timeouts. Signed-off-by: Tomas Winkler --- V2-V3: Rebase drivers/char/tpm/tpm-interface.c | 127 ++- drivers/char/tpm/tpm.h | 5 +- drivers/char/tpm/tpm1-cmd.c | 106

[PATCH v3 20/20] tpm1: reimplement tpm1_continue_selftest() using tpm_buf

2018-09-18 Thread Tomas Winkler
Reimplement tpm1_continue_selftest() using tpm_buf structure. This is the last command using the old tpm_cmd_t structure and now the structure can be removed. Signed-off-by: Tomas Winkler --- V3: new in the series drivers/char/tpm/tpm.h | 9 - drivers/char/tpm/tpm1-cmd.c | 16

[PATCH v3 09/20] tpm: move tpm1 selftest code from tpm-interface tpm1-cmd.c

2018-09-18 Thread Tomas Winkler
Move the tpm1 selftest code functions to tpm1-cmd.c and adjust callers to use the new function names. 1. tpm_pcr_read_dev to tpm1_pcr_read_dev 2. tpm_continue_selftest to tpm1_continue_selftest 3. tpm_do_selftest to tpm1_do_selftest Signed-off-by: Tomas Winkler --- V2-V3: Rebase

[PATCH v3 03/20] tpm: factor out tpm 1.x duration calculation to tpm1-cmd.c

2018-09-18 Thread Tomas Winkler
Factor out tpm 1.x commands calculation into tpm1-cmd.c file. and change the prefix from tpm_ to tpm1_. No functional change is done here. Signed-off-by: Tomas Winkler --- V2-V3: Rebase drivers/char/tpm/Makefile| 1 + drivers/char/tpm/st33zp24/st33zp24.c | 2 +-

[PATCH v3 02/20] tpm: sort objects in the Makefile

2018-09-18 Thread Tomas Winkler
Make the tpm Makefile a bit more in order by putting objects in one column and group together tpm2 modules Signed-off-by: Tomas Winkler --- V2: 1. back to tpm-y notation 2. Partially sort files alphanumerically. V3: Rebase drivers/char/tpm/Makefile | 15 --- 1 file changed, 12

[PATCH v3 16/20] tpm: tpm1: rewrite tpm1_get_random() using tpm_buf structure

2018-09-18 Thread Tomas Winkler
1. Use tpm_buf in tpm1_get_random() 2. Fix comment in tpm_get_random() so it is clear that the function is expected to return number of random bytes. Signed-off-by: Tomas Winkler --- V3: new in the series drivers/char/tpm/tpm-interface.c | 2 +- drivers/char/tpm/tpm.h | 11 --

[PATCH v3 15/20] tpm: tpm-space.c remove unneeded semicolon

2018-09-18 Thread Tomas Winkler
Remove unneeded semicolon in tpm2_map_response_header() Signed-off-by: Tomas Winkler --- V3: new in the series drivers/char/tpm/tpm2-space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm2-space.c b/drivers/char/tpm/tpm2-space.c index

[PATCH v3 01/20] tpm2: add new tpm2 commands according to TCG 1.36

2018-09-18 Thread Tomas Winkler
1. TPM2_CC_LAST has moved from 182 to 193 2. Convert tpm2_ordinal_duration from an array into a switch statement, as there are not so many commands that require special duration relative to a number of commands. Signed-off-by: Tomas Winkler --- V2-V3: Rebase. drivers/char/tpm/tpm.h |

[PATCH v3 19/20] tpm1: reimplement SAVESTATE using tpm_buf

2018-09-18 Thread Tomas Winkler
In tpm1_pm_suspend() function reimplement, TPM_ORD_SAVESTATE comamnd using tpm_buf. Signed-off-by: Tomas Winkler --- V3: new in the series drivers/char/tpm/tpm1-cmd.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/char/tpm/tpm1-cmd.c

[PATCH v3 17/20] tpm1: implement tpm1_pcr_read_dev() using tpm_buf structure

2018-09-18 Thread Tomas Winkler
Implement tpm1_pcr_read_dev() using tpm_buf and remove now unneeded structures from tpm.h Signed-off-by: Tomas Winkler --- V3: new in the series drivers/char/tpm/tpm.h | 18 ++ drivers/char/tpm/tpm1-cmd.c | 38 +- 2 files changed, 23

[PATCH v3 00/20] tpm: separate tpm 1.x and tpm 2.x commands

2018-09-18 Thread Tomas Winkler
This patch series provides initial separation of tpm 1.x and tpm 2.x commands, in foresight that the tpm 1.x chips will eventually phase out and can be compiled out for modern systems. A new file is added tpm1-cmd.c that contains tpm 1.x specific commands. In addition, tpm 1.x commands are now

[PATCH v3 04/20] tpm: add tpm_calc_ordinal_duration wrapper

2018-09-18 Thread Tomas Winkler
Add convenient wrapper for ordinal duration computation to remove boiler plate if else statement over TPM2. if (chip->flags & TPM_CHIP_FLAG_TPM2) tpm2_calc_ordinal_duration(chip, ordinal); else tpm1_calc_ordinal_duration(chip, ordinal); Signed-off-by: Tomas Winkler --- V2-V3:

[PATCH v3 14/20] tpm: tpm-interface.c drop unused macros

2018-09-18 Thread Tomas Winkler
The code movement left some macros unused. Signed-off-by: Tomas Winkler --- V3: new in the series drivers/char/tpm/tpm-interface.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c index a8f8e0bcb434..358ef5bd601e 100644

Re: [LKP] [vfree, kvfree] a79ed8bfb2: BUG:sleeping_function_called_from_invalid_context_at_mm/util.c

2018-09-18 Thread Andrey Ryabinin
On 09/18/2018 11:52 AM, kernel test robot wrote: > > [3.265372] BUG: sleeping function called from invalid context at > mm/util.c:449 > [3.288552] in_atomic(): 0, irqs_disabled(): 0, pid: 142, name: > rhashtable_thra > [3.301548] INFO: lockdep is turned off. > [3.302214]

Re: [PATCH] tty/sysrq: Make local variable 'killer' in sysrq_handle_crash() global

2018-09-18 Thread Sai Prakash Ranjan
On 9/18/2018 2:47 PM, Greg Kroah-Hartman wrote: On Tue, Sep 18, 2018 at 02:35:02PM +0530, Sai Prakash Ranjan wrote: On 9/18/2018 12:50 PM, Greg Kroah-Hartman wrote: On Tue, Sep 18, 2018 at 12:28:39PM +0530, Sai Prakash Ranjan wrote: On 9/18/2018 11:41 AM, Jiri Slaby wrote: On 09/17/2018,

Re: [PATCH v2 7/8] KVM: PMU: support to save/restore the guest lbr stack on vCPU switching

2018-09-18 Thread Wei Wang
On 09/18/2018 10:56 AM, Andi Kleen wrote: From: Like Xu This patch adds support to KVM to save/restore the lbr stack on vCPU context switching. When the guest sets the ACTIVE bit of MSR_KVM_PV_LBR_CTRL, a perf event is created on the host for the related vCPU. This perf event ensures the LBR

Re: [BUG] mm: direct I/O (using GUP) can write to COW anonymous pages

2018-09-18 Thread Jan Kara
On Tue 18-09-18 02:35:43, Jann Horn wrote: > On Tue, Sep 18, 2018 at 2:05 AM Hugh Dickins wrote: Thanks for CC Hugh. > > On Mon, 17 Sep 2018, Jann Horn wrote: > > > > > [I'm not sure who the best people to ask about this are, I hope the > > > recipient list resembles something reasonable...] >

Re: [PATCH 05/19] vmw_balloon: remove sleeping allocations

2018-09-18 Thread kbuild test robot
-ci/linux/commits/Nadav-Amit/vmw_balloon-compaction-shrinker-64-bit-etc/20180918-152302 config: x86_64-randconfig-x015-201837 (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings

Re: [PATCH v3 7/7] regulator: bd718xx: rename bd71837 to 718xx

2018-09-18 Thread kbuild test robot
Hi Matti, Thank you for the patch! Yet something to improve: [auto build test ERROR on regulator/for-next] [also build test ERROR on next-20180913] [cannot apply to v4.19-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: Custom Interrupt Handler for NMI

2018-09-18 Thread Alexander Shishkin
Andy Shevchenko writes: > On Wed, Sep 12, 2018 at 6:16 PM Jack Henschel > wrote: >> >> Hi there, >> >> is it possible to register a custom interrupt handler for a NMI/PMI >> Interrupt? > > I don't think so, though I'm not an expert in the area, so, I also > might be interested to see the

[PATCH 0/4] blk-mq: allow to unfreeze queue when io isn't drained

2018-09-18 Thread Ming Lei
Hi, The 1st patch is one cleanup and prepares for introducing percpu_ref_resurge(). The 2nd patch introduces percpu_ref_resurge() for implementing blk_mq_unfreeze_queue_no_drain_io(). The 3rd patch introdces blk_mq_unfreeze_queue_no_drain_io() for cases in which queue can be unfreeze without

Re: [PATCH 2/2] x86/kexec_file: add reserved e820 ranges to 2nd kernel e820 table

2018-09-18 Thread lijiang
在 2018年09月18日 11:20, Dave Young 写道: > On 09/18/18 at 10:48am, Lianbo Jiang wrote: >> e820 reserved ranges is useful in kdump kernel, we have added this in >> kexec-tools code. >> >> One reason is PCI mmconf (extended mode) requires reserved region >> otherwise it falls back to legacy mode. >> >>

Re: [LKP] [ipc] 61224adcd2: general_protection_fault:#[##]

2018-09-18 Thread David Howells
Li Zhijian wrote: > this is not expected. > could you list/home/dhowells/.lkp/cache final_initrd initrd-concatenated lkp/ lkp-x86_64-ad88cb1a437a_.cgz osimage/ Note that ~/.lkp is a symlink to somewhere that I don't mind clobbering. Does this assume that I'm running on some particular OS

Re: [PATCH v2 1/5] spi: spi-mem: Add driver for NXP FlexSPI controller

2018-09-18 Thread Frieder Schrempf
Hi Yogesh, I have some remarks about your general approach that came to me when looking at the FSPI driver with the things at the back of my mind, that I've learned from working at the FSL QSPI driver. On 17.09.2018 11:48, Yogesh Gaur wrote: - Add a driver for NXP FlexSPI host controller

[PATCH v5 0/2] Add support for LPASS clock controller for SDM845

2018-09-18 Thread Taniya Das
[v5] * Address the comments in device tree binding to update the reg-names, update the unit address in lpass clock node example and also add reg property for the gcc clock node. * Update the lpass driver to take care of the reg-names. [v4] * Update the description in GCC

Re: [PATCH 1/2] dt-bindings: clock: Introduce QCOM LPASS clock bindings

2018-09-18 Thread Taniya Das
Hello Rob, Thanks for the review comments. On 9/17/2018 8:48 AM, Rob Herring wrote: On Tue, Sep 11, 2018 at 10:30:05PM +0530, Taniya Das wrote: Add device tree bindings for Low Power Audio subsystem clock controller for Qualcomm Technology Inc's SDM845 SoCs. Signed-off-by: Taniya Das ---

[PATCH v5 2/2] clk: qcom: Add lpass clock controller driver for SDM845

2018-09-18 Thread Taniya Das
Add support for the lpass clock controller found on SDM845 based devices. This would allow lpass peripheral loader drivers to control the clocks to bring the subsystem out of reset. LPASS clocks present on the global clock controller would be registered with the clock framework based on the device

[PATCH v5 1/2] dt-bindings: clock: Introduce QCOM LPASS clock bindings

2018-09-18 Thread Taniya Das
Add device tree bindings for Low Power Audio subsystem clock controller for Qualcomm Technology Inc's SDM845 SoCs. Signed-off-by: Taniya Das --- .../devicetree/bindings/clock/qcom,gcc.txt | 2 ++ .../devicetree/bindings/clock/qcom,lpasscc.txt | 35 ++

[PATCH v2 6/8] staging: rtl8188eu: add missing spaces around operators

2018-09-18 Thread Michael Straube
Add missing spaces around '|', '-', and '&' to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH v2 7/8] staging: rtl8188eu: fix lines over 80 characters

2018-09-18 Thread Michael Straube
Wrap lines over 80 characters where appropriate to clear checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

[PATCH v2 8/8] staging: rtl8188eu: simplify function comments

2018-09-18 Thread Michael Straube
Simplify function comments to a single line. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

[PATCH v2 1/8] staging: rtl8188eu: simplify calculation

2018-09-18 Thread Michael Straube
Simplify calcualation: * 10 / 2 can be reduced to * 5 Also cleans missing spaces checkpatch issues. Signed-off-by: Michael Straube --- changes in v2: fixed typo in patch 1/8 commit message Simpliy -> Simplify drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 2 +- 1 file

Re: [PATCH 08/19] vmw_balloon: refactor change size from vmballoon_work

2018-09-18 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Nadav-Amit/vmw_balloon-compaction-shrinker-64-bit-etc/20180918-152302 config: x86_64-randconfig-x007-201837 (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings

[PATCH v6 2/2] iio: proximity: vl53l0x: add interrupt support

2018-09-18 Thread Song Qiang
The first version of this driver issues a measuring request and polling for a status register in the device for measuring completes. vl53l0x support configuring GPIO1 on it to generate interrupt to indicate that new measurement is ready. This patch adds support for using this mechanisim to reduce

[PATCH v6 1/2] iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor.

2018-09-18 Thread Song Qiang
This driver was originally written by ST in 2016 as a misc input device driver, and hasn't been maintained for a long time. I grabbed some code from it's API and reformed it into an iio proximity device driver. This version of driver uses i2c bus to talk to the sensor and polling for measuring

Re: [PATCH v2 1/5] spi: spi-mem: Add driver for NXP FlexSPI controller

2018-09-18 Thread Frieder Schrempf
Hi Boris, Yogesh, On 17.09.2018 13:37, Boris Brezillon wrote: Hi Yogesh, On Mon, 17 Sep 2018 15:18:26 +0530 Yogesh Gaur wrote: + + /* +* R/W functions for big- or little-endian registers: +* The FSPI controller's endianness is independent of +* the CPU core's

Re: [PATCH] ASoC: remove redundant include

2018-09-18 Thread Charles Keepax
On Tue, Sep 18, 2018 at 04:16:24PM +0800, zhong jiang wrote: > module.h already contained moduleparam.h, so it is safe to remove > the redundant include. > > The issue is detected with the help of Coccinelle. > > Signed-off-by: zhong jiang > --- For the Wolfson bits: Acked-by: Charles Keepax

Re: [PATCH] misc: remove redundant include moduleparam.h

2018-09-18 Thread Greg KH
On Tue, Sep 18, 2018 at 04:34:42PM +0800, zhong jiang wrote: > module.h already contains moduleparam.h, so it is safe to remove > the redundant include. > > The issue is detected with the help of Coccinelle. > > eePlease enter the commit message for your changes. Lines starting Odd line to

Re: [RFC/PATCH 4/5] gpiolib: add support for fetching descriptors from static properties

2018-09-18 Thread Mika Westerberg
Hi, On Mon, Sep 17, 2018 at 11:16:02AM -0700, Dmitry Torokhov wrote: > Now that static device properties understand notion of child nodes, let's > teach gpiolib to tie such children and machine GPIO descriptor tables. > We will continue using a single table for entire device, but instead of >

Re: [PATCH 14/33] vfs: Implement a filesystem superblock creation/configuration context [ver #11]

2018-09-18 Thread Sergey Senozhatsky
Hi, On (09/11/18 16:54), Guenter Roeck wrote: > On Wed, Sep 12, 2018 at 12:17:35AM +0100, David Howells wrote: > > Guenter Roeck wrote: > > > > > [8.507672] RIP: 0010:reconfigure_super+0x47/0x210 > > > > Can you tell me the file and line this corresponds to? > > > I don't know, but some

Re: [PATCH] tty/sysrq: Make local variable 'killer' in sysrq_handle_crash() global

2018-09-18 Thread Greg Kroah-Hartman
On Tue, Sep 18, 2018 at 02:35:02PM +0530, Sai Prakash Ranjan wrote: > On 9/18/2018 12:50 PM, Greg Kroah-Hartman wrote: > > On Tue, Sep 18, 2018 at 12:28:39PM +0530, Sai Prakash Ranjan wrote: > > > On 9/18/2018 11:41 AM, Jiri Slaby wrote: > > > > On 09/17/2018, 11:33 PM, Matthias Kaehlcke wrote: >

Re: [PATCH] docs: fix some broken documentation references

2018-09-18 Thread Jan Kara
On Mon 17-09-18 15:02:34, Mauro Carvalho Chehab wrote: > Some documentation files received recent changes and are > pointing to wrong places. > > Those references can easily fixed with the help of a > script: > > $ ./scripts/documentation-file-ref-check --fix > > Signed-off-by: Mauro

[PATCH 3/3] ARM: dspi: Provide support for DSPI slave more operation (Vybryd vf610)

2018-09-18 Thread Lukasz Majewski
The NXP's Vybryd vf610 can work as a SPI slave device (the CS and clock signal are provided by master). It is possible to specify a single device to work in that mode. As we do use DMA for transferring data, the RX channel must be prepared for incoming data. Moreover, in slave mode we just set a

Re: [PATCH v4] USB: serial: ftdi_sio: implement GPIO support for FT-X devices

2018-09-18 Thread Karoly Pados
>> + goto out_free; >> + >> + /* Chip-type guessing logic based on libftdi. */ >> + priv->gc.ngpio = 4; /* FT230X, FT231X */ >> + if (le16_to_cpu(serial->dev->descriptor.bcdDevice) != 0x1000) >> + priv->gc.ngpio = 1; /* FT234XD */ > > As I mentioned in my last mail: I've asked FTDI about this,

[PATCH 2/3] ARM: dspi: Provide per DSPI instance of the MCR register (SLAVE mode)

2018-09-18 Thread Lukasz Majewski
The vf610 Vybryd can work in two DSPI modes - namely master and slave. Already we do support master mode. This commit serves as a prerequisite to add support for slave mode. For slave mode we do need to preserve the MCR register value to change its "mode" bit (31) according to the supported state.

[PATCH 1/3] dt-bindings: spi: Provide bindings for fsl dspi working in slave mode

2018-09-18 Thread Lukasz Majewski
This commit provides the description of new property: "fsl,spi-slave-mode" which enables support for DSPI driver working in slave mode. As the new compatible shall be used with SPI bus equipped with master device a new "spidev" based node has been introduced to avoid confusion. Signed-off-by:

[PATCH 0/3] ARM: dspi: Provide slave mode support for Vybryd vf610

2018-09-18 Thread Lukasz Majewski
This patch series provides support for DSPI slave mode operation. It tries to maximally reuse current DMA driver (including its limitations). For testing the spidev_test program has been used. Test script for this patch can be found here:

[PATCH v3 06/20] tpm: move tpm1_pcr_extend to tpm1-cmd.c

2018-09-18 Thread Tomas Winkler
Move tpm1_pcr_extend to tpm1-cmd.c and remove unused pcrextend_header structure. Fixes warning: drivers/char/tpm/tpm-interface.c:609:38: warning: ‘pcrextend_header’ defined but not used [-Wunused-const-variable=] static const struct tpm_input_header pcrextend_header = {

[PATCH v3 11/20] tpm: factor out tpm_startup function

2018-09-18 Thread Tomas Winkler
tpm manual startup is used only from within tpm1 or tpm2 code, hence remove tpm_startup function from tpm-interface.c and add two static functions implementations tpm1_startup and tpm2_startup into to tpm1-cmd.c and tpm2-cmd.c respectively. Signed-off-by: Tomas Winkler --- V2-V3: Rebase

[PATCH v3 08/20] tpm: factor out tpm1_get_random into tpm1-cmd.c

2018-09-18 Thread Tomas Winkler
Factor out get random implementation from tpm-interface.c into tpm1_get_random function in tpm1-cmd.c. No functional changes. Signed-off-by: Tomas Winkler --- V2-V3: Rebase drivers/char/tpm/tpm-interface.c | 58 +--- drivers/char/tpm/tpm.h | 1 +

[PATCH v3 13/20] tpm: add tpm_auto_startup into tpm-interface

2018-09-18 Thread Tomas Winkler
Add wrapper tpm_auto_startup() to tpm-interface.c instead of open coded decision between tpm 1.2 and tpm 2.0 in tpm-chip.c Signed-off-by: Tomas Winkler --- V3: new in the series drivers/char/tpm/tpm-chip.c | 11 +++ drivers/char/tpm/tpm-interface.c | 15 +++

[PATCH v3 12/20] tpm: move pcr extend code to tpm2-cmd.c

2018-09-18 Thread Tomas Winkler
Add tpm2_pcr_extend() function to tpm2-cmd.c with signature required by tpm-interface.c. It wraps the original open code implementation. The original original tpm2_pcr_extend() function is renamed and made static, called only from new tpm2_pcr_extend() Signed-off-by: Tomas Winkler --- V3: fix

[PATCH v3 10/20] tpm: factor out tpm1 pm suspend flow into tpm1-cmd.c

2018-09-18 Thread Tomas Winkler
Factor out tpm1 suspend flow from tpm-interface.c into a new function tpm1_pm_suspend in tpm1-cmd.c Signed-off-by: Tomas Winkler --- V2-V3: Rebase drivers/char/tpm/tpm-interface.c | 55 drivers/char/tpm/tpm.h | 1 + drivers/char/tpm/tpm1-cmd.c

[PATCH v3 07/20] tpm: move tpm_getcap to tpm1-cmd.c

2018-09-18 Thread Tomas Winkler
1. Move tpm_getcap to tpm1-cmd. Rename the function to tpm1_getcap. 2. Remove unused tpm_getcap_header with unused constant as this functionality is already implemented using tpm_buf construct. Fixes warning: drivers/char/tpm/tpm-interface.c:452:38: warning: ‘tpm_getcap_header’ defined but not

Re: [PATCH RESEND 3/6] arm64: add sysfs vulnerability show for spectre v1

2018-09-18 Thread Robert Richter
On 18.09.18 09:38:05, Will Deacon wrote: > On Mon, Sep 17, 2018 at 07:22:07PM +0200, Robert Richter wrote: > > On 27.08.18 16:33:07, Mian Yousaf Kaukab wrote: > > > Hard-coded since patches are merged and there are no configuration > > > options. > > > > Could you add a list of upstream patches to

Re: [PATCH] tty/sysrq: Make local variable 'killer' in sysrq_handle_crash() global

2018-09-18 Thread Jiri Slaby
On 09/17/2018, 11:33 PM, Matthias Kaehlcke wrote: > sysrq_handle_crash() dereferences a NULL pointer on purpose to force > an exception, the local variable 'killer' is assigned to NULL and > dereferenced later. Clang detects the NULL pointer dereference at compile > time and emits a BRK

[PATCH 07/19] vmw_balloon: treat all refused pages equally

2018-09-18 Thread Nadav Amit
Currently, when the hypervisor rejects a page during lock operation, the VM treats pages differently according to the error-code: in certain cases the page is immediately freed, and in others it is put on a rejection list and only freed later. The behavior does not make too much sense. If the

[PATCH 06/19] vmw_balloon: change batch/single lock abstractions

2018-09-18 Thread Nadav Amit
The current abstractions for batch vs single operations seem suboptimal and complicate the implementation of additional features (OOM, compaction). The immediate problem of the current abstractions is that they cause differences in how operations are handled when batching is on or off. For

  1   2   3   4   5   6   7   8   9   10   >