[PATCH v2] iio: adc: add new lp8788 adc driver

2012-08-10 Thread Kim, Milo
Patch v2. (a) Use iio_priv() for private data rather than allocating data (b) Support raw and scale inferface for iio consumer (c) Make inline function for lp8788_adc_read_raw() (d) For better readability, use fixed number for shift and mask rather than getting bits from channel scan type (e) C

RE: [PATCH 2/3] iio: adc: add new lp8788 adc driver

2012-08-10 Thread Kim, Milo
> This is mostly fine though things have gotten a little confused > wrt to the handling iio_priv in the probe and remove so that > needs cleaning up. A few other minor bits inline. > > Thanks, > > Jonathan Thanks a lot for detailed review. Patch v2 has been sent. Title: [PATCH v2] iio: adc: add

Re: [GIT PULL for 3.6-rc1] media updates part 2

2012-08-10 Thread Hans de Goede
Hi, On 08/09/2012 10:03 PM, David Rientjes wrote: On Thu, 9 Aug 2012, Mauro Carvalho Chehab wrote: Yeah, that would work as well, although the code would look uglier. IMHO, using select/depend is better. Agreed, I think it should be "depends on LEDS_CLASS" rather than select it if there is

Re: [PATCH V2 3/3] drivers/char/tpm: Add securityfs support for event log

2012-08-10 Thread Michael Ellerman
On Thu, 2012-08-09 at 18:13 -0500, Ashley Lai wrote: > This patch retrieves the event log data from the device tree > during file open. The event log data will then displayed through > securityfs. Hi Ashley, Comments inline .. > diff --git a/drivers/char/tpm/Makefile b/drivers/char/tpm/Makefile

RE: [PATCH v2 1/3] mfd: add lp8788 mfd driver

2012-08-10 Thread Kim, Milo
> > Patch v2. > > (a) For interrupt handling, use generic irq rather than irq-domain > > This seems like a very substantial step backwards, why make this change? > Using irqdomain solves a bunch of problems, especially around virq > allocation, and is where we want all drivers to go longer term.

[BUGFIX PATCH] kexec & iosapic: kexec oops when iosapic was removed

2012-08-10 Thread Hanjun Guo
Hi, all We are working on a node hot-plug project, and IOAPIC is one of these devices to be removed. but after IOSAPIC was removed, we use kexec to start a new kernel, oops happended. I reviewed the code and find out: iosapic_remove iosapic_free memset(&iosapic_lists[index], 0, sizeof(iosapi

[PATCH] [PATCH V6]Extcon: adc_jack: adc-jack driver to support 3.5 pi or simliar devices

2012-08-10 Thread anish kumar
From: anish kumar External connector devices that decides connection information based on ADC values may use adc-jack device driver. The user simply needs to provide a table of adc range and connection states. Then, extcon framework will automatically notify others. Changes in V1: added Lars-Pet

Re: [RFC PATCH v1 00/15] firmware loader: introduce cache/uncache firmware

2012-08-10 Thread Ming Lei
On Sat, Aug 4, 2012 at 12:01 PM, Ming Lei wrote: > Hi, > > In [1][2], the problem below has been discussed for some time: > > device's firmware may be lost during suspend/resume > cycle because device might be unplugged and plugged again > or device experiences system power

[RFC/PATCH] sched: Honor sync wake up in select_idle_sibling

2012-08-10 Thread Namhyung Kim
From: Namhyung Kim When sync wakeup happens and there's the waker task running alone, select the target cpu as if it's already idle. Cc: Mike Galbraith Cc: Suresh Siddha Signed-off-by: Namhyung Kim --- kernel/sched/fair.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) dif

Re: [PATCH 10/11] spi/s3c64xx: improve error handling

2012-08-10 Thread Arnd Bergmann
On Friday 10 August 2012, Kukjin Kim wrote: > BTW for same reason, probably, we need following fix? > > arch/arm/mach-tegra/tegra2_emc.c |4 ++-- > arch/c6x/kernel/setup.c |2 +- > arch/powerpc/kernel/ibmebus.c|2 +- > arch/powerpc/ker

Re: Re: [RFC PATCH 4/4] ftrace/x86: Add support for -mfentry to x86_64

2012-08-10 Thread Masami Hiramatsu
(2012/08/09 22:46), Steven Rostedt wrote: > Peter and Masami > > During my final tests, I found that this change breaks the > !DYNAMIC_FTRACE config. That is, when we don't do the run-time updates > of mcount calls to nops, the compiler will use fentry but the code still > uses mcount. Ah, right.

Re: [GIT PULL] at91: platform data for atmel-mci (for 3.5)

2012-08-10 Thread Nicolas Ferre
On 07/25/2012 10:06 PM, Arnd Bergmann : > On Thursday 31 May 2012, Nicolas Ferre wrote: >> >> On 05/24/2012 05:12 PM, Nicolas Ferre : >>> Hi Arnd, hi Olof, >> >> Ping? >> >> (or maybe you will have a look at this after the merge window...) >> > > I've just gone through all old pull requests that I

[PATCH] target: Add blk_put_request()

2012-08-10 Thread Marina Makienko
blk requests are obtained (some memory is allocated for them) by means of functions blk_get_request and blk_make_request. After usage (usually with help of blk_execute_rq) these requests should be put (and freed) with help of blk_put_request. Found by Linux Driver Verification project (linuxtestin

Re: [PATCH 2/6] mm: vmscan: Scale number of pages reclaimed by reclaim/compaction based on failures

2012-08-10 Thread Mel Gorman
On Thu, Aug 09, 2012 at 04:29:57PM -0400, Rik van Riel wrote: > On 08/09/2012 05:20 AM, Mel Gorman wrote: > > >The intention is that an allocation can fail but each subsequent attempt will > >try harder until there is success. Each allocation request does a portion > >of the necessary work to spre

Re: [RFC/PATCH] sched: Honor sync wake up in select_idle_sibling

2012-08-10 Thread Mike Galbraith
On Fri, 2012-08-10 at 16:25 +0900, Namhyung Kim wrote: > From: Namhyung Kim > > When sync wakeup happens and there's the waker task running alone, > select the target cpu as if it's already idle. Ouch. That defeats the purpose of select_idle_sibling(). Just because we're doing a sync wakeup d

Re: [PATCH v2] gpio: Add Avionic Design N-bit GPIO expander support

2012-08-10 Thread Linus Walleij
On Thu, Aug 9, 2012 at 10:20 PM, Thierry Reding wrote: > On Sun, Jul 29, 2012 at 07:13:57PM +0200, Linus Walleij wrote: >> > + client->irq = irq_of_parse_and_map(client->dev.of_node, 0); >> > + if (client->irq == NO_IRQ) >> >> Just if (!client->irq) since NO_IRQ is 0 nowadays. > > At t

[PATCHv4 1/3] fs: Move core dump functionality into its own file

2012-08-10 Thread Alex Kelly
This prepares for making core dump functionality optional. The variable "suid_dumpable" and associated functions are left in fs/exec.c because they're used elsewhere, such as in ptrace. Signed-off-by: Alex Kelly Reviewed-by: Josh Triplett --- v2: This patch set is a second revision that follows

[PATCHv4 2/3] fs: Make core dump functionality optional

2012-08-10 Thread Alex Kelly
Adds an expert Kconfig option, CONFIG_COREDUMP, which allows disabling of core dump. This saves approximately 2.6k in the compiled kernel, and complements CONFIG_ELF_CORE, which now depends on it. CONFIG_COREDUMP also disables coredump-related sysctls, except for suid_dumpable and related funct

[PATCHv4 3/3] fs: Update coredump-related headers

2012-08-10 Thread Alex Kelly
This patch creates a new header file, fs/coredump.h, which contains functions only used by the new coredump.c. It also moves do_coredump to the include/linux/coredump.h header file, for consistency. Signed-off-by: Alex Kelly Reviewed-by: Josh Triplett --- fs/coredump.c| 2 ++ fs/cor

[PATCH] mfd/ab3100: split ab3100 headers out of abx500.h

2012-08-10 Thread Linus Walleij
From: Marcus Cooper The U8500 has its own set of separate header, so the abx500 becomes completely abstract. Do the same split for the AB3100 legacy ASIC. Signed-off-by: Marcus Cooper Signed-off-by: Linus Walleij --- arch/arm/mach-u300/i2c.c | 2 +- drivers/mfd/ab3100-core.c | 1 + dri

Re: [PATCH 2/6] mm: vmscan: Scale number of pages reclaimed by reclaim/compaction based on failures

2012-08-10 Thread Mel Gorman
On Fri, Aug 10, 2012 at 08:27:33AM +0900, Minchan Kim wrote: > > > > > > The intention is that an allocation can fail but each subsequent attempt > > will > > try harder until there is success. Each allocation request does a portion > > of the necessary work to spread the cost between multiple re

Re: [PATCH v2] gpio: Add Avionic Design N-bit GPIO expander support

2012-08-10 Thread Thierry Reding
On Fri, Aug 10, 2012 at 10:19:02AM +0200, Linus Walleij wrote: > On Thu, Aug 9, 2012 at 10:20 PM, Thierry Reding > wrote: > > On Sun, Jul 29, 2012 at 07:13:57PM +0200, Linus Walleij wrote: > >> > + client->irq = irq_of_parse_and_map(client->dev.of_node, 0); > >> > + if (client->irq ==

Re: [lm-sensors] NULL dereference BUG in sch56xx_init()

2012-08-10 Thread Hans de Goede
Hi, On 08/09/2012 04:42 PM, Guenter Roeck wrote: On Thu, Aug 09, 2012 at 08:55:26PM +0800, Fengguang Wu wrote: Hi Guenter, This commit triggered an oops which can be fixed by the attached diff. Should it be folded into the original one (preferable for me), or be resent as a standalone patch?

Re: [PATCH v2] gpio: Add Avionic Design N-bit GPIO expander support

2012-08-10 Thread Linus Walleij
On Fri, Aug 10, 2012 at 10:35 AM, Thierry Reding wrote: >> Consult the following article on LWN: >> http://lwn.net/Articles/470820/ >> >> Then grep your gitlog and you'll see we got rid of it from ARM. > > Then why is there still the following in arch/arm/include/asm/irq.h? > > /* >

Re: 3.5 kernel NULL pointer dereference net_tx_action

2012-08-10 Thread Jörg-Volker Peetz
With stable release 3.5.1 this is cured and WLAN is working flawless again. Many thanks to the maintainers. -- Jörg-Volker Peetz. -- 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.ke

Re:

2012-08-10 Thread Linus Walleij
On Fri, Aug 10, 2012 at 7:32 AM, devendra.aaru wrote: > In function tegra_pinctrl_dt_node_to_map the num_maps the num_maps > counter must be incremented for each child node? I need Stephen Warren to comment on this patch... Yours, Linus Walleij -- To unsubscribe from this list: send the line "u

Re: [PATCH 2/6] mm: vmscan: Scale number of pages reclaimed by reclaim/compaction based on failures

2012-08-10 Thread Minchan Kim
Hi Mel, On Fri, Aug 10, 2012 at 09:34:38AM +0100, Mel Gorman wrote: > On Fri, Aug 10, 2012 at 08:27:33AM +0900, Minchan Kim wrote: > > > > > > > > > The intention is that an allocation can fail but each subsequent attempt > > > will > > > try harder until there is success. Each allocation reques

Re: [PATCH 2/5] mm: vmscan: Scale number of pages reclaimed by reclaim/compaction based on failures

2012-08-10 Thread Minchan Kim
On Thu, Aug 09, 2012 at 02:49:22PM +0100, Mel Gorman wrote: > If allocation fails after compaction then compaction may be deferred for > a number of allocation attempts. If there are subsequent failures, > compact_defer_shift is increased to defer for longer periods. This patch > uses that informat

Re: [PATCH 00/22] mop500 related Audio reorganisation and fixups

2012-08-10 Thread Linus Walleij
On Thu, Aug 9, 2012 at 9:40 PM, Lee Jones wrote: > On Thu, Aug 09, 2012 at 07:50:29PM +0100, Mark Brown wrote: >> On Thu, Aug 09, 2012 at 04:47:26PM +0100, Lee Jones wrote: >> > Another fine instalment of Audio fixes and Device Tree enablement >> > surrounding the mop500 sound driver. Hopefully co

Re: [PATCH v2] gpio: Add Avionic Design N-bit GPIO expander support

2012-08-10 Thread Thierry Reding
On Fri, Aug 10, 2012 at 10:41:58AM +0200, Linus Walleij wrote: > On Fri, Aug 10, 2012 at 10:35 AM, Thierry Reding > wrote: > >> Consult the following article on LWN: > >> http://lwn.net/Articles/470820/ > >> > >> Then grep your gitlog and you'll see we got rid of it from ARM. > > > > Then why is t

Re: [RFC PATCH] mm: introduce N_LRU_MEMORY to distinguish between normal and movable memory

2012-08-10 Thread Hanjun Guo
On 2012/8/9 22:06, Christoph Lameter (Open Source) wrote: > On Thu, 9 Aug 2012, Hanjun Guo wrote: > >> Now, We have node masks for both N_NORMAL_MEMORY and >> N_HIGH_MEMORY to distinguish between normal and highmem on platforms such as >> x86. >> But we still don't have such a mechanism to distin

Re: [RFC/PATCH] sched: Honor sync wake up in select_idle_sibling

2012-08-10 Thread Namhyung Kim
Hi, Mike On Fri, 10 Aug 2012 10:14:44 +0200, Mike Galbraith wrote: > On Fri, 2012-08-10 at 16:25 +0900, Namhyung Kim wrote: >> From: Namhyung Kim >> >> When sync wakeup happens and there's the waker task running alone, >> select the target cpu as if it's already idle. > > Ouch. That defeats th

[PATCH] drm/i915: ingore eDP bpc settings

2012-08-10 Thread Daniel Vetter
This has originally been introduced to not oversubscribe the dp links in commit 885a5fb5b120a5c7e0b3baad7b0feb5a89f76c18 Author: Zhenyu Wang Date: Tue Jan 12 05:38:31 2010 +0800 drm/i915: fix pixel color depth setting on eDP Since then we've fixed up the dp link bandwidth calculation code

Re: How to get the irq flags from the dts file

2012-08-10 Thread Wei Ni
On Thu, 2012-08-09 at 20:05 +0800, Mark Brown wrote: > On Thu, Aug 09, 2012 at 11:48:42AM +, Arnd Bergmann wrote: > > On Thursday 09 August 2012, Wei Ni wrote: > > > > The wlan driver wish this flags include the IRQF_TRGGER_* information, > > > and it will use this flags to configure other hw

Re: [PATCH 2/3] vsyscall_64: allow SECCOMP_RET_TRACErs to skip

2012-08-10 Thread James Morris
On Sat, 14 Jul 2012, Will Drewry wrote: > Agreed :) I don't mind making tweaks to get it right, but this only > matters to users that want to: > - use seccomp filter > - with ptrace (or trap with resumption and not sigreturn) > - of time, gettimeofday, and getcpu > since they will then have to inc

Re: How to get the irq flags from the dts file

2012-08-10 Thread Wei Ni
On Thu, 2012-08-09 at 20:09 +0800, Arend van Spriel wrote: > On 08/09/2012 12:43 PM, Wei Ni wrote: > > Hi, all > > I'm working on tegra wlan upstream issue. > > The tegra board use the Broadcom 4329 as wlan device, and the driver is > > the brcmfmac. > > > > This wlan driver support out-band-inte

Re: [PATCH v2] gpio: Add Avionic Design N-bit GPIO expander support

2012-08-10 Thread Russell King - ARM Linux
On Fri, Aug 10, 2012 at 10:41:58AM +0200, Linus Walleij wrote: > On Fri, Aug 10, 2012 at 10:35 AM, Thierry Reding > wrote: > >> Consult the following article on LWN: > >> http://lwn.net/Articles/470820/ > >> > >> Then grep your gitlog and you'll see we got rid of it from ARM. > > > > Then why is t

[PATCH] edac_mc: fix kfree calls in the error path

2012-08-10 Thread Fengguang Wu
We need to free up memory in this order: free csrows[i]->channels[j] free csrows[i]->channels free csrows[i] free csrows Signed-off-by: Fengguang Wu --- drivers/edac/edac_mc.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) --- linux.orig/drivers/edac/edac_mc.c

Re: [PATCH v3] irq_remap: disable IRQ remapping if any IOAPIC lacks an IOMMU

2012-08-10 Thread Joerg Roedel
On Wed, Aug 08, 2012 at 08:27:03AM -0500, Seth Forshee wrote: > The ACPI tables in the Macbook Air 5,1 define a single IOAPIC with id 2, > but the only remapping unit described in the DMAR table matches id 0. > Interrupt remapping fails as a result, and the kernel panics with the > message "timer d

Re: DT GPIO numbering?

2012-08-10 Thread Johannes Stezenbach
On Mon, Aug 06, 2012 at 07:10:00PM +0800, Mitch Bradley wrote: > On 8/6/2012 5:58 PM, Johannes Stezenbach wrote: > > On Mon, Aug 06, 2012 at 08:35:51AM +0200, Linus Walleij wrote: > >> On Mon, Aug 6, 2012 at 4:18 AM, Stephen Warren > >> wrote: > >> > >>> I can't comment on the sysfs-vs-dev interf

Re: [PATCH 00/22] mop500 related Audio reorganisation and fixups

2012-08-10 Thread Lee Jones
On Fri, Aug 10, 2012 at 10:48:39AM +0200, Linus Walleij wrote: > On Thu, Aug 9, 2012 at 9:40 PM, Lee Jones wrote: > > On Thu, Aug 09, 2012 at 07:50:29PM +0100, Mark Brown wrote: > >> On Thu, Aug 09, 2012 at 04:47:26PM +0100, Lee Jones wrote: > >> > Another fine instalment of Audio fixes and Device

Re: [PATCH 3/4] cpu: export cpu hotplug disable/enable functions as global functions

2012-08-10 Thread Zhao Chenhui
On Tue, Aug 07, 2012 at 04:43:25PM +0800, Zhao Chenhui wrote: > The cpufreq driver of mpc85xx will disable/enable cpu hotplug temporarily. > Therefore, the related functions should be exported. > > Signed-off-by: Zhao Chenhui > --- > include/linux/cpu.h |4 > 1 files changed, 4 insertio

[PATCH v2 4/4] powerpc/85xx: add support to JOG feature using cpufreq interface

2012-08-10 Thread Zhao Chenhui
Some 85xx silicons like MPC8536 and P1022 have a JOG feature, which provides a dynamic mechanism to lower or raise the CPU core clock at runtime. This patch adds the support to change CPU frequency using the standard cpufreq interface. The ratio CORE to CCB can be 1:1(except MPC8536), 3:2, 2:1, 5:

Re: [RFC PATCH] mm: introduce N_LRU_MEMORY to distinguish between normal and movable memory

2012-08-10 Thread Yasuaki Ishimatsu
Hi Guo, I have a question. How do you create the offlinable node? The current linux cannot offline all memory on node. So we cannot hit the bug. Recently Lai sent the following patches which create the movable node. I think these patches consider the problem. https://lkml.org/lkml/2012/8/6/113

[PATCH] iommu/amd: Fix wrong check for ARRAY_SIZE()

2012-08-10 Thread Joerg Roedel
The check in the for-loop is broken. Fix it and the boot-crash it causes in AMD IOMMUv2 systems. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu_init.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c i

Re: [patch] hugetlb: correct page offset index for sharing pmd

2012-08-10 Thread Michal Hocko
On Fri 03-08-12 15:32:35, Michal Hocko wrote: > On Fri 03-08-12 20:56:45, Hillf Danton wrote: > > The computation of page offset index is open coded, and incorrect, to > > be used in scanning prio tree, as huge page offset is required, and is > > fixed with the well defined routine. > > I guess th

Re: [PATCH 2/2] pwm: core: Fix coding style issues

2012-08-10 Thread Thierry Reding
On Fri, Aug 10, 2012 at 10:12:10AM +0530, Sachin Kamat wrote: > Fixes the following: > WARNING: line over 80 characters > ERROR: spaces required around that ':' (ctx:VxW) > WARNING: Prefer pr_warn(... to pr_warning(... > > Signed-off-by: Sachin Kamat > --- > drivers/pwm/core.c |6 +++--- > 1

Re: Attaching a process to cgroups

2012-08-10 Thread Alexey Vlasov
On Wed, Aug 08, 2012 at 09:51:29AM -0700, Paul E. McKenney wrote: > On Wed, Aug 08, 2012 at 08:40:33PM +0400, Alexey Vlasov wrote: > > > > In general I've changed it to synchronize_rcu_expedited () and all the > > delays have gone both on writing and reading files from cgroups. > > Is the writing

Re: [PATCH 2/2] pwm: core: Fix coding style issues

2012-08-10 Thread Sachin Kamat
On 10 August 2012 15:25, Thierry Reding wrote: > On Fri, Aug 10, 2012 at 10:12:10AM +0530, Sachin Kamat wrote: >> Fixes the following: >> WARNING: line over 80 characters >> ERROR: spaces required around that ':' (ctx:VxW) >> WARNING: Prefer pr_warn(... to pr_warning(... >> >> Signed-off-by: Sachi

Re: [PATCH 04/10] ARM: pass -marm to gcc by default

2012-08-10 Thread Dave Martin
On Thu, Aug 09, 2012 at 05:22:30PM -0400, Nicolas Pitre wrote: > On Thu, 9 Aug 2012, Russell King - ARM Linux wrote: > > > On Thu, Aug 09, 2012 at 05:12:58PM -0400, Nicolas Pitre wrote: > > > CFLAGS_THUMB2 should probably be renamed to something more appropriate > > > in this case, e.g. CFLAGS_MO

Re: "Inconsistent kallsyms data" error

2012-08-10 Thread Michal Marek
On Fri, Aug 10, 2012 at 02:02:33AM +0200, Jan Engelhardt wrote: > > On Saturday 2012-07-07 23:40, Michal Marek wrote: > >index cd9c6c6..4629038 100644 > >--- a/scripts/link-vmlinux.sh > >+++ b/scripts/link-vmlinux.sh > >@@ -210,8 +210,8 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then > > mksysmap ${ka

Re: [PATCH 2/2] pwm: core: Fix coding style issues

2012-08-10 Thread Thierry Reding
On Fri, Aug 10, 2012 at 03:29:08PM +0530, Sachin Kamat wrote: > On 10 August 2012 15:25, Thierry Reding > wrote: > > On Fri, Aug 10, 2012 at 10:12:10AM +0530, Sachin Kamat wrote: > >> Fixes the following: > >> WARNING: line over 80 characters > >> ERROR: spaces required around that ':' (ctx:VxW) >

Re: [PATCH 2/2] pwm: core: Fix coding style issues

2012-08-10 Thread Sachin Kamat
On 10 August 2012 15:32, Thierry Reding wrote: > On Fri, Aug 10, 2012 at 03:29:08PM +0530, Sachin Kamat wrote: >> On 10 August 2012 15:25, Thierry Reding >> wrote: >> > On Fri, Aug 10, 2012 at 10:12:10AM +0530, Sachin Kamat wrote: >> >> Fixes the following: >> >> WARNING: line over 80 characters

Re: [PATCH] wm831x-dcdc: fix coccinelle warnings of missing IRQF_ONESHOT

2012-08-10 Thread Mark Brown
On Fri, Aug 10, 2012 at 08:58:24AM +0800, Feng Tang wrote: > From: Fengguang Wu > > /c/kernel-tests/src/linux/drivers/regulator/wm831x-dcdc.c:829:7-27: ERROR: > Threaded IRQ with no primary handler requested without IRQF_ONESHOT > /c/kernel-tests/src/linux/drivers/regulator/wm831x-dcdc.c:695:7-2

Re: [PATCH 1/6] regulator: core: Add checking n_voltages if using list_voltage() to read voltage regulators

2012-08-10 Thread Mark Brown
On Fri, Aug 10, 2012 at 09:32:33AM +0800, Axel Lin wrote: > Use list_voltage() to read single voltage regulators should be only applied to > single voltage regulators, thus add checking n_voltages for this case. We should be failing to register these regulators in the first place, or at least comp

Re: null pointer dereference while loading i915

2012-08-10 Thread Daniel Vetter
On Wed, Aug 8, 2012 at 6:50 AM, Mihai Moldovan wrote: > Hi Daniel, hi list > > ever since version 3.2.0 (maybe even earlier, but 3.0.2 is still working > fine), > my box is crashing when loading the i915 driver (mode-setting enabled.) > > The current version I'm testing with is 3.5.0. > > I was a

Re: [PATCH] drm/i915: ingore eDP bpc settings

2012-08-10 Thread Benoit Gschwind
Hello, I confirm this patch work apply to kernel 3.6-rc1 Best regards On 10/08/2012 11:10, Daniel Vetter wrote: > This has originally been introduced to not oversubscribe the dp links > in > > commit 885a5fb5b120a5c7e0b3baad7b0feb5a89f76c18 > Author: Zhenyu Wang > Date: Tue Jan 12 05:38:31

Issues with ioremap

2012-08-10 Thread kps mailme
Hello, I have a ARM926 based development board. I am trying to remap 23 MB of IO memory using ioremap and access with the code snippet below, mm throws an exception most of the times - #define MRAM_SIZE 23068672 while(1) { offset = test_random() % MRAM_SIZE; virt_addr = mme

Re: [PATCH, RFC 0/9] Introduce huge zero page

2012-08-10 Thread Kirill A. Shutemov
On Fri, Aug 10, 2012 at 11:49:12AM +0800, Wanpeng Li wrote: > On Thu, Aug 09, 2012 at 12:08:11PM +0300, Kirill A. Shutemov wrote: > >From: "Kirill A. Shutemov" > > > >During testing I noticed big (up to 2.5 times) memory consumption overhead > >on some workloads (e.g. ft.A from NPB) if THP is enab

[PATCH] kvm: disable stealtime via reboot notifier to avoid mem corruption

2012-08-10 Thread Florian Westphal
else, we get memory corruption on reboot; found when tracking down initramfs unpack error on initial reboot (with qemu-kvm -smp 2, no problem with single-core). problem with doing it via kvm_shutdown() is that this file depends on CONFIG_KVM_CLOCK, also its not enough to call it for one cpu only.

[GIT] security subsystem: Yama fix

2012-08-10 Thread James Morris
Hi Linus, This fixes an issue in the Yama LSM. Please apply. The following changes since commit f4ba394c1b02e7fc2179fda8d3941a5b3b65efb6: Linus Torvalds (1): Merge git://git.kernel.org/.../davem/net are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/

Re:

2012-08-10 Thread Bernd Petrovitsch
Hi! On Fre, 2012-08-10 at 11:02 +0530, devendra.aaru wrote: [...] > In function tegra_pinctrl_dt_node_to_map the num_maps the num_maps > counter must be incremented for each child node? > > Actually we are doing free until num_maps if tegra_pinctrl_dt_subnode_to_map, > > not only that if num_maps

Re: [PATCH 2/2] pwm: core: Fix coding style issues

2012-08-10 Thread Joe Perches
On Fri, 2012-08-10 at 15:34 +0530, Sachin Kamat wrote: > On 10 August 2012 15:32, Thierry Reding > wrote: > > On Fri, Aug 10, 2012 at 03:29:08PM +0530, Sachin Kamat wrote: > >> On 10 August 2012 15:25, Thierry Reding > >> wrote: > >> > On Fri, Aug 10, 2012 at 10:12:10AM +0530, Sachin Kamat wrote:

Re: [PATCH 2/2] pwm: core: Fix coding style issues

2012-08-10 Thread Thierry Reding
On Fri, Aug 10, 2012 at 03:51:33AM -0700, Joe Perches wrote: > On Fri, 2012-08-10 at 15:34 +0530, Sachin Kamat wrote: > > On 10 August 2012 15:32, Thierry Reding > > wrote: > > > On Fri, Aug 10, 2012 at 03:29:08PM +0530, Sachin Kamat wrote: > > >> On 10 August 2012 15:25, Thierry Reding > > >> wr

Re: [PATCH 06/11] gpio: em: do not discard em_gio_irq_domain_cleanup

2012-08-10 Thread Linus Walleij
On Wed, Aug 8, 2012 at 4:47 PM, Arnd Bergmann wrote: > The newly added gpio-em driver marks its em_gio_irq_domain_cleanup > function as __devexit, which would lead to that function being > discarded in case CONFIG_HOTPLUG is disabled. However, the function > is also called by the error handling l

Re: [PATCH 2/2] pwm: core: Fix coding style issues

2012-08-10 Thread Sachin Kamat
On 10 August 2012 16:28, Thierry Reding wrote: > On Fri, Aug 10, 2012 at 03:51:33AM -0700, Joe Perches wrote: >> On Fri, 2012-08-10 at 15:34 +0530, Sachin Kamat wrote: >> > On 10 August 2012 15:32, Thierry Reding >> > wrote: >> > > On Fri, Aug 10, 2012 at 03:29:08PM +0530, Sachin Kamat wrote: >>

Re: [RFC PATCH 0/5] Improve hugepage allocation success rates under load V3

2012-08-10 Thread Mel Gorman
On Thu, Aug 09, 2012 at 04:38:24PM -0600, Jim Schutt wrote: > >> > > > >My conclusion looking at the vmstat data is that everything is looking ok > >until system CPU usage goes through the roof. I'm assuming that's what we > >are all still looking at. > > I'm concerned about both the high CPU usag

Re: [PATCH 09/10] ARM: rpc: Fix building RiscPC

2012-08-10 Thread Arnd Bergmann
On Thursday 09 August 2012, Russell King - ARM Linux wrote: > On Wed, Aug 08, 2012 at 11:27:57PM +0200, Arnd Bergmann wrote: > > ARMv3 support was removed in 357c9c1f07 "ARM: Remove support for ARMv3 > > ARM610 and ARM710 CPUs", which explicitly left parts of the CPU32v3 > > support in place for bu

RE: BUG: RDMA/ocrdma calls invalid vlan_dev_real_dev()

2012-08-10 Thread Parav.Pandit
I'll provide you fix in short while. Parav > -Original Message- > From: Fengguang Wu [mailto:fengguang...@intel.com] > Sent: Friday, August 10, 2012 5:39 AM > To: Roland Dreier > Cc: linux-r...@vger.kernel.org; Pandit, Parav; Sean Hefty; linux- > ker...@vger.kernel.org > Subject: Re: BUG:

Re: [PATCH 04/10] ARM: pass -marm to gcc by default

2012-08-10 Thread Arnd Bergmann
On Friday 10 August 2012, Dave Martin wrote: > On Thu, Aug 09, 2012 at 05:22:30PM -0400, Nicolas Pitre wrote: > > On Thu, 9 Aug 2012, Russell King - ARM Linux wrote: > > > > > On Thu, Aug 09, 2012 at 05:12:58PM -0400, Nicolas Pitre wrote: > > > > CFLAGS_THUMB2 should probably be renamed to somethi

[PATCH][Re-send] pwm: core: Fix coding style issues

2012-08-10 Thread Sachin Kamat
Fixes the following: WARNING: line over 80 characters ERROR: spaces required around that ':' (ctx:VxW) WARNING: Prefer pr_warn(... to pr_warning(... Signed-off-by: Sachin Kamat --- drivers/pwm/core.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pwm/core

Re: [PATCH 06/11] gpio: em: do not discard em_gio_irq_domain_cleanup

2012-08-10 Thread Arnd Bergmann
On Friday 10 August 2012, Linus Walleij wrote: > On Wed, Aug 8, 2012 at 4:47 PM, Arnd Bergmann wrote: > > > The newly added gpio-em driver marks its em_gio_irq_domain_cleanup > > function as __devexit, which would lead to that function being > > discarded in case CONFIG_HOTPLUG is disabled. Howev

Re: [PATCH][Re-send] pwm: core: Fix coding style issues

2012-08-10 Thread Thierry Reding
On Fri, Aug 10, 2012 at 04:41:13PM +0530, Sachin Kamat wrote: > Fixes the following: > WARNING: line over 80 characters > ERROR: spaces required around that ':' (ctx:VxW) > WARNING: Prefer pr_warn(... to pr_warning(... > > Signed-off-by: Sachin Kamat > --- > drivers/pwm/core.c |8 >

Re: [PATCH 1/2] pwm: vt8500: Fix coding style issue

2012-08-10 Thread Thierry Reding
On Fri, Aug 10, 2012 at 10:12:09AM +0530, Sachin Kamat wrote: > Fixes the following: > WARNING: Prefer pr_warn(... to pr_warning(... > pr_warning("Waiting for status bits 0x%x to clear timed out\n", > > Signed-off-by: Sachin Kamat > --- > drivers/pwm/pwm-vt8500.c |2 +- > 1 files chang

Re: [PATCH 1/6] ASoC: dapm: If one widget fails, do not force all subsequent widgets to fail too

2012-08-10 Thread Linus Walleij
(As for the thread, which got flamy, let's put it to rest, and Ola: we are all impressed with your work on the ux500 ALSA SoC driver, no doubt about that, this was all ever about the DT patch set.) On Thu, Aug 2, 2012 at 7:58 AM, Ola Lilja wrote: > Linus W. could probably shed some light of w

[PATCH 0/3] Fix problems about handling bio to plug when bio merged failed.

2012-08-10 Thread Jianpeng Ma
There are some problems about handling bio which merge to plug failed. Patch1 will avoid unnecessary plug should_sort test,although it's not a bug. Patch2 correct a bug when handle more devices,it leak some devices to trace plug-operation. Because the patch2,so it's not necessary to sort when flu

[PATCH 1/3] block: avoid unnecessary plug should_sort test.

2012-08-10 Thread Jianpeng Ma
If request_count >= BLK_MAX_REQUEST_COUNT,then it will exec blk_flush_plug_list which plug all request.So no need to do plug->should_sort test. Signed-off-by: Jianpeng Ma --- block/blk-core.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/block/blk-core.c b/bloc

[PATCH 2/3] block: Fix not tracing all device plug-operation.

2012-08-10 Thread Jianpeng Ma
If process handled two or more devices,there will not be trace some devices plug-operation. Signed-off-by: Jianpeng Ma --- block/blk-core.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/block/blk-core.c b/block/blk-core.c index 7a3abc6..034f186 100644 ---

[PATCH 3/3] block: Remove unnecessary requests sort.

2012-08-10 Thread Jianpeng Ma
When adding request to plug,it already sort.So there is not unnecessary. Signed-off-by: Jianpeng Ma --- block/blk-core.c | 12 1 file changed, 12 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index 034f186..9dbdef6 100644 --- a/block/blk-core.c +++ b/block/blk-cor

[PATCH] [SCSI] fix typo in scsi documentation

2012-08-10 Thread Petr Uzel
Signed-off-by: Petr Uzel --- Documentation/scsi/scsi_eh.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/scsi/scsi_eh.txt b/Documentation/scsi/scsi_eh.txt index 6ff16b6..128348e 100644 --- a/Documentation/scsi/scsi_eh.txt +++ b/Documentation/scsi/scsi_e

Re: i915 regression on 3.6-rc1: lid blanks screen

2012-08-10 Thread Takashi Iwai
At Mon, 6 Aug 2012 11:25:30 -0700 (PDT), Hugh Dickins wrote: > > On Mon, 6 Aug 2012, Daniel Vetter wrote: > > On Mon, Aug 6, 2012 at 6:21 AM, Hugh Dickins wrote: > > > On Sun, 5 Aug 2012, Takashi Iwai wrote: > > >> At Sat, 4 Aug 2012 10:01:13 -0700 (PDT), > > >> Hugh Dickins wrote: > > >> > > > >

Re: [patch] mmap: feed back correct prev vma when finding vma

2012-08-10 Thread Hillf Danton
On Fri, Aug 10, 2012 at 9:26 AM, Hugh Dickins wrote: > On Thu, 9 Aug 2012, Hillf Danton wrote: >> After walking rb tree, if vma is determined, prev vma has to be determined >> based on vma; and rb_prev should be considered only if no vma determined. > > Why? Because you think more code is better

Re: [patch] hugetlb: correct page offset index for sharing pmd

2012-08-10 Thread Hillf Danton
On Fri, Aug 10, 2012 at 5:48 PM, Michal Hocko wrote: > On Fri 03-08-12 15:32:35, Michal Hocko wrote: >> On Fri 03-08-12 20:56:45, Hillf Danton wrote: >> > The computation of page offset index is open coded, and incorrect, to >> > be used in scanning prio tree, as huge page offset is required, and

Re: [PATCH] Staging: comedi: ssv_snp: fix checkpatch.pl warnings

2012-08-10 Thread Güngör Erseymen
On Thu, Aug 9, 2012 at 7:27 PM, H Hartley Sweeten wrote: > You have a typo in the subject for this patch. > "ssv_snp" should be "ssv_dnp" Hello Hartley, I missed that typo. This is my first patch for linux kernel, i am a bit nervous. >> diff --git a/drivers/staging/comedi/drivers/ssv_dnp.c >> b

Re: Direct I/O bug in kernel

2012-08-10 Thread Hillf Danton
On Fri, Aug 10, 2012 at 4:53 AM, Victor Meyerson wrote: > I tried that patch, although I had to edit a slightly different line as > dio_bio_alloc was near line 392 instead of 349 in the version of > fs/direct-io.c in my tree. I still got different checksums between the two > files and even dif

Re: [RFC PATCH] mm: introduce N_LRU_MEMORY to distinguish between normal and movable memory

2012-08-10 Thread Jiang Liu
Hi Isimatu, We have worked out a changeset to enable offlinable node, which is based on a new ACPI based hotplug framework (http://www.spinics.net/lists/linux-pci/msg16826.html). Now could hot-add/hot-remove a computer node with CPU/memory/PCI host bridge, but it's still a prototype and w

Re: [patch] hugetlb: correct page offset index for sharing pmd

2012-08-10 Thread Michal Hocko
On Fri 10-08-12 20:07:12, Hillf Danton wrote: > On Fri, Aug 10, 2012 at 5:48 PM, Michal Hocko wrote: > > On Fri 03-08-12 15:32:35, Michal Hocko wrote: > >> On Fri 03-08-12 20:56:45, Hillf Danton wrote: > >> > The computation of page offset index is open coded, and incorrect, to > >> > be used in s

Re: [PATCH 1/6] regulator: core: Add checking n_voltages if using list_voltage() to read voltage regulators

2012-08-10 Thread Axel Lin
2012/8/10 Mark Brown : > On Fri, Aug 10, 2012 at 09:32:33AM +0800, Axel Lin wrote: >> Use list_voltage() to read single voltage regulators should be only applied >> to >> single voltage regulators, thus add checking n_voltages for this case. > > We should be failing to register these regulators in

Re: [PATCH 1/6] regulator: core: Add checking n_voltages if using list_voltage() to read voltage regulators

2012-08-10 Thread Mark Brown
On Fri, Aug 10, 2012 at 08:27:32PM +0800, Axel Lin wrote: > 2012/8/10 Mark Brown : > > We should be failing to register these regulators in the first place, or > > at least complaining extremely loudly about them. > Oh. My original intention is to prevent using list_voltage() to read > voltage re

Re: i915 regression on 3.6-rc1: lid blanks screen

2012-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2012 at 1:59 PM, Takashi Iwai wrote: > At Mon, 6 Aug 2012 11:25:30 -0700 (PDT), > Hugh Dickins wrote: >> >> On Mon, 6 Aug 2012, Daniel Vetter wrote: >> > On Mon, Aug 6, 2012 at 6:21 AM, Hugh Dickins wrote: >> > > On Sun, 5 Aug 2012, Takashi Iwai wrote: >> > >> At Sat, 4 Aug 2012 1

[RFC PATCH] fs/direct-io.c: Add REQ_NOIDLE for last bio .

2012-08-10 Thread Jianpeng Ma
For last bio of dio, there are no bio will come.So set REQ_NOIDLE. Signed-off-by: Jianpeng Ma --- fs/direct-io.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index 1faf4cb..7c6958f 100644 --- a/fs/direct-io.c +++ b/fs/dire

Re: [patch] hugetlb: correct page offset index for sharing pmd

2012-08-10 Thread Hillf Danton
On Fri, Aug 10, 2012 at 8:27 PM, Michal Hocko wrote: > > I guess you mean unmap_ref_private and that has been changed by you > (0c176d5 mm: hugetlb: fix pgoff computation when unmapping page from > vma)... I was wrong at that time when giving my Reviewed-by. The patch > didn't break anything beca

Re: [PATCH] powerpc/smp: Do not disable IPI interrupts during suspend

2012-08-10 Thread Kumar Gala
On Aug 2, 2012, at 5:04 AM, Zhao Chenhui wrote: > On Sat, Jul 28, 2012 at 08:20:31AM +1000, Benjamin Herrenschmidt wrote: >> On Fri, 2012-07-27 at 16:58 -0500, Kumar Gala wrote: >>> On Jul 20, 2012, at 7:47 AM, Zhao Chenhui wrote: >>> During suspend, all interrupts including IPI will be dis

Re: [PATCH v6 1/3] mm: introduce compaction and migration for virtio ballooned pages

2012-08-10 Thread Mel Gorman
On Thu, Aug 09, 2012 at 12:12:19PM -0300, Rafael Aquini wrote: > On Thu, Aug 09, 2012 at 11:48:36AM -0300, Rafael Aquini wrote: > > Sure! > > what do you think of: > > > > +/* putback_lru_page() counterpart for a ballooned page */ > > +void putback_balloon_page(struct page *page) > > +{ > > + l

Re: [patch] hugetlb: correct page offset index for sharing pmd

2012-08-10 Thread Michal Hocko
On Fri 10-08-12 20:37:20, Hillf Danton wrote: > On Fri, Aug 10, 2012 at 8:27 PM, Michal Hocko wrote: > > > > I guess you mean unmap_ref_private and that has been changed by you > > (0c176d5 mm: hugetlb: fix pgoff computation when unmapping page from > > vma)... I was wrong at that time when givin

Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-08-10 Thread Jan Engelhardt
On Saturday 2012-07-21 02:46, David Miller wrote: >> Arnd Bergmann wrote: >> >>> I don't generally like to put stuff into asm-generic when it's unlikely >>> to be overridden by architectures. It would really belong into >>> include/linux, but then again we have all the other bitops in asm-generi

Re: [patch] hugetlb: correct page offset index for sharing pmd

2012-08-10 Thread Hillf Danton
On Fri, Aug 10, 2012 at 8:51 PM, Michal Hocko wrote: > On Fri 10-08-12 20:37:20, Hillf Danton wrote: >> On Fri, Aug 10, 2012 at 8:27 PM, Michal Hocko wrote: >> > >> > I guess you mean unmap_ref_private and that has been changed by you >> > (0c176d5 mm: hugetlb: fix pgoff computation when unmappin

Re: Regression - /proc/kmsg does not (always) block for 1-byte reads

2012-08-10 Thread Jan Engelhardt
On Saturday 2012-07-07 23:19, Kay Sievers wrote: >On Fri, Jul 6, 2012 at 10:30 PM, Linus Torvalds > wrote: >> Kay, this needs to be fixed. >> >> Suggested fix: just use the 'seq_printf()' interfaces, which do the >> proper buffering, and allow any size reads of various packetized data. > >I'll hav

Re: i915 regression on 3.6-rc1: lid blanks screen

2012-08-10 Thread Takashi Iwai
At Fri, 10 Aug 2012 14:35:13 +0200, Daniel Vetter wrote: > > On Fri, Aug 10, 2012 at 1:59 PM, Takashi Iwai wrote: > > At Mon, 6 Aug 2012 11:25:30 -0700 (PDT), > > Hugh Dickins wrote: > >> > >> On Mon, 6 Aug 2012, Daniel Vetter wrote: > >> > On Mon, Aug 6, 2012 at 6:21 AM, Hugh Dickins wrote: > >

Re: [PATCH] mpc85xx_defconfig: add VIA PATA support for MPC85xxCDS

2012-08-10 Thread Kumar Gala
On Aug 7, 2012, at 4:12 AM, Zhao Chenhui wrote: > Signed-off-by: Zhao Chenhui > --- > Replace this patch "mpc85xx_defconfig: add IDE support for MPC85xxCDS". > > arch/powerpc/configs/mpc85xx_defconfig |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) applied to merge - k -- To unsub

  1   2   3   4   >