Re: [PATCH v2] dmaengine: fsl-edma: add PM suspend/resume support

2015-08-16 Thread Nigel Cunningham
Hi Yao. On 17/08/15 13:59, Yao Yuan wrote: > On Sat, Aug 15, 2015 at 7:48 AM, pku.leo < pku@gmail.com > wrote: >> On Fri, Aug 14, 2015 at 1:24 AM, Yao Yuan wrote: >>> Hi Leo, >>> >>> Thanks for your review. >>> About those two methods for DMA suspend that you have mentioned. We >> have a lot

Re: [PATCH] mmc: enable mmc host device to suspend/resume asynchronously

2015-08-16 Thread Adrian Hunter
On 17/08/15 06:36, Fu, Zhonghui wrote: > > Hi, > > Any comments are welcome. Same comments as here: http://marc.info/?l=linux-kernel&m=143979428424353&w=2 > > > Thanks, > Zhonghui > > On 2015/8/3 20:39, Fu, Zhonghui wrote: >> Enable mmc host device to suspend/resume asynchronously.

Re: [PATCH v2 08/16] x86/efi: Carrying hibernation key by setup data

2015-08-16 Thread Nigel Cunningham
Hi all. I've rejoined LKML, so I'll try to help with reviewing PM patches. I'd forgotten how much it is a case of sipping at a fire hydrant! Regards, Nigel On 17/08/15 07:23, Jiri Kosina wrote: > On Sat, 15 Aug 2015, Pavel Machek wrote: > >>> For forwarding hibernation key from EFI stub to boo

Re: [PATCH] mmc/sdhci-acpi: enable sdhci-acpi device to suspend/resume asynchronously

2015-08-16 Thread Adrian Hunter
On 17/08/15 06:38, Fu, Zhonghui wrote: > > Hi, > > Any comments are welcome. Same comments as here: http://marc.info/?l=linux-kernel&m=143979428424353&w=2 > > > Thanks, > Zhonghui > > On 2015/8/3 21:10, Fu, Zhonghui wrote: >> Enable sdhci-acpi device to suspend/resume asynchronously

Re: [PATCH] MMC/SDIO: enable SDIO device to suspend/resume asynchronously

2015-08-16 Thread Adrian Hunter
On 17/08/15 06:26, Fu, Zhonghui wrote: > > Hi, > > Any comments are welcome. > > > Thanks, > Zhonghui > > On 2015/7/30 15:40, Fu, Zhonghui wrote: >> Enable SDIO card and function device to suspend/resume asynchronously. >> This can improve system suspend/resume speed. For me, it needs more ex

Re: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23

2015-08-16 Thread Shawn Lin
On 2015/8/15 20:14, LIYONG wrote: Thanks Shawn. Please help to check the below in the mmc_blk_rw_rq_prep: if (do_rel_wr) mmc_apply_rel_rw(brq, card, req); I think we need to set the do_rel_wr to false( at the beginning of this function) if the card does not support the C

Re: [PATCH v3 6/6] iio: bmg160: Add SPI driver

2015-08-16 Thread Markus Pargmann
Hi, On Sat, Aug 15, 2015 at 04:03:24PM +0100, Jonathan Cameron wrote: > On 12/08/15 16:19, Peter Meerwald wrote: > > On Wed, 12 Aug 2015, Markus Pargmann wrote: > > > >> Signed-off-by: Markus Pargmann > > > > the spelling of Bosch is inconsistent, sometimes it is BOSCH, I'd prefer > > the form

Re: [PATCH v3 6/6] iio: bmg160: Add SPI driver

2015-08-16 Thread Markus Pargmann
On Wed, Aug 12, 2015 at 05:19:37PM +0200, Peter Meerwald wrote: > On Wed, 12 Aug 2015, Markus Pargmann wrote: > > > Signed-off-by: Markus Pargmann > > the spelling of Bosch is inconsistent, sometimes it is BOSCH, I'd prefer > the former Right, I can fix it in this patch, yes. > > please find

[PATCH] of: fdt: mark unflattened tree as detached

2015-08-16 Thread Michal Suchanek
The tree returned from of_fdt_unflatten_tree cannot be attached to the live tree because it is not marked as detached so mark it as such. The dt resolver checks the flag and refuses to process the tree otherwise. Signed-off-by: Michal Suchanek --- drivers/of/fdt.c | 12 +--- 1 file chang

Re: [RFT PATCH] arm: omap1_defconfig: convert to use libata PATA drivers

2015-08-16 Thread Tony Lindgren
* Bartlomiej Zolnierkiewicz [150814 10:10]: > IDE subsystem has been deprecated since 2009 and the majority > (if not all) of Linux distributions have switched to use > libata for ATA support exclusively. However there are still > some users (mostly old or/and embedded non-x86 systems) that > hav

Re: [RFC PATCH v5 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-16 Thread Shawn Lin
在 2015/8/17 5:10, Doug Anderson 写道: Heiko, On Fri, Aug 14, 2015 at 3:13 PM, Heiko Stübner wrote: Hi Shawn, Am Freitag, 14. August 2015, 16:34:35 schrieb Shawn Lin: DesignWare MMC Controller can supports two types of DMA mode: external dma and internal dma. We get a RK312x platform integrated

Re: [RFC PATCH] driver: base: memory: Maintain correct mem->end_section_nr when memory block is partially filled

2015-08-16 Thread Bharata B Rao
On Fri, Aug 14, 2015 at 10:27:53AM -0500, Nathan Fontenot wrote: > On 08/13/2015 04:17 AM, Bharata B Rao wrote: > > Last section of memory block is always initialized to > > > > mem->start_section_nr + sections_per_block - 1 > > > > which will not be true for a section that doesn't contain sectio

[PATCH 01/10] nbd: Fix timeout detection

2015-08-16 Thread Markus Pargmann
At the moment the nbd timeout just detects hanging tcp operations. This is not enough to detect a hanging or bad connection as expected of a timeout. This patch redesigns the timeout detection to include some more cases. The timeout is now in relation to replies from the server. If the server does

[PATCH 05/10] nbd: Move clear queue debug message

2015-08-16 Thread Markus Pargmann
This message was a warning without a reason. This patch moves it into nbd_clear_que and transforms it to a debug message. Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 8bc

[PATCH 07/10] nbd: Add debugfs entries

2015-08-16 Thread Markus Pargmann
Add some debugfs files that help to understand the internal state of NBD. This exports the different sizes, flags, tasks and so on. Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 178 +++- 1 file changed, 177 insertions(+), 1 deletion(-)

[PATCH 03/10] nbd: restructure sock_shutdown

2015-08-16 Thread Markus Pargmann
This patch restructures sock_shutdown to avoid having the main code path in an if block. Signed-off-by: Markus Pargmann Acked-by: Pavel Machek --- drivers/block/nbd.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c inde

[PATCH 06/10] nbd: Remove variable 'pid'

2015-08-16 Thread Markus Pargmann
This patch uses nbd->task_recv to determine the value of the previously used variable 'pid' for sysfs. Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 5

[PATCH 08/10] nbd: Change 'disconnect' to be boolean

2015-08-16 Thread Markus Pargmann
Signed-off-by: Markus Pargmann Acked-by: Pavel Machek --- drivers/block/nbd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 188fe0d2b1ac..44160a9e493e 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -57,

[PATCH 02/10] nbd: sock_shutdown, remove conditional lock

2015-08-16 Thread Markus Pargmann
Move the conditional lock from sock_shutdown into the surrounding code. Signed-off-by: Markus Pargmann Acked-by: Pavel Machek --- drivers/block/nbd.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 7b9ae7a65c1e

[PULL 00/10] NBD updates for 4.3

2015-08-16 Thread Markus Pargmann
Hi Jens, I hope this is not too late. Here are some NBD updates. The most interesting one is probably the first patch, which improves the timeout detection of NBD. The timout covers now the last reaction of the server. If there are open requests and we don't receive anything from the server withi

[PATCH 09/10] nbd: Rename functions for clearness of recv/send path

2015-08-16 Thread Markus Pargmann
This patch renames functions so that it is clear what the function does. Otherwise it is not directly understandable what for example 'do_it' means. Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/blo

[PATCH 10/10] nbd: flags is a u32 variable

2015-08-16 Thread Markus Pargmann
The flags variable is used as u32 variable. This patch changes the type to be u32. Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 9862c3e64ff2..1176a3b27a7e 100644 --- a/dr

[PATCH 04/10] nbd: Remove 'harderror' and propagate error properly

2015-08-16 Thread Markus Pargmann
Instead of a variable 'harderror' we can simply try to correctly propagate errors to the userspace. This patch removes the harderror variable and passes errors through error pointers and nbd_do_it back to the userspace. Signed-off-by: Markus Pargmann Acked-by: Pavel Machek --- drivers/block/nb

Re: [RFC PATCH v2] memory-barriers: remove smp_mb__after_unlock_lock()

2015-08-16 Thread Paul E. McKenney
On Mon, Aug 17, 2015 at 02:06:07PM +1000, Michael Ellerman wrote: > On Wed, 2015-08-12 at 08:43 -0700, Paul E. McKenney wrote: > > On Wed, Aug 12, 2015 at 02:44:15PM +0100, Will Deacon wrote: > > > Hello Paul, > > > > > > On Fri, Jul 24, 2015 at 04:30:46PM +0100, Paul E. McKenney wrote: > > > > On

Re: [RFC v2 1/4] ftrace: allow arch-specific check_stack()

2015-08-16 Thread AKASHI Takahiro
Will, On 08/12/2015 02:03 AM, Will Deacon wrote: On Tue, Aug 04, 2015 at 08:44:06AM +0100, AKASHI Takahiro wrote: A stack frame pointer may be used in a different way depending on cpu architecture. Thus it is not always appropriate to slurp the stack contents, as currently done in check_stack()

Re: linux-next: build failure after merge of the security tree

2015-08-16 Thread Stephen Rothwell
Hi all, On Mon, 17 Aug 2015 15:29:53 +1000 Stephen Rothwell wrote: > > After a bit of digging, I installed libssl-dev on my Debian build > machines. Is this worth a mention in Documentation/Changes along with all the other prerequisites? -- Cheers, Stephen Rothwells...@can

Re: [PATCH v2 0/3] Introduce usb charger framework to deal with the usb gadget power negotation

2015-08-16 Thread Baolin Wang
On 17 August 2015 at 09:15, Li Jun wrote: > On Fri, Aug 14, 2015 at 07:04:56PM +0800, Baolin Wang wrote: >> On 14 August 2015 at 16:55, Li Jun wrote: >> > Hi Baolin, >> > >> > On Fri, Aug 14, 2015 at 05:47:43PM +0800, Baolin Wang wrote: >> >> Currently the Linux kernel does not provide any standa

[v1 6/6] NET: nps_enet: minor namespace cleanup

2015-08-16 Thread Noam Camus
From: Noam Camus We define buf_int_enable in the minimal namespace it is used. Signed-off-by: Noam Camus --- drivers/net/ethernet/ezchip/nps_enet.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/ezchip/nps_enet.c b/drivers/net/ethernet/ezchi

[v1 5/6] NET: nps_enet: TX done acknowledge.

2015-08-16 Thread Noam Camus
From: Noam Camus This is needed for when TX done interrupt is in "level mode". For example it is true for some simulators of this device. Signed-off-by: Noam Camus --- drivers/net/ethernet/ezchip/nps_enet.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/

[v1 4/6] NET: nps_enet: drop control frames

2015-08-16 Thread Noam Camus
From: Noam Camus We set controller to drop control frames and not trying to pass them on. This is only needed for debug reasons. Signed-off-by: Noam Camus --- drivers/net/ethernet/ezchip/nps_enet.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethe

[v1 3/6] NET: nps_enet: TX done race condition

2015-08-16 Thread Noam Camus
From: Noam Camus We need to set tx_skb pointer before send frame. If we receive interrupt before we set pointer we will try to free SKB with wrong pointer. Now we are sure that SKB pointer will never be NULL during handling TX done and check is removed. Signed-off-by: Noam Camus --- drivers/ne

[v1 1/6] NET: nps_enet: replace use of cause register

2015-08-16 Thread Noam Camus
From: Noam Camus When interrupt is received we read directly from control register for RX/TX instead of reading cause register since this register fails to indicate TX done when TX interrupt is "edge mode". Signed-off-by: Noam Camus --- drivers/net/ethernet/ezchip/nps_enet.c |9 +

[v1 2/6] NET: nps_enet: reduce processing latency.

2015-08-16 Thread Noam Camus
From: Noam Camus TX handler is minimalistic and there is no need to schedule a NAPI job. Tx done will be processed during hardware interrupt context. Signed-off-by: Noam Camus --- drivers/net/ethernet/ezchip/nps_enet.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-)

[v1 0/6] *** nps_enet fixups ***

2015-08-16 Thread Noam Camus
From: Noam Camus This patch set is a bunch of fixes to make nps_enet work correctly with all platforms, i.e. real device, emulation system, and simulation system. The main trigger for this patch set was that in our emulation system the TX end interrupt is "edge-sensitive" and therefore we cannot

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

2015-08-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/x86/entry/entry_64_compat.S between commit: cd88ec231701 ("x86: fix error handling for 32-bit compat out-of-range system call numbers") from Linus' tree and commit: c73e36b775a7 ("x86/asm/entry/32: Replace RESTORE

Re: [PATCH] book3s_hv_rmhandlers:Pass the correct trap argument to kvmhv_commence_exit

2015-08-16 Thread Gautham R Shenoy
Hi Sam, On Fri, Aug 14, 2015 at 03:07:28PM +1000, Sam Bobroff wrote: > On Thu, May 21, 2015 at 01:57:04PM +0530, Gautham R. Shenoy wrote: > > In guest_exit_cont we call kvmhv_commence_exit which expects the trap > > number as the argument. However r3 doesn't contain the trap number at > > this poi

Re: [PATCH 2/3] mmc: dw_mmc: simplify the SDMMC_CLKEN_LOW_PWR logic

2015-08-16 Thread Michal Suchanek
Hello, On 17 August 2015 at 03:55, Jaehoon Chung wrote: > Hi, Michal. > > On 08/12/2015 09:23 PM, Michal Suchanek wrote: >> The driver has open-coded test for SDIO cards. Use the mmc core provided >> MMC_QUIRK_BROKEN_CLK_GATING flag instead. > > Did you use the clock-gating for SDIO cards? > Does

Re: linux-next: build failure after merge of the drm-exynos tree

2015-08-16 Thread Stephen Rothwell
Hi Inki, On Mon, 17 Aug 2015 13:53:42 +1000 Stephen Rothwell wrote: > > On Mon, 17 Aug 2015 13:51:30 +1000 Stephen Rothwell > wrote: > > > > After merging the drm-exynos tree, today's linux-next build (arm > > multi_v7_defconfig) failed like this: > > > > drivers/gpu/drm/exynos/exynos_mixer.c

Re: [PATCH v7 4/5] clk: Provide critical clock support

2015-08-16 Thread Barry Song
2015-07-22 21:04 GMT+08:00 Lee Jones : > Lots of platforms contain clocks which if turned off would prove fatal. > The only way to recover from these catastrophic failures is to restart > the board(s). Now, when a clock provider is registered with the > framework it is possible for a list of criti

LOAN OFFERS AT LOW INTEREST

2015-08-16 Thread ''official''
We give out loans at low 3% interest rate and We are always ready to cater to your loan need no matter your credit background.I will offer you loan as you requested, be you inform that we only attend to serious individuals, if you are applying this loan i will want you to be serious about it, i

Re: [PATCH v5 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-08-16 Thread Kishon Vijay Abraham I
Hi, On Friday 07 August 2015 06:00 PM, Chunfeng Yun wrote: > support usb3.0 phy of mt65xx SoCs > > Signed-off-by: Chunfeng Yun change $subject to phy: > --- > drivers/phy/Kconfig | 9 + > drivers/phy/Makefile | 1 + > drivers/phy/phy-mt65xx-usb3.c | 467 > ++

linux-next: build failure after merge of the security tree

2015-08-16 Thread Stephen Rothwell
Hi James, After merging the security tree, today's linux-next build (x86_64 allmodconfig) failed like this: scripts/extract-cert.c:23:25: fatal error: openssl/bio.h: No such file or directory #include ^ compilation terminated. scripts/sign-file.c:20:25: fatal error: op

Re: [PATCH] mm/hwpoison: fix race between soft_offline_page and unpoison_memory

2015-08-16 Thread Wanpeng Li
On 8/17/15 12:32 PM, Naoya Horiguchi wrote: > [...] > OK, so I wrote the next version against mmotm-2015-08-13-15-29 (replied to > this email.) It moves PageSetHWPoison part into migration code, which should > close up the reported race window and minimize the another revived race window > of reusi

Re: [RFC v2 4/4] arm64: ftrace: add a stack frame for exception handler

2015-08-16 Thread AKASHI Takahiro
On 08/11/2015 11:57 PM, Jungseok Lee wrote: On Aug 4, 2015, at 4:44 PM, AKASHI Takahiro wrote: Hi Akashi, On arm64, an exception handler use the same stack as in non-exception contexts, but doesn't create a stack frame for elx_xx entry, only updating sp register. This behavior results in save_

Re: [RFC v2 0/4] arm64: ftrace: fix incorrect output from stack tracer

2015-08-16 Thread AKASHI Takahiro
Hi On 08/11/2015 11:52 PM, Jungseok Lee wrote: On Aug 4, 2015, at 4:44 PM, AKASHI Takahiro wrote: Hi Akashi, See the following threads [1],[2] for the background. With this patch series, I'm trying to fix several problems I noticed with stack tracer on arm64. But it is rather experimental, a

linux-next: manual merge of the md tree with the block tree

2015-08-16 Thread Stephen Rothwell
Hi Neil, Today's linux-next merge of the md tree got a conflict in: drivers/md/raid5.c between commit: 4246a0b63bd8 ("block: add a bi_error field to struct bio") 8ae126660fdd ("block: kill merge_bvec_fn() completely") from the block tree and commit: 1722781be955 ("md/raid5: switch to

linux-next: manual merge of the md tree with the block tree

2015-08-16 Thread Stephen Rothwell
Hi Neil, Today's linux-next merge of the md tree got a conflict in: drivers/md/raid10.c between commit: 4246a0b63bd8 ("block: add a bi_error field to struct bio") from the block tree and commit: 90421c7cfde6 ("md/raid10: ensure device failure recorded before write request returns.") f

linux-next: manual merge of the md tree with the block tree

2015-08-16 Thread Stephen Rothwell
Hi Neil, Today's linux-next merge of the md tree got a conflict in: drivers/md/raid0.c between commit: 8ae126660fdd ("block: kill merge_bvec_fn() completely") from the block tree and commit: 927d881980b7 ("md/raid0: update queue parameter in a safer location.") from the md tree. I fix

Re: [BUG/RFC] perf test fails on AMD CPUs

2015-08-16 Thread Borislav Petkov
On Mon, Aug 17, 2015 at 12:29:56AM +0200, Jiri Olsa wrote: > hi, > 'perf test 18' is failing on systems with AMD processor. Hmm, still using that b0rked test box? :-) Also, which kernel? There have been substantial changes to the entry code recently. Although I don't see anything being done diff

[PATCH v2 3/3] mm/hwpoison: don't try to unpoison containment-failed pages

2015-08-16 Thread Naoya Horiguchi
memory_failure() can be called at any page at any time, which means that we can't eliminate the possibility of containment failure. In such case the best option is to leak the page intentionally (and never touch it later.) We have an unpoison function for testing, and it cannot handle such contain

[PATCH v2 1/3] mm/hwpoison: introduce num_poisoned_pages wrappers

2015-08-16 Thread Naoya Horiguchi
num_poisoned_pages counter will be changed outside mm/memory-failure.c by a subsequent patch, so this patch prepares wrappers to manipulate it. Signed-off-by: Naoya Horiguchi --- include/linux/swapops.h | 23 +++ mm/memory-failure.c | 30 ++ 2

[PATCH v2 2/3] mm/hwpoison: fix race between soft_offline_page and unpoison_memory

2015-08-16 Thread Naoya Horiguchi
From: Wanpeng Li Wanpeng Li reported a race between soft_offline_page() and unpoison_memory(), which causes the following kernel panic: [ 61.572584] BUG: Bad page state in process bash pfn:97000 [ 61.578106] page:ea00025c count:0 mapcount:1 mapping: (null) index:0x7f4f

Re: [PATCH] mm/hwpoison: fix race between soft_offline_page and unpoison_memory

2015-08-16 Thread Naoya Horiguchi
On Fri, Aug 14, 2015 at 05:01:34PM +0800, Wanpeng Li wrote: > On 8/14/15 4:38 PM, Naoya Horiguchi wrote: > > On Fri, Aug 14, 2015 at 03:59:21PM +0800, Wanpeng Li wrote: > >> On 8/14/15 3:54 PM, Wanpeng Li wrote: > >>> [...] > OK, then I rethink of handling the race in unpoison_memory(). >

Re: [PATCH v6] arm64: dts: Add spi bus dts

2015-08-16 Thread Daniel Kurtz
On Mon, Aug 17, 2015 at 11:29 AM, Leilk Liu wrote: > > This patch adds MT8173 spi bus controllers into device tree. > > Signed-off-by: Leilk Liu Reviewed-by: Daniel Kurtz > --- > Change in this patch: > pinctl and pad-select fields are board specific, so move to > mt8173-evb.dtsi, and status =

Announcing simple-pt -- a simple Processor Trace implementation for Linux

2015-08-16 Thread Andi Kleen
Modern Intel Core CPUs (5th and 6th generation) have a Intel Processor Trace (PT) feature to trace branch execution with low overhead. This is useful for performance analysis and debugging. simple-pt is a simple standalone driver and decoder tool to implement PT on Linux. Starting with Linux

Re: [PATCH] PM / Domains: Make pm_genpd_init() available to modules

2015-08-16 Thread Rajendra Nayak
On 08/13/2015 11:41 PM, Stephen Boyd wrote: On 08/13, Rajendra Nayak wrote: Export symbol pm_genpd_init so it can be used in loadable kernel modules Signed-off-by: Rajendra Nayak Reported-by: Stephen Rothwell --- I'd like to take this through the clk tree somehow so that we can merge the r

Re: [x86] copy_from{to}_user question

2015-08-16 Thread Borislav Petkov
On Mon, Aug 17, 2015 at 11:27:01AM +0800, yalin wang wrote: > i just want the x86 copy_from{to,in}_user() function have > the same behaviour as other platforms. Back to the original question from 2 mails ago: How else would we be able to use the same function in copy_to and copy_from variants?

[PATCH 1/3][v2] Documentation: dt: dwc3: Add snps,quirk-frame-length-adjustment property

2015-08-16 Thread Nikhil Badola
Add snps,quirk-frame-length-adjustment property which provides value for post silicon frame length adjustment Signed-off-by: Nikhil Badola --- Changes for v2 - changed quirk name as well description Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ 1 file changed, 3 insertions(+)

Re: [PATCH v2 1/4] scripts/kernel-doc: Adding cross-reference links to html documentation.

2015-08-16 Thread Jonathan Corbet
On Tue, 28 Jul 2015 16:45:15 -0300 Danilo Cesar Lemes de Paula wrote: > Functions, Structs and Parameters definitions on kernel documentation > are pure cosmetic, it only highlights the element. > > To ease the navigation in the documentation we should use inside > those tags so readers can eas

Re: [RFC PATCH v2] memory-barriers: remove smp_mb__after_unlock_lock()

2015-08-16 Thread Michael Ellerman
On Wed, 2015-08-12 at 08:43 -0700, Paul E. McKenney wrote: > On Wed, Aug 12, 2015 at 02:44:15PM +0100, Will Deacon wrote: > > Hello Paul, > > > > On Fri, Jul 24, 2015 at 04:30:46PM +0100, Paul E. McKenney wrote: > > > On Fri, Jul 24, 2015 at 12:31:01PM +0100, Will Deacon wrote: > > > > On Wed, Jul

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

2015-08-16 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in: drivers/md/dm.c between commit: bd4aaf8f9b85 ("dm: fix dm_merge_bvec regression on 32 bit systems") from Linus' tree and commit: 8ae126660fdd ("block: kill merge_bvec_fn() completely") from the block tree. I fixed

[PATCH 3/3][v2] arm: dts: ls1021a: Add quirk for Erratum A009116

2015-08-16 Thread Nikhil Badola
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Nikhil Badola --- Changes for v2 : - updated property name arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 f

RE: [PATCH v2] dmaengine: fsl-edma: add PM suspend/resume support

2015-08-16 Thread Yao Yuan
On Sat, Aug 15, 2015 at 7:48 AM, pku.leo < pku@gmail.com > wrote: > On Fri, Aug 14, 2015 at 1:24 AM, Yao Yuan wrote: > > Hi Leo, > > > > Thanks for your review. > > About those two methods for DMA suspend that you have mentioned. We > have a lot of the discussions in other DMA driver like DMA

[PATCH 2/3][v2] drivers: usb: dwc3: Add frame length adjustment quirk

2015-08-16 Thread Nikhil Badola
Add adjust_frame_length_quirk for writing to fladj register which adjusts (micro)frame length to value provided by "snps,quirk-frame-length-adjustment" property thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola --- changes for v2 : - updated quirk's

Re: linux-next: build failure after merge of the drm-exynos tree

2015-08-16 Thread Stephen Rothwell
Hi Inki, On Mon, 17 Aug 2015 13:51:30 +1000 Stephen Rothwell wrote: > > After merging the drm-exynos tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > drivers/gpu/drm/exynos/exynos_mixer.c: In function 'vp_video_buffer': > drivers/gpu/drm/exynos/exynos_mixer.c:395:

[PATCH v2] spi: bitbang: Replace spinlock by mutex

2015-08-16 Thread Nicolas Boichat
chipselect (in the case of spi-gpio: spi_gpio_chipselect, which calls gpiod_set_raw_value_cansleep) can sleep, so we should not hold a spinlock while calling it from spi_bitbang_setup. This issue was introduced by this commit, which converted spi-gpio to cansleep variants: d9dda5a191 "spi: spi-gpi

Re: [rtc-linux] [PATCH] rtc: s5m: fix to update ctrl register

2015-08-16 Thread Krzysztof Kozlowski
On 17.08.2015 11:28, Joonyoung Shim wrote: > On 08/17/2015 11:00 AM, Krzysztof Kozlowski wrote: >> On 17.08.2015 10:47, Joonyoung Shim wrote: >>> Hi, >>> >>> On 08/13/2015 07:02 PM, Krzysztof Kozlowski wrote: W dniu 13.08.2015 o 17:49, Joonyoung Shim pisze: > According to datasheet, the S2

linux-next: build failure after merge of the drm-exynos tree

2015-08-16 Thread Stephen Rothwell
Hi Inki, After merging the drm-exynos tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/gpu/drm/exynos/exynos_mixer.c: In function 'vp_video_buffer': drivers/gpu/drm/exynos/exynos_mixer.c:395:15: error: 'struct exynos_drm_plane' has no member named 'pixel_format'

Re: [PATCH] gpio:Fix build warning about void to integer cast in the function mmio_74xx_gpio_probe

2015-08-16 Thread Alexandre Courbot
On Fri, Aug 14, 2015 at 2:45 AM, nick wrote: > > > On 2015-07-16 08:00 AM, Linus Walleij wrote: >> On Sat, Jul 4, 2015 at 10:34 PM, Nicholas Krause wrote: >> >>> This fixes the build warning , warning: cast from pointer to integer >>> of different size when building this file on a x86 allmodconfi

RE: [PATCH v3] ARM: configs: Add Freescale LS1021A defconfig

2015-08-16 Thread Huan Wang
Hi, Fabio, Based on the analysis and discussion, we prefer to use ls1021a_defconfig and remove LS1021A from imx_v6_v7_defconfig. Thanks. Best Regards, Alison Wang > On Fri, Aug 14, 2015 at 2:06 PM, Horia Geantă > wrote: > > > Another thing: > > Commit 385c0fb0e2c4 ("ARM: imx_

Re: [PATCH] mmc/sdhci-acpi: enable sdhci-acpi device to suspend/resume asynchronously

2015-08-16 Thread Fu, Zhonghui
Hi, Any comments are welcome. Thanks, Zhonghui On 2015/8/3 21:10, Fu, Zhonghui wrote: > Enable sdhci-acpi device to suspend/resume asynchronously. > This can improve system suspend/resume speed. > > Signed-off-by: Zhonghui Fu > --- > drivers/mmc/host/sdhci-acpi.c |2 ++ > 1 files changed

Re: [PATCH] spi: Mediatek: fix endian warnings

2015-08-16 Thread Mark Brown
On Sun, Aug 16, 2015 at 03:06:39PM +0100, Russell King - ARM Linux wrote: > All writel() implementations take a CPU number and write it in little > endian format. Hence, writel() almost always uses cpu_to_le32() > internally. I think the reason this keeps coming up is that people aren't expectin

Re: [PATCH] mmc: enable mmc host device to suspend/resume asynchronously

2015-08-16 Thread Fu, Zhonghui
Hi, Any comments are welcome. Thanks, Zhonghui On 2015/8/3 20:39, Fu, Zhonghui wrote: > Enable mmc host device to suspend/resume asynchronously. > This can improve system suspend/resume speed. > > Signed-off-by: Zhonghui Fu > --- > drivers/mmc/core/host.c |1 + > 1 files changed, 1 inser

Re: [3/4] ARM: dts: Add UART2 dt node for Exynos3250 SoC

2015-08-16 Thread Pankaj Dubey
Hi Chanwoo, Similar patch was posted here[1]. [1]: http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/291023.html Thanks, Pankaj Dubey On Tuesday 11 August 2015 09:16 AM, Chanwoo Choi wrote: This patch add the uart2 devicetree node for Exynos3250 SoC. Cc: Kukjin Kim Cc:

[PATCH v6] arm64: dts: Add spi bus dts

2015-08-16 Thread Leilk Liu
This patch adds MT8173 spi bus controllers into device tree. Signed-off-by: Leilk Liu --- Change in this patch: pinctl and pad-select fields are board specific, so move to mt8173-evb.dtsi, and status = "okay". --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 18 ++ arch/arm64/bo

Re: [1/4] clk: samsung: exynos3250: Add UART2 clock

2015-08-16 Thread Pankaj Dubey
Hi Chanwoo, Thanks for this patch. Similar patch[1] was posted long back, and there were some concern from your side, if you think those concerns are fixed, then my patch [1] are still valid and can be taken. If it needs to be rebase I am happy to do that. [1] http://lists.infradead.org/pip

Re: [PATCH v3 1/6] genirq: fix irq_chip_retrigger_hierarchy

2015-08-16 Thread Jiang Liu
On 2015/8/14 20:20, Grygorii Strashko wrote: > Now irq_chip_retrigger_hierarchy() returns -ENOSYS if it > was not able to find at least one .irq_retrigger() callback > implemented in IRQ domain hierarchy. As result, IRQ > re-triggering is not working now on ARM (TI OMAP) where > ARM GIC is not impl

linux-next: manual merge of the drm-panel tree with the tegra tree

2015-08-16 Thread Stephen Rothwell
Hi Thierry, Today's linux-next merge of the drm-panel tree got a conflict in: arch/arm/configs/multi_v7_defconfig between commit: 258d9bc5e77f ("ARM: tegra: Update multi_v7_defconfig") from the tegra tree and commit: 330b48bd700d ("drm/bridge: Add vendor prefixes") from the drm-panel t

Re: [x86] copy_from{to}_user question

2015-08-16 Thread yalin wang
> On Aug 14, 2015, at 00:43, Borislav Petkov wrote: > > On Thu, Aug 13, 2015 at 06:04:54PM +0800, yalin wang wrote: >> we store type into one fix register, for example r12 , >> then in fix up code, we can know the exception is caused by copy_from >> copy_to or copy_in user function by check r12

Re: [PATCH] MMC/SDIO: enable SDIO device to suspend/resume asynchronously

2015-08-16 Thread Fu, Zhonghui
Hi, Any comments are welcome. Thanks, Zhonghui On 2015/7/30 15:40, Fu, Zhonghui wrote: > Enable SDIO card and function device to suspend/resume asynchronously. > This can improve system suspend/resume speed. > > Signed-off-by: Zhonghui Fu > --- > drivers/mmc/core/sdio.c |4 > 1 file

[PATCH] arm64: dts: Juno: fix the wrong memory map sizes for the I2C/EHCI/OHCI

2015-08-16 Thread Huang Shijie
>From the "Juno ARM Development Platform Soc Techinical Reference >Mannual(r1p0)", we get the following memory map sizes (3-25): I2C : 0x7ffa 0x7ffa00ff (256B) USB OHCI : 0x7ffb 0x7ffb0fff (4KB) USB EHCI : 0x7ffc 0x7ffc0fff (4KB) This

linux-next: manual merge of the drm tree with the drm-intel-fixes tree

2015-08-16 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/i915/intel_atomic.c drivers/gpu/drm/i915/intel_display.c between commits: f0fdc55db0c6 ("drm/i915: calculate primary visibility changes instead of calling from set_config") d2944cf21305 ("drm/i915: Com

[Patch V3 1/9] x86, NUMA, ACPI: Online node earlier when doing CPU hot-addition

2015-08-16 Thread Jiang Liu
With typical CPU hot-addition flow on x86, PCI host bridges embedded in physical processor are always associated with NOMA_NO_NODE, which may cause sub-optimal performance. 1) Handle CPU hot-addition notification acpi_processor_add() acpi_processor_get_info()

[Patch V3 6/9] i40evf: Use numa_mem_id() to better support memoryless node

2015-08-16 Thread Jiang Liu
Function i40e_clean_rx_irq() tries to reuse memory pages allocated from the nearest node. To better support memoryless node, use numa_mem_id() instead of numa_node_id() to get the nearest node with memory. This change should only affect performance. Signed-off-by: Jiang Liu --- drivers/net/ethe

[Patch V3 2/9] kernel/profile.c: Replace cpu_to_mem() with cpu_to_node()

2015-08-16 Thread Jiang Liu
Function profile_cpu_callback() allocates memory without specifying __GFP_THISNODE flag, so replace cpu_to_mem() with cpu_to_node() because cpu_to_mem() may cause suboptimal memory allocation if there's no free memory on the node returned by cpu_to_mem(). It's safe to use cpu_to_mem() because buil

[Patch V3 4/9] openvswitch: Replace cpu_to_node() with cpu_to_mem() to support memoryless node

2015-08-16 Thread Jiang Liu
Function ovs_flow_stats_update() allocates memory with __GFP_THISNODE flag set, which may cause permanent memory allocation failure on memoryless node. So replace cpu_to_node() with cpu_to_mem() to better support memoryless node. For node with memory, cpu_to_mem() is the same as cpu_to_node(). Thi

[Patch V3 8/9] mm: Update _mem_id_[] for every possible CPU when memory configuration changes

2015-08-16 Thread Jiang Liu
Current kernel only updates _mem_id_[cpu] for onlined CPUs when memory configuration changes. So kernel may allocate memory from remote node for a CPU if the CPU is still in absent or offline state even if the node associated with the CPU has already been onlined. This patch tries to improve perfor

[Patch V3 5/9] i40e: Use numa_mem_id() to better support memoryless node

2015-08-16 Thread Jiang Liu
Function i40e_clean_rx_irq() tries to reuse memory pages allocated from the nearest node. To better support memoryless node, use numa_mem_id() instead of numa_node_id() to get the nearest node with memory. This change should only affect performance. Signed-off-by: Jiang Liu --- drivers/net/ethe

[Patch V3 9/9] mm, x86: Enable memoryless node support to better support CPU/memory hotplug

2015-08-16 Thread Jiang Liu
With current implementation, all CPUs within a NUMA node will be assocaited with another NUMA node if the node has no memory installed. For example, on a four-node system, CPUs on node 2 and 3 are associated with node 0 when are no memory install on node 2 and 3, which may confuse users. root@bkd0

[Patch V3 3/9] sgi-xp: Replace cpu_to_node() with cpu_to_mem() to support memoryless node

2015-08-16 Thread Jiang Liu
Function xpc_create_gru_mq_uv() allocates memory with __GFP_THISNODE flag set, which may cause permanent memory allocation failure on memoryless node. So replace cpu_to_node() with cpu_to_mem() to better support memoryless node. For node with memory, cpu_to_mem() is the same as cpu_to_node(). Sign

[Patch V3 0/9] Enable memoryless node support for x86

2015-08-16 Thread Jiang Liu
This is the third version to enable memoryless node support on x86 platforms. The previous version (https://lkml.org/lkml/2014/7/11/75) blindly replaces numa_node_id()/cpu_to_node() with numa_mem_id()/ cpu_to_mem(). That's not the right solution as pointed out by Tejun and Peter due to: 1) We shoul

[Patch V3 7/9] x86, numa: Kill useless code to improve code readability

2015-08-16 Thread Jiang Liu
According to x86 boot sequence, early_cpu_to_node() always returns NUMA_NO_NODE when called from numa_init(). So kill useless code to improve code readability. Related code sequence as below: x86_cpu_to_node_map is set until step 2, so it is still the default value (NUMA_NO_NODE) when accessed at

Re: [PATCH] Revert "drm/nouveau/fifo/gk104: kick channels when deactivating them"

2015-08-16 Thread Alexandre Courbot
Patch has landed in -rc7, thanks David! On Fri, Aug 14, 2015 at 12:49 PM, Alexandre Courbot wrote: > On Wed, Aug 12, 2015 at 6:59 PM, Afzal Mohammed > wrote: >> Hi, >> >> On Wed, Aug 12, 2015 at 04:40:57PM +0900, Alexandre Courbot wrote: >> >>> Great, thanks. Are you also on an optimus configur

Re: [PATCH v2 2/3] gadget: Introduce the usb charger framework

2015-08-16 Thread Baolin Wang
On 14 August 2015 at 23:27, Greg KH wrote: > On Fri, Aug 14, 2015 at 05:47:45PM +0800, Baolin Wang wrote: >> This patch introduces the usb charger driver based on usb gadget that >> makes an enhancement to a power driver. It works well in practice but >> that requires a system with suitable hardwa

[PATCH V3] regulator: core: Define regulator_set_voltage_triplet()

2015-08-16 Thread Viresh Kumar
Voltage tolerance isn't necessarily same on both sides of the target voltage and regulator_set_voltage_tol() wouldn't be suitable in such cases. Add another routine regulator_set_voltage_triplet(), which accepts target, min and max voltages as arguments. This first tries to set the voltage betwee

[PATCH v4] serial: 8250: Fix autoconfig_irq() to avoid race conditions

2015-08-16 Thread Taichi Kageyama
The following race conditions can happen when a serial port is used as console. Case1: CPU_B is used to detect an interrupt from a serial port, but it can have interrupts disabled during the waiting time. Case2: CPU_B clears UART_IER just after CPU_A sets UART_IER and then a serial p

Re: [PATCH v2 0/3] Introduce usb charger framework to deal with the usb gadget power negotation

2015-08-16 Thread Li Jun
On Fri, Aug 14, 2015 at 07:04:56PM +0800, Baolin Wang wrote: > On 14 August 2015 at 16:55, Li Jun wrote: > > Hi Baolin, > > > > On Fri, Aug 14, 2015 at 05:47:43PM +0800, Baolin Wang wrote: > >> Currently the Linux kernel does not provide any standard integration of > >> this > >> feature that int

[PATCH v10 1/6] fs: direct-io: don't dirtying pages for ITER_BVEC/ITER_KVEC direct read

2015-08-16 Thread Ming Lei
When direct read IO is submitted from kernel, it is often unnecessary to dirty pages, for example of loop, dirtying pages have been considered in the upper filesystem(over loop) side already, and they don't need to be dirtied again. So this patch doesn't dirtying pages for ITER_BVEC/ITER_KVEC dire

[PATCH v10 5/6] block: loop: introduce ioctl command of LOOP_SET_DIRECT_IO

2015-08-16 Thread Ming Lei
If loop block is mounted via 'mount -o loop', it isn't easy to pass file descriptor opened as O_DIRECT, so this patch introduces a new command to support direct IO for this case. Cc: linux-...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/block/loop.c | 19 +++ include

[PATCH v10 3/6] block: loop: use kthread_work

2015-08-16 Thread Ming Lei
The following patch will use dio/aio to submit IO to backing file, then it needn't to schedule IO concurrently from work, so use kthread_work for decreasing context switch cost a lot. For non-AIO case, single thread has been used for long long time, and it was just converted to work in v4.0, which

  1   2   3   >