[PATCH 2/6] mm: mark all calls into the vmalloc subsystem as potentially sleeping

2016-10-17 Thread Christoph Hellwig
This is how everyone seems to already use them, but let's make that explicit. Signed-off-by: Christoph Hellwig --- mm/vmalloc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index d045a10..9830514 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.

[PATCH 4/6] mm: remove free_unmap_vmap_area_addr

2016-10-17 Thread Christoph Hellwig
Just inline it into the only caller. Signed-off-by: Christoph Hellwig --- mm/vmalloc.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 8cedfa0..2af2921 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -717,16 +717,6 @@ s

Re: [PATCH 1/2] media: platform: pxa_camera: add missing sensor power on

2016-10-17 Thread Robert Jarzmik
Robert Jarzmik writes: > During sensors binding, there is a window where the sensor is switched > off, while there is a call it to set a new format, which can end up in > an access to the sensor, especially an I2C based sensor. > > Remove this window by activating the sensor. Hi guys, I can't re

[PATCH 5/6] mm: turn vmap_purge_lock into a mutex

2016-10-17 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- mm/vmalloc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 2af2921..6c7eb8d 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -606,7 +606,7 @@ static atomic_t vmap_lazy_nr = ATOMIC_INIT(0);

[PATCH 1/6] mm: refactor __purge_vmap_area_lazy

2016-10-17 Thread Christoph Hellwig
Move the purge_lock synchronization to the callers, move the call to purge_fragmented_blocks_allcpus at the beginning of the function to the callers that need it, move the force_flush behavior to the caller that needs it, and pass start and end by value instead of by reference. No change in behavi

[PATCH 6/6] mm: add preempt points into __purge_vmap_area_lazy

2016-10-17 Thread Christoph Hellwig
From: Joel Fernandes Use cond_resched_lock to avoid holding the vmap_area_lock for a potentially long time. Signed-off-by: Joel Fernandes [hch: split from a larger patch by Joel, wrote the crappy changelog] Signed-off-by: Christoph Hellwig --- mm/vmalloc.c | 14 +- 1 file changed,

[PATCH 3/6] mm: remove free_unmap_vmap_area_noflush

2016-10-17 Thread Christoph Hellwig
Just inline it into the only caller. Signed-off-by: Christoph Hellwig --- mm/vmalloc.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 9830514..8cedfa0 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -697,22 +697,13 @@ static v

[RFC] reduce latency in __purge_vmap_area_lazy

2016-10-17 Thread Christoph Hellwig
Hi all, this is my spin at sorting out the long lock hold times in __purge_vmap_area_lazy. It is based on the patch from Joel sent this week. I don't have any good numbers for it, but it survived an xfstests run on XFS which is a significant vmalloc user. The changelogs could still be improved

Re: [RFC][PATCH v2] mount: In mark_umount_candidates and __propogate_umount visit each mount once

2016-10-17 Thread Eric W. Biederman
Andrei Vagin writes: > On Fri, Oct 14, 2016 at 01:29:18PM -0500, Eric W. Biederman wrote: >> >> Adrei Vagin pointed out that time to executue propagate_umount can go >> non-linear (and take a ludicrious amount of time) when the mount >> propogation trees of the mounts to be unmunted by a lazy un

Re: [PATCH] ARM: pxa: fix pxa25x interrupt init

2016-10-17 Thread Robert Jarzmik
Robert Jarzmik writes: > In the device-tree case, the root interrupt controller cannot be > accessed through the 6th coprocessor, contrary to pxa27x and pxa3xx > architectures. > > Fix it to behave as in non-devicetree builds. > > Fixes: 32f17997c130 ("ARM: pxa: remove irq init from dt machines")

[PATCH v4] time: alarmtimer: Add the trcepoints for alarmtimer

2016-10-17 Thread Baolin Wang
For system debugging, we sometimes want to know who sets one alarm timer, the time of the timer, when the timer started and fired and so on. Thus adding tracepoints can help us trace the alarmtimer information. For example, when we debug the system supend/resume, if the system is always resumed by

Re: [PATCH 25/28] s390: pci: don't print uninitialized data for debugging

2016-10-17 Thread Martin Schwidefsky
On Tue, 18 Oct 2016 00:16:13 +0200 Arnd Bergmann wrote: > gcc correctly warns about an incorrect use of the 'pa' variable > in case we pass an empty scatterlist to __s390_dma_map_sg: > > arch/s390/pci/pci_dma.c: In function '__s390_dma_map_sg': > arch/s390/pci/pci_dma.c:309:13: warning: 'pa' may

[PATCH] Revert "dmaengine: pxa_dma: add support for legacy transition"

2016-10-17 Thread Robert Jarzmik
This reverts commit c91134d9194478144ba579ca6efeddf628055650. The conversion of the pxa architecture is now finished for all drivers, so this functions has fullfilled its purpose and can now be removed. Signed-off-by: Robert Jarzmik --- drivers/dma/pxa_dma.c | 28 1

Re: [PATCH 2/5] staging/vchi: Fix build warnings when formatting pointers on aarch64.

2016-10-17 Thread Greg Kroah-Hartman
On Mon, Oct 17, 2016 at 04:38:20PM -0700, Eric Anholt wrote: > Greg Kroah-Hartman writes: > > > On Mon, Oct 17, 2016 at 12:44:03PM -0700, Eric Anholt wrote: > >> The code was generally using "%x" to print and "(unsigned int)" to > >> cast the pointers, but we have %p for printing pointers in the

Re: [PATCH] staging: dgnc: replace DGNC_VERIFY_BOARD macro

2016-10-17 Thread Greg KH
On Mon, Oct 17, 2016 at 11:46:36PM +0200, Fernando Apesteguía wrote: > On Mon, Oct 17, 2016 at 10:29 AM, Greg KH wrote: > > On Fri, Oct 14, 2016 at 07:22:57PM +0200, Fernando Apesteguia wrote: > >> The patch replaces the macro with a function (dgnc_get_board) and > >> substitutes the macro stateme

Re: [PATCHv2] cpufreq: fix overflow in cpufreq_table_find_index_dl()

2016-10-17 Thread Viresh Kumar
policy->freq_table selection. This results in > > BUG: unable to handle kernel paging request at 881019b469f8 > IP: [] acpi_cpufreq_target+0x4f/0x190 [acpi_cpufreq] > PGD 267f067 > PUD 0 > > Oops: [#1] PREEMPT SMP > CPU: 6 PID: 70 Comm: kworker/6

Re: [PATCH v2] mm: exclude isolated non-lru pages from NR_ISOLATED_ANON or NR_ISOLATED_FILE.

2016-10-17 Thread Minchan Kim
On Mon, Oct 17, 2016 at 10:42:45AM +0200, Michal Hocko wrote: > On Mon 17-10-16 08:06:18, Minchan Kim wrote: > > Hi Michal, > > > > On Sat, Oct 15, 2016 at 09:10:45AM +0200, Michal Hocko wrote: > > > On Sat 15-10-16 00:26:33, Minchan Kim wrote: > > > > On Fri, Oct 14, 2016 at 05:03:55PM +0200, Mic

Re: [RFC PATCH] mm, compaction: allow compaction for GFP_NOFS requests

2016-10-17 Thread Dave Chinner
On Mon, Oct 17, 2016 at 10:22:56AM +0200, Michal Hocko wrote: > On Mon 17-10-16 07:49:59, Dave Chinner wrote: > > On Thu, Oct 13, 2016 at 01:04:56PM +0200, Michal Hocko wrote: > > > On Thu 13-10-16 09:39:47, Michal Hocko wrote: > > > > On Thu 13-10-16 11:29:24, Dave Chinner wrote: > > > > > On Fri,

[PATCH v3 4/6] drm: bridge/analogix: switch Main-link and eDP PHY when enable/disable psr

2016-10-17 Thread Zain Wang
From: zain wang turn off Main-link and power down eDP PHY when enable psr, turn on Main-link and power up eDP PHY when disable psr. Signed-off-by: zain wang --- Changes in v3: - detecting PSR state at enable/disable_psr() avoid to make link training when sink in not PSR State. Changes in v2

[PATCH 6/6] drm: bridge/analogix: enable vop standby when entry PSR

2016-10-17 Thread Zain Wang
From: zain wang make VOP standby when entry PSR to save some power. Signed-off-by: zain wang --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 29 ++--- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 + drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 19

[PATCH v3 5/6] drm: bridge/analogix: add fast link train for eDP

2016-10-17 Thread Zain Wang
From: zain wang we would meet a short black screen when exit PSR with the full link training, In this case, we should use fast link train instead of full link training. Signed-off-by: zain wang --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 89 +- drivers/gpu/drm/

[PATCH v3 3/6] drm/bridge: analogix_dp: detect Sink PSR state after configuring the PSR

2016-10-17 Thread Zain Wang
From: Yakir Yang Make sure the request PSR state takes effect in analogix_dp_send_psr_spd() function, or print the sink PSR error state if we failed to apply the requested PSR setting. Signed-off-by: zain wang Signed-off-by: Yakir Yang --- Changes in v3: None Changes in v2: None drivers/gpu

RE: [PATCH] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-10-17 Thread Yoshihiro Shimoda
Hi Geert-san, > From: geert.uytterhoe...@gmail.com > Sent: Monday, October 17, 2016 9:28 PM > > Hi Shimoda-san, > > On Mon, Oct 17, 2016 at 9:10 AM, Yoshihiro Shimoda > wrote: > > This patch adds sysfs "otg_inputs" for usb role swap. This parameter > > is write-only and if you use them as the f

[PATCH v3 1/6] drm/bridge: analogix_dp: set psr activate/deactivate when enable/disable bridge

2016-10-17 Thread Zain Wang
From: zain wang There's a race between when bridge_disable and when vop_crtc_disable are called. If the flush timer triggers a new psr work between these, we will operate eDP without power shutdowned by bridge_disable. In this case, moving activate/deactivate to enable/disable bridge to avoid it.

[PATCH v3 2/6] drm/bridge: remove dp init from analogix_dp_bind

2016-10-17 Thread Zain Wang
From: zain wang phy_power_on() and analogix_dp_init_dp would be called in bridge_eanble, so remove them from analogix_dp_bind to be clear. Signed-off-by: zain wang --- Changes in v3: - remove changes before - remove phy_power_on() and analogix_dp_init_dp from analogix_dp_bind(). Changes in v2

Re: [patch] perf_event_open.2: PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT

2016-10-17 Thread Michael Kerrisk (man-pages)
Hi Vince, On 10/17/2016 04:50 PM, Vince Weaver wrote: > > Linux 4.2 reserved a new bit from the misc field in the perf_event_open > mmap sample buffer: > PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT > > Despite being reserved in the public include/uapi/linux/perf_event.h > header file, this bit is ne

[RESEND][PATCH] [media] atmel-isc: start dma in some scenario

2016-10-17 Thread Songjun Wu
If a new vb buf is added to vb queue, the queue is empty and steaming, dma should be started. Signed-off-by: Songjun Wu --- drivers/media/platform/atmel/atmel-isc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/me

[PATCH v3 0/6] Misc changes to Rockchip PSR drivers

2016-10-17 Thread Zain Wang
This serise of patches works for saving power on eDP PHY and VOP during PSR. BR, - Zain Changes in v3: - add new patch to support fast link training. - add new patch to make VOP standby when entry PSR. - Misc changes. Changes in v2: - add spin_lock to protect dpms_mode - misc changes. Yakir Yan

Re: [PATCH 2/5] KVM: x86: do not scan IRR twice on APICv vmentry

2016-10-17 Thread Wanpeng Li
2016-10-15 2:21 GMT+08:00 Paolo Bonzini : > Calling apic_find_highest_irr results in IRR being scanned twice, > once in vmx_sync_pir_from_irr and once in apic_search_irr. Change s/from/to > sync_pir_from_irr to do the RVI write and kvm_apic_update_irr to > compute the new RVI on the fly. > > Sig

[RFC] module: add 'module_ronx=off' boot cmdline parameter to disable ro/nx module mappings

2016-10-17 Thread AKASHI Takahiro
As making CONFIG_DEBUG_RODATA mandatory is a good idea, so will be for CONFIG_SET_MODULE_RONX. This patch adds a command line parameter, "module_ronx=," in order to make this configuration always on in the future, but still allowing for disabling read-only module mappings at boot time as "rodata="

[PATCH] Revert "clocksource/drivers/timer_sun5i: Replace code by clocksource_mmio_init"

2016-10-17 Thread Chen-Yu Tsai
This reverts commit 157dfadef832 ("clocksource/drivers/timer_sun5i: Replace code by clocksource_mmio_init"). struct clocksource is also used by the clk notifier callback, to unregister and re-register the clocksource with a different clock rate. clocksource_mmio_init does not pass back a pointer t

[PATCH] clk: sunxi-ng: sun6i-a31: Force AHB1 clock to use PLL6 as parent

2016-10-17 Thread Chen-Yu Tsai
On the A31, the DMA engine only works if AHB1 is clocked from PLL6. In addition, the hstimer is clocked from AHB1, and if AHB1 is clocked from the CPU clock, and cpufreq is working, we get an unstable timer. Force the AHB1 clock to use PLL6 as its parent. Previously this was done in the device tre

Re: [PATCH v5 02/23] of: device: Export of_device_{get_modalias, uvent_modalias} to modules

2016-10-17 Thread Chen-Yu Tsai
On Tue, Oct 18, 2016 at 9:56 AM, Stephen Boyd wrote: > The ULPI bus can be built as a module, and it will soon be > calling these functions when it supports probing devices from DT. > Export them so they can be used by the ULPI module. > > Acked-by: Rob Herring > Cc: > Signed-off-by: Stephen Boy

Re: [PATCH 02/28] [v2] mtd: mtk: avoid warning in mtk_ecc_encode

2016-10-17 Thread Boris Brezillon
On Tue, 18 Oct 2016 00:05:31 +0200 Arnd Bergmann wrote: > When building with -Wmaybe-uninitialized, gcc produces a silly false positive > warning for the mtk_ecc_encode function: > > drivers/mtd/nand/mtk_ecc.c: In function 'mtk_ecc_encode': > drivers/mtd/nand/mtk_ecc.c:402:15: error: 'val' may b

Re: [PATCH 10/28] UBI: fix uninitialized access of vid_hdr pointer

2016-10-17 Thread Boris Brezillon
Hi Arnd, On Tue, 18 Oct 2016 00:10:13 +0200 Arnd Bergmann wrote: > A rework of UBI that just appeared in linux-next during the merge > window introduced caused the recover_peb to use a variable that > is never initialized as seen from this gcc warning: > > drivers/mtd/ubi/eba.c: In function ‘re

Re: [PATCH 6/8] IB/hns: Replace counting semaphore event_sem with wait condition

2016-10-17 Thread Binoy Jayan
On 18 October 2016 at 01:59, Arnd Bergmann wrote: > On Monday, October 17, 2016 10:01:00 PM CEST Binoy Jayan wrote: >> --- a/drivers/infiniband/hw/hns/hns_roce_cmd.c >> +++ b/drivers/infiniband/hw/hns/hns_roce_cmd.c >> @@ -248,10 +248,14 @@ static int hns_roce_cmd_mbox_wait(struct hns_roce_dev >>

Re: [PATCH V3 00/11] block-throttle: add .high limit

2016-10-17 Thread Kyle Sanderson
Not to compound upon this again. However if BFQ isn't suitable to replace CFQ for high I/O workloads (I've yet to see 20k IOPS on any reasonably sized SAN (SC4020 / v5000, etc)), can't we at-least default BFQ to become the default I/O scheduler for people otherwise requesting CFQ? Paolo has had a t

Re: [PATCH 05/28] ext2: avoid bogus -Wmaybe-uninitialized warning

2016-10-17 Thread Christoph Hellwig
Thanks Arnd, this looks fine to me: Reviewed-by: Christoph Hellwig

Re: [PATCH 00/28] Reenable maybe-uninitialized warnings

2016-10-17 Thread Christoph Hellwig
On Tue, Oct 18, 2016 at 12:03:28AM +0200, Arnd Bergmann wrote: > This is a set of patches that I hope to get into v4.9 in some form > in order to turn on the -Wmaybe-uninitialized warnings again. Hi Arnd, I jsut complained to Geert that I was introducing way to many bugs or pointless warnings for

[PATCH] Documentation/RCU: Fix minor typo

2016-10-17 Thread Pranith Kumar
deference should actually be dereference. Signed-off-by: Pranith Kumar --- Documentation/RCU/whatisRCU.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/RCU/whatisRCU.txt b/Documentation/RCU/whatisRCU.txt index 2044227..5cbd8b2 100644 --- a/Documentation/RCU/w

Bug in fua code

2016-10-17 Thread Kent Overstreet
Ming, I recently discovered a bug in the FUA code - a recent bcachefs change exposed it - and my best guess is it's related to your recent changes to blk-flush.c. What I'm seeing is if all writes are issued as FUA writes, in a short period of time the request queue get stuck - writes are on the q

[PATCH 7/7] ufs-qcom: phy/hcd: Refactoring phy clock handling

2016-10-17 Thread Vivek Gautam
Add phy clock enable code to phy_power_on/off callbacks, and remove explicit calls to enable these phy clocks from the ufs-qcom hcd driver. Signed-off-by: Vivek Gautam Reviewed-by: Subhash Jadavani --- drivers/phy/phy-qcom-ufs.c | 12 +++- drivers/scsi/ufs/ufs-qcom.c | 15 -

[PATCH 6/7] phy: qcom-ufs-qmp-xx: Move clock and regulator init out of phy init

2016-10-17 Thread Vivek Gautam
The phy init is meant to do phy initialization rather than just getting the clock and regulator. Move these clock and regulator get to probe(), to make room for actual phy initialization sequence. Signed-off-by: Vivek Gautam Reviewed-by: Subhash Jadavani --- drivers/phy/phy-qcom-ufs-qmp-14nm.c

[PATCH 4/7] phy: qcom-ufs-qmp-xx: Discard remove callback for drivers.

2016-10-17 Thread Vivek Gautam
remove() callback does a phy_exit() only and nothing else now. The phy_exit() over the generic phy is called from the phy consumer, and phy provider driver should not explicitly need to call any phy_exit(). So discard the remove callback for qcom-ufs phy platform drivers. Signed-off-by: Vivek Gaut

[PATCH 2/7] phy: qcom-ufs: Remove unnecessary BUG_ON

2016-10-17 Thread Vivek Gautam
BUG_ON() are not preferred in the driver, plus the variable on which BUG_ON is asserted is already checked in the code before passing. Signed-off-by: Vivek Gautam Reviewed-by: Subhash Jadavani --- drivers/phy/phy-qcom-ufs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/phy/phy-qc

[PATCH 3/7] phy: qcom-ufs: Use devm sibling of kstrdup for regulator names

2016-10-17 Thread Vivek Gautam
This helps us in avoiding any requirement for kfree() operation to be called exclusively over the allocated string pointer. Signed-off-by: Vivek Gautam Reviewed-by: Subhash Jadavani --- drivers/phy/phy-qcom-ufs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/ph

[PATCH 5/7] phy: qcom-ufs: Cleanup clock and regulator initialization

2016-10-17 Thread Vivek Gautam
Different methods pass around generic phy pointer to extract device pointer. Instead, pass the device pointer directly between function calls. Signed-off-by: Vivek Gautam Reviewed-by: Subhash Jadavani --- drivers/phy/phy-qcom-ufs-i.h| 6 +-- drivers/phy/phy-qcom-ufs-qmp-14nm.c | 4 +-

[PATCH 1/7] phy: qcom-ufs: remove failure when rx/tx_iface_clk are absent

2016-10-17 Thread Vivek Gautam
From: Yaniv Gardi Since in future UFS Phy's the tx_iface_clk and rx_iface_clk are no longer exist, we should not fail when their initialization fail, but rather just report with debug message. Signed-off-by: Yaniv Gardi Signed-off-by: Vivek Gautam --- drivers/phy/phy-qcom-ufs.c | 15 +

[PATCH 0/7] ufs-qcom: phy/hcd: Clean up qcom-ufs phy and ufs-qcom hcd

2016-10-17 Thread Vivek Gautam
These patches cleanup the ufs phy driver to an extent. Subsequent patches will target to clean the phy_init() of these qcom-ufs phy drivers in order to get rid of a number of exported APIs that phy drivers expose for ufs-qcom hcd driver to use. These patches are based on linux-phy next branch, and

Re: [PATCH v2] hwmon: (adm1275) Enable adm1278 VOUT sampling

2016-10-17 Thread Joel Stanley
On Tue, Oct 18, 2016 at 3:50 AM, Guenter Roeck wrote: > On Mon, Oct 17, 2016 at 06:38:53PM +1030, Joel Stanley wrote: >> From: Yi Li >> >> The adm1278 can optionally monitor the VOUT pin. This functioanltiy is >> not enabled at reset, so PMON_CONFIG needs to be modified in order to >> enable it.

Re: [PATCH 00/32] Create an User's manual and improve development-process book

2016-10-17 Thread Markus Heiser
Hi Jon, Am 18.10.2016 um 00:43 schrieb Jonathan Corbet : > I've only been able to take a quick look at these - I'm buried fairly deep > at the moment. A few superficial thoughts. > > On Mon, 17 Oct 2016 14:55:37 -0200 > Mauro Carvalho Chehab wrote: > >> In my opinion, it would be better to mo

Re: [PATCH] MAINTAINERS: mmc: Move the mmc tree to kernel.org

2016-10-17 Thread Jaehoon Chung
On 10/18/2016 01:08 PM, Shawn Lin wrote: > 在 2016/10/18 11:52, Jaehoon Chung 写道: >> On 10/18/2016 12:19 PM, Shawn Lin wrote: >>> Hi Ulf, >>> >>> On 2016/10/17 20:54, Ulf Hansson wrote: Signed-off-by: Ulf Hansson --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH] MAINTAINERS: mmc: Move the mmc tree to kernel.org

