the PCI_IO doesn't work on PowerPC linux embedded (uboot) - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: May 16, 2017, 07:16:41 pm
content: So, after kernel 2.6.25, linux moved to FlatBinaryTree. The PCI_IO is broken since then.Tested on:2.6.39: broken3.10.*: broken4.11.*: brokenCode:U-Boot 1.2.0CPU: AMCC PowerPC 405GPDRAM: 128 MBPCI: Bus Dev VenId DevId Class Int00 02 1033 0035 0c03 1b00 02 1033 00e0 0c03 1b00 03 102b 0519 0300 1c00 04 105a 0d30 0101 1dBooting image at 00010000 ...Image Name: 2.6.39-rc1Created: 2017-05-15 12:15:11 UTCImage Type: PowerPC Kernel Image (uncompressed)Data Size: 4884476 Bytes = 4.7 MBLoad Address: 00a00000Entry Point: 00a003c8Verifying Checksum ... OKOK----------------------------------------------------------------------bootwrapper.begin, Memory <- <0x0 0x8000000> (128MB)CPU clock-frequency <- 0xfe49a80 (267MHz)CPU timebase-frequency <- 0xfe49a80 (267MHz)/plb: clock-frequency <- 3f926a0 (67MHz)/plb/opb: clock-frequency <- 1fc9350 (33MHz)/plb/ebc: clock-frequency <- 1fc9350 (33MHz)/plb/opb/serial@ef600300: clock-frequency <- a98670 (11MHz)/plb/opb/serial@ef600400: clock-frequency <- a98670 (11MHz)ethernet0: local-mac-address <- de:ad:be:ef:de:adbootwrapper.end hAllo, starting: loaded at 0x00a00000 (sp: 0x00eb56d4)----------------------------------------------------------------------Allocating 0x4a2520 bytes for kernel ...gunzipping (0x00000000 <- 0x00a0f000:0x00ea87fc)...done 0x489100 bytescmdline=[console=ttyS0,9600 mem=64M rdinit=/sbin/init root=/dev/mtdblock1 rw init=/sbin/init ]cmdline:uboot's bootargs overriddenFinalizing device tree... flat tree at 0xeb6300Using machine descriptionkernel version 2.6.39-flash-eating-bats-IIcompiled by root@OrangeCubecompiled with gcc version 4.2.4 (Gentoo 4.2.4-r1 p1.4)compiled ticket #147 Mon May 15 14:15:04 CEST 2017bootconsole  enabledsetup_arch: bootmemarch: exitZone PFN ranges:DMA 0x00000000 -> 0x00004000Normal emptyMovable zone start PFN for each nodeearly_node_map active PFN ranges0: 0x00000000 -> 0x00004000MMU: Allocated 1088 bytes of context maps for 255 contextsBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 16256init=/sbin/initPID hash table entries: 256 (order: -2, 1024 bytes)Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)Memory: 60136k/65536k available (4480k kernel code, 5400k reserved, 168k data, 97k bss, 160k init)Kernel virtual memory layout:* 0xfffdf000..0xfffff000 : fixmap* 0xfde00000..0xfe000000 : consistent mem* 0xfddfe000..0xfde00000 : early ioremap* 0xc5000000..0xfddfe000 : vmalloc & ioremapSLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1NR_IRQS:512 nr_irqs:512 16UIC0 (32 IRQ sources) at DCR 0xc0clocksource: timebase mult shift registeredConsole: colour dummy device 80x25pid_max: default: 32768 minimum: 301Mount-cache hash table entries: 512devtmpfs: initializedNET: Registered protocol family 16PCI host bridge /plb/pci@ec000000 (primary) ranges:MEM 0x0000000080000000..0x000000009fffffff -> 0x0000000080000000IO 0x00000000b0000000..0x00000000b000ffff -> 0x00000000000000004xx PCI DMA offset set to 0x00000000PCI: Probing PCI hardwarePCI: Hiding 4xx host bridge resources 0000:00:00.0pci 0000:00:03.0: BAR 1: assigned [mem 0x80000000-0x807fffff pref]pci 0000:00:03.0: BAR 1: set to [mem 0x80000000-0x807fffff pref] (PCI address [0x80000000-0x807fffff])pci 0000:00:04.0: BAR 5: assigned [mem 0x80800000-0x8081ffff]pci 0000:00:04.0: BAR 5: set to [mem 0x80800000-0x8081ffff] (PCI address [0x80800000-0x8081ffff])pci 0000:00:03.0: BAR 6: assigned [mem 0x80820000-0x8082ffff pref]pci 0000:00:03.0: BAR 0: assigned [mem 0x80830000-0x80833fff]pci 0000:00:03.0: BAR 0: set to [mem 0x80830000-0x80833fff] (PCI address [0x80830000-0x80833fff])pci 0000:00:04.0: BAR 6: assigned [mem 0x80834000-0x80837fff pref]pci 0000:00:02.0: BAR 0: assigned [mem 0x80838000-0x80838fff]pci 0000:00:02.0: BAR 0: set to [mem 0x80838000-0x80838fff] (PCI address [0x80838000-0x80838fff])pci 0000:00:02.1: BAR 0: assigned [mem 0x80839000-0x808390ff]pci 0000:00:02.1: BAR 0: set to [mem 0x80839000-0x808390ff] (PCI address [0x80839000-0x808390ff])pci 0000:00:04.0: BAR 4: assigned [io 0x1000-0x103f]pci 0000:00:04.0: BAR 4: set to [io 0x1000-0x103f] (PCI address [0x1000-0x103f])pci 0000:00:04.0: BAR 4: PCI_IO not supported, disabledbio: create slab <bio-0> at 0vgaarb: device added: PCI:0000:00:03.0,decodes=io+mem,owns=io+mem,locks=nonevgaarb: loadedSCSI subsystem initializedusbcore: registered new interface driver usbfsusbcore: registered new interface driver hubusbcore: registered new device driver usbSwitching to clocksource timebaseNET: Registered protocol family 2IP route cache hash table entries: 1024 (order: 0, 4096 bytes)TCP established hash table entries: 2048 (order: 2, 16384 bytes)TCP bind hash table entries: 2048 (order: 1, 8192 bytes)TCP: Hash tables configured (established 2048 bind 2048)TCP reno registeredUDP hash table entries: 256 (order: 0, 4096 bytes)UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)NET: Registered protocol family 1RPC: Registered udp transport module.RPC: Registered tcp transport module.RPC: Registered tcp NFSv4.1 backchannel transport module.OF_RTC: /plb/ebc/nvram@1,0 is a rtc-ds1742 @ 0xf0000000-0xf0001fffmsgmni has been set to 117io scheduler noop registeredio scheduler deadline registeredio scheduler cfq registered (default)pci_hotplug: PCI Hot Plug PCI Core version: 0.5shpchp: Standard Hot Plug PCI Controller Driver version: 0.4Serial: 8250/16550 driver, 4 ports, IRQ sharing enabledserial8250.0: ttyS0 at MMIO 0xef600300 (irq = 16) is a 16550Aconsole  enabled, bootconsole disabledconsole  enabled, bootconsole disabledserial8250.0: ttyS1 at MMIO 0xef600400 (irq = 17) is a 16550Aef600300.serial: ttyS0 at MMIO 0xef600300 (irq = 16) is a 16550ef600400.serial: ttyS1 at MMIO 0xef600400 (irq = 17) is a 16550matroxfb: Matrox Millennium (PCI) detectedPInS data found at offset 64459PInS memtype = 0matroxfb: 640x480x8bpp (virtual: 640x6553)matroxfb: framebuffer at 0x80000000, mapped to 0xc5080000, size 4194304Console: switching to colour frame buffer device 80x30fb0: MATROX frame buffer device Initialized drm 1.1.0 20060810brd: module loadedloop: module loadedPROMISE PDC20265 0000:00:04.0: device not available (can't reserve [io 0x01f0-0x01f7])PROMISE PDC20265: probe of 0000:00:04.0 failed with error -22Found: AMD AM29LV040Bfff80000.flash: Found 1 x8 devices at 0x0 in 8-bit banknumber of JEDEC chips: 1PPC 4xx OCP EMAC driver, version 3.54MAL v1 /plb/mcmal, 1 TX channels, 1 RX channelseth0: EMAC-0 /plb/opb/ethernet@ef600800, MAC de:ad:be:ef:de:adeth0: found Generic MII PHY (0x09)ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driverehci_hcd 0000:00:02.1: EHCI Host Controllerehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 1ehci_hcd 0000:00:02.1: irq 29, io mem 0x80839000ehci_hcd 0000:00:02.1: USB 2.0 started, EHCI 1.00hub 1-0:1.0: USB hub foundhub 1-0:1.0: 3 ports detectedohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driverohci_hcd 0000:00:02.0: OHCI Host Controllerohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2ohci_hcd 0000:00:02.0: irq 29, io mem 0x80838000hub 2-0:1.0: USB hub foundhub 2-0:1.0: 3 ports detectedusbcore: registered new interface driver uasInitializing USB Mass Storage driver...usbcore: registered new interface driver usb-storageUSB Mass Storage support registered.usbcore: registered new interface driver usbserialusbserial: USB Serial Driver coreUSB Serial support registered for FTDI USB Serial Deviceusbcore: registered new interface driver ftdi_sioftdi_sio: v1.6.0:USB FTDI Serial Converters Drivermousedev: PS/2 mouse device common for all miceI2O subsystem v1.325i2o: max drivers = 8I2O ProcFS OSM v1.316usb 2-3: new low speed USB device number 2 using ohci_hcdi2c /dev entries driveribm-iic ef600500.i2c: using standard (100 kHz) modeusbcore: registered new interface driver usbhidusbhid: USB HID core driverTCP cubic registeredNET: Registered protocol family 17VFS: Mounted root (ext2 filesystem) on device 31:1.devtmpfs: mountedFreeing unused kernel memory: 160k initCode:PCI host bridge /plb/pci@ec000000 (primary) ranges:MEM 0x0000000080000000..0x000000009fffffff -> 0x0000000080000000IO 0x00000000b0000000..0x00000000b000ffff -> 0x00000000000000004xx PCI DMA offset set to 0x00000000PCI: Probing PCI hardwarePCI: Hiding 4xx host bridge resources 0000:00:00.0pci 0000:00:03.0: BAR 1: assigned [mem 0x80000000-0x807fffff pref]pci 0000:00:03.0: BAR 1: set to [mem 0x80000000-0x807fffff pref] (PCI address [0x80000000-0x807fffff])pci 0000:00:04.0: BAR 5: assigned [mem 0x80800000-0x8081ffff]pci 0000:00:04.0: BAR 5: set to [mem 0x80800000-0x8081ffff] (PCI address [0x80800000-0x8081ffff])pci 0000:00:03.0: BAR 6: assigned [mem 0x80820000-0x8082ffff pref]pci 0000:00:03.0: BAR 0: assigned [mem 0x80830000-0x80833fff]pci 0000:00:03.0: BAR 0: set to [mem 0x80830000-0x80833fff] (PCI address [0x80830000-0x80833fff])pci 0000:00:04.0: BAR 6: assigned [mem 0x80834000-0x80837fff pref]pci 0000:00:02.0: BAR 0: assigned [mem 0x80838000-0x80838fff]pci 0000:00:02.0: BAR 0: set to [mem 0x80838000-0x80838fff] (PCI address [0x80838000-0x80838fff])pci 0000:00:02.1: BAR 0: assigned [mem 0x80839000-0x808390ff]pci 0000:00:02.1: BAR 0: set to [mem 0x80839000-0x808390ff] (PCI address [0x80839000-0x808390ff])pci 0000:00:04.0: BAR 4: assigned [io 0x1000-0x103f]pci 0000:00:04.0: BAR 4: set to [io 0x1000-0x103f] (PCI address [0x1000-0x103f])pci 0000:00:04.0: BAR 4: PCI_IO not supported, disabledCode:pci 0000:00:04.0: BAR 4: assigned [io 0x1000-0x103f]pci 0000:00:04.0: BAR 4: set to [io 0x1000-0x103f] (PCI address [0x1000-0x103f])pci 0000:00:04.0: BAR 4: PCI_IO not supported, disabledCode:PROMISE PDC20265 0000:00:04.0: device not available (can't reserve [io 0x01f0-0x01f7])PROMISE PDC20265: probe of 0000:00:04.0 failed with error -22

author: legacy
author_rank: Super Contributor
timestamp: May 16, 2017, 07:18:02 pm
content: Is anyone working on it? Ideas? Advice? Tips?

author: janoc
author_rank: Super Contributor
timestamp: May 16, 2017, 07:41:25 pm
content: You may want to ask this on:http://vger.kernel.org/vger-lists.html#linux-kernel

author: legacy
author_rank: Super Contributor
timestamp: May 18, 2017, 09:02:59 am
content: it's a mail-list, it's not comfortable for me.Isn't there a forum-like place where to discuss?

author: janoc
author_rank: Super Contributor
timestamp: May 18, 2017, 02:46:39 pm
content: Not that I am aware of. Kernel development would not be manageable using a forum, considering the traffic volume there.