Re: [PATCH v2] kobject: to use pr_warn replace KERN_WARNING

2018-11-05 Thread Joe Perches
On Tue, 2018-11-06 at 08:49 +0100, Rafael J. Wysocki wrote: > On Tue, Nov 6, 2018 at 3:42 AM Bo YU wrote: > > Fix warning form checkpatch, use pr_warn replace KERN_WARNING > > > > Signed-off-by: Bo YU > > First off, IMO, you should not change the existing code just in order > to make

Re: [PATCH v2] kobject: to use pr_warn replace KERN_WARNING

2018-11-05 Thread Joe Perches
On Tue, 2018-11-06 at 08:49 +0100, Rafael J. Wysocki wrote: > On Tue, Nov 6, 2018 at 3:42 AM Bo YU wrote: > > Fix warning form checkpatch, use pr_warn replace KERN_WARNING > > > > Signed-off-by: Bo YU > > First off, IMO, you should not change the existing code just in order > to make

Re: [PATCH] driver core: fix comments for device_block_probing()

2018-11-05 Thread Rafael J. Wysocki
On Tue, Nov 6, 2018 at 8:41 AM Randy Dunlap wrote: > > From: Randy Dunlap > > Correct function name and spelling/typo for device_block_probing() > in drivers/base/dd.c. > > Signed-off-by: Randy Dunlap > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" Reviewed-by: Rafael J. Wysocki > --- >

Re: [PATCH] driver core: fix comments for device_block_probing()

2018-11-05 Thread Rafael J. Wysocki
On Tue, Nov 6, 2018 at 8:41 AM Randy Dunlap wrote: > > From: Randy Dunlap > > Correct function name and spelling/typo for device_block_probing() > in drivers/base/dd.c. > > Signed-off-by: Randy Dunlap > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" Reviewed-by: Rafael J. Wysocki > --- >

Re: [PATCH v2] kobject: to use pr_warn replace KERN_WARNING

2018-11-05 Thread Rafael J. Wysocki
On Tue, Nov 6, 2018 at 3:42 AM Bo YU wrote: > > Fix warning form checkpatch, use pr_warn replace KERN_WARNING > > Signed-off-by: Bo YU First off, IMO, you should not change the existing code just in order to make checkpatch happy about it. That alone is not a good enough reason for modifying

Re: [PATCH v2] kobject: to use pr_warn replace KERN_WARNING

2018-11-05 Thread Rafael J. Wysocki
On Tue, Nov 6, 2018 at 3:42 AM Bo YU wrote: > > Fix warning form checkpatch, use pr_warn replace KERN_WARNING > > Signed-off-by: Bo YU First off, IMO, you should not change the existing code just in order to make checkpatch happy about it. That alone is not a good enough reason for modifying

Re: [PATCH] z3fold: fix wrong handling of headless pages

2018-11-05 Thread Vitaly Wool
Hi Jongseok, Den fre 6 juli 2018 kl 07:11 skrev Jongseok Kim : > > During the processing of headless pages in z3fold_reclaim_page(), > there was a problem that the zhdr pointed to another page > or a page was already released in z3fold_free(). So, the wrong page > is encoded in headless, or

Re: [PATCH] z3fold: fix wrong handling of headless pages

2018-11-05 Thread Vitaly Wool
Hi Jongseok, Den fre 6 juli 2018 kl 07:11 skrev Jongseok Kim : > > During the processing of headless pages in z3fold_reclaim_page(), > there was a problem that the zhdr pointed to another page > or a page was already released in z3fold_free(). So, the wrong page > is encoded in headless, or

Re: [Patch v4 17/18] x86/speculation: Update SPEC_CTRL MSRs of remote CPUs

2018-11-05 Thread Thomas Gleixner
Tim, On Mon, 5 Nov 2018, Tim Chen wrote: > > Aside of the condition being pointless in that case, that issues an IPI > > whether the task is running or not. So this allows a task to issue tons of > > async IPIs disturbing others by toggling the control. > > I'm not crazy about sending IPIs too.

Re: [Patch v4 17/18] x86/speculation: Update SPEC_CTRL MSRs of remote CPUs

2018-11-05 Thread Thomas Gleixner
Tim, On Mon, 5 Nov 2018, Tim Chen wrote: > > Aside of the condition being pointless in that case, that issues an IPI > > whether the task is running or not. So this allows a task to issue tons of > > async IPIs disturbing others by toggling the control. > > I'm not crazy about sending IPIs too.

[PATCH v2] mm: Create the new vm_fault_t type

2018-11-05 Thread Souptick Joarder
Page fault handlers are supposed to return VM_FAULT codes, but some drivers/file systems mistakenly return error numbers. Now that all drivers/file systems have been converted to use the vm_fault_t return type, change the type definition to no longer be compatible with 'int'. By making it an

[PATCH v2] mm: Create the new vm_fault_t type

2018-11-05 Thread Souptick Joarder
Page fault handlers are supposed to return VM_FAULT codes, but some drivers/file systems mistakenly return error numbers. Now that all drivers/file systems have been converted to use the vm_fault_t return type, change the type definition to no longer be compatible with 'int'. By making it an

[PATCH] MAINTAINERS: add maintainer for C-SKY drivers

2018-11-05 Thread Guo Ren
There are two intc drivers and two clocksource drivers, also include related dt-bindings' documentations. Signed-off-by: Guo Ren --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f485597..fb7286a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH] MAINTAINERS: add maintainer for C-SKY drivers

2018-11-05 Thread Guo Ren
There are two intc drivers and two clocksource drivers, also include related dt-bindings' documentations. Signed-off-by: Guo Ren --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f485597..fb7286a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v3] staging: olpc_dcon: olpc_dcon_xo_1.c: Switch to the gpio descriptor interface

2018-11-05 Thread Nishad Kamdar
Use the gpiod interface instead of the deprecated old non-descriptor interface in olpc_dcon_xo_1.c. --- Changes in v3: - Resolve a few compilation errors. Changes in v2: - Resolve a few compilation errors. - Add a level of indirection to read and write gpios. Signed-off-by: Nishad Kamdar ---

[PATCH v3] staging: olpc_dcon: olpc_dcon_xo_1.c: Switch to the gpio descriptor interface

2018-11-05 Thread Nishad Kamdar
Use the gpiod interface instead of the deprecated old non-descriptor interface in olpc_dcon_xo_1.c. --- Changes in v3: - Resolve a few compilation errors. Changes in v2: - Resolve a few compilation errors. - Add a level of indirection to read and write gpios. Signed-off-by: Nishad Kamdar ---

[PATCH] driver core: fix comments for device_block_probing()

2018-11-05 Thread Randy Dunlap
From: Randy Dunlap Correct function name and spelling/typo for device_block_probing() in drivers/base/dd.c. Signed-off-by: Randy Dunlap Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" --- drivers/base/dd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---

[PATCH] driver core: fix comments for device_block_probing()

2018-11-05 Thread Randy Dunlap
From: Randy Dunlap Correct function name and spelling/typo for device_block_probing() in drivers/base/dd.c. Signed-off-by: Randy Dunlap Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" --- drivers/base/dd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---

Re: [PATCH AUTOSEL 4.19 118/146] MD: fix invalid stored role for a disk

2018-11-05 Thread Jack Wang
Sasha Levin 于2018年11月1日周四 上午12:45写道: > > From: Shaohua Li > > [ Upstream commit d595567dc4f0c1d90685ec1e2e296e2cad2643ac ] > > If we change the number of array's device after device is removed from array, > then add the device back to array, we can see that device is added as active > role

Re: [PATCH AUTOSEL 4.19 118/146] MD: fix invalid stored role for a disk

2018-11-05 Thread Jack Wang
Sasha Levin 于2018年11月1日周四 上午12:45写道: > > From: Shaohua Li > > [ Upstream commit d595567dc4f0c1d90685ec1e2e296e2cad2643ac ] > > If we change the number of array's device after device is removed from array, > then add the device back to array, we can see that device is added as active > role

Re: [PATCH v2 00/17] thermal: enable+check sensor after its setup is finished

2018-11-05 Thread Zhang Rui
Hi, Bartlomiej, On 一, 2018-11-05 at 17:35 +0100, Bartlomiej Zolnierkiewicz wrote: > On 11/05/2018 04:04 AM, Zhang Rui wrote: > > > > Hi, Bartlomiej, > Hi Rui, > > > > > Interesting, I'm about to bring this issue to Linux Plumber > > Conference > > this year for discussion, and I'm also

Re: [PATCH v2 00/17] thermal: enable+check sensor after its setup is finished

2018-11-05 Thread Zhang Rui
Hi, Bartlomiej, On 一, 2018-11-05 at 17:35 +0100, Bartlomiej Zolnierkiewicz wrote: > On 11/05/2018 04:04 AM, Zhang Rui wrote: > > > > Hi, Bartlomiej, > Hi Rui, > > > > > Interesting, I'm about to bring this issue to Linux Plumber > > Conference > > this year for discussion, and I'm also

Re: BUG: aio/direct-io data corruption in 4.7

2018-11-05 Thread Jack Wang
Gregory Shapiro 于2018年11月5日周一 下午4:19写道: > > Hello, my name is Gregory Shapiro and I am a newbie on this list. > I recently encountered data corruption as I got a kernel to > acknowledge write ("io_getevents" system call with a correct number of > bytes) but undergoing write to disk failed. >

Re: BUG: aio/direct-io data corruption in 4.7

2018-11-05 Thread Jack Wang
Gregory Shapiro 于2018年11月5日周一 下午4:19写道: > > Hello, my name is Gregory Shapiro and I am a newbie on this list. > I recently encountered data corruption as I got a kernel to > acknowledge write ("io_getevents" system call with a correct number of > bytes) but undergoing write to disk failed. >

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

2018-11-05 Thread Uwe Kleine-König
Hi Linus, On Tue, Nov 06, 2018 at 12:15:02PM +1100, Stephen Rothwell wrote: > After merging the gpio tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > drivers/gpio/gpiolib.c:1514:12: warning: 'devm_gpio_chip_match' defined but > not used [-Wunused-function] >

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

2018-11-05 Thread Uwe Kleine-König
Hi Linus, On Tue, Nov 06, 2018 at 12:15:02PM +1100, Stephen Rothwell wrote: > After merging the gpio tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > drivers/gpio/gpiolib.c:1514:12: warning: 'devm_gpio_chip_match' defined but > not used [-Wunused-function] >

[PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-05 Thread Zhaoyang Huang
From: Zhaoyang Huang In some cases, the instruction of "bl foo1" will be the last one of the foo2[1], which will cause the lr be the first instruction of the adjacent foo3[2]. Hence, the backtrace will show the weird result as bellow[3]. The patch will fix it by miner 4 of the lr when

[PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-05 Thread Zhaoyang Huang
From: Zhaoyang Huang In some cases, the instruction of "bl foo1" will be the last one of the foo2[1], which will cause the lr be the first instruction of the adjacent foo3[2]. Hence, the backtrace will show the weird result as bellow[3]. The patch will fix it by miner 4 of the lr when

[PATCH v2 2/2] nvme: add quirk to not call disable function when suspending

2018-11-05 Thread AceLan Kao
Call nvme_dev_disable() function leads to the power consumption goes up to 2.2 Watt during suspend-to-idle, and from SK hynix FE, they suggest us to use its own APST feature to do the power management during s2idle. After D3 is diabled and nvme_dev_disable() is not called while suspending, the

[PATCH v2 2/2] nvme: add quirk to not call disable function when suspending

2018-11-05 Thread AceLan Kao
Call nvme_dev_disable() function leads to the power consumption goes up to 2.2 Watt during suspend-to-idle, and from SK hynix FE, they suggest us to use its own APST feature to do the power management during s2idle. After D3 is diabled and nvme_dev_disable() is not called while suspending, the

[PATCH v2 1/2] pci: prevent sk hynix nvme from entering D3

2018-11-05 Thread AceLan Kao
It leads to the power consumption raises to 2.2W during s2idle, while it consumes less than 1W during long idle if put SK hynix nvme to D3 and then enter s2idle. >From SK hynix FE, MS Windows doesn't put nvme to D3, and uses its own APST feature to do the power management. To leverage its APST

[PATCH v2 1/2] pci: prevent sk hynix nvme from entering D3

2018-11-05 Thread AceLan Kao
It leads to the power consumption raises to 2.2W during s2idle, while it consumes less than 1W during long idle if put SK hynix nvme to D3 and then enter s2idle. >From SK hynix FE, MS Windows doesn't put nvme to D3, and uses its own APST feature to do the power management. To leverage its APST

Re: [PATCH 2/2] nvme: add quirk to not call disable function when suspending

2018-11-05 Thread Christoph Hellwig
On Tue, Nov 06, 2018 at 10:04:02AM +0800, AceLan Kao wrote: > Call nvme_dev_disable() function leads to the power consumption goes > up to 2.2 Watt during suspend-to-idle, and from SK hynix FE, they > suggest us to use its own APST feature to do the power management during > s2idle. > After D3 is

Re: [PATCH 2/2] nvme: add quirk to not call disable function when suspending

2018-11-05 Thread Christoph Hellwig
On Tue, Nov 06, 2018 at 10:04:02AM +0800, AceLan Kao wrote: > Call nvme_dev_disable() function leads to the power consumption goes > up to 2.2 Watt during suspend-to-idle, and from SK hynix FE, they > suggest us to use its own APST feature to do the power management during > s2idle. > After D3 is

Re: [PATCH 1/2] pci: prevent sk hynix nvme from entering D3

2018-11-05 Thread Christoph Hellwig
On Tue, Nov 06, 2018 at 10:04:01AM +0800, AceLan Kao wrote: > It leads to the power consumption raises to 2.2W during s2idle, while > it consumes less than 1W during long idle if put SK hynix nvme to D3 > and then enter s2idle. > >From SK hynix FE, MS Windows doesn't put nvme to D3, and uses its

Re: [PATCH 1/2] pci: prevent sk hynix nvme from entering D3

2018-11-05 Thread Christoph Hellwig
On Tue, Nov 06, 2018 at 10:04:01AM +0800, AceLan Kao wrote: > It leads to the power consumption raises to 2.2W during s2idle, while > it consumes less than 1W during long idle if put SK hynix nvme to D3 > and then enter s2idle. > >From SK hynix FE, MS Windows doesn't put nvme to D3, and uses its

Re: [RFC 0/2] RISC-V: A proposal to add vendor-specific code

2018-11-05 Thread Christoph Hellwig
On Mon, Nov 05, 2018 at 02:51:33PM +0100, Arnd Bergmann wrote: > With the stricter policy you suggest, we'd loose the ability to support > some extensions that might be common: > > - an extension for user space that adds new registers that must be > saved and restored on a task switch, e.g.

Re: [RFC 0/2] RISC-V: A proposal to add vendor-specific code

2018-11-05 Thread Christoph Hellwig
On Mon, Nov 05, 2018 at 02:51:33PM +0100, Arnd Bergmann wrote: > With the stricter policy you suggest, we'd loose the ability to support > some extensions that might be common: > > - an extension for user space that adds new registers that must be > saved and restored on a task switch, e.g.

Re: [RFC 0/2] RISC-V: A proposal to add vendor-specific code

2018-11-05 Thread Christoph Hellwig
On Mon, Nov 05, 2018 at 09:39:29PM +0200, Nick Kossifidis wrote: > a) By directly modifying your custom CSRs, it means that we will need > compiler support in order to compile a kernel with your code in it. This > will break CI systems and will introduce various issues on testing and > reviewing

Re: [RFC 0/2] RISC-V: A proposal to add vendor-specific code

2018-11-05 Thread Christoph Hellwig
On Mon, Nov 05, 2018 at 09:39:29PM +0200, Nick Kossifidis wrote: > a) By directly modifying your custom CSRs, it means that we will need > compiler support in order to compile a kernel with your code in it. This > will break CI systems and will introduce various issues on testing and > reviewing

