SATA hang on 8315E triggered by heavy flash write?

2013-05-15 Thread Anthony Foiani
Greetings. We're using a board derived from the MPC8315E. Fairly regularly, the SATA connection will freeze up while we are writing to flash memory: [ 839.806884] ata2.00: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x6 frozen [ 839.814201] ata2.00: failed command: WRITE DMA [ 839.8

Re: [PATCH v1 00/22] powerpc/eeh: Enhance converting EEH dev

2013-05-15 Thread Gavin Shan
On Wed, May 15, 2013 at 03:58:57PM +1000, Benjamin Herrenschmidt wrote: >On Wed, 2013-05-15 at 13:30 +0800, Gavin Shan wrote: >> >There is an error injection framework we can use nowadays, or maybe you can >> >put this in tools/powerpc ? >> > >> >> Ben, we don't have error injection framework yet.

[PATCH] powerpc: remove dependency on MV64360

2013-05-15 Thread Paul Bolle
The Kconfig entry that allows to "Distribute interrupts on all CPUs by default" has a (negative) dependency on MV64360. But that Kconfig symbol was removed in v2.6.27, which means that this dependency has evaluated to true ever since. It can be removed too. Signed-off-by: Paul Bolle --- Tested by

Re: [PATCH v1 00/22] powerpc/eeh: Enhance converting EEH dev

2013-05-15 Thread Benjamin Herrenschmidt
On Wed, 2013-05-15 at 16:47 +0800, Gavin Shan wrote: > > Ok. Ben. Could you please point me the source code of the error > injection framework? :-) > I think you're not talking about userland utility "errinject". It's minimal, it's just the stuff in lib/fault-inject which provides a framework for

Re: [PATCHv5 0/2] Speed Cap fixes for ppc64

2013-05-15 Thread Kleber Sacilotto de Souza
On 05/06/2013 11:32 AM, Alex Deucher wrote: On Fri, May 3, 2013 at 7:01 PM, Benjamin Herrenschmidt wrote: On Fri, 2013-05-03 at 19:43 -0300, Kleber Sacilotto de Souza wrote: This patch series does: 1. max_bus_speed is used to set the device to gen2 speeds 2. on power there's no longer a

Re: [PATCHv5 0/2] Speed Cap fixes for ppc64

2013-05-15 Thread Alex Deucher
On Wed, May 15, 2013 at 8:35 AM, Kleber Sacilotto de Souza wrote: > On 05/06/2013 11:32 AM, Alex Deucher wrote: >> >> On Fri, May 3, 2013 at 7:01 PM, Benjamin Herrenschmidt >> wrote: >>> >>> On Fri, 2013-05-03 at 19:43 -0300, Kleber Sacilotto de Souza wrote: >>> This patch series does:

Re: [PATCHv5 0/2] Speed Cap fixes for ppc64

2013-05-15 Thread Kleber Sacilotto de Souza
On 05/15/2013 09:58 AM, Alex Deucher wrote: On Wed, May 15, 2013 at 8:35 AM, Kleber Sacilotto de Souza wrote: On 05/06/2013 11:32 AM, Alex Deucher wrote: On Fri, May 3, 2013 at 7:01 PM, Benjamin Herrenschmidt wrote: On Fri, 2013-05-03 at 19:43 -0300, Kleber Sacilotto de Souza wrote: This

Re: [PATCH v2, part 1 3/9] PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) instead

2013-05-15 Thread Liu Jiang
On Wed 15 May 2013 02:52:51 AM CST, Yinghai Lu wrote: On Tue, May 14, 2013 at 9:57 AM, Liu Jiang wrote: On Tue 14 May 2013 11:10:33 PM CST, Yinghai Lu wrote: On Tue, May 14, 2013 at 7:59 AM, Liu Jiang wrote: On 05/14/2013 04:26 PM, Gu Zheng wrote: I suggest to use pci_release_dev() i

Re: [PATCH v2, part 1 3/9] PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) instead

2013-05-15 Thread Yinghai Lu
On Wed, May 15, 2013 at 7:39 AM, Liu Jiang wrote: > On Wed 15 May 2013 02:52:51 AM CST, Yinghai Lu wrote: >> >> On Tue, May 14, 2013 at 9:57 AM, Liu Jiang wrote: >>> >>> On Tue 14 May 2013 11:10:33 PM CST, Yinghai Lu wrote: On Tue, May 14, 2013 at 7:59 AM, Liu Jiang wrote: > >

Re: [PATCH v2, part 1 3/9] PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) instead

2013-05-15 Thread Liu Jiang
On Wed 15 May 2013 10:43:02 PM CST, Yinghai Lu wrote: On Wed, May 15, 2013 at 7:39 AM, Liu Jiang wrote: On Wed 15 May 2013 02:52:51 AM CST, Yinghai Lu wrote: On Tue, May 14, 2013 at 9:57 AM, Liu Jiang wrote: On Tue 14 May 2013 11:10:33 PM CST, Yinghai Lu wrote: On Tue, May 14, 2013 at 7

Re: [PATCH v2, part 1 3/9] PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) instead

2013-05-15 Thread Yinghai Lu
On Wed, May 15, 2013 at 7:46 AM, Liu Jiang wrote: > On Wed 15 May 2013 10:43:02 PM CST, Yinghai Lu wrote: >> > >> that is another bug, let of guy handle it. >> >> Yinghai > > Hi Yinghai, > I don't know any OF exports, could you please help to CC > some OF experts? powerpc and sparc are usin

Re: [RFC PATCH v2, part 2 09/18] PCI, PPC: use hotplug-safe iterators to walk PCI buses

2013-05-15 Thread Liu Jiang
On 05/15/2013 07:30 AM, Benjamin Herrenschmidt wrote: On Wed, 2013-05-15 at 00:51 +0800, Jiang Liu wrote: Enhance PPC architecture specific code to use hotplug-safe iterators to walk PCI buses. I was about to ack it but then I saw: diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kern

PCI, PPC: use hotplug-safe iterators to walk PCI buses

2013-05-15 Thread Jiang Liu
Enhance PPC architecture specific code to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Gavin Shan Cc: Greg Kroah-Hartman Cc: Grant Likely Cc: Bill Pemberton Cc: Yinghai Lu Cc: linuxppc-dev@lists.ozlabs.org Cc: linu

Re: [PATCH v5, part4 31/41] mm/ppc: prepare for removing num_physpages and simplify mem_init()

2013-05-15 Thread Liu Jiang
On Wed 15 May 2013 08:32:34 AM CST, Benjamin Herrenschmidt wrote: On Wed, 2013-05-08 at 23:51 +0800, Jiang Liu wrote: Prepare for removing num_physpages and simplify mem_init(). No objection, I haven't had a chance to actually build/boot test though. BTW. A recommended way of doing so which i

Re: [PATCH v2, part 1 3/9] PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) instead

2013-05-15 Thread Benjamin Herrenschmidt
On Wed, 2013-05-15 at 22:46 +0800, Liu Jiang wrote: >I don't know any OF exports, could you please help to CC > some OF experts? I wrote that code I think. Sorry, I've missed the beginning of the thread, what is the problem ? Cheers, Ben. ___

Re: [PATCH 1/4] powerpc/book3e: introduce external_input_edge exception handler for 64bit kernel

2013-05-15 Thread Scott Wood
On 05/13/2013 09:03:17 PM, Kevin Hao wrote: On Mon, May 13, 2013 at 10:47:17AM -0500, Scott Wood wrote: > On 05/11/2013 06:26:21 PM, Kevin Hao wrote: > >In the external proxy facility mode, the interrupt is automatically > >acknowledged with the same effect as reading the IACK register. So > >thi

Re: [PATCH v2, part 1 3/9] PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) instead

2013-05-15 Thread Benjamin Herrenschmidt
On Wed, 2013-05-15 at 07:58 -0700, Yinghai Lu wrote: > Ben, > > in drivers/pci/probe.c::pci_scan_device() there is > > pci_set_of_node(dev); > > if (pci_setup_device(dev)) { > kfree(dev); > return NULL; > } > > so if pci_setup_device fail

Re: [PATCH v2, part 1 3/9] PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) instead

2013-05-15 Thread Yinghai Lu
On Wed, May 15, 2013 at 2:32 PM, Benjamin Herrenschmidt wrote: > On Wed, 2013-05-15 at 07:58 -0700, Yinghai Lu wrote: > >> Ben, >> >> in drivers/pci/probe.c::pci_scan_device() there is >> >> pci_set_of_node(dev); >> >> if (pci_setup_device(dev)) { >> kfree(dev); >>

Re: [PATCH v2, part 1 3/9] PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) instead

2013-05-15 Thread Liu Jiang
On Thu 16 May 2013 05:29:31 AM CST, Benjamin Herrenschmidt wrote: On Wed, 2013-05-15 at 22:46 +0800, Liu Jiang wrote: I don't know any OF exports, could you please help to CC some OF experts? I wrote that code I think. Sorry, I've missed the beginning of the thread, what is the problem

Re: [PATCH v1 00/22] powerpc/eeh: Enhance converting EEH dev

2013-05-15 Thread Gavin Shan
On Wed, May 15, 2013 at 07:48:44PM +1000, Benjamin Herrenschmidt wrote: >On Wed, 2013-05-15 at 16:47 +0800, Gavin Shan wrote: >> >> Ok. Ben. Could you please point me the source code of the error >> injection framework? :-) >> I think you're not talking about userland utility "errinject". > >It's

SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
Hi folks ! So I was trying to use my 5020ds to test some stuff today. Since I hadn't used it in a while, I decided to "upgrade" it to the latest NOR etc... Interestingly I discovered that the SATA (which was supposedly dead on the rev1 chip) was actually working with the SDK kernel, while it's st

[PATCH] powerpc: Make ptrace work reliably

2013-05-15 Thread Bharat Bhushan
From: Bharat Bhushan Bharat Bhushan (2): powerpc: debug control and status registers are 32bit => This patch makes debug control and status registers as 32bit as they are. This does not fix anything powerpc: restore dbcr0 on user space exit => This patch fixes the ptrace reliability issue

[PATCH] powerpc: debug control and status registers are 32bit

2013-05-15 Thread Bharat Bhushan
Signed-off-by: Bharat Bhushan --- arch/powerpc/include/asm/processor.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index d7e67ca..5213577 100644 --- a/arch/powerpc/include/asm/processo

[PATCH] powerpc: restore dbcr0 on user space exit

2013-05-15 Thread Bharat Bhushan
On BookE (Branch taken + Single Step) is as same as Branch Taken on BookS and in Linux we simulate BookS behavior for BookE as well. When doing so, in Branch taken handling we want to set DBCR0_IC but we update the current->thread->dbcr0 and not DBCR0. Now on 64bit the current->thread.dbcr0 (and o

[PATCH 0/2 v2] powerpc: Make ptrace work reliably

2013-05-15 Thread Bharat Bhushan
From: Bharat Bhushan v1->v2 - Subject line was missing 0/2, 1/2, 2/2 Bharat Bhushan (2): powerpc: debug control and status registers are 32bit => This patch makes debug control and status registers as 32bit as they are. This does not fix anything powerpc: restore dbcr0 on user space exi

[PATCH 1/2 v2] powerpc: debug control and status registers are 32bit

2013-05-15 Thread Bharat Bhushan
Signed-off-by: Bharat Bhushan --- v1->v2 - Subject line was not having 1/2 arch/powerpc/include/asm/processor.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index d7e67ca..5213577 100

[PATCH 2/2 v2] powerpc: restore dbcr0 on user space exit

2013-05-15 Thread Bharat Bhushan
On BookE (Branch taken + Single Step) is as same as Branch Taken on BookS and in Linux we simulate BookS behavior for BookE as well. When doing so, in Branch taken handling we want to set DBCR0_IC but we update the current->thread->dbcr0 and not DBCR0. Now on 64bit the current->thread.dbcr0 (and o

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 14:47 +1000, Benjamin Herrenschmidt wrote: > Hi folks ! > > So I was trying to use my 5020ds to test some stuff today. Since I > hadn't used it in a while, I decided to "upgrade" it to the latest NOR > etc... On another note, I can't seem to get any PCIe card recognized in a

Re: SATA FSL and upstreaming

2013-05-15 Thread tiejun.chen
On 05/16/2013 01:45 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-05-16 at 14:47 +1000, Benjamin Herrenschmidt wrote: Hi folks ! So I was trying to use my 5020ds to test some stuff today. Since I hadn't used it in a while, I decided to "upgrade" it to the latest NOR etc... On another note, I

RE: SATA FSL and upstreaming

2013-05-15 Thread Zang Roy-R61911
For PCIe issue, I might be related to your RCW (Reset Configuration Word). Can you help to provide the u-boot log? Roy > -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev-bounces+tie- > fei.zang=freescale@lists.ozlabs.org] On Behalf Of Benjamin > Herrenschmidt > Sent: Thursd

RE: SATA FSL and upstreaming

2013-05-15 Thread Bhushan Bharat-R65777
> -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+bharat.bhushan=freescale@lists.ozlabs.org] On Behalf Of Benjamin > Herrenschmidt > Sent: Thursday, May 16, 2013 11:16 AM > To: Liu Qiang-B32616 > Cc: linuxppc-dev@lists.ozlabs.org; Fleming Andy-AFLEMING; Xie Sha

RE: SATA FSL and upstreaming

2013-05-15 Thread Zang Roy-R61911
> -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev-bounces+tie- > fei.zang=freescale@lists.ozlabs.org] On Behalf Of Bhushan Bharat- > R65777 > Sent: Thursday, May 16, 2013 2:02 PM > To: Benjamin Herrenschmidt; Liu Qiang-B32616 > Cc: Fleming Andy-AFLEMING; linuxppc-dev@list

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 13:55 +0800, tiejun.chen wrote: > This should depend on the RCW. > > As I recall, slot 7 or slot 4 can be configured to support PCIe for > P5020DS. And > you can know this information according to RCW's README. Somebody can hand hold me on irc ? Cheers, Ben.

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 06:05 +, Zang Roy-R61911 wrote: > I do not suggest changing the RCW. If the RCW is broken on Ben's side, > it is not easy to recover for him. > Let's check the U-boot output first. U-Boot 2013.01-9-g7bcd7f4 (Mar 14 2013 - 14:23:16) CPU0: P5020E, Version: 1.0, (0x822

RE: SATA FSL and upstreaming

2013-05-15 Thread Zang Roy-R61911
Do you try slot7? PCIe1 connects to slot7 directly. Roy > -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Thursday, May 16, 2013 2:09 PM > To: Zang Roy-R61911 > Cc: Bhushan Bharat-R65777; Liu Qiang-B32616; Fleming Andy-AFLEMING; > linuxppc-dev@li

Re: SATA FSL and upstreaming

2013-05-15 Thread tiejun.chen
On 05/16/2013 02:09 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-05-16 at 06:05 +, Zang Roy-R61911 wrote: I do not suggest changing the RCW. If the RCW is broken on Ben's side, it is not easy to recover for him. Let's check the U-boot output first. U-Boot 2013.01-9-g7bcd7f4 (Mar 14 2

[PATCH 1/2] powerpc/perf: Revert to original NO_SIPR logic

2013-05-15 Thread Michael Ellerman
This is a revert and then some of commit 860aad7 "Add regs_no_sipr()". This workaround was only needed on early chip versions. As before NO_SIPR becomes a static flag of the PMU struct. Signed-off-by: Michael Ellerman --- arch/powerpc/perf/core-book3s.c | 30 ++ 1

[PATCH 2/2] powerpc/perf: Add missing SIER support

2013-05-15 Thread Michael Ellerman
Commit 8f61aa3 "Add support for SIER" missed updates to siar_valid() and perf_get_data_addr(). In both cases we need to check the SIER instead of mmcra. Signed-off-by: Michael Ellerman --- arch/powerpc/perf/core-book3s.c | 37 + 1 file changed, 25 insertion

RE: SATA FSL and upstreaming

2013-05-15 Thread Zang Roy-R61911
> -Original Message- > From: tiejun.chen [mailto:tiejun.c...@windriver.com] > Sent: Thursday, May 16, 2013 2:18 PM > To: Benjamin Herrenschmidt > Cc: Zang Roy-R61911; Liu Qiang-B32616; Fleming Andy-AFLEMING; linuxppc- > d...@lists.ozlabs.org; Xie Shaohui-B21989; Bhushan Bharat-R65777 > Su

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 14:17 +0800, tiejun.chen wrote: > I think you can use Bharat's RCW, which seems RR_HXAPNSP_0x36, then > please take > a look at this: Ok, how do I update my RCW to bse Bharat's ? Any DIP switch setting I need to be aware of ? Thanks ! Cheers, Ben. __

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 06:17 +, Zang Roy-R61911 wrote: > Do you try slot7? > PCIe1 connects to slot7 directly. I tried all slots. None of them sees any card. The card also doesn't seem to be powered up (none of the LEDs blink, it's an e1000 since I don't have networking with upstream). I also

RE: SATA FSL and upstreaming

2013-05-15 Thread Xie Shaohui-B21989
Hi, Ben, Since the p5020ds you tested is a rev1 chip, I think the most possibility that SATA not work is due to a SATA erratum, which is fixed in rev1.1, we have a policy that patches for errata that are present only on early silicon revisions, typically only rev1 silicon will not send upstrea

Re: SATA FSL and upstreaming

2013-05-15 Thread tiejun.chen
On 05/16/2013 02:20 PM, Zang Roy-R61911 wrote: -Original Message- From: tiejun.chen [mailto:tiejun.c...@windriver.com] Sent: Thursday, May 16, 2013 2:18 PM To: Benjamin Herrenschmidt Cc: Zang Roy-R61911; Liu Qiang-B32616; Fleming Andy-AFLEMING; linuxppc- d...@lists.ozlabs.org; Xie Shao

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 06:20 +, Zang Roy-R61911 wrote: > Why? > Ben's on board RCW protocol is 0x36, which should work for PCIe1 (slot 7) and > PCIe3 (slot4). > Roy I've put a card in slot 7 and a card in slot 4 and I still get: PCIe1: Root Complex, no link, regs @ 0xfe20 PCIe1: Bus 00 -

[PATCH] powerpc/mpc85xx: match with the pci bus address used by u-boot for all p1_p2_rdb_pc boards

2013-05-15 Thread Kevin Hao
All these boards use the same configuration file p1_p2_rdb_pc.h in u-boot. So they have the same pci bus address set by the u-boot. But in some of these boards the bus address set in dtb don't match the one used by u-boot. And this will trigger a kernel bug in 32bit kernel and cause the pci device

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 06:24 +, Xie Shaohui-B21989 wrote: > Hi, Ben, > > Since the p5020ds you tested is a rev1 chip, I think the most possibility > that SATA not work > is due to a SATA erratum, which is fixed in rev1.1, we have a policy that > patches for errata that > are present only on

RE: SATA FSL and upstreaming

2013-05-15 Thread Bhushan Bharat-R65777
Try: >From bank 0 tftp 0x100 rcw_2sgmii_1500mhz.bin protect off 0xec00 +$filesize; erase 0xec00 +$filesize; cp.b 0x100 0xec00 $filesize Thanks -Bharat > -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Thursd

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 06:33 +, Bhushan Bharat-R65777 wrote: > From bank 0 > > > tftp 0x100 rcw_2sgmii_1500mhz.bin > protect off 0xec00 +$filesize; erase 0xec00 +$filesize; cp.b > 0x100 0xec00 $filesize Before I do something irreparable, what do you specifical

RE: SATA FSL and upstreaming

2013-05-15 Thread Zang Roy-R61911
> -Original Message- > From: Bhushan Bharat-R65777 > Sent: Thursday, May 16, 2013 2:33 PM > To: Benjamin Herrenschmidt; Zang Roy-R61911 > Cc: Liu Qiang-B32616; Fleming Andy-AFLEMING; linuxppc- > d...@lists.ozlabs.org; Xie Shaohui-B21989 > Subject: RE: SATA FSL and upstreaming > > Try: >

Re: SATA FSL and upstreaming

2013-05-15 Thread tiejun.chen
On 05/16/2013 02:21 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-05-16 at 14:17 +0800, tiejun.chen wrote: I think you can use Bharat's RCW, which seems RR_HXAPNSP_0x36, then please take a look at this: Ok, how do I update my RCW to bse Bharat's ? Firstly please check which flash bank is u

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 06:33 +, Bhushan Bharat-R65777 wrote: > protect off 0xec00 +$filesize; erase 0xec00 +$filesize; cp.b > 0x100 0xec00 $filesize BTW, is it normal that the network in uboot is *extremely* unreliable ? It takes dozens of tries if not more for it to "kick in",

RE: SATA FSL and upstreaming

2013-05-15 Thread Zang Roy-R61911
> -Original Message- > From: tiejun.chen [mailto:tiejun.c...@windriver.com] > Sent: Thursday, May 16, 2013 2:36 PM > To: Benjamin Herrenschmidt > Cc: Zang Roy-R61911; Liu Qiang-B32616; Fleming Andy-AFLEMING; linuxppc- > d...@lists.ozlabs.org; Xie Shaohui-B21989; Bhushan Bharat-R65777 > Su

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 14:35 +0800, tiejun.chen wrote: > On 05/16/2013 02:21 PM, Benjamin Herrenschmidt wrote: > > On Thu, 2013-05-16 at 14:17 +0800, tiejun.chen wrote: > >> I think you can use Bharat's RCW, which seems RR_HXAPNSP_0x36, then > >> please take > >> a look at this: > > > > Ok, how do I

Re: SATA FSL and upstreaming

2013-05-15 Thread tiejun.chen
On 05/16/2013 02:37 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-05-16 at 06:33 +, Bhushan Bharat-R65777 wrote: protect off 0xec00 +$filesize; erase 0xec00 +$filesize; cp.b 0x100 0xec00 $filesize BTW, is it normal that the network in uboot is *extremely* unreliable ? We

Re: SATA FSL and upstreaming

2013-05-15 Thread tiejun.chen
On 05/16/2013 02:40 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-05-16 at 14:35 +0800, tiejun.chen wrote: On 05/16/2013 02:21 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-05-16 at 14:17 +0800, tiejun.chen wrote: I think you can use Bharat's RCW, which seems RR_HXAPNSP_0x36, then please tak

RE: SATA FSL and upstreaming

2013-05-15 Thread Zang Roy-R61911
> -Original Message- > From: Bhushan Bharat-R65777 > Sent: Thursday, May 16, 2013 2:33 PM > To: Benjamin Herrenschmidt; Zang Roy-R61911 > Cc: Liu Qiang-B32616; Fleming Andy-AFLEMING; linuxppc- > d...@lists.ozlabs.org; Xie Shaohui-B21989 > Subject: RE: SATA FSL and upstreaming > > Try: >

RE: SATA FSL and upstreaming

2013-05-15 Thread Bhushan Bharat-R65777
> -Original Message- > From: tiejun.chen [mailto:tiejun.c...@windriver.com] > Sent: Thursday, May 16, 2013 12:13 PM > To: Benjamin Herrenschmidt > Cc: Zang Roy-R61911; Liu Qiang-B32616; Fleming Andy-AFLEMING; linuxppc- > d...@lists.ozlabs.org; Xie Shaohui-B21989; Bhushan Bharat-R65777 > S

RE: SATA FSL and upstreaming

2013-05-15 Thread Zang Roy-R61911
> -Original Message- > From: Bhushan Bharat-R65777 > Sent: Thursday, May 16, 2013 2:48 PM > To: tiejun.chen; Benjamin Herrenschmidt > Cc: Zang Roy-R61911; Liu Qiang-B32616; Fleming Andy-AFLEMING; linuxppc- > d...@lists.ozlabs.org; Xie Shaohui-B21989 > Subject: RE: SATA FSL and upstreaming

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 06:48 +, Bhushan Bharat-R65777 wrote: > 1) Load RCW as Tiejun on some address in DDR. > > 2) Brun RCW at 0xec00: > protect off 0xec00 +$filesize; erase 0xec00 +$filesize; cp.b > 0x100 0xec00 $filesize Done. > 3) run " pix altbak" command > > 4) ch

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 06:49 +, Zang Roy-R61911 wrote: > > Please also provide a RCW binary to Ben, if your guys insist updating the > RCW. right, I just noticed it's ascii :-) That isn't going to work well... Cheers, Ben. ___ Linuxppc-dev mail

Re: SATA FSL and upstreaming

2013-05-15 Thread tiejun.chen
On 05/16/2013 02:53 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-05-16 at 06:49 +, Zang Roy-R61911 wrote: Please also provide a RCW binary to Ben, if your guys insist updating the RCW. right, I just noticed it's ascii :-) That isn't going to work well... Ben, I already send my wo

Re: SATA FSL and upstreaming

2013-05-15 Thread Benjamin Herrenschmidt
Ok, so I found this one on the SDK ISO: rcw_15g_2000mhz.bin I flashed that, did pix altbank, I'm now booted from Bank 4 ... and PCIe is still showing nothing. I have cards in slots 4 and 7 (assuming that's the right numbering, ie, 7 is the top one). Are we sure we don't have a problem with some D