Re: [PATCH v2 6/7] mm/page_owner: use stackdepot to store stacktrace

2016-06-19 Thread Joonsoo Kim
On Fri, Jun 17, 2016 at 11:55:59AM +0200, Michal Hocko wrote: > On Fri 17-06-16 16:25:26, Joonsoo Kim wrote: > > On Mon, Jun 06, 2016 at 03:56:04PM +0200, Michal Hocko wrote: > [...] > > > I still have troubles to understand your numbers > > > > > > > static allocation: > > > > 92274688 bytes -> 2

Re: [PATCH 0/3] nvme: Don't add namespaces for locked drives

2016-06-19 Thread Sagi Grimberg
Hi all, If an NVMe drive is locked with ATA Security, most commands sent to the drive will fail. This includes commands sent by the kernel upon discovery to probe for partitions. The failing happens in such a way that trying to do anything with the drive (e.g. sending an unlock command; unloadi

Re: [PATCH 4/4] sched,fair: Fix PELT integrity for new tasks

2016-06-19 Thread Yuyang Du
On Fri, Jun 17, 2016 at 06:18:31PM +0200, Peter Zijlstra wrote: > On Fri, Jun 17, 2016 at 06:02:39PM +0200, Peter Zijlstra wrote: > > So yes, ho-humm, how to go about doing that bestest. Lemme have a play. > > This is what I came up with, not entirely pretty, but I suppose it'll > have to do. FW

[PATCH v2] PM / sleep: make pm notifier called symmetrically

2016-06-19 Thread Lianwei Wang
This makes pm notifier PREPARE/POST symmetrical: if PREPARE fails, we will only undo what ever happened on PREPARE. It fixes the unbalanced cpu hotplug enable in cpu pm notifier. Signed-off-by: Lianwei Wang --- kernel/power/hibernate.c | 20 kernel/power/main.c | 11 ++

[PATCH v9 0/4] add reboot mode driver

2016-06-19 Thread Andy Yan
This driver parses the reboot commands like "reboot bootloader" and "reboot recovery" to get a boot mode described in the device tree , then call the corresponding write interfae to store the boot mode in some place like special register or ram , which can be read by the bootloader after system r

Re: [PATCH] FUSE: Improve aio directIO write performance for size extending writes.

2016-06-19 Thread Ashish Sangwan
On Thu, Jun 16, 2016 at 4:55 PM, Miklos Szeredi wrote: > On Thu, Apr 7, 2016 at 1:48 PM, Ashish Sangwan > wrote: >> While sending the blocking directIO in fuse, the write request is broken >> into sub-requests, each of default size 128k and all the requests are sent >> in non-blocking background

[PATCH v9 2/4] power: reset: add reboot mode driver

2016-06-19 Thread Andy Yan
This driver parses the reboot commands like "reboot bootloader" and "reboot recovery" to get a boot mode described in the device tree , then call the write interfae to store the boot mode in some place like special register or sram, which can be read by the bootloader after system reboot, then the

[PATCH v9 1/4] dt-bindings: power: reset: add document for reboot-mode driver

2016-06-19 Thread Andy Yan
Add device tree bindings document for reboot-mode driver. Signed-off-by: Andy Yan Acked-by: Rob Herring Reviewed-by: Krzysztof Kozlowski --- Changes in v9: None Changes in v8: None Changes in v7: - fix some spelling mistakes - declare that the mode magic should be none-zero value Changes in

[PATCH v2] ARM: dts: sun8i: Add dts file for Olimex A33-OLinuXino

2016-06-19 Thread Stefan Mavrodiev
A33-OLinuXino is A33 development board designed by Olimex LTD. It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, headphone and mic jacks, connector for LiPo battery and optional 4GB NAND Flash. It has two 40-pin headers. One for LCD panel, and one for additional modules. Also t

[PATCH v9 3/4] ARM: dts: rockchip: add syscon-reboot-mode DT node

2016-06-19 Thread Andy Yan
Rockchip platform use a SYSCON mapped register store the reboot mode magic value for bootloader to use when system reboot. So add syscon-reboot-mode driver DT node for rk3xxx/rk3036/rk3288 based platform Reviewed-by: Matthias Brugger Signed-off-by: Andy Yan --- Changes in v9: None Changes in v

[PATCH v9 4/4] ARM64: dts: rockchip: add syscon-reboot-mode DT node

2016-06-19 Thread Andy Yan
Add syscon-reboot-mode driver DT node for rk3368 platform Tested-by: Caesar Wang Signed-off-by: Andy Yan --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - descirbe all reboot mode as property instead of

Re: [PATCH v4 00/14] fix some type infos and bugs for arm64/of numa

2016-06-19 Thread Leizhen (ThunderTown)
On 2016/6/14 22:22, Catalin Marinas wrote: > On Wed, Jun 08, 2016 at 04:59:03PM +0800, Leizhen (ThunderTown) wrote: >> On 2016/6/7 21:58, Will Deacon wrote: >>> On Tue, Jun 07, 2016 at 04:08:04PM +0800, Zhen Lei wrote: v3 -> v4: 1. Packed three patches of Kefeng Wang, patch6-8. 2.

Re: Boot failure on emev2/kzm9d (was: Re: [PATCH v2 11/11] mm/slab: lockless decision to grow cache)

2016-06-19 Thread Joonsoo Kim
CCing Paul to ask some question. On Wed, Jun 15, 2016 at 10:39:47AM +0200, Geert Uytterhoeven wrote: > Hi Joonsoo, > > On Wed, Jun 15, 2016 at 4:23 AM, Joonsoo Kim wrote: > > On Tue, Jun 14, 2016 at 12:45:14PM +0200, Geert Uytterhoeven wrote: > >> On Tue, Jun 14, 2016 at 10:11 AM, Joonsoo Kim

Re: [PATCH v3 2/2] phy: add a driver for the Rockchip SoC internal PCIe PHY

2016-06-19 Thread Kishon Vijay Abraham I
Hi, On Monday 20 June 2016 06:28 AM, Shawn Lin wrote: > Hi Kishon, > > On 2016/6/17 21:08, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Thursday 16 June 2016 06:52 AM, Shawn Lin wrote: >>> This patch to add a generic PHY driver for rockchip PCIe PHY. >>> Access the PHY via registers provided by

Re: [PATCHv2] backlight: pwm_bl: disable PWM when 'duty_cycle' is zero

2016-06-19 Thread Phil Reid
On 20/06/2016 14:21, Lothar Waßmann wrote: Hi, On Fri, 17 Jun 2016 15:17:19 +0100 Lee Jones wrote: On Sat, 11 Jun 2016, Lothar Waßmann wrote: On Fri, 10 Jun 2016 15:54:49 +0100 Lee Jones wrote: On Fri, 10 Jun 2016, Lothar Waßmann wrote: On Fri, 10 Jun 2016 08:44:49 +0100 Lee Jones wrote: On

Re: [PATCHv2] backlight: pwm_bl: disable PWM when 'duty_cycle' is zero

2016-06-19 Thread Lothar Waßmann
Hi, On Fri, 17 Jun 2016 15:17:19 +0100 Lee Jones wrote: > On Sat, 11 Jun 2016, Lothar Waßmann wrote: > > On Fri, 10 Jun 2016 15:54:49 +0100 Lee Jones wrote: > > > On Fri, 10 Jun 2016, Lothar Waßmann wrote: > > > > On Fri, 10 Jun 2016 08:44:49 +0100 Lee Jones wrote: > > > > > On Fri, 10 Jun 2016, L

[PATCH v3] locking/qrwlock: Let qrwlock has same layout regardless of the endian

2016-06-19 Thread Pan Xinhui
This patch aims to get rid of endianness in queued_write_unlock(). We want to set __qrwlock->wmode to NULL, however the address is not &lock->cnts in big endian machine. That causes queued_write_unlock() write NULL to the wrong field of __qrwlock. Actually qrwlock can have same layout, IOW we can

[PATCH 6/6] wcn36xx: Fix up wcn36xx_smd_update_scan_params()

2016-06-19 Thread Bjorn Andersson
Fix up the wcn36xx_smd_update_scan_params() to work with non-ancient versions of the firmware and support actually specifying the list of channels. Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/hal.h | 4 ++-- drivers/net/wireless/ath/wcn36xx/smd.c | 15 +-- dr

[PATCH 4/6] wcn36xx: Correct DXE chip version differentiation

2016-06-19 Thread Bjorn Andersson
The CCU block in WCNSS is configured for appropriate routing of interrupts from the DXE to the application cpu, this is not dependant on the iris version (wcn3660 vs wcn3680), but rather if the SoC has a riva or pronto built in. Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx

[PATCH 2/6] wcn36xx: Change indication list lock to spinlock

2016-06-19 Thread Bjorn Andersson
From: Bjorn Andersson In preparation for handling incoming messages from IRQ context, change the indication list lock to a spinlock Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 12 ++-- drivers/net/wireless/ath/wcn36xx/

[PATCH 5/6] wcn36xx: Transition driver to SMD client

2016-06-19 Thread Bjorn Andersson
The wcn36xx wifi driver follows the life cycle of the WLAN_CTRL SMD channel, as such it should be a SMD client. This patch makes this transition, now that we have the necessary frameworks available. Signed-off-by: Bjorn Andersson --- This patch depends on the devicetree binding approved by Rob H

[PATCH 3/6] wcn36xx: Split mmio space into explicit regions

2016-06-19 Thread Bjorn Andersson
Split the wcnss mmio space into explicit regions for ccu and dxe and acquire these from the node referenced by the qcom,mmio phandle. Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/dxe.c | 26 --- drivers/net/wireless/ath/wcn36xx/dxe.h | 6 ++-- drivers/

[PATCH 1/6] wcn36xx: Fold indication payload into message header

2016-06-19 Thread Bjorn Andersson
From: Bjorn Andersson Merge the two allocation instead of separately allocating room for the indication payload. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 15 ++- drivers/net/wireless/ath/wcn36xx/smd.h | 2 +- 2 fil

Re: [PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-19 Thread Nikolay Borisov
On 06/17/2016 07:25 PM, Johannes Weiner wrote: > The memory controller has quite a bit of state that usually outlives > the cgroup and pins its CSS until said state disappears. At the same > time it imposes a 16-bit limit on the CSS ID space to economically > store IDs in the wild. Consequently,

RE: [RFC PATCH] net: macb: Add gmii2rgmii converter support

2016-06-19 Thread Appana Durga Kedareswara Rao
Hi Florian, Thanks for the quick response... > > On June 19, 2016 10:27:17 PM MST, Kedareswara rao Appana > wrote: > >This patch adds support for gmii2rgmii converter in the macb driver. > > > >The GMII to RGMII IP core provides the > >Reduced Gigabit Media Independent Interface > >(RGM

tg_load_down NULL pointer dereference

2016-06-19 Thread AMIT NAGAL
Hi I am using Linux kernel version 3.10.28 (ARM platform) . I am getting NULL pointer dereference in tg_load_down() . At the time of error , tg->parent->cfs_rq value is 0 and tg->se value is 0x0400 . ( refer to backtrace in 5) ). 1) Problematic statement is in line 5814 in tg_load_down

Re: [PATCH] x86/ptrace: Remove questionable TS_COMPAT usage in ptrace

2016-06-19 Thread Andy Lutomirski
On Sun, Jun 19, 2016 at 2:19 PM, Oleg Nesterov wrote: > Let me first thank Pedro who has already replied! > > And I have to admit I will need to re-read his explanations after > sleep to (try to) convince myself I fully understans the problems ;) > Too late for me. > > Right now I have nothing to

