RE: [PATCH 1/2] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-10-18 Thread Zang Roy-R61911
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, October 19, 2010 0:07 AM > To: tiejun.chen > Cc: Zang Roy-R61911; linux-...@lists.infradead.org; Wood Scott-B07421; > dedeki...@gmail.com; Lan Chunhe-B25806; linuxppc-...@ozlabs.org; a...@linux- > foundation.org; dw...@infrade

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

2010-10-18 Thread Stephen Rothwell
Hi again, On Tue, 19 Oct 2010 15:48:49 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the tip tree got a conflict in > arch/powerpc/kernel/time.c between commit > cf9efce0ce3136fa076f53e53154e98455229514 ("powerpc: Account time using > timebase rather than PURR") from the powerpc

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

2010-10-18 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in arch/powerpc/kernel/time.c between commit cf9efce0ce3136fa076f53e53154e98455229514 ("powerpc: Account time using timebase rather than PURR") from the powerpc tree and commit e360adbe29241a0194e10e20595360dd7b98a2b3 ("irq_work: Add

Re: CONFIG_FEC is not good for mpc8xx ethernet?

2010-10-18 Thread tiejun.chen
Scott Wood wrote: > On Mon, 18 Oct 2010 16:40:42 +0800 > "tiejun.chen" wrote: > >> Shawn Jin wrote: >>> Hi, >>> >>> My target is a mpc875 based board and has FEC ethernet. The phy is >>> AM79C874. I have the following configuration for the network support. >>> >>> CONFIG_PHYLIB=y >>> CONFIG_NET_E

Re: [PATCH 1/2] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-10-18 Thread tiejun.chen
Scott Wood wrote: > On Mon, 18 Oct 2010 16:55:49 +0800 > "tiejun.chen" wrote: > >> Looks you always iounmap(fsl_lbc_ctrl_dev->regs) on position 'err' but here >> of_iomap() is already failed you should skip iounmap() fsl_lbc_ctrl_dev->regs >> again. So you should improve that as the following on

Re: BUG: dead loop in PowerPC hcall tracepoint (Was: [LTP] [PATCH v2] Add ftrace-stress-test to LTP)

2010-10-18 Thread Li Zefan
Steven Rostedt wrote: > On Mon, 2010-10-18 at 11:19 +0800, Li Zefan wrote: > >> This is a dead loop: >> >> trace_hcall_entry() -> trace_clock_global() -> trace_hcall_entry() .. >> >> And this is a PPC specific bug. Hope some ppc guys will fix it? >> Or we kill trace_clock_global() if no one actual

Re: [PATCH 2/2] ppc: lazy flush_tlb_mm for nohash architectures

2010-10-18 Thread Benjamin Herrenschmidt
On Mon, 2010-10-18 at 16:57 -0500, Dave Kleikamp wrote: > > I didn't like the implementation of a per-core stale map. The existing > implementation flushes the core's tlb, but only clears a specific entry > from the stale map. It's dealing with the stale contexts one at a time, > where the new f

Re: [PATCH RFC] PPC: /dev/mem: All RAM is cacheable, not just the kernel's.

2010-10-18 Thread Kumar Gala
On Oct 18, 2010, at 5:32 PM, Scott Wood wrote: > If mem= is used on the kernel command line to create reserved regions > for userspace to map using /dev/mem, let it be mapped cacheable as long > as it is within the memory region described in the device tree. > > Signed-off-by: Scott Wood > ---

[PATCH RFC] PPC: /dev/mem: All RAM is cacheable, not just the kernel's.

2010-10-18 Thread Scott Wood
If mem= is used on the kernel command line to create reserved regions for userspace to map using /dev/mem, let it be mapped cacheable as long as it is within the memory region described in the device tree. Signed-off-by: Scott Wood --- This isn't just a performance issue, but it could also be a c

Re: [PATCH 2/2] ppc: lazy flush_tlb_mm for nohash architectures

2010-10-18 Thread Dave Kleikamp
On Thu, 2010-10-14 at 11:52 +1100, Benjamin Herrenschmidt wrote: > On Fri, 2010-09-24 at 13:01 -0500, Dave Kleikamp wrote: > > On PPC_MMU_NOHASH processors that support a large number of contexts, > > implement a lazy flush_tlb_mm() that switches to a free context, marking > > the old one stale. T

Re: PROBLEM: memory corrupting bug, bisected to 6dda9d55

2010-10-18 Thread Thomas Gleixner
On Mon, 18 Oct 2010, Andrew Morton wrote: > On Mon, 18 Oct 2010 12:33:31 +0100 > Mel Gorman wrote: > > > A bit but I still don't know why it would cause corruption. Maybe this is > > still > > a caching issue but the difference in timing between list_add and > > list_add_tail > > is enough to

Re: PROBLEM: memory corrupting bug, bisected to 6dda9d55

2010-10-18 Thread pacman
Benjamin Herrenschmidt writes: > > You can do something fun... like a timer interrupt that peeks at those > physical addresses from the linear mapping for example, and try to find > out "when" they get set to the wrong value (you should observe the load > from disk, then the corruption, unless the

Re: PROBLEM: memory corrupting bug, bisected to 6dda9d55

2010-10-18 Thread Benjamin Herrenschmidt
On Mon, 2010-10-18 at 14:10 -0500, pac...@kosh.dhis.org wrote: > I've been flailing around quite a bit. Here's my latest result: > > Since I can view the corruption with md5sum /sbin/e2fsck, I know it's in a > clean cached page. So I made an extra copy of /sbin/e2fsck, which won't be > loaded int

Re: PROBLEM: memory corrupting bug, bisected to 6dda9d55

2010-10-18 Thread Benjamin Herrenschmidt
On Mon, 2010-10-18 at 12:37 -0700, Andrew Morton wrote: > Well, you've spotted a bug so I'd say we fix it asap. > > It's a bit of a shame that we lose the only known way of reproducing a > different bug, but presumably that will come back and bite someone > else > one day, and we'll fix it then :(

Re: PROBLEM: memory corrupting bug, bisected to 6dda9d55

2010-10-18 Thread Benjamin Herrenschmidt
On Wed, 2010-10-13 at 15:40 +0100, Mel Gorman wrote: > > This is somewhat contrived but I can see how it might happen even on one > CPU particularly if the L1 cache is virtual and is loose about checking > physical tags. > > > How sensitive/vulnerable is PPC32 to such things? > > > > I can not

Re: PROBLEM: memory corrupting bug, bisected to 6dda9d55

2010-10-18 Thread Andrew Morton
On Mon, 18 Oct 2010 12:33:31 +0100 Mel Gorman wrote: > A bit but I still don't know why it would cause corruption. Maybe this is > still > a caching issue but the difference in timing between list_add and > list_add_tail > is enough to hide the bug. It's also possible there are some registers >

Re: PROBLEM: memory corrupting bug, bisected to 6dda9d55

2010-10-18 Thread pacman
Mel Gorman writes: > > A bit but I still don't know why it would cause corruption. Maybe this is > still > a caching issue but the difference in timing between list_add and > list_add_tail > is enough to hide the bug. It's also possible there are some registers > ioremapped after the memmap arra

[PATCH 4/7] ppc/cell: beat dma ops cleanup

2010-10-18 Thread Nishanth Aravamudan
direct_dma_ops is the default pci dma ops. No need to call a function to get the pci dma ops, we know they are the dma_direct_ops. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Acked-by: Arnd Bergmann --- arch/powerpc/platforms/cell/beat_iommu.c |3 +-- 1 files changed,

RE: msi_bitmap.c question

2010-10-18 Thread Tirumala Marri
> > > > I am trying to resubmit a patch for MSI support for ppc4xx devices. > > One of the review feedback was not to use the bit map as it is only > > for the devices which don’t have hard wired mapping between interrupt > > controller interrupts and MSI number. For example intr-ctrl0 > interrupt

Re: Freescale P2020 CPU Freeze over PCIe abort signal

2010-10-18 Thread Eran Liberty
Eran Liberty wrote: This should probably go to the Freescale support, as it feels like a hardware issue yet the end result is a very frozen Linux kernel so I post here first... I have a programmable FPGA PCIe device connected to a Freescale's P2020 PCIe port. As part of the bring-up tests, we

[PATCH 6/7] ppc/pseries: iommu cleanup

2010-10-18 Thread Nishanth Aravamudan
No need to initialize per-cpu pointer to NULL, it is the default. Direct dma ops and no setup are the defaults, no need to set for iommu-off. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Reviewed-by: Grant Likely --- arch/powerpc/platforms/pseries/iommu.c |9 ++---

[PATCH 1/7] microblaze: pci-common cleanup

2010-10-18 Thread Nishanth Aravamudan
Use set_dma_ops and remove now used-once oddly named temp pointer sd. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Cc: b...@kernel.crashing.org Cc: linuxppc-dev@lists.ozlabs.org --- arch/microblaze/pci/pci-common.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(

[PATCH 7/7] ppc64 iommu: use coherent_dma_mask for alloc_coherent

2010-10-18 Thread Nishanth Aravamudan
The IOMMU code has been passing the dma-mask instead of the coherent_dma_mask to the iommu allocator. Coherent allocations should be made using the coherent_dma_mask. Also update the vio code to ensure the coherent_dma_mask is set. Without this change drivers, such as ibmvscsi, fail to load with

[PATCH 2/7] ppc/vio: use dma ops helpers

2010-10-18 Thread Nishanth Aravamudan
Use the set_dma_ops helper. Instead of modifying vio_dma_mapping_ops, just create a trivial wrapper for dma_supported. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan --- arch/powerpc/kernel/vio.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a

[PATCH 5/7] ppc/dart: iommu table cleanup

2010-10-18 Thread Nishanth Aravamudan
No need to set the device tree device_node pci node iommu pointer, its only used for dlpar remove. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan --- arch/powerpc/sysdev/dart_iommu.c |9 + 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/s

[PATCH 3/7] ppc/pasemi: clean up pasemi iommu table initializations

2010-10-18 Thread Nishanth Aravamudan
No need for empty helpers with iommu off, the ppc_md hooks are optional. The direct_dma_ops are the default pci_dma_ops, so no need to set in the them iommu off case. No need to set the device tree device_node pci node iommu pointer, its only used for dlpar remove. Signed-off-by: Milton Miller

Re: CONFIG_FEC is not good for mpc8xx ethernet?

2010-10-18 Thread Scott Wood
On Mon, 18 Oct 2010 16:40:42 +0800 "tiejun.chen" wrote: > Shawn Jin wrote: > > Hi, > > > > My target is a mpc875 based board and has FEC ethernet. The phy is > > AM79C874. I have the following configuration for the network support. > > > > CONFIG_PHYLIB=y > > CONFIG_NET_ETHERNET=y > > CONFIG_MI

Re: [PATCH 1/2] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-10-18 Thread Scott Wood
On Mon, 18 Oct 2010 16:55:49 +0800 "tiejun.chen" wrote: > Looks you always iounmap(fsl_lbc_ctrl_dev->regs) on position 'err' but here > of_iomap() is already failed you should skip iounmap() fsl_lbc_ctrl_dev->regs > again. So you should improve that as the following on 'err', or layout 'err' > i

RE: Parsing DTS file

2010-10-18 Thread Ivo Schenk
>Hello all, >I'm sure there's a standard way of doing this: I'd like to access some info >from the DTS file from a usermode program (things like address of device, >etc...) >What is the best way to do this ? Write a parser ? Or query the running kernel >somehow ? Compile your kernel with CONFIG

Re: BUG: dead loop in PowerPC hcall tracepoint (Was: [LTP] [PATCH v2] Add ftrace-stress-test to LTP)

2010-10-18 Thread Steven Rostedt
On Mon, 2010-10-18 at 11:19 +0800, Li Zefan wrote: > This is a dead loop: > > trace_hcall_entry() -> trace_clock_global() -> trace_hcall_entry() .. > > And this is a PPC specific bug. Hope some ppc guys will fix it? > Or we kill trace_clock_global() if no one actually uses it.. trace_clock_glob

Re: Parsing DTS file

2010-10-18 Thread David Gibson
On Mon, Oct 18, 2010 at 02:13:58PM +0200, Guillaume Dargaud wrote: > Hello all, > I'm sure there's a standard way of doing this: I'd like to access some info > from the DTS file from a usermode program (things like address of device, > etc...) > What is the best way to do this ? Write a parser ?

[PATCH -mm 2/2] RapidIO: Fix destructive port EM initialization for Tsi568

2010-10-18 Thread Alexandre Bounine
Replaces possibly damaging broadcast writes into the per-port SP_MODE registers with individual writes for each port. This will preserve individual port configurations in case if ports are configured differently. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: T

[PATCH -mm 1/2] RapidIO: Fix maximum port number in tsi57x EM initialization

2010-10-18 Thread Alexandre Bounine
Replace hardcoded maximum port number with actual reported number of switch ports. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- drivers/rapidio/switches/tsi57x.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-

Parsing DTS file

2010-10-18 Thread Guillaume Dargaud
Hello all, I'm sure there's a standard way of doing this: I'd like to access some info from the DTS file from a usermode program (things like address of device, etc...) What is the best way to do this ? Write a parser ? Or query the running kernel somehow ? -- Guillaume Dargaud http://www.gdarg

Re: Freescale P2020 CPU Freeze over PCIe abort signal

2010-10-18 Thread Eran Liberty
tiejun.chen wrote: AFAIK we can set one bit on PEX_ERR_DISR to detect PCI Express completion time-out. If so one interrupt should be issued. But I'm not sure if this can fix your issue. Tiejun As I understand the problem, this will not help me as the CPU itself is on hold waiting for the ass

Re: PROBLEM: memory corrupting bug, bisected to 6dda9d55

2010-10-18 Thread Mel Gorman
On Wed, Oct 13, 2010 at 12:52:05PM -0500, pac...@kosh.dhis.org wrote: > Mel Gorman writes: > > > > On Mon, Oct 11, 2010 at 02:00:39PM -0700, Andrew Morton wrote: > > > > > > It's corruption of user memory, which is unusual. I'd be wondering if > > > there was a pre-existing bug which 6dda9d55bf5

Re: BUG: dead loop in PowerPC hcall tracepoint (Was: [LTP] [PATCH v2] Add ftrace-stress-test to LTP)

2010-10-18 Thread Benjamin Herrenschmidt
On Mon, 2010-10-18 at 11:19 +0800, Li Zefan wrote: > Cc: Steven > Cc: Ingo > Cc: Peter > Cc: Anton Blanchard > Cc: Paul Mackerras > > For those Cced, More information here: > > http://marc.info/?l=ltp-list&m=128569007015044&w=2 > http://marc.info/?l=ltp-list&m=128696942432669&w=2 Hrm... that's

Re: 64K PAGE_SIZE and arch/powerpc/kernel/vdso.c

2010-10-18 Thread Benjamin Herrenschmidt
On Mon, 2010-10-18 at 10:44 +1100, Michael Neuling wrote: > > Greetings Linux-ppc64 folks, > > > > While trying to compile v2.6.36-rc8 with PAGE_SIZE=65536 I run into the > > following compile failure w/ strict checking on a RHEL5.4 / gcc (GCC) > > 4.1.2 20080704 (Red Hat 4.1.2-46) system: > > >

Re: Freescale P2020 CPU Freeze over PCIe abort signal

2010-10-18 Thread tiejun.chen
Eran Liberty wrote: > This should probably go to the Freescale support, as it feels like a > hardware issue yet the end result is a very frozen Linux kernel so I > post here first... > > I have a programmable FPGA PCIe device connected to a Freescale's P2020 > PCIe port. As part of the bring-up te

Re: [PATCH 1/2] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-10-18 Thread tiejun.chen
tiejun.chen wrote: > Zang Roy-R61911 wrote: >>> -Original Message- >>> From: tiejun.chen [mailto:tiejun.c...@windriver.com] >>> Sent: Monday, October 18, 2010 16:56 PM >>> To: Zang Roy-R61911 >>> Cc: linux-...@lists.infradead.org; Wood Scott-B07421; dedeki...@gmail.com; >>> Lan >>> Chunhe-

Re: [PATCH 1/2] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-10-18 Thread tiejun.chen
Zang Roy-R61911 wrote: > >> -Original Message- >> From: tiejun.chen [mailto:tiejun.c...@windriver.com] >> Sent: Monday, October 18, 2010 16:56 PM >> To: Zang Roy-R61911 >> Cc: linux-...@lists.infradead.org; Wood Scott-B07421; dedeki...@gmail.com; >> Lan >> Chunhe-B25806; linuxppc-...@ozla

RE: [PATCH 1/2] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-10-18 Thread Zang Roy-R61911
> -Original Message- > From: tiejun.chen [mailto:tiejun.c...@windriver.com] > Sent: Monday, October 18, 2010 16:56 PM > To: Zang Roy-R61911 > Cc: linux-...@lists.infradead.org; Wood Scott-B07421; dedeki...@gmail.com; Lan > Chunhe-B25806; linuxppc-...@ozlabs.org; a...@linux-foundation.org;

Re: [PATCH 1/2] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-10-18 Thread tiejun.chen
Roy Zang wrote: > Move Freescale elbc interrupt from nand dirver to elbc driver. > Then all elbc devices can use the interrupt instead of ONLY nand. > > For former nand driver, it had the two functions: > > 1. detecting nand flash partitions; > 2. registering elbc interrupt. > > Now, second func

Re: CONFIG_FEC is not good for mpc8xx ethernet?

2010-10-18 Thread tiejun.chen
Shawn Jin wrote: > Hi, > > My target is a mpc875 based board and has FEC ethernet. The phy is > AM79C874. I have the following configuration for the network support. > > CONFIG_PHYLIB=y > CONFIG_NET_ETHERNET=y > CONFIG_MII=y > CONFIG_FS_ENET=y > CONFIG_FS_ENET_HAS_FEC=y > CONFIG_FS_ENET_MDIO_FEC=

Re: eSDHC controller driver on MPC8308rdb

2010-10-18 Thread Tonyliu
Maria Johansen wrote: Hello, (apologies for writing such a long e-mail, hope you can bother to read it all ☺ ) I have some difficulties with the eSDHC controller driver used on a MPC8308 evaluation board with kernel 2.6.36-rc7, and hope that some of you may be able to help me with the debugging.

Re: Help about chip select on SPI slave devices

2010-10-18 Thread tiejun.chen
WANG YiFei wrote: > Hi, > > We have a board which has 1 SPI master controller and 4 SPI slave devices, > and we'd like to use 2 GPIOs to demux to chip select these slave devices. > Can anyone tell me if current powerpc dts support demuxer for chip select for > spi slave devices? So far as I know

CONFIG_FEC is not good for mpc8xx ethernet?

2010-10-18 Thread Shawn Jin
Hi, My target is a mpc875 based board and has FEC ethernet. The phy is AM79C874. I have the following configuration for the network support. CONFIG_PHYLIB=y CONFIG_NET_ETHERNET=y CONFIG_MII=y CONFIG_FS_ENET=y CONFIG_FS_ENET_HAS_FEC=y CONFIG_FS_ENET_MDIO_FEC=y However I found that the phy support

[PATCH 2/2] P4080/mtd: Fix the freescale lbc issue with 36bit mode

2010-10-18 Thread Roy Zang
From: Lan Chunhe-B25806 When system uses 36bit physical address, res.start is 36bit physical address. But the function of in_be32 returns 32bit physical address. Then both of them compared each other is wrong. So by converting the address of res.start into the right format fixes this issue. Sign

[PATCH 1/2] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-10-18 Thread Roy Zang
Move Freescale elbc interrupt from nand dirver to elbc driver. Then all elbc devices can use the interrupt instead of ONLY nand. For former nand driver, it had the two functions: 1. detecting nand flash partitions; 2. registering elbc interrupt. Now, second function is removed to fsl_lbc.c. Sig