2016-10-17 Thread Shawn Lin
在 2016/10/18 11:52, Jaehoon Chung 写道: On 10/18/2016 12:19 PM, Shawn Lin wrote: Hi Ulf, On 2016/10/17 20:54, Ulf Hansson wrote: Signed-off-by: Ulf Hansson --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index a009e00..e685724 10064

Re: [PATCH] MAINTAINERS: mmc: Move the mmc tree to kernel.org

2016-10-17 Thread Jaehoon Chung
On 10/18/2016 12:19 PM, Shawn Lin wrote: > Hi Ulf, > > On 2016/10/17 20:54, Ulf Hansson wrote: >> Signed-off-by: Ulf Hansson >> --- >> MAINTAINERS | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index a009e00..e685724 100644 >> --- a/MAINT

[PATCH net-next] r8152: add new products of Lenovo

2016-10-17 Thread Hayes Wang
Add the following four products of Lenovo and sort the order of the list. VID PID 0x17ef 0x3062 0x17ef 0x3069 0x17ef 0x720c 0x17ef 0x7214 Signed-off-by: Hayes Wang --- drivers/net/usb/cdc_ether.c | 28 ++

[PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106

2016-10-17 Thread Deepa Dinamani
struct timeval is not y2038 safe. All usage of timeval in the kernel will be replaced by y2038 safe structures. struct input_event maintains time for each input event. Real time timestamps are not ideal for input as this time can go backwards as noted in the patch a80b83b7b8 by John Stultz. Hence,

[PATCH v2 1/4] uinput: Add ioctl for using monotonic/ boot times

2016-10-17 Thread Deepa Dinamani
struct timeval which is part of struct input_event to maintain the event times is not y2038 safe. Real time timestamps are also not ideal for input_event as this time can go backwards as noted in the patch a80b83b7b8 by John Stultz. Arnd Bergmann suggested deprecating real time and using monotoni

[PATCH v2 4/4] input: serio: Replace timeval by timespec64

2016-10-17 Thread Deepa Dinamani
struct timeval is not y2038 safe. All references to timeval will be deleted from the kernel to make it y2038 safe. Replace its uses by y2038 safe struct timespec64. The timestamps changed here only keep track of delta times. These timestamps are also internal to kernel. Hence, monotonic times are

[PATCH v2 2/4] input: evdev: Replace timeval with timespec64

2016-10-17 Thread Deepa Dinamani
struct timeval is not y2038 safe. All references to timeval in the kernel will be replaced by y2038 safe structures. Replace all references to timeval with y2038 safe struct timespec64 here. struct input_event will be changed in a different patch. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd

[PATCH v2 0/4] Make input drivers y2038 safe

2016-10-17 Thread Deepa Dinamani
Reposting the series as I did not hear comments from the maintainers. The series is aimed at making input events y2038 safe. It extends the lifetime of the realtime timestamps in the events to year 2106. The plan is to deprecate realtime timestamps anyway as they are not appropriate for these time

RE: USB GADGET: have a question about usb2eth

2016-10-17 Thread Lipengcheng
> -Original Message- > From: Felipe Balbi [mailto:ba...@kernel.org] > Sent: Monday, October 17, 2016 5:29 PM > To: Lipengcheng; Peter Chen > Cc: gre...@linuxfoundation.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: RE: USB GADGET: have a question about usb2eth

Re: [PATCH] MAINTAINERS: mmc: Move the mmc tree to kernel.org

2016-10-17 Thread Shawn Lin
Hi Ulf, On 2016/10/17 20:54, Ulf Hansson wrote: Signed-off-by: Ulf Hansson --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index a009e00..e685724 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8164,7 +8164,7 @@ F:include/lin

Re: [PATCH v5 2/3] z3fold: remove redundant locking

2016-10-17 Thread Vitaly Wool
On Mon, Oct 17, 2016 at 10:48 PM, Dan Streetman wrote: > On Sat, Oct 15, 2016 at 7:59 AM, Vitaly Wool wrote: >> The per-pool z3fold spinlock should generally be taken only when >> a non-atomic pool variable is modified. There's no need to take it >> to map/unmap an object. > > no. it absolutely

Re: [PATCH v2] MAINTAINERS: add myself as Marvell berlin SoC maintainer

2016-10-17 Thread Olof Johansson
On Thu, Sep 29, 2016 at 06:51:20PM +0800, Jisheng Zhang wrote: > I would like to take maintainership for Marvell berlin SoCs. > > Signed-off-by: Jisheng Zhang > Acked-by: Sebastian Hesselbarth Applied to fixes. Thanks. -Olof

Re: [PATCH vmalloc] reduce purge_lock range and hold time of

2016-10-17 Thread zhouxianrong
hey Hellwig: cond_resched_lock is a good choice. i mixed the cond_resched_lock and batch to balance of realtime and performance and resubmit this patch. On 2016/10/16 0:55, Christoph Hellwig wrote: On Sat, Oct 15, 2016 at 10:12:48PM +0800, zhouxianr...@huawei.com wrote: From: z00281421

Re: [PATCH v2 1/2] watchdog: Introduce arch_watchdog_nmi_enable and arch_watchdog_nmi_disable

2016-10-17 Thread Babu Moger
Don, On 10/17/2016 12:31 PM, Don Zickus wrote: On Thu, Oct 13, 2016 at 01:38:01PM -0700, Babu Moger wrote: Currently we do not have a way to enable/disable arch specific watchdog handlers if it was implemented by any of the architectures. This patch introduces new functions arch_watchdog_nmi_e

Re: [PATCH v5 3/3] z3fold: add shrinker

2016-10-17 Thread Vitaly Wool
Hi Dan, On Tue, Oct 18, 2016 at 4:06 AM, Dan Streetman wrote: > On Sat, Oct 15, 2016 at 8:05 AM, Vitaly Wool wrote: >> This patch implements shrinker for z3fold. This shrinker >> implementation does not free up any pages directly but it allows >> for a denser placement of compressed objects whic

Re: [PATCH v4] usb: dwc3: Wait for control tranfer completed when stopping gadget

2016-10-17 Thread Baolin Wang
Hi, On 17 October 2016 at 19:53, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >>> Baolin Wang writes: When we change the USB function with configfs dynamically, we possibly met this situation: one core is doing the control transfer, another core is trying to un

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)

