11-16-05 2.6.14 on AMCC Yosemite boar d(PCI-IDE card boot error)

Stephen Yee shyi at bmrtech.com
Thu Sep 14 06:11:25 EST 2006


Hi All,

I have tested and debuged the ELDK's kernel 2.6.14 with PDC20269 PCI-IDE
card, the system paniced when it run the 'ide_pci_setup_ports' funcation
[drivers/ide/setup_pci.c], the attached files included the entry log
messages, and ksysoops messages when the kernel paniced, and my kernel
configuration file and BDI2000 configuration file.

would you please give some advice about this issue?

Thanks in Advance,
Stephen.
--------------------------------------------------------------

Funcations & lines call routines are the foollowing:

>From drivers/ide/setup_pci.c
ide_pci_setup_ports()-> ide_hwif_setup_dma()->
ide_get_or_set_dma_base()-> simplex_stat = hwif->INB(dma_base +
2);[line:250]-> (to be continued)
Next to include/asm-ppc/io.h:
(continue from preview)-> __do_in_asm(inb,"lbzx")[line:309]-> (to be
continued)
Next to ide/ide-iops.c:
(continue from preview)-> ide_inb()[line:38]-> (to be continued)
Next to include/asm-ppc/io.h:
(continue from preview)-> __do_in_asm(inb,"lbzx")[line:309]-> (to be
continued)

Next to arch/ppc/kernel/head_44x.S:
(continue from preview)->mtspr SPRN_SPRG0,
r10[line:469]->...->rfi[line:689]->CRITICAL_EXCEPTION(0x0200,
MachineCheck, MachineCheckException)[line:318],then
Then can't return, then code lists sa following:
471 /* Data TLB Error Interrupt */
472 START_EXCEPTION(DataTLBError)
-> 473 mtspr SPRN_SPRG0, r10 /* Save some working registers */
-> 474 mtspr SPRN_SPRG1, r11
-> ......
-> 685 /* Done...restore registers and get out of here.
-> 686 */
-> 687 mfspr r11, SPRN_SPRG7R
-> 688 mtcr r11
-> 689 mfspr r13, SPRN_SPRG5R
-> 690 mfspr r12, SPRN_SPRG4R
-> 691 mfspr r11, SPRN_SPRG1
-> 692 mfspr r10, SPRN_SPRG0
-> 693 rfi /* Force context change */

314 /* Machine Check Interrupt */
315 #ifdef CONFIG_440A
316 MCHECK_EXCEPTION(0x0200, MachineCheck, MachineCheckException)
317 #else
-> 318 CRITICAL_EXCEPTION(0x0200, MachineCheck, MachineCheckException)
319 #endif
then when I steped into line 318, ' CRITICAL_EXCEPTION(0x0200,
MachineCheck, MachineCheckException)', the system would not continue
from here.
'



Stephen Yee wrote:

> Hi Mr. KylongMu & all,
> Have you solved the issues about PCI-IDE card?
> I also have tested two PCI-IDE cards and a PCI-SATA card with
> 2.6.13(packaged in AMCC CD) and 2.6.14(ELDK ) kernel on Yosemite
> board, this issues are the same with Mr. KylongMu. the PCI-SATA is
> work fine. but the two PCI-IDE cards, ITE8212 and PDC20269 failed, the
> panic message was similar with Mr. KylongMu. the attached file is the
> ITE8212 module driver OOPS log.
>
> would you please give me some advice about it?
> Thanks and Best regards,
> stephen
>
> KylongMu wrote:
>
> > Dear Denk,
> >
> > Thanks for your help; it makes my Yosemite run up! I'm try to add a
> > PCI-IDE
> >
> > Card on it. I test my Promise-PDC20268 card and AEC6280 (ATP865-B chip
> > type) card,
> >
> > Both of them all failed with same error, the boot message included in
> > the attachment.
> >
> > The kernel configure is based on the Yosemite_defconfig, add with:
> >
> > Device Drivers-->
> >
> > ATA/ATAPI/MFM/RLL support-->
> >
> > [*]AEC62XX Chipset support
> >
> > [*]PROMISE PDC202{68|69|70|71|75|76|77} SUPPORT
> >
> > Both of the PCI-IDE cards can work with X86PC+FEDORA4 configure, I
> > don¡¯t know
> >
> > What cause them fail on Yosemite with final 2.6.14 kernel.
> >
> > About my 2.6.14 tree, I type with ¡°cg-log ¨Cs¡± command it shows:
> >
> > 99a21389c2b0e55f30b6cf6550cb492b87dbaa3b Heiko Schocher 2005-11-11
> > 12:47 [PATCH] ppc32: fix Kernel Panic for PM82x Board with gcc-4.0.
> >
> > ff1df84b3c3154ffdb646941e1c70d17554e3042 Wolfgang Denk 2005-11-10
> > 00:41 Merge with /home/wd/git/linux-2.6/stefan_roese
> >
> > It only shows 2.6.14 on the kernel message, I don¡¯t know why it
> > doesn¡¯t show the message as you told.
> >
> > But it can work, and fixed the bugs on Yosemite.
> >
> > Cordially,
> >
> > Kylong Mu
> >
> >------------------------------------------------------------------------
> >
> >U-Boot 1.1.4 (Nov 11 2005 - 19:35:30)
> >
> >AMCC PowerPC 440EP Rev. B
> >Board: Yosemite - AMCC PPC440EP Evaluation Board
> > VCO: 1066 MHz
> > CPU: 533 MHz
> > PLB: 133 MHz
> > OPB: 66 MHz
> > EPB: 66 MHz
> > PCI: 66 MHz
> >I2C: ready
> >DRAM: 256 MB
> >FLASH: 64 MB
> >PCI: Bus Dev VenId DevId Class Int
> > 00 0c 1191 0009 0180 00
> >In: serial
> >Out: serial
> >Err: serial
> >Net: ppc_4xx_eth0, ppc_4xx_eth1
> >
> >Type "run flash_nfs" to mount root filesystem over NFS
> >
> >Hit any key to stop autoboot: 0
> >=> tftp 400000 uImage
> >ENET Speed is 100 Mbps - FULL duplex connection
> >Using ppc_4xx_eth0 device
> >TFTP from server 192.168.0.93; our IP address is 192.168.0.66
> >Filename 'uImage'.
> >Load address: 0x400000
> >Loading:
> #################################################################
> > #################################################################
> > #################################################################
> > ###########################################
> >done
> >Bytes transferred = 1217393 (129371 hex)
> >=> bootram
> >Unknown command 'bootram' - try 'help'
> >=> run bootram
> >## Booting image at 00400000 ...
> > Image Name: Linux-2.6.14
> > Image Type: PowerPC Linux Kernel Image (gzip compressed)
> > Data Size: 1217329 Bytes = 1.2 MB
> > Load Address: 00000000
> > Entry Point: 00000000
> > Verifying Checksum ... OK
> > Uncompressing Kernel Image ... OK
> >## Loading RAMDisk Image at fed40000 ...
> > Image Name: Yosemite Ramdisk
> > Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
> > Data Size: 17770706 Bytes = 16.9 MB
> > Load Address: 00000000
> > Entry Point: 00000000
> > Verifying Checksum ... OK
> > Loading Ramdisk to 0ee47000, end 0ff398d2 ... OK
> >Linux version 2.6.14 (root at dxp) (gcc version 4.0.0) #7 Sun Nov 13
> 21:59:01 CST 2005
> >AMCC PowerPC 440EP Yosemite Platform
> >Built 1 zonelists
> >Kernel command line: ramdisk_size=49152 root=/dev/ram rw
> ip=192.168.0.66:192.168.0.93::255.255.255.0:yosemite:eth0:off panic=1
> console=ttyS0,115200
> >PID hash table entries: 2048 (order: 11, 32768 bytes)
> >Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
> >Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
> >Memory: 239616k available (1860k kernel code, 596k data, 140k init,
> 0k highmem)
> >Mount-cache hash table entries: 512
> >checking if image is initramfs...it isn't (no cpio magic); looks like
> an initrd
> >softlockup thread 0 started up.
> >Freeing initrd memory: 17354k freed
> >NET: Registered protocol family 16
> >PCI: Probing PCI hardware
> >usbcore: registered new driver usbfs
> >usbcore: registered new driver hub
> >SCSI subsystem initialized
> >io scheduler noop registered
> >io scheduler anticipatory registered
> >io scheduler deadline registered
> >io scheduler cfq registered
> >usbmon: debugfs is not available
> >ppc-soc-ohci ppc-soc-ohci.0: USB Host Controller
> >ppc-soc-ohci ppc-soc-ohci.0: new USB bus registered, assigned bus
> number 1
> >ppc-soc-ohci ppc-soc-ohci.0: irq 40, io mem 0xef601000
> >usb usb1: Product: USB Host Controller
> >usb usb1: Manufacturer: Linux 2.6.14 ohci_hcd
> >usb usb1: SerialNumber: PPC-SOC USB
> >hub 1-0:1.0: USB hub found
> >hub 1-0:1.0: 2 ports detected
> >Initializing USB Mass Storage driver...
> >usbcore: registered new driver usb-storage
> >USB Mass Storage support registered.
> >pegasus: v0.6.12 (2005/01/13), Pegasus/Pegasus II USB Ethernet driver
> >usbcore: registered new driver pegasus
> >Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
> >serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
> >serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
> >RAMDISK driver initialized: 16 RAM disks of 49152K size 1024 blocksize
> >PPC 4xx OCP EMAC driver, version 3.53
> >mal0: initialized, 4 TX channels, 2 RX channels
> >zmii0: bridge in RMII mode
> >eth0: emac0, MAC 00:10:ec:00:87:40
> >eth0: found Generic MII PHY (0x01)
> >eth1: emac1, MAC 00:10:ec:00:87:47
> >eth1: found Generic MII PHY (0x03)
> >Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
> >ide: Assuming 33MHz system bus speed for PIO modes; override with
> idebus=xx
> >Data machine check in kernel mode.
> >PLB0: BEAR=0x0000000000000000 ACR= 0x00000000 BESR= 0xfffff7ff
> >POB0: BEAR=0xc27e3194ffffffff BESR0=0x00000000 BESR1=0x00000000
> >OPB0: BEAR=0x0000000000000151 BSTAT=0x00000000
> >Oops: machine check, sig: 7 [#1]
> >NIP: 00000000 LR: C0263628 SP: CFF41F40 REGS: c0271f50 TRAP: 0202 Not
> tainted
> >MSR: 00000000 EE: 0 PR: 0 FP: 0 ME: 0 IR/DR: 00
> >TASK = c04f8b10[1] 'swapper' THREAD: cff40000
> >Last syscall: 120
> >GPR00: FDFFEF02 CFF41F40 C04F8B10 C04FC000 C026C6B4 C04FC000 00000009
> CFF41EF4
> >GPR08: C04F9F70 00000000 00004000 C0270000 24254322 61000408 0FFB6800
> 00000001
> >GPR16: 00800000 0FFCEAD4 FFFFFFFF 00000000 007FFF00 0FFB1210 00000003
> 00000002
> >GPR24: C01D0000 C01D0000 C0270000 C01D0000 C0270000 C0223E10 C026C6B4
> C04FC000
> >NIP [00000000] 0x0
> >LR [c0263628] aec62xx_init_one+0x38/0x48
> >Call trace:
> > [c0263628] aec62xx_init_one+0x38/0x48
> > [c02649b8] ide_scan_pcidev+0x68/0xb0
> > [c0264a34] ide_scan_pcibus+0x34/0xe8
> > [c026492c] ide_init+0x68/0x8c
> > [c00013ac] init+0xb4/0x254
> > [c00046c0] kernel_thread+0x48/0x64
> >Data machine check in kernel mode.
> >PLB0: BEAR=0x0000000000000000 ACR= 0x00000000 BESR= 0xfffff7ff
> >POB0: BEAR=0xc27e3194ffffffff BESR0=0x00000000 BESR1=0x00000000
> >OPB0: BEAR=0x0000000000000151 BSTAT=0x00000000
> >Oops: machine check, sig: 7 [#2]
> >NIP: 00000000 LR: C000235C SP: C0271E70 REGS: c0271f50 TRAP: 0202 Not
> tainted
> >MSR: 00000000 EE: 0 PR: 0 FP: 0 ME: 0 IR/DR: 00
> >TASK = c04f8b10[1] 'swapper' THREAD: cff40000
> >Last syscall: 120
> >GPR00: 08000000 C0271E70 C04F8B10 C0271E80 00001568 FFFFFFFF C0270000
> 00004000
> >GPR08: C0270000 C000235C 00021002 C00039E8 C04F8CD8 61000408 0FFB6800
> 00000001
> >GPR16: 00800000 0FFCEAD4 FFFFFFFF 00000000 007FFF00 0FFB1210 00000003
> 00000002
> >GPR24: C01D0000 C01D0000 C0270000 C01D0000 C0270000 C0223E10 00000007
> C0271F50
> >NIP [00000000] 0x0
> >LR [c000235c] ret_from_except+0x0/0x18
> >Kernel panic - not syncing: Attempted to kill init!
> > <0>Rebooting in 1 seconds..
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Linuxppc-embedded mailing list
> >Linuxppc-embedded at ozlabs.org
> >https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
>
>
>
>
>
>------------------------------------------------------------------------
>
>root at 192.168.7.67:/lib/modules/2.6.13/kernel/drivers/ide/pci# insmod it821x.ko
>T8212: IDE controller at PCI slot 0000:00:0c.0
>IT8212: chipset revision 17
>it8212: forcing bypass mode.
>it821x: controller in pass through mode.
>IT8212: 100% native mode on irq 25
>Data machine check in kernel mode.
>PLB0: BEAR=0x0000000000000000 ACR=  0x00000000 BESR= 0xfffbffbf
>POB0: BEAR=0xc27e3194fffbffff BESR0=0x00000000 BESR1=0x00000000
>OPB0: BEAR=0x0000000000000151 BSTAT=0x00000000
>Oops: machine check, sig: 7 [#1]
>NIP: 00000000 LR: C0133138 SP: CF49DD50 REGS: c02c8f50 TRAP: 0202    Not tainted
>MSR: 00000000 EE: 0 PR: 0 FP: 0 ME: 0 IR/DR: 00
>TASK = c0295b90[184] 'insmod' THREAD: cf49c000
>Last syscall: 128
>GPR00: FDFFEFD2 CF49DD50 C0295B90 00000000 00000060 FDFEE004 00000002 CF49DD38
>GPR08: 00000000 C02C0000 00000008 FDFEE004 00000000 10019538 C02D5B38 C02D5B38
>GPR16: C02D5B38 00000019 00000000 C02D5B38 C02D5B38 C0565000 CF49DDE8 C0565000
>GPR24: D102F8D2 C0565000 00000000 0000FFD0 D102F8B0 40000000 C02D5B38 C02D5B38
>NIP [00000000] 0x0
>LR [c0133138] ide_pci_setup_ports+0x61c/0x718
>Call trace:
> [c0133450] do_ide_setup_pci_device+0x21c/0x46c
> [c01336c0] ide_setup_pci_device+0x20/0x9c
> [d102f574] it821x_init_one+0x24/0x38 [it821x]
> [c00f1af4] pci_device_probe+0x80/0xa0
> [c010a880] driver_probe_device+0x50/0xf4
> [c010aa88] __driver_attach+0x84/0xc4
> [c0109e14] bus_for_each_dev+0x54/0x98
> [c010aaec] driver_attach+0x24/0x34
> [c010a388] bus_add_driver+0x88/0x158
> [c010b004] driver_register+0x38/0x4c
> [c00f18f4] pci_register_driver+0x7c/0x8c
> [c0133864] ide_pci_register_driver+0x54/0x6c
> [d102f5dc] it821x_ide_init+0x54/0x328 [it821x]
> [c003514c] sys_init_module+0x230/0x33c
> [c0001c74] ret_from_syscall+0x0/0x48
>Data machine check in kernel mode.
>PLB0: BEAR=0x0000000000000000 ACR=  0x00000000 BESR= 0xfffbffbf
>POB0: BEAR=0xc27e3194fffbffff BESR0=0x00000000 BESR1=0x00000000
>OPB0: BEAR=0x0000000000000151 BSTAT=0x00000000
>Oops: machine check, sig: 7 [#2]
>NIP: 00000000 LR: C000237C SP: C02C8E70 REGS: c02c8f50 TRAP: 0202    Not tainted
>MSR: 00000000 EE: 0 PR: 0 FP: 0 ME: 0 IR/DR: 00
>TASK = c0295b90[184] 'insmod' THREAD: cf49c000
>Last syscall: 128
>GPR00: 08000000 C02C8E70 C0295B90 C02C8E80 00001E34 FFFFFFFF C0230000 C0237244
>GPR08: C0230000 C000237C 00021002 C0003774 C0295D58 10019538 C02D5B38 C02D5B38
>GPR16: C02D5B38 00000019 00000000 C02D5B38 C02D5B38 C0565000 CF49DDE8 C0565000
>GPR24: D102F8D2 C0565000 00000000 0000FFD0 D102F8B0 40000000 C02C8F50 00000007
>NIP [00000000] 0x0
>LR [c000237c] ret_from_except+0x0/0x18
>Data machine check in kernel mode.
>PLB0: BEAR=0x0000000000000000 ACR=  0x00000000 BESR= 0xfffbffbf
>POB0: BEAR=0xc27e3194fffbffff BESR0=0x00000000 BESR1=0x00000000
>OPB0: BEAR=0x0000000000000151 BSTAT=0x00000000
>Oops: machine check, sig: 7 [#3]
>NIP: 00000000 LR: C0004834 SP: CFA0DE30 REGS: c02c8f50 TRAP: 0202    Not tainted
>MSR: 00000000 EE: 0 PR: 0 FP: 0 ME: 0 IR/DR: 00
>TASK = c02957f0[144] 'klogd' THREAD: cfa0c000
>Last syscall: 3
>GPR00: 220024E4 CFA0DE30 C02957F0 C0295B90 C0004834 C02C9200 C02C28C0 00000000
>GPR08: 165A2272 C02C0000 22044284 00000000 0000270B 1001D13C 7FEAB844 65786563
>GPR16: 10000000 7FEAB880 10010000 10000000 10010000 C02D0000 C02D0000 C029591C
>GPR24: 00000F5F C02CB500 C02CB500 C02C28C0 F8F6DF16 C0295450 C02957F0 00021000
>NIP [00000000] 0x0
>LR [c000483
>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Linuxppc-embedded mailing list
>Linuxppc-embedded at ozlabs.org
>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>


-- 
Stephen Yee(Ò×ËÉ»ª)
Field Application Engineer
Beijing Microtech Research(BMR)
Tel: 86-755-88354481/2/3/5/6
Fax: 86-755-88354480
www.bmrtech.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bdi2000.cfg
Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060914/b728dcd9/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kernel_config
Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060914/b728dcd9/attachment-0001.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ksymoops_kernel_panic.txt
Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060914/b728dcd9/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log_ide_pci_card_panic.txt
Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060914/b728dcd9/attachment-0003.txt 


More information about the Linuxppc-embedded mailing list