[PATCH 1/1] drivers/vga: check decodes for vgaarb lock/unlock

2013-10-18 Thread Li, Zhen-Hua
There is a bug that X windows system may use an invalid decodes iostat on the VGA Arbiter device when lock and unlock. this may cause system crash. So we must validate the value of iostat. Signed-off-by: Li, Zhen-Hua --- drivers/gpu/vga/vgaarb.c | 55 -

[PATCH] m68k/atari: Call paging_init() before nf_init()

2013-10-18 Thread Geert Uytterhoeven
nf_init() uses virt_to_phys(), which depends on m68k_memoffset being set and module_fixup() having been called, but this is only done in paging_init(). Hence call paging_init() before nf_init(). This went unnoticed, as virt_to_phys() is a no-op on Atari, unless you start fiddling with the memory b

Re: [PATCH net V2 1/2] virtio-net: don't respond to cpu hotplug notifier if we're not ready

2013-10-18 Thread David Miller
From: Rusty Russell Date: Fri, 18 Oct 2013 16:47:14 +1030 > Do you want awk script to turn the latter into the former? Would that > really help? Rusty in the several years I've been operating this way, you're the first person who seems to mind it. To be honest I sometimes just silently deal wi

Re: trace-cmd problem with FC19

2013-10-18 Thread Arend van Spriel
On 10/17/2013 11:11 PM, Bob Copeland wrote: On Thu, Oct 17, 2013 at 04:56:56PM -0400, Steven Rostedt wrote: Hmm, are you sure? You may want to do both: sudo trace-cmd -v which trace-cmd Aaargh, bullocks! My home dir is an NFS mount on FC19 x64 machine and it has a 32-bit trace-cmd installed

Re: [PATCH v2] usb: phy: omap: Add omap-control Support for AM437x

2013-10-18 Thread Roger Quadros
On 10/15/2013 01:02 PM, George Cherian wrote: > This adds omap control module support for USBSS in AM437x SoC. > Update DT binding information to reflect these changes. > > Signed-off-by: George Cherian Acked-by: Roger Quadros > --- > Changes from v1: > Make ON and OFF operations symmetr

Re: [PATCH 1/7] static_key: flush rate limit timer on rmmod

2013-10-18 Thread Radim Krčmář
2013-10-17 12:35+0200, Paolo Bonzini: > Il 17/10/2013 12:10, Radim Krčmář ha scritto: > > Fix a bug when we free module memory while timer is pending by marking > > deferred static keys and flushing the timer on module unload. > > > > Also make static_key_rate_limit() useable more than once. > >

Re: [PATCH] m68k/atari: Call paging_init() before nf_init()

2013-10-18 Thread Michael Schmitz
Geert, does your fiddling with memory blocks in bootinfo now result in kernels being possible to boot in FastRAM? Cheers, Michael nf_init() uses virt_to_phys(), which depends on m68k_memoffset being set and module_fixup() having been called, but this is only done in paging_init().

Re: [PATCH v3 3/4] mmc: omap_hsmmc: Remux pins to support SDIO interrupt on AM335x

2013-10-18 Thread Balaji T K
On Friday 18 October 2013 11:50 AM, NeilBrown wrote: On Sat, 5 Oct 2013 13:17:09 +0200 Andreas Fenkart wrote: The am335x can't detect pending cirq in PM runtime suspend. This patch reconfigures dat1 as a GPIO before going to suspend. SDIO interrupts are detected with the GPIO, while in runtim

Re: [PATCH v2 1/2] ata: ahci_platform: Manage SATA PHY

2013-10-18 Thread Roger Quadros
On 10/17/2013 04:57 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Wednesday, October 16, 2013 02:42:52 PM Roger Quadros wrote: >> From: Balaji T K >> >> Some platforms have a PHY hooked up to the >> SATA controller. The PHY needs to be initialized >> and powered up for SATA to work. We do

Re: [PATCH 4/7] static_key: use static_key_slow_inc_deferred()

2013-10-18 Thread Radim Krčmář
2013-10-17 12:39+0200, Paolo Bonzini: > Il 17/10/2013 12:10, Radim Krčmář ha scritto: > > Simple replacement where possible. > > Saves us problematic access to the structure and allows optimalizations > > and bug fixes to take place. > > I think you should introduce this first as a simple wrapper

Re: [PATCH 5/7] jump_label: relax branch hinting restrictions

2013-10-18 Thread Radim Krčmář
2013-10-17 13:35-0400, Steven Rostedt: > On Thu, 17 Oct 2013 12:10:28 +0200 > Radim Krčmář wrote: > > > We implemented the optimized branch selection in higher levels of api. > > That made static_keys very unintuitive, so this patch introduces another > > element to jump_table, carrying one bit t

Re: [PATCH] x86: honor ACPI FADT flag indicating absence of a CMOS RTC

2013-10-18 Thread Jan Beulich
>>> On 18.10.13 at 08:29, Ingo Molnar wrote: > * Jan Beulich wrote: > >> We shouldn't be creating a corresponding platform device in that case. > > There's a sad lack of context in the changelog, how was it found, does > this address any problem/bug observed in practice, etc? This was a resul

Re: [PATCH] m68k/atari: Call paging_init() before nf_init()

2013-10-18 Thread Geert Uytterhoeven
On Fri, Oct 18, 2013 at 9:29 AM, Michael Schmitz wrote: > does your fiddling with memory blocks in bootinfo now result in kernels > being possible to boot in FastRAM? No, I only played with the start address of ST-RAM. Probably you can run a kernel in FastRAM with some minor tweaks if you remove

Re: [PATCH 4/6] pinctrl: single: Add support for wake-up interrupts

2013-10-18 Thread Balaji T K
On Friday 11 October 2013 09:31 PM, Tony Lindgren wrote: * Linus Walleij [131011 09:05]: On Fri, Oct 11, 2013 at 5:43 PM, Tony Lindgren wrote: * Linus Walleij [131011 03:40]: On Fri, Oct 11, 2013 at 10:56 AM, Roger Quadros wrote: The register handling is fine. But how do we deal with res

Re: linux-next: Tree for Oct 17

2013-10-18 Thread Olof Johansson
On Fri, Oct 18, 2013 at 01:38:47AM +0100, Mark Brown wrote: > Hi all, > > I've uploaded today's linux-next tree to the master branch of the > repository below: > > git://gitorious.org/thierryreding/linux-next.git > > A next-20131017 tag is also provided for convenience. > > One new conf

Re: [PATCH v3 3/4] mmc: omap_hsmmc: Remux pins to support SDIO interrupt on AM335x

2013-10-18 Thread NeilBrown
On Fri, 18 Oct 2013 12:59:56 +0530 Balaji T K wrote: > On Friday 18 October 2013 11:50 AM, NeilBrown wrote: > > On Sat, 5 Oct 2013 13:17:09 +0200 Andreas Fenkart > > wrote: > > > >> The am335x can't detect pending cirq in PM runtime suspend. > >> This patch reconfigures dat1 as a GPIO before g

Re: [PATCH v2] pwm-backlight: allow for non-increasing brightness levels

2013-10-18 Thread Thierry Reding
On Sun, Sep 22, 2013 at 09:59:56AM -0700, Mike Dunn wrote: > Currently the driver assumes that the values specified in the > brightness-levels device tree property increase as they are parsed from > left to right. But boards that invert the signal between the PWM output > and the backlight will ne

Re: [PATCH v5 13/17] clk: at91: add PMC usb clock

2013-10-18 Thread Nicolas Ferre
On 17/10/2013 18:55, Boris BREZILLON : This patch adds new at91 usb clock implementation using common clk framework. This clock is used to clock usb ports (ohci, ehci and udc). Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre Ok, this one is now replacing the older 13/17. Thanks Boris

Re: [PATCH] set data enable logic level to low

2013-10-18 Thread Tomi Valkeinen
On 14/10/13 01:44, Roel Kluin wrote: > Signed-off-by: Roel Kluin > --- > drivers/video/omap2/dss/display.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/omap2/dss/display.c > b/drivers/video/omap2/dss/display.c > index fafe7c9..669a81f 100644 > --- a/dri

Re: [PATCH 1/2] vmsplice: unmap gifted pages for recipient

2013-10-18 Thread Vlastimil Babka
On 10/17/2013 03:48 PM, Robert Jennings wrote: > * Vlastimil Babka (vba...@suse.cz) wrote: >> On 10/07/2013 10:21 PM, Robert C Jennings wrote: >>> Introduce use of the unused SPLICE_F_MOVE flag for vmsplice to zap >>> pages. >>> >>> When vmsplice is called with flags (SPLICE_F_GIFT | SPLICE_F_MOVE)

[PATCH] mm/pagewalk.c: Fix walk_page_range access wrong PTEs

2013-10-18 Thread linx . z . chen
From: Chen LinX When walk_page_range walk a memory map's page tables, it'll skip VM_PFNMAP area, then variable 'next' will to assign to vma->vm_end, it maybe larger than 'end'. In next loop, 'addr' will be larger than 'next'. Then in /proc//pagemap file reading procedure, the 'addr' will grow

Re: [PATCH v4 00/17] ARM: at91: move to common clk framework

2013-10-18 Thread Nicolas Ferre
On 11/10/2013 09:37, Boris BREZILLON : Hello, This patch series is the 4th version of the new at91 clock implementation (using common clk framework). Mike, DT maintainers, Can you have a look at this series converting the AT91 family to common clock framework and associated Device Tree descr

Re: linux-next: Tree for Oct 17

2013-10-18 Thread Thierry Reding
On Fri, Oct 18, 2013 at 12:45:26AM -0700, Olof Johansson wrote: > On Fri, Oct 18, 2013 at 01:38:47AM +0100, Mark Brown wrote: > > Hi all, > > > > I've uploaded today's linux-next tree to the master branch of the > > repository below: > > > > git://gitorious.org/thierryreding/linux-next.gi

Re: [PATCH v2 3/4] ARM: EXYNOS: add Exynos Dual Cluster Support

2013-10-18 Thread Tarek Dakhran
On 17.10.2013 19:46, Dave Martin wrote: On Mon, Oct 14, 2013 at 07:08:24PM +0400, Vyacheslav Tyrtov wrote: From: Tarek Dakhran Add EDCS(Exynos Dual Cluster Support) for Samsung Exynos5410 SoC. This enables all 8 cores, 4 x A7 and 4 x A15 run at the same time. Signed-off-by: Tarek Dakhran Sig

Re: [PATCH v5 1/4] i2c: busses: i2c-st: Add ST I2C controller

2013-10-18 Thread srinivas kandagatla
On 17/10/13 15:49, Lucas Stach wrote: > Am Donnerstag, den 17.10.2013, 15:30 +0100 schrieb srinivas kandagatla: > [...] >> Sorry to ask this but, Where is this requirement coming from? >> I have not spotted any thing as such in ePAPR specs. >> >> >> All the spec says is. >> === >> The compatible pr

Re: [PATCH RFC v2 0/6] ARM64: Add kernel probes(Kprobes) support

2013-10-18 Thread Masami Hiramatsu
(2013/10/17 20:17), Sandeepa Prabhu wrote: > This patchset adds support for kernel probes(kprobes), jump probes(jprobes) > and return probes(kretprobes) support for ARM64. > > Kprobes mechanism make use of software breakpoint and single stepping > support available in ARM v8 kernel. > Thank you!

[PATCH v3 0/9] Extended H/W error log driver

2013-10-18 Thread Chen, Gong
[PATCH v3 1/9] ACPI, APEI, CPER: Fix status check during error printing [PATCH v3 2/9] ACPI, CPER: Update cper info [PATCH v3 3/9] bitops: Introduce a more generic BITMASK macro [PATCH v3 4/9] ACPI, x86: Extended error log driver for x86 platform [PATCH v3 5/9] DMI: Parse memory device (type 17) in

Re: [RFC][PATCH 4/7] sched: power: Remove power capacity hints for kworker threads

2013-10-18 Thread Morten Rasmussen
On Thu, Oct 17, 2013 at 05:54:16PM +0100, Peter Zijlstra wrote: > On Thu, Oct 17, 2013 at 05:40:38PM +0100, Morten Rasmussen wrote: > > On Mon, Oct 14, 2013 at 04:14:25PM +0100, Arjan van de Ven wrote: > > > On 10/14/2013 6:33 AM, Peter Zijlstra wrote: > > > > On Fri, Oct 11, 2013 at 06:19:14PM +01

[PATCH v3 8/9] ACPI, APEI, CPER: Cleanup CPER memory error output format

2013-10-18 Thread Chen, Gong
Keep up only the most important fields for memory error reporting. The detail information will be moved to perf/trace interface. Suggested-by: Tony Luck Signed-off-by: Chen, Gong Reviewed-by: Mauro Carvalho Chehab --- drivers/acpi/apei/cper.c | 67 ++

[PATCH v3 5/9] DMI: Parse memory device (type 17) in SMBIOS

2013-10-18 Thread Chen, Gong
This patch adds a new interface to decode memory device (type 17) to help error reporting on DIMMs. Original-author: Tony Luck Signed-off-by: Chen, Gong Acked-by: Naveen N. Rao Acked-by: Borislav Petkov Reviewed-by: Mauro Carvalho Chehab --- arch/ia64/kernel/setup.c| 1 + arch/x86/kerne

[PATCH v3 2/9] ACPI, CPER: Update cper info

2013-10-18 Thread Chen, Gong
To prepare for the following patches and make related definition more clear, update some definitions about CPER. v2 -> v1: Update some more definitions suggested by Boris Signed-off-by: Chen, Gong Acked-by: Borislav Petkov Reviewed-by: Mauro Carvalho Chehab --- drivers/acpi/apei/apei-internal

[PATCH v3 7/9] ACPI, APEI, CPER: Enhance memory reporting capability

2013-10-18 Thread Chen, Gong
After H/W error happens under FFM enabled mode, lots of information are shown but some important parts like DIMM location missed. This patch is used to show these extra fileds. Original-author: Tony Luck Signed-off-by: Chen, Gong Acked-by: Naveen N. Rao Acked-by: Borislav Petkov Reviewed-by: M

[PATCH v3 4/9] ACPI, x86: Extended error log driver for x86 platform

2013-10-18 Thread Chen, Gong
This H/W error log driver (a.k.a eMCA driver) is implemented based on http://www.intel.com/content/www/us/en/architecture-and-technology/enhanced-mca-logging-xeon-paper.html After errors are captured, more valuable information can be got via this new enhanced H/W error log driver. v3 -> v2: fix a

[PATCH v3 9/9] EDAC, GHES: Update ghes error record info

2013-10-18 Thread Chen, Gong
In latest UEFI spec(by now it's 2.4) there are some new fields for memory error reporting. Add these new fields for ghes_edac interface. Signed-off-by: Chen, Gong Cc: Mauro Carvalho Chehab --- drivers/edac/ghes_edac.c | 11 +++ include/linux/edac.h | 2 +- 2 files changed, 12 inser

Re: [PATCH] mm: Check for NULL return values from allocating functions

2013-10-18 Thread Jan Kara
On Thu 17-10-13 07:49:34, Laura Abbott wrote: > A security audit revealed that several functions were not checking > return value of allocation functions. These allocations may return > NULL which may lead to NULL pointer dereferences and crashes or > security concerns. Fix this by properly checkin

[PATCH v3 6/9] ACPI, APEI, CPER: Add UEFI 2.4 support for memory error

2013-10-18 Thread Chen, Gong
In latest UEFI spec(by now it is 2.4) memory error definition for CPER (UEFI 2.4 Appendix N Common Platform Error Record) adds some new fields. These fields help people to locate memory error on actual DIMM location. Original-author: Tony Luck Signed-off-by: Chen, Gong Reviewed-by: Borislav Petk

[PATCH v3 3/9] bitops: Introduce a more generic BITMASK macro

2013-10-18 Thread Chen, Gong
GENMASK is used to create a contiguous bitmask([hi:lo]). It is implemented twice in current kernel. One is in EDAC driver, the other is in SiS/XGI FB driver. Move it to a more generic place for other usage. Signed-off-by: Chen, Gong Cc: Borislav Petkov Cc: Thomas Winischhofer Cc: Jean-Christoph

[PATCH v3 1/9] ACPI, APEI, CPER: Fix status check during error printing

2013-10-18 Thread Chen, Gong
Commit aaf9d93 only catches condition check before print, but the similar check is needed during printing CPER error sections. Signed-off-by: Chen, Gong Reviewed-by: Borislav Petkov Reviewed-by: Mauro Carvalho Chehab --- drivers/acpi/apei/cper.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH] init: make init failures more explicit

2013-10-18 Thread Michael Opdenacker
This patch proposes to make init failures more explicit. Before this, the "No init found" message didn't help much. It could sometimes be misleading and actually mean "No *working* init found". This message could hide many different issues: - no init program candidates found at all - some init pr

Re: [RFC][PATCH 4/7] sched: power: Remove power capacity hints for kworker threads

2013-10-18 Thread Morten Rasmussen
On Thu, Oct 17, 2013 at 06:18:38PM +0100, Arjan van de Ven wrote: > >> > >> cpufreq has pre- and post-change notifiers so the current TC2 clock driver > > yeah those are EVIL ;-) > > >> waits (yields) in its clk_set_rate() implementation until the change has > >> happened to ensure that the post-

Re: [PATCH v4 2/7] arm64: introduce interfaces to hotpatch kernel and module code

2013-10-18 Thread Will Deacon
Hi Tixy, On Thu, Oct 17, 2013 at 04:24:01PM +0100, Jon Medhurst (Tixy) wrote: > On Thu, 2013-10-17 at 12:38 +0100, Will Deacon wrote: > > On Thu, Oct 17, 2013 at 07:19:35AM +0100, Jiang Liu wrote: > > > + /* > > > + * Execute __aarch64_insn_patch_text() on every online CPU, > > > + * which ensur

Re: [PATCH] init: make init failures more explicit

2013-10-18 Thread Kieran Bingham
Fantastic I've been hurt by this in the past - and this patch would certainly would have helped save some time! -- Kieran On 18 October 2013 09:47, Michael Opdenacker wrote: > This patch proposes to make init failures more explicit. > > Before this, the "No init found" message didn't help much

module: Documentation/module-signing.txt?

2013-10-18 Thread Paul Bolle
Rusty, Since v3.7 there's a link to Documentation/module-signing.txt in init/Kconfig. It was added by your commit 106a4ee258d1 ("module: signature checking hook"). It seems that this file was never added to the tree. Is it perhaps queued somewhere? Paul Bolle -- To unsubscribe from this list: s

Re: [PATCH v2 3/6] ARM: at91/dt: define sama5d3 clocks

2013-10-18 Thread Nicolas Ferre
On 11/10/2013 14:43, Boris BREZILLON : Define sama5d3 clocks in sama5d3 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON good: Acked-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d3.dtsi | 331 ++

Re: [PATCH v2 6/6] ARM: at91/dt: remove old clk material

2013-10-18 Thread Nicolas Ferre
On 11/10/2013 14:43, Boris BREZILLON : This patch removes the old main clk node which is now useless as sama5d3 SoCs and boards are no longer compatible with the old at91 clk implementations. It also remove old clock definitions (clock definitions using at91 old clk framework). Signed-off-by: B

[PATCH v6] media: st-rc: Add ST remote control driver

2013-10-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds support to ST RC driver, which is basically a IR/UHF receiver and transmitter. This IP (IRB) is common across all the ST parts for settop box platforms. IRB is embedded in ST COMMS IP block. It supports both Rx & Tx functionality. This driver adds only R

Re: [PATCH] init: fix in-place parameter modification regression

2013-10-18 Thread Krzysztof Mazur
On Fri, Oct 18, 2013 at 02:20:38PM +1030, Rusty Russell wrote: > Back when there was almost no parameter parsing support, everyone got > used to keeping pointers into the original. Making everyone kstrdup() > seems like gratuitous churn which is likely to make more bugs. > > Your fix means __setu

Re: [PATCH v3 0/9] Extended H/W error log driver

2013-10-18 Thread Borislav Petkov
On Fri, Oct 18, 2013 at 04:23:35AM -0400, Chen, Gong wrote: > OK, this is the 3rd version. Hope it is the last one :-). It looks ok to me so far, I'm guessing Tony you're picking this up or should I? > this version just updates some minors places and apply some Ack/Review > information. In this v

Re: [PATCH] init: make init failures more explicit

2013-10-18 Thread Geert Uytterhoeven
On Fri, Oct 18, 2013 at 10:47 AM, Michael Opdenacker wrote: > + if (ret && ret != -ENOENT) { > + pr_err("Starting init: %s exists but couldn't execute it\n", I think it makes sense to also print the value of ret here. Apart from your -ENOEXEC case, peeking a bit around, it can

[PATCH 1/2] f2fs: use true and false for boolean value

2013-10-18 Thread Haicheng Li
Signed-off-by: Haicheng Li --- fs/f2fs/segment.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 3b20359..862fef3 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -1277,9 +1277,9 @@ static bool flush_sits_in_journal(s

[PATCH 2/2] f2fs: no need to check other dirty_segmap when the seg has been found

2013-10-18 Thread Haicheng Li
Because one dirty seg can only be mapped to one dirty_type. Otherwise, it's a bug. Signed-off-by: Haicheng Li --- fs/f2fs/segment.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 862fef3..5ff0524 100644 --- a/fs/f2fs/se

Build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected

2013-10-18 Thread Axel Lin
Hi Michael, I got below build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected. Also got the same build error if CONFIG_PROVE_LOCKING is selected. Seems this issue is introduced by commit 662bbcb2747c2 "mm, sched: Allow uaccess in atomic with pagefault_disable()". arch/arm/kernel/built-i

Re: [PATCH] init: make init failures more explicit

2013-10-18 Thread Michael Opdenacker
Hi Geert, On 10/18/2013 11:23 AM, Geert Uytterhoeven wrote: > On Fri, Oct 18, 2013 at 10:47 AM, Michael Opdenacker > wrote: >> + if (ret && ret != -ENOENT) { >> + pr_err("Starting init: %s exists but couldn't execute it\n", > I think it makes sense to also print the value of r

Re: [PATCH 2/5] mfd: tc3589x: detect the precise version

2013-10-18 Thread Linus Walleij
On Wed, Oct 16, 2013 at 11:23 AM, Lee Jones wrote: > On Tue, 15 Oct 2013, Linus Walleij wrote: >> static const struct i2c_device_id tc3589x_id[] = { >> - { "tc3589x", 24 }, >> + { "tc35890", TC3589X_TC35890 }, >> + { "tc35892", TC3589X_TC35892 }, >> + { "tc35893", TC3589X_TC35893

Re: [PATCH] init: make init failures more explicit

2013-10-18 Thread Janne Karhunen
On Fri, Oct 18, 2013 at 11:47 AM, Michael Opdenacker wrote: > This patch proposes to make init failures more explicit. > > Before this, the "No init found" message didn't help much. > It could sometimes be misleading and actually mean > "No *working* init found". Heh, I was just looking at simil

Re: [PATCH 1/5] mfd: tc3589x: add device tree bindings

2013-10-18 Thread Linus Walleij
On Wed, Oct 16, 2013 at 11:08 AM, Lee Jones wrote: > 1. MFD patches have the following syntax: > mfd: [-sub]: /* Note the uppercase 'D' */ Sure fixed this. > 2. The binding document is normally attached to the patch which > applies the bindings, unless we've stopped doing that now. This is

Re: [PATCH 1/2] mmc: dw_mmc: Cleanup disable of low power mode w/ SDIO interrupts

2013-10-18 Thread Jaehoon Chung
Hi Doug, On 10/16/2013 07:39 AM, Doug Anderson wrote: > In the patch (9623b5b mmc: dw_mmc: Disable low power mode if SDIO > interrupts are used) I added code that disabled the low power mode of > dw_mmc when SDIO interrupts are used. That code worked but always > felt a little hacky because we en

Re: [PATCH] tracing: fix referencing after memory freeing and refactors code

2013-10-18 Thread Geyslan Gregório Bem
2013/10/17 Steven Rostedt : > On Thu, 17 Oct 2013 22:44:56 -0300 > "Geyslan G. Bem" wrote: > >> Restructures function logic conditions testing 'tracing_open_generic' >> return before the others. It avoids: unnecessary trace_array_get and >> kzalloc when tracing is disabled; and fix the possible 'd

RE: [PATCH 2/2 v2] irqchip: mmp: add dt support for wakeup

2013-10-18 Thread Neil Zhang
Ping ? > -Original Message- > From: Neil Zhang [mailto:zhan...@marvell.com] > Sent: 2013年10月11日 16:24 > To: linux-kernel@vger.kernel.org > Cc: haojian.zhu...@gmail.com; t...@linutronix.de; Neil Zhang > Subject: [PATCH 2/2 v2] irqchip: mmp: add dt support for wakeup > > Some of the Marvell

Re: [PATCH 2/2] mmc: dw_mmc: Protect read-modify-write of INTMASK with a lock

2013-10-18 Thread Jaehoon Chung
On 10/17/2013 05:23 AM, James Hogan wrote: > Hi Doug, > > On 16 October 2013 17:43, Doug Anderson wrote: >> On Wed, Oct 16, 2013 at 2:49 AM, James Hogan wrote: We can't just use the standard host->lock since that lock is not irq safe and mmc_signal_sdio_irq() (called from interrupt con

[PATCH 1/5 v2] mfd: tc3589x: Add device tree bindings

2013-10-18 Thread Linus Walleij
This defines the device tree bindings for the Toshiba TC3589x series of multi-purpose expanders. Only the stuff I can test is defined: GPIO and keypad. Others may implement more subdevices further down the road. This is to complement commit a435ae1d51e2f18414f2a87219fdbe068231e692 "mfd: Enable the

[PATCH 2/5 v2] mfd: tc3589x: Detect the precise version

2013-10-18 Thread Linus Walleij
Instead of detecting the "tc3589x" and hard-coding the number of GPIO pins to 24, encode all the possible subtypes and set the number of GPIO pins from the type. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Compress the switch tree to the two variables we currently have to deal with. --

Re: [PATCH v3 6/7] arm64, jump label: optimize jump label implementation

2013-10-18 Thread Will Deacon
Hi guys, On Fri, Oct 18, 2013 at 04:31:22AM +0100, Jiang Liu (Gerry) wrote: > On 2013/10/17 23:27, Steven Rostedt wrote: > > On Thu, 17 Oct 2013 22:40:32 +0800 > > Jiang Liu wrote: > > > > > > You could make the code more concise by limiting your patching ability > > to > > branch im

[PATCH] thermal: Fix binding problem when there is thermal zone params

2013-10-18 Thread Wei Ni
The thermal zone params can be used to set governor to specific thermal governor for thermal zone device. But if the thermal zone params has only governor name without thermal bind params, then the thermal zone device will not be binding to cooling device. Because tz->ops->bind operator is not invo

[PATCH] genirq: error reporting for non-percpu interrupt in request_percpu_irq()

2013-10-18 Thread Vinayak Kale
Return a separate error code when a non-percpu interrupt is passed to request_percpu_irq(). Suggested-by: Will Deacon Signed-off-by: Vinayak Kale --- kernel/irq/manage.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index

Re: [PATCH v3 3/4] mmc: omap_hsmmc: Remux pins to support SDIO interrupt on AM335x

2013-10-18 Thread Javier Martinez Canillas
On Fri, Oct 18, 2013 at 8:20 AM, NeilBrown wrote: > On Sat, 5 Oct 2013 13:17:09 +0200 Andreas Fenkart wrote: > >> The am335x can't detect pending cirq in PM runtime suspend. >> This patch reconfigures dat1 as a GPIO before going to suspend. >> SDIO interrupts are detected with the GPIO, while in

Re: [PATCH] genirq: error reporting for non-percpu interrupt in request_percpu_irq()

2013-10-18 Thread Vinayak Kale
Need for this patch is discussed in mail-thread [1]. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-October/204414.html Thanks -Vinayak On Fri, Oct 18, 2013 at 3:36 PM, Vinayak Kale wrote: > Return a separate error code when a non-percpu interrupt is passed to > request_percpu_

Re: [PATCH 1/2] ARM: SMMU: add devices attached to the SMMU to an IOMMU group

2013-10-18 Thread Antonios Motakis
On Mon, Oct 14, 2013 at 7:07 PM, Will Deacon wrote: > On Mon, Oct 14, 2013 at 04:13:15PM +0100, Antonios Motakis wrote: >> On Mon, Oct 14, 2013 at 2:48 PM, Will Deacon wrote: >> > > diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c >> > > index 0f45a48..8b71332 100644 >> > > --- a/

Re: [PATCH] genirq: error reporting for non-percpu interrupt in request_percpu_irq()

2013-10-18 Thread Will Deacon
On Fri, Oct 18, 2013 at 11:06:29AM +0100, Vinayak Kale wrote: > Return a separate error code when a non-percpu interrupt is passed to > request_percpu_irq(). > > Suggested-by: Will Deacon > Signed-off-by: Vinayak Kale > --- > kernel/irq/manage.c |6 -- > 1 file changed, 4 insertions(+),

[PATCH 1/1] mfd: max77693: Include linux/of.h header

2013-10-18 Thread Sachin Kamat
'of_match_ptr' is defined in linux/of.h. Include it explicitly to avoid build breakage in the future. Signed-off-by: Sachin Kamat Cc: SangYoung, Son --- drivers/mfd/max77693.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c index 4d81ed2..9

Re: [PATCH 2/5 v2] mfd: tc3589x: Detect the precise version

2013-10-18 Thread Lee Jones
On Fri, 18 Oct 2013, Linus Walleij wrote: > Instead of detecting the "tc3589x" and hard-coding the number of > GPIO pins to 24, encode all the possible subtypes and set the > number of GPIO pins from the type. > > Signed-off-by: Linus Walleij > --- > ChangeLog v1->v2: > - Compress the switch tre

Re: [PATCH 2/5] mfd: tc3589x: detect the precise version

2013-10-18 Thread Lee Jones
Whoops, read this after. Fair enough. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@

Re: [PATCH] x86: honor ACPI FADT flag indicating absence of a CMOS RTC

2013-10-18 Thread Ingo Molnar
* Jan Beulich wrote: > >>> On 18.10.13 at 08:29, Ingo Molnar wrote: > > * Jan Beulich wrote: > > > >> We shouldn't be creating a corresponding platform device in that case. > > > > There's a sad lack of context in the changelog, how was it found, does > > this address any problem/bug observ

Re: [PATCH] tracing: fix referencing after memory freeing and refactors code

2013-10-18 Thread Geyslan Gregório Bem
2013/10/18 Geyslan Gregório Bem : > 2013/10/17 Steven Rostedt : >> On Thu, 17 Oct 2013 22:44:56 -0300 >> "Geyslan G. Bem" wrote: >> >>> Restructures function logic conditions testing 'tracing_open_generic' >>> return before the others. It avoids: unnecessary trace_array_get and >>> kzalloc when tr

Re: [PATCH] genirq: error reporting for non-percpu interrupt in request_percpu_irq()

2013-10-18 Thread Vinayak Kale
Hi Will, On Fri, Oct 18, 2013 at 4:01 PM, Will Deacon wrote: > On Fri, Oct 18, 2013 at 11:06:29AM +0100, Vinayak Kale wrote: >> Return a separate error code when a non-percpu interrupt is passed to >> request_percpu_irq(). >> >> Suggested-by: Will Deacon >> Signed-off-by: Vinayak Kale >> --- >

Re: [PATCH 8/8] ACPI / trace: Add trace interface for eMCA driver

2013-10-18 Thread Naveen N. Rao
On 10/16/2013 04:19 PM, Borislav Petkov wrote: Btw, I don't know what's the problem but when I hit reply-to-all to your emails, mutt drops your email address from the To: and makes the CC: list become the To: list. Strange. I'm seeing the same thing. Looking at the headers, Chen Gong's email i

[PATCH V3 3/6] USB: OHCI: Properly handle ohci-s3c2410 suspend

2013-10-18 Thread Majunath Goudar
Suspend scenario in case of ohci-s3c2410 glue was not properly handled as it was not suspending generic part of ohci controller. Alan Stern suggested, properly handle ohci-s3c2410 suspend scenario. Calling explicitly the ohci_suspend() routine in ohci_hcd_s3c2410_drv_suspend() will ensure proper h

[PATCH V3 5/6] USB: OHCI: Properly handle ohci-exynos suspend

2013-10-18 Thread Majunath Goudar
Suspend scenario in case of ohci-exynos glue was not properly handled as it was not suspending generic part of ohci controller. Alan Stern suggested, properly handle ohci-exynos suspend scenario. Calling explicitly the ohci_suspend() routine in exynos_ohci_suspend() will ensure proper handling of

Re: [PATCH 2/8] ACPI, CPER: Update cper info

2013-10-18 Thread Naveen N. Rao
Gong, This mail seems to have missed copying you given the header issues. Thanks, Naveen On 10/17/2013 05:51 PM, Naveen N. Rao wrote: On 10/16/2013 07:09 AM, Chen Gong wrote: On Tue, Oct 15, 2013 at 11:47:23PM +0530, Naveen N. Rao wrote: Date: Tue, 15 Oct 2013 23:47:23 +0530 From: "Naveen N.

Re: [PATCH] netfilter: fix ordering of jumpstack allocation and table update

2013-10-18 Thread Pablo Neira Ayuso
On Thu, Oct 17, 2013 at 02:24:33PM +0100, Will Deacon wrote: > During kernel stability testing on an SMP ARMv7 system, Yalin Wang > reported the following panic from the netfilter code: > > 1fe0: 001c 5e2d3b10 4007e779 4009e110 6010 0032 ff565656 > ff545454 > [] (ipt_do_table+0x44

RE: [PATCH] mm/pagewalk.c: Fix walk_page_range access wrong PTEs

2013-10-18 Thread Kirill A. Shutemov
linx.z.chen@ wrote: > From: Chen LinX > > When walk_page_range walk a memory map's page tables, it'll skip VM_PFNMAP > area, > then variable 'next' will to assign to vma->vm_end, it maybe larger than > 'end'. > In next loop, 'addr' will be larger than 'next'. Then in /proc//pagemap > file

Re: [PATCH v3 0/3] New descriptor-based GPIO interface

2013-10-18 Thread Linus Walleij
On Thu, Oct 17, 2013 at 7:21 PM, Alexandre Courbot wrote: > Hi Linus, > > This version should merge as-is in your tree (I hope!). A patch for > documentation will follow soon. > > Changes since v2: > - rebased on top of Linus' for-next branch > - exported new gpiod_(un)lock_as_irq() functions in

[PATCH v2 2/2] m68k/amiga: Provide mach_random_get_entropy()

2013-10-18 Thread Geert Uytterhoeven
Use the beam position registers, which provide at least 17 bits of data changing at 1.79 MHz. Signed-off-by: Geert Uytterhoeven --- v2: - Use beam position registers (which provide a faster rate but less bits) instead of 24-bit Time-Of-Day clock in CIA B running at HSYNC. arch/m68k/amiga/

[PATCH v2 1/2] m68k: Add infrastructure for machine-specific random_get_entropy()

2013-10-18 Thread Geert Uytterhoeven
On m68k, get_cycles() (the default implementation for random_get_entropy()) always returns zero, providing no entropy for the random driver. Add a hook where platforms can provide their own implementation, and wire it up in the infrastructure provided by commit 61875f30daf60305712e25b209ef41ced263

Re: linux-next: Tree for Oct 17

2013-10-18 Thread Guenter Roeck
On 10/18/2013 12:45 AM, Olof Johansson wrote: On Fri, Oct 18, 2013 at 01:38:47AM +0100, Mark Brown wrote: Hi all, I've uploaded today's linux-next tree to the master branch of the repository below: git://gitorious.org/thierryreding/linux-next.git > A next-20131017 tag is also provided

Re: [PATCH RFC] media: rc: OF: Add Generic bindings for remote-control

2013-10-18 Thread Mark Rutland
On Wed, Oct 09, 2013 at 01:17:30PM +0100, srinivas kandagatla wrote: > .../devicetree/bindings/media/remote-control.txt | 31 > > 1 files changed, 31 insertions(+), 0 deletions(-) > create mode 100644 > Documentation/devicetree/bindings/media/re

[PATCH] PM / Hibernate: Use bool for boolean fields of struct snapshot_data

2013-10-18 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The snapshot_data structure used internally by the hibernate user space interface code in user.c has three char fields that are used to store boolean values. Change their data type to bool and use true and false instead of 1 and 0, respectively, in assignments involving t

[RFC][PATCH v5 03/14] sched: define pack buddy CPUs

2013-10-18 Thread Vincent Guittot
During the creation of sched_domain, we define a pack buddy CPU for each CPU when one is available. We want to pack at all levels where a group of CPUs can be power gated independently from others. On a system that can't power gate a group of CPUs independently, the flag is set at all sched_domain

[RFC][PATCH v5 00/14] sched: packing tasks

2013-10-18 Thread Vincent Guittot
This is the 5th version of the previously named "packing small tasks" patchset. "small" has been removed because the patchset doesn't only target small tasks anymore. This patchset takes advantage of the new per-task load tracking that is available in the scheduler to pack the tasks in a minimum

[RFC][PATCH v5 10/14] sched: init this_load to max in find_idlest_group

2013-10-18 Thread Vincent Guittot
Init this_load to max value instead of 0 in find_idlest_group. If the local group is skipped because it doesn't have allowed CPUs, this_load stays to 0, no idlest group will be returned and the selected CPU will be a not allowed one (which will be replaced in select_fallback_rq by a random one). W

[PATCH] ARM: kirkwood: remove lagacy clk workarounds

2013-10-18 Thread Sebastian Hesselbarth
With legacy devices converted to DT and a proper ethernet MAC workaround, we can now remove the clk workarounds for legacy devices. While at it, also cleanup the list of includes. Signed-off-by: Sebastian Hesselbarth --- As a follow-up patch for latest mvebu PRs, this patch is based on git://git

[RFC][PATCH v5 09/14] sched: update the packing cpu list

2013-10-18 Thread Vincent Guittot
Use the activity statistics to update the list of CPUs that should be used to hanlde the current system activity. The cpu_power is updated for CPUs that don't participate to the packing effort. We consider that their cpu_power is allocated to idleness as it could be allocated by rt. So the cpu_pow

Re: [PATCH] x86: Remove WARN_ON(in_nmi()) from vmalloc_fault

2013-10-18 Thread Paul E. McKenney
On Wed, Oct 16, 2013 at 03:57:30PM -0400, Steven Rostedt wrote: > On Wed, 16 Oct 2013 12:36:32 -0700 > "Paul E. McKenney" wrote: > > > > > Ah but we have an in_interrupt() check in context_tracking_user_enter() > > > that protects > > > us against that. > > > > Here you are relying on the exce

[RFC][PATCH v5 02/14] ARM: sched: clear SD_SHARE_POWERDOMAIN

2013-10-18 Thread Vincent Guittot
The ARM platforms take advantage of packing tasks on few cores if the latters can be powergated independantly. We use DT and the cpu topology descirption to define at which level a core can be independantly powergated to the others and the SD_SHARE_POWERDOMAIN will be set accordingly at MC and CPU

[RFC][PATCH v5 05/14] sched: add a packing level knob

2013-10-18 Thread Vincent Guittot
The knob is used to set an average load threshold that will be used to trig the inclusion/removal of CPUs in the packing effort list. Signed-off-by: Vincent Guittot --- include/linux/sched/sysctl.h |9 + kernel/sched/fair.c | 26 ++ kernel/sysctl.c

[RFC][PATCH v5 08/14] sched: move load idx selection in find_idlest_group

2013-10-18 Thread Vincent Guittot
load_idx is used in find_idlest_group but initialized in select_task_rq_fair even when not used. The load_idx initialisation is moved in find_idlest_group and the sd_flag replaces it in the function's args. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 12 ++-- 1 file change

[RFC][PATCH v5 07/14] sched: get CPU's activity statistic

2013-10-18 Thread Vincent Guittot
Monitor the activity level of each group of each sched_domain level. The activity is the amount of cpu_power that is currently used on a CPU. We use the runnable_avg_sum and _period to evaluate this activity level. In the special use case where the CPU is fully loaded by more than 1 task, the activ

[RFC][PATCH v5 01/14] sched: add a new arch_sd_local_flags for sched_domain init

2013-10-18 Thread Vincent Guittot
The function arch_sd_local_flags is used to set flags in sched_domains according to the platform architecture. A new flag SD_SHARE_POWERDOMAIN is also created to reflect whether groups of CPUs in a sched_domain level can or not reach different power state. As an example, the flag should be cleared

[RFC][PATCH v5 14/14] cpuidle: set the current wake up latency

2013-10-18 Thread Vincent Guittot
Save the current wake up latency of a core. This latency is not always the latency of a defined c-state but can also be an intermediate value when a core is ready to shutdown (timer migration, cache flush ...) but wait for the last core of the cluster to finalize the cluster power down. This latter

[RFC][PATCH v5 06/14] sched: create a new field with available capacity

2013-10-18 Thread Vincent Guittot
This new field power_available reflects the available capacity of a CPU unlike the cpu_power which reflects the current capacity. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 14 +++--- kernel/sched/sched.h |3 ++- 2 files changed, 13 insertions(+), 4 deletions(-) dif

  1   2   3   4   5   6   >