From: Kazuaki Ichinohe <kazuichi@fsi.co.jp>
To: u-boot@lists.denx.de
Subject: [U-Boot] About PCI of U-BOOT of CANYONLANDS
Date: Wed, 18 Mar 2009 22:00:46 +0900 [thread overview]
Message-ID: <49C0F07E.6040503@fsi.co.jp> (raw)
In-Reply-To: <49C0E913.2070609@fsi.co.jp>
Hi Anatolij, Stefan,
The memory space is displayed in BAR2 of the PCI configuration space.
The video driver accesses this memory space and the exception is generated.
driver source: u-boot/drivers/video/ati_radeon_fb.c
function name: void *video_hw_init(void)
line : 760line
I attach the log where the exception is generated.
I confirmed it by the source of the following patches.
----- patch ------
#undef CONFIG_VIDEO
#ifdef CONFIG_VIDEO
#define CONFIG_BIOSEMU
#define CONFIG_ATI_RADEON_FB
#define VIDEO_IO_OFFSET 0xD8000000
#define CONFIG_SYS_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET
#define CONFIG_VIDEO_SW_CURSOR
#define CONFIG_VIDEO_LOGO
#define CONFIG_CFB_CONSOLE
#define CONFIG_SPLASH_SCREEN
#define CONFIG_VGA_AS_SINGLE_DEVICE
#define CONFIG_CMD_BMP
#endif /* #ifdef CONFIG_VIDEO */
----- exception log --------
U-Boot 2009.01 ( 3? 18 2009 - 18:52:14)
CPU: AMCC PowerPC 460EX Rev. A at 800 MHz (PLB=200, OPB=100, EBC=100 MHz)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
Internal PCI arbiter disabled
32 kB I-Cache 32 kB D-Cache
Board: Canyonlands - AMCC PPC460EX Evaluation Board, 1*PCIe/1*SATA, Rev. 14
I2C: ready
DTT: 1 is 39 C
DRAM: 512 MB (ECC not enabled, 400 MHz, CL3)
FLASH: 64 MB
NAND: 128 MiB
PCI: Bus Dev VenId DevId Class Int
00 06 1002 5960 0300 ff
00 06 1002 5940 0380 ff
PCIE1: link is not up.
PCIE1: initialization as root-complex failed
Net: ppc_4xx_eth0, ppc_4xx_eth1
Type run flash_nfs to mount root filesystem over NFS
=> pci
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.06.00 0x1002 0x5960 Display controller 0x00
00.06.01 0x1002 0x5940 Display controller 0x80
=> pci header 0.6.0
vendor ID = 0x1002
device ID = 0x5960
command register = 0x0007
status register = 0x02b0
revision ID = 0x01
class code = 0x03 (Display controller)
sub class code = 0x00
programming interface = 0x00
cache line = 0x08
latency time = 0x80
header type = 0x80
BIST = 0x00
base address 0 = 0x80000008
base address 1 = 0x00001001
base address 2 = 0x88000000
base address 3 = 0x00000000
base address 4 = 0x00000000
base address 5 = 0x00000000
cardBus CIS pointer = 0x00000000
sub system vendor ID = 0x18bc
sub system ID = 0x0580
expansion ROM base address = 0x00000000
interrupt line = 0xff
interrupt pin = 0x01
min Grant = 0x08
max Latency = 0x00
=> md 0x88000000
88000000:Machine Check Exception.
Caused by (from msr): regs 1fe51c08 Data Read PLB Error
NIP: 1FF859DC XER: 00000000 LR: 1FF859AC REGS: 1fe51c08 TRAP: 0200 DEAR:
00000000
MSR: 00029000 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 00
GPR00: 1FFB2178 1FE51CF8 1FE51F24 1FFA0528 1FFB2178 00000003 00000003
2E6C1FF4
GPR08: 1FF5A408 00000020 05F5E101 2FAF080A 00000008 055661DE 1FFB0700
1FF9F8F4
GPR16: 1FF9F870 1FFA0530 1FFA0528 1FF9F120 1FFABC34 1FE51D00 88000000
88000000
GPR24: 1FE51D00 00000040 00000000 00000004 1FE51D00 00000004 1FFB2178
88000000
Call backtrace:
1FF859AC 1FF702D4 1FF7B948 1FF7B04C 1FF7B1BC 1FF7DDD0 1FF59F64
1FF58710
machine check
U-Boot 2009.01 ( 3? 18 2009 - 18:52:14)
CPU: AMCC PowerPC 460EX Rev. A at 800 MHz (PLB=200, OPB=100, EBC=100 MHz)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
Internal PCI arbiter disabled
32 kB I-Cache 32 kB D-Cache
Board: Canyonlands - AMCC PPC460EX Evaluation Board, 1*PCIe/1*SATA, Rev. 14
I2C: ready
DTT: 1 is 40 C
DRAM: 512 MB (ECC not enabled, 400 MHz, CL3)
FLASH: 64 MB
NAND: 128 MiB
PCI: Bus Dev VenId DevId Class Int
00 06 1002 5960 0300 ff
00 06 1002 5940 0380 ff
PCIE1: link is not up.
PCIE1: initialization as root-complex failed
Net: ppc_4xx_eth0, ppc_4xx_eth1
Type run flash_nfs to mount root filesystem over NFS
=>
Regards,
Kazuaki Ichinohe
Kazuaki Ichinohe ????????:
> Hi Anatolij, Stefan,
>
> The exception was generated.
>
> ----------------------------------
> U-Boot 2009.01 ( 3? 18 2009 - 21:16:24)
>
> CPU: AMCC PowerPC 460EX Rev. A at 800 MHz (PLB=200, OPB=100, EBC=100 MHz)
> Security/Kasumi support
> Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
> Internal PCI arbiter disabled
> 32 kB I-Cache 32 kB D-Cache
> Board: Canyonlands - AMCC PPC460EX Evaluation Board, 1*PCIe/1*SATA, Rev. 14
> I2C: ready
> DTT: 1 is 39 C
> DRAM: 512 MB (ECC not enabled, 400 MHz, CL3)
> FLASH: 64 MB
> NAND: 128 MiB
> PCI: Bus Dev VenId DevId Class Int
> 00 06 1002 5960 0300 ff
> 00 06 1002 5940 0380 ff
> PCIE1: link is not up.
> PCIE1: initialization as root-complex failed
> Video: ATI Radeon video card (1002, 5960) found @(0:6:0)
> Machine Check Exception.
> Caused by (from msr): regs 1fe3ac30 Data Read PLB Error
> NIP: 1FF82B10 XER: 00000000 LR: 1FF82AE8 REGS: 1fe3ac30 TRAP: 0200 DEAR:
> 00000000
> MSR: 00021000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00
>
> GPR00: 08000080 1FE3AD20 1FE3AF20 00000000 80003018 00000018 1FE401BC
> 1CA13040
> GPR08: 1FF43408 88000000 05F5E101 1FF94E10 00000006 055671DE 1FFABD00
> 1FFBF000
> GPR16: FFFE21E8 FFFE21E8 FFFE2068 FFFE21E8 FFFE21E8 FFFE2068 FFFE2068
> FFFD572C
> GPR24: E3000D80 1FE3AF20 1FE3AF08 1FE3AE88 1FE3AE80 00003000 1FFADF20
> 1FE40198
> Call backtrace:
> 1FF82AE8 1FF83458 1FF82498 1FF5FCDC 1FF42EF0 1FF41710
> machine check
>
>
> Regards,
> Kazuaki Ichinohe
>
>
> Kazuaki Ichinohe ????????:
>> Hi Anatolij !
>>
>> > Kazuaki, could you please change VIDEO_IO_OFFSET to 0xD0800000 and
>> > test again?
>>
>> I'll try it.
>>
>> Regards,
>> Kazuaki Ichinohe.
>>
>> Anatolij Gustschin ????????:
>>> Hi Stefan, Kazuaki,
>>>
>>> Stefan Roese wrote:
>>>> On Wednesday 18 March 2009, Kazuaki Ichinohe wrote:
>>>>> U-boot version: u-boot-2009.01
>>>>> boot log is the following.
>>>>>
>>>>> U-Boot 2009.01 ( 3? 18 2009 - 09:38:17)
>>>>>
>>>>> ?PU: AMCC PowerPC 460EX Rev. A at 600 MHz (PLB=200, OPB=100,
>>>>> EBC=100 MHz)
>>>>> Security/Kasumi support
>>>>> Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
>>>>> Internal PCI arbiter disabled
>>>>> 32 kB I-Cache 32 kB D-Cache
>>>>> Board: Canyonlands - AMCC PPC460EX Evaluation Board, 1*PCIe/1*SATA,
>>>>> Rev. 14
>>>>> I2C: ready
>>>>> DTT: 1 is 38 C
>>>>> DRAM: 512 MB (ECC not enabled, 400 MHz, CL3)
>>>>> FLASH: 64 MB
>>>>> NAND: 128 MiB
>>>>> PCI: Bus Dev VenId DevId Class Int
>>>>> 00 06 1002 5960 0300 ff
>>>>> 00 06 1002 5940 0380 ff
>>>>> PCIE1: link is not up.
>>>>> PCIE1: initialization as root-complex failed
>>>>> Video: ATI Radeon video card (1002, 5960) found @(0:6:0)
>>>>> Machine Check Exception.
>>>>> Caused by (from msr): regs 1fe3ac30 Data Read PLB Error
>>>>> NIP: 1FF82B10 XER: 00000000 LR: 1FF82AE8 REGS: 1fe3ac30 TRAP: 0200
>>>>> DEAR:
>>>>> 70600027
>>>>> MSR: 00021000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00
>>>> Anatolij, do you have any ideas what's going wrong here?
>>>
>>> one issue is incorrect VIDEO_IO_OFFSET in the board config file, it
>>> should be 0xD0800000 instead of 0xD8000000, i think.
>>>
>>> Kazuaki, could you please change VIDEO_IO_OFFSET to 0xD0800000 and
>>> test again?
>>>
>>> Best regards,
>>> Anatolij
>>>
>>
>>
>
>
next prev parent reply other threads:[~2009-03-18 13:00 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 13:08 [U-Boot] About PCI of U-BOOT of CANYONLANDS Kazuaki Ichinohe
2009-03-17 13:13 ` Stefan Roese
2009-03-18 1:28 ` Kazuaki Ichinohe
2009-03-18 9:07 ` Stefan Roese
2009-03-18 9:13 ` Felix Radensky
2009-03-18 9:23 ` Stefan Roese
2009-03-18 9:34 ` Felix Radensky
2009-03-18 9:39 ` Stefan Roese
2009-03-18 12:03 ` Anatolij Gustschin
2009-03-18 12:07 ` Kazuaki Ichinohe
2009-03-18 12:29 ` Kazuaki Ichinohe
2009-03-18 13:00 ` Kazuaki Ichinohe [this message]
[not found] ` <49C0EFB2.9020800@fsi.co.jp>
2009-03-18 14:48 ` Anatolij Gustschin
2009-03-19 4:43 ` Kazuaki Ichinohe
2009-03-19 9:16 ` Anatolij Gustschin
2009-03-19 11:28 ` Kazuaki Ichinohe
2009-03-19 11:44 ` Anatolij Gustschin
2009-03-19 12:09 ` Kazuaki Ichinohe
2009-03-19 12:27 ` Anatolij Gustschin
2009-03-19 12:52 ` Kazuaki Ichinohe
2009-03-19 13:17 ` Anatolij Gustschin
2009-03-20 10:50 ` Kazuaki Ichinohe
2009-03-24 5:22 ` [U-Boot] [PATCH] Canyonlands SATA harddisk driver Kazuaki Ichinohe
2009-03-24 16:22 ` Stefan Roese
2009-03-25 11:32 ` Kazuaki Ichinohe
2009-03-25 16:04 ` Stefan Roese
2009-03-26 10:56 ` Kazuaki Ichinohe
2009-03-27 16:11 ` Stefan Roese
2009-03-27 16:31 ` Wolfgang Denk
2009-03-30 8:27 ` Kazuaki Ichinohe
2009-04-17 7:31 ` Kazuaki Ichinohe
2009-04-27 1:53 ` Kazuaki Ichinohe
2009-04-27 7:42 ` Stefan Roese
2009-04-29 6:58 ` Stefan Roese
2009-05-07 6:23 ` Kazuaki Ichinohe
2009-05-07 7:38 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49C0F07E.6040503@fsi.co.jp \
--to=kazuichi@fsi.co.jp \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox