RE: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-22 Thread Huang, Xiong
> > Then add a new ethtool operation to support your use case, that's exactly > what I was telling you to do. > > Did it really not occur to you that you perhaps you should extend existing > generic facilities to suit your needs instead of creating private facilities > that no > other driver can

Re: [PATCH v2] x86: don't ever patch back to UP if we unplug cpus.

2012-08-22 Thread Rusty Russell
On Wed, 22 Aug 2012 11:41:53 +0200, Ingo Molnar wrote: > > * Rusty Russell wrote: > > > We still patch SMP instructions to UP variants if we boot with a > > single CPU, but not at any other time. In particular, not if we > > unplug CPUs to return to a single cpu. > > > > Paul McKenney points

Re: WARNING: at vsmp_64.c: is_vsmp_box()

2012-08-22 Thread Ido Yariv
Hi Fengguang, On Thu, Aug 23, 2012 at 08:55:15AM +0800, Fengguang Wu wrote: > Hi Ido, > > The below warning should be introduced by this commit at tip/master: > > commit c00679af441c5be76e195deed2c76fef65a5d102 > Author: Ido Yariv > CommitDate: Wed Aug 22 10:48:05 2012 +0200 > > x86/vs

[GIT PULL] UBIFS fixes for 3.6-rc3

2012-08-22 Thread Artem Bityutskiy
Hi Linus, The following changes since commit d9875690d9b89a866022ff49e3fcea892345ad92: Linux 3.6-rc2 (2012-08-16 14:51:24 -0700) are available in the git repository at: git://git.infradead.org/linux-ubifs.git tags/upstream-3.6-rc3 for you to fetch changes up to 69f9025894c391fec2f7c7ea9150

Re: [v2 0/4] ARM: dma-mapping: IOMMU atomic allocation

2012-08-22 Thread Minchan Kim
On Thu, Aug 23, 2012 at 09:10:25AM +0300, Hiroshi Doyu wrote: > Hi, > > The commit e9da6e9 "ARM: dma-mapping: remove custom consistent dma > region" breaks the compatibility with existing drivers. This causes > the following kernel oops(*1). That driver has called dma_pool_alloc() > to allocate me

[PATCH] rtc: rc5t583: add ricoh rc5t583 RTC driver

2012-08-22 Thread Venu Byravarasu
Adding RTC driver for RTC device on Ricoh MFD Rc5t583. Ricoh RTC has 3 types of alarms. Current patch adds support for Y-Alarm of RC5t583 RTC. Signed-off-by: Venu Byravarasu --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile|1 + drivers/rtc/rtc-rc5t583.c | 331 ++

[PATCH] staging: r8712u: use is_zero_ether_addr() instead of memcmp()

2012-08-22 Thread Wei Yongjun
From: Wei Yongjun Using is_zero_ether_addr() instead of directly use memcmp(addr, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) to determine if the ethernet address is all zeros. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun --- dr

Re: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-22 Thread David Miller
From: "Huang, Xiong" Date: Thu, 23 Aug 2012 06:35:40 + >> This is why we require that portable, sane, interfaces are added to ethtool >> for >> driver diagnostics. That way users can perform a task in the same way >> regardless of what hardware and driver are underneath. > > I quite agree

Re: [PATCH 0/8] netdev/MIPS: Improvements to octeon_mgmt Ethernet driver.

2012-08-22 Thread John Crispin
On 23/08/12 04:16, David Miller wrote: > From: David Daney > Date: Tue, 21 Aug 2012 11:45:04 -0700 > >> From: David Daney >> >> Recent additions to the OCTEON SoC family have included enhancements >> to the MIX (octeon_mgmt) Ethernet hardware. These include: >> >> o 1Gig support (up from 100M).

RE: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-22 Thread Huang, Xiong
> This is why we require that portable, sane, interfaces are added to ethtool > for > driver diagnostics. That way users can perform a task in the same way > regardless of what hardware and driver are underneath. I quite agree you on using ethtool to implement it. we did consider it. But ethtoo

Re: [PATCH v2 00/13] OMAP Serial patches

2012-08-22 Thread Felipe Balbi
Hi, On Tue, Aug 21, 2012 at 03:15:58PM +0300, Felipe Balbi wrote: > Hi guys, > > here's a series of cleanup patches to the OMAP serial > driver. A later series could be made re-implementing > DMA using the DMA Engine API. Note that for RX DMA > we could be using RX Timeout IRQ as a hint that we b

Re: JFFS2 issue with v3.5.x and later on Atmel chips at least (was: Kernel oops since v3.5.x on Atmel chips)

2012-08-22 Thread Artem Bityutskiy
On Wed, 2012-08-22 at 17:00 +0200, ludovic.desroches wrote: > After bisection the commit causing this issue is: > > commit 8bdc81c5069e43755d6e59e5e990e21ca200e8e2 > Author: Artem Bityutskiy > Date: Mon May 7 19:56:53 2012 +0300 > > jffs2: get rid of jffs2_sync_super Thanks Ludovic for b

Re: [PATCH v2] smb347_charger: fix battery status reporting logic for charger faults