[GIT PULL] s390 patches for 4.7-rc5

2016-06-19 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: Two more bugs fixes for 4.7: - A KVM regression introduced with the pgtable.c code split - A perf issue with two hardware PMUs us

Re: [GIT PULL 4/8] ARM: exynos: Topic branch with driver changes for v4.8

2016-06-19 Thread Olof Johansson
On Thu, Jun 16, 2016 at 03:00:44PM +0200, Sylwester Nawrocki wrote: > On 06/16/2016 02:16 PM, Krzysztof Kozlowski wrote: > > On 06/13/2016 11:47 PM, Olof Johansson wrote: > >> > On Mon, Jun 06, 2016 at 02:25:29PM +0200, Krzysztof Kozlowski wrote: > >>> >> Hi, > >>> >> > >>> >> A topic branch for Mu

Re: [RFC PATCH] net: macb: Add gmii2rgmii converter support

2016-06-19 Thread Joe Perches
On Mon, 2016-06-20 at 10:57 +0530, Kedareswara rao Appana wrote: > This patch adds support for gmii2rgmii converter > in the macb driver. [] > diff --git a/drivers/net/ethernet/cadence/macb.c > b/drivers/net/ethernet/cadence/macb.c [] > @@ -376,6 +389,20 @@ static int macb_mii_probe(struct net_dev

Re: [PATCH v10 08/22] IB/hns: Add icm support

2016-06-19 Thread Leon Romanovsky
On Mon, Jun 20, 2016 at 12:37:40PM +0800, Wei Hu (Xavier) wrote: > > > On 2016/6/17 17:58, Leon Romanovsky wrote: > >On Thu, Jun 16, 2016 at 10:35:16PM +0800, Lijun Ou wrote: > >>This patch mainly added icm support for RoCE. It initializes icm > >>which managers the relative memory blocks for RoC

linux-next: Tree for Jun 20

2016-06-19 Thread Stephen Rothwell
Hi all, Changes since 20160617: The net-next tree gained conflicts agains the net tree. The block tree gained a conflict against the f2fs tree. The tpmdd tree gained conflicts against Linus' tree. The iommu tree gained a conflict against the arm tree. The staging tree gained a conflict agains

Re: [PATCH 5/7] random: replace non-blocking pool with a Chacha20-based CRNG

2016-06-19 Thread Herbert Xu
On Mon, Jun 20, 2016 at 01:02:03AM -0400, Theodore Ts'o wrote: > > It's work that I'm not convinced is worth the gain? Perhaps I > shouldn't have buried the lede, but repeating a paragraph from later > in the message: > >So even if the AVX optimized is 100% faster than the generic version, >

[GIT PULL] hwmon fixes for v4.7-rc4

2016-06-19 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux v4.7-rc4 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.7-rc4 Thanks, Guenter -- The following changes since commit 5edb56491d4812c42175980759da53388e5d86f5: Linux 4.7-rc3 (2016-0

Re: [PATCH 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-19 Thread Andy Lutomirski
On Sun, Jun 19, 2016 at 10:58 PM, Heiko Carstens wrote: > On Fri, Jun 17, 2016 at 10:38:24AM -0700, Andy Lutomirski wrote: >> > A disassembly looks like this (r15 is the stackpointer): >> > >> > 0670 : >> > 670: eb 6f f0 48 00 24 stmg%r6,%r15,72(%r15) >> > 676

Re: [PATCH 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-19 Thread Heiko Carstens
On Fri, Jun 17, 2016 at 10:38:24AM -0700, Andy Lutomirski wrote: > > A disassembly looks like this (r15 is the stackpointer): > > > > 0670 : > > 670: eb 6f f0 48 00 24 stmg%r6,%r15,72(%r15) > > 676: c0 d0 00 00 00 00 larl%r13,676 > > 67c:

Re: [v2 PATCH 2/4] phy: Add USB Type-C PHY driver for rk3399

2016-06-19 Thread Chris Zhong
Hi Guenter On 06/18/2016 11:45 PM, Guenter Roeck wrote: Hi Chris, On Mon, Jun 13, 2016 at 2:39 AM, Chris Zhong wrote: Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB

[PATCH] ddbridge: Replace vmalloc with vzalloc

2016-06-19 Thread Amitoj Kaur Chawla
vzalloc combines vmalloc and memset 0. The Coccinelle semantic patch used to make this change is as follows: @@ type T; T *d; expression e; statement S; @@ d = -vmalloc +vzalloc (...); if (!d) S - memset(d, 0, sizeof(T)); Signed-off-by:

[PATCH v2 1/2] drm/dsi: Implement dcs set/get display brightness

2016-06-19 Thread Vinay Simha BN
Provide a small convenience wrapper that set/get the display brightness value Cc: John Stultz Cc: Sumit Semwal Cc: Archit Taneja Cc: Rob Clark Cc: Jani Nikula Cc: Thierry Reding Signed-off-by: Vinay Simha BN --- v1: *tested in nexus7 2nd gen. v2: * implemented jani review comments -fu

[PATCH v7 2/2] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel

2016-06-19 Thread Vinay Simha BN
Add support for the JDI LT070ME05000 WUXGA DSI panel used in Nexus 7 2013 devices. Programming sequence for the panel is was originally found in the android-msm-flo-3.4-lollipop-release branch from: https://android.googlesource.com/kernel/msm.git And video mode setting is from dsi-panel-jdi-d

[PATCH] ACPICA: Use acpi_os_allocate_zeroed

2016-06-19 Thread Amitoj Kaur Chawla
acpi_os_allocate_zeroed combines acpi_os_allocate and memset 0. The Coccinelle semantic patch used to make this change is as follows: @@ type T; T *d; expression e; statement S; @@ d = -acpi_os_allocate +acpi_os_allocate_zeroed (...); if (!d) S

Re: [PATCH v5 0/7] /dev/random - a new approach

2016-06-19 Thread Stephan Mueller
Am Sonntag, 19. Juni 2016, 21:36:14 schrieb Pavel Machek: Hi Pavel, > On Sun 2016-06-19 17:58:41, Stephan Mueller wrote: > > Hi Herbert, Ted, > > > > The following patch set provides a different approach to /dev/random which > > I call Linux Random Number Generator (LRNG) to collect entropy with

Re: [PATCH] clk: samsung: exynos5433: use clock_ignore_unused flag for SPI3 related clocks

2016-06-19 Thread Andi Shyti
Hi Tomasz, > >> > The SPI 3 bus uses two clocks, a bus clock and an input clock. > >> > Do not disable the clocks when unused in order to allow access to > >> > the SPI 3 device. > >> > >> If unused, why would access to SPI 3 device needed? > > > > because next I will submit a small driver which u

Re: [RFC PATCH] net: macb: Add gmii2rgmii converter support

2016-06-19 Thread Florian Fainelli
On June 19, 2016 10:27:17 PM MST, Kedareswara rao Appana wrote: >This patch adds support for gmii2rgmii converter >in the macb driver. > >The GMII to RGMII IP core provides the >Reduced Gigabit Media Independent Interface >(RGMII) between Ethernet physical media devices >And the Gigabit Ethernet

Re: Add mt6755 basic chip support

2016-06-19 Thread Mars Cheng
On Tue, 2016-06-14 at 10:20 +0800, Mars Cheng wrote: > This patch adds basic support for Mediatek's new 8-core chip, mt6755. > It is also named as Helio P10. It is based on 4.7-rc1 > > Mars Cheng (2): > Document: DT: Add bindings for mediatek MT6755 SoC Platform > arm64: dts: mediatek: add mt6

RE: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-19 Thread Rosen, Rami
Hi all, A very limited review below. + + /* get capabilities of particular feature */ + ENA_ADMIN_GET_FEATURE = 8, Instead /* get capabilities SHOULD BE: /* set capabilities . + + /* get capabilities of particular feature */ + ENA_ADMIN_SET_FEATURE = 9, + .. +int

[PATCH 5/6] staging: rtl8188eu: remove EFUSE_GetEfuseDefinition function

2016-06-19 Thread Ivan Safonov
This function does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_efuse.c| 63 --- drivers/staging/rtl8188eu/include/rtw_efuse.h | 2 - 2 files changed, 65 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_efuse.c b/drivers/

[PATCH 2/6] staging: rtl8188eu: remove efuse_max variable in hal_EfusePartialWriteCheck

2016-06-19 Thread Ivan Safonov
This variable does not used after assigning value. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_efuse.c b/drivers/staging/rtl8188eu/core/rtw_efuse.c index ea28f

[PATCH 1/6] staging: rtl8188eu: replace EFUSE_GetEfuseDefinition(..., TYPE_EFUSE_MAP_LEN, ...) call with it's result (EFUSE_MAP_LEN_88E)

2016-06-19 Thread Ivan Safonov
This makes the code easier to read. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_efuse.c b/drivers/staging/rtl8188eu/core/rtw_efuse.c index c1

[PATCH 3/6] staging: rtl8188eu: replace EFUSE_GetEfuseDefinition(..., TYPE_EFUSE_MAX_SECTION, &a) with a = EFUSE_MAX_SECTION_88E

2016-06-19 Thread Ivan Safonov
This makes the code easier to read. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_efuse.c b/drivers/staging/rtl8188eu/core/rtw_efuse.c index 9d5bd43..1e96a81 1

[PATCH 6/6] staging: rtl8188eu: remove _EFUSE_DEF_TYPE enum

2016-06-19 Thread Ivan Safonov
This enumeration does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_efuse.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_efuse.h b/drivers/staging/rtl8188eu/include/rtw_efuse.h index 9e7d135..168c12d 10064

[RFC PATCH] net: macb: Add gmii2rgmii converter support

2016-06-19 Thread Kedareswara rao Appana
This patch adds support for gmii2rgmii converter in the macb driver. The GMII to RGMII IP core provides the Reduced Gigabit Media Independent Interface (RGMII) between Ethernet physical media devices And the Gigabit Ethernet controller. This core can switch dynamically between the Three different

[PATCH 4/6] staging: rtl8188eu: replace EFUSE_GetEfuseDefinition(..., TYPE_AVAILABLE_EFUSE_BYTES_BANK, &a) call with a = (EFUSE_REAL_CONTENT_LEN_88E - EFUSE_OOB_PROTECT_BYTES_88E)

2016-06-19 Thread Ivan Safonov
This makes the code easier to read. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_efuse.c b/drivers/staging/rtl8188eu/core/rtw_efuse.c index 1e96a81..

Re: [PATCH v6 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-19 Thread Guenter Roeck
Hi Frank, On Sun, Jun 19, 2016 at 8:32 PM, Frank Wang wrote: > Hi Heiko & Guenter, > > > On 2016/6/20 11:00, Guenter Roeck wrote: >> >> On Sun, Jun 19, 2016 at 6:27 PM, Frank Wang >> wrote: >>> >>> Hi Guenter, >>> >>> >>> On 2016/6/17 21:20, Guenter Roeck wrote: Hi Frank, On

[PATCH 4/5] fs/buffer.c: Remove trailing white space

2016-06-19 Thread Byungchul Park
Trailing white space is not accepted in kernel coding style. Remove them. Signed-off-by: Byungchul Park --- fs/buffer.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/fs/buffer.c b/fs/buffer.c index e1632ab..a75ca74 100644 --- a/fs/buffer.c +++ b/fs/

[PATCH] staging: unisys: visorbus: Replace semaphore with mutex

2016-06-19 Thread Binoy Jayan
The semaphore 'visordriver_callback_lock' is a simple mutex, so it should be written as one. Semaphores are going away in the future. Signed-off-by: Binoy Jayan --- drivers/staging/unisys/include/visorbus.h | 3 ++- drivers/staging/unisys/visorbus/visorbus_main.c | 14 +++--- 2 fi

[RFC 06/12] lockdep: Apply crossrelease to completion

2016-06-19 Thread Byungchul Park
wait_for_complete() and its family can cause deadlock. Nevertheless, it cannot use the lock correntness validator because complete() will be called in different context from the context calling wait_for_complete(), which violates original lockdep's assumption. However, thanks to CONFIG_LOCKDEP_CRO

[PATCH 3/5] lockdep: Apply bit_spin_lock lockdep to zram

2016-06-19 Thread Byungchul Park
In order to use lockdep-enabled bit_spin_lock, we have to call bit_spin_init() when a instance including the bit used as lock creates, and bit_spin_free() when the instance including the bit destroys. The zram is one of bit_spin_lock users. And this patch adds bit_spin_init() and bit_spin_free() p

[RFC 10/12] mm/swap_state.c: Remove trailing white space

2016-06-19 Thread Byungchul Park
Trailing white space is not accepted in kernel coding style. Remove them. Signed-off-by: Byungchul Park --- mm/swap_state.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/swap_state.c b/mm/swap_state.c index 69cb246..3fb7013 100644 --- a/mm/swap_state.c +++ b/m

[RFC 01/12] lockdep: Refactor lookup_chain_cache()

2016-06-19 Thread Byungchul Park
Currently, lookup_chain_cache() provides both "lookup" and "add" functionalities in a function. However each one is useful indivisually. Some features, e.g. crossrelease, can use each one indivisually. Thus, splited these functionalities into 2 functions. Signed-off-by: Byungchul Park --- kernel

[RFC 11/12] lockdep: Call lock_acquire(release) when accessing PG_locked manually

2016-06-19 Thread Byungchul Park
The PG_locked bit can be updated through SetPageLocked() or ClearPageLocked(), not by lock_page() and unlock_page(). SetPageLockded() and ClearPageLocked() also have to be considered to get balanced between acquring and releasing the PG_locked lock. Signed-off-by: Byungchul Park --- fs/cifs/file

[RFC 05/12] lockdep: Implement crossrelease feature

2016-06-19 Thread Byungchul Park
Crossrelease feature calls a lock which is releasable by a different context from the context having acquired the lock, crosslock. For crosslock, all locks having been held in the context unlocking the crosslock, until eventually the crosslock will be unlocked, have dependency with the crosslock. T

[RFC 04/12] lockdep: Make save_trace can copy from other stack_trace

2016-06-19 Thread Byungchul Park
Currently, save_trace() can only save current context's stack trace. However, it would be useful if it can save(copy from) another context's stack trace. Especially, it can be used by crossrelease feature. Signed-off-by: Byungchul Park --- kernel/locking/lockdep.c | 22 ++ 1

[RFC 09/12] cifs/file.c: Remove trailing white space

2016-06-19 Thread Byungchul Park
Trailing white space is not accepted in kernel coding style. Remove them. Signed-off-by: Byungchul Park --- fs/cifs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index ff882ae..bcf9ead 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @

[PATCH 5/5] lockdep: Apply bit_spin_lock lockdep to BH_Uptodate_Lock

2016-06-19 Thread Byungchul Park
In order to use lockdep-enabled bit_spin_lock, we have to call bit_spin_init() when a instance including the bit used as lock creates, and bit_spin_free() when the instance including the bit destroys. BH_Uptodate_Lock bit of buffer head's b_state is one of bit_spin_lock users. And this patch adds

[RFC 07/12] pagemap.h: Remove trailing white space

2016-06-19 Thread Byungchul Park
Trailing white space is not accepted in kernel coding style. Remove them. Signed-off-by: Byungchul Park --- include/linux/pagemap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 92395a0..c0049d9 100644 --- a/includ

[RFC 00/12] lockdep: Implement crossrelease feature

2016-06-19 Thread Byungchul Park
Crossrelease feature calls a lock which is releasable by a different context from the context having acquired the lock, crosslock. For crosslock, all locks having been held in the context unlocking the crosslock, until eventually the crosslock will be unlocked, have dependency with the crosslock. T

[RFC 08/12] lockdep: Apply crossrelease to PG_locked lock

2016-06-19 Thread Byungchul Park
lock_page() and its family can cause deadlock. Nevertheless, it cannot use the lock correctness validator becasue unlock_page() can be called in different context from the context calling lock_page(), which violates original lockdep's assumption. However, thanks to CONFIG_LOCKDEP_CROSSRELEASE, we

[RFC 03/12] lockdep: Make check_prev_add can use a stack_trace of other context

2016-06-19 Thread Byungchul Park
Currently, check_prev_add() can only save its current context's stack trace. But it would be useful if a seperated stack_trace can be taken and used in check_prev_add(). Crossrelease feature can use check_prev_add() with another context's stack_trace. Signed-off-by: Byungchul Park --- kernel/loc

[RFC 12/12] x86/dumpstack: Optimize save_stack_trace

2016-06-19 Thread Byungchul Park
Currently, x86 implementation of save_stack_trace() is walking all stack region word by word regardless of what the trace->max_entries is. However, it's unnecessary to walk after already fulfilling caller's requirement, say, if trace->nr_entries >= trace->max_entries is true. For example, CONFIG_L

[RFC 02/12] lockdep: Add a function building a chain between two hlocks

2016-06-19 Thread Byungchul Park
add_chain_cache() can only be used by current context since it depends on a task's held_locks which is not protected by lock. However, it would be useful if a dependency chain can be built in any context. This patch makes the chain building not depend on its context. Especially, crossrelease featu

[PATCH 2/5] lockdep: Apply bitlock to bit_spin_lock

2016-06-19 Thread Byungchul Park
Currently, bit_spin_lock does not use lockdep_map at all. Of course, the lock correctness validator is not supported for bit_spin_lock. This patch makes bit_spin_lock possible to use the validator using CONFIG_BITLOCK_ALLOC. Signed-off-by: Byungchul Park --- include/linux/bit_spinlock.h | 57 +++

[PATCH 0/5] Implement bitlock map allocator

2016-06-19 Thread Byungchul Park
Currently, bit-based lock e.g. bit_spin_lock cannot use the lock correctness validator using lockdep. However, it would be useful if the validator supports for even bit-based lock as well. Therefore, this patch provides interface for allocation and freeing lockdep_map for bit-based lock so that th

[PATCH 1/5] lockdep: Implement bitlock map allocator

2016-06-19 Thread Byungchul Park
Currently, bit-based lock e.g. bit_spin_lock cannot use the lock correctness validator using lockdep. However, it would be useful if the validator supports for even bit-based lock as well. Therefore, this patch provides interface for allocation and freeing lockdep_map for bit-based lock so that th

Re: [PATCH 5/7] random: replace non-blocking pool with a Chacha20-based CRNG

2016-06-19 Thread Theodore Ts'o
On Mon, Jun 20, 2016 at 09:25:28AM +0800, Herbert Xu wrote: > > Yes, I understand the argument that the networking stack is now > > requiring the crypto layer --- but not all IOT devices may necessarily > > require the IP stack (they might be using some alternate wireless > > communications stack)

Linux 4.7-rc4

2016-06-19 Thread Linus Torvalds
It's been a fairly normal week, and rc4 is out. Go test. The statistics look very normal: about two thirds drivers, with the rest being half architecture updates and half "misc" (small ffilesystem updates,. some documentation, and a smattering of patches elsewhere). The bulk of the driver updates

linux-next: manual merge of the staging tree with the drm tree

2016-06-19 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in: drivers/staging/android/sync.h between commit: 76bf0db55439 ("dma-buf/fence: make fence context 64 bit v2") from the drm tree and commits: 342952d3a5c4 ("staging/android: remove 'destroyed' member from struct sync

Re: [PATCH v7 7/8] perf tools: Check write_backward during evlist config

2016-06-19 Thread Wangnan (F)
On 2016/6/17 5:47, Arnaldo Carvalho de Melo wrote: Em Wed, Jun 15, 2016 at 02:23:34AM +, Wang Nan escreveu: Before this patch, when using overwritable ring buffer on an old kernel, error message is misleading: # ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a Error: The raw_sysca

[PATCH v3] mmc: dw_mmc: remove UBSAN warning in dw_mci_setup_bus()

2016-06-19 Thread Seung-Woo Kim
This patch removes following UBSAN warnings in dw_mci_setup_bus(). UBSAN: Undefined behaviour in drivers/mmc/host/dw_mmc.c:1102:14 shift exponent 250 is too large for 32-bit type 'unsigned int' Call trace: [] dump_backtrace+0x0/0x380 [] show_stack+0x14/0x20 [] dump_stack+0xe0/0x120 [

Re: [PATCH v2] mfd: intel_soc_pmic_bxtwc: Add Intel BXT WhiskeyCove PMIC ADC thermal channel-zone mapping

2016-06-19 Thread Bin Gao
On Fri, Jun 17, 2016 at 09:01:59AM +0100, Lee Jones wrote: > > +static struct trip_config_map str0_trip_config[] = { > > + { > > + .irq_reg = BXTWC_THRM0IRQ, > > + .irq_mask = 0x01, > > + .irq_en = BXTWC_MTHRM0IRQ, > > + .irq_en_mask = 0x01, > > +

[PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss

2016-06-19 Thread Keerthy
pruss hwmod RSTST register wrongly points to PWRSTCTRL register in case of am43xx. Fix the RSTST register offset value. This can lead to setting of wrong power state values for PER domain. Fixes: 1c7e224d ("ARM: OMAP2+: hwmod: AM335x: runtime register update") Signed-off-by: Keerthy --- arch/ar

[PATCH v3 2/4] arm64: dts: hi6220: Add media subsystem reset dts

2016-06-19 Thread Xinliang Liu
Add media subsystem reset dts support. Signed-off-by: Chen Feng Signed-off-by: Xinliang Liu --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 2 ++ include/dt-bindings/reset/hisi,hi6220-resets.h | 8 2 files changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi622

[PATCH v3 1/4] reset: hisilicon: Add media reset controller binding

2016-06-19 Thread Xinliang Liu
Add compatible for media reset controller. Actually, there are two reset controllers in hi6220 SoC: The peripheral reset controller bits are part of sysctrl registers. The media reset controller bits are part of mediactrl registers. So for the compatible part, it should contain "syscon" for both p

Re: [PATCH v2] gpio: add Intel WhiskeyCove GPIO driver

2016-06-19 Thread Bin Gao
> > Looks good. I have couple of minor comments, see below. Thanks for review again. > > > + * Copyright (C) 2015 Intel Corporation. All rights reserved. > > It is 2016 now isn't it? :-) Will fix this in v3. > > +#define DRV_NAME "bxt_wcove_gpio" > > Drop this. We have _TWO_ places using DRV_

[PATCH v3 3/4] reset: hisilicon: Change to syscon register access

2016-06-19 Thread Xinliang Liu
From: Chen Feng There are two reset controllers in hi6220 SoC: The peripheral reset controller bits are part of sysctrl registers. The media reset controller bits are part of mediactrl registers. So change register access to syscon way. And rename current reset controller to peripheral one. Sig

[PATCH v3 0/4] Add hi6220 media subsystem reset controller driver

2016-06-19 Thread Xinliang Liu
This patch set adds support for HiSilicon hi6220 SoC media subsystem reset controller. Change history: v3: - Split regmap register access change and mediactrl support. v2: - Update binding document for media reset controller. - Separate peripheral and media reset controller ops. Chen Feng (1):

[PATCH v3 4/4] reset: hisilicon: Add hi6220 media subsystem reset support

2016-06-19 Thread Xinliang Liu
Add hi6220 media subsystem reset controller. Signed-off-by: Chen Feng Signed-off-by: Xia Qing Signed-off-by: Xinliang Liu --- drivers/reset/hisilicon/hi6220_reset.c | 49 -- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/drivers/reset/hisilicon/h

RE: [PATCH v2] mmc: dw_mmc: remove UBSAN warning in dw_mci_setup_bus()

2016-06-19 Thread Seung-Woo Kim
Hi, > -Original Message- > From: Seung-Woo Kim [mailto:sw0312@samsung.com] > Sent: Monday, June 20, 2016 12:30 PM > To: 'Jaehoon Chung'; ulf.hans...@linaro.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Cc: sw0312@samsung.com > Subject: RE: [PATCH v2] mmc: dw_mmc

Re: [PATCH v6 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-19 Thread Frank Wang
Hi Heiko & Guenter, On 2016/6/20 11:00, Guenter Roeck wrote: On Sun, Jun 19, 2016 at 6:27 PM, Frank Wang wrote: Hi Guenter, On 2016/6/17 21:20, Guenter Roeck wrote: Hi Frank, On 06/16/2016 11:43 PM, Frank Wang wrote: Hi Guenter, On 2016/6/17 12:59, Guenter Roeck wrote: On 06/16/2016 07:

RE: [PATCH v2] mmc: dw_mmc: remove UBSAN warning in dw_mci_setup_bus()

2016-06-19 Thread Seung-Woo Kim
Hello Jaehoon, > -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Monday, June 20, 2016 11:34 AM > To: Seung-Woo Kim; ulf.hans...@linaro.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH v2] mmc: dw_mmc: remove UBSAN warni

Re: [PATCH 2/2] perf record: Add --dry-run option to check cmdline options

2016-06-19 Thread Wangnan (F)
On 2016/6/17 0:48, Arnaldo Carvalho de Melo wrote: Em Thu, Jun 16, 2016 at 08:02:41AM +, Wang Nan escreveu: With '--dry-run', 'perf record' doesn't do reall recording. Combine with llvm.dump-obj option, --dry-run can be used to help compile BPF objects for embedded platform. So these are

linux-next: manual merge of the iommu tree with the arm tree

2016-06-19 Thread Stephen Rothwell
Hi Joerg, Today's linux-next merge of the iommu tree got a conflict in: drivers/iommu/mtk_iommu.c between commit: d267804c8457 ("iommu: convert DT component matching to component_match_add_release()") from the arm tree and commit: da4d6e6d3b3e ("iommu/mediatek: Convert DT component mat

[PATCH v3 3/8] mfd: ac100: Add driver for X-Powers AC100 audio codec / RTC combo IC

2016-06-19 Thread Chen-Yu Tsai
The AC100 is a multifunction device with an audio codec subsystem and an RTC subsystem. These two subsystems share a common register space and host interface. Signed-off-by: Chen-Yu Tsai Acked-by: Lee Jones --- Changes since v2: - Dropped file name - Added copyright line. - Changed MODULE

[PATCH v3 0/8] mfd: ac100: Add support for X-Powers AC100 audio codec / RTC combo IC

2016-06-19 Thread Chen-Yu Tsai
Hi everyone, This series adds support for X-Powers' AC100 audio codec / RTC combo IC. This chip is found on Allwinner A80 SoC based boards, and is also part of the AXP813/AXP818 PMIC found with Allwinner A83T SoCs. The series focuses on the RTC side of the chip. The audio codec will be done later

[PATCH v3 4/8] rtc: ac100: Add RTC driver for X-Powers AC100

2016-06-19 Thread Chen-Yu Tsai
X-Powers AC100 is a codec / RTC combo chip. This driver supports the RTC sub-device. The RTC block also has clock outputs and non-volatile storage. Non-volatile storage wthin the RTC hardware is not supported. Clock output support is added in the next patch. Signed-off-by: Chen-Yu Tsai --- Chang

[PATCH v3 1/8] regmap: Support bulk writes for devices without raw formatting

2016-06-19 Thread Chen-Yu Tsai
When doing a bulk writes from a device which lacks raw I/O support we fall back to doing register at a time reads but we still use the raw formatters in order to render the data into the word size used by the device (since bulk reads still operate on the device word size rather than unsigned ints).

[PATCH v3 2/8] mfd: ac100: Add device tree bindings for X-Powers AC100 codec/RTC combo IC

2016-06-19 Thread Chen-Yu Tsai
Signed-off-by: Chen-Yu Tsai --- Changes since v2: - Fix interrupt line for ac100_codec in provided example. --- Documentation/devicetree/bindings/mfd/ac100.txt | 42 + 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ac100.txt

RE: [PATCH v3 1/2] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-06-19 Thread Yang, Wenyou
Hi Aleandre, > -Original Message- > From: Alexandre Belloni [mailto:alexandre.bell...@free-electrons.com] > Sent: 2016年6月17日 21:55 > To: Yang, Wenyou > Cc: Rob Herring ; Alan Stern ; > Greg Kroah-Hartman ; Ferre, Nicolas > ; Pawel Moll ; Mark Brown > ; Ian Campbell ; Kumar > Gala ; linux-

linux-next: manual merge of the tpmdd tree with Linus' tree

2016-06-19 Thread Stephen Rothwell
Hi Jarkko, Today's linux-next merge of the tpmdd tree got a conflict in: Documentation/devicetree/bindings/vendor-prefixes.txt between commit: 7aa5d38cfb77 ("of: Add Inforce Computing to vendor prefix list") 3eefa7e8cc85 ("dt-bindings: Add vendor prefix for TechNexion") from Linus' tree

Re: [PATCHv9-rebased2 01/37] mm, thp: make swapin readahead under down_read of mmap_sem

2016-06-19 Thread Hillf Danton
> > > > @@ -2401,11 +2430,18 @@ static void __collapse_huge_page_swapin(struct > > > > mm_struct *mm, > > > > continue; > > > > swapped_in++; > > > > ret = do_swap_page(mm, vma, _address, pte, pmd, > > > > -

  1   2   3   4   >