Re: [PATCH v10 5/6] arm64: zynqmp: Add DDRC node

2018-11-05 Thread Michal Simek
On 05. 11. 18 21:43, Borislav Petkov wrote: > On Mon, Nov 05, 2018 at 12:38:05PM -0800, Olof Johansson wrote: >> Yeah, that's the way we've been trying to do for various subsystems >> and it's been working pretty well. Of course, if there's need to >> coordinate more closely for something in the

RE: [PATCH 5/6] pci: layerscape: Add the EP mode support.

2018-11-05 Thread Xiaowei Bao
Hi Kishon, -Original Message- From: Kishon Vijay Abraham I Sent: 2018年11月6日 14:07 To: Xiaowei Bao ; bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo Li ; lorenzo.pieral...@arm.com; a...@arndb.de; gre...@linuxfoundation.org; M.h. Lian ; Mingkai

Re: [PATCH v10 5/6] arm64: zynqmp: Add DDRC node

2018-11-05 Thread Michal Simek
On 05. 11. 18 21:43, Borislav Petkov wrote: > On Mon, Nov 05, 2018 at 12:38:05PM -0800, Olof Johansson wrote: >> Yeah, that's the way we've been trying to do for various subsystems >> and it's been working pretty well. Of course, if there's need to >> coordinate more closely for something in the

RE: [PATCH 5/6] pci: layerscape: Add the EP mode support.

2018-11-05 Thread Xiaowei Bao
Hi Kishon, -Original Message- From: Kishon Vijay Abraham I Sent: 2018年11月6日 14:07 To: Xiaowei Bao ; bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo Li ; lorenzo.pieral...@arm.com; a...@arndb.de; gre...@linuxfoundation.org; M.h. Lian ; Mingkai

[PATCH v1 02/11] clk: mediatek: add new member to mtk_pll_data

2018-11-05 Thread Weiyi Lu
From: Owen Chen 1. pcwibits: The integer bits of pcw for plls is extend to 8 bits, add a variable to indicate this change and backward-compatible. 2. fmin: The pll freqency lower-bound is vary from 1GMhz to 1.5Ghz, add a variable to indicate platform-dependent. Signed-off-by: Owen Chen

[PATCH v1 03/11] clk: mediatek: Disable tuner_en before change PLL rate

2018-11-05 Thread Weiyi Lu
From: Owen Chen PLLs with tuner_en bit, such as APLL1, need to disable tuner_en before apply new frequency settings, or the new frequency settings (pcw) will not be applied. The tuner_en bit will be disabled during changing PLL rate and be restored after new settings applied. Signed-off-by:

[PATCH v1 02/11] clk: mediatek: add new member to mtk_pll_data

2018-11-05 Thread Weiyi Lu
From: Owen Chen 1. pcwibits: The integer bits of pcw for plls is extend to 8 bits, add a variable to indicate this change and backward-compatible. 2. fmin: The pll freqency lower-bound is vary from 1GMhz to 1.5Ghz, add a variable to indicate platform-dependent. Signed-off-by: Owen Chen

[PATCH v1 03/11] clk: mediatek: Disable tuner_en before change PLL rate

2018-11-05 Thread Weiyi Lu
From: Owen Chen PLLs with tuner_en bit, such as APLL1, need to disable tuner_en before apply new frequency settings, or the new frequency settings (pcw) will not be applied. The tuner_en bit will be disabled during changing PLL rate and be restored after new settings applied. Signed-off-by:

[PATCH v1 07/11] clk: mediatek: Add flags support for mtk_gate data

2018-11-05 Thread Weiyi Lu
On some Mediatek platforms, there are critical clocks of clock gate type. To register clock gate with flags CLK_IS_CRITICAL, we need to add the flags field in mtk_gate data and register APIs. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/clk-gate.c | 5 +++-- drivers/clk/mediatek/clk-gate.h

[PATCH v1 07/11] clk: mediatek: Add flags support for mtk_gate data

2018-11-05 Thread Weiyi Lu
On some Mediatek platforms, there are critical clocks of clock gate type. To register clock gate with flags CLK_IS_CRITICAL, we need to add the flags field in mtk_gate data and register APIs. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/clk-gate.c | 5 +++-- drivers/clk/mediatek/clk-gate.h

[PATCH v1 01/11] clk: mediatek: add new clkmux register API

2018-11-05 Thread Weiyi Lu
From: Owen Chen On both MT8183 & MT6765, there add "set/clr" register for each clkmux setting, and one update register to trigger value change. It is designed to prevent read-modify-write racing issue. The sw design need to add a new API to handle this hw change with a new mtk_clk_mux/mtk_mux

[PATCH v1 11/11] soc: mediatek: Add MT8183 scpsys support

2018-11-05 Thread Weiyi Lu
Add scpsys driver for MT8183 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 226 ++ 1 file changed, 226 insertions(+) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index 80be2e05e4e0..57b9f04a69de 100644 ---

[PATCH v1 11/11] soc: mediatek: Add MT8183 scpsys support

2018-11-05 Thread Weiyi Lu
Add scpsys driver for MT8183 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 226 ++ 1 file changed, 226 insertions(+) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index 80be2e05e4e0..57b9f04a69de 100644 ---

[PATCH v1 01/11] clk: mediatek: add new clkmux register API

2018-11-05 Thread Weiyi Lu
From: Owen Chen On both MT8183 & MT6765, there add "set/clr" register for each clkmux setting, and one update register to trigger value change. It is designed to prevent read-modify-write racing issue. The sw design need to add a new API to handle this hw change with a new mtk_clk_mux/mtk_mux

[PATCH v1 08/11] clk: mediatek: Add MT8183 clock support

2018-11-05 Thread Weiyi Lu
Add MT8183 clock support, include topckgen, apmixedsys, infracfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 75 ++ drivers/clk/mediatek/Makefile | 12 + drivers/clk/mediatek/clk-mt8183-audio.c| 112 ++

[PATCH v1 08/11] clk: mediatek: Add MT8183 clock support

2018-11-05 Thread Weiyi Lu
Add MT8183 clock support, include topckgen, apmixedsys, infracfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 75 ++ drivers/clk/mediatek/Makefile | 12 + drivers/clk/mediatek/clk-mt8183-audio.c| 112 ++

[PATCH v1 09/11] dt-bindings: soc: fix typo of MT8173 power dt-bindings

2018-11-05 Thread Weiyi Lu
fix incorrect IC name that will affect the MT8183 power dt-bindings Signed-off-by: Weiyi Lu --- include/dt-bindings/power/mt8173-power.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dt-bindings/power/mt8173-power.h b/include/dt-bindings/power/mt8173-power.h

[PATCH v1 06/11] clk: mediatek: Add dt-bindings for MT8183 clocks

2018-11-05 Thread Weiyi Lu
Add MT8183 clock dt-bindings, include topckgen, apmixedsys, infracfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu Reviewed-by: Rob Herring --- include/dt-bindings/clock/mt8183-clk.h | 421 + 1 file changed, 421 insertions(+) create mode 100644

[PATCH v1 05/11] dt-bindings: ARM: Mediatek: Document bindings for MT8183

2018-11-05 Thread Weiyi Lu
This patch adds the binding documentation for apmixedsys, audiosys, camsys, imgsys, infracfg, mcucfg, mfgcfg, mmsys, topckgen, vdecsys, vencsys and ipu for Mediatek MT8183. Signed-off-by: Weiyi Lu Reviewed-by: Rob Herring --- .../arm/mediatek/mediatek,apmixedsys.txt | 1 +

[PATCH v1 00/11] Mediatek MT8183 clock and scpsys support

2018-11-05 Thread Weiyi Lu
This series is based on v4.20-rc1 and most of changes are extracted from series below (clock/scpsys common changes for both MT8183 & MT6765) https://patchwork.kernel.org/patch/10528495/ (clock support of MT8183) https://patchwork.kernel.org/patch/10549891/ The whole series is composed of clock

[PATCH v1 00/11] Mediatek MT8183 clock and scpsys support

2018-11-05 Thread Weiyi Lu
This series is based on v4.20-rc1 and most of changes are extracted from series below (clock/scpsys common changes for both MT8183 & MT6765) https://patchwork.kernel.org/patch/10528495/ (clock support of MT8183) https://patchwork.kernel.org/patch/10549891/ The whole series is composed of clock

[PATCH v1 04/11] soc: mediatek: add new flow for mtcmos power.

2018-11-05 Thread Weiyi Lu
From: Owen Chen Both MT8183 & MT6765 add more bus protect node than previous project, therefore we add two more register for setup bus protect, which reside at INFRA_CFG & SMI_COMMON. With the following change 1. bus protect need not only infracfg but smi_common registers involved to setup.

[PATCH v1 09/11] dt-bindings: soc: fix typo of MT8173 power dt-bindings

2018-11-05 Thread Weiyi Lu
fix incorrect IC name that will affect the MT8183 power dt-bindings Signed-off-by: Weiyi Lu --- include/dt-bindings/power/mt8173-power.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dt-bindings/power/mt8173-power.h b/include/dt-bindings/power/mt8173-power.h

[PATCH v1 06/11] clk: mediatek: Add dt-bindings for MT8183 clocks

2018-11-05 Thread Weiyi Lu
Add MT8183 clock dt-bindings, include topckgen, apmixedsys, infracfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu Reviewed-by: Rob Herring --- include/dt-bindings/clock/mt8183-clk.h | 421 + 1 file changed, 421 insertions(+) create mode 100644

[PATCH v1 05/11] dt-bindings: ARM: Mediatek: Document bindings for MT8183

2018-11-05 Thread Weiyi Lu
This patch adds the binding documentation for apmixedsys, audiosys, camsys, imgsys, infracfg, mcucfg, mfgcfg, mmsys, topckgen, vdecsys, vencsys and ipu for Mediatek MT8183. Signed-off-by: Weiyi Lu Reviewed-by: Rob Herring --- .../arm/mediatek/mediatek,apmixedsys.txt | 1 +

[PATCH v1 00/11] Mediatek MT8183 clock and scpsys support

2018-11-05 Thread Weiyi Lu
This series is based on v4.20-rc1 and most of changes are extracted from series below (clock/scpsys common changes for both MT8183 & MT6765) https://patchwork.kernel.org/patch/10528495/ (clock support of MT8183) https://patchwork.kernel.org/patch/10549891/ The whole series is composed of clock

[PATCH v1 00/11] Mediatek MT8183 clock and scpsys support

2018-11-05 Thread Weiyi Lu
This series is based on v4.20-rc1 and most of changes are extracted from series below (clock/scpsys common changes for both MT8183 & MT6765) https://patchwork.kernel.org/patch/10528495/ (clock support of MT8183) https://patchwork.kernel.org/patch/10549891/ The whole series is composed of clock

[PATCH v1 04/11] soc: mediatek: add new flow for mtcmos power.

2018-11-05 Thread Weiyi Lu
From: Owen Chen Both MT8183 & MT6765 add more bus protect node than previous project, therefore we add two more register for setup bus protect, which reside at INFRA_CFG & SMI_COMMON. With the following change 1. bus protect need not only infracfg but smi_common registers involved to setup.

[PATCH v1 10/11] dt-bindings: soc: Add MT8183 power dt-bindings

2018-11-05 Thread Weiyi Lu
Add power dt-bindings for MT8183. Signed-off-by: Weiyi Lu --- .../bindings/soc/mediatek/scpsys.txt | 14 ++ include/dt-bindings/power/mt8183-power.h | 26 +++ 2 files changed, 40 insertions(+) create mode 100644 include/dt-bindings/power/mt8183-power.h

[PATCH v1 10/11] dt-bindings: soc: Add MT8183 power dt-bindings

2018-11-05 Thread Weiyi Lu
Add power dt-bindings for MT8183. Signed-off-by: Weiyi Lu --- .../bindings/soc/mediatek/scpsys.txt | 14 ++ include/dt-bindings/power/mt8183-power.h | 26 +++ 2 files changed, 40 insertions(+) create mode 100644 include/dt-bindings/power/mt8183-power.h

Re: [PATCH 4.14 069/143] ARM: tegra: Fix ULPI regression on Tegra20

2018-11-05 Thread Sasha Levin
On Mon, Nov 05, 2018 at 02:05:49PM +, Marcel Ziswiler wrote: On Fri, 2018-11-02 at 22:02 -0400, Sasha Levin wrote: On Fri, Nov 02, 2018 at 07:56:57PM +, Sudip Mukherjee wrote: > Hi Greg, > > On Fri, Nov 2, 2018 at 6:53 PM Greg Kroah-Hartman > wrote: > > > > 4.14-stable review patch.

Re: [PATCH 4.14 069/143] ARM: tegra: Fix ULPI regression on Tegra20

2018-11-05 Thread Sasha Levin
On Mon, Nov 05, 2018 at 02:05:49PM +, Marcel Ziswiler wrote: On Fri, 2018-11-02 at 22:02 -0400, Sasha Levin wrote: On Fri, Nov 02, 2018 at 07:56:57PM +, Sudip Mukherjee wrote: > Hi Greg, > > On Fri, Nov 2, 2018 at 6:53 PM Greg Kroah-Hartman > wrote: > > > > 4.14-stable review patch.

Re: [REGRESSION] OCTEON MMC driver failure with v4.19

2018-11-05 Thread Christoph Hellwig
On Tue, Nov 06, 2018 at 12:06:32AM +0200, Aaro Koskinen wrote: > With the below change, the MMC card probe seems to with v4.19. But it > feels a bit hackish, don't you think... Is there some obvious simple > fix that I'm missing? Any comments? Please just use dma_coerce_mask_and_coherent in the

Re: [REGRESSION] OCTEON MMC driver failure with v4.19

2018-11-05 Thread Christoph Hellwig
On Tue, Nov 06, 2018 at 12:06:32AM +0200, Aaro Koskinen wrote: > With the below change, the MMC card probe seems to with v4.19. But it > feels a bit hackish, don't you think... Is there some obvious simple > fix that I'm missing? Any comments? Please just use dma_coerce_mask_and_coherent in the

Re: [PATCH] mm: Create the new vm_fault_t type

