Re: [BUG]smt sysfs dir missing on 4.4.148 and 4.14.63

2018-08-20 Thread Jinpu Wang
On Sat, Aug 18, 2018 at 2:50 PM Thomas Gleixner wrote: > > On Fri, 17 Aug 2018, Greg Kroah-Hartman wrote: > > On Fri, Aug 17, 2018 at 02:39:00PM +0200, Jinpu Wang wrote: > > > > > > I found the problem, CONFIG_HOTPLUG_SMT is enable due to CONFIG_SMP, > > > but I did explicitly enable

Re: [PATCH v2] i2c: Remove '-Wno-deprecated-declarations' compiler warning

2018-08-20 Thread Wolfram Sang
On Mon, Aug 20, 2018 at 12:12:47PM +1000, Benjamin Herrenschmidt wrote: > On Sun, 2018-08-19 at 09:46 -0700, Linus Torvalds wrote: > > On Sun, Aug 19, 2018 at 6:51 AM Sedat Dilek wrote: > > > > > > This can be dropped with commit 771c035372a036f83353eef46dbb829780330234 > > > ("deprecate the

[GIT PULL] EDAC fix for 4.19

2018-08-20 Thread Borislav Petkov
Hi Linus, please pull one urgent EDAC fix, details below. Thanks. -- The following changes since commit 190bd6e98afc512fb16d4a471acd488e36141637: EDAC, sb_edac: Add support for systems with segmented PCI buses (2018-07-25 11:17:15 +0200) are available in the Git repository at:

[GIT PULL] EDAC fix for 4.19

2018-08-20 Thread Borislav Petkov
Hi Linus, please pull one urgent EDAC fix, details below. Thanks. -- The following changes since commit 190bd6e98afc512fb16d4a471acd488e36141637: EDAC, sb_edac: Add support for systems with segmented PCI buses (2018-07-25 11:17:15 +0200) are available in the Git repository at:

Re: [Jfs-discussion] [PATCH] jfs: Expand usercopy whitelist for inline inode data

2018-08-20 Thread Christian Kujau
On Fri, 17 Aug 2018, Kees Cook wrote: > On Thu, Aug 16, 2018 at 11:56 PM, Christian Kujau > wrote: > > On Fri, 3 Aug 2018, Kees Cook via Jfs-discussion wrote: > >> Bart Massey reported what turned out to be a usercopy whitelist false > >> positive in JFS when symlink contents exceeded 128 bytes.

Re: [Jfs-discussion] [PATCH] jfs: Expand usercopy whitelist for inline inode data

2018-08-20 Thread Christian Kujau
On Fri, 17 Aug 2018, Kees Cook wrote: > On Thu, Aug 16, 2018 at 11:56 PM, Christian Kujau > wrote: > > On Fri, 3 Aug 2018, Kees Cook via Jfs-discussion wrote: > >> Bart Massey reported what turned out to be a usercopy whitelist false > >> positive in JFS when symlink contents exceeded 128 bytes.

Re: [PATCH 6/7] lib/bitmap.c: fix remaining space computation in bitmap_print_to_pagebuf

2018-08-20 Thread Rasmus Villemoes
On 2018-08-19 14:37, Andy Shevchenko wrote: > On Sat, Aug 18, 2018 at 4:17 PM Rasmus Villemoes > wrote: >> >> int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long >> *maskp, >> int nmaskbits) >> { >> - ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE

Re: [PATCH 6/7] lib/bitmap.c: fix remaining space computation in bitmap_print_to_pagebuf

2018-08-20 Thread Rasmus Villemoes
On 2018-08-19 14:37, Andy Shevchenko wrote: > On Sat, Aug 18, 2018 at 4:17 PM Rasmus Villemoes > wrote: >> >> int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long >> *maskp, >> int nmaskbits) >> { >> - ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE

Re: [PATCH] x86/process: Export start_thread()

2018-08-20 Thread Thomas Gleixner
On Sun, 19 Aug 2018, Andy Lutomirski wrote: > > On Aug 19, 2018, at 4:08 PM, Rian Hunter wrote: > > > > Commit e634d8fc792c ("x86-64: merge the standard and compat > > start_thread() functions") removed exporting for the start_thread() > > function in what seems like a typo. Add it back to > >

Re: [PATCH] x86/process: Export start_thread()

2018-08-20 Thread Thomas Gleixner
On Sun, 19 Aug 2018, Andy Lutomirski wrote: > > On Aug 19, 2018, at 4:08 PM, Rian Hunter wrote: > > > > Commit e634d8fc792c ("x86-64: merge the standard and compat > > start_thread() functions") removed exporting for the start_thread() > > function in what seems like a typo. Add it back to > >

Re: [RFC PATCH 1/6] Revert "PCI: Fix is_added/is_busmaster race condition"

2018-08-20 Thread Lukas Wunner
On Mon, Aug 20, 2018 at 12:10:59PM +1000, Benjamin Herrenschmidt wrote: > I chose to create a new mutex which we should be able to address other > similar races if we find them. The other solutions that I dismissed > were: > > - Using the device_lock. A explained previously, this is tricky, I >

Re: [RFC PATCH 1/6] Revert "PCI: Fix is_added/is_busmaster race condition"

2018-08-20 Thread Lukas Wunner
On Mon, Aug 20, 2018 at 12:10:59PM +1000, Benjamin Herrenschmidt wrote: > I chose to create a new mutex which we should be able to address other > similar races if we find them. The other solutions that I dismissed > were: > > - Using the device_lock. A explained previously, this is tricky, I >

[RESEND v5 5/5] clk: imx: add clock driver for i.MX8MQ CCM

2018-08-20 Thread Abel Vesa
From: Lucas Stach Add driver for the Clock Control Module found on i.MX8MQ. This is largely based on the downstream driver from Anson Huang and Bai Ping at NXP, with only some small adaptions to mainline from me. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa ---

[RESEND v5 5/5] clk: imx: add clock driver for i.MX8MQ CCM

2018-08-20 Thread Abel Vesa
From: Lucas Stach Add driver for the Clock Control Module found on i.MX8MQ. This is largely based on the downstream driver from Anson Huang and Bai Ping at NXP, with only some small adaptions to mainline from me. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa ---

[RESEND v5 3/5] clk: imx: add SCCG PLL type

2018-08-20 Thread Abel Vesa
From: Lucas Stach The SCCG is a new PLL type introduced on i.MX8. Add support for this. The driver currently misses the PLL lock check, as the preliminary documentation mentions lock configurations, but is quiet about where to find the actual lock status signal. Signed-off-by: Lucas Stach

[RESEND v5 1/5] dt-bindings: add binding for i.MX8MQ CCM

2018-08-20 Thread Abel Vesa
From: Lucas Stach This adds the binding for the i.MX8MQ Clock Controller Module. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa Reviewed-by: Rob Herring --- .../devicetree/bindings/clock/imx8mq-clock.txt | 20 + include/dt-bindings/clock/imx8mq-clock.h | 410

[RESEND v5 0/5] Add i.MX8MQ clock driver

2018-08-20 Thread Abel Vesa
Resent this time on the right list (linux-clk instead of linux-gpio). Fourth version can be found here: https://lore.kernel.org/patchwork/cover/974998/ Changes since v4: * Implemented divider ops and used clk-composite as suggested by Sascha Hauer. Changes since v3: * Added a composite

[RESEND v5 4/5] clk: imx: add imx composite clock

2018-08-20 Thread Abel Vesa
Since a lot of clocks on imx8 are formed by a mux, gate, predivider and divider, the idea here is to combine all of those into one more complex clock type, therefore moving the complexity inside the composite clock and outside of the SoC specific clock driver. Signed-off-by: Abel Vesa

[RESEND v5 3/5] clk: imx: add SCCG PLL type

2018-08-20 Thread Abel Vesa
From: Lucas Stach The SCCG is a new PLL type introduced on i.MX8. Add support for this. The driver currently misses the PLL lock check, as the preliminary documentation mentions lock configurations, but is quiet about where to find the actual lock status signal. Signed-off-by: Lucas Stach

[RESEND v5 1/5] dt-bindings: add binding for i.MX8MQ CCM

2018-08-20 Thread Abel Vesa
From: Lucas Stach This adds the binding for the i.MX8MQ Clock Controller Module. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa Reviewed-by: Rob Herring --- .../devicetree/bindings/clock/imx8mq-clock.txt | 20 + include/dt-bindings/clock/imx8mq-clock.h | 410

[RESEND v5 0/5] Add i.MX8MQ clock driver

2018-08-20 Thread Abel Vesa
Resent this time on the right list (linux-clk instead of linux-gpio). Fourth version can be found here: https://lore.kernel.org/patchwork/cover/974998/ Changes since v4: * Implemented divider ops and used clk-composite as suggested by Sascha Hauer. Changes since v3: * Added a composite

[RESEND v5 4/5] clk: imx: add imx composite clock

2018-08-20 Thread Abel Vesa
Since a lot of clocks on imx8 are formed by a mux, gate, predivider and divider, the idea here is to combine all of those into one more complex clock type, therefore moving the complexity inside the composite clock and outside of the SoC specific clock driver. Signed-off-by: Abel Vesa

[RESEND v5 2/5] clk: imx: add fractional PLL output clock

2018-08-20 Thread Abel Vesa
From: Lucas Stach This is a new clock type introduced on i.MX8. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa --- drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-frac-pll.c | 230 + drivers/clk/imx/clk.h | 3 + 3 files

[RESEND v5 2/5] clk: imx: add fractional PLL output clock

2018-08-20 Thread Abel Vesa
From: Lucas Stach This is a new clock type introduced on i.MX8. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa --- drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-frac-pll.c | 230 + drivers/clk/imx/clk.h | 3 + 3 files

[PATCH] fanotify: use killable wait for waiting response for permission events

2018-08-20 Thread Konstantin Khlebnikov
Waiting in uninterruptible state for response from userspace easily produces deadlocks and hordes of unkillable tasks. This patch makes this wait killable. At receiving fatal signal task will remove queued event and die. If event is already handled then response will be received as usual.

[PATCH] fanotify: use killable wait for waiting response for permission events

2018-08-20 Thread Konstantin Khlebnikov
Waiting in uninterruptible state for response from userspace easily produces deadlocks and hordes of unkillable tasks. This patch makes this wait killable. At receiving fatal signal task will remove queued event and die. If event is already handled then response will be received as usual.

Re: [PATCH] scripts/dtc: consolidate include path options in Makefile

2018-08-20 Thread Masahiro Yamada
Hi Rob, 2018-07-04 10:59 GMT+09:00 Masahiro Yamada : > It is tedious to specify extra compiler options for every file. > HOST_EXTRACFLAGS is useful to add options to all files in a > directory. > > -I$(src)/libfdt is needed for all the files in this directory > to include libfdt_env.h etc. from

Re: [PATCH v2 1/3] arm64: implement ftrace with regs

2018-08-20 Thread Ard Biesheuvel
On 17 August 2018 at 12:27, Torsten Duwe wrote: > Check for compiler support of -fpatchable-function-entry and use it > to intercept functions immediately on entry, saving the LR in x9. Could you please add a note that this is safe because IPA register allocation is turned off as well by that

Re: [PATCH] scripts/dtc: consolidate include path options in Makefile

2018-08-20 Thread Masahiro Yamada
Hi Rob, 2018-07-04 10:59 GMT+09:00 Masahiro Yamada : > It is tedious to specify extra compiler options for every file. > HOST_EXTRACFLAGS is useful to add options to all files in a > directory. > > -I$(src)/libfdt is needed for all the files in this directory > to include libfdt_env.h etc. from

Re: [PATCH v2 1/3] arm64: implement ftrace with regs

2018-08-20 Thread Ard Biesheuvel
On 17 August 2018 at 12:27, Torsten Duwe wrote: > Check for compiler support of -fpatchable-function-entry and use it > to intercept functions immediately on entry, saving the LR in x9. Could you please add a note that this is safe because IPA register allocation is turned off as well by that

Re: [RESEND PATCH v10 1/6] arm: arm64: introduce CONFIG_HAVE_MEMBLOCK_PFN_VALID

2018-08-20 Thread Jia He
On 8/17/2018 10:50 PM, Catalin Marinas Wrote: > On Fri, Jul 06, 2018 at 05:01:10PM +0800, Jia He wrote: >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >> index 42c090c..26d75f4 100644 >> --- a/arch/arm64/Kconfig >> +++ b/arch/arm64/Kconfig >> @@ -778,6 +778,10 @@ config

Re: [RESEND PATCH v10 1/6] arm: arm64: introduce CONFIG_HAVE_MEMBLOCK_PFN_VALID

2018-08-20 Thread Jia He
On 8/17/2018 10:50 PM, Catalin Marinas Wrote: > On Fri, Jul 06, 2018 at 05:01:10PM +0800, Jia He wrote: >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >> index 42c090c..26d75f4 100644 >> --- a/arch/arm64/Kconfig >> +++ b/arch/arm64/Kconfig >> @@ -778,6 +778,10 @@ config

Re: [RFC PATCH 1/6] Revert "PCI: Fix is_added/is_busmaster race condition"

2018-08-20 Thread Hari Vyas
On Mon, Aug 20, 2018 at 7:40 AM, Benjamin Herrenschmidt wrote: > On Sat, 2018-08-18 at 21:24 -0500, Bjorn Helgaas wrote: >> On Sat, Aug 18, 2018 at 01:24:51PM +1000, Benjamin Herrenschmidt wrote: >> > On Fri, 2018-08-17 at 10:44 -0500, Bjorn Helgaas wrote: >> > > On Fri, Aug 17, 2018 at

Re: [RFC PATCH 1/6] Revert "PCI: Fix is_added/is_busmaster race condition"

2018-08-20 Thread Hari Vyas
On Mon, Aug 20, 2018 at 7:40 AM, Benjamin Herrenschmidt wrote: > On Sat, 2018-08-18 at 21:24 -0500, Bjorn Helgaas wrote: >> On Sat, Aug 18, 2018 at 01:24:51PM +1000, Benjamin Herrenschmidt wrote: >> > On Fri, 2018-08-17 at 10:44 -0500, Bjorn Helgaas wrote: >> > > On Fri, Aug 17, 2018 at

[PATCH] mtd/ubi: Make sure to read volume record from LEB 0 or LEB 1

2018-08-20 Thread Liu Song
From: fishland Even though we protect on-flash data by CRC checksums, we still don't trust the media. If lnum is not 0 or 1, access exceed array boundary can lead to bad situation. Signed-off-by: Liu Song Reviewed-by: Jiang Biao --- drivers/mtd/ubi/vtbl.c | 4 1 file changed, 4

[PATCH] mtd/ubi: Make sure to read volume record from LEB 0 or LEB 1

2018-08-20 Thread Liu Song
From: fishland Even though we protect on-flash data by CRC checksums, we still don't trust the media. If lnum is not 0 or 1, access exceed array boundary can lead to bad situation. Signed-off-by: Liu Song Reviewed-by: Jiang Biao --- drivers/mtd/ubi/vtbl.c | 4 1 file changed, 4

[PATCH V3 2/3] dt-bindings: input: Add document bindings for DA7280

2018-08-20 Thread Roy Im
from: Roy Im Add device tree binding information for DA7280 haptic driver. Example bindings for DA7280 are added. Signed-off-by: Roy Im --- v3: Fixed subject format. v2: No changes .../devicetree/bindings/input/dlg,da7280.txt | 91 1 file changed, 91

[PATCH V3 2/3] dt-bindings: input: Add document bindings for DA7280

2018-08-20 Thread Roy Im
from: Roy Im Add device tree binding information for DA7280 haptic driver. Example bindings for DA7280 are added. Signed-off-by: Roy Im --- v3: Fixed subject format. v2: No changes .../devicetree/bindings/input/dlg,da7280.txt | 91 1 file changed, 91

[PATCH V3 0/3] da7280: haptic driver submission

2018-08-20 Thread Roy Im
From: Roy Im This patch adds support for the Dialog DA7280 Haptic driver IC. In this patch set the following is provided: [PATCH V2 1/3] MAINTAINERS file update for DA7280 [PATCH V2 2/3] DA7280 DT Binding [PATCH V2 3/3] DA7280 Driver This patch applies against linux-next and v4.18 Thank you,

[PATCH V3 0/3] da7280: haptic driver submission

2018-08-20 Thread Roy Im
From: Roy Im This patch adds support for the Dialog DA7280 Haptic driver IC. In this patch set the following is provided: [PATCH V2 1/3] MAINTAINERS file update for DA7280 [PATCH V2 2/3] DA7280 DT Binding [PATCH V2 3/3] DA7280 Driver This patch applies against linux-next and v4.18 Thank you,

[PATCH V3 3/3] Input: new da7280 haptic driver

2018-08-20 Thread Roy Im
from: Roy Im Adds support for the Dialog DA7280 LRA/ERM Haptic Driver with multiple mode and integrated waveform memory and wideband support. It communicates via an I2C bus to the device. Signed-off-by: Roy Im --- v3: No changes. v2: Fixed kbuild error/warning drivers/input/misc/Kconfig

[PATCH V3 1/3] MAINTAINERS: da7280 updates to the Dialog Semiconductor search terms

2018-08-20 Thread Roy Im
From: Roy Im This patch adds the da7280 bindings doc and driver to the Dialog Semiconductor support list. Signed-off-by: Roy Im --- v3: No changes. v2: No changes. MAINTAINERS |2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 544cac8..720f9fe

[PATCH V3 3/3] Input: new da7280 haptic driver

2018-08-20 Thread Roy Im
from: Roy Im Adds support for the Dialog DA7280 LRA/ERM Haptic Driver with multiple mode and integrated waveform memory and wideband support. It communicates via an I2C bus to the device. Signed-off-by: Roy Im --- v3: No changes. v2: Fixed kbuild error/warning drivers/input/misc/Kconfig

[PATCH V3 1/3] MAINTAINERS: da7280 updates to the Dialog Semiconductor search terms

2018-08-20 Thread Roy Im
From: Roy Im This patch adds the da7280 bindings doc and driver to the Dialog Semiconductor support list. Signed-off-by: Roy Im --- v3: No changes. v2: No changes. MAINTAINERS |2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 544cac8..720f9fe

<    4   5   6   7   8   9