Re: [PATCH v6 18/19] arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32

2015-11-18 Thread pinskia
> On Nov 18, 2015, at 12:11 AM, Zhangjian (Bamvor) > wrote: > > Hi, Yury > >> On 2015/11/18 5:16, Yury Norov wrote: >> From: Philipp Tomsich >> >> To make life for tools (such as gdb) easier when dealing with ILP32 >> processes, >> we report a proper subarchitecture for ILP32 in the ELF au

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-18 Thread Will Deacon
On Tue, Nov 17, 2015 at 01:01:09PM -0800, Paul E. McKenney wrote: > On Tue, Nov 17, 2015 at 11:51:10AM +, Will Deacon wrote: > > On Mon, Nov 16, 2015 at 01:58:49PM -0800, Linus Torvalds wrote: > > > On Mon, Nov 16, 2015 at 8:24 AM, Will Deacon wrote: > > > > > > > > ... or we upgrade spin_unlo

Re: [RFC PATCH 1/3] x86/cpu: Unify CPU family, model, stepping calculation

2015-11-18 Thread Borislav Petkov
On Wed, Nov 18, 2015 at 12:10:08PM +0100, Paolo Bonzini wrote: > On 14/11/2015 11:37, Borislav Petkov wrote: > > vendor = x86_vendor(); > > - family = x86_family(); > > + family = x86_family_cpuid(); > > What about renaming x86_vendor() so that this looks like > > - vendor = x86_vendo

Re: [PATCH] drivers:staging:wilc1000 Fix comparison to NULL messages

2015-11-18 Thread Bogicevic Sasa
On 11/18, Sudip Mukherjee wrote: On Tue, Nov 17, 2015 at 09:01:28PM +0100, Bogicevic Sasa wrote: This fixes all "Comparison to NULL could be written like..." messages from checkpatch.pl Signed-off-by: Bogicevic Sasa --- drivers/staging/wilc1000/coreconfigurator.c | 10 +- 1 file chang

RE: [PATCH v2 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec

2015-11-18 Thread Opensource [Adam Thomson]
On November 17, 2015 17:54, Rob Herring wrote: > >> > +- dlg,micbias1-lvl : Voltage (mV) for Mic Bias 1 > >> > + [<1200>, <1600>, <1800>, <2000>, <2200>, <2400>, <2600>, <2800>, > >> <3000>] > >> > +- dlg,micbias2-lvl : Voltage (mV) for Mic Bias 2 > >> > + [<1200>, <1600>, <1800>, <2000>, <220

Re: [PATCH 3/9] IB: add a helper to safely drain a QP

2015-11-18 Thread Sagi Grimberg
Christoph, Given the discussion around this patch I think it would be a good idea remove it from the patchset since it's not mandatory for the CQ abstraction. I think that we should take it with Steve to come up with a complete solution for this bit. Thoughts? -- To unsubscribe from this list: s

Re: [PATCH] selftests/powerpc: Add script to test HMI functionality

2015-11-18 Thread Denis Kirjanov
On 11/18/15, Daniel Axtens wrote: > HMIs (Hypervisor Management|Maintenance Interrupts) are a class of interrupt > on POWER systems. > > HMI support has traditionally been exceptionally difficult to test. However > Skiboot ships a tool that, with the correct magic numbers, will inject them. > > Th

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-18 Thread Ondrej Zary
On Wednesday 18 November 2015, Finn Thain wrote: > Like my previous work on the NCR5380 drivers, this patch series has bug > fixes, code cleanup and modernization. These drivers suffer from mistakes, > poor style and neglect and this long series addresses the worst of it, > covering all ten wrapper

Re: [RFC PATCH 1/3] x86/cpu: Unify CPU family, model, stepping calculation

2015-11-18 Thread Paolo Bonzini
On 18/11/2015 12:28, Borislav Petkov wrote: >> On 14/11/2015 11:37, Borislav Petkov wrote: >>> > > vendor = x86_vendor(); >>> > > - family = x86_family(); >>> > > + family = x86_family_cpuid(); >> > >> > What about renaming x86_vendor() so that this looks like >> > >> > - v

[PATCH] drivers:staging:wilc1000 Fix all comparison to NULL could be written ...

2015-11-18 Thread Bogicevic Sasa
This fixes all "comparison to NULL could be written like ..." Signed-off-by: Bogicevic Sasa --- drivers/staging/wilc1000/coreconfigurator.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/corec

Re: [PATCH V5 8/9] PCI: OF: Move of_pci_dma_configure() to pci_dma_configure()

2015-11-18 Thread Robin Murphy
+Arnd On 17/11/15 15:00, Robin Murphy wrote: Hi Suravee, On 28/10/15 22:50, Suravee Suthikulpanit wrote: This patch move of_pci_dma_configure() to a more generic pci_dma_configure(), which can be extended by non-OF code (e.g. ACPI). This has no functional change. Unfortunately, it appears t

Re: [PATCH v6 15/19] arm64: ilp32: force IPC_64 in msgctl, shmctl, semctl

2015-11-18 Thread Arnd Bergmann
On Wednesday 18 November 2015 11:07:26 Geert Uytterhoeven wrote: > > > > I've done a complete list of what the architectures (see > > https://docs.google.com/spreadsheets/d/18GxXEHE2ywnSr-SPoGFd1ABz6wEM1ex-JMu5lEraaH8/ > > ) > > > > We have these categories: > > > > 1. uses IPC_PARSE_VERSION with

RE: [PATCH] usb: gadget: Add the console support for usb-to-serial port

2015-11-18 Thread David Laight
From: Baolin Wang > Sent: 18 November 2015 10:45 > On 18 November 2015 at 17:32, Andy Shevchenko > wrote: > > On Wed, Nov 18, 2015 at 4:15 AM, Baolin Wang wrote: > >> On 17 November 2015 at 21:34, Andy Shevchenko > >> wrote: > >>> On Mon, Nov 16, 2015 at 9:05 AM, Baolin Wang > >>> wrote: > >

[PATCH 1/3] misc:scif: do not define list_entry_next

2015-11-18 Thread Sergey Senozhatsky
Cosmetic. Do not define list_entry_next() and use list_next_entry() from list.h. Signed-off-by: Sergey Senozhatsky --- drivers/misc/mic/scif/scif_dma.c | 27 +++ drivers/misc/mic/scif/scif_main.h | 1 + 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/d

RE: next build: 235 warnings 3 failures (next/next-20151117)

2015-11-18 Thread David Laight
From: Will Deacon > Sent: 18 November 2015 10:14 > On Tue, Nov 17, 2015 at 08:17:17PM +0100, Arnd Bergmann wrote: > > On Tuesday 17 November 2015 17:12:37 Will Deacon wrote: > > > On Tue, Nov 17, 2015 at 06:03:40PM +0100, Arnd Bergmann wrote: > > > > On Tuesday 17 November 2015 16:44:53 Will Deacon

[PATCH 2/3] net/ceph: do not define list_entry_next

2015-11-18 Thread Sergey Senozhatsky
Cosmetic. Do not define list_entry_next() and use list_next_entry() from list.h. Signed-off-by: Sergey Senozhatsky --- net/ceph/messenger.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 9981039..77ccca9 100644 --- a

Re: [PATCHv2] arm64: Fix R/O permissions in mark_rodata_ro

2015-11-18 Thread Catalin Marinas
On Thu, Nov 12, 2015 at 12:21:10PM -0800, Laura Abbott wrote: > The permissions in mark_rodata_ro trigger a build error > with STRICT_MM_TYPECHECKS. Fix this by introducing > PAGE_KERNEL_ROX for the same reasons as PAGE_KERNEL_RO. > From Ard: > > "PAGE_KERNEL_EXEC has PTE_WRITE set as well, making

Re: irq_fpu_usable() is irreliable

2015-11-18 Thread Jason A. Donenfeld
Hi Ingo, Thanks for looking into this. On Wed, Nov 18, 2015 at 7:55 AM, Ingo Molnar wrote: > Is this 'problem' a performance problem (code not being able to use the FPU > occasionally and hence sporadically performing poorly), or some sort of actual > stability/correctness problem? More of the

[PATCH 3/3] security/apparmor: do not define list_entry_next

2015-11-18 Thread Sergey Senozhatsky
Cosmetic. Do not define list_entry_next() and use list_next_entry() from list.h. Signed-off-by: Sergey Senozhatsky --- security/apparmor/apparmorfs.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c in

Re: [PATCH v3 0/7] User namespace mount updates

2015-11-18 Thread Austin S Hemmelgarn
On 2015-11-17 16:32, Seth Forshee wrote: On Tue, Nov 17, 2015 at 03:54:50PM -0500, Austin S Hemmelgarn wrote: On 2015-11-17 14:16, Seth Forshee wrote: On Tue, Nov 17, 2015 at 02:02:09PM -0500, Austin S Hemmelgarn wrote: On 2015-11-17 12:55, Al Viro wrote: On Tue, Nov 17, 2015 at 11:25:51AM -0

[PATCH] DT: add Olimex to vendor prefixes

2015-11-18 Thread Stefan Wahren
This company already provided some products, so add them to the vendor prefix list. Signed-off-by: Stefan Wahren --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/de

Re: [PATCH 3/4] sched: introduce synchronized idle injection

2015-11-18 Thread Morten Rasmussen
On Wed, Nov 18, 2015 at 11:35:41AM +0100, Peter Zijlstra wrote: > On Wed, Nov 18, 2015 at 09:36:22AM +0100, Ingo Molnar wrote: > > What will such throttling do to latencies, as observed by user-space tasks? > > What's > > the typical expected frequency of the throttling frequency that you are >

Re: next build: 235 warnings 3 failures (next/next-20151117)

2015-11-18 Thread Will Deacon
On Wed, Nov 18, 2015 at 12:11:25PM +, David Laight wrote: > From: Will Deacon > > Sent: 18 November 2015 10:14 > > On Tue, Nov 17, 2015 at 08:17:17PM +0100, Arnd Bergmann wrote: > > > On Tuesday 17 November 2015 17:12:37 Will Deacon wrote: > > > > On Tue, Nov 17, 2015 at 06:03:40PM +0100, Arnd

Re: [PATCH 02/37] mm, frame_vector: do not use get_user_pages_locked()

2015-11-18 Thread Jan Kara
On Mon 16-11-15 19:35:14, Dave Hansen wrote: > > From: Dave Hansen > > get_user_pages_locked() appears to be for use when a caller needs > to know that its lock on mmap_sem was invalidated by the gup > call. > > But, get_vaddr_frames() is not one of those users. It > unconditionally locks the

Re: [PATCH] mmc: dw_mmc: use resource_size_t to store physical address

2015-11-18 Thread Arnd Bergmann
On Wednesday 18 November 2015 11:35:27 Andy Shevchenko wrote: > On Fri, Nov 13, 2015 at 11:35 AM, Arnd Bergmann wrote: > > On Friday 13 November 2015 03:10:13 Andy Shevchenko wrote: > >> On Thu, Nov 12, 2015 at 4:14 PM, Arnd Bergmann wrote: > >> > The dw_mmc driver stores the physical address of

Re: [PATCH V5 8/9] PCI: OF: Move of_pci_dma_configure() to pci_dma_configure()

2015-11-18 Thread Arnd Bergmann
On Wednesday 18 November 2015 12:00:32 Robin Murphy wrote: > On 17/11/15 15:00, Robin Murphy wrote: > > On 28/10/15 22:50, Suravee Suthikulpanit wrote: > >> Signed-off-by: Suravee Suthikulpanit > >> Acked-by: Rob Herring > >> Acked-by: Bjorn Helgaas > >> Reviewed-by: Hanjun Guo > >> CC: Rafael

Re: net-scm: Macro for special pattern?

2015-11-18 Thread Eric Dumazet
On Wed, 2015-11-18 at 08:45 +0100, SF Markus Elfring wrote: > > You mean this likely() annotation of yours? > > How do you think about to express the software design pattern > which is applied at the mentioned source code place by a dedicated > preprocessor macro? likely()/unlikely() are not alwa

Re: [GIT PULL 00/16] perf/ebpf improvements and fixes

2015-11-18 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 18, 2015 at 07:32:38AM +0100, Ingo Molnar escreveu: > So considering the relatively large diffstat and the fact that we are 3 days > after > the closing of the merge window, I think we should separate this into minimal > fixes for perf/urgent, and more involved changes for v4.5. Ok,

Re: [PATCH] usb: gadget: Add the console support for usb-to-serial port

2015-11-18 Thread Baolin Wang
On 18 November 2015 at 20:05, David Laight wrote: > From: Baolin Wang >> Sent: 18 November 2015 10:45 >> On 18 November 2015 at 17:32, Andy Shevchenko >> wrote: >> > On Wed, Nov 18, 2015 at 4:15 AM, Baolin Wang >> > wrote: >> >> On 17 November 2015 at 21:34, Andy Shevchenko >> >> wrote: >> >

Re: [PATCH perf/core 00/13] perf memory/refcnt leak fixes

2015-11-18 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 18, 2015 at 03:40:09PM +0900, Masami Hiramatsu escreveu: > Hi, > > Here is a series to fix some memory leaks and refcount > leaks on map and dso. This also includes the refcnt APIs > with backtrace debugging feature. Cool, I wonder if this could be usable in the kernel proper... Is th

Re: [PATCH v3 0/7] User namespace mount updates

2015-11-18 Thread Austin S Hemmelgarn
On 2015-11-17 17:01, Seth Forshee wrote: On Tue, Nov 17, 2015 at 09:05:42PM +, Al Viro wrote: On Tue, Nov 17, 2015 at 03:39:16PM -0500, Austin S Hemmelgarn wrote: This is absolutely insane, no matter how much LSM snake oil you slatter on the whole thing. All of a sudden you are exposing a

Re: [PATCH] ARM: multi_v7_defconfig: Build ChromeOS EC drivers as modules

2015-11-18 Thread Krzysztof Kozlowski
W dniu 18.11.2015 o 00:58, Javier Martinez Canillas pisze: > Since the multi_v7_defconfig is used to build an image for different > platforms, the options should be enabled as module whenever possible. > > Signed-off-by: Javier Martinez Canillas > > --- > The patch was tested on an Exynos5800 Pe

Re: [PATCH 3/4] sched: introduce synchronized idle injection

2015-11-18 Thread Peter Zijlstra
On Wed, Nov 18, 2015 at 12:27:04PM +, Morten Rasmussen wrote: > On Wed, Nov 18, 2015 at 11:35:41AM +0100, Peter Zijlstra wrote: > > On Wed, Nov 18, 2015 at 09:36:22AM +0100, Ingo Molnar wrote: > > > What will such throttling do to latencies, as observed by user-space > > > tasks? What's > > >

BUG: KASAN: stack-out-of-bounds in acpi_ns_lookup+0x16f/0x86b

2015-11-18 Thread Andrea Gelmini
Hi everybody, and thanks a lot for your work. I'm using my main laptop (no virtualized environment) with Kasan enabled. Kernel it's the Linus latest commit,¹ plus a few pulls from different git trees (BTRFS, drm-intel, ecc.). You can find a detailed list in the attached file: added_

[PATCH v3 1/1] i2c: taos-evm: replace simple_strtoul by kstrtou8

2015-11-18 Thread LABBE Corentin
The simple_strtoul function is marked as obsolete. This patch replace it by kstrtou8. Signed-off-by: LABBE Corentin --- drivers/i2c/busses/i2c-taos-evm.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-taos-evm.c b/drivers/i2c/busses/i2c-taos-ev

[PATCH v3 0/1] i2c: taos-evm: replace simple_strtoul by kstrtou8

2015-11-18 Thread LABBE Corentin
Hello Changes since v2 - removed err variable - fix a spelling issue Changes since v1 - drop the return code of kstrtou8 and return -EPROTO as suggested by Jean Delvare - Added a comment on the return code drop Regards LABBE Corentin (1): i2c: taos-evm: replace simple_strtoul by kstrtou8

Re: [PATCH] drm/qxl: fix cursor position with non-zero hotspot

2015-11-18 Thread Daniel Vetter
On Wed, Nov 18, 2015 at 11:17:25AM +, John Keeping wrote: > The SPICE protocol considers the position of a cursor to be the location > of its active pixel on the display, so the cursor is drawn with its > top-left corner at "(x - hot_spot_x, y - hot_spot_y)" but the DRM cursor > position gives

Re: [GIT PULL 00/16] perf/ebpf improvements and fixes

2015-11-18 Thread pi3orama
发自我的 iPhone > 在 2015年11月18日,下午8:44,Arnaldo Carvalho de Melo 写道: > > Em Wed, Nov 18, 2015 at 07:32:38AM +0100, Ingo Molnar escreveu: >> So considering the relatively large diffstat and the fact that we are 3 days >> after >> the closing of the merge window, I think we should separate this int

[PATCH] blk-throttle: use list_first_entry_or_null()

2015-11-18 Thread Geliang Tang
Simplify the code with list_first_entry_or_null(). Signed-off-by: Geliang Tang --- block/blk-throttle.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 2149a1d..db2dbf1 100644 --- a/block/blk-throttle.c +++ b/block/

Re: trace: trace_kprobe.c always shows interrupts off

2015-11-18 Thread Mathieu Desnoyers
- On Nov 18, 2015, at 1:51 AM, masami hiramatsu pt masami.hiramatsu...@hitachi.com wrote: > Hi Mathieu, Steven, > > From: Steven Rostedt [mailto:rost...@goodmis.org] >> >>On Tue, 17 Nov 2015 16:35:35 + (UTC) >>Mathieu Desnoyers wrote: >> >>> Hi, >>> >>> I notice that trace_kprobe.c does

Re: [PATCH 2/3] net/ceph: do not define list_entry_next

2015-11-18 Thread Ilya Dryomov
On Wed, Nov 18, 2015 at 1:13 PM, Sergey Senozhatsky wrote: > Cosmetic. > > Do not define list_entry_next() and use list_next_entry() > from list.h. > > Signed-off-by: Sergey Senozhatsky > --- > net/ceph/messenger.c | 8 +++- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/

Re: [PATCHv2 2/3] ASoC: s3c24xx-i2s: pass DMA channels as platform data

2015-11-18 Thread Arnd Bergmann
On Tuesday 17 November 2015 16:54:16 Arnd Bergmann wrote: > +#include > My randconfig test setup has now found the typo above. Resending the fixed version. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.o

[PATCH 2/2] usb: dwc3: Add Xilinx ZynqMP platform specific glue layer

2015-11-18 Thread Subbaraya Sundeep Bhatta
This patch adds glue driver for DWC3 core in Xilinx ZynqMP SOC. DWC3 glue layer is hardware layer around Synopsys DesignWare USB3 core. Its purpose is to supply Synopsys IP with required clocks and interface it with the rest of the SoC. Signed-off-by: Subbaraya Sundeep Bhatta --- drivers/usb/dwc

[RESEND PATCH v2 2/6] ARM: dts: Mark SDIO as non-removable in exynos5420-peach-pit

2015-11-18 Thread Javier Martinez Canillas
The Exynos5420 Peach Pit Chromebook has a Marvell WiFi SDIO chip which can't neither be removed nor be detected. But the node isn't marked as non-removable and instead has the broken-cd DT property. This causes the device to be removed when the system enters into a suspend state and the following

[RESEND PATCH v2 1/6] ARM: dts: Mark SDIO as non-removable in exynos5800-peach-pi

2015-11-18 Thread Javier Martinez Canillas
The Exynos5800 Peach Pi Chromebook has a Marvell WiFi SDIO chip which can't neither be removed nor be detected. But the node isn't marked as non-removable and instead has the broken-cd DT property. This causes the device to be removed when the system enters into a suspend state and the following w

[RESEND PATCH v2 0/6] ARM: dts: Use correct CD properties for SDIO and eMMC in Snow and Peach

2015-11-18 Thread Javier Martinez Canillas
Hello Krzysztof and Kukjin, This is a resend of a series posted a month ago [0] that use the correct card detection properties in the DTS for Exynos Chromebooks but that was never picked. The patches have no changed, the only difference is that I'm including all the Reviewed-by and Tested-by tags

[RESEND PATCH v2 4/6] ARM: dts: Remove broken-cd from eMMC node in exynos5800-peach-pi

2015-11-18 Thread Javier Martinez Canillas
The eMMC is non-removable so is marked with the non-removable DT property to avoid having to redetect it after a suspend/resume. But it also has the broken-cd property which is wrong since only one of the DT properties for card detection should be used. Also remove the card-detect-delay property

[RESEND PATCH v2 5/6] ARM: dts: Remove broken-cd from eMMC node in exynos5420-peach-pi

2015-11-18 Thread Javier Martinez Canillas
The eMMC is non-removable so is marked with the non-removable DT property to avoid having to redetect it after a suspend/resume. But it also has the broken-cd property which is wrong since only one of the DT properties for card detection should be used. Also remove the card-detect-delay property

[RESEND PATCH v2 6/6] ARM: dts: Mark eMMC as non-removable in exynos5250-snow-common

2015-11-18 Thread Javier Martinez Canillas
The eMMC is non-removable so mark it using the non-removable DT property to avoid having to redetect it after a suspend/resume. Also remove the card-detect-delay property that is not needed with non-removable. Signed-off-by: Javier Martinez Canillas Reviewed-by: Tomeu Vizoso Tested-by: Tomeu Vi

Re: [PATCH 2/3] net/ceph: do not define list_entry_next

2015-11-18 Thread Sergey Senozhatsky
On (11/18/15 14:13), Ilya Dryomov wrote: [..] > > Someone beat you to it ;) > > https://github.com/ceph/ceph-client/commit/76b4a27faebb369c1c50df01ef08b614a2854fc5 Oh, OK then :) Thanks! -ss -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

[RESEND PATCH v2 3/6] ARM: dts: Mark SDIO as non-removable in exynos5250-snow-common

2015-11-18 Thread Javier Martinez Canillas
The Exynos5250 Snow Chromebooks have a Marvell WiFi SDIO chip which can't neither be removed nor be detected. But the node isn't marked as non-removable and instead has the broken-cd DT property. This causes the device to be removed when the system enters into a suspend state and the following war

[PATCH v3 06/22] kthread: Add destroy_kthread_worker()

2015-11-18 Thread Petr Mladek
The current kthread worker users call flush() and stop() explicitly. This function drains the worker, stops it, and frees the kthread_worker struct in one call. It is supposed to be used together with create_kthread_worker*() that allocates struct kthread_worker. Also note that drain() correctly

[PATCH v3 03/22] kthread: Allow to call __kthread_create_on_node() with va_list args

2015-11-18 Thread Petr Mladek
kthread_create_on_node() implements a bunch of logic to create the kthread. It is already called by kthread_create_on_cpu(). We are going to extend the kthread worker API and will need to call kthread_create_on_node() with va_list args there. This patch does only a refactoring and does not modify

[PATCH v3 10/22] kthread: Allow to modify delayed kthread work

2015-11-18 Thread Petr Mladek
There are situations when we need to modify the delay of a delayed kthread work. For example, when the work depends on an event and the initial delay means a timeout. Then we want to queue the work immediately when the event happens. This patch implements mod_delayed_kthread_work() as inspired wor

[PATCH v3 02/22] kthread/smpboot: Do not park in kthread_create_on_cpu()

2015-11-18 Thread Petr Mladek
kthread_create_on_cpu() was added by the commit 2a1d446019f9a5983e ("kthread: Implement park/unpark facility"). It is currently used only when enabling new CPU. For this purpose, the newly created kthread has to be parked. The CPU binding is a bit tricky. The kthread is parked when the CPU has not

[PATCH v3 19/22] memstick/r592: Better synchronize debug messages in r592_io kthread

2015-11-18 Thread Petr Mladek
There is an attempt to print debug messages when the kthread is waken and when it goes into sleep. It does not work well because the spin lock does not guard all manipulations with the thread state. I did not find a way how to print a message when the kthread really goes into sleep. Instead, I add

Re: [GIT PULL 00/16] perf/ebpf improvements and fixes

2015-11-18 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 18, 2015 at 09:06:58PM +0800, pi3orama escreveu: > > > 发自我的 iPhone > > > 在 2015年11月18日,下午8:44,Arnaldo Carvalho de Melo 写道: > > > > Em Wed, Nov 18, 2015 at 07:32:38AM +0100, Ingo Molnar escreveu: > >> So considering the relatively large diffstat and the fact that we are 3 > >> days

[PATCH v3 11/22] kthread: Better support freezable kthread workers

2015-11-18 Thread Petr Mladek
This patch allows to make kthread worker freezable via a new @flags parameter. It will allow to avoid an init work in some kthreads. It currently does not affect the function of kthread_worker_fn() but it might help to do some optimization or fixes eventually. I currently do not know about any ot

[PATCH v3 18/22] IB/fmr_pool: Convert the cleanup thread into kthread worker API

2015-11-18 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v3 17/22] ipmi: Convert kipmi kthread into kthread worker API