2018-11-05 Thread Souptick Joarder
On Tue, Nov 6, 2018 at 11:51 AM Mike Rapoport wrote: > > On Mon, Nov 05, 2018 at 07:23:55PM +0530, Souptick Joarder wrote: > > On Mon, Nov 5, 2018 at 2:43 PM Mike Rapoport wrote: > > > > > > On Mon, Nov 05, 2018 at 11:14:17AM +0530, Souptick Joarder wrote: > > > > Hi Matthew, > > > > > > > > On

Re: [PATCH] mm: Create the new vm_fault_t type

2018-11-05 Thread Souptick Joarder
On Tue, Nov 6, 2018 at 11:51 AM Mike Rapoport wrote: > > On Mon, Nov 05, 2018 at 07:23:55PM +0530, Souptick Joarder wrote: > > On Mon, Nov 5, 2018 at 2:43 PM Mike Rapoport wrote: > > > > > > On Mon, Nov 05, 2018 at 11:14:17AM +0530, Souptick Joarder wrote: > > > > Hi Matthew, > > > > > > > > On

Re: [PATCH] ext4: remove code duplication in free_ind_block()

2018-11-05 Thread Vasily Averin
btw I have few related questions: 1) extend_credit_for_blkdel() can return error but its return code is not checked, neither here nor in all other places. Could somebody clarify, is it normal? 2) there is similar function free_ext_idx(). After internal failures it calls

Re: [PATCH] ext4: remove code duplication in free_ind_block()

2018-11-05 Thread Vasily Averin
btw I have few related questions: 1) extend_credit_for_blkdel() can return error but its return code is not checked, neither here nor in all other places. Could somebody clarify, is it normal? 2) there is similar function free_ext_idx(). After internal failures it calls

Re: [PATCH] mm: Create the new vm_fault_t type

2018-11-05 Thread Mike Rapoport
On Mon, Nov 05, 2018 at 07:23:55PM +0530, Souptick Joarder wrote: > On Mon, Nov 5, 2018 at 2:43 PM Mike Rapoport wrote: > > > > On Mon, Nov 05, 2018 at 11:14:17AM +0530, Souptick Joarder wrote: > > > Hi Matthew, > > > > > > On Sun, Nov 4, 2018 at 2:06 PM Mike Rapoport wrote: > > > > > > > > On

Re: [PATCH] mm: Create the new vm_fault_t type

2018-11-05 Thread Mike Rapoport
On Mon, Nov 05, 2018 at 07:23:55PM +0530, Souptick Joarder wrote: > On Mon, Nov 5, 2018 at 2:43 PM Mike Rapoport wrote: > > > > On Mon, Nov 05, 2018 at 11:14:17AM +0530, Souptick Joarder wrote: > > > Hi Matthew, > > > > > > On Sun, Nov 4, 2018 at 2:06 PM Mike Rapoport wrote: > > > > > > > > On

[PATCH] ext4: remove code duplication in free_ind_block()

2018-11-05 Thread Vasily Averin
free_ind_block(), free_dind_blocks() and free_tind_blocks() are replaced by a single recursive function. Signed-off-by: Vasily Averin --- fs/ext4/migrate.c | 115 +- 1 file changed, 32 insertions(+), 83 deletions(-) diff --git a/fs/ext4/migrate.c

[PATCH] ext4: remove code duplication in free_ind_block()

2018-11-05 Thread Vasily Averin
free_ind_block(), free_dind_blocks() and free_tind_blocks() are replaced by a single recursive function. Signed-off-by: Vasily Averin --- fs/ext4/migrate.c | 115 +- 1 file changed, 32 insertions(+), 83 deletions(-) diff --git a/fs/ext4/migrate.c

Re: [PATCH v3 08/16] tpm: move tpm_validate_commmand() to tpm2-space.c

2018-11-05 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 05:36:03PM -0500, Stefan Berger wrote: > On 11/4/18 8:45 PM, Jarkko Sakkinen wrote: > > Move tpm_validate_command() to tpm2-space.c and make it part of the > > tpm2_prepare_space() flow. Make cc resolution as part of the TPM space > > functionality in order to detach it

[PATCH 3/3] drm/msm: Optimize adreno_show_object()

2018-11-05 Thread Sharat Masetty
When the userspace tries to read the crashstate dump, the read side implementation in the driver currently ascii85 encodes all the binary buffers and it does this each time the read system call is called. A userspace tool like cat typically does a page by page read and the number of read calls

Re: [PATCH v3 08/16] tpm: move tpm_validate_commmand() to tpm2-space.c

2018-11-05 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 05:36:03PM -0500, Stefan Berger wrote: > On 11/4/18 8:45 PM, Jarkko Sakkinen wrote: > > Move tpm_validate_command() to tpm2-space.c and make it part of the > > tpm2_prepare_space() flow. Make cc resolution as part of the TPM space > > functionality in order to detach it

[PATCH 3/3] drm/msm: Optimize adreno_show_object()

2018-11-05 Thread Sharat Masetty
When the userspace tries to read the crashstate dump, the read side implementation in the driver currently ascii85 encodes all the binary buffers and it does this each time the read system call is called. A userspace tool like cat typically does a page by page read and the number of read calls

Re: [PATCH v3 07/16] tpm: access command header through struct in tpm_try_transmit()

