Re: [PATCH] zram: fix null dereference of handle

2017-09-18 Thread Minchan Kim
Hi Sergey, On Tue, Sep 19, 2017 at 02:39:35PM +0900, Sergey Senozhatsky wrote: > On (09/19/17 11:34), Minchan Kim wrote: > [..] > > static void zram_meta_free(struct zram *zram, u64 disksize) > > { > > size_t num_pages = disksize >> PAGE_SHIFT; > > @@ -876,11 +855,18 @@ static int __zram_bve

Re: [PATCH v3 1/3] dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation

2017-09-18 Thread Andrew Jeffery
On Mon, 2017-09-18 at 14:26 -0500, Rob Herring wrote: > On Fri, Sep 08, 2017 at 02:39:17PM +1000, Andrew Jeffery wrote: > > > > Signed-off-by: Andrew Jeffery > > --- > >  .../devicetree/bindings/hwmon/pmbus/max31785.txt   | 158 > > + > > I think this needs to be located by wh

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-18 Thread Byungchul Park
On Tue, Sep 19, 2017 at 08:11:53AM +0200, Mike Galbraith wrote: > https://lkml.org/lkml/2017/9/5/184 Now, I checked the patches above. It looks to be a good approach to me. Thanks, Byungchul > Peter's patches worked for me, but per tglx, additional (non- > grasshopper level) hotplug-fu is requir

Re: [PATCH 4.12 00/52] 4.12.14-stable review

2017-09-18 Thread Greg Kroah-Hartman
On Mon, Sep 18, 2017 at 03:22:36PM +0100, Sudip Mukherjee wrote: > Hi Greg, > > On Mon, Sep 18, 2017 at 11:10:54AM +0200, Greg Kroah-Hartman wrote: > > NOTE: This is going to be the last 4.12.y kernel, after this one, this > > branch is end-of-life, please move to the 4.13.y kernel tree at this >

Re: [PATCH 4.9 00/78] 4.9.51-stable review

2017-09-18 Thread Greg Kroah-Hartman
On Mon, Sep 18, 2017 at 12:28:22PM -0700, Guenter Roeck wrote: > On Mon, Sep 18, 2017 at 11:11:09AM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.51 release. > > There are 78 patches in this series, all will be posted as a response > > to this one. I

Re: [PATCH 4.13 00/52] 4.13.3-stable review

2017-09-18 Thread Greg Kroah-Hartman
On Mon, Sep 18, 2017 at 02:17:49PM -0600, Shuah Khan wrote: > On 09/18/2017 03:09 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.13.3 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

[PATCH] input: touchscreen: ti_am335x_tsc: Fix incorrect step config for 5 wire touchscreen

2017-09-18 Thread Vignesh R
From: Jeff Lance Step config setting for 5 wire touchscreen is incorrect for Y coordinates. It was broken while we moved to DT. If you look close at the offending commit bb76dc09ddfc ("input: ti_am33x_tsc: Order of TSC wires, made configurable"), the change was: - STEPCONFIG_XNP | STEPCONFIG_YPN

Re: [PATCH v2 0/3] arm-smmu: performance optimization

2017-09-18 Thread Leizhen (ThunderTown)
On 2017/9/19 12:31, Nate Watterson wrote: > Hi Leizhen, > > On 9/12/2017 9:00 AM, Zhen Lei wrote: >> v1 -> v2: >> base on (add02cfdc9bc2 "iommu: Introduce Interface for IOMMU TLB Flushing") >> >> Zhen Lei (3): >>iommu/arm-smmu-v3: put off the execution of TLBI* to reduce lock >> conflic

[PATCH v1 4/4] arm: dts: mt7623: add PCIe related nodes

2017-09-18 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts |

[PATCH v1 2/4] arm: dts: mt7623: update pio, usb and crypto nodes

2017-09-18 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 52 ++- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts/mt762

[PATCH v1 0/4] update MT7623 and MT2701 dts

2017-09-18 Thread Ryder Lee
Hi, This series corrects some nodes for both MT7623 and MT2701, adds display and PCIe support for MT7623. changes since v1: - rebase to v4.14. - sort nodes in alphabetical order. Ryder Lee (4): arm: dts: mediatek: update audio node for mt2701 and mt7623 arm: dts: mt7623: update pio, usb and

[PATCH v1 3/4] arm: dts: mt7623: add display related nodes

2017-09-18 Thread Ryder Lee
This patch adds the device nodes for the display function block. Also, we add some missing pin macros in mt7623-pinfunc.h. Signed-off-by: Ryder Lee CC: Linus Walleij Acked-by: Linus Walleij --- arch/arm/boot/dts/mt7623.dtsi | 210 ++ arch/arm/boot/dts/mt

[PATCH v1 1/4] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-09-18 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order [1][2]. Signed-off-by: Ryder Lee CC: Garlic Tseng CC: Erin Lo CC: Sean Wang --- [1]https://patchwork.kernel.org/patch/9901225/ [2]https://lkml.org/lkml/2017/8/18/292 --- --- arch/arm/boot/d

[PATCH v2 2/2] mfd: fsl-imx25: clean up irq settings during removal

2017-09-18 Thread Martin Kaiser
When fsl-imx25-tsadc is compiled as a module, loading, unloading and reloading the module will lead to a crash. Unable to handle kernel paging request at virtual address bf005430 [] (irq_find_matching_fwspec) from [] (of_irq_get+0x58/0x74) [] (of_irq_get) from [] (platform_get_irq+0x48/0xc8)

[PATCH v2 1/2] mfd: fsl-imx25: set irq handler and data in one go

2017-09-18 Thread Martin Kaiser
Replace the two separate calls for setting the irq handler and data with a single irq_set_chained_handler_and_data() call. Signed-off-by: Martin Kaiser --- changes in v2: none drivers/mfd/fsl-imx25-tsadc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/fsl-imx

RE: [PATCH v3] iio: dac: ds4422/ds4424 dac driver

2017-09-18 Thread Ismail Kose
You can find my reply to one of your comments below. > -Original Message- > From: Peter Meerwald-Stadler [mailto:pme...@pmeerw.net] > Sent: Monday, September 18, 2017 9:49 PM > To: Ismail Kose > Cc: ihk...@gmail.com; Jonathan Cameron ; Hartmut > Knaack ; Lars-Peter Clausen ; Rob > Herrin

Re: [PATCH 1/4] iio: light: vl6180: Move range check to integration time setter, cleanup

2017-09-18 Thread Peter Meerwald-Stadler
> This improves code uniformity (range checks for als_gain are also done > in the setter). Also unmangle rounding and calculation of register value. nitpick below > The calculated integration time it_ms is required in the next patch of > the series. > > Signed-off-by: Stefan Brüns > --- > dr

Re: [PATCH 3/4] iio: light: vl6180: Cleanup als_gain lookup, avoid register readback

2017-09-18 Thread Peter Meerwald-Stadler
> Instead of manually iterating the array of allowed gain values, use > find_closest. Storing the current gain setting avoids accessing the > hardware on each query. nitpick below > Signed-off-by: Stefan Brüns > --- > drivers/iio/light/vl6180.c | 85 >

[PATCH] powerpc/sysrq: Fix oops whem ppmu is not registered

2017-09-18 Thread Ravi Bangoria
Kernel crashes if power pmu is not registered and user tries to dump regs with 'echo p > /proc/sysrq-trigger'. Sample log: Unable to handle kernel paging request for data at address 0x0008 Faulting instruction address: 0xc00d52f0 NIP [c00d52f0] perf_event_print_debug+0x1

[RESEND PATCH 0/3] K2G: Add support for PWM ECAP

2017-09-18 Thread Vignesh R
This series adds support for TI ECAP PWM IP present in 66AK2G SoC. Resending based on today's linux-next. Vignesh R (3): ARM: dts: keystone-k2g: Add ECAP PWM DT nodes ARM: dts: keystone-k2g-evm: Enable PWM ECAP0 ARM: configs: keystone: Enable TIECAP PWM driver arch/arm/boot/dts/keystone-

[RESEND PATCH 3/3] ARM: configs: keystone: Enable TIECAP PWM driver

2017-09-18 Thread Vignesh R
Enable PWM_TIECAP driver to support ECAP IP present in 66AK2G SoC. Signed-off-by: Vignesh R --- arch/arm/configs/keystone_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defconfig index f907869e0ddc..f710c192b33a 10

[RESEND PATCH 2/3] ARM: dts: keystone-k2g-evm: Enable PWM ECAP0

2017-09-18 Thread Vignesh R
Enable PWM ECAP0 which will be used for display backlight. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g-evm.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts index f462f1043531..80

[RESEND PATCH 1/3] ARM: dts: keystone-k2g: Add ECAP PWM DT nodes

2017-09-18 Thread Vignesh R
Add DT nodes for PWM ECAP IP present on 66AK2G SoC. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi index 826b286665e6..dace4672b1

Re: [PATCH 0/4] arm64: Add initial Actions Semi S700 and CubieBoard7 support

2017-09-18 Thread Daniel Lezcano
On 19/09/2017 07:08, Andreas Färber wrote: > Hi Daniel, > > Am 18.09.2017 um 23:50 schrieb Daniel Lezcano: >> On 11/09/2017 04:22, Andreas Färber wrote: >>> Cc: devicet...@vger.kernel.org >>> Cc: Daniel Lezcano >>> Cc: Thomas Gleixner >>> >>> Andreas Färber (4): >>> dt-bindings: arm: actions:

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-18 Thread Mike Galbraith
On Tue, 2017-09-19 at 13:37 +0800, Boqun Feng wrote: > On Mon, Sep 18, 2017 at 09:04:56PM -0700, Paul E. McKenney wrote: > > On Tue, Sep 19, 2017 at 11:48:22AM +0900, Byungchul Park wrote: > > > On Mon, Sep 18, 2017 at 07:33:29PM -0700, Paul E. McKenney wrote: > > > > > > Hello Paul and Steven, > >

Re: [PATCH] ASoC: davinci-mcasp: Fix an error handling path in 'davinci_mcasp_probe()'

2017-09-18 Thread Peter Ujfalusi
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 2017-09-16 08:40, Christophe JAILLET wrote: > All error handling paths in this function 'goto err' except this one. > > If one of the 2 previous memory allocation

Re: linux-next: Signed-off-by missing for commits in the staging tree

2017-09-18 Thread Greg KH
On Tue, Sep 19, 2017 at 07:54:55AM +1000, Stephen Rothwell wrote: > Hi Greg, > > Commits > > 688a0206cfb8 ("staging: rtlwifi: fix parenthesis alignment") > 85d309d53f7a ("staging: rtlwifi: use kcalloc instead of multiply") > f216f6cdeb1d ("staging: rtlwifi: remove unused functions") > > ar

Re: [PATCH 4.4 00/31] 4.4.88-stable review

2017-09-18 Thread Stephen Boyd
On 09/13, Kevin Hilman wrote: > Greg Kroah-Hartman writes: > > > On Tue, Sep 12, 2017 at 03:57:50PM -0700, kernelci.org bot wrote: > >> stable-rc/linux-4.4.y boot: 450 boots: 1 failed, 446 passed with 3 offline > >> (v4.4.87-32-gb8c205d85576) > >> > >> Full Boot Summary: > >> https://kernelci.

Re: [PATCH v1 5/5] mmc: Kconfig: Enable CONFIG_MMC_SDHCI_IO_ACCESSORS

2017-09-18 Thread Adrian Hunter
On 19/09/17 07:03, Vijay Viswanath wrote: > > > On 9/14/2017 12:04 PM, Adrian Hunter wrote: >> On 30/08/17 15:51, Vijay Viswanath wrote: >>> Enable CONFIG_MMC_SDHCI_IO_ACCESSORS so that SDHC controller specific >>> register read and write APIs, if registered, can be used. >> >> Missing signed-off

Re: [PATCH] zram: fix null dereference of handle

2017-09-18 Thread Sergey Senozhatsky
On (09/19/17 11:34), Minchan Kim wrote: [..] > static void zram_meta_free(struct zram *zram, u64 disksize) > { > size_t num_pages = disksize >> PAGE_SHIFT; > @@ -876,11 +855,18 @@ static int __zram_bvec_read(struct zram *zram, struct > page *page, u32 index, > zram_slot_unloc

Re: [PATCH v2 1/2] soc: qcom: smem: Rename "uncached" accessors

2017-09-18 Thread Stephen Boyd
On 09/15, Bjorn Andersson wrote: > On Fri 15 Sep 12:19 PDT 2017, Stephen Boyd wrote: > > > On 08/14, Bjorn Andersson wrote: > > > In preparation for adding accessors for "cached" entries rename the > > > "uncached" accessors to. Also rename "first" cached entry to "last", as > > > > s/to/too? or

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-18 Thread Boqun Feng
On Mon, Sep 18, 2017 at 09:04:56PM -0700, Paul E. McKenney wrote: > On Tue, Sep 19, 2017 at 11:48:22AM +0900, Byungchul Park wrote: > > On Mon, Sep 18, 2017 at 07:33:29PM -0700, Paul E. McKenney wrote: > > > > > Hello Paul and Steven, > > > > > So I think this is another false positive, and the r

Re: [PATCH 0/4] arm64: Add initial Actions Semi S700 and CubieBoard7 support

2017-09-18 Thread Daniel Lezcano
On 19/09/2017 07:08, Andreas Färber wrote: > Hi Daniel, > > Am 18.09.2017 um 23:50 schrieb Daniel Lezcano: >> On 11/09/2017 04:22, Andreas Färber wrote: >>> Cc: devicet...@vger.kernel.org >>> Cc: Daniel Lezcano >>> Cc: Thomas Gleixner >>> >>> Andreas Färber (4): >>> dt-bindings: arm: actions:

Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update documentation about integrated PHY

2017-09-18 Thread Corentin Labbe
On Thu, Sep 14, 2017 at 09:19:49PM +0200, Andrew Lunn wrote: > > > Is the MDIO controller "allwinner,sun8i-h3-emac" or "snps,dwmac-mdio"? > > > If the latter, then I think the node is fine, but then the mux should be > > > a child node of it. IOW, the child of an MDIO controller should either >

[PATCH] ALSA: asihpi: fix a potential double-fetch bug when copying puhm

2017-09-18 Thread Meng Xu
The hm->h.size is intended to hold the actual size of the hm struct that is copied from userspace and should always be <= sizeof(*hm). However, after copy_from_user(hm, puhm, hm->h.size), since userspace process has full control over the memory region pointed by puhm, it is possible that the value

[PATCH] hid/uhid: fix a double-fetch bug when copying event from user

2017-09-18 Thread Meng Xu
When in_compat_syscall(), a user could make type != UHID_CREATE when get_user(type, buffer) [first fetch] and later make event->type == UHID_CREATE in copy_from_user(event, buffer, ...) [second fetch]. By doing so, an attacker might circumvent the specific logic to handle the type == UHID_CREATE c

Re: [RFC] sched/fair: Use wake_q length as a hint for wake_wide

2017-09-18 Thread Joel Fernandes
Hi Brendan, On Fri, Aug 11, 2017 at 2:45 AM, Brendan Jackman wrote: > This patch adds a parameter to select_task_rq, sibling_count_hint > allowing the caller, where it has this information, to inform the > sched_class the number of tasks that are being woken up as part of > the same event. > > Th

Re: [PATCH 0/4] arm64: Add initial Actions Semi S700 and CubieBoard7 support

2017-09-18 Thread Andreas Färber
Hi Daniel, Am 18.09.2017 um 23:50 schrieb Daniel Lezcano: > On 11/09/2017 04:22, Andreas Färber wrote: >> Cc: devicet...@vger.kernel.org >> Cc: Daniel Lezcano >> Cc: Thomas Gleixner >> >> Andreas Färber (4): >> dt-bindings: arm: actions: Add S700 and CubieBoard7 >> dt-bindings: timer: Add Ac

[PATCH] perf tests: Remove Intel CQM perf test

2017-09-18 Thread Xiaochen Shen
Intel CQM perf test is obsolete for perf PMU code has been removed in commit c39a0e2c8850 ("x86/perf/cqm: Wipe out perf based cqm"). Signed-off-by: Xiaochen Shen --- tools/perf/arch/x86/include/arch-tests.h | 1 - tools/perf/arch/x86/tests/Build | 1 - tools/perf/arch/x86/tests/arch

Re: [PATCH v3] iio: dac: ds4422/ds4424 dac driver

2017-09-18 Thread Peter Meerwald-Stadler
> This patch provides an iio device driver for DS4422/DS4424 chips that support > two/four channel 7-bit Sink/Source Current DAC. some more minor comments below > Signed-off-by: Ismail Kose > --- > v3: > * Removed iio-map and platform file support > * Removed ds4424.h file >

linux-next: Signed-off-by missing for commit in the net tree

2017-09-18 Thread Stephen Rothwell
Hi all, Commit 129c6cda2de2 ("8139too: revisit napi_complete_done() usage") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell

Re: [PATCH v2 0/3] arm-smmu: performance optimization

2017-09-18 Thread Nate Watterson
Hi Leizhen, On 9/12/2017 9:00 AM, Zhen Lei wrote: v1 -> v2: base on (add02cfdc9bc2 "iommu: Introduce Interface for IOMMU TLB Flushing") Zhen Lei (3): iommu/arm-smmu-v3: put off the execution of TLBI* to reduce lock confliction iommu/arm-smmu-v3: add support for unmap an iova range wi

Re: [BUG] security_release_secctx seems broken

2017-09-18 Thread Casey Schaufler
On 9/18/2017 1:25 PM, Casey Schaufler wrote: > On 9/16/2017 11:18 AM, Konstantin Khlebnikov wrote: >> I've got this kmemleak splat Do you have a convenient test case? I'd like to verify my patch with your case if it is reasonable to do so. >> >> unreferenced object 0x880f687ff6a8 (size 32):

linux-next: Tree for Sep 19

2017-09-18 Thread Stephen Rothwell
Hi all, Changes since 20170918: Linus' tree still had its build failure for which I reverted a commit. The drm-intel tree gained conflicts against Linus' tree. Non-merge commits (relative to Linus' tree): 945 802 files changed, 40740 insertions(+),

Re: RFC: Audit Kernel Container IDs

2017-09-18 Thread Richard Guy Briggs
On 2017-09-18 21:45, Eric W. Biederman wrote: > Richard Guy Briggs writes: > > > On 2017-09-14 12:33, Eric W. Biederman wrote: > >> Richard Guy Briggs writes: > >> > >> > The trigger is a pseudo filesystem (proc, since PID tree already exists) > >> > write of a u64 representing the container ID

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-18 Thread Paul E. McKenney
On Tue, Sep 19, 2017 at 11:48:22AM +0900, Byungchul Park wrote: > On Mon, Sep 18, 2017 at 07:33:29PM -0700, Paul E. McKenney wrote: > > > > Hello Paul and Steven, > > > > > > > > This is saying: > > > > > > > > Thread A > > > > > > > > takedown_cpu() > > > >irq_lock_sparse() > > > >

Re: [PATCH v1 5/5] mmc: Kconfig: Enable CONFIG_MMC_SDHCI_IO_ACCESSORS

2017-09-18 Thread Vijay Viswanath
On 9/14/2017 12:04 PM, Adrian Hunter wrote: On 30/08/17 15:51, Vijay Viswanath wrote: Enable CONFIG_MMC_SDHCI_IO_ACCESSORS so that SDHC controller specific register read and write APIs, if registered, can be used. Missing signed-off Why don't you put this patch earlier in the patch set and

[PATCH v4 2/9] clk: mediatek: Add dt-bindings for MT2712 clocks

2017-09-18 Thread Weiyi Lu
Add MT2712 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- include/dt-bindings/clock/mt2712-clk.h | 427 + 1 file changed, 427 insertions(+) create mode 100644 include/dt-bindings/clock/

[PATCH v4 8/9] soc: mediatek: add MT2712 scpsys support

2017-09-18 Thread Weiyi Lu
add scpsys driver for MT2712 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 112 -- 1 file changed, 106 insertions(+), 6 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index 28c6e6a..c8abd06 1

[PATCH v4 1/9] dt-bindings: ARM: Mediatek: Document bindings for MT2712

2017-09-18 Thread Weiyi Lu
This patch adds the binding documentation for apmixedsys, bdpsys, imgsys, imgsys, infracfg, mcucfg, mfgcfg, mmsys, pericfg, topckgen, vdecsys and vencsys for Mediatek MT2712. Acked-by: Rob Herring Signed-off-by: Weiyi Lu --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 + .../binding

[PATCH v4 0/9] Mediatek MT2712 clock and scpsys support

2017-09-18 Thread Weiyi Lu
This series is based on v4.14-rc1 and composed of clock control (PATCH 1-4) and scpsys control (PATCH 5-9) changes since v3: - Rebase to v4.14-rc1. changes since v2: - ensure the clocks used by clocksource driver are registered before clocksource init() by using CLK_OF_DECLARE() - correct the f

[PATCH v4 9/9] arm: dts: Add power controller device node of MT2712

2017-09-18 Thread Weiyi Lu
add power controller node for MT2712 Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index d2ee3cd..fa87f92 100644 --

[PATCH v4 7/9] soc: mediatek: add dependent clock jpgdec/audio for scpsys

2017-09-18 Thread Weiyi Lu
There are dependent clock jpgdec/audio in scpsys on MT2712, and will exist three dependent clocks on MT2712 VDEC. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/so

[PATCH v4 4/9] arm: dts: mt2712: Add clock controller device nodes

2017-09-18 Thread Weiyi Lu
Add clock controller nodes for MT2712, include topckgen, infracfg, pericfg, mcucfg and apmixedsys. This patch also add six oscillators that provide clocks for MT2712. Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 115 ++ 1 file changed, 115 i

[PATCH v4 3/9] clk: mediatek: Add MT2712 clock support

2017-09-18 Thread Weiyi Lu
Add MT2712 clock support, include topckgen, apmixedsys, infracfg, pericfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 50 ++ drivers/clk/mediatek/Makefile|8 + drivers/clk/mediatek/clk-mt2712-bdp.c| 102 +++ drivers/

[PATCH v4 5/9] dt-bindings: soc: add MT2712 power dt-bindings

2017-09-18 Thread Weiyi Lu
Add power dt-bindings for MT2712. Acked-by: Rob Herring Signed-off-by: Weiyi Lu --- .../devicetree/bindings/soc/mediatek/scpsys.txt| 3 +++ include/dt-bindings/power/mt2712-power.h | 26 ++ 2 files changed, 29 insertions(+) create mode 100644 include/dt-bindi

[PATCH v4 6/9] soc: mediatek: extend bus protection API

2017-09-18 Thread Weiyi Lu
MT2712 add "set/clear" bus control register to each control register set instead of providing only one "enable" control register, we could avoid the read-modify-write racing by using extend API with such new design. By improving the mtk-infracfg bus protection implementation to support set/clear bu

Re: [PATCH net 0/7] Bug fixes for the HNS3 Ethernet Driver for Hip08 SoC

2017-09-18 Thread Leon Romanovsky
On Tue, Sep 19, 2017 at 02:06:21AM +0100, Salil Mehta wrote: > This patch set presents some bug fixes for the HNS3 Ethernet driver, > identified > during internal testing & stabilization efforts. > > This patch series is meant for Linux 4.14 kernel. > > Lipeng (6): > net: hns3: get phy addr from

Re: [PATCH] mm, memory_hotplug: do not back off draining pcp free pages from kworker context

2017-09-18 Thread Tejun Heo
Hello, Sorry about the delay. On Thu, Aug 31, 2017 at 07:33:42AM +0200, Michal Hocko wrote: > > > Michal, are you sure that this patch does not cause deadlock? > > > > > > As shown in "[PATCH] mm: Use WQ_HIGHPRI for mm_percpu_wq." thread, > > > currently work > > > items on mm_percpu_wq seem to

Re: [PATCH] libata: make static arrays const, reduces object code size

2017-09-18 Thread Tejun Heo
On Mon, Sep 18, 2017 at 02:31:40PM +0100, Colin King wrote: > From: Colin Ian King > > Don't populate const arrayis on the stack, instead make them static. > Makes the object code smaller by over 260 bytes: > > Signed-off-by: Colin Ian King ... > diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocf

Re: [PATCH] blkcg: simplify statistic accumulation code

2017-09-18 Thread Tejun Heo
On Fri, Sep 15, 2017 at 09:36:21PM +0200, Arnd Bergmann wrote: > Some older compilers (gcc-4.4 through 4.6 in particular) struggle > with the way that blkg_rwstat_read() returns a structure, leading > to excessive stack usage and rather inefficient code: > > block/blk-cgroup.c: In function 'blkg_d

Re: [PATCH] ata: pata_artop: remove redundant initialization of pio

2017-09-18 Thread Tejun Heo
On Thu, Sep 14, 2017 at 07:54:18PM +0100, Colin King wrote: > From: Colin Ian King > > pio is initialized and the data is never read, instead it is almost > immediately being updated to a new value. Fix this by removing the > initialization. > > Detected by scan-build: > "warning: Value stored t

Re: [PATCH] libata: Add new med_power_with_dipm link_power_management_policy setting

2017-09-18 Thread Tejun Heo
On Thu, Sep 14, 2017 at 12:35:36PM +0200, Hans de Goede wrote: > As described by Matthew Garret quite a while back: > https://mjg59.dreamwidth.org/34868.html > > Intel CPUs starting with the Haswell generation need SATA links to power > down for the "package" part of the CPU to reach low power-sta

Re: [PATCH v11 2/2] ASoC: rockchip: Use bus_type to distinguish rt5514 dsp from rt5514 codec

2017-09-18 Thread jeffy
Hi Matthias, On 09/19/2017 03:15 AM, Matthias Kaehlcke wrote: >+static int of_dev_node_match(struct device *dev, void *data) >+{ >+ return dev->of_node == data; >+} The same is done in different places, even with the same function name (drivers/i2c/i2c-core-of.c, drivers/mux/mux-core.c, ...),

Re: [Part1 PATCH v4 15/17] percpu: introduce DEFINE_PER_CPU_UNENCRYPTED

2017-09-18 Thread Tejun Heo
On Sat, Sep 16, 2017 at 07:34:16AM -0500, Brijesh Singh wrote: > When SEV is active, memory is encrypted with guest-specific key, and if > guest OS wants to share the memory region with hypervisor then it must > clear the C-bit (i.e set unencrypted) before sharing it. > > DEFINE_PER_CPU_UNENCRYPTE

[PATCH 4/4] iio: light: vl6180: Correct ALS scale for non-default gain/integration time

2017-09-18 Thread Stefan Brüns
The reported scale was only correct for the default settings of 100 ms integration time and gain 1. This aligns the reported scale with the behaviour of any other IIO driver and the documented ABI, but may require userspace changes if someone uses non-default settings. Signed-off-by: Stefan Brüns

[PATCH 1/4] iio: light: vl6180: Move range check to integration time setter, cleanup

2017-09-18 Thread Stefan Brüns
This improves code uniformity (range checks for als_gain are also done in the setter). Also unmangle rounding and calculation of register value. The calculated integration time it_ms is required in the next patch of the series. Signed-off-by: Stefan Brüns --- drivers/iio/light/vl6180.c | 18 +++

[PATCH 0/4] iio: light: vl6180: Several fixes and enhancements

2017-09-18 Thread Stefan Brüns
Currently, the vl6180 driver reports bogus in_illuminance_scale values when the integration time or hardware gain are changed from its default value, i.e. it always reports a fixed value. To avoid readback of the register values in case integration time, gain or scale is queried, save the register

[PATCH 3/4] iio: light: vl6180: Cleanup als_gain lookup, avoid register readback

2017-09-18 Thread Stefan Brüns
Instead of manually iterating the array of allowed gain values, use find_closest. Storing the current gain setting avoids accessing the hardware on each query. Signed-off-by: Stefan Brüns --- drivers/iio/light/vl6180.c | 85 -- 1 file changed, 44 inser

[PATCH 2/4] iio: light: vl6180: Avoid readback of integration time register

2017-09-18 Thread Stefan Brüns
Instead of reading the value from the register on each query, store the set value. Signed-off-by: Stefan Brüns --- drivers/iio/light/vl6180.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/iio/light/vl6180.c b/drivers/iio/light/vl6180.c index 57577d5d18

Re: [RFC] watchdog: iTCO_wdt: Introduce panic_on_timeout module param

2017-09-18 Thread Philip Prindeville
Sorry for being late to the party… I tried to use this patch backported to 4.9.49 but could only get the system to reset (presumably the SMI but not certain since I’m not that current on BMC/SMI architecture) when it hung. It’s a Lanner FW-8771 with AMI BIOS 4.6.5 on a Xeon E3-1225 v3. Also, i

Re: [PATCH 00/12] x86/crypto: Fix RBP usage in several crypto .S files

2017-09-18 Thread Herbert Xu
On Fri, Sep 15, 2017 at 11:06:29PM +0200, Ingo Molnar wrote: > > Indeed, I suspect they should go through the crypto tree, these fixes are > independent, they don't depend on anything in the x86 tree. Sure I can pick them up through cryptodev. Thanks, -- Email: Herbert Xu Home Page: http://gon

Re: [PATCH 1/1] iommu/iova: Make rcache flush optional on IOVA allocation failure

2017-09-18 Thread Nate Watterson
Hi Tomasz, On 9/18/2017 12:02 PM, Robin Murphy wrote: Hi Tomasz, On 18/09/17 11:56, Tomasz Nowicki wrote: Since IOVA allocation failure is not unusual case we need to flush CPUs' rcache in hope we will succeed in next round. However, it is useful to decide whether we need rcache flush step be

[PATCH v12 2/2] ASoC: rockchip: Use bus_type to distinguish rt5514 dsp from rt5514 codec

2017-09-18 Thread Jeffy Chen
Currently rt5514 dsp and rt5514 codec are sharing the same compatible. Use bus_type to distinguish rt5514 dsp from rt5514 codec. Signed-off-by: Jeffy Chen Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- Changes in v12: Fix device leak. Changes in v11: None Changes in v10: None

[PATCH v12 1/2] ASoC: rt5514: Add devicetree binding support for rt5514-spi

2017-09-18 Thread Jeffy Chen
Add devicetree binding support for rt5514 spi dsp codec. Signed-off-by: Jeffy Chen --- Changes in v12: None Changes in v11: Use same compatible for rt5514-i2c & rt5514-spi. Changes in v10: Put rt5514-i2c doc & rt5514-spi doc together. Changes in v9: Address comments from Brian. Documentation

Re: [PATCH] drm/radeon: properly initialize r600_audio_status() data

2017-09-18 Thread Alex Deucher
On Sat, Sep 16, 2017 at 8:20 AM, Christian König wrote: > Am 15.09.2017 um 22:06 schrieb Arnd Bergmann: >> >> The structure returned from r600_audio_status() is only partially >> initialized, and older gcc versions (4.3 and 4.4) warn about this: >> >> drivers/gpu/drm/radeon/r600_hdmi.c: In functio

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-18 Thread Byungchul Park
On Mon, Sep 18, 2017 at 07:33:29PM -0700, Paul E. McKenney wrote: > > > Hello Paul and Steven, > > > > > > This is saying: > > > > > > Thread A > > > > > > takedown_cpu() > > >irq_lock_sparse() > > >wait_for_completion(&st->done) // Wait for completion of B > > >irq_unlock_sp

[PATCH v2 6/8] x86/xen: Fix xen head ELF annotations

2017-09-18 Thread Josh Poimboeuf
Mark the ends of the startup_xen and hypercall_page code sections. Signed-off-by: Josh Poimboeuf --- arch/x86/xen/xen-head.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S index a7525e95d53f..9753225289e8 100644 --- a/arc

[PATCH v2 3/8] x86/head: Remove unused 'bad_address' code

2017-09-18 Thread Josh Poimboeuf
It's no longer possible for this code to be executed, so remove it. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/head_64.S | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 3b04e4c99389..afb0a1e22d41 100644 --- a/arch/x86/kerne

Re: RFC: Audit Kernel Container IDs

2017-09-18 Thread Eric W. Biederman
Richard Guy Briggs writes: > On 2017-09-14 12:33, Eric W. Biederman wrote: >> Richard Guy Briggs writes: >> >> > The trigger is a pseudo filesystem (proc, since PID tree already exists) >> > write of a u64 representing the container ID to a file representing a >> > process that will become the

[PATCH v2 0/8] x86/asm: Add unwind hint annotations to head code

2017-09-18 Thread Josh Poimboeuf
v2: - Add missing include in xen patch 7/8 Add some annotations to allow objtool to understand the head code. Among other things, this allows the ORC unwinder to completely unwind an idle task. Also do a few cleanups while I'm there. Josh Poimboeuf (8): objtool: Don't report end of section err

[PATCH v2 2/8] x86/head: Remove confusing comment

2017-09-18 Thread Josh Poimboeuf
This comment is actively wrong and confusing. It refers to the registers' stack offsets after the pt_regs has been constructed on the stack, but this code is *before* that. At this point the stack just has the standard iret frame, for which no comment should be needed. Signed-off-by: Josh Poimbo

[PATCH v2 7/8] x86/xen: Add unwind hint annotations

2017-09-18 Thread Josh Poimboeuf
Add unwind hint annotations to the xen head code so the ORC unwinder can read head_64.o. hypercall_page needs empty annotations at 32-byte intervals to match the 'xen_hypercall_*' ELF functions at those locations. Signed-off-by: Josh Poimboeuf --- arch/x86/xen/xen-head.S | 7 ++- 1 file cha

[PATCH v2 1/8] objtool: Don't report end of section error after an empty unwind hint

2017-09-18 Thread Josh Poimboeuf
If asm code specifies an UNWIND_HINT_EMPTY hint, don't warn if the section ends unexpectedly. This can happen with the xen-head.S code because the hypercall_page is "text" but it's all zeros. Signed-off-by: Josh Poimboeuf --- tools/objtool/check.c | 7 +-- 1 file changed, 5 insertions(+), 2

[PATCH v2 4/8] x86/head: Fix head ELF function annotations

2017-09-18 Thread Josh Poimboeuf
These functions aren't callable C-type functions, so don't annotate them as such. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/head_64.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index afb0a1e22d41..edacd5

[PATCH v2 5/8] x86/boot: Annotate verify_cpu() as a callable function

2017-09-18 Thread Josh Poimboeuf
verify_cpu() is a callable function. Annotate it as such. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/verify_cpu.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/verify_cpu.S b/arch/x86/kernel/verify_cpu.S index 014ea59aa153..3d3c2f71f617 100644 ---

[PATCH v2 8/8] x86/head: Add unwind hint annotations

2017-09-18 Thread Josh Poimboeuf
Jiri Slaby reported an ORC issue when unwinding from an idle task. The stack was: 811083c2 do_idle+0x142/0x1e0 8110861d cpu_startup_entry+0x5d/0x60 82715f58 start_kernel+0x3ff/0x407 827153e8 x86_64_start_kernel+0x14e/0x15d 810001bf secon

Re: [PATCH v2 1/2] dt-bindings: watchdog: Add Spreadtrum watchdog documentation

2017-09-18 Thread Eric Long
On Mon, Sep 18, 2017 at 05:31:11PM -0500, Rob Herring wrote: > On Tue, Sep 12, 2017 at 07:40:08PM +0800, Eric Long wrote: > > This patch adds the documentation for Spreadtrum watchdog driver. > > > > Signed-off-by: Eric Long > > --- > > changes since v1: > > - No updates. > > --- > > .../device

[PATCH] zram: fix null dereference of handle

2017-09-18 Thread Minchan Kim
For the testing, I found handle passed to zs_map_object in __zram_bvec_read is NULL so that kernel goes the oops by pin_object. The reason is there is no routine to check the slot's freeing after getting the slot's lock. This patch fixes it. Fixes: 1f7319c74275 ("zram: partial IO refactoring") Cc

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-18 Thread Paul E. McKenney
On Tue, Sep 19, 2017 at 11:06:10AM +0900, Byungchul Park wrote: > On Tue, Sep 19, 2017 at 10:50:27AM +0900, Byungchul Park wrote: > > On Mon, Sep 18, 2017 at 04:53:11PM -0700, Paul E. McKenney wrote: > > > So, Byungchul, any enlightenment? Please see lockdep splat below. > > > > > >

Re: [PATCH 1/4] watchdog: aspeed: Retain watchdog enabled state

2017-09-18 Thread Andrew Jeffery
On Mon, 2017-09-18 at 06:25 -0700, Guenter Roeck wrote: > On 09/17/2017 10:49 PM, Andrew Jeffery wrote: > > An unintended post-condition of probe() is that the watchdog is > > disabled. Rework probe() such that we retain the value of the "enabled" > > bit from the control register, and take the app

Re: [linus:master] BUILD REGRESSION 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e

2017-09-18 Thread Philip Li
On Sun, Sep 17, 2017 at 08:31:56AM -0700, Linus Torvalds wrote: > Fengguang, > it looks like the kernel build robot _only_ tests the actual rc > kernels, and doesn't bisect down where the error started. hi Linus, the robot will also bisect down the error if issue is found on linus repo. The regre

Re: [PATCH 4/4] watchdog: aspeed: Move init to arch_initcall

2017-09-18 Thread Andrew Jeffery
On Mon, 2017-09-18 at 06:32 -0700, Guenter Roeck wrote: > On 09/17/2017 10:49 PM, Andrew Jeffery wrote: > > Probing at device_initcall time lead to perverse cases where the > > watchdog was probed after, say, I2C, which then leaves a potentially > > running watchdog at the mercy of I2C device behav

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-18 Thread Paul E. McKenney
On Mon, Sep 18, 2017 at 09:23:01PM -0400, Steven Rostedt wrote: > On Mon, 18 Sep 2017 16:53:11 -0700 > "Paul E. McKenney" wrote: > > > On Mon, Sep 18, 2017 at 09:55:27AM -0700, Paul E. McKenney wrote: > > > On Mon, Sep 18, 2017 at 12:29:31PM -0400, Steven Rostedt wrote: > > > > On Mon, 18 Sep 2

Re: [V5, 2/3] mm: dmapool: Align to ARCH_DMA_MINALIGN innon-coherent DMA mode

2017-09-18 Thread 陈华才
Oh, I know, I've make a mistake, dmapool doesn't need to change. Huacai -- Original -- From: "Christoph Hellwig"; Date: Mon, Sep 18, 2017 11:51 PM To: "Robin Murphy"; Cc: "Huacai Chen"; "Andrew Morton"; "Fuxin Zhang"; "linux-mm"; "linux-kernel"; "stable"

Re: [PATCH 0/5] [RFC] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-09-18 Thread Sergey Senozhatsky
On (09/18/17 10:44), Luck, Tony wrote: [..] > > A few new warnings when building on ia64: > > arch/ia64/kernel/module.c:931: warning: passing argument 1 of > 'dereference_function_descriptor' makes pointer from integer without a cast > arch/ia64/kernel/module.c:931: warning: return makes integer

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-18 Thread Byungchul Park
On Tue, Sep 19, 2017 at 10:50:27AM +0900, Byungchul Park wrote: > On Mon, Sep 18, 2017 at 04:53:11PM -0700, Paul E. McKenney wrote: > > So, Byungchul, any enlightenment? Please see lockdep splat below. > > > > Thanx, Paul > > > > --

Re: [PATCH 0/5] [RFC] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-09-18 Thread Sergey Senozhatsky
On (09/18/17 20:39), Helge Deller wrote: [..] > > A few new warnings when building on ia64: > > > > arch/ia64/kernel/module.c:931: warning: passing argument 1 of > > 'dereference_function_descriptor' makes pointer from integer without a cast > > arch/ia64/kernel/module.c:931: warning: return make

Re: [PATCH] perf/core: Update cgroup time with descendants

2017-09-18 Thread Lin Xiulei
Add steps of reproducing 1 ``` mkdir /sys/fs/cgroup/perf_event/root1 mkdir /sys/fs/cgroup/perf_event/root1/leaf1 ``` 2 $pid is any running process ``` echo $pid > /sys/fs/cgroup/perf_event/root1/cgroup.procs ``` 3 ``` perf stat -e cycles -G root1 -a -I 1000 ``` You shall get 0 cycles from it, w

alpha runtime warnings due to commit 0e4c2eeb758 ("alpha/PCI: Replace pci_fixup_irqs() call with host ...")

2017-09-18 Thread Guenter Roeck
Hi, I see the following runtime warnings in mainline when running alpha images in qemu. Floppy drive(s): fd0 is 2.88M ide0: disabled, no IRQ ide0: failed to initialize IDE interface ide0: disabling port cmd64x :00:02.0: IDE controller (0x1095:0x0646 rev 0x07) CMD64x_IDE :00:02.0: BAR 0

  1   2   3   4   5   6   7   8   9   10   >