[PATCH v2] usb: otg: Move phy interface to separate file.

2012-08-28 Thread Venu Byravarasu
As otg.h is containing lots of phy interface related stuff, moving all phy interface related stuff to new file named phy.h Signed-off-by: Venu Byravarasu --- delta from v1: Removed notifier.h inclusion from otg.h, as it was already included in phy.h include/linux/usb/otg.h | 212 +

[PATCH] gpio: Remove broken mark for da9052 gpio driver

2012-08-28 Thread Axel Lin
The fix for MFD part is merged so remove the broken mark for da9052 gpio driver. Signed-off-by: Axel Lin --- drivers/gpio/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index ba7926f5..95778f1 100644 --- a/drivers/gpio/K

[RFC 4/5] ARM: dma-mapping: New dma_map_ops->map_page*_at* function

2012-08-28 Thread Hiroshi Doyu
Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c| 18 ++ include/asm-generic/dma-mapping-common.h | 19 +++ include/linux/dma-mapping.h |7 +++ 3 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/ar

[RFC 5/5] ARM: dma-mapping: Introduce dma_map_linear_attrs() for IOVA linear map

2012-08-28 Thread Hiroshi Doyu
Introduce a helper function, dma_map_linear(_attrs)() to create IOVA linear map, where IOVA and kernel virtual addresses are mapped at the same address linearly. This is useful to support legacy device drivers which expects no IOMMU. Signed-off-by: Hiroshi Doyu --- arch/arm/include/asm/dma-mappi

[RFC 2/5] ARM: dma-mapping: New dma_map_ops->iova_{alloc,free}() functions

2012-08-28 Thread Hiroshi Doyu
There are some cases that IOVA allocation and mapping have to be done seperately, especially for perf optimization reasons. This patch allows client modules to {alloc,free} IOVA space without backing up actual pages for that area. Signed-off-by: Hiroshi Doyu --- arch/arm/include/asm/dma-mapping.

RE: [PATCH] usb: otg: Move phy interface to separate file.

2012-08-28 Thread Venu Byravarasu
> -Original Message- > From: Peter Chen [mailto:hzpeterc...@gmail.com] > Sent: Wednesday, August 29, 2012 7:30 AM > To: Venu Byravarasu > Cc: gre...@linuxfoundation.org; ba...@ti.com; linux- > ker...@vger.kernel.org; linux-...@vger.kernel.org > Subject: Re: [PATCH] usb: otg: Move phy interf

[RFC 3/5] ARM: dma-mapping: New dma_map_ops->iova_alloc*_at* function

2012-08-28 Thread Hiroshi Doyu
To allocate IOVA area at specified address Signed-off-by: Hiroshi Doyu --- arch/arm/include/asm/dma-mapping.h |9 + arch/arm/mm/dma-mapping.c | 35 +++ include/linux/dma-mapping.h|2 ++ 3 files changed, 46 insertions(+), 0 deleti

[RFC 1/5] ARM: dma-mapping: New dma_map_ops->iova_get_free_{total,max} functions

2012-08-28 Thread Hiroshi Doyu
->iova>_get_free_total() returns the sum of available free areas. ->iova>_get_free_max() returns the largest available free area size. Signed-off-by: Hiroshi Doyu --- arch/arm/include/asm/dma-mapping.h | 16 ++ arch/arm/mm/dma-mapping.c | 54 +

[RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely

2012-08-28 Thread Hiroshi Doyu
Hi, The following APIs are needed for us to support the legacy Tegra memory manager for devices("NvMap") with *DMA mapping API*. New API: ->iova_alloc(): To allocate IOVA area. ->iova_alloc_at(): To allocate IOVA area at specific address. ->iova_free(): To free IOVA area. ->map_page_at():

[RFC][PATCH] Immutable bio vecs

2012-08-28 Thread Kent Overstreet
Ok, I lied about patches. I got something working yesterday, but the code is ugly and in flux and not _remotely_ complete. Well, if you want to see actual code, it's up at http://evilpiepirate.org/git/linux-bcache.git/log/?h=block_stuff-immutable_bio_vecs http://evilpiepirate.org/git/linux-bcache.

Re: [PATCH] [perf] Remove the node from rblist in strlist__remove

2012-08-28 Thread Suzuki K. Poulose
On 08/29/2012 11:59 AM, David Ahern wrote: On 8/29/12 12:00 AM, Suzuki K. Poulose wrote: The following commit: authorDavid Ahern Tue, 31 Jul 2012 04:31:33 + (22:31 -0600) committerArnaldo Carvalho de Melo Fri, 3 Aug 2012 13:39:51 + (10:39 -0300) commitee8dd3ca43f15

Re: [PATCH] [perf] Remove the node from rblist in strlist__remove

2012-08-28 Thread David Ahern
On 8/29/12 12:00 AM, Suzuki K. Poulose wrote: The following commit: author David Ahern Tue, 31 Jul 2012 04:31:33 + (22:31 -0600) committer Arnaldo Carvalho de Melo Fri, 3 Aug 2012 13:39:51 + (10:39 -0300) commit ee8dd3ca43f151d9fbe1edeef68fb8a77eb9f047 causes a

Re: [PATCH] kmemleak: avoid buffer overrun: NUL-terminate strncpy-copied command

2012-08-28 Thread Jim Meyering
Dan Carpenter wrote: > On Fri, Aug 24, 2012 at 01:23:29PM +0200, Jim Meyering wrote: >> In that case, what would you think of a patch to use strcpy instead? >> >> - strncpy(object->comm, current->comm, sizeof(object->comm)); >> + strcpy(object->comm, current->comm); > > Anothe

[PATCH] scripts/Makefile.modpost: error in finding modules from .mod files.

2012-08-28 Thread 이건호
This error may happen when the user's id or path includes .ko string. For example, user's id is xxx.ko and building test.ko module, the test.mod file lists ko name and all object files. /home/xxx.ko/kernel_dev/device/drivers/test.ko /home/xxx.ko/kernel_dev/device/drivers/test_main.o /home/xxx

[PATCH 1/2 RESEND] vfs: re-implement writeback_inodes_sb(_nr)_if_idle() and rename them

2012-08-28 Thread Miao Xie
writeback_inodes_sb(_nr)_if_idle() is re-implemented by replacing down_read() with down_read_trylock() because - If ->s_umount is write locked, then the sb is not idle. That is writeback_inodes_sb(_nr)_if_idle() needn't wait for the lock. - writeback_inodes_sb(_nr)_if_idle() grabs s_umount lock w

[PATCH v6] mmc: card: Skip secure option for MoviNAND.

2012-08-28 Thread IAN CHEN
For several MoviNAND, there are some known issue with secure option. For these specific MoviNAND device, we skip secure option. You could refer this discussion in XDA developers. http://forum.xda-developers.com/showthread.php?t=1644364 https://plus.google.com/111398485184813224730/posts/21pTYfTsCk

Re: [PATCH 3/3] HWPOISON: prevent inode cache removal to keep AS_HWPOISON sticky

2012-08-28 Thread Jun'ichi Nomura
On 08/29/12 11:59, Dave Chinner wrote: > On Mon, Aug 27, 2012 at 06:05:06PM -0400, Naoya Horiguchi wrote: >> And yes, I understand it's ideal, but many applications choose not to >> do that for performance reason. >> So I think it's helpful if we can surely report to such applications. I suspect "

[PATCH] [perf] Remove the node from rblist in strlist__remove

2012-08-28 Thread Suzuki K. Poulose
The following commit: author David Ahern Tue, 31 Jul 2012 04:31:33 + (22:31 -0600) committer Arnaldo Carvalho de Melo Fri, 3 Aug 2012 13:39:51 + (10:39 -0300) commit ee8dd3ca43f151d9fbe1edeef68fb8a77eb9f047 causes a double free during a probe deletion as the node

Re: [PATCH] clk: Make the generic clock API available by default

2012-08-28 Thread Hans-Christian Egtvedt
Around Tue 28 Aug 2012 13:35:04 -0700 or thereabout, Mark Brown wrote: > Rather than requiring platforms to select the generic clock API to make > it available make the API available as a user selectable option unless the > user either selects HAVE_CUSTOM_CLK (if they have their own implementation)

[PATCH RESEND] dma: tegra: add const to of_device_id.data's structure

2012-08-28 Thread Laxman Dewangan
The member "data" of structure of_device_id is changed to const pointer. Hence initializing this with const type data. This will fix the compilation warning like drivers/dma/tegra20-apb-dma.c:1217:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] This

Re: [PATCH v6] mmc: card: Skip secure option for MoviNAND.

2012-08-28 Thread Jaehoon Chung
Need to check your mail setting. On 08/29/2012 02:04 PM, IAN CHEN wrote: > For several MoviNAND, there are some known issue with secure option. > For these specific MoviNAND device, we skip secure option. > > You could refer this discussion in XDA developers. > http://forum.xda-developers.com/sho

RE: [PATCH] usb: tegra: moving phy driver into drivers directory

2012-08-28 Thread Venu Byravarasu
> -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Tuesday, August 28, 2012 7:37 PM > To: Venu Byravarasu > Cc: ccr...@android.com; o...@lixom.net; li...@arm.linux.org.uk; > st...@rowland.harvard.edu; gre...@linuxfoundation.org; ba...@ti.com; > linux-kernel@

[PATCH v10 6/6] allower the user to disable pv event support

2012-08-28 Thread Wen Congyang
Signed-off-by: Wen Congyang --- hw/pc_piix.c|6 +- qemu-config.c |4 qemu-options.hx |3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 37eca23..10531a8 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -149,6 +149,8

[PATCH v10 5/6] introduce a new qom device to deal with panicked event

2012-08-28 Thread Wen Congyang
If the target is x86/x86_64, the guest's kernel will write 0x01 to the port KVM_PV_EVENT_PORT when it is panciked. This patch introduces a new qom device kvm_pv_ioport to listen this I/O port, and deal with panicked event according to panicked_action's value. The possible actions are: 1. emit QEVEN

[PATCH v10 4/6] add a new qevent: QEVENT_GUEST_PANICKED

2012-08-28 Thread Wen Congyang
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang --- monitor.c |1 + monitor.h |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index b17b1bb..f74dd2d 100644 --- a/monitor.c +++ b/monitor.c @@ -455,6 +455,7 @@ sta

[PATCH v10 3/6] add a new runstate: RUN_STATE_GUEST_PANICKED

2012-08-28 Thread Wen Congyang
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang --- qapi-schema.json |6 +- qmp.c|3 ++- vl.c |7 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index bd8ad74..ed

[PATCH v10 2/6] kvm: Update kernel headers

2012-08-28 Thread Wen Congyang
Corresponding kvm.git hash: 1d92128f with my patch for kvm --- linux-headers/asm-s390/kvm.h |2 +- linux-headers/asm-s390/kvm_para.h |2 +- linux-headers/asm-x86/kvm.h |1 + linux-headers/asm-x86/kvm_para.h |9 + linux-headers/linux/kvm.h |3 +++ lin

Re: [PATCH] Parallelize mtrr init between cpus

2012-08-28 Thread zhenzhong.duan
On 2012-08-08 11:53, H. Peter Anvin wrote: On 08/07/2012 07:08 PM, zhenzhong.duan wrote: 2012-08-08 00:32, H. Peter Anvin wrote: On 08/07/2012 12:29 AM, zhenzhong.duan wrote: Current code serialize mtrr init with set_atomicity_lock. Mtrr init is quite slow when we bootup on a hvm with la

[PATCH v10 1/6] start vm after reseting it

2012-08-28 Thread Wen Congyang
The guest should run after reseting it, but it does not run if its old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. We don't set runstate to RUN_STATE_PAUSED when reseting the guest, so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED to RUN_STATE_RUNNING(no

[PATCH v10] kvm: notify host when the guest is panicked

2012-08-28 Thread Wen Congyang
We can know the guest is panicked when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app(for example: libvirt) can do auto dump when the guest is panicked. If management app does not do auto dump, the guest's user can do dump by hand

Re: [alsa-devel] [PATCH] ASoC: ams-delta: fix card initalization failure

2012-08-28 Thread Janusz Krzysztofik
On Tue, 28 Aug 2012 11:13:39 Mark Brown wrote: > On Tue, Aug 28, 2012 at 05:13:05PM +0200, Janusz Krzysztofik wrote: > > On Mon, 27 Aug 2012 14:38:35 Mark Brown wrote: > > > On Mon, Aug 27, 2012 at 11:28:30PM +0200, Janusz Krzysztofik wrote: > > > > > - platform_set_drvdata(ams_delta_audio_p

[PATCH v6] mmc: card: Skip secure option for MoviNAND.

2012-08-28 Thread IAN CHEN
For several MoviNAND, there are some known issue with secure option. For these specific MoviNAND device, we skip secure option. You could refer this discussion in XDA developers. http://forum.xda-developers.com/showthread.php?t=1644364 https://plus.google.com/111398485184813224730/posts/21pTYfTsCk

[PATCH]Documentation: Chinese translation of Documentation/filesystems/sysfs.txt

2012-08-28 Thread Ninja Tekkaman
This is a Chinese translated version of Documentation/filesystems/sysfs.txt Signed-off-by: Fu Wei --- Documentation/zh_CN/filesystems/sysfs.txt | 372 + 1 file changed, 372 insertions(+) create mode 100644 Documentation/zh_CN/filesystems/sysfs.txt diff --git a/Docu

Re: [RFC PATCH] x86: use new exception_enter()/exception_exit() API in do_device_not_available() (v2)

2012-08-28 Thread Sergey Senozhatsky
x86: use new exception_enter()/exception_exit() API in do_device_not_available() RCU can be in extended quiescent state when do_device_not_available() called. [ 676.400274] RCU used illegally from idle CPU! [ 676.400274] rcu_scheduler_active = 1, debug_locks = 0 [ 676.400278] RCU used ille

[PATCH 2/2] DMA: PL330: Set the capability of pdm0 and pdm1 as DMA_PRIVATE

2012-08-28 Thread Tushar Behera
DMA clients pdma0 and pdma1 are internal to the SoC and are used only by dedicated peripherals. Since they cannot be used for generic purpose, their capability should be set as DMA_PRIVATE. CC: Vinod Koul Signed-off-by: Tushar Behera --- drivers/dma/pl330.c |1 + 1 files changed, 1 insertio

[PATCH 1/2] ARM: EXYNOS: Set the capability of pdm0 and pdm1 as DMA_PRIVATE

2012-08-28 Thread Tushar Behera
DMA clients pdma0 and pdma1 are internal to the SoC and are used only by dedicated peripherals. Since they cannot be used for generic purpose, their capability should be set as DMA_PRIVATE. CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-exynos/dma.c |2 ++ 1 files changed, 2

[PATCH 0/2] ARM: EXYNOS: Set the capability of pdm0 and pdm1 as DMA_PRIVATE

2012-08-28 Thread Tushar Behera
DMA clients pdma0 and pdma1 are internal to the SoC and are used only by dedicated peripherals. Since they cannot be used for generic purpose, their capability should be set as DMA_PRIVATE. The patches are rebased on top of v3.6-rc3. Tushar Behera (2): ARM: EXYNOS: Set the capability of pdm0 an

Re: [RFC PATCH] x86: use new exception_enter()/exception_exit() API in do_device_not_available()

2012-08-28 Thread Sergey Senozhatsky
On (08/29/12 00:11), Borislav Petkov wrote: > Date: Wed, 29 Aug 2012 00:11:13 +0200 > From: Borislav Petkov > To: Sergey Senozhatsky > Cc: Thomas Gleixner , Ingo Molnar , > "H. Peter Anvin" , x...@kernel.org, Steven Rostedt > , Srikar Dronamraju , > Peter Zijlstra , "Paul E. McKenney" > , lin

[PATCH] driver/char/tpm: declare internal symbols as static

2012-08-28 Thread xiaoyan . zhang
From: Xiaoyan Zhang This patch declares the internal struct and functions as static to provide more security. Signed-off-by: Xiaoyan Zhang Signed-off-by: Fengguang Wu --- drivers/char/tpm/tpm.c |4 ++-- drivers/char/tpm/tpm_ppi.c | 37 +++-- 2 files c

Re: [PATCH v6 04/13] pktcdvd: Switch to bio_kmalloc()

2012-08-28 Thread Peter Osterlund
On Tue, 28 Aug 2012, Jiri Kosina wrote: On Wed, 22 Aug 2012, Tejun Heo wrote: (cc'ing Jiri, hi!) Hi there! :) On Wed, Aug 22, 2012 at 10:04:01AM -0700, Kent Overstreet wrote: This is prep work for killing bi_destructor - previously, pktcdvd had its own pkt_bio_alloc which was basically du

Re: [PATCH 1/1] tcp: Wrong timeout for SYN segments

2012-08-28 Thread H.K. Jerry Chu
On Sat, Aug 25, 2012 at 1:48 AM, Alexander Bergmann wrote: > On Fri, Aug 24, 2012 at 01:42:31PM -0400, David Miller wrote: >> Alex, this patch doesn't apply, it was completely corrupted by your email >> client. >> >> Make a fresh submission, with this fixed. But before you do, email the >> patch

Re: [PATCH] fs/proc: Move kfree outside pde_unload_lock

2012-08-28 Thread Eric Dumazet
On Tue, 2012-08-28 at 23:38 +0300, Alexey Dobriyan wrote: > Nothing can stop RCU! > > After running "modprobe;rmmod" in a loop and "cat" in another loop for a while > rmmod got stuck in D-state inside remove_proc_entry() with trace amounts of > CPU time > being consumed. > > It didn't oopsed, t

Re: Hardening debugfs (Was Re: [PATCH] debugfs: more tightly restrict default mount mode)

2012-08-28 Thread Greg Kroah-Hartman
On Tue, Aug 28, 2012 at 05:55:45PM -0500, Rob Landley wrote: > I've always been a bit confused by the debugfs design, which seems a > giant compost heap like /proc where we find a specific styrofoam cup > useful and the temporary thing becomes permanent. (Why is there _one_ > debugfs?) The rules f

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 09:31:50PM -0400, Vivek Goyal wrote: > On Tue, Aug 28, 2012 at 04:01:08PM -0700, Kent Overstreet wrote: > > On Tue, Aug 28, 2012 at 03:28:00PM -0700, Kent Overstreet wrote: > > > On Tue, Aug 28, 2012 at 01:49:10PM -0700, Tejun Heo wrote: > > > > Overall, I *think* this is co

[PATCH] x86/mm/init.c: devmem_is_allowed() off by one

2012-08-28 Thread T Makphaibulchoke
Fixing an off-by-one error in devmem_is_allowed(), which allows accesses to physical addresses 0x10-0x100fff, an extra page past 1MB. Signed-off-by: T Makphaibulchoke --- arch/x86/mm/init.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/mm/init.c b/arch/x8

Re: [PATCH] oom: remove deprecated oom_adj

2012-08-28 Thread David Rientjes
On Fri, 24 Aug 2012, Davidlohr Bueso wrote: > The deprecated /proc//oom_adj is scheduled for removal this month. > > Signed-off-by: Davidlohr Bueso Acked-by: David Rientjes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ker

Re: [PATCH 3/3] HWPOISON: prevent inode cache removal to keep AS_HWPOISON sticky

2012-08-28 Thread Dave Chinner
On Mon, Aug 27, 2012 at 06:05:06PM -0400, Naoya Horiguchi wrote: > On Mon, Aug 27, 2012 at 08:26:07AM +1000, Dave Chinner wrote: > > On Fri, Aug 24, 2012 at 01:24:16PM -0400, Naoya Horiguchi wrote: > > > Let me explain more to clarify my whole scenario. If a memory error > > > hits on a dirty pagec

[patch v3.6] mm, slab: lock the correct nodelist after reenabling irqs

2012-08-28 Thread David Rientjes
On Tue, 28 Aug 2012, Haggai Eran wrote: > Hi, > > I believe I have encountered a bug in kernel 3.6-rc3. It starts with the > assertion in mm/slab.c:2629 failing, and then the system hangs. I can > reproduce this bug by running a large compilation (compiling the kernel > for instance). > > Here's

Re: [PATCH v3] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-08-28 Thread Naveen N. Rao
On 08/16/2012 01:46 PM, Peter Zijlstra wrote: On Wed, 2012-08-15 at 20:42 +0200, Frederic Weisbecker wrote: On Wed, Aug 15, 2012 at 11:07:01PM +0530, Naveen N. Rao wrote: Hi Frederick, Did you get a chance to take a look at this? Regards, Naveen Yeah, I'm ok with the patch. Peter, are you ok

Re: [PATCH v3 1/7] mfd: add syscon driver based on regmap

2012-08-28 Thread Dong Aisheng
On Wed, Aug 29, 2012 at 06:54:00AM +0800, Stephen Warren wrote: > On 08/28/2012 02:09 AM, Dong Aisheng wrote: > > From: Dong Aisheng > > > > Add regmap based syscon driver. > > This is usually used for access misc bits in registers which does not belong > > to a specific module, for example, IMX

Re: [PATCH 4/7] workqueue: single pass rebind_workers

2012-08-28 Thread Lai Jiangshan
On 08/28/2012 03:04 AM, Tejun Heo wrote: > Hello, Lai. > > On Tue, Aug 28, 2012 at 01:58:24AM +0800, Lai Jiangshan wrote: >> busy_worker_rebind_fn() can't return until all idle workers are rebound, >> the code of busy_worker_rebind_fn() ensure this. >> >> So we can change the order of the code of

Re: [PATCH] userns: Add basic quota support v4

2012-08-28 Thread Dave Chinner
On Tue, Aug 28, 2012 at 12:09:56PM -0700, Eric W. Biederman wrote: > > Add the data type struct kqid which holds the kernel internal form of > the owning identifier of a quota. struct kqid is a replacement for > the implicit union of uid, gid and project stored in an unsigned int > and the quota

Re: [PATCH] ACPI: power: Use KERN_DEBUG when no power resources are found

2012-08-28 Thread Aaron Lu
On Fri, Aug 24, 2012 at 03:36:21PM -0700, Joe Perches wrote: > On Thu, 2012-08-23 at 15:26 +0200, Borislav Petkov wrote: > > On Fri, Aug 10, 2012 at 10:05:53AM +0800, Aaron Lu wrote: > > > commit a606dac368eed5696fb38e16b1394f1d049c09e9 adds support to link > > > devices which have _PRx, if a devic

Re: [PATCH] usb: otg: Move phy interface to separate file.

2012-08-28 Thread Peter Chen
> > #include > +#include > one small thing: is only needed at phy.h. > /* OTG defines lots of enumeration states before device reset */ > enum usb_otg_state { > @@ -35,31 +36,6 @@ enum usb_otg_state { > OTG_STATE_A_VBUS_ERR, > }; > > -enum usb_phy_events { > - USB_EVENT_NONE,

RE: [PATCH] lp8727_charger: use IRQF_ONESHOT

2012-08-28 Thread Kim, Milo
> ERROR: Threaded IRQ with no primary handler requested without > IRQF_ONESHOT > > Make sure threaded IRQs without a primary handler are always request > with IRQF_ONESHOT > > Signed-off-by: Fengguang Wu > --- > > Note: I don't really know much about the situation, feel free to > ignore it if i

Re: [PATCH 1/3 V2] workqueue: reimplement rebind_workers()

2012-08-28 Thread Lai Jiangshan
On 08/29/2012 04:17 AM, Tejun Heo wrote: > Hello, Lai. > > On Tue, Aug 28, 2012 at 07:34:37PM +0800, Lai Jiangshan wrote: >> So this implement adds an "all_done", thus rebind_workers() can't leave until >> idle_worker_rebind() successful wait something until all other idle also >> done, >> so thi

drivers/gpio/gpio-em.c build error if CONFIG_GPIO_EM=m

2012-08-28 Thread Axel Lin
Hi Magnus, I got below build error if CONFIG_GPIO_EM=m MODPOST 33 modules ERROR: "set_irq_flags" [drivers/gpio/gpio-em.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 Regards, Axel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

[PATCH 2/2] gpio: mc9s08dz60: Use devm_kzalloc API

2012-08-28 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/gpio/gpio-mc9s08dz60.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpio-mc9s08dz60.c b/drivers/gpio/gpio-mc9s08dz60.c index 2738cc4..0ab7000 100644 --- a/drivers/gpio/gpio-mc9s08dz60.c +++ b/drivers/

[PATCH 1/2] gpio: mc9s08dz60: Fix build error if I2C=m

2012-08-28 Thread Axel Lin
Make GPIO_MC9S08DZ60 depend on I2C=y, this fixes below build error: LD init/built-in.o drivers/built-in.o: In function `mc9s08dz60_get_value': clk-fixed-factor.c:(.text+0x7214): undefined reference to `i2c_smbus_read_byte_data' drivers/built-in.o: In function `mc9s08dz60_set': clk-fixed-fa

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-08-28 Thread Vivek Goyal
On Tue, Aug 28, 2012 at 04:01:08PM -0700, Kent Overstreet wrote: > On Tue, Aug 28, 2012 at 03:28:00PM -0700, Kent Overstreet wrote: > > On Tue, Aug 28, 2012 at 01:49:10PM -0700, Tejun Heo wrote: > > > Overall, I *think* this is correct but need to think more about it to > > > be sure. > > > > Plea

[PATCH 2/2] staging/rts_pstor: Use pr_ printks in debug.h

2012-08-28 Thread Toshiaki Yamane
fixed below checkpatch warnings. -WARNING: Prefer pr_debug(... to printk(KERN_DEBUG, ... And added pr_fmt. Signed-off-by: Toshiaki Yamane --- drivers/staging/rts_pstor/debug.h |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rts_pstor/debug.h b/dri

[PATCH 1/2] staging/rts_pstor: Use pr_ printks in rtsx.c

2012-08-28 Thread Toshiaki Yamane
fixed some checkpatch warnings. -WARNING: Prefer pr_info(... to printk(KERN_INFO, ... -WARNING: Prefer pr_err(... to printk(KERN_ERR, ... -WARNING: quoted string split across lines And added pr_fmt. Signed-off-by: Toshiaki Yamane --- drivers/staging/rts_pstor/rtsx.c | 107 +++--

Re: [PATCH] Add feature-removal-schedule.txt removal to feature-removal-schedule.txt

2012-08-28 Thread Cong Wang
On Tue, Aug 28, 2012 at 2:22 AM, Steven Rostedt wrote: > The file feature-removal-schedule.txt is ignored by most people except > for people that add to it. It's more of a global TODO list for > developers than being anything useful by anyone. > > Add a feature removal of removing the feature-remo

Re: Add rq->nr_uninterruptible count to dest cpu's rq while CPU goes down.

2012-08-28 Thread Rakib Mullick
On 8/28/12, Paul E. McKenney wrote: > > OK, but I thought that Peter said that ->nr_uninterruptible was > meaningful only when summed across all CPUs. If that is the case, > it shouldn't matter where the counts are moved. > Yes, right. But, nr_uninterruptible is also use to calculate delta. Pleas

kernel 3.2.27 on arm: WARNING: at mm/page_alloc.c:2109 __alloc_pages_nodemask+0x1d4/0x68c()

2012-08-28 Thread David Madore
Dear all, I hope this is the right place to send this sort of backtrace dump. I'm getting the following sort of dumps (below) on a 3.2.27 kernel on an arm/kirkwood (actually DreamPlug) machine that's used as a router. I imagine it being somehow related to the fact that it operates a network brid

Re: System-drivers ported to Windows XP?

2012-08-28 Thread Uwaysi Bin Kareem
I have a list of drivers here, many of them dated 2001. http://paradoxuncreated.com/Blog/wordpress/?p=1608 (MS making me upset as usual.) I am really just looking for better drivers, and thought maybe someone knew if more current opensource versions existed. I have not found anything online

Re: Hardening debugfs (Was Re: [PATCH] debugfs: more tightly restrict default mount mode)

2012-08-28 Thread Rob Landley
On 08/28/2012 09:41 AM, Theodore Ts'o wrote: > On Mon, Aug 27, 2012 at 01:32:15PM -0700, Kees Cook wrote: >> Since the debugfs is mostly only used by root, make the default mount >> mode 0700. Most system owners do not need a more permissive value, >> but they can choose to weaken the restrictions

Re: [PATCH -v12 02/15] resources: Add probe_resource()

2012-08-28 Thread Linus Torvalds
On Tue, Aug 28, 2012 at 10:05 AM, Linus Torvalds wrote: > > Ugh. Ok, looking closer at this, Btw, looking at that code, I also found what looks like a potential locking bug in allocate_resource(). The code does if (new->parent) .. reallocate .. to check whether a resource was alread

Re: [PATCH 5/5] PCI/xen-pcifront: simplify code by hotplug safe pci_get_domain_bus_and_slot()

2012-08-28 Thread Jiang Liu
On 08/29/2012 12:59 AM, Konrad Rzeszutek Wilk wrote: > On Tue, Aug 28, 2012 at 11:43:58PM +0800, Jiang Liu wrote: >> Following code has a race window between pci_find_bus() and pci_get_slot() >> if PCI hotplug operation happens between them which removes the pci_bus. >> So use PCI hotplug safe inte

Re: [PATCH] regulator: max77686: add of_node assignment

2012-08-28 Thread Joonyoung Shim
On 08/29/2012 02:16 AM, Mark Brown wrote: On Tue, Aug 28, 2012 at 08:25:30PM +0900, Joonyoung Shim wrote: Consumer nodes can reference regulators using -supply from dts file with this patch. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park This doesn't apply against current code, t

Re: [PATCH v6 04/13] pktcdvd: Switch to bio_kmalloc()

2012-08-28 Thread Jiri Kosina
On Wed, 22 Aug 2012, Tejun Heo wrote: > (cc'ing Jiri, hi!) Hi there! :) > On Wed, Aug 22, 2012 at 10:04:01AM -0700, Kent Overstreet wrote: > > This is prep work for killing bi_destructor - previously, pktcdvd had > > its own pkt_bio_alloc which was basically duplication bio_kmalloc(), > > necess

Re: [PATCH 2/6] brcmfmac: Handling the interrupt in ISR directly for non-OOB

2012-08-28 Thread Franky Lin
On 08/28/2012 04:04 PM, Stephen Warren wrote: On 08/28/2012 04:01 PM, Franky Lin wrote: On 08/28/2012 03:39 PM, Stephen Warren wrote: On 08/28/2012 09:45 AM, Franky Lin wrote: On 08/28/2012 04:13 AM, Wei Ni wrote: On Tue, 2012-08-28 at 04:06 +0800, Stephen Warren wrote: On 08/27/2012 09:24 A

[PATCH 02/13] perf tools: update types definitions for Android

2012-08-28 Thread Irina Tirdea
Some systems (e.g. Android) define in their libc types.h __le16, __be16, etc. Since perf is wrapping with a local version, we need to define this constants in the local version too. Errors in Android: In file included from bionic/libc/include/netinet/in.h:34:0, from util/util.h:7

Re: [PATCH 2/6] brcmfmac: Handling the interrupt in ISR directly for non-OOB

2012-08-28 Thread Stephen Warren
On 08/28/2012 04:01 PM, Franky Lin wrote: > On 08/28/2012 03:39 PM, Stephen Warren wrote: >> On 08/28/2012 09:45 AM, Franky Lin wrote: >>> On 08/28/2012 04:13 AM, Wei Ni wrote: On Tue, 2012-08-28 at 04:06 +0800, Stephen Warren wrote: > On 08/27/2012 09:24 AM, Arend van Spriel wrote: >>

Re: [PATCH 2/6] brcmfmac: Handling the interrupt in ISR directly for non-OOB

2012-08-28 Thread Franky Lin
On 08/28/2012 03:39 PM, Stephen Warren wrote: On 08/28/2012 09:45 AM, Franky Lin wrote: On 08/28/2012 04:13 AM, Wei Ni wrote: On Tue, 2012-08-28 at 04:06 +0800, Stephen Warren wrote: On 08/27/2012 09:24 AM, Arend van Spriel wrote: On 08/27/2012 12:25 PM, Wei Ni wrote: In case of inband inter

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 03:28:00PM -0700, Kent Overstreet wrote: > On Tue, Aug 28, 2012 at 01:49:10PM -0700, Tejun Heo wrote: > > Overall, I *think* this is correct but need to think more about it to > > be sure. > > Please do. As much time as I've spent staring at this kind of stuff, > I'm pretty

Re: [PATCH v3 01/17] hashtable: introduce a small and naive hashtable

2012-08-28 Thread Mathieu Desnoyers
* Mathieu Desnoyers (mathieu.desnoy...@efficios.com) wrote: > * Sasha Levin (levinsasha...@gmail.com) wrote: > > On 08/28/2012 12:11 PM, Mathieu Desnoyers wrote: > > > * Sasha Levin (levinsasha...@gmail.com) wrote: > > >> On 08/25/2012 06:24 AM, Mathieu Desnoyers wrote: > > >>> * Tejun Heo (t...@ke

Re: [PATCH] x86, apm: Make on_cpu0() use workqueue instead of work_on_cpu()

2012-08-28 Thread Jiri Kosina
On Thu, 23 Aug 2012, Tejun Heo wrote: > Make APM schedule a work item on CPU0 instead of using the expensive > work_on_cpu(); hopefully, this is the last user of work_on_cpu() and > we can take out work_on_cpu() in not too distant future. > > Tested both paths. Seems to work fine. Applying to a

Re: [PATCH v7 3/9] block: Add bio_reset()

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 03:17:15PM -0700, Kent Overstreet wrote: > On Tue, Aug 28, 2012 at 01:31:48PM -0700, Tejun Heo wrote: > > > + unsigned long flags = bio->bi_flags & (~0UL << BIO_RESET_BITS); > > > + > > > + if (bio_integrity(bio)) > > > + bio_integrity_free(bio, bio->bi_pool); > > >

Re: [PATCH v3 1/7] mfd: add syscon driver based on regmap

2012-08-28 Thread Stephen Warren
On 08/28/2012 02:09 AM, Dong Aisheng wrote: > From: Dong Aisheng > > Add regmap based syscon driver. > This is usually used for access misc bits in registers which does not belong > to a specific module, for example, IMX IOMUXC GPR and ANATOP. > With this driver, client can use generic regmap API

Re: [PATCH 2/6] brcmfmac: Handling the interrupt in ISR directly for non-OOB

2012-08-28 Thread Stephen Warren
On 08/28/2012 09:45 AM, Franky Lin wrote: > On 08/28/2012 04:13 AM, Wei Ni wrote: >> On Tue, 2012-08-28 at 04:06 +0800, Stephen Warren wrote: >>> On 08/27/2012 09:24 AM, Arend van Spriel wrote: On 08/27/2012 12:25 PM, Wei Ni wrote: > In case of inband interrupts, if we handle the interrupt

[PATCH 02/13] perf tools: update types definitions for Android

2012-08-28 Thread Irina Tirdea
Some systems (e.g. Android) define in their libc types.h __le16, __be16, etc. Since perf is wrapping with a local version, we need to define this constants in the local version too. Errors in Android: In file included from bionic/libc/include/netinet/in.h:34:0, from util/util.h:7

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 01:49:10PM -0700, Tejun Heo wrote: > Hello, > > On Tue, Aug 28, 2012 at 10:37:36AM -0700, Kent Overstreet wrote: > > @@ -324,13 +342,37 @@ struct bio *bio_alloc_bioset(gfp_t gfp_mask, int > > nr_iovecs, struct bio_set *bs) > > front_pad = 0; > > inl

Re: [PATCH v2] HID: multitouch: Remove the redundant touch state

2012-08-28 Thread Jiri Kosina
On Wed, 22 Aug 2012, Henrik Rydberg wrote: > With the input_mt_sync_frame() function in place, there is no longer > any need to keep the full touch state in the driver. This patch > removes the slot state and replaces the lookup code with the input-mt > equivalent. The initialization code is moved

[PATCH 01/13] perf tools: include wrapper for magic.h

2012-08-28 Thread Irina Tirdea
perf is currently including magic.h directly from the kernel. If the glibc magic.h is also included, this leads to warnings that the constants are redefined. This happens on some systems (e.g. Android). Redefinition errors on Android: In file included from util/util.h:79:0, from u

Re: [PATCH v7 4/9] pktcdvd: Switch to bio_kmalloc()

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 01:32:47PM -0700, Tejun Heo wrote: > On Tue, Aug 28, 2012 at 10:37:31AM -0700, Kent Overstreet wrote: > > This is prep work for killing bi_destructor - previously, pktcdvd had > > its own pkt_bio_alloc which was basically duplication bio_kmalloc(), > > necessitating its own

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 06:06:10PM -0400, Vivek Goyal wrote: > On Tue, Aug 28, 2012 at 10:37:36AM -0700, Kent Overstreet wrote: > > Previously, if we ever try to allocate more than once from the same bio > > set while running under generic_make_request() (i.e. a stacking block > > driver), we risk

[PATCH 11/13] perf tools: replace mempcpy with memcpy

2012-08-28 Thread Irina Tirdea
mempcpy is not supported by bionic in Android and will lead to compilation errors. Replacing mempcpy with memcpy so it will work in Android. Signed-off-by: Irina Tirdea --- tools/perf/util/target.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/target

Re: [patch 14/16] sched: make __update_entity_runnable_avg() fast

2012-08-28 Thread Paul Turner
Applied, Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v7 3/9] block: Add bio_reset()

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 01:31:48PM -0700, Tejun Heo wrote: > Hello, Kent. > > On Tue, Aug 28, 2012 at 10:37:30AM -0700, Kent Overstreet wrote: > > Reusing bios is something that's been highly frowned upon in the past, > > but driver code keeps doing it anyways. If it's going to happen anyways, > >

[char-misc-next] mei: add lynx point pci device ids

2012-08-28 Thread Tomas Winkler
Signed-off-by: Tomas Winkler --- drivers/misc/mei/hw.h |2 ++ drivers/misc/mei/main.c |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/misc/mei/hw.h b/drivers/misc/mei/hw.h index b3b4c6d..9700532 100644 --- a/drivers/misc/mei/hw.h +++ b/drivers/misc/mei/hw.h

Re: [patch 01/16] sched: track the runnable average on a per-task entitiy basis

2012-08-28 Thread Paul Turner
On Fri, Aug 24, 2012 at 1:20 AM, Namhyung Kim wrote: > Hi, > > Just typos below.. > Applied, Thanks. > On Thu, 23 Aug 2012 07:14:23 -0700, > From: Paul Turner >> >> Instead of tracking averaging the load parented by a cfs_rq, we can track >> entity load directly. With the load for a given cfs_

Re: [RFC PATCH] x86: use new exception_enter()/exception_exit() API in do_device_not_available()

2012-08-28 Thread Borislav Petkov
On Wed, Aug 29, 2012 at 12:00:47AM +0300, Sergey Senozhatsky wrote: > x86: use new exception_enter()/exception_exit() API in > do_device_not_available() > > RCU can be in extended quiescent state when do_device_not_available() called. > > [ 676.400274] RCU used illegally from idle CPU! > [ 6

Re: [PATCH v7 5/9] block: Kill bi_destructor

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 01:36:13PM -0700, Tejun Heo wrote: > On Tue, Aug 28, 2012 at 10:37:32AM -0700, Kent Overstreet wrote: > > @@ -385,7 +386,7 @@ struct bio *bio_kmalloc(gfp_t gfp_mask, unsigned int > > nr_iovecs) > > bio->bi_flags |= BIO_POOL_NONE << BIO_POOL_OFFSET; > > bio->bi_max_v

[PATCH 13/13] perf tools: replace mkostemp with mkstemp

2012-08-28 Thread Irina Tirdea
mkostemp is only available in glibc. This leads to compile error in Android, since bionic is derived from BSD. Replacing mkostemp with mkstemp. mkstemp is available on both glibc and bionic. Signed-off-by: Irina Tirdea --- tools/perf/util/dso-test-data.c |2 +- 1 file changed, 1 insertion(+

[PATCH 12/13] perf tools: replace on_exit with atexit

2012-08-28 Thread Irina Tirdea
on_exit() is only available in new versions of glibc. Using on_exit on Android leads to errors at compile time. Replacing on_exit with its more portable version atexit. This leads to using a global variable since on_exit supports sending a parameters while atexit does not. Signed-off-by: Irina Ti

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-08-28 Thread Vivek Goyal
On Tue, Aug 28, 2012 at 10:37:36AM -0700, Kent Overstreet wrote: > Previously, if we ever try to allocate more than once from the same bio > set while running under generic_make_request() (i.e. a stacking block > driver), we risk deadlock. > > This is because of the code in generic_make_request()

Re: [PATCH v7 7/9] block: Add bio_clone_bioset(), bio_clone_kmalloc()

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 01:44:01PM -0700, Tejun Heo wrote: > On Tue, Aug 28, 2012 at 10:37:34AM -0700, Kent Overstreet wrote: > > +static inline struct bio *bio_clone(struct bio *bio, gfp_t gfp_mask) > > +{ > > + return bio_clone_bioset(bio, gfp_mask, fs_bio_set); > > +} > > + > ... > > +static i

[PATCH 10/13] perf tools: fix non-void function without return statement

2012-08-28 Thread Irina Tirdea
thread_func in builtin-sched.c has an internal loop and never returns. The only return from this thread are BUG_ON calls in case return values are not 0. The compiler on Android complains that the function needs to return a non-void value. Adding the noreturn function attribute to fix this error.

[PATCH 09/13] perf tools: include missing pthread.h header

2012-08-28 Thread Irina Tirdea
pthread variables are used in some files without explicitely including pthread.h. This leads to compile errors on Android. e.g.: in annotate.h, error: unknown type name 'pthread_mutex_t' Including pthread.h explicitely in files that use it to have all definitions included. Signed-off-by: Irina Ti

  1   2   3   4   >