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

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

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

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

[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

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

[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

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

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

[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

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

[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

[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

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

[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

[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

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

[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

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

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,

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

[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

[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

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.

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

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

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

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

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,

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(), > >

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

[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

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

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

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

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

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

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

[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

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

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

[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

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

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

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

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

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

[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

[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

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

[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

[PATCH 07/13] perf tools: fix missing winsize definition

2012-08-28 Thread Irina Tirdea
In Android, struct winsize is not defined in the headers already included in help.c. This leads to a compile error. Including termios.h fixes the compilation error since it defines struct winsize. Signed-off-by: Irina Tirdea --- tools/perf/util/help.c |1 + tools/perf/util/top.h |1 +

[PATCH 06/13] perf tools: include basename for non-glibc systems

2012-08-28 Thread Irina Tirdea
perf uses the glibc version of basename(), by defining _GNU_SOURCE, including string.h and not including libgen.h. The glibc version of basename is better than the POSIX version since it does not modify its argument. Android has only one version of basename which is defined in libgen.h. This

Re: [PATCH v7 6/9] block: Consolidate bio_alloc_bioset(), bio_kmalloc()

2012-08-28 Thread Kent Overstreet
On Tue, Aug 28, 2012 at 01:41:48PM -0700, Tejun Heo wrote: > Hello, Kent. > > On Tue, Aug 28, 2012 at 10:37:33AM -0700, Kent Overstreet wrote: > > v7: Re-add dropped comments, improv patch description > > I don't think you did the former part. Other than that looks good to > me. I folded them

[PATCH 05/13] perf tools: fix ALIGN redefinition in system headers

2012-08-28 Thread Irina Tirdea
On some systems (e.g. Android), ALIGN is defined in system headers as ALIGN(p). The definition of ALIGN used in perf takes 2 parameters: ALIGN(x,a). This leads to redefinition conflicts. Redefinition error on Android: In file included from util/include/linux/list.h:1:0, from util/callchain.h:5,

[PATCH 04/13] perf tools: include __WORDSIZE definition

2012-08-28 Thread Irina Tirdea
__WORDSIZE is GLibC-specific and is not defined on all systems or glibc versions (e.g. Android's bionic does not define it). In file included from util/include/linux/bitmap.h:5:0, from util/header.h:10, from util/session.h:6, from

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

2012-08-28 Thread Vinod Koul
On Sun, 2012-08-26 at 21:25 -0700, Stephen Warren wrote: > On 08/26/2012 03:14 AM, Laxman Dewangan wrote: > > The membe "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 > >

[PATCH 03/13] perf tools: drop asm/byteorder.h wrapper

2012-08-28 Thread Irina Tirdea
Wrapping asm/byteorder.h will also replace the glibc header, not only the kernel one. asm/byteorder.h further includes architecture dependent headers that define endianess. Some systems (e.g. Android) need constant definitions that depend on endianess (e.g. __constant_htonl). In file included

[PATCH 00/13] Porting perf to Android

2012-08-28 Thread Irina Tirdea
Hi, This is a set of patches to port perf to Android. My approach is to include missing functions in Android (like getline, getsid, etc). I am currently working on upstreaming these to Google. With the missing functionality added to bionic, this compiles on latest Android tree (JellyBean). This

Re: A better idea

2012-08-28 Thread Cruz Julian Bishop
On 29/08/12 05:52, Franklin Teaburry wrote: > Wow, the internets have been flooded lately with brilliant suggestions along > the theme of dropping things. Clearly this is a sign that something need be > dropped! While I can certainly see a glimmer of wisdom among each of these > fine

[PATCH 2/2] add discard support to nbd

2012-08-28 Thread Paul Clements
nbd-trim-discard-support.diff Description: Binary data

[PATCH 1/2] add discard support to nbd

2012-08-28 Thread Paul Clements
nbd-set-flags-ioctl.diff Description: Binary data

[PATCH 0/2] add discard support to nbd

2012-08-28 Thread Paul Clements
This patchset adds discard request support to nbd. This should be good for inclusion in next. The first patch adds a set-flags ioctl, allowing various option flags to be set on an nbd device. One of the new flags tells the nbd client to send discard requests to the server. The second patch adds

A better idea

2012-08-28 Thread Franklin Teaburry
Wow, the internets have been flooded lately with brilliant suggestions along the theme of dropping things. Clearly this is a sign that something need be dropped! While I can certainly see a glimmer of wisdom among each of these fine gentleman's suggestions I think they may still be a little

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

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

Re: [PATCH] staging: ozwpan: remove pointless conditional before kfree_skb()

2012-08-28 Thread Rupesh Gujare
On 28/08/2012 14:11, Wei Yongjun wrote: From: Wei Yongjun Remove pointless conditional before kfree_skb(). Signed-off-by: Wei Yongjun --- drivers/staging/ozwpan/ozpd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/ozwpan/ozpd.c

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

2012-08-28 Thread Tejun Heo
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; > inline_vecs = nr_iovecs; > } else { > + /* > +

Re: [GIT PULL] msm fixes for v3.6

2012-08-28 Thread Olof Johansson
Hi, On Tue, Aug 28, 2012 at 09:55:32AM -0700, David Brown wrote: > The following changes since commit 28a33cbc24e4256c143dce96c7d93bf423229f92: > > Linux 3.5 (2012-07-21 13:58:29 -0700) > > are available in the git repository at: > >

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

2012-08-28 Thread Tejun Heo
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 inline struct bio *bio_clone_kmalloc(struct bio *bio, gfp_t gfp_mask) >

  1   2   3   4   5   6   7   8   >