could not access the address in linux-System ace driver
Hello Raja,
Thanks for the reply.
Quoted 13 lines · Raja Chidambaram
Hello Sudheer,
Sorry for the Late reply.since we faced some
complexity in this kind of system Ace setup we have dropped it & moved to different setup.As of now in your case trace the xilinx code which is bascially on
adapter.cas for as the xilinix code is concerned the hardware initialization code are done by xilinux, And only the kernel integration code developed by open source developers.So u might to track this cahnges
Quoted 9 lines
As u said your xilinx is connected to EBC make sure the power on cycles is perfomed with no errrors.
As for as your base register for xilinux is concerned the u-boot handle same as linux but the AMCC 440SPe processor have differnet TLB type so please make
sure u understand TLB for 440SPe.
Can you please send some links if available that tells about the TLBs in 440SPe. I have googled but could not get much information.
Thanks
Sudheer
Quoted 219 lines
Quoted 193 lines · --- sudheer
Hello All
I'm really desperate for some help , I've been struggling with this system since few days.
Quoted 4 lines · sudheer
Hello Raja,
We too are working on customized board with amcc
440SPe processor ,
Quoted 2 lines
xilinx System Ace controller. Compact flash is
connected to system
Quoted 2 lines
ace controller. We use u-boot 1.1.2 as bootloader & linux kernel -
2.6.16-2.
Quoted 2 lines
System ace is connected to amcc440SPE processor
via GPIO and External
Quoted 2 lines
Peripheral Bus Controller(EBC).
I am still facing the issue in accessing the address in linux.
The physical address given in u-boot
init.S
tlbentry for 'system ace' is0xE0000000
I am able to access the address in u-boot and
everything is fine in u-boot.
But in linux , I am able to ioremap the the address0xE0000000but the kernel crashes when i try to access the address . physical address=0xe0000000address_after_ioremap=0xe1000000.
I am trying to read withreadw(address_after_ioremap)
The kernel gives an exception error saying Oops:
machine check, sig: 7 [#2] .
The error dump is as below:Instruction dump:
Data machine check in kernel mode.
PLB0: BEAR=0x00000000e0000000 ACR=0xdb000000BESR=0x0000000000008000
PLB1: BEAR=0xe98d7ad33716ee7e ACR=0xdb000000BESR=0x0000000000000000
POB0: BEAR=0x0000000fffaebbcd BESR0=0x00000000 BESR1=0x00000000
OPB0: BEAR=0x0000000000000000 BSTAT=0x00000000Oops: machine check, sig: 7 [#2] NIP: 00000000 LR: C0002200 CTR: 00000000 REGS: c0241f50 TRAP: 0202 Not tainted (2.6.16.2) MSR: 00000000 <> CR: 84CA4124 XER: 00000000TASK = dff6cb70[1] 'swapper' THREAD:
c0740000
GPR00: 00000000 C0241E40 DFF6CB70 00000001 FFFFFFD0 00000000 C0240000 C01F3C0C
GPR08: C01F0000 C0002200 00021002 C0001FF4 DFF6CD38 802823E0 1FFB9600 00000000
GPR16: 00000001 FFFFFFFF 00000000 007FFF00 1FFB3540 1FF63CE0 1FFCEE78 C01C0000
GPR24: C01C0000 C01C0000 C01F0000 C01C0000 BFFFFFFF FFFFFFD0 00000000 C0241F50
NIP [00000000]0x0
LR [C0002200]ret_from_except+0x0/0x18Call Trace:Instruction dump:
Data machine check in kernel mode.
PLB0: BEAR=0x00000000e0000000 ACR=0xdb000000BESR=0x0000000000008000
.........and this dump gets print continously.I have checked with TLB entries in u-boot and linux using BDI:
BDI_AMCC440SPe>tlb 0 10
IDX TID EPN SIZE VTS RPN USER WIMGE
USRSVC
0 : 00ff00000016MB V0 -> 4_ff000000 U:0000 WI-G-
XWRXWR
1 : 00 00000000 256MB V0 -> 0_00000000 U:0000 -I-G-
XWRXWR
2 : 00 10000000 256MB V0 -> 0_10000000 U:0000 -I-G-
XWRXWR
3 : 00 20000000 256MB V0 -> 0_20000000 U:0000 -I-G-
XWRXWR
4 : 00 30000000 256MB V0 -> 0_30000000 U:0000 -I-G-
XWRXWR
5 : 00 90000000 256KB V0 -> 4_00000000 U:0000 -I---
XWRXWR
6 : 00e00000001KB V0 -> 4_e0000000 U:0000 -I-G-(quoted diff) +0
-4-WR-WR 7 : 00 a0000000 4KB V0 -> 4_f0000000 U:0000 -I-G- -WR-WR 8 : 00 d0000000 256MB V0 -> c_00000000 U:0000 -I-G- -WR-WR 9 : 00 80000000 256MB V0 -> c_10000000 U:0000 -I-G- -WR-WR10 : 00 01080000 1KB -0 -> 0_00000000 U:0000 -----
------BDI_AMCC440SPe>In Linux the tlb entries are as below.......
BDI_AMCC440SPe>tlb 0 63
IDX TID EPN SIZE VTS RPN USER WIMGE
USRSVC
0 : 0e0ff1a0004KB V0 -> 0_007ce000 U:0000 --MG-
--R--R
1 : 0e0fe940004KB V0 -> 0_1ff96000 U:0000 ---G-
X-RX-R
2 : 0e 30017000 4KB V0 -> 0_007cd000 U:0000 --MG-
--R-WR
3 : 0e 10039000 4KB V0 -> 0_1ffb8000 U:0000 ---G-
X-RX-R
4 : 0e 30009000 4KB V0 -> 0_00758000 U:0000 ---G-
X-RX-R
5 : 0e 30010000 4KB V0 -> 0_0078b000 U:0000 ---G-
X-RX-R
6 : 0e 00000000 1KB -0 -> 0_1f4e2000 U:0000 ---G-
--R--R
7 : 0e0fe3e0004KB V0 -> 0_1f4e2000 U:0000 ---G-
X-RX-R
8 : 0e0ff1c0004KB V0 -> 0_007ed000 U:0000 --MG-
XWRXWR
9 : 0e0ff1e0004KB V0 -> 0_007ee000 U:0000 --MG-
-WR-WR
10 : 0e0ff1f0004KB V0 -> 0_007ea000 U:0000 --MG-
XWRXWR
11 : 0e0fe390004KB V0 -> 0_1ff8e000 U:0000 ---G-
X-RX-R
12 : 0e0ff210004KB V0 -> 0_007a8000 U:0000 --MG-
--R-WR
13 : 0e0fe470004KB V0 -> 0_1ffa9000 U:0000 ---G-
X-RX-R
14 : 0e0fe460004KB V0 -> 0_1ffb2000 U:0000 ---G-
X-RX-R
15 : 0e 30019000 4KB V0 -> 0_007c5000 U:0000 --MG-
-WR-WR
16 : 0e0fe450004KB V0 -> 0_1ffa8000 U:0000 ---G-
X-RX-R
17 : 00fdfff0004KB V0 -> 4_f0000000 U:0000 -IMG-
----WR
18 : 0e0fe9a0004KB V0 -> 0_1ff98000 U:0000 ---G-
X-RX-R
19 : 0e 10067000 4KB V0 -> 0_0078e000 U:0000 --MG-
-WR-WR
20 : 0e 00000000 4KB -0 -> 0_1f4e5000 U:0000 ---G-
--R--R
21 : 0e 10030000 4KB V0 -> 0_1f4e5000 U:0000 ---G-
X-RX-R
22 : 0e 10063000 4KB V0 -> 0_007b7000 U:0000 --MG-
-WR-WR
23 : 0e0fe4c0004KB V0 -> 0_1ff9b000 U:0000 ---G-
X-RX-R
24 : 0e1007f0004KB V0 -> 0_007e0000 U:0000 --MG-
-WR-WR
25 : 0e0ff1d0004KB V0 -> 0_007c6000 U:0000 --MG-
--R-WR
26 : 0e0fe4e0004KB V0 -> 0_1ffa1000 U:0000 ---G-
X-RX-R
27 : 0e0fe0f0004KB V0 -> 0_0077e000 U:0000 ---G-
X-RX-R
28 : 0e0fe520004KB V0 -> 0_0077f000 U:0000 ---G-
X-RX-R
29 : 0e0fe530004KB V0 -> 0_1ff80000 U:0000 ---G-
X-RX-R
30 : 0e0fef90004KB V0 -> 0_1ff81000 U:0000 ---G-
--R--R
31 : 0e0fe3b0004KB V0 -> 0_1ffa7000 U:0000 ---G-
X-RX-R
32 : 0e7f9010004KB V0 -> 0_007db000 U:0000 --MG-
-WR-WR
33 : 0e 10027000 4KB V0 -> 0_1ffd0000 U:0000 ---G-
X-RX-R
34 : 0e1003a0004KB V0 -> 0_1ffb6000 U:0000 ---G-
X-RX-R
35 : 0e0fe510004KB V0 -> 0_00775000 U:0000 ---G-
X-RX-R
36 : 0e1003b0004KB V0 -> 0_1ffb7000 U:0000 ---G-
X-RX-R
37 : 0e1002a0004KB V0 -> 0_1ffcf000 U:0000 ---G-
X-RX-R
38 : 0e 10066000 4KB V0 -> 0_007de000 U:0000 --MG-
-WR-WR
39 : 0e1002b0004KB V0 -> 0_1ffd3000 U:0000 ---G-
X-RX-R
40 : 0e1002c0004KB V0 -> 0_1ffd2000 U:0000 ---G-
X-RX-RQuoted 10 lines
41 : 0e
1005d0004KB V0 -> 0_007f4000 U:0000 --MG-
XWRXWR
42 : 0e1002d0004KB V0 -> 0_1ffc2000 U:0000 ---G-
X-RX-R
43 : 0e 10028000 4KB V0 -> 0_1ffc8000 U:0000 ---G-
X-RX-R
44 : 0e 10069000 4KB V0 -> 0_0078d000 U:0000 --MG-
-WR-WR=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Hi
Quoted 18 lines
Quoted 16 lines · Raja Chidambaram
Hello Sudheer,
Sorry for the Late reply.since we faced some
complexity in this kind of system Ace setup we have dropped it & moved to different setup.As of now in your case trace the xilinx code which is bascially on
adapter.cas for as the xilinix code is concerned the hardware initialization code are done by xilinux, And only the kernel integration code developed by open source developers.So u might to track this cahngesAs u said your xilinx is connected to EBC make sure the power on cycles is perfomed with no errrors.
Quoted 6 lines
Quoted 6 lines
As for as your base register for xilinux is concerned the u-boot handle same as linux but the AMCC 440SPe processor have differnet TLB type so please make
sure u understand TLB for 440SPe.
I got solved the issue by changing the ioremap function usage. The PPC440 implements a 36 bit memory map. So i changed my ioremap to ioremap64 and gave the 36-bit physical address which includes EPN and is 0x5d0000000ULL and it returns a 32-bit virtual pointer with which am able to access the device registers.
Thanks Raja and all for your kindly help.
Thanks
Sudheer
Quoted 231 lines
Quoted 1 line
Can you please send some links if available that tells about the TLBs in 440SPe. I have googled but could not get much information.
Thanks
SudheerQuoted 214 lines
Quoted 193 lines · --- sudheer
Hello All
I'm really desperate for some help , I've been struggling with this system since few days.
Quoted 4 lines · sudheer
Hello Raja,
We too are working on customized board with amcc
440SPe processor ,
Quoted 2 lines
xilinx System Ace controller. Compact flash is
connected to system
Quoted 2 lines
ace controller. We use u-boot 1.1.2 as bootloader & linux kernel -
2.6.16-2.
Quoted 2 lines
System ace is connected to amcc440SPE processor
via GPIO and External
Quoted 2 lines
Peripheral Bus Controller(EBC).
I am still facing the issue in accessing the address in linux.
The physical address given in u-boot
init.S
tlbentry for 'system ace' is0xE0000000
I am able to access the address in u-boot and
everything is fine in u-boot.
But in linux , I am able to ioremap the the address0xE0000000but the kernel crashes when i try to access the address . physical address=0xe0000000address_after_ioremap=0xe1000000.
I am trying to read withreadw(address_after_ioremap)
The kernel gives an exception error saying Oops:
machine check, sig: 7 [#2] .
The error dump is as below:Instruction dump:
Data machine check in kernel mode.
PLB0: BEAR=0x00000000e0000000 ACR=0xdb000000BESR=0x0000000000008000
PLB1: BEAR=0xe98d7ad33716ee7e ACR=0xdb000000BESR=0x0000000000000000
POB0: BEAR=0x0000000fffaebbcd BESR0=0x00000000 BESR1=0x00000000
OPB0: BEAR=0x0000000000000000 BSTAT=0x00000000Oops: machine check, sig: 7 [#2] NIP: 00000000 LR: C0002200 CTR: 00000000 REGS: c0241f50 TRAP: 0202 Not tainted (2.6.16.2) MSR: 00000000 <> CR: 84CA4124 XER: 00000000TASK = dff6cb70[1] 'swapper' THREAD:
c0740000
GPR00: 00000000 C0241E40 DFF6CB70 00000001 FFFFFFD0 00000000 C0240000 C01F3C0C
GPR08: C01F0000 C0002200 00021002 C0001FF4 DFF6CD38 802823E0 1FFB9600 00000000
GPR16: 00000001 FFFFFFFF 00000000 007FFF00 1FFB3540 1FF63CE0 1FFCEE78 C01C0000
GPR24: C01C0000 C01C0000 C01F0000 C01C0000 BFFFFFFF FFFFFFD0 00000000 C0241F50
NIP [00000000]0x0
LR [C0002200]ret_from_except+0x0/0x18Call Trace:Instruction dump:
Data machine check in kernel mode.
PLB0: BEAR=0x00000000e0000000 ACR=0xdb000000BESR=0x0000000000008000
.........and this dump gets print continously.I have checked with TLB entries in u-boot and linux using BDI:
BDI_AMCC440SPe>tlb 0 10
IDX TID EPN SIZE VTS RPN USER WIMGE
USRSVC
0 : 00ff00000016MB V0 -> 4_ff000000 U:0000 WI-G-
XWRXWR
1 : 00 00000000 256MB V0 -> 0_00000000 U:0000 -I-G-
XWRXWR
2 : 00 10000000 256MB V0 -> 0_10000000 U:0000 -I-G-
XWRXWR
3 : 00 20000000 256MB V0 -> 0_20000000 U:0000 -I-G-
XWRXWR
4 : 00 30000000 256MB V0 -> 0_30000000 U:0000 -I-G-
XWRXWR
5 : 00 90000000 256KB V0 -> 4_00000000 U:0000 -I---
XWRXWR
6 : 00e00000001KB V0 -> 4_e0000000 U:0000 -I-G-(quoted diff) +0
-4-WR-WR 7 : 00 a0000000 4KB V0 -> 4_f0000000 U:0000 -I-G- -WR-WR 8 : 00 d0000000 256MB V0 -> c_00000000 U:0000 -I-G- -WR-WR 9 : 00 80000000 256MB V0 -> c_10000000 U:0000 -I-G- -WR-WR10 : 00 01080000 1KB -0 -> 0_00000000 U:0000 -----
------BDI_AMCC440SPe>In Linux the tlb entries are as below.......
BDI_AMCC440SPe>tlb 0 63
IDX TID EPN SIZE VTS RPN USER WIMGE
USRSVC
0 : 0e0ff1a0004KB V0 -> 0_007ce000 U:0000 --MG-
--R--R
1 : 0e0fe940004KB V0 -> 0_1ff96000 U:0000 ---G-
X-RX-R
2 : 0e 30017000 4KB V0 -> 0_007cd000 U:0000 --MG-
--R-WR
3 : 0e 10039000 4KB V0 -> 0_1ffb8000 U:0000 ---G-
X-RX-R
4 : 0e 30009000 4KB V0 -> 0_00758000 U:0000 ---G-
X-RX-R
5 : 0e 30010000 4KB V0 -> 0_0078b000 U:0000 ---G-
X-RX-R
6 : 0e 00000000 1KB -0 -> 0_1f4e2000 U:0000 ---G-
--R--R
7 : 0e0fe3e0004KB V0 -> 0_1f4e2000 U:0000 ---G-
X-RX-R
8 : 0e0ff1c0004KB V0 -> 0_007ed000 U:0000 --MG-
XWRXWR
9 : 0e0ff1e0004KB V0 -> 0_007ee000 U:0000 --MG-
-WR-WR
10 : 0e0ff1f0004KB V0 -> 0_007ea000 U:0000 --MG-
XWRXWR
11 : 0e0fe390004KB V0 -> 0_1ff8e000 U:0000 ---G-
X-RX-R
12 : 0e0ff210004KB V0 -> 0_007a8000 U:0000 --MG-
--R-WR
13 : 0e0fe470004KB V0 -> 0_1ffa9000 U:0000 ---G-
X-RX-R
14 : 0e0fe460004KB V0 -> 0_1ffb2000 U:0000 ---G-
X-RX-R
15 : 0e 30019000 4KB V0 -> 0_007c5000 U:0000 --MG-
-WR-WR
16 : 0e0fe450004KB V0 -> 0_1ffa8000 U:0000 ---G-
X-RX-R
17 : 00fdfff0004KB V0 -> 4_f0000000 U:0000 -IMG-
----WR
18 : 0e0fe9a0004KB V0 -> 0_1ff98000 U:0000 ---G-
X-RX-R
19 : 0e 10067000 4KB V0 -> 0_0078e000 U:0000 --MG-
-WR-WR
20 : 0e 00000000 4KB -0 -> 0_1f4e5000 U:0000 ---G-
--R--R
21 : 0e 10030000 4KB V0 -> 0_1f4e5000 U:0000 ---G-
X-RX-R
22 : 0e 10063000 4KB V0 -> 0_007b7000 U:0000 --MG-
-WR-WR
23 : 0e0fe4c0004KB V0 -> 0_1ff9b000 U:0000 ---G-
X-RX-R
24 : 0e1007f0004KB V0 -> 0_007e0000 U:0000 --MG-
-WR-WR
25 : 0e0ff1d0004KB V0 -> 0_007c6000 U:0000 --MG-
--R-WR
26 : 0e0fe4e0004KB V0 -> 0_1ffa1000 U:0000 ---G-
X-RX-R
27 : 0e0fe0f0004KB V0 -> 0_0077e000 U:0000 ---G-
X-RX-R
28 : 0e0fe520004KB V0 -> 0_0077f000 U:0000 ---G-
X-RX-R
29 : 0e0fe530004KB V0 -> 0_1ff80000 U:0000 ---G-
X-RX-R
30 : 0e0fef90004KB V0 -> 0_1ff81000 U:0000 ---G-
--R--R
31 : 0e0fe3b0004KB V0 -> 0_1ffa7000 U:0000 ---G-
X-RX-R
32 : 0e7f9010004KB V0 -> 0_007db000 U:0000 --MG-
-WR-WR
33 : 0e 10027000 4KB V0 -> 0_1ffd0000 U:0000 ---G-
X-RX-R
34 : 0e1003a0004KB V0 -> 0_1ffb6000 U:0000 ---G-
X-RX-R
35 : 0e0fe510004KB V0 -> 0_00775000 U:0000 ---G-
X-RX-R
36 : 0e1003b0004KB V0 -> 0_1ffb7000 U:0000 ---G-
X-RX-R
37 : 0e1002a0004KB V0 -> 0_1ffcf000 U:0000 ---G-
X-RX-R
38 : 0e 10066000 4KB V0 -> 0_007de000 U:0000 --MG-
-WR-WR
39 : 0e1002b0004KB V0 -> 0_1ffd3000 U:0000 ---G-
X-RX-R
40 : 0e1002c0004KB V0 -> 0_1ffd2000 U:0000 ---G-
X-RX-RQuoted 10 lines
41 : 0e
1005d0004KB V0 -> 0_007f4000 U:0000 --MG-
XWRXWR
42 : 0e1002d0004KB V0 -> 0_1ffc2000 U:0000 ---G-
X-RX-R
43 : 0e 10028000 4KB V0 -> 0_1ffc8000 U:0000 ---G-
X-RX-R
44 : 0e 10069000 4KB V0 -> 0_0078d000 U:0000 --MG-
-WR-WR=== message truncated ===
Quoted 5 lines
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com------------------------------------------------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded