[patch 2/2] dma: ipu: Consolidate duplicated irq handlers

2015-08-01 Thread Thomas Gleixner
The functions irq_irq_err and ipu_irq_fn are identical plus/minus the comments. Remove one. Signed-off-by: Thomas Gleixner Cc: Vinod Koul Cc: Dan Williams Cc: dmaeng...@vger.kernel.org --- drivers/dma/ipu/ipu_irq.c | 46 -- 1 file changed, 4 insert

[patch 0/2] dma: ipu: Preparation for API change and consolidation

2015-08-01 Thread Thomas Gleixner
The first patch prepares the interrupt handlers for removal of the irq argument. While doing that I noticed that the handler functions are identical. Consolidate them. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to maj

[patch 1/2] dma: ipu: Prepare irq handlers for irq argument removal

2015-08-01 Thread Thomas Gleixner
The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-o

Re: [PATCH 3.14 000/125] 3.14.49-stable review

2015-08-01 Thread Sudip Mukherjee
On Fri, Jul 31, 2015 at 12:40:00PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.14.49 release. > There are 125 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH v2] kthread: Export kthread functions

2015-08-01 Thread yalin wang
> 在 2015年7月31日,22:14,Thomas Gleixner 写道: > > > On Fri, 31 Jul 2015, Thomas Gleixner wrote: > >> On Fri, 31 Jul 2015, yalin wang wrote: >>> it is optimised to 2 instructions , >>> >>> this is my patch, hope can be merged : >> >> We are not exposing the internals of kthread management. Period.

Re: [PATCH 3.14 000/125] 3.14.49-stable review

2015-08-01 Thread Sudip Mukherjee
On Sat, Aug 01, 2015 at 12:39:25PM +0530, Sudip Mukherjee wrote: > On Fri, Jul 31, 2015 at 12:40:00PM -0700, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.14.49 release. > > There are 125 patches in this series, all will be posted as a response > > to this one

Re: [PATCH v2] kthread: Export kthread functions

2015-08-01 Thread Thomas Gleixner
On Sat, 1 Aug 2015, yalin wang wrote: > size built-in.o* > text data bss dec hex filename > 743937 50786 56008 850731 cfb2b built-in.o// with the > patch > 744069 50786 56008 850863 cfbaf built-in.o_old // with out the > patch Not al

Re: v4.2-rc dcache regression, probably 75a6f82a0d10

2015-08-01 Thread Al Viro
On Fri, Jul 31, 2015 at 03:52:38PM -0700, Linus Torvalds wrote: > Is that correct? Maybe, I haven't checked. And maybe it's a big bad > bug. Regardless, it sure as hell isn't just changing the order of the > access to those fields. That "DCACHE_ENTRY_TYPE | DCACHE_FALLTHRU" > clearing came from __

Re: [PATCH v3 3/5] ARM: Exynos: switch to using generic cpufreq driver for Exynos4x12

2015-08-01 Thread Krzysztof Kozlowski
W dniu 01.08.2015 o 03:49, Bartlomiej Zolnierkiewicz pisze: > The new CPU clock type allows the use of generic CPUfreq driver. > Switch Exynos4x12 to using generic cpufreq driver. > > Also make CPUFREQ_DT config option select Exynos thermal driver > if Exynos platform support is enabled. Why? I t

Re: [tip:x86/asm] x86/vm86: Clean up vm86.h includes

2015-08-01 Thread Ingo Molnar
* Brian Gerst wrote: > On Fri, Jul 31, 2015 at 10:04 AM, tip-bot for Brian Gerst > wrote: > > Commit-ID: ba3e127ec105e790eeec4034d9769e018e4a1b54 > > Gitweb: > > http://git.kernel.org/tip/ba3e127ec105e790eeec4034d9769e018e4a1b54 > > Author: Brian Gerst > > AuthorDate: Wed, 29 Jul 201

Re: [PATCH 3.10 00/89] 3.10.85-stable review

2015-08-01 Thread Sudip Mukherjee
On Fri, Jul 31, 2015 at 12:40:42PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.10.85 release. > There are 89 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

[GIT PULL] x86 fixes

2015-08-01 Thread Ingo Molnar
Linus, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: 37868fe113ff2ba814b3b4eb12df214df555f8dc x86/ldt: Make modify_ldt synchronous Fallout from the recent NMI fixes: make x86 LDT handling

!

2015-08-01 Thread Rita
When and What time can i Call you? Respond ASAP -- 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/

[Git pull] irq updates for 4.2

2015-08-01 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus Just two updates to the maintainers file. Thanks, tglx --> Thomas Gleixner (2): MAINTAINERS: Appoint Marc Zyngier

Re: [RFC] arm64:change jump_label to use branch instruction, not use NOP instr

2015-08-01 Thread yalin wang
> 在 2015年7月31日,18:14,Will Deacon 写道: > > On Fri, Jul 31, 2015 at 10:33:55AM +0100, Peter Zijlstra wrote: >> On Fri, Jul 31, 2015 at 05:25:02PM +0800, yalin wang wrote: On Jul 31, 2015, at 15:52, Peter Zijlstra wrote: On Fri, Jul 31, 2015 at 03:41:37PM +0800, yalin wang wrote: > Th

[tip:timers/core] clockevents: Drop redundant cpumask check in tick_check_new_device()

2015-08-01 Thread tip-bot for Luiz Capitulino
Commit-ID: d74892c5b291c0010295d26d6b1e11cd70451722 Gitweb: http://git.kernel.org/tip/d74892c5b291c0010295d26d6b1e11cd70451722 Author: Luiz Capitulino AuthorDate: Wed, 29 Jul 2015 15:14:17 -0400 Committer: Thomas Gleixner CommitDate: Sat, 1 Aug 2015 12:00:13 +0200 clockevents: Drop red

Re: [PATCH] x86: serialize LVTT and TSC_DEADLINE write

2015-08-01 Thread Thomas Gleixner
On Fri, 31 Jul 2015, Shaohua Li wrote: > @@ -336,6 +336,22 @@ static void __setup_APIC_LVTT(unsigned int clocks, int > oneshot, int irqen) > apic_write(APIC_LVTT, lvtt_value); > > if (lvtt_value & APIC_LVT_TIMER_TSCDEADLINE) { > + u64 msr; > + > + /* > +

Re: [PATCH 1/1] linux-next: drivers: staging: most: Fix return value

2015-08-01 Thread Christian Gromm
On Fri, 31 Jul 2015 22:18:17 +0200 Michael Hornung wrote: > * Fix sparse warning "Using plain integer as NULL pointer" > > Signed-off-by: Michael Hornung Acked-by: Christian Gromm > --- > drivers/staging/most/aim-network/networking.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: Nokia N900 - audio TPA6130A2 problems

2015-08-01 Thread Pali Rohár
On Saturday 25 July 2015 15:17:13 Lars-Peter Clausen wrote: > On 07/25/2015 12:28 PM, Pali Rohár wrote: > > Hello, > > > > sometimes after rebooting Nokia N900 initializing alsa audio fails. > > Here output from dmesg log when it happen: > > > > [6.925140] tpa6130a2 2-0060: Write failed > > [

Re: v4.2-rc dcache regression, probably 75a6f82a0d10

2015-08-01 Thread Dominique Martinet
Al Viro wrote on Sat, Aug 01, 2015: > And that has turned the check done to an inode that *was* ours at some > point (i.e. fetching it had been followed by checking that ->d_seq had > been still valid) into something completely unprotected. Suppose we > are in lazy mode and somebody had evicted nd

Re: [PATCH 03/11] ocfs2: Less checks in ocfs2_rename() after error detection

2015-08-01 Thread SF Markus Elfring
>> From: Markus Elfring >> Date: Sat, 4 Jul 2015 15:30:18 +0200 >> >> Skip checks for a few variables in three error handling cases within >> the ocfs2_rename() function by adjustment of a few jump targets >> according to the Linux coding style convention. >> >> Signed-off-by: Markus Elfring > >

Re: [PATCH v3 2/5] ARM: dts: Exynos4x12: add CPU OPP and regulator supply property

2015-08-01 Thread Viresh Kumar
On 31-07-15, 20:49, Bartlomiej Zolnierkiewicz wrote: > For Exynos4x12 platforms, add CPU operating points (using > opp-v2 bindings) and CPU regulator supply properties for > migrating from Exynos specific cpufreq driver to using > generic cpufreq driver. > > Based on the earlier work by Thomas Abr

Re: [PATCH v3 4/5] cpufreq: exynos: remove Exynos4x12 specific cpufreq driver support

2015-08-01 Thread Viresh Kumar
Cc'ing Rafael, please keep him in loop for such patches and better use get_maintainers to get the cc list automatically. On 31-07-15, 20:49, Bartlomiej Zolnierkiewicz wrote: > Exynos4x12 based platforms have switched over to use generic > cpufreq driver for cpufreq functionality. So the Exynos >

Re: v4.2-rc dcache regression, probably 75a6f82a0d10

2015-08-01 Thread Dominique Martinet
Dominique Martinet wrote on Sat, Aug 01, 2015: > I had to adapt a bit because using an old kernel (4bf46a272), will try > again with a recent master to doublecheck There have been more changes than what I thought, can't seem to reproduce in a while on linus' HEAD with that fix (it fell in that che

Re: [PATCH v2 6/6] stop_machine: kill stop_cpus_lock and lg_double_lock/unlock()

2015-08-01 Thread Oleg Nesterov
Hi Peter, Thanks for looking. I'll try to reply on Monday, just one note... On 07/30, Peter Zijlstra wrote: > > On Tue, Jul 21, 2015 at 09:22:47PM +0200, Oleg Nesterov wrote: > > > +static int cpu_stop_queue_two_works(int cpu1, struct cpu_stop_work *work1, > > + int

Re: [PATCH] regmap: remove redundant $(CONFIG_REGMAP) in Makefile

2015-08-01 Thread Mark Brown
On Sat, Aug 01, 2015 at 04:42:27AM +0900, Masahiro Yamada wrote: > Kbuild descends into drivers/base/regmap/ only when CONFIG_REGMAP > is enabled. (see drivers/base/Makefile) > > $(CONFIG_REGMAP) in drivers/base/regmap/Makefile always evaluates > to 'y'. > -obj-$(CONFIG_REGMAP) += regmap.o regcac

Re: [PATCH v3 5/5] cpufreq: remove no longer needed CPU_FREQ_BOOST_SW config option

2015-08-01 Thread Viresh Kumar
On 31-07-15, 20:49, Bartlomiej Zolnierkiewicz wrote: > Remove no longer needed CPU_FREQ_BOOST_SW config option. > > As a result scaling_boost_freqs sysfs attribute is available > when cpufreq-dt driver is used and boost support is enabled. > > Cc: Viresh Kumar > Cc: Thomas Abraham > Cc: Javier

Re: [PATCH v3 3/5] ARM: Exynos: switch to using generic cpufreq driver for Exynos4x12

2015-08-01 Thread Viresh Kumar
On 31-07-15, 20:49, Bartlomiej Zolnierkiewicz wrote: > diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig > index 659879a..bf6d596 100644 > --- a/drivers/cpufreq/Kconfig > +++ b/drivers/cpufreq/Kconfig > @@ -191,6 +191,7 @@ config CPUFREQ_DT > # if CPU_THERMAL is on and THERMAL=m,

Re: [PATCH 14/15] mm: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-01 Thread Viresh Kumar
On 31-07-15, 11:00, Joe Perches wrote: > On Fri, 2015-07-31 at 16:36 +0530, Viresh Kumar wrote: > > On 31-07-15, 03:28, Joe Perches wrote: > > > If it's all fixed, then it's unlikely to be needed in checkpatch. > > > > I thought checkpatch is more about not committing new mistakes, rather than > >

Applied "regulator: fan53555: Export I2C module alias information" to the regulator tree

2015-08-01 Thread Mark Brown
The patch regulator: fan53555: Export I2C module alias information has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH] scripts/kernel-doc Allow struct arguments documentation in struct body

2015-08-01 Thread Jonathan Corbet
On Fri, 31 Jul 2015 18:06:45 -0300 Danilo Cesar Lemes de Paula wrote: > Describing arguments at top of a struct definition works fine > for small/medium size structs, but it definitely doesn't work well > for struct with a huge list of elements. > > Keeping the arguments list inside the struct b

Re: [PATCH 05/15] drivers: input: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-01 Thread Viresh Kumar
On 31-07-15, 09:58, Dmitry Torokhov wrote: > On Fri, Jul 31, 2015 at 02:08:25PM +0530, Viresh Kumar wrote: > > IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there > > is no need to do that again from its callers. Drop it. > > I'd rather keep it as it documents the expected behav

Re: [PATCH] thermal/cpu_cooling: remove local cooling state variable

2015-08-01 Thread Viresh Kumar
On 31-07-15, 08:30, Radivoje Jovanovic wrote: > I just looked over the notifier in the current upstream (my patch was > made on our production kernel which is 3.14 and has old notifier > implementation with notifier_device in place) and I see your point. That's disappointing. You were expected to

Re: [PATCH v4 2/2] dt: power: st: Provide bindings for ST's OPPs

2015-08-01 Thread Viresh Kumar
On 31-07-15, 09:37, Stephen Boyd wrote: > Do we need vendor specific properties for that though? Sorry Lee :), but this is exactly why I wanted this thread to exist. We must and should do this in a generic enough way. -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [PATCH 20/26] clk: spear: Convert to clk_hw based provider APIs

2015-08-01 Thread Viresh Kumar
On 31-07-15, 10:04, Stephen Boyd wrote: > We're removing struct clk from the clk provider API, so switch > this code to using the clk_hw based provider APIs. > > Cc: Viresh Kumar > Signed-off-by: Stephen Boyd > --- > drivers/clk/spear/clk-vco-pll.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

Re: [PATCH 05/15] drivers: input: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-01 Thread Pali Rohár
On Saturday 01 August 2015 13:22:51 Viresh Kumar wrote: > On 31-07-15, 09:58, Dmitry Torokhov wrote: > > On Fri, Jul 31, 2015 at 02:08:25PM +0530, Viresh Kumar wrote: > > > IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and > > > there is no need to do that again from its callers. Dro

Re: [PATCH] HID: hid-input: Fix accessing freed memory during driver unbind

2015-08-01 Thread Jiri Kosina
On Wed, 29 Jul 2015, Dmitry Torokhov wrote: > > Another and less intrusive fix would be: > > > > char *name = dev->battery->desc->name; > > struct power_supply_desc *psy_desc = dev->battery->desc; > > power_supply_unregister(dev->battery); > > kfree(name); > > kfree(psy_desc);

Re: [4.2-rc4] acpi|drm|i915: circular locking dependency: acpi_video_get_backlight_type

2015-08-01 Thread Sedat Dilek
On Mon, Jul 27, 2015 at 12:33 AM, Sedat Dilek wrote: > Hi, > > this my first build of a 4.2-rcN Linux-kernel and I see this... > Just FYI: I am *not* seeing this with drm-intel-nightly from below url. Also, I plan to test Linux v4.2-rc5. - Sedat - [1] http://kernel.ubuntu.com/~kernel-ppa/mai

[Patch v3 1/2] tracing: allow disabling compilation of specific trace systems

2015-08-01 Thread Tal Shorer
Allow a trace events header file to disable compilation of its trace events by defining the preprocessor macro NOTRACE. This could be done, for example, according to a Kconfig option. Signed-off-by: Tal Shorer --- include/linux/tracepoint.h | 17 ++--- include/trace/define_trace.h

[Patch v3 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events

2015-08-01 Thread Tal Shorer
Add a new options to trace Kconfig, CONFIG_TRACING_EVENTS_GPIO, that is used for enabling/disabling compilation of gpio function trace events. Signed-off-by: Tal Shorer Acked-by: Linus Walleij --- include/trace/events/gpio.h | 4 kernel/trace/Kconfig| 7 +++ 2 files changed, 11

[Patch v3 0/2] tracing: allow disabling compilation of specific trace systems

2015-08-01 Thread Tal Shorer
Currently, enabling CONFIG_TRACING on a system comes as all-or-nothing: either tracepoints for all subsystems are compiled (with CONFIG_TRACING) or none of them are (without it). This caused me an unacceptable performance penalty (obviously SOME penalty was expected, but not one so severe) which m

Re: [PATCH] regmap: remove redundant $(CONFIG_REGMAP) in Makefile

2015-08-01 Thread Masahiro Yamada
Hi Mark, 2015-08-01 19:59 GMT+09:00 Mark Brown : > On Sat, Aug 01, 2015 at 04:42:27AM +0900, Masahiro Yamada wrote: >> Kbuild descends into drivers/base/regmap/ only when CONFIG_REGMAP >> is enabled. (see drivers/base/Makefile) >> >> $(CONFIG_REGMAP) in drivers/base/regmap/Makefile always evaluat

!

2015-08-01 Thread Rita
When and What time can i Call you? Respond ASAP -- 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] scripts/kernel-doc Allow struct arguments documentation in struct body

2015-08-01 Thread Laurent Pinchart
Hi Jon, On Saturday 01 August 2015 13:22:10 Jonathan Corbet wrote: > On Fri, 31 Jul 2015 18:06:45 -0300 Danilo Cesar Lemes de Paula wrote: > > Describing arguments at top of a struct definition works fine > > for small/medium size structs, but it definitely doesn't work well > > for struct with a

Re: [PATCH] Input: drivers/joystick: use parallel port device model

2015-08-01 Thread Sudip Mukherjee
On Fri, Jul 31, 2015 at 01:43:06PM -0700, Dmitry Torokhov wrote: > On Fri, Jul 31, 2015 at 01:36:18PM -0700, Greg KH wrote: > > On Fri, Jul 31, 2015 at 11:04:26PM +0530, Sudip Mukherjee wrote: > > > On Fri, Jul 31, 2015 at 09:54:27AM -0700, Dmitry Torokhov wrote: > > > > On Fri, Jul 31, 2015 at 03:

[PATCH 0/4] watchdog: avoid races in watchdog_nmi_{en|disable} functions

2015-08-01 Thread Ulrich Obergfell
Originally watchdog_nmi_enable(cpu) and watchdog_nmi_disable(cpu) were only called in watchdog thread context. However, the following commits utilize these functions outside of watchdog thread context too. commit 9809b18fcf6b8d8ec4d3643677345907e6b50eca Author: Michal Hocko Date: Tue Sep

[PATCH 2/4] watchdog: introduce watchdog_suspend() and watchdog_resume()

2015-08-01 Thread Ulrich Obergfell
This interface can be utilized to deactivate the hard and soft lockup detector temporarily. Callers are expected to minimize the duration of deactivation. Multiple deactivations are allowed to occur in parallel but should be rare in practice. Signed-off-by: Ulrich Obergfell --- include/linux/nmi

[PATCH 3/4] watchdog: use park/unpark functions in update_watchdog_all_cpus()

2015-08-01 Thread Ulrich Obergfell
Remove update_watchdog() and restart_watchdog_hrtimer() since these functions are no longer needed. Changes of parameters such as the sample period are honored at the time when the watchdog threads are being unparked. Signed-off-by: Ulrich Obergfell --- kernel/watchdog.c | 40 ++-

[PATCH 4/4] watchdog: use suspend/resume interface in fixup_ht_bug()

2015-08-01 Thread Ulrich Obergfell
Remove watchdog_nmi_disable_all() and watchdog_nmi_enable_all() since these functions are no longer needed. If a subsystem has a need to deactivate the watchdog temporarily, it should utilize the watchdog_suspend() and watchdog_resume() functions. Signed-off-by: Ulrich Obergfell --- arch/x86/ker

[PATCH 1/4] watchdog: introduce watchdog_park_threads() and watchdog_unpark_threads()

2015-08-01 Thread Ulrich Obergfell
These functions are intended to be used only from inside kernel/watchdog.c to park/unpark all watchdog threads that are specified in watchdog_cpumask. Signed-off-by: Ulrich Obergfell --- kernel/watchdog.c | 36 1 file changed, 36 insertions(+) diff --git a/k

Re: [PATCH] watchdog: Fix race on single cpu boot

2015-08-01 Thread Ulrich Obergfell
Don, > Uli privately has been working on a patchset that cleans up a bunch of these > race conditions. We believe it should cover this case. It uses the > proc_mutex to synchronize everything. > > I think he is reaching out to you. If you could try his patchset to see if > it fixes things, it

[RFC PATCH v2] lib: scatterlist: add sg splitting function

2015-08-01 Thread Robert Jarzmik
Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by multiple DMA channels, each one filling a part of it. A concrete example comes with the media V4L2 API, where the scatter list is allocated from users

Re: [PATCH v2] kthread: Export kthread functions

2015-08-01 Thread Neil Horman
On Sat, Aug 01, 2015 at 03:12:42PM +0800, yalin wang wrote: > > > 在 2015年7月31日,22:14,Thomas Gleixner 写道: > > > > > > On Fri, 31 Jul 2015, Thomas Gleixner wrote: > > > >> On Fri, 31 Jul 2015, yalin wang wrote: > >>> it is optimised to 2 instructions , > >>> > >>> this is my patch, hope can be

[PATCH] ACPI: fix acpi_debugfs_init prototype

2015-08-01 Thread Nicolas Iooss
acpi_debugfs_init function is declared with return type int in drivers/acpi/internal.h when CONFIG_DEBUG_FS is enabled, but its definition in drivers/acpi/debugfs.c has return type void. This is due to commit aecad432fd68 ("ACPI: Cleanup custom_method debug stuff"), which changed the return type fr

[PATCH] drm/amdgpu: increment queue when iterating on this variable.

2015-08-01 Thread Nicolas Iooss
gfx_v7_0_print_status contains a for loop on variable queue which does not update this variable between each iteration. This is bug is reported by clang while building allmodconfig LLVMLinux on x86_64: drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c:5126:19: error: variable 'queue' used in loop con

[PATCH] NFC: nxp-nci: Include unaligned.h instead of access_ok.h

2015-08-01 Thread Guenter Roeck
Directly including access_ok.h can result in the following compile errors if an architecture such as ia64 does not support direct unaligned accesses. include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unaligned_le16' include/linux/unaligned/le_struct.h:6:19: note:

[PATCH] lustre: Include unaligned.h instead of access_ok.h

2015-08-01 Thread Guenter Roeck
Including access_ok.h causes the ia64:allmodconfig build (and maybe others) to fail with include/linux/unaligned/le_struct.h:6:19: error: redefinition of 'get_unaligned_le16' include/linux/unaligned/access_ok.h:7:19: note: previous definition of 'get_unaligned_le16' was here includ

Re: [PATCH 2/4] watchdog: introduce watchdog_suspend() and watchdog_resume()

2015-08-01 Thread Guenter Roeck
On Sat, Aug 01, 2015 at 02:49:23PM +0200, Ulrich Obergfell wrote: > This interface can be utilized to deactivate the hard and soft lockup > detector temporarily. Callers are expected to minimize the duration of > deactivation. Multiple deactivations are allowed to occur in parallel > but should be

Re: [tip:x86/mm] x86/mm/mtrr: Clean up mtrr_type_lookup()

2015-08-01 Thread Luis R. Rodriguez
On Fri, Jul 31, 2015 at 05:27:13PM +0200, Borislav Petkov wrote: > On Fri, Jul 31, 2015 at 05:08:06PM +0200, Peter Zijlstra wrote: > > But its things like set_memory_XX(), and afaict that's all buggy against > > MTRR modifications. > > I think the idea is to not do any MTRR modifications at some p

Re: [PATCH 2/4] watchdog: introduce watchdog_suspend() and watchdog_resume()

2015-08-01 Thread Ulrich Obergfell
> - Original Message - > From: "Guenter Roeck" > ... > Subject: Re: [PATCH 2/4] watchdog: introduce watchdog_suspend() and > watchdog_resume() > > On Sat, Aug 01, 2015 at 02:49:23PM +0200, Ulrich Obergfell wrote: >> This interface can be utilized to deactivate the hard and soft lockup >>

Re: [PATCH 2/4] watchdog: introduce watchdog_suspend() and watchdog_resume()

2015-08-01 Thread Guenter Roeck
On Sat, Aug 01, 2015 at 10:39:22AM -0400, Ulrich Obergfell wrote: > > - Original Message - > > From: "Guenter Roeck" > > ... > > Subject: Re: [PATCH 2/4] watchdog: introduce watchdog_suspend() and > > watchdog_resume() > > > > On Sat, Aug 01, 2015 at 02:49:23PM +0200, Ulrich Obergfell wro

Re: [PATCH] serial: etraxfs-uart: use mctrl_gpio helpers for handling modem signals

2015-08-01 Thread Guenter Roeck
On Sat, Jul 25, 2015 at 02:02:46AM +0200, Niklas Cassel wrote: > In order to use the mctrl_gpio helpers, we change the DT bindings: > ri-gpios renamed to rng-gpios. cd-gpios renamed to dcd-gpios. > However, no in-tree dts/dtsi specifies these, so no worries. > > Signed-off-by: Niklas Cassel Acke

Re: [PATCH] serial: etraxfs-uart: remove empty functions

2015-08-01 Thread Guenter Roeck
On Sat, Jul 25, 2015 at 02:00:40AM +0200, Niklas Cassel wrote: > Implementing enable_ms is optional by serial_core. > check_modem_status is just an empty local function. > > Signed-off-by: Niklas Cassel Reviewed-by: Guenter Roeck Tested-by: Guenter Roeck -- To unsubscribe from this list: send

Re: [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC

2015-08-01 Thread Paul Osmialowski
Hi Mike, On Fri, 31 Jul 2015, Michael Turquette wrote: > Quoting Paul Osmialowski (2015-07-30 14:40:48) > > Hi Mike, > > > > I encountered some trouble while I tried to implement code fitting to DTS > > that you proposed. SIM_CLKDIVx are SIM device registers, not MCG. > > Therefore, in MCG de

Re: [PATCH] Staging:wilc1000 :Remove typedef from struct

2015-08-01 Thread Greg Kroah-Hartman
On Sat, Aug 01, 2015 at 10:25:26AM +0530, Sudip Mukherjee wrote: > On Fri, Jul 31, 2015 at 01:52:13PM -0700, Greg Kroah-Hartman wrote: > > On Fri, Jul 31, 2015 at 11:08:47AM +0530, Shraddha Barke wrote: > > > This patch fixes the following checkpatch.pl warning: > > > > > > WARNING: do not add new

Re: v4.2-rc dcache regression, probably 75a6f82a0d10

2015-08-01 Thread Linus Torvalds
On Sat, Aug 1, 2015 at 12:26 AM, Al Viro wrote: > > Actually, the shit had hit the fan earlier. Look: in > commit b18825a7c8e37a7cf6abb97a12a6ad71af160de7 > Author: David Howells > Date: Thu Sep 12 19:22:53 2013 +0100 > > VFS: Put a small type field into struct dentry::d_flags > > we have

[GIT PULL] slave dmaengine fixes for 4.2-rc5

2015-08-01 Thread Vinod Koul
Hi Linus, Here is the first fixes request for 4.2 We had a regression due to reuse of descriptor so we have reverted that. Rest are driver fixes: at_hdmac and at_xdmac for residue, trannfer width, and channel config pl330 final fix for dma fails and overflow issue xgene resouce

Re: [PATCH] watchdog: Fix race on single cpu boot

2015-08-01 Thread Peter Zijlstra
On Sat, Aug 01, 2015 at 09:05:52AM -0400, Ulrich Obergfell wrote: > > Don, > > > Uli privately has been working on a patchset that cleans up a bunch of these > > race conditions. We believe it should cover this case. It uses the > > proc_mutex to synchronize everything. > > > > I think he is re

Re: [tip:x86/mm] x86/mm/mtrr: Clean up mtrr_type_lookup()

2015-08-01 Thread Borislav Petkov
On Sat, Aug 01, 2015 at 04:28:20PM +0200, Luis R. Rodriguez wrote: > I need to update this documentation to remove set_memory_wc() there as we've > learned with the MTRR --> PAT conversion that set_memory_wc() cannot be used > on > IO memory, it can only be used for RAM. I am not sure if I would c

Re: [PATCH v5 01/11] block: make generic_make_request handle arbitrarily sized bios

2015-08-01 Thread Mike Snitzer
On Sat, Aug 01 2015 at 2:58am -0400, Ming Lin wrote: > On Fri, 2015-07-31 at 17:38 -0400, Mike Snitzer wrote: > > > > OK, once setup, to run the 2 tests in question directly you'd do > > something like: > > > > dmtest run --suite thin-provisioning -n discard_a_fragmented_device > > > > dmtest

Re: [tip:x86/mm] x86/mm/mtrr: Clean up mtrr_type_lookup()

2015-08-01 Thread Linus Torvalds
On Sat, Aug 1, 2015 at 9:33 AM, Borislav Petkov wrote: > > Well, it doesn't really make sense to write-combine IO memory, does it? Quite the reverse. It makes no sense to write-combine normal memory (RAM), because caches work and sane memory is always cache-coherent. So marking regular memory wr

[PATCH] x86: use WRITE_ONCE/READ_ONCE in smp_store_release/smp_load_acquire

2015-08-01 Thread Andrey Konovalov
Replace ACCESS_ONCE() macro in smp_store_release() and smp_load_acquire() from arch/x86/include/asm/barrier.h with WRITE_ONCE() and READ_ONCE() since ACCESS_ONCE does not work reliably on non-scalar types. WRITE_ONCE() and READ_ONCE() were introduced in the commits 230fa253df63 ("kernel: Provide R

Re: [tip:x86/mm] x86/mm/mtrr: Clean up mtrr_type_lookup()

2015-08-01 Thread Borislav Petkov
On Sat, Aug 01, 2015 at 09:39:07AM -0700, Linus Torvalds wrote: > Quite the reverse. > > It makes no sense to write-combine normal memory (RAM), because caches > work and sane memory is always cache-coherent. So marking regular > memory write-combining is a sign of crap hardware (which admittedly

Re: [PATCH] x86: use WRITE_ONCE/READ_ONCE in smp_store_release/smp_load_acquire

2015-08-01 Thread Borislav Petkov
On Sat, Aug 01, 2015 at 06:45:34PM +0200, Andrey Konovalov wrote: > Replace ACCESS_ONCE() macro in smp_store_release() and smp_load_acquire() > from arch/x86/include/asm/barrier.h with WRITE_ONCE() and READ_ONCE() since > ACCESS_ONCE does not work reliably on non-scalar types. > > WRITE_ONCE() and

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-08-01 Thread Amir Goldstein
On Fri, Jul 31, 2015 at 10:56 PM, Casey Schaufler wrote: > On 7/31/2015 1:11 AM, Amir Goldstein wrote: >> On Thu, Jul 30, 2015 at 6:33 PM, Casey Schaufler >> wrote: >>> On 7/30/2015 7:47 AM, Amir Goldstein wrote: On Thu, Jul 30, 2015 at 4:55 PM, Seth Forshee wrote: > On Thu, Jul 3

Re: [tip:x86/mm] x86/mm/mtrr: Clean up mtrr_type_lookup()

2015-08-01 Thread Linus Torvalds
On Sat, Aug 1, 2015 at 9:49 AM, Borislav Petkov wrote: > > My simplistic mental picture while thinking of this is the IO range > where you send the commands to the device and you don't really want to > delay those but they should reach the device as they get issued. Well, even for command streams

Re: v4.2-rc dcache regression, probably 75a6f82a0d10

2015-08-01 Thread Al Viro
On Sat, Aug 01, 2015 at 09:09:24AM -0700, Linus Torvalds wrote: > On Sat, Aug 1, 2015 at 12:26 AM, Al Viro wrote: > > > > Actually, the shit had hit the fan earlier. Look: in > > commit b18825a7c8e37a7cf6abb97a12a6ad71af160de7 > > Author: David Howells > > Date: Thu Sep 12 19:22:53 2013 +0100

[PATCH v2] regulator: axp20x: Add module alias

2015-08-01 Thread Ian Campbell
This allows the module to be autoloaded. Together with 07949bf9c63c ("cpufreq: dt: allow driver to boot automatically") this is sufficient to allow a modular kernel (such as Debian's) to enable cpufreq on a Cubietruck. Signed-off-by: Ian Campbell Cc: Liam Girdwood Cc: Mark Brown Cc: Chen-Yu Ts

Re: [PATCH] x86: use WRITE_ONCE/READ_ONCE in smp_store_release/smp_load_acquire

2015-08-01 Thread Peter Zijlstra
On Sat, Aug 01, 2015 at 06:45:34PM +0200, Andrey Konovalov wrote: > Replace ACCESS_ONCE() macro in smp_store_release() and smp_load_acquire() > from arch/x86/include/asm/barrier.h with WRITE_ONCE() and READ_ONCE() since > ACCESS_ONCE does not work reliably on non-scalar types. > > WRITE_ONCE() and

[PATCH v2 4/6] scsi: ufs: prevent IRQ handler accessing already freed hostdata

2015-08-01 Thread Akinobu Mita
As UFS driver registers IRQ handler as a shared IRQ, when CONFIG_DEBUG_SHIRQ=y, an extra call will be made while unregistering the IRQ handler. Unfortunately, the extra call will accesses already freed hostdata. This is because devm_request_irq() is used to register IRQ handler so that it will be

Re: [PATCH v4 1/7] locking/pvqspinlock: Unconditional PV kick with _Q_SLOW_VAL

2015-08-01 Thread Davidlohr Bueso
On Fri, 2015-07-31 at 22:21 -0400, Waiman Long wrote: > The smp_store_release() is not a full barrier. In order to avoid missed > wakeup, we may need to add memory barrier around locked and cpu state > variables adding to complexity. As the chance of spurious wakeup is very > low, it is easier and

drivres/hv

2015-08-01 Thread K. Y. Srinivasan
Greg, over the last two months we have sent numerous Hyper-V patches and these are yet to be comitted (all review comments have been addressed for these patches). Please let me know if I should resend these patches. Regards, K. Y -- To unsubscribe from this list: send the line "unsubscribe lin

Re: drivres/hv

2015-08-01 Thread Greg KH
On Sat, Aug 01, 2015 at 12:46:10PM -0700, K. Y. Srinivasan wrote: > > Greg, over the last two months we have sent numerous Hyper-V patches and > these are yet to be comitted (all review comments have been addressed > for these patches). Please let me know if I should resend these patches. They a

RE: drivres/hv

2015-08-01 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Saturday, August 1, 2015 11:36 AM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; > jasow...@redhat.com > Subj

Re: [RFC PATCH 0/4] Shared vhost design

2015-08-01 Thread Bandan Das
Eyal Moscovici writes: ... > > We can start to implement polling, but I am unsure if the cgroups > integration > will be sufficient. The polling vhost thread should be scheduled all > the time and just moving it from one cgroup to the other wont be > sufficient. > I think it needs a deeper int

Re: [PATCH 3.2 058/221] debugfs: leave freeing a symlink body until inode eviction

2015-08-01 Thread Ben Hutchings
On Tue, 2015-06-16 at 17:33 +0100, Luis Henriques wrote: > On Tue, May 05, 2015 at 02:16:39AM +0100, Ben Hutchings wrote: [...] > > [bwh: Backported to 3.2: > > - Plumb in debugfs_super_operations, which we didn't previously > > define > > It looks like this is introducing a regression[1]. Basi

Re: [PATCH net-next 1/9] openvswitch: Scrub packet in ovs_vport_receive()

2015-08-01 Thread Thomas Graf
On 07/31/15 at 10:51am, Joe Stringer wrote: > On 31 July 2015 at 07:34, Hannes Frederic Sowa wrote: > > In general, this shouldn't be necessary as the packet should already be > > scrubbed before they arrive here. > > > > Could you maybe add a WARN_ON and check how those skbs with conntrack > > da

[PATCH V4 (was V6) 1/2] audit: eliminate unnecessary extra layer of watch references

2015-08-01 Thread Richard Guy Briggs
The audit watch count was imbalanced, adding an unnecessary layer of watch references. Only add the second reference when it is added to a parent. Signed-off-by: Richard Guy Briggs --- kernel/audit_watch.c |5 ++--- kernel/auditfilter.c | 16 +++- 2 files changed, 5 insertions

[PATCH V4 (was V6) 2/2] audit: eliminate unnecessary extra layer of watch parent references

2015-08-01 Thread Richard Guy Briggs
The audit watch parent count was imbalanced, adding an unnecessary layer of watch parent references. Decrement the additional parent reference when a watch is reused, already having a reference to the parent. audit_find_parent() gets a reference to the parent, if the parent is already known. Thi

[PATCH V4 (was V6) 0/2] audit: rebalance and remove extra layers of watch references

2015-08-01 Thread Richard Guy Briggs
While working on the audit by executable path feature, it was discovered that watches and parent references were slightly imbalanced and deeper than necessary. Only bump up references when they are actually used and decrease when removed. v4: Eliminate unnecessary gotos and call return directly.

[PATCH V4 (was V6)] audit: use macros for unset inode and device values

2015-08-01 Thread Richard Guy Briggs
Signed-off-by: Richard Guy Briggs --- include/uapi/linux/audit.h |2 ++ kernel/audit.c |2 +- kernel/audit_watch.c |8 kernel/auditsc.c |6 +++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/include/uapi/linux/audit.h b/incl

[PATCH V4 (was V6)] audit: macros to replace unset inode and device values

2015-08-01 Thread Richard Guy Briggs
This is a patch to clean up a number of places were casted magic numbers are used to represent unset inode and device numbers inpreparation for the audit by executable path patch set. Richard Guy Briggs (1): audit: use macros for unset inode and device values include/uapi/linux/audit.h |2

[PATCH V4 (was V6)] generalize audit_del_rule

2015-08-01 Thread Richard Guy Briggs
This patch was split out from the audit by executable path patch set due to the potential to use it elsewhere. In particular, some questions came up while assessing the potential for code reuse: Why does audit_remove_parent_watches() not call audit_del_rule() for each entry found?

[PATCH V4 (was V6)] audit: save signal match info in case entry passed in is the one deleted

2015-08-01 Thread Richard Guy Briggs
Move the access to the entry for audit_match_signal() to the beginning of the function in case the entry found is the same one passed in. This will enable it to be used by audit_remove_mark_rule(). Signed-off-by: Richard Guy Briggs --- kernel/auditfilter.c |3 ++- 1 files changed, 2 inserti

[PATCH V7 1/3] audit: clean simple fsnotify implementation

2015-08-01 Thread Richard Guy Briggs
This is to be used to audit by executable path rules, but audit watches should be able to share this code eventually. At the moment the audit watch code is a lot more complex. That code only creates one fsnotify watch per parent directory. That 'audit_parent' in turn has a list of 'audit_watches

[PATCH V7 3/3] audit: add audit by children of executable path

2015-08-01 Thread Richard Guy Briggs
This adds the ability to audit the actions of children of a not-yet-running process. This is a split-out of a heavily modified version of a patch originally submitted by Eric Paris with some ideas from Peter Moody. Cc: Peter Moody Cc: Eric Paris Signed-off-by: Richard Guy Briggs --- include/u

[PATCH V7 0/3] audit by executable name

2015-08-01 Thread Richard Guy Briggs
Please see the accompanying userspace patchset: https://www.redhat.com/archives/linux-audit/2015-July/thread.html [[PATCH V2] 0/2] Log on the future execution of a path The userspace interface is not expected to change appreciably unless something important has been overlooked. Set

[PATCH V7 2/3] audit: implement audit by executable

2015-08-01 Thread Richard Guy Briggs
This adds the ability audit the actions of a not-yet-running process. This patch implements the ability to filter on the executable path. Instead of just hard coding the ino and dev of the executable we care about at the moment the rule is inserted into the kernel, use the new audit_fsnotify infr

Re: [PATCH v3 1/8] i2c: core: Add support for best effort block read emulation

2015-08-01 Thread Wolfram Sang
> > I wonder what devices do if you do a word read beyond their end address? > > Perhaps in odd cases we should always fall back to byte reads? > > In my tests I can read beyond the end address, but I cannot be sure if this > is OK for all > devices. This was actually a suggestion from Wolfram f

Re: [PATCH v3 2/8] eeprom: at24: use i2c_smbus_read_i2c_block_data_or_emulated

2015-08-01 Thread Wolfram Sang
> + if (at24->use_smbus) { > + status = > + i2c_smbus_read_i2c_block_data_or_emulated(client, > + offset, > + c

  1   2   3   4   >