Skip to contentSkip to conversation

SATA FSL and upstreaming

DISCUSSION Benjamin Herrenschmidt 10 participants 78 messages May 16, 2013 – Jun 9, 2013 1 message not in the archive PowerPC

lore
Share & tools
lore
#0 lore raw

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 still completely busted upstream.

A quick git compare shows about 5 or 6 commits in the SDK tree, some as old as 2011, fixing various erratas in that chip, that never made their way upstream.

Any reason for that ? Being GPL, I can submit them to Tejun myself but it would be better form if you guys did :-)

BTW. Also what's the status with getting the network working upstream ? Even if sub-standard the code could at least go into staging...

Cheers,
Ben.

#1 lore raw
Quoted 5 lines · 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...

On another note, I can't seem to get any PCIe card recognized in any slot...

Can you give me an example config of the DIP switches that is known to work with some slots ? Is there some EEPROM config needed ? If yes, any pointers ? (I can't quite make sense of either u-boot or the doc there).

Thanks,
Ben.

#2 lore raw
Quoted 9 lines · Benjamin Herrenschmidt
Quoted 5 lines · 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...

On another note, I can't seem to get any PCIe card recognized in any slot...

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.

Tiejun

#4 lore raw
In reply to Benjamin Herrenschmidt

For PCIe issue, I might be related to your RCW (Reset Configuration Word). Can you help to provide the u-boot log?
Roy

Quoted 32 lines

-----Original Message-----
From: Linuxppc-dev [mailto:linuxppc-dev-bounces+tie- [email protected]] On Behalf Of Benjamin Herrenschmidt
Sent: Thursday, May 16, 2013 1:46 PM
To: Liu Qiang-B32616
Cc: [email protected]; Fleming Andy-AFLEMING; Xie Shaohui- B21989
Subject: Re: SATA FSL and upstreaming
=20

Quoted 5 lines · 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...

=20
On another note, I can't seem to get any PCIe card recognized in any slot...
=20
Can you give me an example config of the DIP switches that is known to work with some slots ? Is there some EEPROM config needed ? If yes, any pointers ? (I can't quite make sense of either u-boot or the doc there). =20
Thanks,
Ben.
=20
=20
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

#5 lore raw
In reply to Benjamin Herrenschmidt
Quoted 18 lines

-----Original Message-----
From: Linuxppc-dev [mailto:linuxppc-dev- [email protected]] On Behalf Of Benjamin Herrenschmidt
Sent: Thursday, May 16, 2013 11:16 AM
To: Liu Qiang-B32616
Cc: [email protected]; Fleming Andy-AFLEMING; Xie Shaohui-B21989
Subject: Re: SATA FSL and upstreaming

Quoted 5 lines · 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...

Quoted 5 lines

On another note, I can't seem to get any PCIe card recognized in any slot...

Can you give me an example config of the DIP switches that is known to work with some slots ? Is there some EEPROM config needed ? If yes, any pointers ? (I can't quite make sense of either u-boot or the doc there).

Can you give RCW dump?
Or can try the attached RCW.

Thanks
-Bharat

Quoted 9 lines

Thanks,
Ben.

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

#6 lore raw
Quoted 35 lines

-----Original Message-----
From: Linuxppc-dev [mailto:linuxppc-dev-bounces+tie- [email protected]] On Behalf Of Bhushan Bharat- R65777
Sent: Thursday, May 16, 2013 2:02 PM
To: Benjamin Herrenschmidt; Liu Qiang-B32616
Cc: Fleming Andy-AFLEMING; [email protected]; Xie Shaohui- B21989
Subject: RE: SATA FSL and upstreaming
=20
=20
=20

Quoted 11 lines

-----Original Message-----
From: Linuxppc-dev [mailto:linuxppc-dev- [email protected]] On Behalf Of bounces+Benjamin
Herrenschmidt
Sent: Thursday, May 16, 2013 11:16 AM
To: Liu Qiang-B32616
Cc: [email protected]; Fleming Andy-AFLEMING; Xie Shaohui-B21989
Subject: Re: SATA FSL and upstreaming

Quoted 8 lines
Quoted 5 lines · 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...

On another note, I can't seem to get any PCIe card recognized in any

slot...

Quoted 1 line
Quoted 7 lines
Quoted 3 lines

Can you give me an example config of the DIP switches that is known to work with some slots ? Is there some EEPROM config needed ? If yes, any pointers ? (I can't quite make sense of either u-boot or the doc

there).
=20
Can you give RCW dump?
Or can try the attached RCW.

I do not suggest changing the RCW. If the RCW is broken on Ben's side, it i= s not easy to recover for him.
Let's check the U-boot output first.
Thanks.
Roy

#3 lore raw
In reply to tiejun.chen
Quoted 5 lines · tiejun.chen

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.

#7 lore raw
In reply to Zang Roy-R61911
Quoted 3 lines · On Thu, 2013-05-16 at 06:05 +0000, 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-00009-g7bcd7f4 (Mar 14 2013 - 14:23:16)

CPU0:  P5020E, Version: 1.0, (0x82280010)
Core:  E5500, Version: 1.0, (0x80240010)
Clock Configuration:
       CPU0:2000 MHz, CPU1:2000 MHz, 
       CCB:800  MHz,
       DDR:666.667 MHz (1333.333 MT/s data rate) (Asynchronous), LBC:100  MHz
       FMAN1: 600 MHz
       QMAN:  400 MHz
       PME:   400 MHz

L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Board: P5020DS, Sys ID: 0x1c, Sys Ver: 0x12, FPGA Ver: 0x05, vBank: 0 Reset Configuration Word (RCW):

       00000000: 0c540000 00000000 1e120000 00000000
       00000010: d8984a01 03002000 de800000 41000000
       00000020: 00000000 00000000 00000000 10070000
       00000030: 00000000 00000000 00000000 00000000
SERDES Reference Clocks: Bank1=100Mhz Bank2=125Mhz Bank3=125Mhz 
I2C:   ready
SPI:   ready
DRAM:  Initializing....using SPD

Detected UDIMM i-DIMM
Detected UDIMM i-DIMM
2 GiB left unmapped
4 GiB (DDR3, 64-bit, CL=9, ECC on)
DDR Controller Interleaving Mode: cache line DDR Chip-Select Interleaving Mode: CS0+CS1
Testing 0x00000000 - 0x7fffffff
Testing 0x80000000 - 0xffffffff
Remap DDR 2 GiB left unmapped

POST memory PASSED

Flash: 128 MiB
L2:    512 KB enabled
Corenet Platform Cache: 2048 KB enabled
SRIO1: disabled
SRIO2: disabled
NAND:  1024 MiB
MMC:  FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: Root Complex, no link, regs @ 0xfe200000
PCIe1: Bus 00 - 00
PCIe2: disabled
PCIe3: Root Complex, no link, regs @ 0xfe202000
PCIe3: Bus 01 - 01
PCIe4: disabled
In:    serial
Out:   serial
Err:   serial
Net:   Initializing Fman
Fman1: Uploading microcode version 106.1.7

PHY reset timed out
PHY reset timed out
PHY reset timed out
PHY reset timed out
FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5, FM1@TGEC1 Hit any key to stop autoboot: 0
=>

Cheers,
Ben.

#8 lore raw

RG8geW91IHRyeSBzbG90Nz8NClBDSWUxIGNvbm5lY3RzIHRvIHNsb3Q3IGRpcmVjdGx5Lg0KUm95 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmVuamFtaW4gSGVycmVu c2NobWlkdCBbbWFpbHRvOmJlbmhAa2VybmVsLmNyYXNoaW5nLm9yZ10NCj4gU2VudDogVGh1cnNk YXksIE1heSAxNiwgMjAxMyAyOjA5IFBNDQo+IFRvOiBaYW5nIFJveS1SNjE5M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NCg==

#16 lore raw
In reply to Benjamin Herrenschmidt
Quoted 16 lines · Benjamin Herrenschmidt
Quoted 3 lines · On Thu, 2013-05-16 at 06:05 +0000, 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-00009-g7bcd7f4 (Mar 14 2013 - 14:23:16)

CPU0:  P5020E, Version: 1.0, (0x82280010)
Core:  E5500, Version: 1.0, (0x80240010)
Clock Configuration:
        CPU0:2000 MHz, CPU1:2000 MHz,
        CCB:800  MHz,
        DDR:666.667 MHz (1333.333 MT/s data rate) (Asynchronous), LBC:100  MHz
        FMAN1: 600 MHz
        QMAN:  400 MHz
        PME:   400 MHz
Quoted 8 lines

L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Board: P5020DS, Sys ID: 0x1c, Sys Ver: 0x12, FPGA Ver: 0x05, vBank: 0 Reset Configuration Word (RCW):

        00000000: 0c540000 00000000 1e120000 00000000
        00000010: d8984a01 03002000 de800000 41000000
        00000020: 00000000 00000000 00000000 10070000
        00000030: 00000000 00000000 00000000 00000000

I think you can use Bharat's RCW, which seems RR_HXAPNSP_0x36, then please take a look at this:

The RCW directories names for the p5020ds board conform to the following naming convention:

ab_bcdefghi_j:

a = 'R' if RGMII@DTSEC4 is supported / 'N' if not available/not used b = 'R' if RGMII@DTSEC5 is supported / 'N" if not available/not used

c = What is available in Slot 1 or SATA
d = What is available in Slot 2
e = What is available in Slot 3
f = What is available in Slot 4
g = What is available in Slot 5
h = What is available in Slot 6
i = What is available in Slot 7

For the Slots (c..i):
'N' if not available/not used
'P' if PCIe
'X' if XAUI
'R' if SRIO
'S' if SGMII
'H' if SATA
'A' is AURORA

j = 'hex value of serdes protocol value'

So NR_HXAPNSP_0x36 means:
- no RGMII@DTSEC4
- RGMII@DTSEC5
- SATA [Slot 1 not used]
- XAUI on Slot 2
- AURORA on Slot 3
- PCIE on Slot 4
- SGMII on Slot 6
- PCIE on Slot 7

Slot 5 is not used, and the SERDES Protocol is 0x36.

So slot 7 and slot 4 can be as PCIe slot.

Tiejun

Quoted 52 lines
SERDES Reference Clocks: Bank1=100Mhz Bank2=125Mhz Bank3=125Mhz
I2C:   ready
SPI:   ready
DRAM:  Initializing....using SPD

Detected UDIMM i-DIMM
Detected UDIMM i-DIMM
2 GiB left unmapped
4 GiB (DDR3, 64-bit, CL=9, ECC on)
DDR Controller Interleaving Mode: cache line DDR Chip-Select Interleaving Mode: CS0+CS1
Testing 0x00000000 - 0x7fffffff
Testing 0x80000000 - 0xffffffff
Remap DDR 2 GiB left unmapped

POST memory PASSED

Flash: 128 MiB
L2:    512 KB enabled
Corenet Platform Cache: 2048 KB enabled
SRIO1: disabled
SRIO2: disabled
NAND:  1024 MiB
MMC:  FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: Root Complex, no link, regs @ 0xfe200000
PCIe1: Bus 00 - 00
PCIe2: disabled
PCIe3: Root Complex, no link, regs @ 0xfe202000
PCIe3: Bus 01 - 01
PCIe4: disabled
In:    serial
Out:   serial
Err:   serial
Net:   Initializing Fman
Fman1: Uploading microcode version 106.1.7

PHY reset timed out
PHY reset timed out
PHY reset timed out
PHY reset timed out
FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5, FM1@TGEC1 Hit any key to stop autoboot: 0
=>

Cheers,
Ben.

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

#17 lore raw

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogdGllanVuLmNoZW4gW21h aWx0bzp0aWVqdW4uY2hlbkB3aW5kcml2ZXIuY29tXQ0KPiBTZW50OiBUaHVyc2RheSwgTWF5IDE2 LCAyMDEzIDI6MTggUE0NCj4gVG86IEJlbmphbWluIEhlcnJlbnNjaG1pZHQNCj4gQ2M6IFphbmcg Um95LVI2MTkxMTsgTGl1IFFpYW5n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gRk1BTjE6IDYwMCBNSHoNCj4gPiAgICAgICAgIFFNQU46ICA0MDAgTUh6DQo+ ID4gICAgICAgICBQTUU6ICAgNDAwIE1Ieg0KPiA+IEwxOiAgICBELWNhY2hlIDMyIGtCIGVuYWJs ZWQNCj4gPiAgICAgICAgIEktY2FjaGUgMzIga0IgZW5hYmxlZA0KPiA+IEJvYXJkOiBQNTAyMERT LCBTeXMgSUQ6IDB4MWMsIFN5cyBWZXI6IDB4MTIsIEZQR0EgVmVyOiAweDA1LCB2QmFuazogMA0K PiA+IFJlc2V0IENvbmZpZ3VyYXRpb24gV29yZCAoUkNXKToNCj4gPiAgICAgICAgIDAwMDAwMDAw OiAwYzU0MDAwMCAwMDAwMDAwMCAxZTEyMDAwMCAwMDAwMDAwMA0KPiA+ICAgICAgICAgMDAwMDAw MTA6IGQ4OTg0YTAxIDAzMDAyMDAwIGRlODAwMDAwIDQxMDAwMDAwDQo+ID4gICAgICAgICAwMDAw MDAyMDogMDAwMDAwMDAgMDAwMDAwMDAgMDAwMDAwMDAgMTAwNzAwMDANCj4gPiAgICAgICAgIDAw MDAwMDMwOiAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMA0KPiANCj4gSSB0aGlu ayB5b3UgY2FuIHVzZSBCaGFyYXQncyBSQ1csIHdoaWNoIHNlZW1zIFJSX0hYQVBOU1BfMHgzNiwg dGhlbg0KPiBwbGVhc2UgdGFrZSBhIGxvb2sgYXQgdGhpczoNCldoeT8NCkJlbidzIG9uIGJvYXJk IFJDVyBwcm90b2NvbCBpcyAweDM2LCB3aGljaCBzaG91bGQgd29yayBmb3IgUENJZTEgKHNsb3Qg NykgYW5kIFBDSWUzIChzbG90NCkuDQpSb3kNCg==

#21 lore raw
In reply to tiejun.chen
Quoted 3 lines · tiejun.chen

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.

#9 lore raw
In reply to Zang Roy-R61911
Quoted 2 lines · On Thu, 2013-05-16 at 06:17 +0000, 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 tried a different card and uboot is pretty adamant at saying "no link" :-)

I'll try to update the RCW when I know how to do it :-)

Cheers,
Ben.

Quoted 82 lines

Roy

Quoted 79 lines

-----Original Message-----
From: Benjamin Herrenschmidt [mailto:[email protected]]
Sent: Thursday, May 16, 2013 2:09 PM
To: Zang Roy-R61911
Cc: Bhushan Bharat-R65777; Liu Qiang-B32616; Fleming Andy-AFLEMING; [email protected]; Xie Shaohui-B21989
Subject: Re: SATA FSL and upstreaming

Quoted 3 lines · On Thu, 2013-05-16 at 06:05 +0000, 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-00009-g7bcd7f4 (Mar 14 2013 - 14:23:16)

CPU0:  P5020E, Version: 1.0, (0x82280010)
Core:  E5500, Version: 1.0, (0x80240010)
Clock Configuration:
       CPU0:2000 MHz, CPU1:2000 MHz,
       CCB:800  MHz,
       DDR:666.667 MHz (1333.333 MT/s data rate) (Asynchronous), LBC:100
MHz
       FMAN1: 600 MHz
       QMAN:  400 MHz
       PME:   400 MHz

L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Board: P5020DS, Sys ID: 0x1c, Sys Ver: 0x12, FPGA Ver: 0x05, vBank: 0 Reset Configuration Word (RCW):

       00000000: 0c540000 00000000 1e120000 00000000
       00000010: d8984a01 03002000 de800000 41000000
       00000020: 00000000 00000000 00000000 10070000
       00000030: 00000000 00000000 00000000 00000000
SERDES Reference Clocks: Bank1=100Mhz Bank2=125Mhz Bank3=125Mhz
I2C:   ready
SPI:   ready
DRAM:  Initializing....using SPD

Detected UDIMM i-DIMM
Detected UDIMM i-DIMM
2 GiB left unmapped
4 GiB (DDR3, 64-bit, CL=9, ECC on)
DDR Controller Interleaving Mode: cache line DDR Chip-Select Interleaving Mode: CS0+CS1
Testing 0x00000000 - 0x7fffffff
Testing 0x80000000 - 0xffffffff
Remap DDR 2 GiB left unmapped

POST memory PASSED

Flash: 128 MiB
L2:    512 KB enabled
Corenet Platform Cache: 2048 KB enabled
SRIO1: disabled
SRIO2: disabled
NAND:  1024 MiB
MMC:  FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: Root Complex, no link, regs @ 0xfe200000
PCIe1: Bus 00 - 00
PCIe2: disabled
PCIe3: Root Complex, no link, regs @ 0xfe202000
PCIe3: Bus 01 - 01
PCIe4: disabled
In:    serial
Out:   serial
Err:   serial
Net:   Initializing Fman
Fman1: Uploading microcode version 106.1.7

PHY reset timed out
PHY reset timed out
PHY reset timed out
PHY reset timed out
FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5, FM1@TGEC1 Hit any key to stop autoboot: 0
=>

Cheers,
Ben.

#77 lore raw
In reply to Benjamin Herrenschmidt

SGksIEJlbiwNCg0KU2luY2UgdGhlIHA1MDIwZHMgeW91IHRlc3RlZCBpcyBhIHJldjEgY2hpcCwg SSB0aGluayB0aGUgbW9zdCBwb3NzaWJpbGl0eSB0aGF0IFNBVEEgbm90IHdvcmsNCmlzIGR1ZSB0 byBhIFNBVEEgZXJyYXR1bSwgd2hpY2ggaXMgZml4ZWQgaW4gcmV2MS4xLCB3ZSBoYXZlIGEgcG9s aWN5IHRoYXQgcGF0Y2hlcyBmb3IgZXJyYXRhIHRoYXQgDQphcmUgcHJlc2VudCBvbmx5IG9uIGVh cmx5IHNpbGljb24gcmV2aXNpb25zLCB0eXBpY2FsbHkgb25seSByZXYxIHNpbGljb24gd2lsbCBu b3Qgc2VuZCB1cHN0cmVhbS4NCllvdSBjYW4gZmluZCB0aGUgcGF0Y2ggYXQgYmVsb3cgbGluazoN Cmh0dHA6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ZSBzdGF0dXMgd2l0 aCBnZXR0aW5nIHRoZSBuZXR3b3JrIHdvcmtpbmcgdXBzdHJlYW0gPw0KPiBFdmVuIGlmIHN1Yi1z dGFuZGFyZCB0aGUgY29kZSBjb3VsZCBhdCBsZWFzdCBnbyBpbnRvIHN0YWdpbmcuLi4NCj4gDQo+ IENoZWVycywNCj4gQmVuLg0KPiANCj4gDQoNCg==

#18 lore raw
In reply to Zang Roy-R61911
Quoted 36 lines · On 05/16/2013 02:20 PM, Zang Roy-R61911 wrote:
Quoted 36 lines

-----Original Message-----
From: tiejun.chen [mailto:[email protected]]
Sent: Thursday, May 16, 2013 2:18 PM
To: Benjamin Herrenschmidt
Cc: Zang Roy-R61911; Liu Qiang-B32616; Fleming Andy-AFLEMING; linuxppc- [email protected]; Xie Shaohui-B21989; Bhushan Bharat-R65777
Subject: Re: SATA FSL and upstreaming

Quoted 5 lines · Benjamin Herrenschmidt
Quoted 3 lines · On Thu, 2013-05-16 at 06:05 +0000, 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.

Quoted 7 lines

U-Boot 2013.01-00009-g7bcd7f4 (Mar 14 2013 - 14:23:16)

CPU0:  P5020E, Version: 1.0, (0x82280010)
Core:  E5500, Version: 1.0, (0x80240010) Clock Configuration:
         CPU0:2000 MHz, CPU1:2000 MHz,
         CCB:800  MHz,
         DDR:666.667 MHz (1333.333 MT/s data rate) (Asynchronous),

LBC:100 MHz

Quoted 11 lines
         FMAN1: 600 MHz
         QMAN:  400 MHz
         PME:   400 MHz

L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Board: P5020DS, Sys ID: 0x1c, Sys Ver: 0x12, FPGA Ver: 0x05, vBank: 0 Reset Configuration Word (RCW):

         00000000: 0c540000 00000000 1e120000 00000000
         00000010: d8984a01 03002000 de800000 41000000
         00000020: 00000000 00000000 00000000 10070000
         00000030: 00000000 00000000 00000000 00000000
Quoted 3 lines
Quoted 2 lines

I think you can use Bharat's RCW, which seems RR_HXAPNSP_0x36, then please take a look at this:

Why?

I just believe Bharat should pick a proper RCW from SDK.

Quoted 1 line

Ben's on board RCW protocol is 0x36, which should work for PCIe1 (slot 7) and PCIe3 (slot4).

Didn't you see I'm also saying to use slot 7 and slot 4?

Tiejun

#20 lore raw
In reply to Zang Roy-R61911
Quoted 3 lines · On Thu, 2013-05-16 at 06:20 +0000, 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 @ 0xfe200000
PCIe1: Bus 00 - 00
PCIe2: disabled
PCIe3: Root Complex, no link, regs @ 0xfe202000
PCIe3: Bus 01 - 01
PCIe4: disabled

And nothing in Linux... Could there be another issue (DIP ? jumpers ?)

Cheers,
Ben.

#78 lore raw
In reply to Xie Shaohui-B21989
Quoted 7 lines · On Thu, 2013-05-16 at 06:24 +0000, 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 early silicon revisions, typically only rev1 silicon will not send upstream. You can find the patch at below link:
http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git/commit/?id=b79a8a0528b8a0008cb76f339806b1200b5d8f63

Well, the chip I have is rev1... since I'm the maintainer I might pull a "Linus" and just apply the damn patch to make it work for me :-) Though I'm being told that a rev2 chip is on its way to me ... I'll wait a few more days see if that arrives.

Cheers,
Ben.

Quoted 43 lines

Since it is not sent to upstream, it may need to be rebased if apply it to latest tree.

Also there might be another issue(SATA & USB) if you test 64 bit kernel on p5020ds with DRR > 4G, we have a patch Sent to upstream, but not accepted yet. Link as below:
http://patchwork.ozlabs.org/patch/179828/

There are online documents of SDK, for the p5020ds hardware please see the link:
http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F2989554.html

Best Regards,
Shaohui Xie

Quoted 30 lines

-----Original Message-----
From: Benjamin Herrenschmidt [mailto:[email protected]]
Sent: Thursday, May 16, 2013 12:48 PM
To: Liu Qiang-B32616; Xie Shaohui-B21989; Fleming Andy-AFLEMING
Cc: [email protected]; Kumar Gala
Subject: SATA FSL and upstreaming

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 still completely busted upstream.

A quick git compare shows about 5 or 6 commits in the SDK tree, some as old as 2011, fixing various erratas in that chip, that never made their way upstream.

Any reason for that ? Being GPL, I can submit them to Tejun myself but it would be better form if you guys did :-)

BTW. Also what's the status with getting the network working upstream ? Even if sub-standard the code could at least go into staging...

Cheers,
Ben.

#10 lore raw
In reply to Benjamin Herrenschmidt

VHJ5Og0KDQpGcm9tIGJhbmsgMA0KLS0tLS0tLS0tLS0tDQoNCnRmdHAgMHgxMDAwMDAwICByY3df MnNnbWlpXzE1MDBtaHouYmluDQpwcm90ZWN0IG9mZiAweGVjMDAwMDAwICskZmlsZXNpemU7IGVy YXNlIDB4ZWMwMDAwMDAgKyRmaWxlc2l6ZTsgY3AuYiAweDEwMDAwMDAgMHhlYzAwMDAwMCAkZmls ZXNpemUNCg0KDQpUaGFua3MNCi1CaGFyYXQNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0t LQ0KPiBGcm9tOiBCZW5qYW1pbiBIZXJyZW5zY2htaWR0IFttYWlsdG86YmVuaEBrZXJuZWwuY3Jh c2hpbmcub3JnXQ0KPiBTZW50OiBUaHVyc2RheSwgTWF5IDE2LCAyMDEzIDExOjU0IEFNDQo+IFRv OiBaYW5nIFJveS1SNjE5MTENCj4gQ2M6IEJodXNoYW4gQmhhcmF0LVI2NTc3NzsgTGl1IFFpYW5n LUIzMjYxNjsgRmxlbWluZyBBbmR5LUFGTEVNSU5HOyBsaW51eHBwY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2LjEuNyBQSFkgcmVzZXQgdGltZWQgb3V0IFBIWQ0KPiA+ID4gcmVzZXQgdGlt ZWQgb3V0IFBIWSByZXNldCB0aW1lZCBvdXQgUEhZIHJlc2V0IHRpbWVkIG91dCBGTTFARFRTRUMx LA0KPiA+ID4gRk0xQERUU0VDMiwgRk0xQERUU0VDMywgRk0xQERUU0VDNCwgRk0xQERUU0VDNSwg Rk0xQFRHRUMxIEhpdCBhbnkNCj4gPiA+IGtleSB0byBzdG9wIGF1dG9ib290OiAgMCA9Pg0KPiA+ ID4NCj4gPiA+IENoZWVycywNCj4gPiA+IEJlbi4NCj4gPiA+DQo+ID4gPg0KPiA+DQo+IA0KPiAN Cg0K

#11 lore raw
Quoted 6 lines · On Thu, 2013-05-16 at 06:33 +0000, Bhushan Bharat-R65777 wrote:

From bank 0
------------

tftp 0x1000000 rcw_2sgmii_1500mhz.bin
protect off 0xec000000 +$filesize; erase 0xec000000 +$filesize; cp.b 0x1000000 0xec000000 $filesize

Before I do something irreparable, what do you specifically mean by "from bank 0" ? :-)

Cheers,
Ben.

#12 lore raw
In reply to Bhushan Bharat-R65777

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmh1c2hhbiBCaGFyYXQt UjY1Nzc3DQo+IFNlbnQ6IFRodXJzZGF5LCBNYXkgMTYsIDIwMTMgMjozMyBQTQ0KPiBUbzogQmVu amFtaW4gSGVycmVuc2NobWlkdDsgWmFuZyBSb3ktUjYxOTExDQo+IENjOiBMaXUgUWlhbmctQjMy NjE2OyBGbGVtaW5nIEFuZHktQUZMRU1JTkc7IGxpbnV4cHBjLQ0KPiBkZXZAbGlzdHMub3psYWJz Lm9yZzsgWGllIFNoYW9odWktQjIxOTg5DQo+IFN1YmplY3Q6IFJFOiBTQVRBIEZTTCBhbmQgdXBz dHJlYW1pbmcNCj4gDQo+IFRyeToNCj4gDQo+IEZyb20gYmFuayAwDQo+IC0tLS0tLS0tLS0tLQ0K PiANCj4gdGZ0cCAweDEwMDAwMDAgIHJjd18yc2dtaWlfMTUwMG1oei5iaW4NCj4gcHJvdGVjdCBv ZmYgMHhlYzAwMDAwMCArJGZpbGVzaXplOyBlcmFzZSAweGVjMDAwMDAwICskZmlsZXNpemU7IGNw LmINCj4gMHgxMDAwMDAwIDB4ZWMwMDAwMDAgJGZpbGVzaXplDQpZb3UgbmVlZCB0byB0ZWxsIEJl biAgdGhhdCB0aGlzIGlzIGZvciBiYW5rIDQgcmN3Lg0KQW5kIGhvdyB0byBzd2l0Y2ggdG8gYmFu azQuDQpSb3kNCg==