2015-11-18 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v3 22/22] thermal/intel_powerclamp: Convert the kthread to kthread worker API

2015-11-18 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v3 20/22] memstick/r592: convert r592_io kthread into kthread worker API

2015-11-18 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v3 21/22] thermal/intel_powerclamp: Remove duplicated code that starts the kthread

2015-11-18 Thread Petr Mladek
This patch removes a code duplication. It does not modify the functionality. Signed-off-by: Petr Mladek CC: Zhang Rui CC: Eduardo Valentin CC: Jacob Pan CC: linux...@vger.kernel.org --- drivers/thermal/intel_powerclamp.c | 45 +- 1 file changed, 20 insertio

[PATCH v3 14/22] ring_buffer: Convert benchmark kthreads into kthread worker API

2015-11-18 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v3 16/22] kmemleak: Convert kmemleak kthread into kthread worker API

2015-11-18 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v3 12/22] kthread: Use try_lock_kthread_work() in flush_kthread_work()

2015-11-18 Thread Petr Mladek
Remove code duplication and use the new try_lock_kthread_work() function in flush_kthread_work() as well. Signed-off-by: Petr Mladek --- kernel/kthread.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/kernel/kthread.c b/kernel/kthread.c index dbd090466e2a..f7caa

[PATCH v3 15/22] hung_task: Convert hungtaskd into kthread worker API

2015-11-18 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v3 2/3] ASoC: s3c24xx-i2s: pass DMA channels as platform data

2015-11-18 Thread Arnd Bergmann
This is a minor cleanup to make the s3c2412-i2s and s3c24xx-i2s drivers independent of the mach/dma.h header file and to allow removing the dependency on the specific dmaengine driver in the next patch. As a side not, only the s3c24xx-i2s driver seems to still be used, while the definition of the

[PATCH v3 13/22] mm/huge_page: Convert khugepaged() into kthread worker API

2015-11-18 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v3 09/22] kthread: Allow to cancel kthread work

2015-11-18 Thread Petr Mladek
We are going to use kthread workers more widely and sometimes we will need to make sure that the work is neither pending nor running. This patch implements cancel_*_sync() operations as inspired by workqueues. Well, we are synchronized against the other operations via the worker lock, we use del_t

[PATCH v3 08/22] kthread: Initial support for delayed kthread work

2015-11-18 Thread Petr Mladek
We are going to use kthread_worker more widely and delayed works will be pretty useful. The implementation is inspired by workqueues. It uses a timer to queue the work after the requested delay. If the delay is zero, the work is queued immediately. In compare with workqueues, each work is associa

[PATCH v3 07/22] kthread: Detect when a kthread work is used by more workers

2015-11-18 Thread Petr Mladek
Nothing currently prevents a work from queuing for a kthread worker when it is already running on another one. This means that the work might run in parallel on more workers. Also some operations, e.g. flush or drain are not reliable. This problem will be even more visible after we add cancel_kthr

[PATCH v3 05/22] kthread: Add drain_kthread_worker()

2015-11-18 Thread Petr Mladek
flush_kthread_worker() returns when the currently queued works are proceed. But some other works might have been queued in the meantime. This patch adds drain_kthread_work() that is inspired by drain_workqueue(). It returns when the queue is completely empty and warns when it takes too long. The

[PATCH v3 04/22] kthread: Add create_kthread_worker*()

2015-11-18 Thread Petr Mladek
Kthread workers are currently created using the classic kthread API, namely kthread_run(). kthread_worker_fn() is passed as the @threadfn parameter. This patch defines create_kthread_worker() and create_kthread_worker_on_cpu() functions that hide implementation details. They enforce using kthread

[PATCH] memory-hotplug: use PFN_DOWN in should_add_memory_movable

2015-11-18 Thread Geliang Tang
Use PFN_DOWN() in should_add_memory_movable() to keep the consistency of this file. Signed-off-by: Geliang Tang --- mm/memory_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 67d488a..7c44ff7 100644 --- a/mm/memory_hotp

Re: [PATCH v5 3/3] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-11-18 Thread Punit Agrawal
Viresh Kumar writes: > On 17-11-15, 12:06, Punit Agrawal wrote: >> Register passive cooling devices when initialising cpufreq on >> big.LITTLE systems. If the device tree provides a dynamic power >> coefficient for the CPUs then the bound cooling device will support >> the extensions that allow i

Re: [RESEND PATCH v2 6/6] ARM: dts: Mark eMMC as non-removable in exynos5250-snow-common

2015-11-18 Thread Javier Martinez Canillas
Hello, On 11/18/2015 10:23 AM, Javier Martinez Canillas wrote: > The eMMC is non-removable so mark it using the non-removable DT > property to avoid having to redetect it after a suspend/resume. > > Also remove the card-detect-delay property that is not needed with > non-removable. > > Signed-of

[PATCH v3 01/22] timer: Allow to check when the timer callback has not finished yet

2015-11-18 Thread Petr Mladek
timer_pending() checks whether the list of callbacks is empty. Each callback is removed from the list before it is called, see call_timer_fn() in __run_timers(). Sometimes we need to make sure that the callback has finished. For example, if we want to free some resources that are accessed by the c

[PATCH v3 00/22] kthread: Use kthread worker API more widely

2015-11-18 Thread Petr Mladek
My intention is to make it easier to manipulate and maintain kthreads. Especially, I want to replace all the custom main cycles with a generic one. Also I want to make the kthreads sleep in a consistent state in a common place when there is no work. My first attempt was with a brand new API (itera

[PATCH 1/2] usb: doc: dwc3-xilinx: Add devicetree bindings

2015-11-18 Thread Subbaraya Sundeep Bhatta
This patch adds binding doc for Xilinx DWC3 glue driver. Signed-off-by: Subbaraya Sundeep Bhatta --- .../devicetree/bindings/usb/dwc3-xilinx.txt| 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/dwc3-xilinx.txt diff --

[PATCH] reset: remove unused device pointer from struct reset_control

2015-11-18 Thread Philipp Zabel
Commit 0c5b2b915a58 ("reset: Mark function as static and remove unused function in core.c") removed the only user of the device pointer in struct reset_control. As it is now unused, remove it. Signed-off-by: Philipp Zabel --- drivers/reset/core.c | 7 +-- 1 file changed, 1 insertion(+), 6 de

[PATCH] locks: use list_first_entry_or_null()

2015-11-18 Thread Geliang Tang
Simplify the code with list_first_entry_or_null(). Signed-off-by: Geliang Tang --- fs/locks.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index 86c9467..d2ee8e3 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1505,12 +1505,10 @@ void lease_

[PATCH v2 4/4] Drivers: hv: utils: fix crash when device is removed from host side

2015-11-18 Thread Vitaly Kuznetsov
The crash is observed when a service is being disabled host side while userspace daemon is connected to the device: [ 90.244859] general protection fault: [#1] SMP ... [ 90.800082] Call Trace: [ 90.800082] [] __fput+0xc8/0x1f0 [ 90.800082] [] fput+0xe/0x10 ... [ 90.800082] []

[PATCH v2 2/4] Drivers: hv: utils: rename outmsg_lock

2015-11-18 Thread Vitaly Kuznetsov
As a preparation to reusing outmsg_lock to protect test-and-set openrations on 'mode' rename it the more general 'lock'. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_utils_transport.c | 14 +++--- drivers/hv/hv_utils_transport.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions

[PATCH v2 3/4] Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode

2015-11-18 Thread Vitaly Kuznetsov
When Hyper-V host asks us to remove some util driver by closing the appropriate channel there is no easy way to force the current file descriptor holder to hang up but we can start to respond -EBADF to all operations asking it to exit gracefully. As we're setting hvt->mode from two separate contex

[PATCH v2 1/4] Drivers: hv: utils: fix memory leak on on_msg() failure

2015-11-18 Thread Vitaly Kuznetsov
inmsg should be freed in case of on_msg() failure to avoid memory leak. Preserve the error code from on_msg(). Signed-off-by: Vitaly Kuznetsov --- Changes since v1: - Preserve the error code from on_msg(). [Dan Carpenter] --- drivers/hv/hv_utils_transport.c | 7 --- 1 file changed, 4 inserti

[PATCH v2 0/4] Drivers: hv: utils: prevent crash when a utility driver is disabled host side

2015-11-18 Thread Vitaly Kuznetsov
Changes since v1: - Don't re-introduce memory leak in hvt_op_write(), preserve the error code from on_msg() [Dan Carpenter] Original description: I'm observing a crash when a utility driver is disabled host side (e.g. 'Guest services' is disabled live) when we have userspace daemon connected:

[PATCH] clocksource: Store reg field within struct clocksource

2015-11-18 Thread Marc Gonzalez
Since 'struct clocksource' is cacheline_aligned, gcc must insert a lot of padding between reg and clksrc in 'struct clocksource_mmio' (for example, L1_CACHE_BYTES = 64 on ARMv7). Storing reg within 'struct clocksource' removes unnecessary padding, and reg can then be grouped with other hot dat

Re: [PATCH] mempolicy: convert the shared_policy lock to a rwlock

2015-11-18 Thread Vlastimil Babka
On 11/17/2015 05:17 PM, Nathan Zimmer wrote: > When running the SPECint_rate gcc on some very large boxes it was noticed > that the system was spending lots of time in mpol_shared_policy_lookup. > The gamess benchmark can also show it and is what I mostly used to chase > down the issue since the se

Re: [PATCH] clocksource: Store reg field within struct clocksource

2015-11-18 Thread Måns Rullgård
Marc Gonzalez writes: > Since 'struct clocksource' is cacheline_aligned, gcc must insert > a lot of padding between reg and clksrc in 'struct clocksource_mmio' > (for example, L1_CACHE_BYTES = 64 on ARMv7). > > Storing reg within 'struct clocksource' removes unnecessary padding, > and reg can

[PATCH] mm, thp: use list_first_entry_or_null()

2015-11-18 Thread Geliang Tang
Simplify the code with list_first_entry_or_null(). Signed-off-by: Geliang Tang --- mm/pgtable-generic.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mm/pgtable-generic.c b/mm/pgtable-generic.c index 69261d4..c311a2e 100644 --- a/mm/pgtable-generic.c +++ b/mm/pgtab

Re: [PATCH] pinctrl: mediatek: Add get_direction support.

2015-11-18 Thread Linus Walleij
On Tue, Nov 17, 2015 at 11:17 PM, Hongzhou Yang wrote: > Since Linux gpio framework return 0 for output, 1 for input. > But HW use 0 stands for input, and 1 stands for output. > So use negative to correct it. > > And gpio_chip.get is used to get input value, no need to get > output value, so remo

Re: [PATCH] reset: remove unused device pointer from struct reset_control

2015-11-18 Thread kbuild test robot
Hi Philipp, [auto build test WARNING on: v4.4-rc1] [also build test WARNING on: next-20151118] url: https://github.com/0day-ci/linux/commits/Philipp-Zabel/reset-remove-unused-device-pointer-from-struct-reset_control/20151118-214443 config: x86_64-randconfig-x012-11181928 (attached as .config

Re: [PATCH v2] gpio: 104-idio-16: Use lowercase symbol names for const variables

2015-11-18 Thread Linus Walleij
On Wed, Nov 18, 2015 at 12:58 AM, William Breathitt Gray wrote: > To prevent confusion, and to match the existing coding style used in > other GPIO drivers, symbol names within the 104-idio-16 GPIO driver > should be lowercase. > > Signed-off-by: William Breathitt Gray > Reviewed-by: Alexandre C

Re: [PATCH 1/9] move blk_iopoll to limit and make it generally available

2015-11-18 Thread Christoph Hellwig
On Tue, Nov 17, 2015 at 09:16:28AM -0800, Bart Van Assche wrote: > How about renaming blk_iopoll into blk_poll ? That way the name still > refers to the block layer. And although the current implementation performs > polling from IRQ context future implementations maybe will allow polling > from

Re: [PATCH 2/9] IB: add a proper completion queue abstraction

2015-11-18 Thread Christoph Hellwig
On Tue, Nov 17, 2015 at 09:52:58AM -0800, Bart Van Assche wrote: > On 11/13/2015 05:46 AM, Christoph Hellwig wrote: >> + * context and does not ask from completion interrupts from the HCA. > > Should this perhaps be changed into "for" ? Yes. > >> + */ >> +void

Re: [PATCH] block: add calls to split trace point

2015-11-18 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 2/3 v7] livepatch: add sympos as disambiguator field to klp_reloc

2015-11-18 Thread Josh Poimboeuf
On Wed, Nov 18, 2015 at 10:56:00AM +0100, Miroslav Benes wrote: > On Mon, 16 Nov 2015, Chris J Arges wrote: > > > @@ -281,29 +243,26 @@ static int klp_write_object_relocations(struct module > > *pmod, > > return -EINVAL; > > > > for (reloc = obj->relocs; reloc->name; reloc++) {

Re: [PATCH 5/9] srpt: use the new CQ API

2015-11-18 Thread Christoph Hellwig
On Tue, Nov 17, 2015 at 11:38:48AM -0800, Bart Van Assche wrote: > On 11/13/2015 05:46 AM, Christoph Hellwig wrote: >> [ ... ] > > This patch contains two logical changes: > - Conversion to the new CQ API. > - Removal of the ib_srpt_compl thread. > > Had it been considered to implement these change

Re: [PATCH 3/4] sched: introduce synchronized idle injection

2015-11-18 Thread Morten Rasmussen
On Wed, Nov 18, 2015 at 01:49:46PM +0100, Peter Zijlstra wrote: > On Wed, Nov 18, 2015 at 12:27:04PM +, Morten Rasmussen wrote: > > On Wed, Nov 18, 2015 at 11:35:41AM +0100, Peter Zijlstra wrote: > > > On Wed, Nov 18, 2015 at 09:36:22AM +0100, Ingo Molnar wrote: > > > > What will such throttlin

<    1   2   3   4   5   6   7   8   9   10   >