[PATCH] Input: gpio_keys - Report wakeup events if device may wakeup

2012-07-26 Thread Benson Leung
If a button is configured to wake the system, report a pm wakeup event. Signed-off-by: Benson Leung ble...@chromium.org --- drivers/input/keyboard/gpio_keys.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/input/keyboard/gpio_keys.c

Re: [PATCH] dw_dmac: use devm_* functions to simplify code

2012-07-26 Thread Vinod Koul
On Tue, 2012-07-24 at 11:00 +0300, Andy Shevchenko wrote: Use devm_kzalloc, devm_clk_get, devm_request_irq, and devm_request_and_ioremap to reduce the code and to simplify the error path. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Cc: Viresh Kumar viresh.li...@gmail.com

[PATCH] media: rc: Add support to decode Remotes using NECx IR protocol

2012-07-26 Thread Ravi Kumar V
Some remotes use NECx IR protocol to send remote control key events. Present nec decoder in rc framework is assuming to have 2 stop bits (pulse width of 560us space width 5600us) in NECx, but in reality NECx sends only pulse of 560us and space untill next frame.So here we can ignore the space

[PATCH] rtc: tps65910: Add RTC driver for TPS65910 PMIC RTC

2012-07-26 Thread Venu Byravarasu
TPS65910 PMIC is a MFD with RTC as one of the device. Adding RTC driver for supporting RTC device present inside TPS65910 PMIC. Only support for RTC alarm is implemented as part of this patch. Signed-off-by: Venu Byravarasu vbyravar...@nvidia.com --- drivers/rtc/Kconfig | 10 ++

Re: [PATCH 9/9 v3] dma: shdma: convert to the shdma base library

2012-07-26 Thread Vinod Koul
On Wed, 2012-07-25 at 12:59 +0900, Paul Mundt wrote: On Wed, May 09, 2012 at 05:09:21PM +0200, Guennadi Liakhovetski wrote: The shdma base library has originally been extracted from the shdma driver, which now can be converted to actually use it. Signed-off-by: Guennadi Liakhovetski

[PATCH 1/3] scripts/kernel-doc: added support for html5

2012-07-26 Thread Dan Luedtke
New output option html5 writes validating HTML5 and adds CSS classes ready to be selected by third-party stylesheets. Signed-off-by: Dan Luedtke m...@danrl.de --- scripts/kernel-doc | 255 ++-- 1 file changed, 249 insertions(+), 6 deletions(-)

[PATCH 2/3] scripts/kernel-doc: modern html - html version 5

2012-07-26 Thread Dan Luedtke
Fixed non-timeless comment. Signed-off-by: Dan Luedtke m...@danrl.de --- scripts/kernel-doc |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kernel-doc b/scripts/kernel-doc index f85b278..1d3c779 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -189,7

[PATCH 3/3] scripts/kernel-doc: added ids to articles for reference

2012-07-26 Thread Dan Luedtke
An id has been added to block-level elements article. This allows jumping to a particular article via url. E.g. doc.html#func:foo would sroll down to the documentation of function foo. Signed-off-by: Dan Luedtke m...@danrl.de --- scripts/kernel-doc | 30 +++--- 1 file

Re: [PATCH] scripts/kernel-doc: added support for html5

2012-07-26 Thread Dan Luedtke
On Wed, 2012-07-25 at 11:14 -0700, Randy Dunlap wrote: Just say html5 or html version 5. A few years from now it won't be modern. Haven't thought of that. Will be changed, thanks! Have you tested typedef, enum, DOC:, etc.? Yes, here are a few examples: DOC:

Re: [GIT PULL] x86/build change for v3.6

2012-07-26 Thread Ingo Molnar
* Sam Ravnborg s...@ravnborg.org wrote: No, the reason for the odd looking diff is that lots of lines in arch/x86/Makefile have 8-space tabs for histerical reasons but new code (such as this one) has proper tabs. Use of tabs for indent in a Makefile is just asking for trouble.

Re: [PATCH 9/9 v3] dma: shdma: convert to the shdma base library

2012-07-26 Thread Paul Mundt
On Thu, Jul 26, 2012 at 12:19:21PM +0530, Vinod Koul wrote: On Wed, 2012-07-25 at 12:59 +0900, Paul Mundt wrote: On Wed, May 09, 2012 at 05:09:21PM +0200, Guennadi Liakhovetski wrote: The shdma base library has originally been extracted from the shdma driver, which now can be

Re: [PATCH] x86: simplify mtrr_bp_init()

2012-07-26 Thread Jan Beulich
On 25.07.12 at 18:57, H. Peter Anvin h...@zytor.com wrote: On 07/25/2012 12:59 AM, Jan Beulich wrote: should drop all phys_addr assignment in this function. x86_phys_bits should have all correct value? Is it certain that all special cases (setting phys_addr to 32) are covered by those

Re: linux-next: manual merge of the akpm tree with the tip tree

2012-07-26 Thread Stephen Rothwell
Hi all, On Wed, 25 Jul 2012 09:35:03 +0200 Johannes Weiner han...@cmpxchg.org wrote: On Wed, Jul 25, 2012 at 09:10:44AM +0200, Ingo Molnar wrote: * Stephen Rothwell s...@canb.auug.org.au wrote: Today's linux-next merge of the akpm tree got a conflict in mm/migrate.c between the

[GIT PULL] PWM subsystem for v3.6

2012-07-26 Thread Thierry Reding
Hi Linus, The new PWM subsystem aims at collecting all implementations of the legacy PWM API and to eventually replace it completely. The subsystem has been in development for over half a year now and many drivers have already been converted. It has been in linux-next for a couple of weeks and

Re: [PATCH v2 1/2] pwm: pwm-tiecap: PWM driver support for ECAP APWM

2012-07-26 Thread Thierry Reding
On Wed, Jul 25, 2012 at 04:58:18PM +0530, Philip, Avinash wrote: ECAP hardware on AM33XX SOC supports auxiliary PWM (APWM) feature. This commit adds PWM driver support for ECAP hardware on AM33XX SOC. In the ECAP hardware, each PWM pin can also be configured to be in capture mode. Current

Re: [PATCH v2 2/2] pwm: pwm-tiehrpwm: PWM driver support for EHRPWM

2012-07-26 Thread Thierry Reding
On Wed, Jul 25, 2012 at 04:58:19PM +0530, Philip, Avinash wrote: Enhanced high resolution PWM module (EHRPWM) hardware can be used to generate PWM output over 2 channels. This commit adds PWM driver support for EHRPWM device present on AM33XX SOC. Current implementation supports simple PWM

Re: virtio(-scsi) vs. chained sg_lists (was Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list)

2012-07-26 Thread Paolo Bonzini
Il 25/07/2012 23:04, Boaz Harrosh ha scritto: That not all architectures have ARCH_HAS_SG_CHAIN (though all those I care about do). So I need to go through all architectures and make sure they use for_each_sg, or at least to change ARCH_HAS_SG_CHAIN to a Kconfig define so that dependencies

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-26 Thread Shilimkar, Santosh
On Wed, Jul 25, 2012 at 11:20 PM, Colin Cross ccr...@android.com wrote: The cpu hotplug notifier gets called in both atomic and non-atomic contexts, it is not always safe to lock a mutex. Filter out all events except the six necessary ones, which are all sleepable, before taking the mutex.

Re: [PATCH v2 0/2] ata: MODE SELECT implementation

2012-07-26 Thread Paolo Bonzini
Il 05/07/2012 11:40, Paolo Bonzini ha scritto: This is a revised version of the MODE SELECT implementation from yesterday, augmented with support for changeable parameter requests in MODE SENSE. Paolo Bonzini (2): ata: support MODE SENSE request for changeable parameters ata: implement

Re: [git patches] libata updates

2012-07-26 Thread Ingo Molnar
* Linus Torvalds torva...@linux-foundation.org wrote: I couldn't find an example of that in a quick look, it's fairly uncommon to have non-conflicting merges that had semantic - but not contextual - conflicts. [...] This: git log --grep='Semantic merge\|Semantic conflict' gives over a

Re: linux-next: manual merge of the akpm tree with the tip tree

2012-07-26 Thread Ingo Molnar
* Andrew Morton a...@linux-foundation.org wrote: On Wed, 25 Jul 2012 21:03:51 +0200 Ingo Molnar mi...@kernel.org wrote: This means that if the above code reappears in linux-next or mainline, the current copy of mm-memcg-fix-compaction-migration-failing-due-to-memcg-limits.patch

Re: [PATCH] xen/p2m: Check __brk_limit before allocating.

2012-07-26 Thread Ian Campbell
On Tue, 2012-07-24 at 16:23 -0400, Konrad Rzeszutek Wilk wrote: diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c index 64effdc..b5bb26c 100644 --- a/arch/x86/xen/p2m.c +++ b/arch/x86/xen/p2m.c @@ -498,7 +498,14 @@ static bool alloc_p2m(unsigned long pfn) return true; } -

Re: virtio(-scsi) vs. chained sg_lists (was Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list)

2012-07-26 Thread Boaz Harrosh
On 07/26/2012 10:23 AM, Paolo Bonzini wrote: In the meanwhile, we still have a bug to fix, and we need to choose between Sen Wang's v1 (sg_set_page) or v2 (value assignment). I'm still leaning more towards v2, if only because I already tested that one myself. It's your call, you know

Re: virtio(-scsi) vs. chained sg_lists (was Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list)

2012-07-26 Thread Paolo Bonzini
Il 26/07/2012 09:56, Boaz Harrosh ha scritto: In the meanwhile, we still have a bug to fix, and we need to choose between Sen Wang's v1 (sg_set_page) or v2 (value assignment). I'm still leaning more towards v2, if only because I already tested that one myself. It's your call, you know

Re: [PATCH 1/1] kthread: disable preemption during complete()

2012-07-26 Thread Peter Zijlstra
On Wed, 2012-07-25 at 15:40 -0700, Tejun Heo wrote: (cc'ing Oleg and Peter) Right, if you're playing games with preemption, always add the rt and sched folks.. added mingo and tglx. On Wed, Jul 25, 2012 at 03:35:32PM -0700, Peter Boonstoppel wrote: After a kthread is created it signals the

RE: [PATCH v2 6/6] arm/dts: am33xx rtc node

2012-07-26 Thread Mohammed, Afzal
Hi Sergei, On Wed, Jul 25, 2012 at 22:29:24, Sergei Shtylyov wrote: + rtc@44e3e000 { Address postfix in the node name without reg property? As per [1], The unit-address is included if the node describes a device with an address. Which in this case it doesn't.

Re: [PATCH 08/11] perf tool: precise mode requires exclude_guest

2012-07-26 Thread Peter Zijlstra
On Thu, 2012-07-26 at 08:50 +0300, Gleb Natapov wrote: On Wed, Jul 25, 2012 at 10:35:46PM +0200, Peter Zijlstra wrote: On Tue, 2012-07-24 at 18:15 +0200, Robert Richter wrote: David, On 24.07.12 08:20:19, David Ahern wrote: On 7/23/12 12:13 PM, Arnaldo Carvalho de Melo wrote:

Re: [PATCH 08/11] perf tool: precise mode requires exclude_guest

2012-07-26 Thread Peter Zijlstra
On Wed, 2012-07-25 at 23:16 -0600, David Ahern wrote: Peter's patch (see https://lkml.org/lkml/2012/7/9/298) changes kernel side to require the use of exclude_guest if the precise modifier is used, returning -EOPNOTSUPP if exclude_guest is not set. This patch goes after the user

Re: [PATCH 08/11] perf tool: precise mode requires exclude_guest

2012-07-26 Thread Gleb Natapov
On Thu, Jul 26, 2012 at 10:07:37AM +0200, Peter Zijlstra wrote: On Thu, 2012-07-26 at 08:50 +0300, Gleb Natapov wrote: On Wed, Jul 25, 2012 at 10:35:46PM +0200, Peter Zijlstra wrote: On Tue, 2012-07-24 at 18:15 +0200, Robert Richter wrote: David, On 24.07.12 08:20:19, David

Re: [PATCH] extcon: arizona: Implement button detection support

2012-07-26 Thread Mark Brown
On Thu, Jul 26, 2012 at 09:10:08AM +0900, Chanwoo Choi wrote: If user press BTN_0 and BTN_1 at the same time and then user only released BTN_0 but BTN_1 is still pressed, is it right that report released event to all of buttons? I think that different event between BTN_0 and BTN_1. That

Re: [RFC] page-table walkers vs memory order

2012-07-26 Thread Peter Zijlstra
On Wed, 2012-07-25 at 15:09 -0700, Hugh Dickins wrote: We find out after it hits us, and someone studies the disassembly - if we're lucky enough to crash near the origin of the problem. This is a rather painful way.. see https://lkml.org/lkml/2009/1/5/555 we were lucky there in that the

Re: [PATCH 2/2] sched: fix a logical error in select_task_rq_fair

2012-07-26 Thread Peter Zijlstra
On Thu, 2012-07-26 at 13:27 +0800, Alex Shi wrote: If find_idlest_cpu() return '-1', and sd-child is NULL. The function select_task_rq_fair will return -1. That is not the function's purpose. But find_idlest_cpu() will only return -1 if the group mask is fully excluded by the cpus_allowed mask,

Re: [net-next RFC V5 2/5] virtio_ring: move queue_index to vring_virtqueue

2012-07-26 Thread Paolo Bonzini
Il 05/07/2012 13:40, Sasha Levin ha scritto: @@ -275,7 +274,7 @@ static void vm_del_vq(struct virtqueue *vq) vring_del_virtqueue(vq); /* Select and deactivate the queue */ - writel(info-queue_index, vm_dev-base + VIRTIO_MMIO_QUEUE_SEL); +

Re: [PATCH 1/3] drivers/misc: Add realtek card reader core driver

2012-07-26 Thread Borislav Petkov
On Thu, Jul 26, 2012 at 09:34:19AM +0800, wwang wrote: Hi Aaron: Thank you. I will modify our host per your suggestion. Hi Wei, please put me on CC for your next submission of the driver so that I can give it a run. Thanks. -- Regards/Gruss, Boris. -- To unsubscribe from this list:

[PATCH V3 3/4] [SCSI] ufs: Add Platform glue driver for ufshcd

2012-07-26 Thread Vinayak Holikatti
This patch adds Platform glue driver for ufshcd. Reviewed-by: Namjae Jeon linkinj...@gmail.com Signed-off-by: Vinayak Holikatti vinholika...@gmail.com Signed-off-by: Santosh Yaraganavi santos...@gmail.com --- drivers/scsi/ufs/Kconfig | 11 ++ drivers/scsi/ufs/Makefile|1 +

[PATCH V3 0/4] [SCSI] ufs: Adds glue drivers to ufshcd

2012-07-26 Thread Vinayak Holikatti
This patch set adds following features - Seggregate PCI specific code in ufshcd.c - Adds PCI glue driver ufshcd-pci.c and ufshcd.c become core module - Adds Platform glue driver ufshcd-pltfrm.c - Update correct transfer size in Command UPIU Vinayak Holikatti (4): [SCSI] drivers/scsi/ufs:

[PATCH V3 1/4] [SCSI] drivers/scsi/ufs: Seggregate PCI Specific Code

2012-07-26 Thread Vinayak Holikatti
This patch seggregates the PCI specific code in ufshcd.c to make it ready for splitting into core ufs driver and PCI glue driver. Reviewed-by: Namjae Jeon linkinj...@gmail.com Signed-off-by: Vinayak Holikatti vinholika...@gmail.com Signed-off-by: Santosh Yaraganavi santos...@gmail.com ---

[PATCH V3 2/4] [SCSI] drivers/scsi/ufs: Separate PCI code into glue driver

2012-07-26 Thread Vinayak Holikatti
This patch separates PCI code from ufshcd.c and makes it as a core driver module and adds a new file ufshcd-pci.c as PCI glue driver. Reviewed-by: Namjae Jeon linkinj...@gmail.com Signed-off-by: Vinayak Holikatti vinholika...@gmail.com Signed-off-by: Santosh Yaraganavi santos...@gmail.com ---

[PATCH V3 4/4] [SCSI] ufs: Correct the expected data transfer size

2012-07-26 Thread Vinayak Holikatti
This patch corrects the expected data transfer size of the command UPIU. The current implementation of cmd-transfersize is wrong as it probably equal to sector size. With this implementation the transfer size is updated correctly Reported-by: KOBAYASHI Yoshitake yoshitake.kobaya...@toshiba.co.jp

[PATCH 7/26] USB:support the new interfaces of Huawei Data Card devices in option driver

2012-07-26 Thread Fangxiaozhi (Franko)
From: fangxiaozhi huana...@huawei.com 1. This patch is based on the kernel of 3.5 2. In this patch, we add new micro for matching the series USB devices with vendor ID and interface information. 3. In this patch, we add new declarations into option.c to support the new interfaces of Huawei Data

Re: [PATCH 1/2] virtio-scsi: fix parsing of hotplug/hot-unplug LUN number

2012-07-26 Thread James Bottomley
On Mon, 2012-07-16 at 18:05 +0200, Paolo Bonzini wrote: Hotplug/hot-unplug of a LUN whose number is greater than 255 uses the flat format for LUNs, which has bit 14 set. Clear the bit when parsing the event structs. Signed-off-by: Paolo Bonzini pbonz...@redhat.com ---

Re: [PATCH v2 3/3] KVM: remove dummy pages

2012-07-26 Thread Avi Kivity
On 07/26/2012 06:58 AM, Xiao Guangrong wrote: Currently, kvm allocates some pages and use them as error indicators, it wastes memory and is not good for scalability Base on Avi's suggestion, we use the error codes instead of these pages to indicate the error conditions +static pfn_t

Re: [PATCH 1/2] virtio-scsi: fix parsing of hotplug/hot-unplug LUN number

2012-07-26 Thread Paolo Bonzini
Il 26/07/2012 10:52, James Bottomley ha scritto: +static unsigned int virtscsi_get_lun(u8 *lun_bytes) +{ + unsigned int lun = (lun_bytes[2] 8) | lun_bytes[3]; + return lun 16383; +} + Why are you rolling your own incomplete version of scsilun_to_int here? Because scsilun_to_int

Re: [PATCH 08/11] perf tool: precise mode requires exclude_guest

2012-07-26 Thread Robert Richter
On 26.07.12 10:07:37, Peter Zijlstra wrote: On Thu, 2012-07-26 at 08:50 +0300, Gleb Natapov wrote: The commit is 144d31e6, but it introduces hook that is used on VMX only. SVM does not need it to implement guest/host only counters since it has HW support for that in the PMU. Right, seems

Re: [PATCH] checkpatch: Update alignment check

2012-07-26 Thread Paul Walmsley
Hi Andy, Joe, On Wed, 13 Jun 2012, Joe Perches wrote: Parenthesis alignment doesn't correctly check an existing line after an inserted or modified line with an open parenthesis. Fix it. Signed-off-by: Joe Perches j...@perches.com Reviewed-by: Paul Walmsley p...@pwsan.com Tested-by: Paul

Re: [PATCH 15/16] gfs2: nuke pdflush from comments

2012-07-26 Thread Steven Whitehouse
Hi, On Wed, 2012-07-25 at 11:16 -0400, Bob Peterson wrote: - Original Message - | From: Artem Bityutskiy artem.bityuts...@linux.intel.com | | The pdflush thread is long gone, so this patch removes references to | pdflush | from gfs comments. | (snip) | -*

Re: [PATCH 2/2] sched: fix a logical error in select_task_rq_fair

2012-07-26 Thread Alex Shi
On 07/26/2012 04:17 PM, Peter Zijlstra wrote: On Thu, 2012-07-26 at 13:27 +0800, Alex Shi wrote: If find_idlest_cpu() return '-1', and sd-child is NULL. The function select_task_rq_fair will return -1. That is not the function's purpose. But find_idlest_cpu() will only return -1 if the

Re: [PATCH 15/16] gfs2: nuke pdflush from comments

2012-07-26 Thread Artem Bityutskiy
On Thu, 2012-07-26 at 10:10 +0100, Steven Whitehouse wrote: That ok, I spotted it anyway and it is fairly minor as patches go. Artem, do you want to keep this patch in your series or should I queue it up for the GFS2 tree? I don't mind which and it has my ack anyway, Hi Steven, thanks, I think

Re: [PATCH v2] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list

2012-07-26 Thread Wang Sen
2012/7/25 Ben Hutchings b...@decadent.org.uk: On Wed, 2012-07-25 at 20:13 +0800, Wang Sen wrote: When using the commands below to write some data to a virtio-scsi LUN of the QEMU guest(32-bit) with 1G physical memory(qemu -m 1024), the qemu will crash. # sudo mkfs.ext4 /dev/sdb

Re: [PATCH v2 3/3] KVM: remove dummy pages

2012-07-26 Thread Takuya Yoshikawa
On Thu, 26 Jul 2012 11:56:15 +0300 Avi Kivity a...@redhat.com wrote: Since my comments are better done as a separate patch, I applied all three patches. Thanks! Is this patch really safe for all architectures? IS_ERR_VALUE() casts -MAX_ERRNO to unsigned long and then does comparison. Isn't

Re: [PATCH 1/2] virtio-scsi: fix parsing of hotplug/hot-unplug LUN number

2012-07-26 Thread James Bottomley
On Thu, 2012-07-26 at 11:04 +0200, Paolo Bonzini wrote: Il 26/07/2012 10:52, James Bottomley ha scritto: +static unsigned int virtscsi_get_lun(u8 *lun_bytes) +{ +unsigned int lun = (lun_bytes[2] 8) | lun_bytes[3]; +return lun 16383; +} + Why are you rolling

[PATCH] bcma: fix regression in pmu workaround reg masks

2012-07-26 Thread Hauke Mehrtens
This fixes a regression introduced in: commit b9562545ef0b13c0440ccd8d6dd4111fb77cb17a Author: Hauke Mehrtens ha...@hauke-m.de Date: Sat Jun 30 01:44:41 2012 +0200 bcma: complete workaround for BCMA43224 and BCM4313 The regression broke reading of the sprom from the chip and seamed to

Re: [PATCH v2 3/3] KVM: remove dummy pages

2012-07-26 Thread Xiao Guangrong
On 07/26/2012 04:56 PM, Avi Kivity wrote: On 07/26/2012 06:58 AM, Xiao Guangrong wrote: Currently, kvm allocates some pages and use them as error indicators, it wastes memory and is not good for scalability Base on Avi's suggestion, we use the error codes instead of these pages to indicate

Re: [PATCH 1/2] virtio-scsi: fix parsing of hotplug/hot-unplug LUN number

2012-07-26 Thread Paolo Bonzini
Il 26/07/2012 11:21, James Bottomley ha scritto: Because scsilun_to_int does not do the AND, so it would have exactly the same bug I'm fixing. It's not a bug ... it's the encoding. All the other devices use this too. Ideally we should have switched to 64 bit lun numbers for the encoding

RE: How to use the generic thermal sysfs.

2012-07-26 Thread Wei Ni
On Fri, 2012-07-13 at 15:41 +0800, Zhang Rui wrote: On δΊ”, 2012-07-13 at 15:30 +0800, Wei Ni wrote: Our tegra thermal framework also will use the generic thermal layer. It will register the cooling device, and run the throttling in this generic framework. But we have a special

Re: [PATCH v2 3/3] KVM: remove dummy pages

2012-07-26 Thread Xiao Guangrong
On 07/26/2012 05:20 PM, Takuya Yoshikawa wrote: On Thu, 26 Jul 2012 11:56:15 +0300 Avi Kivity a...@redhat.com wrote: Since my comments are better done as a separate patch, I applied all three patches. Thanks! Is this patch really safe for all architectures? IS_ERR_VALUE() casts

Re: [PATCH 1/2] sched: recover SD_WAKE_AFFINE in select_task_rq_fair and code clean up

2012-07-26 Thread Mike Galbraith
On Thu, 2012-07-26 at 13:27 +0800, Alex Shi wrote: if (affine_sd) { - if (cpu == prev_cpu || wake_affine(affine_sd, p, sync)) + if (wake_affine(affine_sd, p, sync)) prev_cpu = cpu; new_cpu = select_idle_sibling(p,

Re: [PATCH] x86/ioapic: Fix NULL pointer dereference on CPU hotplug after disabling irqs

2012-07-26 Thread Tomoki Sekiyama
Hi, thanks for your comment. On 2012/07/26 8:28, Siddha, Suresh B wrote: Tomoki wrote: In current Linux, percpu variable `vector_irq' is not always cleared when a CPU is offlined. If the cpu that has the disabled irqs in vector_irq is hotplugged again, __setup_vector_irq() hits invalid irq

Re: [PATCH 1/2] virtio-scsi: fix parsing of hotplug/hot-unplug LUN number

2012-07-26 Thread James Bottomley
On Thu, 2012-07-26 at 11:27 +0200, Paolo Bonzini wrote: Il 26/07/2012 11:21, James Bottomley ha scritto: Because scsilun_to_int does not do the AND, so it would have exactly the same bug I'm fixing. It's not a bug ... it's the encoding. All the other devices use this too. Ideally we

Re: [PATCH 1/2] sched: recover SD_WAKE_AFFINE in select_task_rq_fair and code clean up

2012-07-26 Thread Alex Shi
On 07/26/2012 05:37 PM, Mike Galbraith wrote: On Thu, 2012-07-26 at 13:27 +0800, Alex Shi wrote: if (affine_sd) { -if (cpu == prev_cpu || wake_affine(affine_sd, p, sync)) +if (wake_affine(affine_sd, p, sync)) prev_cpu = cpu;

[PATCH] x86/ioapic: Fix NULL pointer dereference on CPU hotplug after disabling irqs

2012-07-26 Thread Tomoki Sekiyama
In current Linux, percpu variable `vector_irq' is not always cleared when a CPU is offlined. If the CPU that has the disabled irqs in vector_irq is hotplugged again, __setup_vector_irq() hits invalid irq vector and may crash. This bug can be reproduced as following; # echo 0

Re: [PATCH 02/10] consider a memcg parameter in kmem_create_cache

2012-07-26 Thread Glauber Costa
On 07/25/2012 10:10 PM, Kirill A. Shutemov wrote: On Wed, Jul 25, 2012 at 06:38:13PM +0400, Glauber Costa wrote: ... @@ -337,6 +341,12 @@ extern void *__kmalloc_track_caller(size_t, gfp_t, unsigned long); __kmalloc(size, flags) #endif /* DEBUG_SLAB */ +#ifdef CONFIG_MEMCG_KMEM

Re: [PATCH v2 3/3] KVM: remove dummy pages

2012-07-26 Thread Takuya Yoshikawa
On Thu, 26 Jul 2012 17:35:13 +0800 Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: Is this patch really safe for all architectures? IS_ERR_VALUE() casts -MAX_ERRNO to unsigned long and then does comparison. Isn't it possible to conflict with valid pfns? See IS_ERR_VALUE():

Re: [PATCH 1/2] virtio-scsi: fix parsing of hotplug/hot-unplug LUN number

2012-07-26 Thread Paolo Bonzini
Il 26/07/2012 11:41, James Bottomley ha scritto: On Thu, 2012-07-26 at 11:27 +0200, Paolo Bonzini wrote: Il 26/07/2012 11:21, James Bottomley ha scritto: Because scsilun_to_int does not do the AND, so it would have exactly the same bug I'm fixing. It's not a bug ... it's the encoding. All

Re: [PATCH 02/10] consider a memcg parameter in kmem_create_cache

2012-07-26 Thread Kirill A. Shutemov
On Thu, Jul 26, 2012 at 01:42:05PM +0400, Glauber Costa wrote: On 07/25/2012 10:10 PM, Kirill A. Shutemov wrote: On Wed, Jul 25, 2012 at 06:38:13PM +0400, Glauber Costa wrote: ... @@ -337,6 +341,12 @@ extern void *__kmalloc_track_caller(size_t, gfp_t, unsigned long);

[PATCH v3 5/7] scsi: pm: use runtime resume callback if available

2012-07-26 Thread Aaron Lu
When runtime resume a scsi device, if the device's driver has implemented runtime resume callback, use that. sr driver needs this to do different things for system resume and runtime resume. Signed-off-by: Aaron Lu aaron...@amd.com --- drivers/scsi/scsi_pm.c | 15 ++- 1 file

[PATCH v3 4/7] scsi: sr: block events when runtime suspended

2012-07-26 Thread Aaron Lu
When the ODD is runtime suspended, there is no need to poll it for events, so block events poll for it and unblock when resumed. Signed-off-by: Aaron Lu aaron...@amd.com --- block/genhd.c | 2 ++ drivers/scsi/sr.c | 7 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH v3 6/7] scsi: sr: balance sr disk events block depth

2012-07-26 Thread Aaron Lu
When the ODD is resumed, disk_unblock_events should be called when: 1 The ODD is runtime resumed; 2 System is resuming from S3 and the ODD is runtime suspended before S3; But not when the system is resuming from S3 and the ODD is runtime active before S3. So seperate the resume calls, one for

[PATCH v3 7/7] block: genhd: add an interface to set disk's poll interval

2012-07-26 Thread Aaron Lu
Set the ODD's in kernel poll interval to 2s for the user in case the user is using an old distro on which udev will not set the system wide block parameter events_dfl_poll_msecs. Signed-off-by: Aaron Lu aaron...@amd.com --- block/genhd.c | 23 +-- drivers/scsi/sr.c

Re: [PATCH] bcma: fix regression in pmu workaround reg masks

2012-07-26 Thread David Miller
From: Hauke Mehrtens ha...@hauke-m.de Date: Thu, 26 Jul 2012 11:15:51 +0200 This fixes a regression introduced in: commit b9562545ef0b13c0440ccd8d6dd4111fb77cb17a Author: Hauke Mehrtens ha...@hauke-m.de Date: Sat Jun 30 01:44:41 2012 +0200 bcma: complete workaround for BCMA43224 and

[PATCH v3 3/7] scsi: sr: support zero power ODD(ZPODD)

2012-07-26 Thread Aaron Lu
The ODD will be placed into suspend state when: 1 For tray type ODD, no media inside and door closed; 2 For slot type ODD, no media inside; And together with ACPI, when we suspend the ODD, we will omit the power altogether to reduce power consumption(done in libata-acpi.c). The ODD can be resumed

[PATCH v3 0/7] ZPODD patches for scsi tree

2012-07-26 Thread Aaron Lu
v3: Rebase on top of scsi-misc tree; Add the sr related patches previously in Jeff's libata tree; Re-organize the sr patches. A problem for now: for patch scsi: sr: support zero power ODD(ZPODD) I can't set a flag in libata-acpi.c since a related function is missing in scsi-misc tree. Will fix

Re: [RFC PATCH 05/13] driver core: firmware loader: introduce firmware_buf

2012-07-26 Thread Borislav Petkov
On Thu, Jul 26, 2012 at 10:51:55AM +0800, Ming Lei wrote: On Wed, Jul 25, 2012 at 9:59 PM, Borislav Petkov b...@amd64.org wrote: This is subtle: the caller of fw_free_buf might forget to assign NULL to the buf ptr. Who is the caller? Since it is always called inside firmware loader, we

[PATCH v3 2/7] scsi: pm: use autosuspend if device supports it

2012-07-26 Thread Aaron Lu
If the device is using autosuspend, when scsi_autopm_put_device is called for it, use autosuspend runtime pm calls instead of the sync call. Signed-off-by: Aaron Lu aaron...@amd.com --- drivers/scsi/scsi_pm.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH v3 1/7] scsi: sr: check support for device busy class events

2012-07-26 Thread Aaron Lu
Signed-off-by: Aaron Lu aaron...@amd.com --- drivers/scsi/sr.c | 23 +++ drivers/scsi/sr.h | 1 + include/linux/cdrom.h | 43 +++ 3 files changed, 67 insertions(+) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index

Re: [PATCH] scripts/patch-kernel fix

2012-07-26 Thread Michal Marek
On 19.7.2012 23:49, Daniel Wisehart wrote: diff --git a/scripts/patch-kernel b/scripts/patch-kernel index d000ea3..a7672eb 100755 --- a/scripts/patch-kernel +++ b/scripts/patch-kernel @@ -226,7 +226,7 @@ fi # This all assumes a 2.6.x[.y] kernel tree. # Don't allow backwards/reverse

Re: [PATCH 4/4] uprobes: __replace_page() needs munlock_vma_page()

2012-07-26 Thread Oleg Nesterov
On 07/26, Srikar Dronamraju wrote: * Oleg Nesterov o...@redhat.com [2012-07-12 19:10:25]: Like do_wp_page(), __replace_page() should do munlock_vma_page() for the case when the old page still has other !VM_LOCKED mappings. Unfortunately this needs mm/internal.h. Also, move put_page()

Re: [PATCH] x86/ioapic: Fix NULL pointer dereference on CPU hotplug after disabling irqs

2012-07-26 Thread Ingo Molnar
* Tomoki Sekiyama tomoki.sekiyama...@hitachi.com wrote: In current Linux, percpu variable `vector_irq' is not always cleared when a CPU is offlined. If the CPU that has the disabled irqs in vector_irq is hotplugged again, __setup_vector_irq() hits invalid irq vector and may crash. This

Re: [PATCH 1/2] virtio-scsi: fix parsing of hotplug/hot-unplug LUN number

2012-07-26 Thread Bart Van Assche
On 07/26/12 09:21, James Bottomley wrote: On Thu, 2012-07-26 at 11:04 +0200, Paolo Bonzini wrote: Il 26/07/2012 10:52, James Bottomley ha scritto: +static unsigned int virtscsi_get_lun(u8 *lun_bytes) +{ + unsigned int lun = (lun_bytes[2] 8) | lun_bytes[3]; + return lun 16383; +} + Why

[PATCH 03/21] ARM: ux500: Clean-up MSP platform code

2012-07-26 Thread Lee Jones
This patch contains a couple of general MSP clean-ups and a bug-fix. The general clean-ups pertain to layout changes and changing functions to be void instead of int and not to regardlessly return '0'. The bug that's fixed is thought to be caused by a merge error. The code erroneously attempts to

[PATCH 09/21] ARM: ux500: Add MSP devices to DB8500 Device Tree

2012-07-26 Thread Lee Jones
List all four MSP devices which exist on all DB8500 based platforms, to ensure correct device probing and configuration passing when booting with DT. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/boot/dts/db8500.dtsi | 30 ++ 1 file changed, 30

[PATCH 11/21] ARM: ux500: Add all encompassing Sound node to DB8500 Device Tree

2012-07-26 Thread Lee Jones
This is the node which links together the platform (PCM), codec (AB8500) and the CPU side Digital Audio Interface (MCP) with the machine driver. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/boot/dts/db8500.dtsi |8 1 file changed, 8 insertions(+) diff --git

[PATCH 13/21] ARM: ux500: Ensure probing of Audio devices when Device Tree is enabled

2012-07-26 Thread Lee Jones
Previous attempts to add platform probing of the Audio related devices only call from non-DT initialisation functions. This patch extends that functionality to the Device Tree related ones too. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/mach-ux500/board-mop500.c |4 1

[PATCH 15/21] ARM: ux500: Pass MSP DMA platform data though AUXDATA

2012-07-26 Thread Lee Jones
It isn't currently possible to pass all platform specific configuration though Device Tree. Thinks like device names used in the clock infrastructure, call-backs and DMA information have to be passed in via AUXDATA structures and the MSP is no exception. Here we're passing DMA settings.

[PATCH 17/21] ASoC: Ux500: Enable ux500 PCM driver for Device Tree

2012-07-26 Thread Lee Jones
Here we pass platform registration from platform code over to Device Tree, when DT is enabled. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/mach-ux500/board-mop500-msp.c |3 --- sound/soc/ux500/ux500_pcm.c|6 ++ 2 files changed, 6 insertions(+), 3

[PATCH 18/21] ASoC: Ux500: Move MSP pinctrl setup into the MSP driver

2012-07-26 Thread Lee Jones
In the initial submission of the MSP driver msp1 and msp3's associated pinctrl mechanism was passed back to platform code using a plat_init() call-back routine, but it has no place in platform code. The MSP driver should set this up for the appropriate ports. Instead we use a use_pinctrl

[PATCH 20/21] ASoC: codecs: Enable AB8500 CODEC for Device Tree

2012-07-26 Thread Lee Jones
We continue to allow the AB8500 CODEC to be registered via the AB8500 Multi Functional Device API, only this time we extract its configuration from the Device Tree binary. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/mfd/ab8500-core.c |1 +

[PATCH 21/21] ARM: ux500: Rename MSP board file to something more meaningful

2012-07-26 Thread Lee Jones
The 'msp' board file does more than just register MSP devices. It also registers some other components necessary to get audio working on ux500 based platforms; such as the PCM and Machine Drivers. For that reason we're changing the filename to be more encompassing - 'audio'. Signed-off-by: Lee

Re: [PATCH 02/10] consider a memcg parameter in kmem_create_cache

2012-07-26 Thread Glauber Costa
On 07/26/2012 02:01 PM, Kirill A. Shutemov wrote: On Thu, Jul 26, 2012 at 01:42:05PM +0400, Glauber Costa wrote: On 07/25/2012 10:10 PM, Kirill A. Shutemov wrote: On Wed, Jul 25, 2012 at 06:38:13PM +0400, Glauber Costa wrote: ... @@ -337,6 +341,12 @@ extern void

[RFC PATCH] drivers: regulator: add error checks for exported APIs

2012-07-26 Thread Kishon Vijay Abraham I
Added error checks for exported APIs in regulator framework so that incorrect use of these APIs does not result in a crash. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- compile tested omap2plus_defconfig drivers/regulator/core.c | 119 --

Re: [PATCH v2 2/2] nconf: add u, d command keys in scroll windows

2012-07-26 Thread Michal Marek
On Tue, Jul 24, 2012 at 04:12:03PM -0400, Benjamin Poirier wrote: They function just like they do in less(1). Also correct some discrepancy between the help text and the code wrt function keys. Signed-off-by: Benjamin Poirier bpoir...@suse.de Applied to kbuild.git#kconfig, thanks. Michal

[PATCH 19/21] ASoC: Ux500: Enable ux500 MSP driver for Device Tree

2012-07-26 Thread Lee Jones
Pass registration of both parts of the MSP driver from platform code to Device Tree so that they are probed when Device Tree is enabled. Also, as there is platform data involved, we ensure that there is allocated memory to place the configuration into and that the correct information is extracted

Re: [PATCH 3/4] uprobes: rename vma_address() and make it return unsigned long

2012-07-26 Thread Oleg Nesterov
On 07/26, Srikar Dronamraju wrote: * Oleg Nesterov o...@redhat.com [2012-07-12 19:10:22]: 1. vma_address() returns loff_t, this looks confusing and this is unnecessary after the previous change. Make it return ulong, all callers truncate the result anyway. 2. Its name conflicts

[PATCH 16/21] ASoC: Ux500: Enable MOP500 driver for Device Tree

2012-07-26 Thread Lee Jones
In this patch we stop registering the MOP500 driver from platform code and rely solely on Device Tree to do the probing for us. We also parse the sound node to link together the codec, dma and the CPU-side Digital Audio Interface. Signed-off-by: Lee Jones lee.jo...@linaro.org ---

[PATCH 12/21] ARM: ux500: Fork MSP platform registration for step-by-step DT enablement

2012-07-26 Thread Lee Jones
We've done this before and it worked well last time. Here we're duplicating a complex registration function to ease the process of enabling it for Device Tree. As there are quite a few steps taken during the registration process, it makes sense to break them up into more manageable chunks. This

[PATCH 14/21] ARM: ux500: Enable HIGHMEM on all mop500 platforms

2012-07-26 Thread Lee Jones
The current kernel commandline for ux500 based devices includes hard-coded allocations for things like mali and hwmem, which actually run over lowmem. Here we enable highmem in order to avoid memory corruption errors. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/mach-ux500/Kconfig

[PATCH 10/21] ARM: ux500: Add ux500 PCM to DB8500 Device Tree

2012-07-26 Thread Lee Jones
Nothing special here. We're only providing a compatible string to ensure the driver is probed using a Device Tree boot. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/boot/dts/db8500.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/db8500.dtsi

[PATCH 00/21] Some fixes and DT enablement for ux500 audio

2012-07-26 Thread Lee Jones
This patch-set sees some code reinforcement surrounding the recently accepted MOP500 MSP, PCM, AB8500 CODEC and ux500 Audio Machine Driver. It contains some extra error checking pertaining to the ux500 specific drivers themselves, along with bugfixes for issues in core SoC Audio code happened

[PATCH 02/21] MFD: db8500-prcmu: Ensure AB8500 platform data is passed through MFD Core

2012-07-26 Thread Lee Jones
When booting via platform code the AB8500 platform data is now passed in though the DB8500. However, if pdata_size is not set it will not be subsequently passed onto subordinate devices. This patch correctly populates pdata_size. Signed-off-by: Lee Jones lee.jo...@linaro.org ---

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

2012-07-26 Thread Lee Jones
If a list of widgets is provided and one of them fails to be added as a control, the present semantics fail all subsequent widgets. A better solution would be to only fail that widget, but pursue in attempting to add the rest of the list. Signed-off-by: Lee Jones lee.jo...@linaro.org ---

  1   2   3   4   5   6   7   8   9   10   >