#22 lore raw
In reply to Benjamin Herrenschmidt
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 3 lines · tiejun.chen

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 used since we have to know where should be updated RCW.

What is SW7[1:4]?

Or we have another simple way in u-boot prompt:

=> md.b ffdf002c
ffdf002c: 4f 00 fe 00 39 00 00 00 00 00 00 00 00 00 00 00 O...9...........
...

This means we're on bank4.

Quoted 2 lines

Any DIP switch setting I need to be aware of ?

No.

Tiejun

#13 lore raw
In reply to Bhushan Bharat-R65777
Quoted 2 lines · On Thu, 2013-05-16 at 06:33 +0000, Bhushan Bharat-R65777 wrote:

protect off 0xec000000 +$filesize; erase 0xec000000 +$filesize; cp.b 0x1000000 0xec000000 $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", then it eventually works.

I've given on dhcp and using fixed IPs but that doesn't help, tftp fails several times until it eventually work ... if I'm in a lucky day.

Cheers,
Ben.

#23 lore raw
In reply to tiejun.chen

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogdGllanVuLmNoZW4gW21h aWx0bzp0aWVqdW4uY2hlbkB3aW5kcml2ZXIuY29tXQ0KPiBTZW50OiBUaHVyc2RheSwgTWF5IDE2 L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wDQo+IE8uLi45Li4u Li4uLi4uLi4NCj4gLi4uDQo+IA0KPiBUaGlzIG1lYW5zIHdlJ3JlIG9uIGJhbms0Lg0KQmVuJ3Mg bG9nIHNob3dzIGl0IGlzIGJhbmswLg0KDQpCb2FyZDogUDUwMjBEUywgU3lzIElEOiAweDFjLCBT eXMgVmVyOiAweDEyLCBGUEdBIFZlcjogMHgwNSwgdkJhbms6IDANCg0KUm95DQo=

#24 lore raw
In reply to tiejun.chen
Quoted 12 lines · tiejun.chen
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 3 lines · tiejun.chen

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 used since we have to know where should be updated RCW.

Quoted 7 lines

What is SW7[1:4]?

Or we have another simple way in u-boot prompt:

=> md.b ffdf002c
ffdf002c: 4f 00 fe 00 39 00 00 00 00 00 00 00 00 00 00 00 O...9...........
...

ffdf002c: 0f 00 fe 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

Quoted 1 line

This means we're on bank4.

I assume that means bank0 ?

Quoted 6 lines
Quoted 2 lines

Any DIP switch setting I need to be aware of ?

No.

Tiejun

#14 lore raw
In reply to Benjamin Herrenschmidt
Quoted 5 lines · Benjamin Herrenschmidt
Quoted 2 lines · On Thu, 2013-05-16 at 06:33 +0000, Bhushan Bharat-R65777 wrote:

protect off 0xec000000 +$filesize; erase 0xec000000 +$filesize; cp.b 0x1000000 0xec000000 $filesize

BTW, is it normal that the network in uboot is *extremely* unreliable ?

We can use serial port:

loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loady   - load binary file over serial line (ymodem mode)

Then please send the RCW with appropriate mode above in your terminal client.

Tiejun

#25 lore raw
In reply to Benjamin Herrenschmidt
Quoted 21 lines · Benjamin Herrenschmidt
Quoted 12 lines · tiejun.chen
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 3 lines · tiejun.chen

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 used since we have to know where should be updated RCW.

Quoted 7 lines

What is SW7[1:4]?

Or we have another simple way in u-boot prompt:

=> md.b ffdf002c
ffdf002c: 4f 00 fe 00 39 00 00 00 00 00 00 00 00 00 00 00 O...9...........
...

Quoted 5 lines

ffdf002c: 0f 00 fe 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

Quoted 1 line

This means we're on bank4.

I assume that means bank0 ?

Yes, RCW should be burned to 0xec000000.

In u-boot prompt:

=> loady
## Ready for binary (ymodem) download to 0x01000000 at 115200 bps... C

Then send that RCW with ymodem in your terminal client.

Tiejun

#15 lore raw
In reply to Bhushan Bharat-R65777

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmh1c2hhbiBCaGFyYXQt UjY1Nzc3DQo+IFNlbnQ6IFRodXJzZGF5LCBNYXkgMTYsIDIwMTMgMjozMyBQTQ0KPiBUbzogQmVu amFtaW4gSGVycmVuc2NobWlkdDsgWmFuZyBSb3ktUjYxOTExDQo+IENjOiBMaXUgUWlhbmctQjMy NjE2OyBGbGVtaW5nIEFuZHktQUZMRU1JTkc7IGxpbnV4cHBjLQ0KPiBkZXZAbGlzdHMub3psYWJz Lm9yZzsgWGllIFNoYW9odWktQjIxOTg5DQo+IFN1YmplY3Q6IFJFOiBTQVRBIEZTTCBhbmQgdXBz dHJlYW1pbmcNCj4gDQo+IFRyeToNCj4gDQo+IEZyb20gYmFuayAwDQo+IC0tLS0tLS0tLS0tLQ0K PiANCj4gdGZ0cCAweDEwMDAwMDAgIHJjd18yc2dtaWlfMTUwMG1oei5iaW4NCj4gcHJvdGVjdCBv ZmYgMHhlYzAwMDAwMCArJGZpbGVzaXplOyBlcmFzZSAweGVjMDAwMDAwICskZmlsZXNpemU7IGNw LmINCj4gMHgxMDAwMDAwIDB4ZWMwMDAwMDAgJGZpbGVzaXplDQ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j4gMSkgTG9hZCBSQ1cgYXMgVGllanVuIG9uIHNvbWUgYWRkcmVzcyBpbiBE RFIuDQo+IA0KPiAyKSBCcnVuIFJDVyBhdCAweGVjMDAwMDAwOg0KPiBwcm90ZWN0IG9mZiAweGVj MDAwMDAwICskZmlsZXNpemU7IGVyYXNlIDB4ZWMwMDAwMDAgKyRmaWxlc2l6ZTsgY3AuYg0KPiAw eDEwMDAwMDAgMHhlYzAwMDAwMCAkZmlsZXNpemUNCj4gDQo+IDMpIHJ1biAiIHBpeCBhbHRiYWsi IGNvbW1hbmQNCj4gDQo+IDQpIGNoZWNrIHlvdSBhcmUgb24gYmFuazQNCj4gDQo+IDUpIElmIHlv dSBhcmUgbHVja2llciB0aGVuIG5ldHdvcmtpbmcgd2lsbCB3b3JrIGZvciB5b3UuDQp0aGUgc3Rl cHMgbG9vayBnb29kLg0KUGxlYXNlIGFsc28gcHJvdmlkZSBhIFJDVyBiaW5hcnkgdG8gQmVuLCBp ZiB5b3VyIGd1eXMgaW5zaXN0IHVwZGF0aW5nICB0aGUgUkNXLg0KUm95DQo=

#38 lore raw
In reply to Bhushan Bharat-R65777
Quoted 4 lines · On Thu, 2013-05-16 at 06:48 +0000, Bhushan Bharat-R65777 wrote:

1) Load RCW as Tiejun on some address in DDR.

2) Brun RCW at 0xec000000:
protect off 0xec000000 +$filesize; erase 0xec000000 +$filesize; cp.b 0x1000000 0xec000000 $filesize

Done.

Quoted 3 lines

3) run " pix altbak" command

4) check you are on bank4

It stays on bank 0

Also, before I flashed the rcw, I tried messing with SW7[1:4] and got it to book to bank 4 once (I think I changed DIP 2 or 3). Now, after the new RCW is in, it won't boot with any other setting than bank 0 however.

Cheers,
Ben.

Quoted 8 lines

5) If you are luckier then networking will work for you.

Thanks
-Bharat

Quoted 2 lines

Tiejun

#28 lore raw
In reply to Zang Roy-R61911
Quoted 3 lines · On Thu, 2013-05-16 at 06:49 +0000, 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.

#29 lore raw
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 3 lines · On Thu, 2013-05-16 at 06:49 +0000, 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 workable combination of u-boot and RCW privately to you, please take a try.

Tiejun

#36 lore raw
In reply to Zang Roy-R61911

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 DIP ? I saw some of them control some SERDES stuff (SW5 iirc)

Cheers,
Ben.

#30 lore raw
In reply to Benjamin Herrenschmidt

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmVuamFtaW4gSGVycmVu c2NobWlkdCBbbWFpbHRvOmJlbmhAa2VybmVsLmNyYXNoaW5nLm9yZ10NCj4gU2VudDogVGh1cnNk YXksIE1heSAxNiwgMjAxMyAyOjU0IFBNDQo+IFRvOiBaYW5nIFJveS1SNjE5MTENCj4gQ2M6IEJo dXNoYW4gQmhhcmF0LVI2NTc3NzsgdGllanVuLmNoZW47IExpdSBRaWFuZy1CMzI2MTY7IEZsZW1p bmcgQW5keS0NCj4gQUZMRU1JTkc7IGxpbnV4cHBjLWRldkBsaXN0cy5vemxhYnMub3JnOyBYaWUg U2hhb2h1aS1CMjE5ODkNCj4gU3ViamVjdDogUmU6IFNBVEEgRlNMIGFuZCB1cHN0cmVhbWluZw0K PiANCj4gT24gVGh1LCAyMDEzLTA1LTE2IGF0IDA2OjQ5ICswMDAwLCBaYW5nIFJveS1SNjE5MTEg d3JvdGU6DQo+ID4NCj4gDQo+ID4gUGxlYXNlIGFsc28gcHJvdmlkZSBhIFJDVyBiaW5hcnkgdG8g QmVuLCBp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BuZXQgZGV2aWNlDQoNCj0+DQo=

#31 lore raw
Quoted 2 lines · On Thu, 2013-05-16 at 07:01 +0000, Zang Roy-R61911 wrote:

I just tried your RCW. one e1000 card works in slot7. we may need to check others ...

Tried 4 and 7 ...

Note that this *used* to work. Last year I had this machine up with 2 cards doing things. Not sure what changed, it's possible that the DIP got inadvertently changed. Or somebody stole a jumper from it in the lab :-)

Quoted 18 lines

U-Boot 2013.01-00078-g2741c99 (May 03 2013 - 00:20:41)

CPU0:  P5020E, Version: 2.0, (0x82280020)
Core:  E5500, Version: 1.2, (0x80240012)
Clock Configuration:
       CPU0:2000 MHz, CPU1:2000 MHz, 
       CCB:800  MHz,
       DDR:666.667 MHz (1333.333 MT/s data rate) (Asynchronous), LBC:100  MHz
       FMAN1: 600 MHz
       QMAN:  400 MHz
       PME:   400 MHz
L1:    D-cache 32 kB enabled
       I-cache 32 kB enabled
Reset Configuration Word (RCW):
       00000000: 0c540000 00000000 1e120000 00000000
       00000010: d8984a01 03002000 de800000 41000000
       00000020: 00000000 00000000 00000000 10070000
       00000030: 00000000 00000000 00000000 00000000

My RCW is identical

Quoted 1 line

Board: P5020DS, Sys ID: 0x1c, Sys Ver: 0x02, FPGA Ver: 0x04, vBank: 4

Mine is:
Board: P5020DS, Sys ID: 0x1c, Sys Ver: 0x12, FPGA Ver: 0x05, vBank: 4

Quoted 1 line

SERDES Reference Clocks: Bank1=100Mhz Bank2=125Mhz Bank3=125Mhz

Same.

Quoted 23 lines
I2C:   ready
SPI:   ready
DRAM:  Initializing....using SPD

Detected UDIMM i-DIMM
Detected UDIMM i-DIMM
2 GiB left unmapped
4 GiB (DDR3, 64-bit, CL=9, ECC on)
DDR Controller Interleaving Mode: cache line DDR Chip-Select Interleaving Mode: CS0+CS1
Testing 0x00000000 - 0x7fffffff
Testing 0x80000000 - 0xffffffff
Remap DDR 2 GiB left unmapped

POST memory PASSED

Flash: 128 MiB
L2:    512 KB enabled
Corenet Platform Cache: 2048 KB enabled
SRIO1: disabled
SRIO2: disabled
NAND:  1024 MiB
MMC:  FSL_SDHC: 0
EEPROM: Invalid ID (ff ff ff ff)
PCIe1: Root Complex, x2, regs @ 0xfe200000
Quoted 7 lines

01:00.0 - 8086:105e - Network controller
01:00.1 - 8086:105e - Network controller
PCIe1: Bus 00 - 01
PCIe2: disabled
PCIe3: Root Complex, no link, regs @ 0xfe202000
PCIe3: Bus 02 - 02
PCIe4: disabled

And I never see anything here anymore...

Quoted 19 lines
In:    serial
Out:   serial
Err:   serial
Net:   Initializing Fman
Fman1: Uploading microcode version 106.1.6

PHY reset timed out
PHY reset timed out
PHY reset timed out
PHY reset timed out
e1000: 00:15:17:16:ce:b8

       e1000: 00:15:17:16:ce:b9
       FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4 [PRIME], FM1@DTSEC5, FM1@TGEC1, e1000#0

Warning: e1000#0 MAC addresses don't match:
Address in SROM is 00:15:17:16:ce:b8
Address in environment is 00:1b:21:68:5e:d4 , e1000#1
Warning: e1000#1 using MAC address from net device

=>

#32 lore raw

QmVuLCBXaGljaCBTREsgeW91IGFyZSB1c2luZz8NCg0KLUJoYXJhdA0KDQo+IC0tLS0tT3JpZ2lu YWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEJlbmphbWluIEhlcnJlbnNjaG1pZHQgW21haWx0bzpi ZW5oQGtlcm5lbC5jcmFzaGluZy5vcmddDQo+IFNlbnQ6IFRodXJzZGF5LCBNYXkgMTYsIDIwMTMg MTI6MzYgUE0NCj4gVG86IFphbmcgUm95LVI2MTkxMQ0KPiBDYzogQmh1c2hhbiBCaGFyYXQtUjY1 Nzc3OyB0aWVqdW4uY2hlbjsgTGl1IFFpYW5nLUIzMjYxNjsgRmxlbWluZyBBbmR5LUFGTEVNSU5H Ow0KPiBsaW51eHBwYy1kZXZAbGlzdHMub3psYWJzLm9yZzsgWGllIFNoYW9odWktQjIxOTg5DQo+ IFN1YmplY3Q6IFJlOiBTQVRBIEZTTCBhbmQ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AyIC0gMDINCj4gPiBQQ0llNDogZGlzYWJsZWQNCj4gDQo+ IEFuZCBJIG5ldmVyIHNlZSBhbnl0aGluZyBoZXJlIGFueW1vcmUuLi4NCj4gDQo+ID4gSW46ICAg IHNlcmlhbA0KPiA+IE91dDogICBzZXJpYWwNCj4gPiBFcnI6ICAgc2VyaWFsDQo+ID4gTmV0OiAg IEluaXRpYWxpemluZyBGbWFuDQo+ID4gRm1hbjE6IFVwbG9hZGluZyBtaWNyb2NvZGUgdmVyc2lv biAxMDYuMS42IFBIWSByZXNldCB0aW1lZCBvdXQgUEhZDQo+ID4gcmVzZXQgdGltZWQgb3V0IFBI WSByZXNldCB0aW1lZCBvdXQgUEhZIHJlc2V0IHRpbWVkIG91dA0KPiA+IGUxMDAwOiAwMDoxNTox NzoxNjpjZTpiOA0KPiA+ICAgICAgICBlMTAwMDogMDA6MTU6MTc6MTY6Y2U6YjkNCj4gPiAgICAg ICAgRk0xQERUU0VDMSwgRk0xQERUU0VDMiwgRk0xQERUU0VDMywgRk0xQERUU0VDNCBbUFJJTUVd LA0KPiA+IEZNMUBEVFNFQzUsIEZNMUBUR0VDMSwgZTEwMDAjMA0KPiA+IFdhcm5pbmc6IGUxMDAw IzAgTUFDIGFkZHJlc3NlcyBkb24ndCBtYXRjaDoNCj4gPiBBZGRyZXNzIGluIFNST00gaXMgICAg ICAgICAwMDoxNToxNzoxNjpjZTpiOA0KPiA+IEFkZHJlc3MgaW4gZW52aXJvbm1lbnQgaXMgIDAw OjFiOjIxOjY4OjVlOmQ0ICwgZTEwMDAjMQ0KPiA+IFdhcm5pbmc6IGUxMDAwIzEgdXNpbmcgTUFD IGFkZHJlc3MgZnJvbSBuZXQgZGV2aWNlDQo+ID4NCj4gPiA9Pg0KPiANCj4gDQoNCg==

#37 lore raw
In reply to Benjamin Herrenschmidt
Quoted 17 lines

-----Original Message-----
From: Linuxppc-dev [mailto:linuxppc-dev-bounces+tie- [email protected]] On Behalf Of Benjamin Herrenschmidt
Sent: Thursday, May 16, 2013 2:59 PM
To: Zang Roy-R61911
Cc: Xie Shaohui-B21989; Liu Qiang-B32616; tiejun.chen; Fleming Andy- AFLEMING; Bhushan Bharat-R65777; [email protected]
Subject: Re: SATA FSL and upstreaming
=20
Ok, so I found this one on the SDK ISO: rcw_15g_2000mhz.bin =20
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).

Right.

Quoted 3 lines

=20
Are we sure we don't have a problem with some DIP ? I saw some of them control some SERDES stuff (SW5 iirc)

Your serdes1 clock is 100MHz,which is correct. Slot7 (PCIe1) does not need extra DIP to make it work. Maybe you also need to update the U-boot.
Roy

#19 lore raw
In reply to tiejun.chen

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogdGllanVuLmNoZW4gW21h aWx0bzp0aWVqdW4uY2hlbkB3aW5kcml2ZXIuY29tXQ0KPiBTZW50OiBUaHVyc2RheSwgTWF5IDE2 LCAyMDEzIDI6MjUgUE0NCj4gVG86IFphbmcgUm95LVI2MTkxMQ0KPiBDYzogQmVuamFtaW4gSGVy cmVuc2NobWlkdDsgTGl1IFFpYW5nLUIzMjYxNjsgRmxlbWluZyBBbmR5LUFGTEVNSU5HOw0KPiBs aW51eHBwYy1kZXZAbGlzdHMub3psYWJzLm9yZzsgWGllIFNoYW9odWktQjIxOTg5OyBCaHVzaGFu IEJoYXJhdC1SNjU3NzcNCj4gU3ViamVjdDogUmU6IFNBVEEgRlNMIGFuZCB1cHN0cmVhbWluZw0K PiANCj4gT24gMDUvMTYvMjAxMyAwMjoyMCBQTSwgWmFuZyBSb3ktUjYxOTExIHdyb3RlOg0KPiA+ DQo+ID4NCj4gPj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gPj4gRnJvbTogdGllanVu LmNoZW4gW21haWx0bzp0aWVqdW4uY2hlbkB3aW5kcml2ZXIuY29tXQ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AsIGUxMDAwIzENCj4gPiBXYXJuaW5n OiBlMTAwMCMxIHVzaW5nIE1BQyBhZGRyZXNzIGZyb20gbmV0IGRldmljZQ0KPiA+DQo+ID4gPT4N Cj4gDQo+IA0KDQo=

#40 lore raw
Quoted 9 lines · Timur Tabi
Quoted 5 lines · Benjamin Herrenschmidt
Quoted 3 lines

3) run " pix altbak" command

4) check you are on bank4

It stays on bank 0

pix altbank

So I got the rev2 chip today, put it in, and PCI-E is still not getting a link. Since the LEDs of the e1000 aren't coming up at all, I *suspect* the slots are getting no power.

Is there a power control somewhere ? Maybe some DIP or jumpers that might have gone off ?

Cheers,
Ben.

#41 lore raw
Quoted 6 lines · Benjamin Herrenschmidt

So I got the rev2 chip today, put it in, and PCI-E is still not getting a link. Since the LEDs of the e1000 aren't coming up at all, I *suspect* the slots are getting no power.

Is there a power control somewhere ? Maybe some DIP or jumpers that might have gone off ?

Forget it, reset all the jumpers to the default setup (found the doc !) and they come up now in slot 4 and 7. It also looks like uBoot now has an e1000 driver so I don't have to use fman (for which I believe there is still no upstream driver right ?)

BTW. Is that normal during boot ?

Net:   Initializing Fman
Fman1: Uploading microcode version 106.1.7

PHY reset timed out
PHY reset timed out
PHY reset timed out
PHY reset timed out

Cheers,
Ben.

#42 lore raw
Quoted 19 lines

-----Original Message-----
From: Linuxppc-dev [mailto:linuxppc-dev-bounces+tie- [email protected]] On Behalf Of Benjamin Herrenschmidt
Sent: Friday, June 07, 2013 12:40 PM
To: Timur Tabi
Cc: Xie Shaohui-B21989; Liu Qiang-B32616; Zang Roy-R61911; tiejun.chen; Fleming Andy-AFLEMING; Bhushan Bharat-R65777; linuxppc- [email protected]
Subject: Re: SATA FSL and upstreaming
=20
On Fri, 2013-06-07 at 13:52 +1000, Benjamin Herrenschmidt wrote:
=20

Quoted 4 lines

So I got the rev2 chip today, put it in, and PCI-E is still not getting a link. Since the LEDs of the e1000 aren't coming up at all, I *suspect* the slots are getting no power.

Quoted 7 lines
Quoted 2 lines

Is there a power control somewhere ? Maybe some DIP or jumpers that might have gone off ?

=20
Forget it, reset all the jumpers to the default setup (found the doc !) and they come up now in slot 4 and 7. It also looks like uBoot now has an e1000 driver so I don't have to use fman (for which I believe there is still no upstream driver right ?)

fman in u-boot has been up streamed. It should work.

Quoted 6 lines

=20
BTW. Is that normal during boot ?
=20

Net:   Initializing Fman
Fman1: Uploading microcode version 106.1.7 PHY reset timed out PHY reset

timed out PHY reset timed out PHY reset timed out

You can ignore the timeout.=20
Do you plug other card (for example SGMII card) on the board? u-boot detects some card in the slot and tries to init the PHY but fails. Roy

#43 lore raw
Quoted 7 lines · On Fri, 2013-06-07 at 04:45 +0000, Zang Roy-R61911 wrote:
Quoted 5 lines

Forget it, reset all the jumpers to the default setup (found the doc !) and they come up now in slot 4 and 7. It also looks like uBoot now has an e1000 driver so I don't have to use fman (for which I believe there is still no upstream driver right ?)

fman in u-boot has been up streamed. It should work.

I don't care much about u-boot :-) It's the kernel that matters to me.

Quoted 8 lines
Quoted 6 lines

BTW. Is that normal during boot ?

Net:   Initializing Fman
Fman1: Uploading microcode version 106.1.7 PHY reset timed out PHY reset

timed out PHY reset timed out PHY reset timed out

You can ignore the timeout.
Do you plug other card (for example SGMII card) on the board?

No, only PCIe in slot 4 and 7.

Quoted 1 line

u-boot detects some card in the slot and tries to init the PHY but fails.

Cheers,
Ben.

#44 lore raw

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmVuamFtaW4gSGVycmVu c2NobWlkdCBbbWFpbHRvOmJlbmhAa2VybmVsLmNyYXNoaW5nLm9yZ10NCj4gU2VudDogRnJpZGF5 LCBKdW5lIDA3LCAyMDEzIDEyOjQ3IFBNDQo+IFRvOiBaYW5nIFJveS1SNjE5MTENCj4gQ2M6IFRp bXVyIFRhYmk7IFhpZSBTaGFvaHVpLUIyMTk4OTsgTGl1IFFpYW5nLUIzMjYxNjsgdGllanVuLmNo ZW47DQo+IEZsZW1pbmcgQW5keS1B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9uIDEwNi4xLjcgUEhZIHJlc2V0IHRpbWVkIG91dCBQSFkNCj4gPiA+IHJlc2V0 IHRpbWVkIG91dCBQSFkgcmVzZXQgdGltZWQgb3V0IFBIWSByZXNldCB0aW1lZCBvdXQNCj4gPiBZ b3UgY2FuIGlnbm9yZSB0aGUgdGltZW91dC4NCj4gPiBEbyB5b3UgcGx1ZyBvdGhlciBjYXJkIChm b3IgZXhhbXBsZSBTR01JSSBjYXJkKSBvbiB0aGUgYm9hcmQ/DQo+IA0KPiBObywgb25seSBQQ0ll IGluIHNsb3QgNCBhbmQgNy4NCkdvIGFoZWFkIC4uLg0KVW5sZXNzIHRoZXJlIGlzIGEgY29tcGxl dGUgdS1ib290IGxvZywgSSBjYW4gY29tbWVudCBtb3JlLiBidXQgSSBkbyBub3QgdGhpbmsgaXQg aXMgdGhlIGZvY3VzIG5vdyAuLi4NCnRoYW5rcy4NClJveQ0K

#64 lore raw

FSL 64-bit DMA window question

In reply to Zang Roy-R61911

Hi Folks !

Is there any specific reason why you chose 1T (40 bit) as the location of the 64-bit DMA window ?

It happens that most current radeon adapters cannot DMA there, they have a 40-bit DMA limit. I seem to be getting things to work fine using a 39-bit window, but I suppose that might collide with something else ?

Can you guys consider changing the default ?

Cheers,
Ben.

#46 lore raw

RE: fsqrt

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmVuamFtaW4gSGVycmVu c2NobWlkdCBbbWFpbHRvOmJlbmhAa2VybmVsLmNyYXNoaW5nLm9yZ10NCj4gQW5vdGhlciBxdWVz dGlvbi4uLg0KPiANCj4gRG8geW91IGd1eXMgaGFwcGVuIHRvIGhhdmUgYSBwYXRjaCB0byBlbXVs YXRlIGZzcXJ0IGluIHRoZSBrZXJuZWwgPw0KPiANCj4gRmVkb3JhIDE5IHNlZW1zIHRvIGJlIHVz aW5nIGl0IC4uLiBhbW9uZyBvdGhlcnMuDQpZb3UgbWVhbiB0aGlzIG9uZQ0KYXJjaC9wb3dlcnBj L21hdGgtZW11L2ZzcXJ0LmMgPw0KWWVzLg0KUm95DQo=

#60 lore raw

Re: fsqrt

In reply to Benjamin Herrenschmidt
Quoted 3 lines · Benjamin Herrenschmidt

Another question...

Do you guys happen to have a patch to emulate fsqrt in the kernel ?

Seems this is already emulated:

arch/powerpc/math-emu/fsqrt.c

You can enable CONFIG_MATH_EMULATION to try.

Tiejun

#65 lore raw

RE: FSL 64-bit DMA window question

In reply to Benjamin Herrenschmidt

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmVuamFtaW4gSGVycmVu c2NobWlkdCBbbWFpbHRvOmJlbmhAa2VybmVsLmNyYXNoaW5nLm9yZ10NCj4gDQo+IEhpIEZvbGtz ICENCj4gDQo+IElzIHRoZXJlIGFueSBzcGVjaWZpYyByZWFzb24gd2h5IHlvdSBjaG9zZSAxVCAo NDAgYml0KSBhcyB0aGUgbG9jYXRpb24gb2YNCj4gdGhlIDY0LWJpdCBETUEgd2luZG93ID8NCj4g DQo+IEl0IGhhcHBlbnMgdGhhdCBtb3N0IGN1cnJlbnQgcmFkZW9uIGFkYXB0ZXJzIGNhbm5vdCBE TUEgdGhlcmUsIHRoZXkgaGF2ZQ0KPiBhIDQwLWJpdCBETUEgbGltaXQuIEkgc2VlbSB0byBiZSBn ZXR0aW5nIHRoaW5ncyB0byB3b3JrIGZpbmUgdXNpbmcgYSAzOS0NCj4gYml0IHdpbmRvdywgYnV0 IEkgc3VwcG9zZSB0aGF0IG1pZ2h0IGNvbGxpZGUgd2l0aCBzb21ldGhpbmcgZWxzZSA/DQpUNDI0 MCBoYXMgNDBiaXQgcGh5c2ljYWwgYWRkcmVzcyBhYmlsaXR5Lg0KIg0KVGhpcyBjaGlwJ3MgNDAt Yml0LCBwaHlzaWNhbCBhZGRyZXNzIG1hcCBjb25zaXN0cyBvZiBsb2NhbCBzcGFjZSBhbmQgZXh0 ZXJuYWwgYWRkcmVzcw0Kc3BhY2UuIEZvciB0aGUgbG9jYWwgYWRkcmVzcyBtYXAsIDMyIGxvY2Fs IGFjY2VzcyB3aW5kb3dzIChMQVdzKSBkZWZpbmUgbWFwcGluZw0Kd2l0aGluIHRoZSBsb2NhbCA0 MC1iaXQgKDEgVEIpIGFkZHJlc3Mgc3BhY2UuIEluYm91bmQgYW5kIG91dGJvdW5kIHRyYW5zbGF0 aW9uIHdpbmRvd3MNCmNhbiBtYXAgdGhlIGNoaXAgaW50byBhIGxhcmdlciBzeXN0ZW0gYWRkcmVz cyBzcGFjZSBzdWNoIGFzIHRoZSBSYXBpZElPIG9yIFBDSWUgNjQtYml0DQphZGRyZXNzIGVudmly b25tZW50LiBUaGlzIGZ1bmN0aW9uYWxpdHkgaXMgaW5jbHVkZWQgaW4gdGhlIGFkZHJlc3MgdHJh bnNsYXRpb24gYW5kDQptYXBwaW5nIHVuaXRzIChBVE1VcykuDQoNCiINClRoYXQgc2hvdWxkIGJl IHRoZSByZWFzb24gdG8gc2V0IHRoZSBETUEgd2luZG93IHRvIDQwLWJpdC4NCg0KPiANCj4gQ2Fu IHlvdSBndXlzIGNvbnNpZGVyIGNoYW5naW5nIHRoZSBkZWZhdWx0ID8NCkFueSBjb2xsaWRlIGZv ciA0MGJpdD8NClJveQ0K

#47 lore raw

Re: fsqrt

In reply to Zang Roy-R61911
Quoted 10 lines · On Fri, 2013-06-07 at 07:45 +0000, Zang Roy-R61911 wrote:
Quoted 8 lines

-----Original Message-----
From: Benjamin Herrenschmidt [mailto:[email protected]] Another question...

Do you guys happen to have a patch to emulate fsqrt in the kernel ?

Fedora 19 seems to be using it ... among others.

You mean this one
arch/powerpc/math-emu/fsqrt.c ?

No. This is for setups that have no FPU, I don't think that will work with an actual FPU.

fsqrt is an optional instruction in the architecture and FSL chips don't use it. However it looks like Fedora is compiled with a toolchain that generates it.

I've successfully launched the Fedora installer using this hack in the kernel:

Quoted 1 line

From f75adba1ee91691d431e283184e15412114000d1 Mon Sep 17 00:00:00 2001

From: Benjamin Herrenschmidt <[email protected]>
Date: Fri, 7 Jun 2013 18:42:44 +1000
Subject: [PATCH] Gross hack

---
 arch/powerpc/include/asm/ppc-opcode.h |    2 ++
 arch/powerpc/kernel/Makefile          |    4 ++-
 arch/powerpc/kernel/fsqrt-emu.c       |   44 +++++++++++++++++++++++++++++++++
 arch/powerpc/kernel/traps.c           |    7 ++++++
 4 files changed, 56 insertions(+), 1 deletion(-)
 create mode 100644 arch/powerpc/kernel/fsqrt-emu.c
arch/powerpc/include/asm/ppc-opcode.h +2 -0
index eccfc16..146c5e9 100644
@@ -88,6 +88,8 @@
 #define PPC_INST_DCBA_MASK		0xfc0007fe
 #define PPC_INST_DCBAL			0x7c2005ec
 #define PPC_INST_DCBZL			0x7c2007ec
+#define PPC_INST_FSQRT			0xfc00002c
+#define PPC_INST_FSQRT_MASK		0xfc1f07fe
 #define PPC_INST_ICBT			0x7c00002c
 #define PPC_INST_ISEL			0x7c00001e
 #define PPC_INST_ISEL_MASK		0xfc00003e
arch/powerpc/kernel/Makefile +3 -1
index f960a79..64c9962 100644
@@ -26,6 +26,8 @@ CFLAGS_REMOVE_ftrace.o = -pg -mno-sched-epilog
 CFLAGS_REMOVE_time.o = -pg -mno-sched-epilog
 endif
 
+CFLAGS_REMOVE_fsqrt-emu.o = -msoft-float
+
 obj-y				:= cputable.o ptrace.o syscalls.o \
 				   irq.o align.o signal_32.o pmc.o vdso.o \
 				   process.o systbl.o idle.o \
@@ -34,7 +36,7 @@ obj-y				:= cputable.o ptrace.o syscalls.o \
 				   udbg.o misc.o io.o dma.o \
 				   misc_$(CONFIG_WORD_SIZE).o vdso32/
 obj-$(CONFIG_PPC64)		+= setup_64.o sys_ppc32.o \
-				   signal_64.o ptrace32.o \
+				   signal_64.o ptrace32.o fsqrt-emu.o \
 				   paca.o nvram_64.o firmware.o
 obj-$(CONFIG_HAVE_HW_BREAKPOINT)	+= hw_breakpoint.o
 obj-$(CONFIG_PPC_BOOK3S_64)	+= cpu_setup_ppc970.o cpu_setup_pa6t.o
arch/powerpc/kernel/fsqrt-emu.c new file +44 -0

44 lines not on this page · raw message

arch/powerpc/kernel/traps.c +7 -0
index 6dfbb38..e677792 100644
@@ -938,6 +938,8 @@ static int emulate_isel(struct pt_regs *regs, u32 instword)
 	return 0;
 }
 
+extern int emulate_fsqrt_inst(struct pt_regs *regs, u32 instword);
+
 #ifdef CONFIG_PPC_TRANSACTIONAL_MEM
 static inline bool tm_abort_check(struct pt_regs *regs, int cause)
 {
@@ -1018,6 +1020,11 @@ static int emulate_instruction(struct pt_regs *regs)
 		return emulate_isel(regs, instword);
 	}
 
+	if ((instword & PPC_INST_FSQRT_MASK) == PPC_INST_FSQRT) {
+		PPC_WARN_EMULATED(isel, regs);
+		return emulate_fsqrt_inst(regs, instword);
+	}
+
 #ifdef CONFIG_PPC64
 	/* Emulate the mfspr rD, DSCR. */
 	if ((((instword & PPC_INST_MFSPR_DSCR_USER_MASK) ==
Signature · 1 line
1.7.10.4
#61 lore raw

Re: fsqrt

In reply to tiejun.chen
Quoted 10 lines · tiejun.chen
Quoted 3 lines · Benjamin Herrenschmidt

Another question...

Do you guys happen to have a patch to emulate fsqrt in the kernel ?

Seems this is already emulated:

arch/powerpc/math-emu/fsqrt.c

You can enable CONFIG_MATH_EMULATION to try.

Is math emu expected to work at all on top of a real FPU ? I though it didn't ... maybe I'm wrong.

Cheers,
Ben.

#66 lore raw

Re: FSL 64-bit DMA window question

In reply to Zang Roy-R61911
Quoted 21 lines · On Fri, 2013-06-07 at 07:58 +0000, Zang Roy-R61911 wrote:
Quoted 4 lines

-----Original Message-----
From: Benjamin Herrenschmidt [mailto:[email protected]]

Quoted 8 lines

Hi Folks !

Is there any specific reason why you chose 1T (40 bit) as the location of the 64-bit DMA window ?

It happens that most current radeon adapters cannot DMA there, they have a 40-bit DMA limit. I seem to be getting things to work fine using a 39- bit window, but I suppose that might collide with something else ?

T4240 has 40bit physical address ability.
"
This chip's 40-bit, physical address map consists of local space and external address space. For the local address map, 32 local access windows (LAWs) define mapping within the local 40-bit (1 TB) address space. Inbound and outbound translation windows can map the chip into a larger system address space such as the RapidIO or PCIe 64-bit address environment. This functionality is included in the address translation and mapping units (ATMUs).

Quoted 2 lines

"
That should be the reason to set the DMA window to 40-bit.

I see. However if the top half of that space isn't used by default with whatever is our current setup, it makes sense to move down the 64-bit DMA window to allow those adapters to function don't you think ?

I'm trying to turn those FSL boxes into nice ppc64 dev. workstations :-)

Cheers,
Ben.

Quoted 4 lines
Quoted 2 lines

Can you guys consider changing the default ?

Any collide for 40bit?
Roy

#48 lore raw

Re: fsqrt

In reply to Benjamin Herrenschmidt
Quoted 7 lines · Benjamin Herrenschmidt
arch/powerpc/kernel/fsqrt-emu.c new file +7 -0
+
+static double crackpot_sqrt(double val)
+{
+    int i;
+    float x, y;
+    const float f = 1.5F;
+

arch/powerpc/kernel/fsqrt-emu.c line 23

Quoted 10 lines
arch/powerpc/kernel/fsqrt-emu.c new file +10 -0
+    x = val * 0.5F;
+    y  = val;
+    i  = * ( int * ) &y;
+    i  = 0x5f3759df - ( i >> 1 );
+    y  = * ( float * ) &i;
+    y  = y * ( f - ( x * y * y ) );
+    y  = y * ( f - ( x * y * y ) );
+    return val * y;
+}
+

For those interested, this is the Quake3 sqrt from Carmack ... there's plenty of literature about it one or two google clicks away :-)

Cheers,
Ben.

#62 lore raw

Re: fsqrt

In reply to Benjamin Herrenschmidt
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 5 lines · tiejun.chen
Quoted 3 lines · Benjamin Herrenschmidt

Another question...

Do you guys happen to have a patch to emulate fsqrt in the kernel ?

Quoted 8 lines
Quoted 5 lines

Seems this is already emulated:

arch/powerpc/math-emu/fsqrt.c

You can enable CONFIG_MATH_EMULATION to try.

Is math emu expected to work at all on top of a real FPU ? I though it didn't ... maybe I'm wrong.

As I understand often the real FPU can't support all float instructions, so we have to enable this to emulate those unsupported float instructions in that scenario.

Tiejun

#67 lore raw

RE: FSL 64-bit DMA window question

In reply to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mcm9tIHdvcmtpbmcuIFJpZ2h0Pw0KWW91ciBQNTAy MCBEUyBzeXN0ZW0gb25seSBzdXBwb3J0IDM2IGJpdCBwaHlzaWNhbCBhZGRyZXNzLg0KDQo+IA0K PiBJJ20gdHJ5aW5nIHRvIHR1cm4gdGhvc2UgRlNMIGJveGVzIGludG8gbmljZSBwcGM2NCBkZXYu IHdvcmtzdGF0aW9ucyA6LSkNClRoYXQgaXMgZ29vZC4gSSdkIGxpa2UgdG8gc2VlIGhvdyBsb25n IGl0IHdpbGwgYnVpbGQgYSBrZXJuZWwgLi4uDQp0aGFua3MuDQpSb3kNCg==

#49 lore raw

RE: fsqrt

In reply to Benjamin Herrenschmidt
Quoted 12 lines
Quoted 12 lines
arch/powerpc/kernel/fsqrt-emu.c new file +12 -0
+
+static double crackpot_sqrt(double val)
+{
+    int i;
+    float x, y;
+    const float f =3D 1.5F;
+
+    x =3D val * 0.5F;
+    y  =3D val;
+    i  =3D * ( int * ) &y;
+    i  =3D 0x5f3759df - ( i >> 1 );
+    y  =3D * ( float * ) &i;
Quoted 8 lines

arch/powerpc/kernel/fsqrt-emu.c line 23

Quoted 5 lines
arch/powerpc/kernel/fsqrt-emu.c new file +5 -0
+    y  =3D y * ( f - ( x * y * y ) );
+    y  =3D y * ( f - ( x * y * y ) );
+    return val * y;
+}
+

=20
For those interested, this is the Quake3 sqrt from Carmack ... there's plenty of literature about it one or two google clicks away :-)

I guess that is a rough enough approximation for graphics.

However it will be miscompiled unless i and y are put in a union.

David

#63 lore raw

Re: fsqrt

In reply to tiejun.chen
Quoted 11 lines · tiejun.chen
Quoted 10 lines · Benjamin Herrenschmidt
Quoted 9 lines · tiejun.chen
Quoted 3 lines · Benjamin Herrenschmidt

Another question...

Do you guys happen to have a patch to emulate fsqrt in the kernel ?

Seems this is already emulated:

arch/powerpc/math-emu/fsqrt.c

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

You can enable CONFIG_MATH_EMULATION to try.

Is math emu expected to work at all on top of a real FPU ? I though it didn't ... maybe I'm wrong.

As I understand often the real FPU can't support all float instructions, so we have to enable this to emulate those unsupported float instructions in that scenario.

Ok, two things come to mind here:

- do_mathemu doesn't do giveup_fpu() so the FPU state might still be
in the "live" FP registers and not in the thread_struct, so it can't work... unless I missed something.

- mathemu uses solely integers. For something like fsqrt it's going to
suck a lot more than implementing using floating points in the kernel.

Cheers,
Ben.

#68 lore raw

Re: FSL 64-bit DMA window question

In reply to Zang Roy-R61911
Quoted 34 lines · On Fri, 2013-06-07 at 09:44 +0000, Zang Roy-R61911 wrote:
Quoted 34 lines

-----Original Message-----
From: Benjamin Herrenschmidt [mailto:[email protected]]

Quoted 7 lines · On Fri, 2013-06-07 at 07:58 +0000, Zang Roy-R61911 wrote:
Quoted 7 lines

-----Original Message-----
From: Benjamin Herrenschmidt [mailto:[email protected]]

Hi Folks !

Is there any specific reason why you chose 1T (40 bit) as the

location of

Quoted 3 lines
Quoted 3 lines

the 64-bit DMA window ?

It happens that most current radeon adapters cannot DMA there, they

have

Quoted 1 line
Quoted 1 line

a 40-bit DMA limit. I seem to be getting things to work fine using a

39-

Quoted 4 lines
Quoted 1 line

bit window, but I suppose that might collide with something else ?

T4240 has 40bit physical address ability.
"
This chip's 40-bit, physical address map consists of local space and

external address

Quoted 1 line

space. For the local address map, 32 local access windows (LAWs) define

mapping

Quoted 1 line

within the local 40-bit (1 TB) address space. Inbound and outbound

translation windows

Quoted 1 line

can map the chip into a larger system address space such as the RapidIO

or PCIe 64-bit

Quoted 1 line

address environment. This functionality is included in the address

translation and

Quoted 2 lines

mapping units (ATMUs).

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

"
That should be the reason to set the DMA window to 40-bit.

I see. However if the top half of that space isn't used by default with whatever is our current setup, it makes sense to move down the 64-bit DMA window to allow those adapters to function don't you think ?

Good to me.
40 bit DMA will prevent your radeon video card from working. Right? Your P5020 DS system only support 36 bit physical address.

We should probably put the "64-bit DMA" address in the device-tree, that way if somebody wish to do differently they can.

Quoted 3 lines
Quoted 2 lines

I'm trying to turn those FSL boxes into nice ppc64 dev. workstations :-)

That is good. I'd like to see how long it will build a kernel ...

I'll tell you when you send me a 24 cores e6500 :-)

In the meantime I'll build them on my 16-cores (64 threads) P7+ :-)

I'm more thinking about how to seed general community developers with machines they can use to ensure things work fine on ppc64 without having to get them a rack in their basement...

Cheers,
Ben.

Quoted 2 lines

thanks.
Roy

#76 lore raw
In reply to Benjamin Herrenschmidt
Quoted 4 lines · Benjamin Herrenschmidt

PHY reset timed out
PHY reset timed out
PHY reset timed out
PHY reset timed out

This usually means that your RCW does not match your dip switch settings.

Signature · 1 line
Timur Tabi
#50 lore raw

Re: fsqrt

In reply to David Laight
Quoted 7 lines · David Laight
Quoted 1 line

For those interested, this is the Quake3 sqrt from Carmack ...

there's

Quoted 1 line

plenty of literature about it one or two google clicks away :-)

I guess that is a rough enough approximation for graphics.

However it will be miscompiled unless i and y are put in a union.

It won't in the kernel disables strict aliasing :-)

Anyway, that was just a hack and plenty enough to get anaconda going, the bloody thing only uses fsqrt because it's python crappola does something like exp(1.0) / sqrt(2.0) as part of its random number stuff.

Honestly I could have made it just return 1.0 and it would probably have worked :-)

However, my point remains, it would be very much worthwhile for the kernel to have some reasonable emulation of those missing instructions (afaik only a handful) like we have for isel, popcnt* etc... especially since distros seem to be keen on enabling the use of them in their toolchain.

I don't personally have the bandwidth to do a clean implementation (that handles FP exceptions, NaNs, FPSCR, etc...) but I believe it would be valuable if somebody else did (hint hint hint :-) since without this, Fedora ppc64 is basically going to be a non-started on those chips.

BTW. Did you guys (ie. FSL) finally add fsqrt to e6500 or it's still out ?

Cheers,
Ben.

#51 lore raw

Re: fsqrt

Quoted 29 lines · Benjamin Herrenschmidt
Quoted 7 lines · David Laight
Quoted 1 line

For those interested, this is the Quake3 sqrt from Carmack ...

there's

Quoted 1 line

plenty of literature about it one or two google clicks away :-)

I guess that is a rough enough approximation for graphics.

However it will be miscompiled unless i and y are put in a union.

It won't in the kernel disables strict aliasing :-)

Anyway, that was just a hack and plenty enough to get anaconda going, the bloody thing only uses fsqrt because it's python crappola does something like exp(1.0) / sqrt(2.0) as part of its random number stuff.

Honestly I could have made it just return 1.0 and it would probably have worked :-)

However, my point remains, it would be very much worthwhile for the kernel to have some reasonable emulation of those missing instructions (afaik only a handful) like we have for isel, popcnt* etc... especially since distros seem to be keen on enabling the use of them in their toolchain.

I don't personally have the bandwidth to do a clean implementation (that handles FP exceptions, NaNs, FPSCR, etc...) but I believe it would be valuable if somebody else did (hint hint hint :-) since without this, Fedora ppc64 is basically going to be a non-started on those chips.

Quoted 5 lines

BTW. Did you guys (ie. FSL) finally add fsqrt to e6500 or it's still out ?

Cheers,
Ben.

Pretty sure fsqrt is still out of e6500.

- k

#70 lore raw

Re: FSL 64-bit DMA window question

In reply to a message not in the archive
Quoted 69 lines · Scott Wood
Quoted 49 lines · Benjamin Herrenschmidt
Quoted 8 lines · On Fri, 2013-06-07 at 09:44 +0000, Zang Roy-R61911 wrote:
Quoted 8 lines

-----Original Message-----
From: Benjamin Herrenschmidt [mailto:[email protected]]

Quoted 3 lines · On Fri, 2013-06-07 at 07:58 +0000, Zang Roy-R61911 wrote:
Quoted 3 lines

-----Original Message-----
From: Benjamin Herrenschmidt =20

[mailto:[email protected]]

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

Hi Folks !

Is there any specific reason why you chose 1T (40 bit) as the

location of

Quoted 3 lines
Quoted 3 lines

the 64-bit DMA window ?

It happens that most current radeon adapters cannot DMA =20

there, they

Quoted 2 lines
Quoted 2 lines

have

Quoted 1 line
Quoted 1 line

a 40-bit DMA limit. I seem to be getting things to work fine =20

using a

Quoted 2 lines
Quoted 2 lines

39-

Quoted 1 line
Quoted 1 line

bit window, but I suppose that might collide with something =20

else ?

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

T4240 has 40bit physical address ability.
"
This chip's 40-bit, physical address map consists of local =20

space and

Quoted 2 lines
Quoted 2 lines

external address

Quoted 1 line

space. For the local address map, 32 local access windows =20

(LAWs) define

Quoted 2 lines
Quoted 2 lines

mapping

Quoted 1 line

within the local 40-bit (1 TB) address space. Inbound and =20

outbound

Quoted 2 lines
Quoted 2 lines

translation windows

Quoted 1 line

can map the chip into a larger system address space such as =20

the RapidIO

Quoted 2 lines
Quoted 2 lines

or PCIe 64-bit

Quoted 1 line

address environment. This functionality is included in the =20

address

Quoted 6 lines
Quoted 6 lines

translation and

Quoted 4 lines

mapping units (ATMUs).

"
That should be the reason to set the DMA window to 40-bit.

I see. However if the top half of that space isn't used by =20

default with

Quoted 1 line
Quoted 1 line

whatever is our current setup, it makes sense to move down the =20

Quoted 8 lines

64-bit

Quoted 4 lines
Quoted 1 line

DMA window to allow those adapters to function don't you think ?

Good to me.
40 bit DMA will prevent your radeon video card from working. Right? Your P5020 DS system only support 36 bit physical address.

=20
We should probably put the "64-bit DMA" address in the device-tree, that way if somebody wish to do differently they can.

=20
I thought the device tree was for describing the hardware, rather =20 than configuration? :-)
A kernel command line option might be more appropriate, unless you =20 just mean describing the difference between e6500 (which supports 40 =20 bit addresses) and previous chips (which support 36 bits), rather =20 than an ability to move it earlier even on e6500.
=20
That said, the current code looks broken -- it checks whether a card =20 can do 40-bit DMA, and if it can, it sets the DMA offset to (1ULL << =20 40), thus requiring 41-bit DMA. It should be > instead of >=3D in =20

Quoted 8 lines

fsl_pci_dma_set_mask.
=20
Maybe we could by default use the size of actual RAM, rather than the =20 physical address space. Then only odd scenarios such as DMA to =20 non-kernel-owned RAM would need manual adjustment (MSIs would still =20 go through the special window below 4G).
=20
-Scott

=

#71 lore raw

Re: FSL 64-bit DMA window question

Quoted 3 lines · Scott Wood

O

Quoted 2 lines

I thought the device tree was for describing the hardware, rather than configuration? :-)

A bit of both really. See things like /chosen etc...

Also to what extent a MAC address is HW vs. configuration ? :-)

The HW configuration for a given boards (ie, internal address map, location of the various bridge windows etc...) is a fairly common thing to put in a device-tree.

If the PCI outbound windows are there (and they are), why not the inbound ones ? IE, it's not far fetched.

Quoted 4 lines
Quoted 4 lines

A kernel command line option might be more appropriate, unless you just mean describing the difference between e6500 (which supports 40 bit addresses) and previous chips (which support 36 bits), rather than an ability to move it earlier even on e6500.

Well, so we could indeed locate it at 36 on e5500 and that would clear the current use case and break again on e6500... or we can make it depend on the overall address map of the board, which is described in the device-tree. IE, if you don't "locate" anything above 39-bit in our address map, then using 39 for the window is ok. IE. It's a choice. A server board setup that doesn't need gfx but want address space for some other things wouldn't care.

A board wanting to use gfx (either desktop style, or some of the military applications I've seen using FSL chips and radeons) would chose the address map differently to allow the radeons to work.

Quoted 4 lines
Quoted 4 lines

That said, the current code looks broken -- it checks whether a card can do 40-bit DMA, and if it can, it sets the DMA offset to (1ULL << 40), thus requiring 41-bit DMA. It should be > instead of >= in fsl_pci_dma_set_mask.

Yes, this was broken for a while, I remember mentioning it a while back but never actually sending a patch to fix it ... oops ;-)

Quoted 4 lines
Quoted 4 lines

Maybe we could by default use the size of actual RAM, rather than the physical address space. Then only odd scenarios such as DMA to non-kernel-owned RAM would need manual adjustment (MSIs would still go through the special window below 4G).

You also need to account for other on-chip MMIOs no ? Or do you never intend to let PCI devices hit them ?

If not, then top of RAM aligned to the next power of two sounds like a great plan.

Also, those radeons are *also* broken for 64-bit MSIs (they advertize support but are limited to 40-bit of address). We have added hacks to deal with that in pseries that I was thinking of generalizing.

Cheers,
Ben.

#72 lore raw

Re: FSL 64-bit DMA window question

Quoted 8 lines · Benjamin Herrenschmidt
Quoted 3 lines · Scott Wood

O

Quoted 2 lines

I thought the device tree was for describing the hardware, rather than configuration? :-)

=20
A bit of both really. See things like /chosen etc... =20
Also to what extent a MAC address is HW vs. configuration ? :-)

Normally I'd consider that hardware, unless you're overriding it for =20 some reason.

Quoted 4 lines

The HW configuration for a given boards (ie, internal address map, location of the various bridge windows etc...) is a fairly common =20 thing
to put in a device-tree.

Sure, there's some stuff that is technically software config, but which =20 is easier to treat as a fixed property of the hardware once U-Boot is =20 done setting it up. But U-Boot doesn't have anything to do with this =20 DMA window...

Quoted 2 lines

If the PCI outbound windows are there (and they are), why not the inbound ones ? IE, it's not far fetched.

PCI outbound windows (and the LAWs that back them up) are set up by =20 U-Boot. With the current FSL kernel code, if you set it to something =20 that isn't covered by a PCIe LAW from U-Boot, it won't work.

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

A kernel command line option might be more appropriate, unless you just mean describing the difference between e6500 (which supports =20

40

Quoted 2 lines
Quoted 2 lines

bit addresses) and previous chips (which support 36 bits), rather than an ability to move it earlier even on e6500.

Quoted 8 lines

=20
Well, so we could indeed locate it at 36 on e5500 and that would clear the current use case and break again on e6500... or we can make it depend on the overall address map of the board, which is described in the device-tree. IE, if you don't "locate" anything above 39-bit in our address map, then using 39 for the window is ok. IE. It's a choice. A server board setup that doesn't need gfx but want address space for some other things wouldn't care.

I suppose we could put in the device tree the highest address that has =20 been configured for anything... though for that to be useful we'd need =20 to get out of the habit of putting CCSR near the top of the physical =20 address space.

Quoted 9 lines
Quoted 1 line
Quoted 1 line

Maybe we could by default use the size of actual RAM, rather than =20

the

Quoted 2 lines
Quoted 2 lines

physical address space. Then only odd scenarios such as DMA to non-kernel-owned RAM would need manual adjustment (MSIs would =20

still

Quoted 1 line
Quoted 1 line

go through the special window below 4G).

=20
You also need to account for other on-chip MMIOs no ? Or do you never intend to let PCI devices hit them ?

I don't think we normally need that (other than MSIs, which have a =20 special window under 4G)... The question is whether it's better to let =20 odd use cases work without having to manually move the DMA window, at =20 the cost of decreased out-of-the-box performance with common PCIe cards.

-Scott=

#73 lore raw

Re: FSL 64-bit DMA window question

Quoted 7 lines · Scott Wood
Quoted 2 lines

You also need to account for other on-chip MMIOs no ? Or do you never intend to let PCI devices hit them ?

I don't think we normally need that (other than MSIs, which have a special window under 4G)... The question is whether it's better to let odd use cases work without having to manually move the DMA window, at the cost of decreased out-of-the-box performance with common PCIe cards.

Sorry, I didn't parse what the tradeoff is here...

Putting the inbound window above memory seems like a reasonable option then (at least as a default that the board can override).

I sincerely hope those radeons are the only remaining things with that sort of limitation but you never know ... it's all x86 fault of course for never having used high DMA windows :-)

Cheers,
Ben.

#52 lore raw

Re: fsqrt

In reply to Kumar Gala
Quoted 5 lines · Kumar Gala
Quoted 5 lines

I don't personally have the bandwidth to do a clean implementation (that handles FP exceptions, NaNs, FPSCR, etc...) but I believe it would be valuable if somebody else did (hint hint hint :-) since without this, Fedora ppc64 is basically going to be a non-started on those chips.

Quoted 7 lines
Quoted 5 lines

BTW. Did you guys (ie. FSL) finally add fsqrt to e6500 or it's still out ?

Cheers,
Ben.

Pretty sure fsqrt is still out of e6500.

Ok, thinking out loud... looks like we might be able to just use existing math-emu for that. From what I can tell, all it needs (other than enabling the config option), is a call to flush_fp_to_thread(current);

While talking math-emu... we seem to have some duplication between the code on do_mathemu which can be compiled without CONFIG_MATH_EMULATION and in this case only just emulates loads/stores/fmr and the code in arch/powerpc/kernel/softemu8xx.c.

Is there any reason we can't just get rid of the latter ?

Cheers,
Ben.

#53 lore raw

Re: fsqrt

Quoted 10 lines · Benjamin Herrenschmidt

Ok, thinking out loud... looks like we might be able to just use existing math-emu for that. From what I can tell, all it needs (other than enabling the config option), is a call to flush_fp_to_thread(current);

While talking math-emu... we seem to have some duplication between the code on do_mathemu which can be compiled without CONFIG_MATH_EMULATION and in this case only just emulates loads/stores/fmr and the code in arch/powerpc/kernel/softemu8xx.c.

Is there any reason we can't just get rid of the latter ?

Or just git completely rid of that "minimal emulation" ...

Cheers,
Ben.

#74 lore raw

Re: FSL 64-bit DMA window question

In reply to Benjamin Herrenschmidt
Quoted 7 lines · Benjamin Herrenschmidt
Quoted 1 line · Scott Wood
Quoted 1 line

You also need to account for other on-chip MMIOs no ? Or do you =20

never

Quoted 4 lines
Quoted 1 line

intend to let PCI devices hit them ?

I don't think we normally need that (other than MSIs, which have a special window under 4G)... The question is whether it's better to =20

Quoted 7 lines

let

Quoted 1 line

odd use cases work without having to manually move the DMA window, =20

at

Quoted 1 line

the cost of decreased out-of-the-box performance with common PCIe =20

cards.
=20
Sorry, I didn't parse what the tradeoff is here...

I just meant that a PCIe device targeting something other than RAM, =20 CCSR (it's not just MSIs that are mapped through the special window), =20 or another PCIe is a rather unusual case -- not something that you'd =20 see by just plugging in an ordinary PCIe card. The tradeoff is that if =20 we accommodate this strange use case, boards like the radeon would need =20 to use swiotlb (once we fix the > versus >=3D bug) unless the user tweaks =20 the DMA window.

It may be best to stick with the default that makes everything work, =20 even if a broken PCIe card ends up being a bit slower out of the box, =20 even if the PCIe-to-MMIO use case is weird and would require custom =20 setup anyway. OTOH, did we ever care about 32-bit DMA being able to =20 access MMIO?

Quoted 9 lines

Putting the inbound window above memory seems like a reasonable =20 option then
(at least as a default that the board can override).
=20
I sincerely hope those radeons are the only remaining things with =20 that sort of
limitation but you never know ... it's all x86 fault of course for =20 never having
used high DMA windows :-)

Hmm... Why are we using this special window at all? Can't we just have =20 one large identity mapping starting at zero, with the MSI window =20 presumably taking precedence? The manual is a bit vague on whether =20 inbound windows can overlap with priority... in EP mode it says it =20 does, and the RC section is silent. Do we currently ever overlap =20 PCICSRBAR with a real window?

-Scott=

#54 lore raw

Re: fsqrt

In reply to Benjamin Herrenschmidt
Quoted 5 lines · Benjamin Herrenschmidt
Quoted 4 lines · Benjamin Herrenschmidt

Ok, thinking out loud... looks like we might be able to just use existing math-emu for that. From what I can tell, all it needs (other than enabling the config option), is a call to flush_fp_to_thread(current);

Quoted 8 lines
Quoted 6 lines

While talking math-emu... we seem to have some duplication between the code on do_mathemu which can be compiled without CONFIG_MATH_EMULATION and in this case only just emulates loads/stores/fmr and the code in arch/powerpc/kernel/softemu8xx.c.

Is there any reason we can't just get rid of the latter ?

Or just git completely rid of that "minimal emulation" ...

Right, looking more, the code really sucks. Either you use the existing apparent ability for MATH_EMU to operate in minimal mode, ie, load/store/fmr only (which seems to do exactly the same thing as the code in softemu8xx.c which we can then get rid of), or just get rid of that minimal mode alltogether.

And while at it make it a general config option for all soft-emu processors (there is no bloody reason why that should be 8xx specfic) or just get rid of the whole concept of half-emulation.

Ie. CONFIG_MATH_EMULATION/CONFIG_MATH_HALF_ASSED_EMULATION

Ben.

#75 lore raw

Re: FSL 64-bit DMA window question

In reply to Scott Wood
Quoted 7 lines · Scott Wood

I just meant that a PCIe device targeting something other than RAM, CCSR (it's not just MSIs that are mapped through the special window), or another PCIe is a rather unusual case -- not something that you'd see by just plugging in an ordinary PCIe card. The tradeoff is that if we accommodate this strange use case, boards like the radeon would need to use swiotlb (once we fix the > versus >= bug) unless the user tweaks the DMA window.

Yeah, well, swiotlb won't work for radeon anyway. It has its own "mmu" (a GART really) and will constantly want to pin pages in it, swiotlb will be at best a mess and at worst will just not work.

Quoted 5 lines

It may be best to stick with the default that makes everything work, even if a broken PCIe card ends up being a bit slower out of the box, even if the PCIe-to-MMIO use case is weird and would require custom setup anyway. OTOH, did we ever care about 32-bit DMA being able to access MMIO?

Not that I know of.

Quoted 3 lines

Hmm... Why are we using this special window at all? Can't we just have one large identity mapping starting at zero, with the MSI window presumably taking precedence?

Then you'd have to reserve the RAM covered by the MSI window, not necessarily a big deal. It would also still allow swiotlb to work, so it actually doesn't seem like a bad idea if you don't have an actual / usable iommu.

So if it works, I like that idea even better.

Quoted 4 lines

The manual is a bit vague on whether
inbound windows can overlap with priority... in EP mode it says it does, and the RC section is silent. Do we currently ever overlap PCICSRBAR with a real window?

Cheers,
Ben.

#55 lore raw

Re: fsqrt

In reply to Benjamin Herrenschmidt
Quoted 1 line · Benjamin Herrenschmidt =

Right, looking more, the code really sucks.

Hey! :)

Quoted 5 lines

=85. Either you use the existing
apparent ability for MATH_EMU to operate in minimal mode, ie, load/store/fmr only (which seems to do exactly the same thing as the code in softemu8xx.c which we can then get rid of), or just get rid of that minimal mode altogether.

The purpose for that "minimal code" was the signal handlers were = hand-coded assembly that always did the FPU load/store regardless of = compiler flags. Over time, it became convenient to emulate a few = others, even with user space math emulation, for similar reasons.

Quoted 2 lines

And while at it make it a general config option for all soft-emu processors (there is no bloody reason why that should be 8xx specfic) =

or

Quoted 1 line

just get rid of the whole concept of half-emulation.

Looks like the code just evolved and the 8xx was never cleaned up.

The partial emulation is a convenience for the libraries that may still = have FP instructions directly coded. There are also permutations of = real FPU but not all instructions, and no FPU to consider for fetching = operands and storing results to be considered for the various = configuration options.

Thanks.

	-- Dan
#56 lore raw

Re: fsqrt

Quoted 4 lines · Dan Malek

The purpose for that "minimal code" was the signal handlers were hand-coded assembly that always did the FPU load/store regardless of compiler flags. Over time, it became convenient to emulate a few others, even with user space math emulation, for similar reasons.

The question is whether this is still relevant ? And if the answer is yes, we still want that "minimum" emulation of load/stores/fmr as an option, is there any reason why we can't replace the one in softemu8xx with the existing (and unused) equivalent in do_mathemu ?

Cheers,
Ben.

#57 lore raw

Re: fsqrt

Hi Ben.

Quoted 1 line · Benjamin Herrenschmidt =

The question is whether this is still relevant ?

The only answer I could provide is that it's dependent upon the = libraries and how the distributions are built. It's also dependent upon = processors with hardware FP that don't implement all instructions in = hardware (who had that bright idea? :)) If distributions are fully all = soft-fp in user space or all hardware FP, it removes the one reason that = started the whole partial emulation option.

Quoted 2 lines

=85 And if the answer is
yes,

There are multiple options, but I believe they are solved today. One is = the libraries coded with hardware load/store that are used by soft-fp, = another is hardware FP that doesn't implement all instructions in = hardware (which it seems is the basis of this thread, although I thought = was already solved). The variation here is that in the first case you = have to read/write user space soft-fp stack "registers," while in the = latter you read/write real FP registers. There used to be the third = variation where the stack was allocated and the emulation had to write = both places due to compiler function APIs or optimizations. Of course, = then there is the full-up kernel emulation where hardware is entirely = lacking.

Quoted 3 lines

=85 we still want that "minimum" emulation of load/stores/fmr as an option, is there any reason why we can't replace the one in softemu8xx with the existing (and unused) equivalent in do_mathemu ?

It appears to me that 8xx custom code can be removed. I guess I should = try to boot it up, if anyone even cares these days. :)

Thanks.

	-- Dan
#58 lore raw

Re: fsqrt

Quoted 5 lines · Dan Malek

Hi Ben.

On Jun 7, 2013, at 5:34 PM, Benjamin Herrenschmidt <[email protected]> wrote:

Quoted 8 lines
Quoted 1 line

The question is whether this is still relevant ?

The only answer I could provide is that it's dependent upon the libraries and how the distributions are built. It's also dependent upon processors with hardware FP that don't implement all instructions in hardware (who had that bright idea? :)) If distributions are fully all soft-fp in user space or all hardware FP, it removes the one reason that started the whole partial emulation option.

I'm not questioning the relevance of math-emu as a whole, but of the tiny subset which is duplicated in math-emu and softemu8xx, which emulates only load/stores/fmr.

If userspace is built with hard FP it is likely to use more than just those handful of instructions...

Quoted 8 lines
Quoted 2 lines

… And if the answer is
yes,

There are multiple options, but I believe they are solved today. One is the libraries coded with hardware load/store that are used by soft-fp, another is hardware FP that doesn't implement all instructions in hardware (which it seems is the basis of this thread, although I thought was already solved).

Yes, it's indeed the basis of that thread, and yes, I though it was already solved as well but unless I missed something it is not, because the current Program Check handler calls do_mathemu without first flushing the hard FP state into the thread_struct.

However it's quite possible (I'll test when I get back to the office) that this it the only fix necessary, which is a one liner, to make CONFIG_MATH_EMULATION work just fine in that case.

Quoted 3 lines

The variation here is that in the first case you have to read/write user space soft-fp stack "registers," while in the latter you read/write real FP registers.

We never do any "user space soft-fp stack registers" handling in the kernel. If we use full math emu (ie, no FP at all in HW), we simply use the normal thread_struct storage of FPRs to store the "virtual" user FP regs used by the emulation.

If use space uses full soft-fp (ie, -msoft-float), we should never see any of it in the kernel.

Quoted 4 lines

There used to be the third variation where the stack was allocated
and the emulation had to write both places due to compiler function APIs or optimizations. Of course, then there is the full-up kernel emulation where hardware is entirely lacking.

I don't know anything about that "3rd option", it certainly doesn't have any kernel impact that I can see :-) Full up emulation is of course still there.

Quoted 7 lines
Quoted 2 lines

… we still want that "minimum" emulation of load/stores/fmr as an option, is there any reason why we can't replace the one in

softemu8xx

Quoted 1 line

with the existing (and unused) equivalent in do_mathemu ?

It appears to me that 8xx custom code can be removed. I guess I should try to boot it up, if anyone even cares these days. :)

Thanks,

Cheers,
Ben.

#59 lore raw

Re: fsqrt

In reply to Dan Malek

The interesting thing I'm finding is that our math-emu is actually quite busted :-)

For example look at fsqrt. It's defined as type AB which is incorrect, it should be type XB. It ends up looking for it's arguments in the wrong registers, same for fsrqts, fre, and a few others.

Also quite a few functions are simply left unimplemented... (fre is completely missing from the decode, fres is there but returns -ENOSYS, as does frsqrte, etc...)

I'll post a quick for for fsqrt{s} that I need for anaconda, but I would strongly encourage somebody from FSL (primary users of that stuff still) to have a close look at the rest. It shouldn't be terribly hard to fix them up and add the few missing instructions, even if not with the amount of precision requested by the spec (better than -ENOSYS)

Cheers,
Ben.