2012-08-22 Thread Mika Westerberg
On Thu, Aug 23, 2012 at 07:19:18AM +0530, Ramakrishna Pallala wrote: > This patch checks for charger status register for determining the > battery charging status and reports Discharing/Charging/Not Charging/Full > accordingly. > > This patch also adds the interrupt support for Safety Timer Expira

Re: [Xen-devel] Q:pt_base in COMPAT mode offset by two pages. Was:Re: [PATCH 02/11] xen/x86: Use memblock_reserve for sensitive areas.

2012-08-22 Thread Jan Beulich
>>> Konrad Rzeszutek Wilk 08/22/12 9:05 PM >>> >Thinking of just sticking this patch then: Yeah, that may be best for the moment. Albeit I see no reason why you shouldn't be able to use your more selective logic, just making it either deal with only the pt_base == start-of-page-tables case (and f

Re: [RFC 2/4] ARM: dma-mapping: IOMMU allocates pages from pool with GFP_ATOMIC

2012-08-22 Thread Hiroshi Doyu
Hi, On Thu, 23 Aug 2012 07:58:34 +0200 Marek Szyprowski wrote: > Hello, > > On Wednesday, August 22, 2012 3:37 PM Hiroshi Doyu wrote: > > > KyongHo Cho wrote @ Wed, 22 Aug 2012 14:47:00 > > +0200: > > > > > vzalloc() call in __iommu_alloc_buffer() also causes BUG() in atomic > > > context.

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-22 Thread Richard Zhao
On Wed, Aug 22, 2012 at 11:21:03PM -0600, Stephen Warren wrote: > On 08/22/2012 01:18 AM, Dong Aisheng wrote: > > Signed-off-by: Dong Aisheng > > > diff --git a/drivers/regulator/anatop-regulator.c > > b/drivers/regulator/anatop-regulator.c > > > @@ -109,7 +110,11 @@ static int __devinit anatop

[v2 4/4] ARM: dma-mapping: IOMMU allocates pages from atomic_pool with GFP_ATOMIC

2012-08-22 Thread Hiroshi Doyu
Makes use of the same atomic pool from DMA, and skips kernel page mapping which can involve sleep'able operations at allocating a kernel page table. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 30 +- 1 files changed, 25 insertions(+), 5 deletions(-)

[v2 2/4] ARM: dma-mapping: Use kzalloc() with GFP_ATOMIC

2012-08-22 Thread Hiroshi Doyu
Use kzalloc() with GFP_ATOMIC instead of vzalloc(). At freeing, __in_atomic_pool() checks if it comes from atomic_pool or not. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch

[v2 3/4] ARM: dma-mapping: Refactor out to introduce __alloc_fill_pages

2012-08-22 Thread Hiroshi Doyu
__alloc_fill_pages() allocates power of 2 page number allocation at most repeatedly. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 50 ++-- 1 files changed, 34 insertions(+), 16 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/ar

[v2 1/4] ARM: dma-mapping: Refactor out to introduce __in_atomic_pool

2012-08-22 Thread Hiroshi Doyu
Check the given range("start", "size") is included in "atomic_pool" or not. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 25 +++-- 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 601d

[v2 0/4] ARM: dma-mapping: IOMMU atomic allocation

2012-08-22 Thread Hiroshi Doyu
Hi, The commit e9da6e9 "ARM: dma-mapping: remove custom consistent dma region" breaks the compatibility with existing drivers. This causes the following kernel oops(*1). That driver has called dma_pool_alloc() to allocate memory from the interrupt context, and it hits BUG_ON(in_interrpt()) in "get

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

2012-08-22 Thread Richard Zhao
On Wed, Aug 22, 2012 at 11:16:33PM -0600, Stephen Warren wrote: > On 08/22/2012 04:57 AM, Dong Aisheng wrote: > > On Wed, Aug 22, 2012 at 04:29:41PM +0800, Zhao Richard-B20223 wrote: > >> On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: > >>> Add regmap based imx syscon driver. > >>> T

[PATCH] documentation: virtual: Fix typo in Documentations/virtual

2012-08-22 Thread Masanari Iida
Fix spelling typo in Documentations/virtual Signed-off-by: Masanari Iida --- Documentation/virtual/kvm/api.txt | 6 +++--- Documentation/virtual/virtio-spec.txt | 8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/vir

Re: [PATCH v3 0/3] DaVinci DMA engine conversion

2012-08-22 Thread Tom Rini
On Wed, Aug 22, 2012 at 09:09:33PM -0400, Matt Porter wrote: [snip] > Matt Porter (3): > dmaengine: add TI EDMA DMA engine driver > mmc: davinci_mmc: convert to DMA engine API > spi: spi-davinci: convert to DMA engine API > > drivers/dma/Kconfig| 10 + > drivers/dma/Makefile

[PATCH 1/2] netfilter: pass 'nf_hook_ops' instead of 'list_head' to nf_iterate()

2012-08-22 Thread Michael Wang
From: Michael Wang Since 'list_for_each_continue_rcu' has already been replaced by 'list_for_each_entry_continue_rcu', pass 'list_head' to nf_iterate() as a parameter can not benefit us any more. This patch will replace 'list_head' with 'nf_hook_ops' as the parameter of nf_iterate() to save code

[PATCH 2/2] netfilter: pass 'nf_hook_ops' instead of 'list_head' to nf_queue()

2012-08-22 Thread Michael Wang
From: Michael Wang Since 'list_for_each_continue_rcu' has already been replaced by 'list_for_each_entry_continue_rcu', pass 'list_head' to nf_queue() as a parameter can not benefit us any more. This patch will replace 'list_head' with 'nf_hook_ops' as the parameter of nf_queue() and __nf_queue()

[PATCH 0/2] netfilter: code refine for using new interface 'list_for_each_entry_continue_rcu'

2012-08-22 Thread Michael Wang
From: Michael Wang Since 'list_for_each_continue_rcu' has been replaced with the new interface 'list_for_each_entry_continue_rcu' by commit 6705e86, we can no longer saving code by passing 'list_head' to nf_iterate() and nf_queue() any more. This patch set will pass 'nf_hook_ops' instead of 'lis

RE: [RFC 2/4] ARM: dma-mapping: IOMMU allocates pages from pool with GFP_ATOMIC

2012-08-22 Thread Marek Szyprowski
Hello, On Wednesday, August 22, 2012 3:37 PM Hiroshi Doyu wrote: > KyongHo Cho wrote @ Wed, 22 Aug 2012 14:47:00 +0200: > > > vzalloc() call in __iommu_alloc_buffer() also causes BUG() in atomic > > context. > > Right. > > I've been thinking that kzalloc() may be enough here, since > vzalloc

Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

2012-08-22 Thread Ananth N Mavinakayanahalli
On Thu, Aug 23, 2012 at 02:28:20PM +1000, Michael Ellerman wrote: > On Wed, 2012-08-22 at 13:57 +0530, Ananth N Mavinakayanahalli wrote: > > From: Ananth N Mavinakayanahalli > > > > This is the port of uprobes to powerpc. Usage is similar to x86. > > Hi Ananth, > > Excuse my ignorance of uprobe

Re: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-22 Thread David Miller
From: Date: Tue, 21 Aug 2012 00:42:29 +0800 > +config ALX_DEBUGFS > + bool "Qualcomm Atheros debugging interface" > + depends on ALX && DEBUG_FS > + ---help--- > + This option adds ability to debug and test L1F. It can > + support Qualcomm Atheros tools, including diagnost

Re: [PATCH v3 2/3] power_supply: add new lp8788 charger driver

2012-08-22 Thread Anton Vorontsov
On Tue, Aug 14, 2012 at 02:32:50AM +, Kim, Milo wrote: > Patch v3. Thanks for the driver! It looks great, mostly cosmetic comments down below. > (a) use irq domain for handling charger interrupts > (b) use scaled adc value rather than raw value > : replace iio_read_channel_raw() with iio_

Re: pci_get_subsys: GFP_KERNEL allocations with IRQs disabled

2012-08-22 Thread Feng Tang
Hi Bjorn, On Wed, 22 Aug 2012 11:02:52 -0700 Bjorn Helgaas wrote: > On Wed, Aug 22, 2012 at 12:49 AM, Feng Tang wrote: > > Hi Fengguang, > > > > > > On Wed, 22 Aug 2012 10:50:08 +0800 > > Fengguang Wu wrote: > > > >> Feng, > >> > >> > I think it's pci_get_subsys() triggered this assert: > >> >

Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

2012-08-22 Thread Srikar Dronamraju
> > These seem to be duplicated in kprobes.h, can we consolidate them. > > > +struct arch_uprobe { > > + u8 insn[MAX_UINSN_BYTES]; > > +}; > > Why not uprobe_opcode_t insn ? > insn is updated/accessed in the arch independent code. Size of uprobe_opcode_t could be different for different

pci: question about the life cycle of pci_dev and its parent pci_bus

2012-08-22 Thread Liu ping fan
Hi, I have a question about the life cycle of pci_dev and its parent pci_bus. In pci_destroy_dev(), we remove the pci_dev from the bus_list, so pci_dev is isolated from its parent pci_bus, and their life cycle are independent too. But it seems that in pci_dev, we can still access the pci_bus from

linux-next: Tree for Aug 23

2012-08-22 Thread Stephen Rothwell
Hi all, Changes since 20120822: New tree: pstore The tip tree gained a conflict against the rr tree. The rcu tree gained a conflict against the tip tree. The kvm tree gained a build failure so I used the version from next-20120822. The drivers-x86 tree still has its build failure so I used

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-22 Thread Stephen Warren
On 08/22/2012 01:18 AM, Dong Aisheng wrote: > Signed-off-by: Dong Aisheng > diff --git a/drivers/regulator/anatop-regulator.c > b/drivers/regulator/anatop-regulator.c > @@ -109,7 +110,11 @@ static int __devinit anatop_regulator_probe(struct > platform_device *pdev) > rdesc->ops = &anatop

Re: [BUG] net/core/sock.c won't compile on alpha