2018-11-05 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 05:26:30PM -0500, Stefan Berger wrote: > On 11/4/18 8:45 PM, Jarkko Sakkinen wrote: > > Instead of accessing fields of the command header through offsets to > > the raw buffer, it is a better idea to use the header struct pointer > > that is already used elsewhere in the

Re: [PATCH v3 07/16] tpm: access command header through struct in tpm_try_transmit()

2018-11-05 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 05:26:30PM -0500, Stefan Berger wrote: > On 11/4/18 8:45 PM, Jarkko Sakkinen wrote: > > Instead of accessing fields of the command header through offsets to > > the raw buffer, it is a better idea to use the header struct pointer > > that is already used elsewhere in the

[PATCH v6 2/2] mm/page_alloc: remove software prefetching in __free_pages_core

2018-11-05 Thread Arun KS
They not only increase the code footprint, they actually make things slower rather than faster. Remove them as contemporary hardware doesn't need any hint. Suggested-by: Dan Williams Signed-off-by: Arun KS --- mm/page_alloc.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff

[PATCH v6 2/2] mm/page_alloc: remove software prefetching in __free_pages_core

2018-11-05 Thread Arun KS
They not only increase the code footprint, they actually make things slower rather than faster. Remove them as contemporary hardware doesn't need any hint. Suggested-by: Dan Williams Signed-off-by: Arun KS --- mm/page_alloc.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff

[PATCH v6 1/2] memory_hotplug: Free pages as higher order

2018-11-05 Thread Arun KS
When free pages are done with higher order, time spend on coalescing pages by buddy allocator can be reduced. With section size of 256MB, hot add latency of a single section shows improvement from 50-60 ms to less than 1 ms, hence improving the hot add latency by 60%. Modify external providers of

[PATCH v6 1/2] memory_hotplug: Free pages as higher order

2018-11-05 Thread Arun KS
When free pages are done with higher order, time spend on coalescing pages by buddy allocator can be reduced. With section size of 256MB, hot add latency of a single section shows improvement from 50-60 ms to less than 1 ms, hence improving the hot add latency by 60%. Modify external providers of

Re: [PATCH v3 06/16] tpm: clean up tpm_try_transmit() error handling flow

2018-11-05 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 05:20:33PM -0500, Stefan Berger wrote: > > +out_locality: > > + if (has_locality) > > + tpm_relinquish_locality(chip, flags); > > Safer to also put has_locality = false here ? Not really sure why? /Jarkko

[PATCH v2 2/2] KVM: x86: expose MOVDIR64B CPU feature into VM.

2018-11-05 Thread Liu Jingqi
MOVDIR64B moves 64-bytes as direct-store with 64-bytes write atomicity. Direct store is implemented by using write combining (WC) for writing data directly into memory without caching the data. Availability of the MOVDIR64B instruction is indicated by the presence of the CPUID feature flag

[PATCH v2 0/2] KVM: x86: expose direct stores instructions into VM.

2018-11-05 Thread Liu Jingqi
Direct stores instructions MOVDIRI and MOVDIR64B will be available in Tremont and other future x86 processors, and need to be exposed to guest VM. The release document ref below link: https://software.intel.com/sites/default/files/managed/c5/15/\

Re: [PATCH v3 06/16] tpm: clean up tpm_try_transmit() error handling flow

2018-11-05 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 05:20:33PM -0500, Stefan Berger wrote: > > +out_locality: > > + if (has_locality) > > + tpm_relinquish_locality(chip, flags); > > Safer to also put has_locality = false here ? Not really sure why? /Jarkko

[PATCH v2 2/2] KVM: x86: expose MOVDIR64B CPU feature into VM.

2018-11-05 Thread Liu Jingqi
MOVDIR64B moves 64-bytes as direct-store with 64-bytes write atomicity. Direct store is implemented by using write combining (WC) for writing data directly into memory without caching the data. Availability of the MOVDIR64B instruction is indicated by the presence of the CPUID feature flag

[PATCH v2 0/2] KVM: x86: expose direct stores instructions into VM.

2018-11-05 Thread Liu Jingqi
Direct stores instructions MOVDIRI and MOVDIR64B will be available in Tremont and other future x86 processors, and need to be exposed to guest VM. The release document ref below link: https://software.intel.com/sites/default/files/managed/c5/15/\

[PATCH v2 1/2] KVM: x86: expose MOVDIRI CPU feature into VM.

2018-11-05 Thread Liu Jingqi
MOVDIRI moves doubleword or quadword from register to memory through direct store which is implemented by using write combining (WC) for writing data directly into memory without caching the data. Availability of the MOVDIRI instruction is indicated by the presence of the CPUID feature flag

[PATCH v2 1/2] KVM: x86: expose MOVDIRI CPU feature into VM.

2018-11-05 Thread Liu Jingqi
MOVDIRI moves doubleword or quadword from register to memory through direct store which is implemented by using write combining (WC) for writing data directly into memory without caching the data. Availability of the MOVDIRI instruction is indicated by the presence of the CPUID feature flag

  1   2   3   4   5   6   7   8   9   10   >