2016-10-17 Thread Michael Ellerman
Balbir Singh writes: > On 17/10/16 23:24, Michael Ellerman wrote: >> That happened because we haven't yet called set_cpu_numa_node() for the >> non-boot >> cpus, because that happens in smp_prepare_cpus(), and >> workqueue_init_early() is called much earlier than that. >> >> This doesn't trigger

[PATCH vmalloc] reduce purge_lock range and hold time of vmap_area_lock

2016-10-17 Thread zhouxianrong
From: z00281421 Signed-off-by: z00281421 --- mm/vmalloc.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 91f44e7..e9c9c04 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -661,13 +661,18 @@ static void __purge_vmap_area_lazy(uns

Re: [PATCH] staging: dgnc: Replace CamelCase namings with underscores.

2016-10-17 Thread Pankaj Bharadiya
On Mon, Oct 17, 2016 at 1:16 PM, Greg KH wrote: > > On Mon, Oct 17, 2016 at 01:13:55AM +0530, Pankaj Bharadiya wrote: > > Replace CamelCase names with underscores to comply with the standard > > kernel coding style. > > > > Signed-off-by: Pankaj Bharadiya > > --- > > drivers/staging/dgnc/dgnc_tt

linux-next: Tree for Oct 18

2016-10-17 Thread Stephen Rothwell
Hi all, Changes since 20161017: The drm-intel tree gained build failures so I used the version from next-20161017. The akpm-current tree still had its build failures for which I applied 2 patches. Non-merge commits (relative to Linus' tree): 910 1213 files changed, 32579 insertions(+),

Re: [PATCH v3] time: alarmtimer: Add the trcepoints for alarmtimer

2016-10-17 Thread Baolin Wang
On 18 October 2016 at 03:03, Steven Rostedt wrote: > On Tue, 11 Oct 2016 18:48:16 +0800 > Baolin Wang wrote: > >> --- >> Changes since v2: >> - Save time as s64 type. >> - Remove 'process_name' parameter and add 'now' parameter. >> - Rename the trace event name. >> - Remove restart trace even

Re: [PATCH 2/2] builddeb: allow building without headers/firmware packages

2016-10-17 Thread Andrew Donnellan
On 26/08/16 18:17, Andrew Donnellan wrote: Currently, the deb-pkg and bindeb-pkg targets create multiple packages for the kernel binaries, headers, userspace headers and firmware. For developers who generate Debian packages as part of their development workflows, it's often not necessary to gene

Re: [PATCH 07/28] ceph: avoid false positive maybe-uninitialized warning

2016-10-17 Thread Yan, Zheng
> On 18 Oct 2016, at 06:08, Arnd Bergmann wrote: > > A recent rework removed the initialization of the local 'root' > variable that is returned from ceph_real_mount: > > fs/ceph/super.c: In function 'ceph_mount': > fs/ceph/super.c:1016:38: error: 'root' may be used uninitialized in this > func

Re: [PATCH v5 3/3] z3fold: add shrinker

2016-10-17 Thread Dan Streetman
On Sat, Oct 15, 2016 at 8:05 AM, Vitaly Wool wrote: > This patch implements shrinker for z3fold. This shrinker > implementation does not free up any pages directly but it allows > for a denser placement of compressed objects which results in > less actual pages consumed and higher compression rati

[PATCH v5 02/23] of: device: Export of_device_{get_modalias,uvent_modalias} to modules

2016-10-17 Thread Stephen Boyd
The ULPI bus can be built as a module, and it will soon be calling these functions when it supports probing devices from DT. Export them so they can be used by the ULPI module. Acked-by: Rob Herring Cc: Signed-off-by: Stephen Boyd --- drivers/of/device.c | 2 ++ 1 file changed, 2 insertions(+)

[PATCH v5 03/23] usb: ulpi: Support device discovery via DT

2016-10-17 Thread Stephen Boyd
The qcom HSIC ULPI phy doesn't have any bits set in the vendor or product ID registers. This makes it impossible to make a ULPI driver match against the ID registers. Add support to discover the ULPI phys via DT help alleviate this problem. In the DT case, we'll look for a ULPI bus node underneath

[PATCH v5 10/23] usb: chipidea: Consolidate extcon notifiers

2016-10-17 Thread Stephen Boyd
The two extcon notifiers are almost the same except for the variable name for the cable structure and the id notifier inverts the cable->state logic. Make it the same and replace two functions with one to save some lines. This also makes it so that the id cable state is true when the id pin is pull

[PATCH v5 16/23] usb: chipidea: msm: Mux over secondary phy at the right time

2016-10-17 Thread Stephen Boyd
We need to pick the correct phy at runtime based on how the SoC has been wired onto the board. If the secondary phy is used, take it out of reset and mux over to it by writing into the TCSR register. Make sure to do this on reset too, because this register is reset to the default value (primary phy

[PATCH v5 13/23] usb: chipidea: msm: Rely on core to override AHBBURST

2016-10-17 Thread Stephen Boyd
The core framework already handles setting this parameter with a platform quirk. Add the appropriate flag so that we always set AHBBURST to 0. Technically DT should be doing this, but we always do it for msm chipidea devices so setting the flag in the driver works just as well. If the burst needs t

[PATCH v5 15/23] usb: chipidea: msm: Add proper clk and reset support

2016-10-17 Thread Stephen Boyd
The msm chipidea controller uses two main clks, an AHB clk to read/write the MMIO registers and a core clk called the system clk that drives the controller itself. Add support for these clks as they're required in all designs. Also add support for an optional third clk that we need to turn on to r

[PATCH v5 18/23] usb: chipidea: msm: Make platform data driver local instead of global

2016-10-17 Thread Stephen Boyd
If two devices are probed with this same driver, they'll share the same platform data structure, while the chipidea core layer writes and modifies it. This can lead to interesting results especially if one device is an OTG type chipidea controller and another is a host. Let's create a copy of this

[PATCH v5 04/23] usb: chipidea: Only read/write OTGSC from one place

2016-10-17 Thread Stephen Boyd
With the id and vbus detection done via extcon we need to make sure we poll the status of OTGSC properly by considering what the extcon is saying, and not just what the register is saying. Let's move this hw_wait_reg() function to the only place it's used and simplify it for polling the OTGSC regis

[PATCH v5 19/23] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-10-17 Thread Stephen Boyd
The MSM chipidea wrapper has two bits that are used to reset the first or second phy. Add support for these bits via the reset controller framework, so that phy drivers can reset their hardware at the right time during initialization. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: St

[PATCH v5 11/23] usb: chipidea: Emulate OTGSC interrupt enable path

2016-10-17 Thread Stephen Boyd
In the case of an extcon-usb-gpio device being used with the chipidea driver we'll sometimes miss the BSVIS event in the OTGSC register. Consider the case where we don't have a cable attached and the id pin is indicating "host" mode. When we plug in the usb cable for "device" mode a gpio goes high

[PATCH v5 12/23] usb: chipidea: msm: Mark device as runtime pm active

2016-10-17 Thread Stephen Boyd
We're not properly marking the glue layer/wrapper device as runtime active, so runtime PM believes that the hardware state is inactive when we call pm_runtime_enable() in this driver. This causes a problem when the glue layer has a power domain associated with it, because runtime PM will go and dis

[PATCH v5 17/23] usb: chipidea: msm: Restore wrapper settings after reset

2016-10-17 Thread Stephen Boyd
When the RESET bit is set in the USBCMD register it resets quite a few of the wrapper's registers to their reset state. This includes the GENCONFIG and GENCONFIG2 registers. Currently this is done by the usb phy and ehci-msm drivers writing into the controller wrapper's MMIO address space. Let's co

[PATCH v5 20/23] usb: chipidea: msm: Handle phy power states

2016-10-17 Thread Stephen Boyd
The ULPI phy on qcom platforms needs to be initialized and powered on after a USB reset and before we toggle the run/stop bit. Otherwise, the phy locks up and doesn't work properly. Hook the phy initialization into the RESET event and the phy power off into the STOPPED event. Acked-by: Peter Chen

[PATCH v5 21/23] usb: chipidea: msm: Be silent on probe defer errors

2016-10-17 Thread Stephen Boyd
If something fails in ci_hdrc_add_device() due to probe defer, we shouldn't print an error message. Be silent in this case as we'll try probe again later. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 3 ++- 1 file changed, 2 i

[PATCH v5 14/23] usb: chipidea: msm: Use hw_write_id_reg() instead of writel

2016-10-17 Thread Stephen Boyd
The MSM_USB_BASE macro trick is not very clear, and we're using it for only one register write so let's just move to using hw_write_id_reg() and passing the ci pointer instead. That clearly shows what offset we're using and avoids needing to include the msm_hsusb_hw.h file when we're going to delet

[PATCH v5 05/23] usb: chipidea: Handle extcon events properly

2016-10-17 Thread Stephen Boyd
We're currently emulating the vbus and id interrupts in the OTGSC read API, but we also need to make sure that if we're handling the events with extcon that we don't enable the interrupts for those events in the hardware. Therefore, properly emulate this register if we're using extcon, but don't en

Re: [PATCH 1/3] tools lib traceevent: Add -O2 option to traceevent

2016-10-17 Thread Namhyung Kim
Hi Honggyu, You need to CC relevant maintainers when you send patches to LKML. For the libtraceevent, they are Arnaldo and Steven. You can use scripts/get_maintainer.pl for this job later. In addition running scripts/checkpatch.pl before sending patches is a good habit. Arnaldo and Steve, This

[PATCH v5 06/23] usb: chipidea: Add platform flag for wrapper phy management

2016-10-17 Thread Stephen Boyd
The ULPI phy on qcom platforms needs to be initialized and powered on after a USB reset and before we toggle the run/stop bit. Otherwise, the phy locks up and doesn't work properly. Therefore, add a flag to skip any phy power management in the core layer, leaving it up to the glue driver to manage.

[PATCH v5 08/23] usb: chipidea: Remove locking in ci_udc_start()

2016-10-17 Thread Stephen Boyd
We don't call hw_device_reset() with the ci->lock held, so it doesn't seem like this lock here is protecting anything. Let's just remove it. This allows us to call sleeping functions like phy_init() from within the CI_HDRC_CONTROLLER_RESET_EVENT hook. Acked-by: Peter Chen Cc: Greg Kroah-Hartman

[PATCH v5 23/23] phy: Add support for Qualcomm's USB HS phy

2016-10-17 Thread Stephen Boyd
The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I Cc: Cc: Rob Herring Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 86 +++ drivers/phy/Kconfig| 8 + drivers/phy/Makefil

[PATCH v5 09/23] usb: chipidea: Add support for ULPI PHY bus

2016-10-17 Thread Stephen Boyd
Some phys for the chipidea controller are controlled via the ULPI viewport. Add support for the ULPI bus so that these sorts of phys can be probed and read/written automatically without having to duplicate the viewport logic in each phy driver. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Cc: Hei

[PATCH v5 07/23] usb: chipidea: Notify events when switching host mode

2016-10-17 Thread Stephen Boyd
The chipidea/udc.c file sends a CI_HDRC_CONTROLLER_RESET_EVENT to the wrapper drivers when it calls hw_device_reset(), but that function is not called from chipidea/host.c. And the udc.c file sends the CI_HDRC_CONTROLLER_STOPPED_EVENT but the host.c file doesn't do anything. The intent of the rese

[PATCH v5 22/23] phy: Add support for Qualcomm's USB HSIC phy

2016-10-17 Thread Stephen Boyd
The HSIC USB controller on qcom SoCs has an integrated all digital phy controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I Acked-by: Rob Herring Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hsic-phy.txt | 65 + drivers/phy/Kconfig

[PATCH v5 00/23] Support qcom's HSIC USB and rewrite USB2 HS support

2016-10-17 Thread Stephen Boyd
The state of USB ChipIdea support on Qualcomm's platforms is not great. The DT description of these devices requires up to three different nodes for what amounts to be the same hardware block, when there should really only be one. Furthermore, the "phy" driver that is in mainline (phy-msm-usb.c) du

  1   2   3   4   5   6   7   8   9   10   >