[PATCH] powerpc: Set paca-data_offset = 0 for boot cpu

2012-09-21 Thread Michael Ellerman
In commit 407821a we assigned a poison value to the paca-data_offset. Unfortunately with CONFIG_LOCK_STAT=y lockdep will read write to percpu data very early in boot, prior to us initialising the percpu areas, leading to a crash. We have been getting away with this because the data_offset was

[PATCH] powerpc: Remove tlb batching hack for nighthawk

2012-09-21 Thread Michael Ellerman
In hpte_init_native() we call tlb_batching_enabled() to decide if we should setup ppc_md.flush_hash_range. tlb_batching_enabled() checks the _unflattened_ device tree, to see if we are running on a nighthawk. Since commit a223535 (dont allow pSeries_probe to succeed without initialising MMU, Dec

Re: [PATCH] powerpc: Set paca-data_offset = 0 for boot cpu

2012-09-21 Thread Aneesh Kumar K.V
Michael Ellerman mich...@ellerman.id.au writes: In commit 407821a we assigned a poison value to the paca-data_offset. Unfortunately with CONFIG_LOCK_STAT=y lockdep will read write to percpu data very early in boot, prior to us initialising the percpu areas, leading to a crash. We have

Re: [PATCH v3 1/2] mmc: Move mmc_delay() to include/linux/mmc/core.h

2012-09-21 Thread Chunhe Lan
On 08/10/2012 09:27 AM, Arnd Bergmann wrote: On Friday 10 August 2012, Chunhe Lan wrote: +static inline void mmc_delay(unsigned int ms) +{ + if (ms 1000 / HZ) { + cond_resched(); + mdelay(ms); + } else { + msleep(ms); + } +} I would

[PATCH] arch/powerpc: Don't release eeh_mutex in eeh_phb_pe_get

2012-09-21 Thread Aneesh Kumar K.V
From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com = [ BUG: bad unlock balance detected! ] 3.6.0-rc5-00338-gcaa1d63-dirty #6 Not tainted - swapper/0/1 is trying to release lock (eeh_mutex) at: [c0058218]

Re: [PATCH] arch/powerpc: Don't release eeh_mutex in eeh_phb_pe_get

2012-09-21 Thread Gavin Shan
On Fri, Sep 21, 2012 at 02:59:46PM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com = [ BUG: bad unlock balance detected! ] 3.6.0-rc5-00338-gcaa1d63-dirty #6 Not tainted - swapper/0/1 is

PCI device not working

2012-09-21 Thread Davide Viti
Hi, I'm working on a custom board based on P1020 with two (identical) PCI devices attached; The work is derived from another board with a single instance of that device. The system is based on u-boot-2009.11 and Linux 2.6.34.6 The pci command on u-boot, shows me both the PCI controllers and the

Re: [PATCH v3 1/2] mmc: Move mmc_delay() to include/linux/mmc/core.h

2012-09-21 Thread Arnd Bergmann
On Friday 21 September 2012, Chunhe Lan wrote: On 08/10/2012 09:27 AM, Arnd Bergmann wrote: On Friday 10 August 2012, Chunhe Lan wrote: cond_resched(); mdelay(ms); sets off alarm bells, and I would always replace that with msleep(). I think that it does not replace

Re: [PATCH] powerpc/fsl-pci: use 'Header Type' to identify PCIE mode

2012-09-21 Thread Kumar Gala
On Sep 20, 2012, at 10:37 PM, Lian Minghaun-b31939 wrote: Hi Kumar, please see my comments inline. On 09/19/2012 10:22 PM, Kumar Gala wrote: On Sep 19, 2012, at 2:23 AM, Minghuan Lian wrote: The original code uses 'Programming Interface' field to judge if PCIE is EP or RC mode,

Re: [PATCH][V4] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-09-21 Thread Kumar Gala
On Sep 17, 2012, at 9:10 PM, Jia Hongtao wrote: Power supply for PCI inbound/outbound window registers is off when system go to deep-sleep state. We save the values of registers before suspend and restore to registers after resume. Signed-off-by: Jiang Yutang b14...@freescale.com

Re: PCI device not working

2012-09-21 Thread Kumar Gala
On Sep 21, 2012, at 6:33 AM, Davide Viti wrote: Hi, I'm working on a custom board based on P1020 with two (identical) PCI devices attached; The work is derived from another board with a single instance of that device. The system is based on u-boot-2009.11 and Linux 2.6.34.6 The pci

Re: PCI device not working

2012-09-21 Thread Davide Viti
I mean there are two controllers and both of them have a device subtended (both 0x1b65:0xabba). u-boot can see both devices, linux detects only the device attached to the first controller. Here's the output of lspci and /proc/iomem : root@(none):/# lspci -v :00:00.0 Class 0604: Device

Re: [PATCH v3] powerpc/usb: fix bug of CPU hang when missing USB PHY clock

2012-09-21 Thread Greg KH
On Tue, Sep 18, 2012 at 04:52:39PM +0800, Shengzhou Liu wrote: when missing USB PHY clock, kernel booting up will hang during USB initialization. We should check USBGP[PHY_CLK_VALID] bit to avoid CPU hanging in this case. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- v3

Probing for native availability of isel from userspace

2012-09-21 Thread malc
Hello, Is it possible to determine if _native_ isel is available from userspace somehow? So far my searches on the web and within kernel (headers)/glibc were fruitless (aux vectors, cpu_user_features), few people people (Hollis Blanchard, Richard Henderson) suggested PPC_FEATURE_ARCH_2_06, but

Re: linux-next: build failure after merge of the final tree (net-next tree related)

2012-09-21 Thread Benjamin Herrenschmidt
On Thu, 2012-09-20 at 18:53 -0400, David Miller wrote: From: Benjamin Herrenschmidt b...@kernel.crashing.org Date: Fri, 21 Sep 2012 08:22:44 +1000 Hrm, that's ancient gunk, I'll have to dig. We potentially can support ISA devices DMA'ing from an ISA bridge... but via the iommu, which means