Hi Zoltan, On 3/14/19 11:08 PM, BALATON Zoltan wrote: > On Thu, 14 Mar 2019, Aleksandar Markovic wrote: >>> From: BALATON Zoltan <bala...@eik.bme.hu> >>> Subject: Data bus error with redeonfb on mips_fulong2e >>> >>> Hello, >>> >>> Trying to debug the Linux kernel oops with radeonfb I've added some more >>> debug logs and got this: >>> >>> radeonfb_pci_register BEGIN >>> pci_host_data: pci_data_read: ati-vga: addr=04 val=00000000 len=4 >>> PCI: Enabling device 0000:00:06.0 (0000 -> 0003) >>> pci_host_data: pci_data_read: ati-vga: addr=04 val=00000000 len=4 >>> pci_host_data: pci_data_write: ati-vga: addr=04 val=00000003 len=4 >>> pci_update_mappings: adding bar 0 to pci.mem @ 0x14000000 >>> pci_update_mappings: adding bar 1 to io @ 0x4000 >>> pci_update_mappings: adding bar 2 to pci.mem @ 0x15050000 >>> pci_host_data: pci_data_read: ati-vga: addr=3c val=00000000 len=4 >>> radeonfb_pci_register fb_base_phys=14000000 >>> radeonfb_pci_register mmio_base_phys=15050000 >>> radeonfb_pci_register request mem regions >>> radeonfb_pci_register map regions >>> radeonfb_pci_register mmio_base=9000000015050000 >>> Data bus error, epc == ffffffff80418e4c, ra == ffffffff80418e4c >>> (full oops dump in previous message but I couldn't find anything >>> useful in >>> there so omitted here)
(qemu) info mtree memory-region: system 0000000000000000-ffffffffffffffff (prio 0, i/o): system 0000000000000000-000000000fffffff (prio 0, ram): fulong2e.ram 0000000010000000-000000001bffffff (prio 0, i/o): pci.mem 00000000100a0000-00000000100bffff (prio 1, i/o): vga-lowmem 0000000024000000-0000000024ffffff (prio 1, ram): vga.vram 0000000025050000-0000000025053fff (prio 1, i/o): ati.mmregs 000000001fc00000-000000001fc7ffff (prio 0, rom): fulong2e.bios The CPU bus is right, there is nothing mapped at 0x0.1505.0000 (IO is 36bit wide on mips64). I look at the kernel and it doesn't configure the PCI but expect the display to be there already, so I checked the BIOS you cited in another thread and ran the same command con the "PMON>" prompt was reached: (qemu) info mtree memory-region: system 0000000000000000-ffffffffffffffff (prio 0, i/o): system 0000000000000000-000000000fffffff (prio 0, ram): fulong2e.ram 0000000010000000-000000001bffffff (prio 0, i/o): pci.mem 00000000100a0000-00000000100affff (prio 2, i/o): alias vga.chain4 @vga.vram 0000000000000000-000000000000ffff 00000000100a0000-00000000100bffff (prio 1, i/o): vga-lowmem 0000000014000000-0000000014ffffff (prio 1, ram): vga.vram 0000000015000000-000000001503ffff (prio 1, rom): rtl8139.rom 0000000015040000-000000001504ffff (prio 1, rom): ati-vga.rom 0000000015050000-0000000015053fff (prio 1, i/o): ati.mmregs ^ remapped 0000000015054000-00000000150540ff (prio 1, i/o): alias rtl8139-mem @rtl8139 0000000000000000-00000000000000ff 000000001fc00000-000000001fc7ffff (prio 0, rom): fulong2e.bios 000000001fd00000-000000001fd0ffff (prio 0, i/o): alias isa_mmio @io 0000000000000000-000000000000ffff 000000001fe00000-000000001fe000ff (prio 0, i/o): north-bridge-pci-config 000000001fe00100-000000001fe0016f (prio 0, i/o): north-bridge-register 000000001fe80000-000000001fefffff (prio 0, i/o): south-bridge-pci-config 000000001ff00000-000000001fffffff (prio 0, i/o): alias isa_mmio @io 0000000000000000-00000000000fffff 00000000bfe00200-00000000bfe002ff (prio 0, i/o): ldma 00000000bfe00300-00000000bfe003ff (prio 0, i/o): cop I then traced it to check PMON do the PCI initialization Linux expects: $ qemu-system-mips64el -M fulong2e -bios pmon_2e.bin \ -serial stdio -d trace:pci\* ... PPCIH ... PCI bus 0 slot 5/6: reg 0x24 = 0x0 18936@1552613792.124336:pci_cfg_read VT82C686B_MC97 05:6 @0x30 -> 0x0 18936@1552613792.124342:pci_cfg_read VT82C686B_MC97 05:6 @0x30 -> 0x0 18936@1552613792.124344:pci_cfg_write VT82C686B_MC97 05:6 @0x30 <- 0xfffffffe 18936@1552613792.124349:pci_cfg_read VT82C686B_MC97 05:6 @0x30 -> 0x0 18936@1552613792.124354:pci_cfg_read VT82C686B_MC97 05:6 @0x30 -> 0x0 18936@1552613792.124357:pci_cfg_write VT82C686B_MC97 05:6 @0x30 <- 0x0 18936@1552613792.124408:pci_cfg_read ati-vga 06:0 @0x0 -> 0x51591002 18936@1552613792.124414:pci_cfg_read ati-vga 06:0 @0xc -> 0x0 18936@1552613792.124441:pci_cfg_read ati-vga 06:0 @0x8 -> 0x3000000 18936@1552613792.124446:pci_cfg_read ati-vga 06:0 @0x0 -> 0x51591002 18936@1552613792.124574:pci_cfg_read ati-vga 06:0 @0x4 -> 0x0 18936@1552613792.124580:pci_cfg_read ati-vga 06:0 @0x4 -> 0x0 18936@1552613792.124582:pci_cfg_write ati-vga 06:0 @0x4 <- 0x0 18936@1552613792.124588:pci_cfg_read ati-vga 06:0 @0x3c -> 0x0 18936@1552613792.124593:pci_cfg_read ati-vga 06:0 @0x3c -> 0x0 18936@1552613792.124597:pci_cfg_read ati-vga 06:0 @0x3c -> 0x0 18936@1552613792.124602:pci_cfg_read ati-vga 06:0 @0x3c -> 0x0 18936@1552613792.124604:pci_cfg_write ati-vga 06:0 @0x3c <- 0x0 18936@1552613792.124609:pci_cfg_read ati-vga 06:0 @0x10 -> 0x8 18936@1552613792.124614:pci_cfg_read ati-vga 06:0 @0x10 -> 0x8 18936@1552613792.124616:pci_cfg_write ati-vga 06:0 @0x10 <- 0xfffffffe 18936@1552613792.124621:pci_cfg_read ati-vga 06:0 @0x10 -> 0xff000008 18936@1552613792.124626:pci_cfg_read ati-vga 06:0 @0x10 -> 0xff000008 18936@1552613792.124629:pci_cfg_write ati-vga 06:0 @0x10 <- 0x8 18936@1552613792.124912:pci_cfg_read ati-vga 06:0 @0x14 -> 0x1 18936@1552613792.124919:pci_cfg_read ati-vga 06:0 @0x14 -> 0x1 18936@1552613792.124921:pci_cfg_write ati-vga 06:0 @0x14 <- 0xfffffffe 18936@1552613792.124926:pci_cfg_read ati-vga 06:0 @0x14 -> 0xffffff01 18936@1552613792.124931:pci_cfg_read ati-vga 06:0 @0x14 -> 0xffffff01 18936@1552613792.124934:pci_cfg_write ati-vga 06:0 @0x14 <- 0x1 18936@1552613792.124939:pci_cfg_read ati-vga 06:0 @0x18 -> 0x0 18936@1552613792.124944:pci_cfg_read ati-vga 06:0 @0x18 -> 0x0 18936@1552613792.124946:pci_cfg_write ati-vga 06:0 @0x18 <- 0xfffffffe 18936@1552613792.124951:pci_cfg_read ati-vga 06:0 @0x18 -> 0xffffc000 18936@1552613792.124956:pci_cfg_read ati-vga 06:0 @0x18 -> 0xffffc000 18936@1552613792.124958:pci_cfg_write ati-vga 06:0 @0x18 <- 0x0 18936@1552613792.124964:pci_cfg_read ati-vga 06:0 @0x1c -> 0x0 18936@1552613792.124969:pci_cfg_read ati-vga 06:0 @0x1c -> 0x0 18936@1552613792.124971:pci_cfg_write ati-vga 06:0 @0x1c <- 0xfffffffe 18936@1552613792.124976:pci_cfg_read ati-vga 06:0 @0x1c -> 0x0 18936@1552613792.124981:pci_cfg_read ati-vga 06:0 @0x1c -> 0x0 18936@1552613792.124983:pci_cfg_write ati-vga 06:0 @0x1c <- 0x0 18936@1552613792.124989:pci_cfg_read ati-vga 06:0 @0x20 -> 0x0 18936@1552613792.124993:pci_cfg_read ati-vga 06:0 @0x20 -> 0x0 18936@1552613792.124996:pci_cfg_write ati-vga 06:0 @0x20 <- 0xfffffffe 18936@1552613792.125001:pci_cfg_read ati-vga 06:0 @0x20 -> 0x0 18936@1552613792.125005:pci_cfg_read ati-vga 06:0 @0x20 -> 0x0 18936@1552613792.125011:pci_cfg_write ati-vga 06:0 @0x20 <- 0x0 18936@1552613792.125016:pci_cfg_read ati-vga 06:0 @0x24 -> 0x0 18936@1552613792.125021:pci_cfg_read ati-vga 06:0 @0x24 -> 0x0 18936@1552613792.125023:pci_cfg_write ati-vga 06:0 @0x24 <- 0xfffffffe 18936@1552613792.125028:pci_cfg_read ati-vga 06:0 @0x24 -> 0x0 18936@1552613792.125033:pci_cfg_read ati-vga 06:0 @0x24 -> 0x0 18936@1552613792.125035:pci_cfg_write ati-vga 06:0 @0x24 <- 0x0 18936@1552613792.125040:pci_cfg_read ati-vga 06:0 @0x30 -> 0x0 18936@1552613792.125045:pci_cfg_read ati-vga 06:0 @0x30 -> 0x0 18936@1552613792.125047:pci_cfg_write ati-vga 06:0 @0x30 <- 0xfffffffe 18936@1552613792.125052:pci_cfg_read ati-vga 06:0 @0x30 -> 0xffff0000 18936@1552613792.125057:pci_cfg_read ati-vga 06:0 @0x30 -> 0xffff0000 18936@1552613792.125060:pci_cfg_write ati-vga 06:0 @0x30 <- 0x0 18936@1552613792.125207:pci_cfg_read rtl8139 07:0 @0x0 -> 0x813910ec 18936@1552613792.125213:pci_cfg_read rtl8139 07:0 @0xc -> 0x0 18936@1552613792.125218:pci_cfg_read rtl8139 07:0 @0x8 -> 0x2000020 18936@1552613792.125222:pci_cfg_read rtl8139 07:0 @0x0 -> 0x813910ec 18936@1552613792.125315:pci_cfg_read rtl8139 07:0 @0x4 -> 0x0 18936@1552613792.125322:pci_cfg_read rtl8139 07:0 @0x4 -> 0x0 18936@1552613792.125324:pci_cfg_write rtl8139 07:0 @0x4 <- 0x0 18936@1552613792.125329:pci_cfg_read rtl8139 07:0 @0x3c -> 0x100 18936@1552613792.125333:pci_cfg_read rtl8139 07:0 @0x3c -> 0x100 18936@1552613792.125337:pci_cfg_read rtl8139 07:0 @0x3c -> 0x100 18936@1552613792.125341:pci_cfg_read rtl8139 07:0 @0x3c -> 0x100 18936@1552613792.125343:pci_cfg_write rtl8139 07:0 @0x3c <- 0x100 18936@1552613792.125347:pci_cfg_read rtl8139 07:0 @0x10 -> 0x1 18936@1552613792.125351:pci_cfg_read rtl8139 07:0 @0x10 -> 0x1 18936@1552613792.125353:pci_cfg_write rtl8139 07:0 @0x10 <- 0xfffffffe 18936@1552613792.125358:pci_cfg_read rtl8139 07:0 @0x10 -> 0xffffff01 18936@1552613792.125363:pci_cfg_read rtl8139 07:0 @0x10 -> 0xffffff01 18936@1552613792.125366:pci_cfg_write rtl8139 07:0 @0x10 <- 0x1 18936@1552613792.125371:pci_cfg_read rtl8139 07:0 @0x14 -> 0x0 18936@1552613792.125375:pci_cfg_read rtl8139 07:0 @0x14 -> 0x0 18936@1552613792.125378:pci_cfg_write rtl8139 07:0 @0x14 <- 0xfffffffe 18936@1552613792.125382:pci_cfg_read rtl8139 07:0 @0x14 -> 0xffffff00 18936@1552613792.125386:pci_cfg_read rtl8139 07:0 @0x14 -> 0xffffff00 18936@1552613792.125388:pci_cfg_write rtl8139 07:0 @0x14 <- 0x0 18936@1552613792.125394:pci_cfg_read rtl8139 07:0 @0x18 -> 0x0 18936@1552613792.125398:pci_cfg_read rtl8139 07:0 @0x18 -> 0x0 18936@1552613792.125401:pci_cfg_write rtl8139 07:0 @0x18 <- 0xfffffffe 18936@1552613792.125405:pci_cfg_read rtl8139 07:0 @0x18 -> 0x0 18936@1552613792.125410:pci_cfg_read rtl8139 07:0 @0x18 -> 0x0 18936@1552613792.125413:pci_cfg_write rtl8139 07:0 @0x18 <- 0x0 18936@1552613792.125417:pci_cfg_read rtl8139 07:0 @0x1c -> 0x0 18936@1552613792.125422:pci_cfg_read rtl8139 07:0 @0x1c -> 0x0 18936@1552613792.125424:pci_cfg_write rtl8139 07:0 @0x1c <- 0xfffffffe 18936@1552613792.125429:pci_cfg_read rtl8139 07:0 @0x1c -> 0x0 18936@1552613792.125434:pci_cfg_read rtl8139 07:0 @0x1c -> 0x0 18936@1552613792.125436:pci_cfg_write rtl8139 07:0 @0x1c <- 0x0 18936@1552613792.125441:pci_cfg_read rtl8139 07:0 @0x20 -> 0x0 18936@1552613792.125446:pci_cfg_read rtl8139 07:0 @0x20 -> 0x0 18936@1552613792.125448:pci_cfg_write rtl8139 07:0 @0x20 <- 0xfffffffe 18936@1552613792.125453:pci_cfg_read rtl8139 07:0 @0x20 -> 0x0 18936@1552613792.125457:pci_cfg_read rtl8139 07:0 @0x20 -> 0x0 18936@1552613792.125460:pci_cfg_write rtl8139 07:0 @0x20 <- 0x0 18936@1552613792.125464:pci_cfg_read rtl8139 07:0 @0x24 -> 0x0 18936@1552613792.125469:pci_cfg_read rtl8139 07:0 @0x24 -> 0x0 18936@1552613792.125471:pci_cfg_write rtl8139 07:0 @0x24 <- 0xfffffffe 18936@1552613792.125476:pci_cfg_read rtl8139 07:0 @0x24 -> 0x0 18936@1552613792.125481:pci_cfg_read rtl8139 07:0 @0x24 -> 0x0 18936@1552613792.125483:pci_cfg_write rtl8139 07:0 @0x24 <- 0x0 18936@1552613792.125488:pci_cfg_read rtl8139 07:0 @0x30 -> 0x0 18936@1552613792.125493:pci_cfg_read rtl8139 07:0 @0x30 -> 0x0 18936@1552613792.125495:pci_cfg_write rtl8139 07:0 @0x30 <- 0xfffffffe 18936@1552613792.125500:pci_cfg_read rtl8139 07:0 @0x30 -> 0xfffc0000 18936@1552613792.125505:pci_cfg_read rtl8139 07:0 @0x30 -> 0xfffc0000 18936@1552613792.125507:pci_cfg_write rtl8139 07:0 @0x30 <- 0x0 PCIS PCIR PCIW 18936@1552613792.126570:pci_cfg_read ati-vga 06:0 @0x10 -> 0x8 18936@1552613792.126616:pci_cfg_read ati-vga 06:0 @0x10 -> 0x8 18936@1552613792.126619:pci_cfg_write ati-vga 06:0 @0x10 <- 0x4000008 18936@1552613792.126723:pci_cfg_read ati-vga 06:0 @0x18 -> 0x0 18936@1552613792.126729:pci_cfg_read ati-vga 06:0 @0x18 -> 0x0 18936@1552613792.126731:pci_cfg_write ati-vga 06:0 @0x18 <- 0x5050000 18936@1552613792.126736:pci_cfg_read rtl8139 07:0 @0x14 -> 0x0 18936@1552613792.126740:pci_cfg_read rtl8139 07:0 @0x14 -> 0x0 18936@1552613792.126742:pci_cfg_write rtl8139 07:0 @0x14 <- 0x5054000 18936@1552613792.127043:pci_cfg_read rtl8139 07:0 @0x30 -> 0x0 18936@1552613792.127047:pci_cfg_write rtl8139 07:0 @0x30 <- 0x5000001 18936@1552613792.127186:pci_cfg_read ati-vga 06:0 @0x30 -> 0x0 18936@1552613792.127189:pci_cfg_write ati-vga 06:0 @0x30 <- 0x5040001 18936@1552613792.127556:pci_cfg_read rtl8139 07:0 @0x10 -> 0x1 18936@1552613792.127560:pci_cfg_write rtl8139 07:0 @0x10 <- 0xa001 18936@1552613792.127616:pci_cfg_read ati-vga 06:0 @0x14 -> 0x1 18936@1552613792.127619:pci_cfg_write ati-vga 06:0 @0x14 <- 0xa101 18936@1552613792.127682:pci_cfg_read vt82c686b-usb-uhci 05:3 @0x20 -> 0x1 18936@1552613792.127686:pci_cfg_write vt82c686b-usb-uhci 05:3 @0x20 <- 0xa201 18936@1552613792.127691:pci_cfg_read vt82c686b-usb-uhci 05:2 @0x20 -> 0x1 18936@1552613792.127692:pci_cfg_write vt82c686b-usb-uhci 05:2 @0x20 <- 0xa221 18936@1552613792.127697:pci_cfg_read via-ide 05:1 @0x20 -> 0xcc1 18936@1552613792.127699:pci_cfg_write via-ide 05:1 @0x20 <- 0xa241 18936@1552613792.127703:pci_cfg_read via-ide 05:1 @0x18 -> 0x171 18936@1552613792.127705:pci_cfg_write via-ide 05:1 @0x18 <- 0xa251 18936@1552613792.127710:pci_cfg_read via-ide 05:1 @0x10 -> 0x1f1 18936@1552613792.127711:pci_cfg_write via-ide 05:1 @0x10 <- 0xa259 18936@1552613792.127716:pci_cfg_read via-ide 05:1 @0x1c -> 0x375 18936@1552613792.127718:pci_cfg_write via-ide 05:1 @0x1c <- 0xa261 18936@1552613792.127722:pci_cfg_read via-ide 05:1 @0x14 -> 0x3f5 18936@1552613792.127725:pci_cfg_write via-ide 05:1 @0x14 <- 0xa265 NETI RTCL PCID 18936@1552613792.134936:pci_cfg_read VT82C686B 05:0 @0x4 -> 0x2000008 18936@1552613792.135016:pci_cfg_read VT82C686B 05:0 @0x8 -> 0x6010040 ... 18936@1552613792.143653:pci_cfg_read ati-vga 06:0 @0x4 -> 0x0 18936@1552613792.143659:pci_cfg_read ati-vga 06:0 @0x8 -> 0x3000000 18936@1552613792.143665:pci_cfg_read ati-vga 06:0 @0x4 -> 0x0 18936@1552613792.143668:pci_cfg_write ati-vga 06:0 @0x4 <- 0x147 18936@1552613792.143676:pci_update_mappings_add d=0x56212fd6a220 00:06.0 0,0x4000000+0x1000000 18936@1552613792.144553:pci_update_mappings_add d=0x56212fd6a220 00:06.0 1,0xa100+0x100 18936@1552613792.145228:pci_update_mappings_add d=0x56212fd6a220 00:06.0 2,0x5050000+0x4000 18936@1552613792.145689:pci_update_mappings_add d=0x56212fd6a220 00:06.0 6,0x5040000+0x10000 18936@1552613792.146707:pci_cfg_read ati-vga 06:0 @0xc -> 0x0 18936@1552613792.146720:pci_cfg_read ati-vga 06:0 @0xc -> 0x0 18936@1552613792.146723:pci_cfg_write ati-vga 06:0 @0xc <- 0x4008 18936@1552613792.146731:pci_cfg_read rtl8139 07:0 @0x4 -> 0x0 18936@1552613792.146736:pci_cfg_read rtl8139 07:0 @0x8 -> 0x2000020 18936@1552613792.146742:pci_cfg_read rtl8139 07:0 @0x4 -> 0x0 18936@1552613792.146744:pci_cfg_write rtl8139 07:0 @0x4 <- 0x147 18936@1552613792.146748:pci_update_mappings_add d=0x56212ff86a10 00:07.0 0,0xa000+0x100 18936@1552613792.147207:pci_update_mappings_add d=0x56212ff86a10 00:07.0 1,0x5054000+0x100 18936@1552613792.147651:pci_update_mappings_add d=0x56212ff86a10 00:07.0 6,0x5000000+0x40000 18936@1552613792.148646:pci_cfg_read rtl8139 07:0 @0xc -> 0x0 18936@1552613792.148655:pci_cfg_read rtl8139 07:0 @0xc -> 0x0 18936@1552613792.148658:pci_cfg_write rtl8139 07:0 @0xc <- 0x4008 VGAI Default MODE_ID 2 starting radeon init... 18936@1552613792.149862:pci_cfg_read ati-vga 06:0 @0x14 -> 0xa101 18936@1552613792.149922:pci_cfg_read ati-vga 06:0 @0x18 -> 0x5050000 iobase=bfd0a100,mmbase=b5050000 mc_status=5 mc_status=5 mc_status=5 mc_status=5 ppll_div_3 = 301f4 Wrote: 0x00000043 0x000301f4 0x00000000 (0x00000000) Wrote: rd=67, fd=500, pd=3 VCLK_ECP_CNTL = 000000C3 radeon init done FRBI 18936@1552613792.232858:pci_cfg_read ati-vga 06:0 @0x10 -> 0x4000008 18936@1552613792.232916:pci_cfg_read ati-vga 06:0 @0x18 -> 0x5050000 cfb_console init,fb=b4000000 Video: Drawing the logo ... ... $ fgrep 'pci_cfg_write ati-vga' trace.log ... 23023@1552615560.106226:pci_cfg_write ati-vga 06:0 @0x10 <- 0x4000008 23023@1552615560.106337:pci_cfg_write ati-vga 06:0 @0x18 <- 0x5050000 23023@1552615560.106823:pci_cfg_write ati-vga 06:0 @0x30 <- 0x5040001 23023@1552615560.107271:pci_cfg_write ati-vga 06:0 @0x14 <- 0xa101 23023@1552615560.119752:pci_cfg_write ati-vga 06:0 @0x4 <- 0x147 PCI_BASE_ADDRESS_0 = 0x4000008 PCI_BASE_ADDRESS_2 = 0x5050000 PCI_ROM_ADDRESS = 0x5040001 PCI_BASE_ADDRESS_1 = 0xa101 PCI_COMMAND = IO|MEMORY|MASTER|PARITY|SERR I dunno where we have to plug that. BTW you should: /* GPU */ - dev = DEVICE(pci_create(pci_bus, -1, "ati-vga")); + dev = DEVICE(pci_create(pci_bus, PCI_DEVFN(6, 0), "ati-vga")); Regards, Phil.