Author Topic: the PCI_IO doesn't work on PowerPC linux embedded (uboot)  (Read 1662 times)

0 Members and 1 Guest are viewing this topic.

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
the PCI_IO doesn't work on PowerPC linux embedded (uboot)
« on: May 16, 2017, 07:16:41 pm »
So, after kernel 2.6.25, linux moved to FlatBinaryTree. The PCI_IO is broken since then.

Tested on:
2.6.39: broken
3.10.*: broken
4.11.*: broken

Code: [Select]
U-Boot 1.2.0
CPU:   AMCC PowerPC 405GP
DRAM:  128 MB
PCI:   Bus Dev VenId DevId Class Int
        00  02  1033  0035  0c03  1b
        00  02  1033  00e0  0c03  1b
        00  03  102b  0519  0300  1c
        00  04  105a  0d30  0101  1d

Booting image at 00010000 ...
   Image Name:   2.6.39-rc1
   Created:      2017-05-15  12:15:11 UTC
   Image Type:   PowerPC Kernel Image (uncompressed)
   Data Size:    4884476 Bytes =  4.7 MB
   Load Address: 00a00000
   Entry Point:  00a003c8
   Verifying Checksum ... OK
OK
----------------------------------------------------------------------
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:ad
bootwrapper.end hAllo, starting: loaded at 0x00a00000 (sp: 0x00eb56d4)
----------------------------------------------------------------------
Allocating 0x4a2520 bytes for kernel ...
gunzipping (0x00000000 <- 0x00a0f000:0x00ea87fc)...done 0x489100 bytes
cmdline=[console=ttyS0,9600 mem=64M rdinit=/sbin/init root=/dev/mtdblock1 rw init=/sbin/init ]
cmdline:uboot's bootargs overridden
Finalizing device tree... flat tree at 0xeb6300
Using machine description
kernel version 2.6.39-flash-eating-bats-II
compiled by root@OrangeCube
compiled with gcc version 4.2.4 (Gentoo 4.2.4-r1 p1.4)
compiled ticket #147 Mon May 15 14:15:04 CEST 2017

bootconsole [udbg0] enabled
setup_arch: bootmem
arch: exit
Zone PFN ranges:
  DMA      0x00000000 -> 0x00004000
  Normal   empty
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
init=/sbin/init
PID 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 & ioremap
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:512 nr_irqs:512 16
UIC0 (32 IRQ sources) at DCR 0xc0
clocksource: timebase mult[f00625] shift[22] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
NET: Registered protocol family 16

PCI host bridge /plb/pci@ec000000 (primary) ranges:
 MEM 0x0000000080000000..0x000000009fffffff -> 0x0000000080000000
  IO 0x00000000b0000000..0x00000000b000ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCI: Probing PCI hardware
PCI: Hiding 4xx host bridge resources 0000:00:00.0
pci 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, disabled
bio: create slab <bio-0> at 0
vgaarb: device added: PCI:0000:00:03.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timebase
NET: Registered protocol family 2
IP 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 registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: 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-0xf0001fff
msgmni has been set to 117
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0xef600300 (irq = 16) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
serial8250.0: ttyS1 at MMIO 0xef600400 (irq = 17) is a 16550A
ef600300.serial: ttyS0 at MMIO 0xef600300 (irq = 16) is a 16550
ef600400.serial: ttyS1 at MMIO 0xef600400 (irq = 17) is a 16550
matroxfb: Matrox Millennium (PCI) detected
PInS data found at offset 64459
PInS memtype = 0
matroxfb: 640x480x8bpp (virtual: 640x6553)
matroxfb: framebuffer at 0x80000000, mapped to 0xc5080000, size 4194304
Console: switching to colour frame buffer device 80x30
fb0: MATROX frame buffer device
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
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
Found: AMD AM29LV040B
fff80000.flash: Found 1 x8 devices at 0x0 in 8-bit bank
number of JEDEC chips: 1
PPC 4xx OCP EMAC driver, version 3.54
MAL v1 /plb/mcmal, 1 TX channels, 1 RX channels
eth0: EMAC-0 /plb/opb/ethernet@ef600800, MAC de:ad:be:ef:de:ad
eth0: found Generic MII PHY (0x09)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:00:02.1: EHCI Host Controller
ehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:02.1: irq 29, io mem 0x80839000
ehci_hcd 0000:00:02.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd 0000:00:02.0: OHCI Host Controller
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:02.0: irq 29, io mem 0x80838000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
usbcore: registered new interface driver uas
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
mousedev: PS/2 mouse device common for all mice
I2O subsystem v1.325
i2o: max drivers = 8
I2O ProcFS OSM v1.316
usb 2-3: new low speed USB device number 2 using ohci_hcd
i2c /dev entries driver
ibm-iic ef600500.i2c: using standard (100 kHz) mode
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
VFS: Mounted root (ext2 filesystem) on device 31:1.
devtmpfs: mounted
Freeing unused kernel memory: 160k init


Code: [Select]
PCI host bridge /plb/pci@ec000000 (primary) ranges:
 MEM 0x0000000080000000..0x000000009fffffff -> 0x0000000080000000
  IO 0x00000000b0000000..0x00000000b000ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCI: Probing PCI hardware
PCI: Hiding 4xx host bridge resources 0000:00:00.0
pci 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, disabled

Code: [Select]
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, disabled

Code: [Select]
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
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: the PCI_IO doesn't work on PowerPC linux embedded (uboot)
« Reply #1 on: May 16, 2017, 07:18:02 pm »
Is anyone working on it? Ideas? Advice? Tips?  :-//
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3958
  • Country: de
Re: the PCI_IO doesn't work on PowerPC linux embedded (uboot)
« Reply #2 on: May 16, 2017, 07:41:25 pm »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: the PCI_IO doesn't work on PowerPC linux embedded (uboot)
« Reply #3 on: May 18, 2017, 09:02:59 am »
it's a mail-list, it's not comfortable for me.
Isn't there a forum-like place where to discuss?
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3958
  • Country: de
Re: the PCI_IO doesn't work on PowerPC linux embedded (uboot)
« Reply #4 on: May 18, 2017, 02:46:39 pm »
Not that I am aware of. Kernel development would not be manageable using a forum, considering the traffic volume there.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf