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

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

2012-07-26 Thread Aaron Lu
Signed-off-by: Aaron Lu --- 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 5fc97d2..abfefab

[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 --- drivers/scsi/scsi_pm.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_pm.c

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 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 should

[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

[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

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

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

[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 --- block/genhd.c | 23 +-- drivers/scsi/sr.c | 1 +

[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 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 --- block/genhd.c | 2 ++ drivers/scsi/sr.c | 7 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/block/genhd.c

[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 --- drivers/scsi/scsi_pm.c | 15 ++- 1 file changed, 10

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);

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

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 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(): > > #define

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

[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 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; >>

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.

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

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 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 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

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

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 >

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

[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 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 cause a change of

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; > >> > +} > >>

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 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 it possible to

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 : > 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 (/dev/sdb is

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

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

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 > | > | The pdflush thread is long gone, so this patch removes references to > | pdflush > | from gfs comments. > | > (snip) > | -* potentially cause a busy-wait

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 Reviewed-by: Paul Walmsley Tested-by: Paul Walmsley This fixes

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. > >

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?

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

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 > --- > drivers/scsi/virtio_scsi.c |

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

2012-07-26 Thread Fangxiaozhi (Franko)
From: fangxiaozhi 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 Card devices. And

[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 Reviewed-by: Namjae Jeon

[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 Signed-off-by: Vinayak Holikatti Signed-off-by: Santosh Yaraganavi --- drivers/scsi/ufs/Kconfig | 26 ++-

[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 Signed-off-by: Vinayak Holikatti Signed-off-by: Santosh Yaraganavi --- drivers/scsi/ufs/ufshcd.c | 277

[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 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 Signed-off-by: Vinayak Holikatti Signed-off-by: Santosh Yaraganavi --- drivers/scsi/ufs/Kconfig | 11 ++ drivers/scsi/ufs/Makefile|1 + drivers/scsi/ufs/ufshcd-pltfrm.c | 222

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:

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 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

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] 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: [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

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 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

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

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

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,

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

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: linux-next: manual merge of the akpm tree with the tip tree

2012-07-26 Thread Ingo Molnar
* Andrew Morton wrote: > On Wed, 25 Jul 2012 21:03:51 +0200 > Ingo Molnar 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 > > > will no longer update

Re: [git patches] libata updates

2012-07-26 Thread Ingo Molnar
* Linus Torvalds 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 dozen examples of such

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:

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 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: 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

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: [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.

[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: 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 wrote: > > On Wed, Jul 25, 2012 at 09:10:44AM +0200, Ingo Molnar wrote: > > > > * Stephen Rothwell wrote: > > > > > Today's linux-next merge of the akpm tree got a conflict in > > > mm/migrate.c between the tip tree and commit "mm:

Re: [PATCH] x86: simplify mtrr_bp_init()

2012-07-26 Thread Jan Beulich
>>> On 25.07.12 at 18:57, "H. Peter Anvin" 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

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

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

2012-07-26 Thread Ingo Molnar
* Sam Ravnborg 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. Ok, I

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:

[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 --- scripts/kernel-doc | 30 +++--- 1 file changed, 23

[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 --- 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 +189,7 @@ my

[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 --- scripts/kernel-doc | 255 ++-- 1 file changed, 249 insertions(+), 6 deletions(-) diff --git

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

[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 --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile

[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

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 > Cc: Viresh Kumar Applied thanks -- ~Vinod -- To unsubscribe

[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 --- drivers/input/keyboard/gpio_keys.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index

[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

<    2   3   4   5   6   7   8   9   10   11   >