2012-08-22 Thread Bob Tracy
On Thu, Aug 23, 2012 at 09:16:53AM +1200, Michael Cree wrote: > On 23/08/2012, at 12:14 AM, Bob Tracy wrote: > >Kernel version 3.6.0-rc2, and probably -rc1 as well. I get the > >following compile-time error on alpha architecture: > > > >(...) > > CC net/core/sock.o > >net/core/sock.c:274:36:

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

2012-08-22 Thread Stephen Warren
On 08/22/2012 04:57 AM, Dong Aisheng wrote: > On Wed, Aug 22, 2012 at 04:29:41PM +0800, Zhao Richard-B20223 wrote: >> On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: >>> Add regmap based imx syscon driver. >>> This is usually used for access misc bits in registers which does not belon

Re: [PATCH] lpc_ich: Fix a 3.5 kernel regression for iTCO_wdt driver

2012-08-22 Thread Feng Tang
On Wed, 22 Aug 2012 22:55:43 +0100 Matthew Garrett wrote: > On Wed, Aug 22, 2012 at 09:55:12PM +0200, Wim Van Sebroeck wrote: > > > Any idea why the acpi_check_resource_conflict() check gives a conflict? > > Because the resource range is declared in ACPI and we assume that that > means the fir

Re: [PATCH 33/36] autonuma: powerpc port

2012-08-22 Thread Benjamin Herrenschmidt
On Thu, 2012-08-23 at 00:35 +0200, Andrea Arcangeli wrote: > I'm actually surprised you don't already check for PROTNONE > there. Anyway yes this is necessary, the whole concept of NUMA hinting > page faults is to make the pte not present, and to set another bit (be > it a reserved bit or PROTNONE

Re: v3.6-rc1: modprobe hangs with sdhci failure on dell e6410

2012-08-22 Thread Aaron Lu
On 08/22/2012 10:11 PM, Arend van Spriel wrote: > A quick search using google did not provide clues. Regardless if there > is anything inserted the hang occurs. your dmesg shows: [ 241.908294] INFO: task modprobe:134 blocked for more than 120 seconds. [ 241.908298] "echo 0 > /proc/sys/kernel/h

Re: [PATCH v2] power_supply: Add new power supply properties CHARGE_CURRENT/VOLTAGE_MAX

2012-08-22 Thread Anton Vorontsov
On Mon, Jul 30, 2012 at 12:49:21PM +0530, Ramakrishna Pallala wrote: > There are different types of chargers avalibale like AC, Solar, USB, etc.. > Even in USB we have different types SDP/DCP/CDP/ACA and all these > chargers have different o/p ratings. For example SDP supports only 500mA of > charg

Re: [PATCH] block: replace __getblk_slow misfix by grow_dev_page fix

2012-08-22 Thread Hugh Dickins
On Wed, 22 Aug 2012, Richard W.M. Jones wrote: > On Tue, Aug 21, 2012 at 06:33:45PM -0700, Hugh Dickins wrote: > > Jeff, > > > > Your commit 91f68c89d8f3 ("block: fix infinite loop in __getblk_slow"), > > already gone into 3.* stable, is not good. Could you and your testers > > please give this a

Re: [PATCH 0/2] charger-manager: Stop charging when charge cable is detached and code clean

2012-08-22 Thread Anton Vorontsov
On Thu, Aug 23, 2012 at 01:27:27PM +0900, Chanwoo Choi wrote: [...] > I did send additional patchset which has 5 patch and also include below > patch list, > if you may confuse due to duplicate patch, so I inform to you about > duplicate patch. > > Chanwoo Choi (2): >charger-manager: Disable r

Re: [RFT] xhci: Switch PPT ports to EHCI on shutdown.

2012-08-22 Thread Robert Hancock
On 08/07/2012 11:39 AM, Sarah Sharp wrote: The Intel desktop boards DH77EB and DH77DF have a hardware issue that can be worked around by BIOS. If the USB ports are switched to xHCI on shutdown, the xHCI host will send a spurious interrupt, which will wake the system. Some BIOS will work around

Re: [PATCH] Fixes for dw_dmac and atmel-mci for AP700x

2012-08-22 Thread Hein Tibosch
On 8/21/2012 10:15 PM, Havard Skinnemoen wrote: > On Tue, Aug 21, 2012 at 1:31 AM, Arnd Bergmann > wrote: >> On Tuesday 21 August 2012, Viresh Kumar wrote: Is AVR32 a big-endian system? Probably big-endian, that's why values are > getting > swapped. And dw_dmac is the standard one, c

Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

2012-08-22 Thread Michael Ellerman
On Wed, 2012-08-22 at 13:57 +0530, Ananth N Mavinakayanahalli wrote: > From: Ananth N Mavinakayanahalli > > This is the port of uprobes to powerpc. Usage is similar to x86. Hi Ananth, Excuse my ignorance of uprobes, some comments inline ... > [root@ ~]# ./bin/perf probe -x /lib64/libc.so.

Re: [PATCH 0/2] charger-manager: Stop charging when charge cable is detached and code clean

2012-08-22 Thread Chanwoo Choi
On 08/23/2012 12:10 PM, Anton Vorontsov wrote: > On Fri, Jul 27, 2012 at 02:01:25PM +0900, Chanwoo Choi wrote: >> This patchset fix bug related to stop charging when charger cable is >> detached and check return value of regulator_enable/disable() function >> to confirm correct operation of enable

Re: [PATCH 1/4] ARM: export read_current_timer

2012-08-22 Thread Shinya Kuribayashi
On 8/23/2012 2:58 AM, Will Deacon wrote: > On Wed, Aug 22, 2012 at 06:57:20PM +0100, Stephen Boyd wrote: >> On 08/22/12 10:49, Will Deacon wrote: >>> On the topic of the timer stuff: Shinya/Stephen, did you have a chance to >>> look at the registration stuff that was proposed? I'm happy to push it

Re: [PATCH 33/36] autonuma: powerpc port

2012-08-22 Thread Vaidyanathan Srinivasan
* Benjamin Herrenschmidt [2012-08-23 08:56:34]: > On Thu, 2012-08-23 at 08:01 +1000, Benjamin Herrenschmidt wrote: > > On Wed, 2012-08-22 at 16:59 +0200, Andrea Arcangeli wrote: > > > From: Vaidyanathan Srinivasan > > > > > > * PMD flaging is not required in powerpc since large pages > > >

Re: Regression associated with commit c8628155ece3 - "tcp: reduce out_of_order memory use"

2012-08-22 Thread Eric Dumazet
On Wed, 2012-08-22 at 16:33 -0500, Larry Finger wrote: > On 08/22/2012 12:15 AM, Eric Dumazet wrote: > > > > This particular commit is the start of a patches batch that ended in the > > generic TCP coalescing mechanism. > > > > It is known to have problem on drivers doing skb_clone() in their rx >

Re: [PATCH v2 3/3] spi: spi-davinci: convert to DMA engine API

2012-08-22 Thread Vinod Koul
On Wed, 2012-08-22 at 12:04 -0400, Matt Porter wrote: > for querying of these types of limitations. Right now, the > mmc driver implicitly knows that EDMA needs this restriction > but it's something that should be queried before calling > prep_slave(). that's something we need to add; exporting cha

Re: [PATCH 1/4] ARM: export read_current_timer

2012-08-22 Thread Shinya Kuribayashi
On 8/23/2012 2:49 AM, Will Deacon wrote: > On Wed, Aug 22, 2012 at 06:15:14PM +0100, Stephen Boyd wrote: >> On 08/22/12 07:29, Arnd Bergmann wrote: >>> read_current_timer is used in the get_cycles() function when >>> ARM_ARCH_TIMER is set, and that function can be inlined into >>> driver modules, s

Re: [RFC 2/4] ARM: dma-mapping: IOMMU allocates pages from pool with GFP_ATOMIC

2012-08-22 Thread Minchan Kim
On Wed, Aug 22, 2012 at 03:36:48PM +0200, Hiroshi Doyu wrote: > Hi, > > KyongHo Cho wrote @ Wed, 22 Aug 2012 14:47:00 +0200: > > > vzalloc() call in __iommu_alloc_buffer() also causes BUG() in atomic > > context. > > Right. > > I've been thinking that kzalloc() may be enough here, since > vza

Re: [v2][PATCH 3/3] powerpc/kgdb: restore current_thread_info properly

2012-08-22 Thread tiejun.chen
On 08/23/2012 11:14 AM, Nicholas A. Bellinger wrote: > On Thu, 2012-08-23 at 10:10 +0800, Tiejun Chen wrote: >> For powerpc BooKE and e200, singlestep is handled on the critical/dbg >> exception stack. This causes current_thread_info() to fail for kgdb >> internal, so previously We work around this

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

2012-08-22 Thread Paul E. McKenney
On Thu, Aug 23, 2012 at 01:01:43PM +1000, Stephen Rothwell wrote: > Hi Paul, > > Today's linux-next merge of the rcu tree got a conflict in arch/Kconfig > between commit b952741c8079 ("cputime: Generalize > CONFIG_VIRT_CPU_ACCOUNTING") from the tip tree and commit 3dbdfc26e27f > ("rcu: Settle conf

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

2012-08-22 Thread Stephen Rothwell
: introduce readonly memslot"). I have used the kvm tree from next-20120822 for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpbsNlhL91Gt.pgp Description: PGP signature

Re: [PATCH 74/74] lto, workaround: Mark do_futex noinline to prevent clobbering ebp

2012-08-22 Thread H. Peter Anvin
On 08/22/2012 07:29 PM, Andi Kleen wrote: How about just use register arguments for the first three arguments. This should work for the syscalls at least (may be too risky for all other asm entry points) Well, it's just an effort to convert each one in turn... And for syscalls with more than

Re: [v2][PATCH 3/3] powerpc/kgdb: restore current_thread_info properly

2012-08-22 Thread Nicholas A. Bellinger
On Thu, 2012-08-23 at 10:10 +0800, Tiejun Chen wrote: > For powerpc BooKE and e200, singlestep is handled on the critical/dbg > exception stack. This causes current_thread_info() to fail for kgdb > internal, so previously We work around this issue by copying > the thread_info from the kernel stack

Re: Re: [PATCH 3/5] trace-cmd: Support trace-agent of virtio-trace

2012-08-22 Thread Yoshihiro YUNOMAE
Hi Steven, (2012/08/22 22:51), Steven Rostedt wrote: On Wed, 2012-08-22 at 17:43 +0900, Yoshihiro YUNOMAE wrote: Add read path and control path to use trace-agent of virtio-trace. When we use trace-agent, trace-cmd will be used as follows: # AGENT_READ_DIR=/tmp/virtio-trace/tracing \

Re: [PATCH 0/2] charger-manager: Stop charging when charge cable is detached and code clean

2012-08-22 Thread Anton Vorontsov
On Fri, Jul 27, 2012 at 02:01:25PM +0900, Chanwoo Choi wrote: > This patchset fix bug related to stop charging when charger cable is > detached and check return value of regulator_enable/disable() function > to confirm correct operation of enabled or disabling regulator for > charging. Second patch

[PATCH v2] smb347_charger: fix battery status reporting logic for charger faults

2012-08-22 Thread Ramakrishna Pallala
This patch checks for charger status register for determining the battery charging status and reports Discharing/Charging/Not Charging/Full accordingly. This patch also adds the interrupt support for Safety Timer Expiration. This interrupt is helpful in debugging the cause for charger fault. Sign

linux-next: manual merge of the rcu tree with the tip tree

2012-08-22 Thread Stephen Rothwell
Hi Paul, Today's linux-next merge of the rcu tree got a conflict in arch/Kconfig between commit b952741c8079 ("cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING") from the tip tree and commit 3dbdfc26e27f ("rcu: Settle config for userspace extended quiescent state") from the rcu tree. Just context c

Re: [PATCH 2/5] trace-cmd: Use tracing directory to count CPUs

2012-08-22 Thread Masami Hiramatsu
(2012/08/23 11:01), Masami Hiramatsu wrote: > (2012/08/22 22:41), Steven Rostedt wrote: >> On Wed, 2012-08-22 at 17:43 +0900, Yoshihiro YUNOMAE wrote: >>> From: Masami Hiramatsu >>> >>> Count debugfs/tracing/per_cpu/cpu* to determine the >>> number of CPUs. >> >> I'm curious, do you find that sysc

Re: [PATCH] power_supply: Add new power supply AUTHENTIC property

2012-08-22 Thread Anton Vorontsov
On Thu, Aug 23, 2012 at 06:50:21AM +0530, Ramakrishna Pallala wrote: > It is possible that users can use non-standard chargers > or use invalid batteries especially with mobile devices. > > This patch adds a new power supply property called 'AUTHENTIC' to > indicate this to the user(user space). >

Re: [PATCH 1/2] ds2781_battery: convert to module_platform_driver

2012-08-22 Thread Anton Vorontsov
On Mon, Jul 30, 2012 at 04:29:10PM +0545, Devendra Naga wrote: > module_platform_driver can be used to replace the > platform_driver register and unregister functions, > with the calls to module_init and module_exit, > > i.e. all the code that is doing like the below > > static int __init mymod_i

linux-next: manual merge of the tip tree with the rr tree

2012-08-22 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in arch/Kconfig between commit bd029f48459a ("Make most arch asm/module.h files use asm-generic/module.h") from the rr tree and commit b952741c8079 ("cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING") from the tip tree. Just context ch

Re: [PATCH] twl4030: It would be better not to use the 0b-prefix.

2012-08-22 Thread Anton Vorontsov
On Fri, Aug 17, 2012 at 07:30:46PM +1000, NeilBrown wrote: [...] > > -#define TWL4030_BBISEL_1000uA 0b11 > > +#define TWL4030_BBSEL_MASK 0x0c [...] > Thanks. I'd been meaning to send that patch, but life got in the way > recently. > > Acked-by: NeilBrown Thanks! Applied. -- To unsubscribe

[PATCH] power_supply: Add new power supply AUTHENTIC property

2012-08-22 Thread Ramakrishna Pallala
It is possible that users can use non-standard chargers or use invalid batteries especially with mobile devices. This patch adds a new power supply property called 'AUTHENTIC' to indicate this to the user(user space). Signed-off-by: Ramakrishna Pallala --- Documentation/power/power_supply_class

Re: [PATCH 6/6] ARM: imx: select ARM_CPU_SUSPEND when necessary

2012-08-22 Thread Shawn Guo
On Wed, Aug 22, 2012 at 05:13:10PM +0200, Arnd Bergmann wrote: > On i.MX6, we select ARM_CPU_SUSPEND when building with power management > support, but for some reason this was omitted on i.MX5. Normally we > build kernels for both together so the error only showed up in > randconfig tests. > > Wi

Re: [PATCH] power_supply: Remove broken mark for da9052-battery

2012-08-22 Thread Anton Vorontsov
On Wed, Aug 08, 2012 at 04:08:18PM +0800, Axel Lin wrote: > The fix for MFD part is already merged so we can remove the broken mark > for da9052-battery. > > Signed-off-by: Axel Lin > --- [...] > - depends on BROKEN Applied, thanks a lot! Though, I had to apply the following right after: c

Re: Unable to mount NFSROOT: pcie change breaks e1000?

2012-08-22 Thread Fengguang Wu
On Thu, Aug 23, 2012 at 09:31:32AM +0800, Jiang Liu wrote: > Hi Fengguang, > Could you please help to verify whether following patch > fixes the issue? It works! Thank you for the quick fix! Tested-by: Fengguang Wu > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > index f6b491b..

Re: [PATCH 74/74] lto, workaround: Mark do_futex noinline to prevent clobbering ebp

2012-08-22 Thread Andi Kleen
> The right thing to do is to change head_32.S to not violate the i386 > ABI. Arguments pushed (by value) on the stack are property of the > callee, that is, they are volatile, so the hack of making them do double > duty as both being saved and passed as arguments is just plain bogus. > The proble

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

2012-08-22 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 f73fb85..76d3de1 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -151,6 +151,8

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

2012-08-22 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 v9 4/6] add a new qevent: QEVENT_GUEST_PANICKED

2012-08-22 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 480f583..cd2adb7 100644 --- a/monitor.c +++ b/monitor.c @@ -455,6 +455,7 @@ sta

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

2012-08-22 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 v9 2/6] kvm: Update kernel headers

2012-08-22 Thread Wen Congyang
Corresponding kvm.git hash: 35f2d16b 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

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

2012-08-22 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 v9] kvm: notify host when the guest is panicked

2012-08-22 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: [PATCH 2/2] lp8727_charger: unregister power supply at error path of lp8727_register_psy

2012-08-22 Thread Anton Vorontsov
On Mon, Jul 30, 2012 at 04:47:44AM +, Pallala, Ramakrishna wrote: > > if (power_supply_register(pchg->dev, &psy->usb)) > > - goto err_psy; > > + goto err_psy_ac; > > "err_psy_ac" label name is confusing. Why can't you use err_psy_usb > > > if (power_supply_register

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-22 Thread Rafael Aquini
On Wed, Aug 22, 2012 at 12:33:17PM +0300, Michael S. Tsirkin wrote: > Hmm, so this will busy wait which is unelegant. > We need some event IMO. No, it does not busy wait. leak_balloon() is mutual exclusive with migration steps, so for the case we have one racing against the other, we really want l

[v2][PATCH 3/3] powerpc/kgdb: restore current_thread_info properly

2012-08-22 Thread Tiejun Chen
For powerpc BooKE and e200, singlestep is handled on the critical/dbg exception stack. This causes current_thread_info() to fail for kgdb internal, so previously We work around this issue by copying the thread_info from the kernel stack before calling kgdb_handle_exception, and copying it back afte

[v2][PATCH 1/3] kgdb,ppc: do not set kgdb_single_step on ppc

2012-08-22 Thread Tiejun Chen
The kgdb_single_step flag has the possibility to indefinitely hang the system on an SMP system. The x86 arch have the same problem, and that problem was fixed by commit 8097551d9ab9b9e3630(kgdb,x86: do not set kgdb_single_step on x86). This patch does the same behaviors as x86's patch. Signed-off

[v2][PATCH 2/3] powerpc: Bail out of KGDB when we've been triggered

2012-08-22 Thread Tiejun Chen
We need to skip a breakpoint exception when it occurs after a breakpoint has already been removed. Signed-off-by: Tiejun Chen --- v2: simply kgdb_skipexception() return path. arch/powerpc/kernel/kgdb.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch

Re: [PATCH 0/8] netdev/MIPS: Improvements to octeon_mgmt Ethernet driver.

2012-08-22 Thread David Miller
From: David Daney Date: Tue, 21 Aug 2012 11:45:04 -0700 > From: David Daney > > Recent additions to the OCTEON SoC family have included enhancements > to the MIX (octeon_mgmt) Ethernet hardware. These include: > > o 1Gig support (up from 100M). > > o Hardware timestamping for PTP. > > Here

Re: [PATCH 74/74] lto, workaround: Mark do_futex noinline to prevent clobbering ebp

2012-08-22 Thread H. Peter Anvin
On 08/22/2012 05:17 PM, H. Peter Anvin wrote: On 08/18/2012 07:57 PM, Andi Kleen wrote: From: Andi Kleen On a 32bit build gcc 4.7 with LTO decides to clobber the 6th argument on the stack. Unfortunately this corrupts the user EBP and leads to later crashes. For now mark do_futex noinline to p

RE: [PATCH] power_supply: Add new power supply VALID property

2012-08-22 Thread Pallala, Ramakrishna
> On Sun, Jul 29, 2012 at 09:01:54AM +0530, Ramakrishna Pallala wrote: > > It is possible that users can use non-standard chargers or use invalid > > batteries especially with mobile devices. > > Maybe 'original' or 'authentic' would be a better term for this? > For me, 'valid' is kind of too broa

Re: [PATCH 5/6] ARM: imx: select CPU_FREQ_TABLE when needed

2012-08-22 Thread Shawn Guo
On Wed, Aug 22, 2012 at 05:13:09PM +0200, Arnd Bergmann wrote: > The i.MX cpufreq implementation uses the CPU_FREQ_TABLE helpers, > so it needs to select that code to be built. This problem has > apparently existed since the i.MX cpufreq code was first merged > in v3.6.37. > s/v3.6.37/v2.6.37? Ot

Re: [PATCH 4/6] ARM: imx: fix ksz9021rn_phy_fixup

2012-08-22 Thread Shawn Guo
On Wed, Aug 22, 2012 at 05:13:08PM +0200, Arnd Bergmann wrote: > The ksz9021rn_phy_fixup and mx6q_sabrelite functions try to > set up an ethernet phy if they can. They do check whether > phylib is enabled, but unfortunately the functions can only > be called from platform code if phylib is builtin,

Re: [PATCH 3/6] ARM: imx: build pm-imx5 code only when PM is enabled

2012-08-22 Thread Shawn Guo
On Wed, Aug 22, 2012 at 05:13:07PM +0200, Arnd Bergmann wrote: > This moves the imx5 pm code out of the list of unconditionally > compiled files for imx5, mirroring what we already do for imx6 > and how it was done before the code was move from mach-mx5 to > mach-imx in v3.3. > > Without this patc

Re: [PATCH 2/3] powerpc: Bail out of KGDB when we've been triggered

2012-08-22 Thread tiejun.chen
On 08/22/2012 11:07 PM, Tabi Timur-B04825 wrote: > On Wed, Aug 22, 2012 at 5:43 AM, Tiejun Chen > wrote: > >> +int kgdb_skipexception(int exception, struct pt_regs *regs) >> +{ >> + if (kgdb_isremovedbreak(regs->nip)) >> + return 1; >> + >> + return 0; >> +} > > int kg

Re: [PATCH 2/5] trace-cmd: Use tracing directory to count CPUs

2012-08-22 Thread Masami Hiramatsu
(2012/08/22 22:41), Steven Rostedt wrote: > On Wed, 2012-08-22 at 17:43 +0900, Yoshihiro YUNOMAE wrote: >> From: Masami Hiramatsu >> >> Count debugfs/tracing/per_cpu/cpu* to determine the >> number of CPUs. > > I'm curious, do you find that sysconf doesn't return the # of CPUs the > system has?

Re: [PATCH] power_supply: Add new power supply VALID property

2012-08-22 Thread Anton Vorontsov
On Sun, Jul 29, 2012 at 09:01:54AM +0530, Ramakrishna Pallala wrote: > It is possible that users can use non-standard chargers > or use invalid batteries especially with mobile devices. Maybe 'original' or 'authentic' would be a better term for this? For me, 'valid' is kind of too broad and confus

Re: [PATCH 2/14] drivers/power/ab8500_btemp.c: fix error return code

2012-08-22 Thread Anton Vorontsov
On Sun, Aug 19, 2012 at 10:44:22AM +0200, Julia Lawall wrote: > From: Julia Lawall [...] > Signed-off-by: Julia Lawall 2,3,4,5,6 applied, thanks! > --- > drivers/power/ab8500_btemp.c |1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/ab850

Re: [PATCH v3 00/32] provide interfaces to access PCIe capabilities registers

2012-08-22 Thread Don Dutile
On 08/22/2012 12:28 PM, Bjorn Helgaas wrote: On Mon, Aug 20, 2012 at 9:40 PM, Cui, Dexuan wrote: Bjorn Helgaas wrote on 2012-08-21: I am still concerned about reset_intel_82599_sfp_virtfn(). It looks wrong and possibly unnecessary. It looks wrong because it sets PCI_EXP_DEVCTL_BCR_FLR and

Re: Unable to mount NFSROOT: pcie change breaks e1000?

2012-08-22 Thread Jiang Liu
Hi Fengguang, Could you please help to verify whether following patch fixes the issue? Thanks! diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index f6b491b..fac08f5 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -842,6 +842,9 @@ static int pci_save_pcie_state(struct

[PATCH v3 1/3] dmaengine: add TI EDMA DMA engine driver

2012-08-22 Thread Matt Porter
Add a DMA engine driver for the TI EDMA controller. This driver is implemented as a wrapper around the existing DaVinci private DMA implementation. This approach allows for incremental conversion of each peripheral driver to the DMA engine API. The EDMA driver supports slave transfers but does not

[PATCH v3 3/3] spi: spi-davinci: convert to DMA engine API

2012-08-22 Thread Matt Porter
Removes use of the DaVinci EDMA private DMA API and replaces it with use of the DMA engine API. Signed-off-by: Matt Porter --- drivers/spi/spi-davinci.c | 292 - 1 file changed, 130 insertions(+), 162 deletions(-) diff --git a/drivers/spi/spi-davinci

[PATCH v3 2/3] mmc: davinci_mmc: convert to DMA engine API

2012-08-22 Thread Matt Porter
Removes use of the DaVinci EDMA private DMA API and replaces it with use of the DMA engine API. Signed-off-by: Matt Porter --- drivers/mmc/host/davinci_mmc.c | 271 1 file changed, 82 insertions(+), 189 deletions(-) diff --git a/drivers/mmc/host/davinci

  1   2   3   4   5   6   7   8   >