[PATCH v5 09/13] x86: use io_remap to access real_mode_data

2012-11-27 Thread Yinghai Lu
When 64bit bootloader put real mode data above 4g, We can not access real mode data directly yet. because in arch/x86/kernel/head_64.S, only set ident mapping for 0-1g, and kernel code/data/bss. So need to move early_ioremap_init() calling early from setup_arch() to x86_64_start_kernel(). Also

[PATCH v5 04/13] x86: Merge early_reserve_initrd for 32bit and 64bit

2012-11-27 Thread Yinghai Lu
They are the same, could move them out from head32/64.c to setup.c. We are using memblock, and it could handle overlapping properly, so we don't need to reserve some at first to hold the location, and just need to make sure we reserve them before we are using memblock to find free mem to use.

[PATCH v5 07/13] x86, boot: move checking of cmd_line_ptr out of common path

2012-11-27 Thread Yinghai Lu
cmdline.c::__cmdline_find_option... are shared between 16-bit setup code and 32/64 bit decompressor code. for 32/64 only path via kexec, we should not check if ptr less 1M. as those cmdline could be put above 1M, or even 4G. Move out accessible checking out of __cmdline_find_option() So

[PATCH v5 03/13] x86, 64bit: Set extra ident mapping for whole kernel range

2012-11-27 Thread Yinghai Lu
Current when kernel is loaded above 1G, only [_text, _text+2M] is set up with extra ident page table. That is not enough, some variables that could be used early are out of that range, like BRK for early page table. Need to set map for [_text, _end] include text/data/bss/brk... Also current

[PATCH v5 05/13] x86: add get_ramdisk_image/size()

2012-11-27 Thread Yinghai Lu
There several places to find ramdisk information early for reserving and relocating. Use functions to make code more readable and consistent. Later will add ext_ramdisk_image/size in those functions to support loading ramdisk above 4g. Signed-off-by: Yinghai Lu --- arch/x86/kernel/setup.c |

[PATCH v5 08/13] x86, boot: update cmd_line_ptr to unsigned long

2012-11-27 Thread Yinghai Lu
boot/compressed/misc.c could be with 64 bit, and cmd_line_ptr could above 4g. So change to unsigned long instead, that will be 64bit in 64bit path and 32bit in 32bit path. Signed-off-by: Yinghai Lu --- arch/x86/boot/boot.h|8 arch/x86/boot/cmdline.c |4 ++-- 2 files

[PATCH v5 02/13] x86, boot: Move lldt/ltr out of 64bit code section

2012-11-27 Thread Yinghai Lu
commit 08da5a2ca x86_64: Early segment setup for VT add lldt/ltr to clean more segments. Those code are put in code64, and it is using gdt that is only loaded from code32 path. That breaks booting with 64bit bootloader that does not go through code32 path. It get at startup_64 directly,

[PATCH v5 11/13] x86: remove 1024G limitation for kexec buffer on 64bit

2012-11-27 Thread Yinghai Lu
Now 64bit kernel supports more than 1T ram and kexec tools could find buffer above 1T, remove that obsolete limitation. and use MAXMEM instead. Tested on system more than 1024G ram. Signed-off-by: Yinghai Lu Cc: "Eric W. Biederman" --- arch/x86/include/asm/kexec.h |6 +++--- 1 files

[PATCH v5 01/13] x86, boot: move verify_cpu.S after 0x200

2012-11-27 Thread Yinghai Lu
We are short of space before 0x200 that is entry for startup_64. According to hpa, we can not change startup_64 to other offset and that become ABI now. We could move function verify_cpu down, and that could avoid extra code of jmp back and forth if we would move other lines. Signed-off-by:

[PATCH v5 12/13] x86, 64bit: Print init kernel lowmap correctly

2012-11-27 Thread Yinghai Lu
When we get x86_64_start_kernel from arch/x86/kernel/head_64.S, We have 1. kernel highmap 512M (KERNEL_IMAGE_SIZE) from kernel loaded address. 2. kernel lowmap: [0, 1024M), and size (_end - _text) from kernel loaded address. for example, if the kernel bzImage is loaded high from 8G, will get:

[PATCH v5 13/13] x86, mm: Fix page table early allocation offset checking

2012-11-27 Thread Yinghai Lu
During debug load kernel above 4G, found one page if is not used in BRK and it should be with early page allocation. Fix that checking and also add print out for every allocation from BRK page table allocation. Signed-off-by: Yinghai Lu --- arch/x86/mm/init.c |4 +++- 1 files changed, 3

[PATCH v5 06/13] x86, boot: add get_cmd_line_ptr()

2012-11-27 Thread Yinghai Lu
later will check ext_cmd_line_ptr at the same time. Signed-off-by: Yinghai Lu --- arch/x86/boot/compressed/cmdline.c | 10 -- arch/x86/kernel/head64.c | 13 +++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/arch/x86/boot/compressed/cmdline.c

[PATCH v5 10/13] x86, boot: add fields to support load bzImage and ramdisk above 4G

2012-11-27 Thread Yinghai Lu
ext_ramdisk_image/size will record high 32bits for ramdisk info. xloadflags bit0 will be set if relocatable with 64bit. Let get_ramdisk_image/size to use ext_ramdisk_image/size to get right positon for ramdisk. bootloader will fill value to ext_ramdisk_image/size when it load ramdisk above 4G.

[PATCH v5 00/13] x86, boot, 64bit: Add support for loading ramdisk and bzImage above 4G

2012-11-27 Thread Yinghai Lu
Now we have limit kdump reseved under 896M, because kexec has the limitation. and also bzImage need to stay under 4g. To make kexec/kdump could use range above 4g, we need to make bzImage and ramdisk could be loaded above 4g. During booting bzImage will be unpacked on same postion and stay high.

[PATCH] vfio powerpc: implemented IOMMU driver for VFIO

2012-11-27 Thread Alexey Kardashevskiy
VFIO implements platform independent stuff such as a PCI driver, BAR access (via read/write on a file descriptor or direct mapping when possible) and IRQ signaling. The platform dependent part includes IOMMU initialization and handling. This patch implements an IOMMU driver for VFIO which does

[PATCH] vfio powerpc: enabled on powernv platform

2012-11-27 Thread Alexey Kardashevskiy
This patch initializes IOMMU groups based on the IOMMU configuration discovered during the PCI scan on POWERNV (POWER non virtualized) platform. The IOMMU groups are to be used later by VFIO driver (PCI pass through). It also implements an API for mapping/unmapping pages for guest PCI drivers and

Re: [PATCH 1/4] Input RMI4 - rename rmi_function_container to rmi_function

2012-11-27 Thread Dmitry Torokhov
On Tue, Nov 27, 2012 at 03:43:05PM -0800, Christopher Heiny wrote: > On 11/27/2012 01:21 AM, Dmitry Torokhov wrote: > >To save my old fingers... > > > >Signed-off-by: Dmitry Torokhov > >--- > > > >It looks like this driver(s) need some love and I might have some time so I > >will refresh my

Re: [RFC][PATCH] fs: configfs: programmatically create config groups

2012-11-27 Thread Nicholas A. Bellinger
Hi Sebastian & Co, On Tue, 2012-11-27 at 16:20 +0100, Sebastian Andrzej Siewior wrote: > On 11/26/2012 06:54 PM, Michal Nazarewicz wrote: > > On Mon, Nov 26 2012, Sebastian Andrzej Siewior wrote: > >> Wouldn't say that. It may adds complexity on another level. The target > >> subsystem has the

Re: [PATCH V3 RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2012-11-27 Thread Raghavendra K T
On 11/27/2012 07:34 PM, Andrew Theurer wrote: On Tue, 2012-11-27 at 16:00 +0530, Raghavendra K T wrote: On 11/26/2012 07:05 PM, Andrew Jones wrote: On Mon, Nov 26, 2012 at 05:37:54PM +0530, Raghavendra K T wrote: From: Peter Zijlstra In case of undercomitted scenarios, especially in large

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-27 Thread Jiang Liu
Hi Chen, If a pageblock's migration type is movable, it may be converted to reclaimable under memory pressure. CMA is introduced to guarantee that pages of CMA won't be converted to other migratetypes. And we are trying to avoid allocating kernel/DMA memory from specific memory ranges, so we

Re: [PATCH 3/3] Input: bu21013_ts - Add support for Device Tree booting

2012-11-27 Thread Dmitry Torokhov
Hi Lee, On Tue, Nov 27, 2012 at 01:13:10PM +, Lee Jones wrote: > Now we can register the BU21013_ts touch screen when booting with > Device Tree enabled. Here we parse all the necessary components > previously expected to be passed from platform data. I applied these 3 patches, but for DT we

linux-next: Tree for Nov 28

2012-11-27 Thread Stephen Rothwell
Hi all, Changes since 20121127: The ia64 tree lost its conflict. The powerpc tree still had its build failure for which I applied a patch. The modules tree still had its build failure so I used the version from next-20121115. The mfd tree gained a conflict against Linus' tree. The pm tree

[RESEND PATCH] RTC: MAX77686: Add Maxim 77686 driver

2012-11-27 Thread Jonghwa Lee
Add driver for support max77686 rtc. MAX77686 rtc support smpl and wtsr mode. It has two alarm register which can be used for alarming to wake system up. This drvier uses regmap to access its register. Signed-off-by: Chiwoong Byun Signed-off-by: Jonghwa Lee Signed-off-by: Myugnjoo Ham

[PATCH 3.7] dma: sh: Don't use ENODEV for failing slave lookup

2012-11-27 Thread Guennadi Liakhovetski
If dmaengine driver's .device_alloc_chan_resources() method returns -ENODEV, dma_request_channel() will decide, that the driver has been removed and will remove the device from its list. To prevent this use ENXIO if a slave lookup fails. Reported-by: Kuninori Morimoto Signed-off-by: Guennadi

Re: [net-next RFC] pktgen: don't wait for the device who doesn't free skb immediately after sent

2012-11-27 Thread Jason Wang
On 11/28/2012 12:49 AM, Stephen Hemminger wrote: On Tue, 27 Nov 2012 14:45:13 +0800 Jason Wang wrote: On 11/27/2012 01:37 AM, Stephen Hemminger wrote: On Mon, 26 Nov 2012 15:56:52 +0800 Jason Wang wrote: Some deivces do not free the old tx skbs immediately after it has been sent (usually

[PATCH] ARM: mmp: select PINCTRL for ARCH_MMP

2012-11-27 Thread Axel Lin
This makes PINCTRL related config options visible. Otherwise there is no way to build pinctrl drivers for MMP2, PXA168 and PXA910. Signed-off-by: Axel Lin --- This patch was sent on https://lkml.org/lkml/2012/11/12/10 Resend to Haojian's correct email address. arch/arm/Kconfig |1 + 1 file

Re: [patch -mm 4/4] docs: Add documentation about /proc//fdinfo/ output

2012-11-27 Thread Cyrill Gorcunov
On Tue, Nov 27, 2012 at 02:47:54PM -0800, Andrew Morton wrote: > On Fri, 23 Nov 2012 01:15:26 +0400 > Cyrill Gorcunov wrote: > > > Documentation/filesystems/proc.txt | 81 > > + > > Looks good to me. Here's a small tune-up: Thanks a lot, Andrew!

[PATCH RESEND] pinctrl: Drop selecting PINCONF for MMP2, PXA168 and PXA910

2012-11-27 Thread Axel Lin
These drivers do not need to select PINCONF. Signed-off-by: Axel Lin --- This patch was sent on https://lkml.org/lkml/2012/11/12/12. Resend to Haojian's correct email address. drivers/pinctrl/Kconfig |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/pinctrl/Kconfig

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-27 Thread Tang Chen
Hi Bob, Liu Jiang, About CMA, could you give me more info ? Thanks for your patent and nice advice. :) 1) I saw the following on http://lwn.net/Articles/447405/: The "CMA" type is sticky; pages which are marked as being for CMA should never have their migration type changed by the kernel. As

[patch] workqueue: exit rescuer_thread() as TASK_RUNNING

2012-11-27 Thread Mike Galbraith
A rescue thread exiting TASK_INTERRUPTIBLE can lead to a task scheduling off, never to be seen again. In the case where this occurred, an exiting thread hit reiserfs homebrew conditional resched while holding a mutex, bringing the box to it's knees. PID: 18105 TASK: 8807fd412180 CPU: 5

linux-next: manual merge of the clk tree with the arm-soc tree

2012-11-27 Thread Stephen Rothwell
Hi Mike, Today's linux-next merge of the clk tree got a conflict in arch/arm/mach-ux500/cpu-db8500.c between commit e13316d60658 ("ARM: ux500: Rename dbx500 cpufreq code to be more generic") from the arm-soc tree and commit 50545e1d237b ("ARM: ux500: Remove cpufreq platform device") from the clk

Re: [PATCH] ARM: EXYNOS: Avoid early use of of_machine_is_compatible()

2012-11-27 Thread Olof Johansson
On Wed, Nov 28, 2012 at 02:23:09PM +0900, Kukjin Kim wrote: > Olof Johansson wrote: > > > > On Tue, Nov 27, 2012 at 2:27 PM, Kukjin Kim wrote: > > > On 11/28/12 07:11, Olof Johansson wrote: > > >> > > >> On Tue, Nov 27, 2012 at 11:53 AM, Doug Anderson > > >> wrote: > > >>> > > >>> The recent

Re: BUG: scheduling while atomic: ifup-bonding/3711/0x00000002 -- V3.6.7

2012-11-27 Thread Cong Wang
Cc netdev... On Wed, Nov 28, 2012 at 4:37 AM, Linda Walsh wrote: > > > Is this a known problem / bug, or should I file a bug on it? It doesn't > cause a complete failure, and it happens multiple times (~28 times > in 2.5 days?... so maybe 10x/day?) about 8 start with ifup, and the rest > start

[PATCH 1/2] Input: RMI4 - rework F11 sysfs and debugfs attributes

2012-11-27 Thread Dmitry Torokhov
Avoid rolling our own debugfs operations and use the standar ones instead. Also switch to using attribute groups to create sysfs attributes. The max_x and max_y can be retrieced via EVIOGABS and so attributes moved over to debugfs. Signed-off-by: Dmitry Torokhov ---

[PATCH 2/2] Input: RMI4 - F11 - remove relreport attribute

2012-11-27 Thread Dmitry Torokhov
This data item does not seem to be used anywhere. Signed-off-by: Dmitry Torokhov --- drivers/input/rmi4/rmi_f11.c | 37 - include/linux/rmi.h | 1 - 2 files changed, 38 deletions(-) diff --git a/drivers/input/rmi4/rmi_f11.c

Re: [PATCH] KVM: MMU: lazily drop large spte

2012-11-27 Thread Xiao Guangrong
On 11/18/2012 11:00 AM, Marcelo Tosatti wrote: map gfn 4? See corrected step 7 above. >> >> Ah, this is a real bug, and unfortunately, it exists in current >> code. I will make a separate patchset to fix it. Thank you, Marcelo! > > Is it? Hum.. > > Anyway, it would be great if you can write a

RE: [PATCH] ARM: EXYNOS: Avoid early use of of_machine_is_compatible()

2012-11-27 Thread Kukjin Kim
Olof Johansson wrote: > > On Tue, Nov 27, 2012 at 2:27 PM, Kukjin Kim wrote: > > On 11/28/12 07:11, Olof Johansson wrote: > >> > >> On Tue, Nov 27, 2012 at 11:53 AM, Doug Anderson > >> wrote: > >>> > >>> The recent commit "ARM: EXYNOS: add support for EXYNOS5440 SoC" broke > >>> support for

Re: Lockdep complain for zram

2012-11-27 Thread Minchan Kim
On Fri, Nov 23, 2012 at 03:46:31PM +0100, Jerome Marchand wrote: > On 11/23/2012 12:34 AM, Minchan Kim wrote: > > On Thu, Nov 22, 2012 at 12:13:24PM +0100, Jerome Marchand wrote: > >> On 11/21/2012 09:37 AM, Minchan Kim wrote: > >>> Hi alls, > >>> > >>> Today, I saw below complain of lockdep. >

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-27 Thread Jiang Liu
On 2012-11-28 13:21, Wen Congyang wrote: > At 11/28/2012 12:01 PM, Jiang Liu Wrote: >> On 2012-11-28 11:47, Tang Chen wrote: >>> On 11/27/2012 11:10 AM, wujianguo wrote: Hi Tang, DMA address can't be set as movable, if some one boot kernel with movablecore_map=4G@0xa0

Re: [PATCH V3 RFC 2/2] kvm: Handle yield_to failure return code for potential undercommit case

2012-11-27 Thread Raghavendra K T
On 11/28/2012 06:42 AM, Marcelo Tosatti wrote: Don't understand the reasoning behind why 3 is a good choice. Here is where I came from. (explaining from scratch for completeness, forgive me :)) In moderate overcommits, we can falsely exit from ple handler even when we have preempted task of

Re: [PATCH] zram: Prevent use of unmapped buffer

2012-11-27 Thread Minchan Kim
Hi Nitin, On Mon, Nov 26, 2012 at 11:26:07PM -0800, Nitin Gupta wrote: > The commit c8f2f0db1 ("zram: Fix handling of incompressible pages") > introduced a bug which caused a kunmap()'ed buffer to be used in case I got confused by the descripton. :( The descripton is not right. The problem is to

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-27 Thread Wen Congyang
At 11/28/2012 12:01 PM, Jiang Liu Wrote: > On 2012-11-28 11:47, Tang Chen wrote: >> On 11/27/2012 11:10 AM, wujianguo wrote: >>> >>> Hi Tang, >>> DMA address can't be set as movable, if some one boot kernel with >>> movablecore_map=4G@0xa0 or other memory region that contains DMA >>>

linux-next: manual merge of the staging tree with the tty tree

2012-11-27 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in drivers/staging/dgrp/dgrp_tty.c between commit 3ba89e96610b ("staging: dgrp: dgrp_tty.c: Remove the TIOCSSOFTCAR ioctl handler from dgrp driver") from the tty tree and commit 8fdefcb0ab74 ("staging: dgrp: remove TIOCGSOFTCAR

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-27 Thread Jianguo Wu
On 2012/11/28 11:47, Tang Chen wrote: > On 11/27/2012 11:10 AM, wujianguo wrote: >> >> Hi Tang, >> DMA address can't be set as movable, if some one boot kernel with >> movablecore_map=4G@0xa0 or other memory region that contains DMA address, >> system maybe boot failed. Should this case

[PATCH 1/2] percpu-rwsem: use synchronize_sched_expedited

2012-11-27 Thread Mikulas Patocka
On Tue, 27 Nov 2012, Jeff Chua wrote: > On Tue, Nov 27, 2012 at 3:38 PM, Jens Axboe wrote: > > On 2012-11-27 06:57, Jeff Chua wrote: > >> On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua > >> wrote: > >>> On Sun, Nov 25, 2012 at 5:09 AM, Mikulas Patocka > >>> wrote: > So it's better to slow

Re: [PATCH v6 2/6] PM / Runtime: introduce pm_runtime_set_memalloc_noio()

2012-11-27 Thread Ming Lei
On Wed, Nov 28, 2012 at 5:19 AM, Rafael J. Wysocki wrote: > > Please use counters instead of walking the whole path every time. Ie. in > addition to the flag add a counter to store the number of the device's > children having that flag set. Even though counter is added, walking the whole path

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

2012-11-27 Thread Benjamin Herrenschmidt
On Wed, 2012-11-28 at 14:03 +1100, Stephen Rothwell wrote: > Hi all, > > After merging the powerpc tree, next-20121115's build (powerpc > allmodconfig) failed like this: > > ERROR: ".of_reconfig_notifier_register" [drivers/crypto/nx/nx-compress.ko] > undefined! > ERROR:

Re: [PATCH 2/2] zram: allocate metadata when disksize is set up

2012-11-27 Thread Minchan Kim
On Tue, Nov 27, 2012 at 04:45:54PM +0100, Jerome Marchand wrote: > On 11/27/2012 06:13 AM, Nitin Gupta wrote: > > On 11/22/2012 06:42 PM, Minchan Kim wrote: > >> Lockdep complains about recursive deadlock of zram->init_lock. > >> Because zram_init_device could be called in reclaim context and > >>

Re: [PATCH 1/3] i2c: exynos5: add High Speed I2C controller driver

2012-11-27 Thread Naveen Krishna Ch
Hello Felipe, Thomas, Thanks for your time and valuable comments, I will post the next version with you comments addressed. On 27 November 2012 19:04, Thomas Abraham wrote: > > On 27 November 2012 18:30, Naveen Krishna Chatradhi > wrote: > > Adds support for High Speed I2C driver found in

Re: [PATCH 2/2] zram: allocate metadata when disksize is set up

2012-11-27 Thread Minchan Kim
On Mon, Nov 26, 2012 at 09:13:24PM -0800, Nitin Gupta wrote: > On 11/22/2012 06:42 PM, Minchan Kim wrote: > >Lockdep complains about recursive deadlock of zram->init_lock. > >Because zram_init_device could be called in reclaim context and > >it requires a page with GFP_KERNEL. > > > >We can fix it

Re: [PATCH 1/2] zram: force disksize setting before using zram

2012-11-27 Thread Minchan Kim
On Mon, Nov 26, 2012 at 09:04:47PM -0800, Nitin Gupta wrote: > On 11/22/2012 06:42 PM, Minchan Kim wrote: > >Now zram document syas "set disksize is optional" > >but partly it's wrong. When you try to use zram firstly after > >booting, you must set disksize, otherwise zram can't work because >

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-27 Thread Jiang Liu
On 2012-11-28 11:24, Bob Liu wrote: > On Tue, Nov 27, 2012 at 8:49 PM, Tang Chen wrote: >> On 11/27/2012 08:09 PM, Bob Liu wrote: >>> >>> On Tue, Nov 27, 2012 at 4:29 PM, Tang Chen >>> wrote: Hi Liu, This feature is used in memory hotplug. In order to implement

[PATCH 2/2] block_dev: don't take the write lock if block size doesn't change

2012-11-27 Thread Mikulas Patocka
block_dev: don't take the write lock if block size doesn't change Taking the write lock has a big performance impact on the whole system (because of synchronize_sched_expedited). This patch avoids taking the write lock if the block size doesn't change (i.e. when mounting filesystem with block

[PATCH] target: Make spc_get_write_same_sectors return sector_t

2012-11-27 Thread Nicholas A. Bellinger
From: Nicholas Bellinger We already expect TFO->get_blocks() to return sector_t for zero value case when doing WRITE_SAME to the end of the backend device, so go ahead and return sector_t from spc_get_write_same_sectors() to handle this case properly. Also, update the single

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-27 Thread Jiang Liu
On 2012-11-28 11:47, Tang Chen wrote: > On 11/27/2012 11:10 AM, wujianguo wrote: >> >> Hi Tang, >> DMA address can't be set as movable, if some one boot kernel with >> movablecore_map=4G@0xa0 or other memory region that contains DMA address, >> system maybe boot failed. Should this case be

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

2012-11-27 Thread Stephen Rothwell
ned! Caused by commit 206c30cfeb7c ("PM / devfreq: Add suspend and resume apis"). I have used the pm tree from next-20121127 for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgp5TjT00uQya.pgp Description: PGP signature

Re: Recent kernel "mount" slow

2012-11-27 Thread Mikulas Patocka
On Tue, 27 Nov 2012, Jens Axboe wrote: > On 2012-11-27 11:06, Jeff Chua wrote: > > On Tue, Nov 27, 2012 at 3:38 PM, Jens Axboe wrote: > >> On 2012-11-27 06:57, Jeff Chua wrote: > >>> On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua > >>> wrote: > On Sun, Nov 25, 2012 at 5:09 AM, Mikulas

Re: [PATCH v6 2/6] PM / Runtime: introduce pm_runtime_set_memalloc_noio()

2012-11-27 Thread Ming Lei
On Wed, Nov 28, 2012 at 5:19 AM, Rafael J. Wysocki wrote: > On Saturday, November 24, 2012 08:59:14 PM Ming Lei wrote: >> The patch introduces the flag of memalloc_noio in 'struct dev_pm_info' >> to help PM core to teach mm not allocating memory with GFP_KERNEL >> flag for avoiding probable

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-27 Thread Tang Chen
On 11/27/2012 11:10 AM, wujianguo wrote: Hi Tang, DMA address can't be set as movable, if some one boot kernel with movablecore_map=4G@0xa0 or other memory region that contains DMA address, system maybe boot failed. Should this case be handled or mentioned in the change log and

Re: [PATCH]sched/rt.c: Add reschedule to switched_from_rt()

2012-11-27 Thread Steven Rostedt
On Fri, 2012-11-23 at 00:02 +0400, Kirill Tkhai wrote: > Reschedule rq->curr if the first RT task has just been > pulled to the rq. > > Signed-off-by: Kirill V Tkhai > CC: Steven Rostedt > CC: Ingo Molnar > CC: Peter Zijlstra > --- > kernel/sched/rt.c |7 +-- > 1 file changed, 5

switcheroo registration vs switching race...

2012-11-27 Thread Daniel J Blueman
Hi Seth, Dave, Takashi, If I power down the unused discrete GPU before lightdm starts by fiddling with the sysfs file [1] in the upstart script, I see a race manifesting as the discrete GPU's HDA controller timing out to commands [2]. Adding some debug, I see that the registered audio devices

Re: How about a gpio_get(device *, char *) function?

2012-11-27 Thread Alex Courbot
On Monday 26 November 2012 19:14:31 Grant Likely wrote: > I don't have any problem with a gpio_get function, but I do agree that > making it return an opaque handle is how it should be written with a new > set of accessors. The handle should probably be simply the pointer to > the _desc[number]

Re: [PATCH 3/3] KVM: x86: improve reexecute_instruction

2012-11-27 Thread Xiao Guangrong
On 11/28/2012 07:42 AM, Marcelo Tosatti wrote: > On Tue, Nov 27, 2012 at 11:30:24AM +0800, Xiao Guangrong wrote: >> On 11/27/2012 06:41 AM, Marcelo Tosatti wrote: >> - return false; +again: + page_fault_count = ACCESS_ONCE(vcpu->kvm->arch.page_fault_count); + + /*

Re: linux-next: manual merge of the arm-soc tree with the slave-dma tree

2012-11-27 Thread Stephen Rothwell
Hi, On Tue, 27 Nov 2012 11:08:36 +0530 Viresh Kumar wrote: > > On 27 November 2012 10:14, Stephen Rothwell wrote: > > Today's linux-next merge of the arm-soc tree got a conflict in > > arch/arm/mach-spear13xx/spear1310.c between commit b47394911c26 ("ARM: > > SPEAr13xx: Pass DW DMAC platform

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-27 Thread Bob Liu
On Tue, Nov 27, 2012 at 8:49 PM, Tang Chen wrote: > On 11/27/2012 08:09 PM, Bob Liu wrote: >> >> On Tue, Nov 27, 2012 at 4:29 PM, Tang Chen >> wrote: >>> >>> Hi Liu, >>> >>> >>> This feature is used in memory hotplug. >>> >>> In order to implement a whole node hotplug, we need to make sure the

Re: 3.7-rc7: BUG: MAX_STACK_TRACE_ENTRIES too low!

2012-11-27 Thread Christian Kujau
On Tue, 27 Nov 2012 at 19:06, Christian Kujau wrote: > the same thing[0] happened again in 3.7-rc7, after ~20h uptime: I found the following on patchwork, but this seems to deal with powerpc64 only, while this PowerBook G4 of mine is powerpc32: http://patchwork.ozlabs.org/patch/193414/ It

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

2012-11-27 Thread Stephen Rothwell
Hi Samuel, Today's linux-next merge of the mfd tree got a conflict in drivers/mfd/twl-core.c between commit 78a3c5ab1749 ("mfd: twl-core: Fix chip ID for the twl6030-pwm module") from Linus' tree and commit afc45898f62c ("mfd: twl-core: Support for proper PWM drivers") from the mfd tree. I fixed

Re: [PATCH 17/19] drivers: convert shrinkers to new count/scan API

2012-11-27 Thread Dave Chinner
On Wed, Nov 28, 2012 at 01:13:11AM +, Chris Wilson wrote: > On Wed, 28 Nov 2012 10:14:44 +1100, Dave Chinner wrote: > > +/* > > + * XXX: (dchinner) This is one of the worst cases of shrinker abuse I've > > seen. > > + * > > + * i915_gem_purge() expects a byte count to be passed, and the

Re: [RFC] [PATCH] fix infinite loop; increase robustness of debugfs_remove_recursive

2012-11-27 Thread Steven Rostedt
On Fri, 2012-11-23 at 18:15 +0100, Lars Ellenberg wrote: > When toying around with debugfs, intentionally trying to break things, > I managed to get it into a reproducible endless loop when cleaning up. > > debugfs_remove_recursive() completely ignores that entries found > on ->d_subdirs may

Re: [PATCH 2/3] KVM: x86: let reexecute_instruction work for tdp

2012-11-27 Thread Xiao Guangrong
On 11/28/2012 07:32 AM, Marcelo Tosatti wrote: > On Tue, Nov 27, 2012 at 11:13:11AM +0800, Xiao Guangrong wrote: +static bool reexecute_instruction(struct kvm_vcpu *vcpu, unsigned long cr2) { - gpa_t gpa; + gpa_t gpa = cr2; pfn_t pfn; - if

Re: [PATCH v6 5/6] PM / Runtime: force memory allocation with no I/O during Runtime PM callbcack

2012-11-27 Thread Ming Lei
On Wed, Nov 28, 2012 at 5:24 AM, Rafael J. Wysocki wrote: > > Please don't duplicate code this way. > > You can move that whole thing to rpm_callback(). Yes, you'll probably need to > check dev->power.memalloc_noio twice in there, but that's OK. Good idea, I will update it in v7. Thanks, --

3.7-rc7: BUG: MAX_STACK_TRACE_ENTRIES too low!

2012-11-27 Thread Christian Kujau
Hi, the same thing[0] happened again in 3.7-rc7, after ~20h uptime: [40007.339487] [sched_delayed] sched: RT throttling activated [69731.388717] BUG: MAX_STACK_TRACE_ENTRIES too low! [69731.390371] turning off the locking correctness validator. [69731.391942] Call Trace: [69731.393525]

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

2012-11-27 Thread Stephen Rothwell
Hi all, After merging the powerpc tree, next-20121115's build (powerpc allmodconfig) failed like this: ERROR: ".of_reconfig_notifier_register" [drivers/crypto/nx/nx-compress.ko] undefined! ERROR: ".of_reconfig_notifier_unregister" [drivers/crypto/nx/nx-compress.ko] undefined! Caused by commit

A question about proc file system

2012-11-27 Thread Yangbin (Robin)
Hi all: I write a kernel module which make a dir and create a file in proc file system. I use proc_mkdir() and create_proc_entry() in init and use remove_proc_entry() in exit. Now I got a problem during my test: 1. open terminal A, insmod and cd into the dir the module created in proc

Re: [PATCH v4] drivers: staging: remove last usage of NIPQUAD and NIP6 in gdm72xx

2012-11-27 Thread Shan Wei
Greg KH said, at 2012/11/28 1:19: > On Tue, Nov 27, 2012 at 10:37:46AM +0800, Shan Wei wrote: >> From: Shan Wei >> >> commit cf4ca4874fc45 removed the definition of NIPQUAD and NIPQUAD_FMT, >> and NIP6 also is out of date. >> >> Because DEBUG_SDU is not defined in gdm_wimax.h, no error message

Re: [RFC PATCH 05/06] input/rmi4: F01 - device control

2012-11-27 Thread Christopher Heiny
On 11/27/2012 01:29 AM, Dmitry Torokhov wrote: On Mon, Nov 26, 2012 at 02:31:27PM -0800, Christopher Heiny wrote: >On 11/26/2012 01:40 AM, Dmitry Torokhov wrote: > >Hi Christopher, > > > >On Fri, Nov 16, 2012 at 07:58:53PM -0800, Christopher Heiny wrote: > >>RMI Function 01 implements basic

[ANNOUNCE] 3.0.53-rt77

2012-11-27 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.0.53-rt77 stable release. This release is just an update to the new stable 3.0.53 version and no RT specific changes have been made. You can get this release via the git tree at:

[ANNOUNCE] 3.4.20-rt31

2012-11-27 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.4.20-rt31 stable release. This release is just an update to the new stable 3.4.20 version and no RT specific changes have been made. You can get this release via the git tree at:

[PATCH RFT RESEND] regulator: pcf50633: Use linear_min_sel and regulator_[map|list]_voltage_linear

2012-11-27 Thread Axel Lin
This driver can be converted to use linear_min_sel and regulator_[map|list]_voltage_linear. Below shows the equation (from Datasheet) for each LDOs. For AUTOOUT: VO(prog) = 0.625 + auto_out x 0.025 V; e.g. ( to 00101110: reserved) 0010: 1.8 V (min)

[PATCH -next 3/3] staging/fwserial: Remove superfluous free

2012-11-27 Thread Peter Hurley
Now that the dma fifo is allocated on activate and freed on shutdown, this extra free is harmless but unnecessary. Signed-off-by: Peter Hurley --- drivers/staging/fwserial/fwserial.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/fwserial/fwserial.c

[PATCH -next 2/3] staging/fwserial: Use WARN_ONCE when port table is corrupted

2012-11-27 Thread Peter Hurley
Signed-off-by: Peter Hurley --- drivers/staging/fwserial/fwserial.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c index 99a2d2d..0681967 100644 --- a/drivers/staging/fwserial/fwserial.c

[PATCH -next 1/3] staging/fwserial: Destruct embedded tty_port on teardown

2012-11-27 Thread Peter Hurley
For TTY drivers that manage the port lifetime, the tty_port should to be specifically destructed when the port lifetime ends. Now that a method has been added to do this, use it. Signed-off-by: Peter Hurley Cc: Jiri Slaby Cc: Alan Cox --- drivers/staging/fwserial/fwserial.c | 5 - 1 file

[PATCH -next 0/3] staging/fwserial: teardown cleanup

2012-11-27 Thread Peter Hurley
Hi Greg, This patch series fixes up staging/fwserial to meet the new requirements in Jiri Slaby's series "TTY: memory leaks patchset" (in tty-next). Strictly speaking, only PATCH 1/3 implements the necessary cleanup. PATCHES 2/3 & 3/3 are additional cleanups in the same area. Peter Hurley (3):

[PATCH 2/3] zram: give up lazy initialization of zram metadata

2012-11-27 Thread Minchan Kim
1) User of zram normally do mkfs.xxx or mkswap before using the zram block device(ex, normally, do it at booting time) It ends up allocating such metadata of zram before real usage so benefit of lazy initialzation would be mitigated. 2) Some user want to use zram when memory pressure is

[PATCH 3/3] zram: get rid of lockdep warning

2012-11-27 Thread Minchan Kim
Lockdep complains about recursive deadlock of zram->init_lock. [1] made it false positive because we can't request IO to zram before setting disksize. Anyway, we should shut lockdep up to avoid many reporting from user. This patch allocates zram's metadata out of lock so we can fix it. In

[PATCH 1/3] zram: force disksize setting before using zram

2012-11-27 Thread Minchan Kim
Now zram document syas "set disksize is optional" but partly it's wrong. When you try to use zram firstly after booting, you must set disksize, otherwise zram can't work because zram gendisk's size is 0. But once you do it, you can use zram freely after reset because reset doesn't reset to zero

[PATCH V2] watchdog: optimizing the hrtimer interval for power saving

2012-11-27 Thread Chuansheng Liu
By default, the watchdog threshold is 10, it means every 4s every CPU will receive one hrtimer interrupt, for low power device, it will cause 4-5mV power impact when device is deep sleep. So here want to optimize it as below: 4s + 4s + 4s + 4s + 4s == > 1s + 9s + 9s ... Or 1s + 1s..+ 9s + 9s

Re: [PATCH 6/6 v6] cpufreq, highbank: add support for highbank cpufreq

2012-11-27 Thread Shawn Guo
On Tue, Nov 27, 2012 at 02:04:32PM -0600, Mark Langsdorf wrote: > Highbank processors depend on the external ECME to perform voltage > management based on a requested frequency. Communication between the > A9 cores and the ECME happens over the pl320 IPC channel. ... > +static int

[PATCH RFT] regulator: pcf50633: Use linear_min_sel and regulator_[map|list]_voltage_linear

2012-11-27 Thread Axel Lin
This driver can be converted to use linear_min_sel and regulator_[map|list]_voltage_linear. Below shows the equations from datasheet: For AUTOOUT: VO(prog) = 0.625 + auto_out × 0.025 V; e.g. ( to 00101110: reserved) 0010: 1.8 V (min) 01010011: 2.7 V

Re: [PATCH V3 3/3] mfd: stmpe: Update DT support in stmpe driver

2012-11-27 Thread Viresh Kumar
On 28 November 2012 01:25, Rabin Vincent wrote: > 2012/11/27 Viresh Kumar : >> On 27 November 2012 14:10, Lee Jones wrote: >> I haven't seen this in any of SPEAr boards i have worked on. Maybe Rabin >> would have, that's why he added that part of code :) >> >> @Rabin/Linus: Do you remember why

Re: [PATCH 6/7] mfd: max8925: support dt for backlight

2012-11-27 Thread Qing Xu
On 11/23/2012 05:08 PM, Haojian Zhuang wrote: On Tue, Nov 6, 2012 at 3:47 PM, Qing Xu wrote: From: Qing Xu Signed-off-by: Qing Xu --- drivers/video/backlight/max8925_bl.c | 31 ++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git

[PATCH v3 7/7] mfd: max8925: add dts

2012-11-27 Thread Qing Xu
From: Qing Xu add max8925 dts support into mmp2 brownstone platform Signed-off-by: Qing Xu --- arch/arm/boot/dts/mmp2-brownstone.dts | 158 + arch/arm/boot/dts/mmp2.dtsi |4 +- 2 files changed, 161 insertions(+), 1 deletions(-) diff --git

[PATCH v2 6/7] mfd: max8925: support dt for backlight

2012-11-27 Thread Qing Xu
From: Qing Xu Signed-off-by: Qing Xu --- drivers/video/backlight/max8925_bl.c | 31 ++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/drivers/video/backlight/max8925_bl.c b/drivers/video/backlight/max8925_bl.c index f72ba54..1682d00 100644 ---

Re: [PATCH] context_tracking: New context tracking susbsystem

2012-11-27 Thread Paul E. McKenney
On Tue, Nov 27, 2012 at 08:50:38PM -0500, Steven Rostedt wrote: > On Tue, 2012-11-27 at 16:59 -0800, Paul E. McKenney wrote: > > On Tue, Nov 27, 2012 at 07:33:25PM +0100, Frederic Weisbecker wrote: > > > Create a new subsystem that probes on kernel boundaries > > > to keep track of the transitions

Re: [PATCH] context_tracking: New context tracking susbsystem

2012-11-27 Thread Steven Rostedt
On Tue, 2012-11-27 at 16:59 -0800, Paul E. McKenney wrote: > On Tue, Nov 27, 2012 at 07:33:25PM +0100, Frederic Weisbecker wrote: > > Create a new subsystem that probes on kernel boundaries > > to keep track of the transitions between level contexts > > with two basic initial contexts: user or

Re: [PATCH] mm: fix balloon_page_movable() page->flags check

2012-11-27 Thread Rafael Aquini
On Tue, Nov 27, 2012 at 05:15:44PM -0800, Andrew Morton wrote: > On Tue, 27 Nov 2012 22:34:10 -0200 Rafael Aquini wrote: > > > Do you want me to resubmit this patch with the changes you suggested? > > oh, I think I can reach that far. How's this look? > It looks great to me. Just a small

[PATCH] module: Remove a extra null character at the top of module->strtab.

2012-11-27 Thread sat
From: Satoru Takeuchi There is a extra null character('\0') at the top of module->strtab for each module. Commit 59ef28b introduced this bug and this patch fixes it. Live dump log of the current linus git kernel(HEAD is 2844a4870):

Re: 3.6.8: dmar: DRHD: handling fault status reg 602

2012-11-27 Thread Robert Hancock
On 11/27/2012 09:16 AM, Justin Piszcz wrote: Hello, Any idea why this is happening (e.g. why is PTE Read Access not set?) [ 13.204560] dmar: DRHD: handling fault status reg 602 [ 13.208078] dmar: DMAR:[DMA Read] Request device [04:00.0] fault addr 0 [ 13.208078] DMAR:[fault reason 06]

Re: [PATCH V3 RFC 2/2] kvm: Handle yield_to failure return code for potential undercommit case

2012-11-27 Thread Marcelo Tosatti
Don't understand the reasoning behind why 3 is a good choice. On Mon, Nov 26, 2012 at 05:38:04PM +0530, Raghavendra K T wrote: > From: Raghavendra K T > > yield_to returns -ESRCH, When source and target of yield_to > run queue length is one. When we see three successive failures of > yield_to

Re: [PATCH] mm: fix balloon_page_movable() page->flags check

2012-11-27 Thread Andrew Morton
On Tue, 27 Nov 2012 22:34:10 -0200 Rafael Aquini wrote: > Do you want me to resubmit this patch with the changes you suggested? oh, I think I can reach that far. How's this look? From: Andrew Morton Subject:

  1   2   3   4   5   6   7   8   9   10   >