[Error] amdgpu for powerpc64 on kernel version 4.19.26
Alex Deucher
alexdeucher at gmail.com
Mon Nov 25 14:44:32 UTC 2019
On Mon, Nov 25, 2019 at 8:55 AM Yusuf Altıparmak
<yusufalti1997 at gmail.com> wrote:
>
> Hello,
>
> I am trying to use AMD E9171 with T1042D4RDB-64B(https://www.nxp.com/products/processors-and-microcontrollers/power-architecture/qoriq-communication-processors/t-series/qoriq-t1042-and-t1022-multicore-communications-processors:T1042).
> Software documentation is here (https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf).
>
>
> I tried to compile 'amdgpu' in linux kernel.
>
> I successfully compiled linux kernel for powerpc e5500 architecture. I enabled amdgpu and its prerequisites in menuconfig. All drivers compiled successfully.
>
> But when I try to install 'amdgpu.ko' module, it's not initializing gpu hardware. Console messages from 'dmesg' and U-boot is below. Hardware is connected to board via PCI and connected to monitor via HDMI-DVI converter. I am using HDMI port on monitor.
>
> Any suggestion/solutions for this situation?
The driver needs access to the PCI BARs for the device to initialize
it. It looks like they are not getting allocated. Maybe your
platform has limited MMIO space? You need to fix that first.
Alex
>
> Regards.
>
>
>
> Dmesg messages from linux about amdgpu:
>
> [5.866162] [drm] amdgpu kernel modesetting enabled.
> [5.870293] [drm] initializing kernel modesetting (POLARIS12 0x1002:0x6987 0x1787:0x2389 0x80).
> [5.877719] amdgpu 0001:01:00.0: Fatal error during GPU init
> [5.882363] amdgpu: probe of 0001:01:00.0 failed with error -12
>
>
> 'dmesg' messages from Linux
>
>
> [ 0.464934] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> [ 0.473580] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
> [ 0.477426] pci 0000:00:00.0: bridge window [io 0x8000080000010000-0x8000080000010fff]
> [ 0.477431] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff]
> [ 0.477438] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
> [ 0.477451] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
> [ 0.477456] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
> [ 0.477584] fsl-pci ffe250000.pcie: PCI host bridge to bus 0001:00
> [ 0.482383] pci_bus 0001:00: root bus resource [io 0x8000080000021000-0x8000080000030fff] (bus address [0x0000-0xffff])
> [ 0.491940] pci_bus 0001:00: root bus resource [mem 0xc10000000-0xc1fffffff] (bus address [0xe0000000-0xefffffff])
> [ 0.500980] pci_bus 0001:00: root bus resource [bus 00-01]
> [ 0.505153] pci_bus 0001:00: busn_res: [bus 00-01] end is updated to ff
> [ 0.505172] pci 0001:00:00.0: [1957:0824] type 01 class 0x0b2000
> [ 0.505191] pci 0001:00:00.0: reg 0x10: [mem 0xff000000-0xffffffff]
> [ 0.505236] pci 0001:00:00.0: supports D1 D2
> [ 0.505239] pci 0001:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
> [ 0.505346] iommu: Removing device ffe250000.pcie from group 20
> [ 0.509901] iommu: Adding device 0001:00:00.0 to group 19
> [ 0.516106] pci 0001:01:00.0: [1002:6987] type 00 class 0x030000
> [ 0.516160] pci 0001:01:00.0: reg 0x10: [mem 0xc10000000-0xc1fffffff 64bit pref]
> [ 0.516175] pci 0001:01:00.0: reg 0x18: [mem 0x1000ffe00000-0x1000ffffffff 64bit pref]
> [ 0.516186] pci 0001:01:00.0: reg 0x20: [io 0x8000080000022100-0x80000800000221ff]
> [ 0.516196] pci 0001:01:00.0: reg 0x24: [mem 0xfffc0000-0xffffffff]
> [ 0.516207] pci 0001:01:00.0: reg 0x30: [mem 0xfffe0000-0xffffffff pref]
> [ 0.516219] pci 0001:01:00.0: enabling Extended Tags
> [ 0.519920] pci 0001:01:00.0: supports D1 D2
> [ 0.519923] pci 0001:01:00.0: PME# supported from D1 D2 D3hot D3cold
> [ 0.519958] pci 0001:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5 GT/s x1 link at 0001:00:00.0 (capable of 63.008 Gb/s with 8 GT/s x8 link)
> [ 0.532404] iommu: Adding device 0001:01:00.0 to group 19
> [ 0.536460] pci 0001:01:00.1: [1002:aae0] type 00 class 0x040300
> [ 0.536500] pci 0001:01:00.1: reg 0x10: [mem 0x1200ffffc000-0x1200ffffffff 64bit]
> [ 0.536553] pci 0001:01:00.1: enabling Extended Tags
> [ 0.540200] pci 0001:01:00.1: supports D1 D2
> [ 0.540291] iommu: Adding device 0001:01:00.1 to group 19
> [ 0.546301] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
> [ 0.550147] pci 0001:00:00.0: bridge window [io 0x8000080000022000-0x8000080000022fff]
> [ 0.550152] pci 0001:00:00.0: bridge window [mem 0xc10000000-0xc1fffffff]
> [ 0.550235] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
> [ 0.550242] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 01
> [ 0.550376] fsl-pci ffe260000.pcie: PCI host bridge to bus 0002:00
> [ 0.555177] pci_bus 0002:00: root bus resource [io 0x8000080000032000-0x8000080000041fff] (bus address [0x0000-0xffff])
> [ 0.564732] pci_bus 0002:00: root bus resource [mem 0xc20000000-0xc2fffffff] (bus address [0xe0000000-0xefffffff])
> [ 0.573773] pci_bus 0002:00: root bus resource [bus 00]
> [ 0.577680] pci_bus 0002:00: busn_res: [bus 00] end is updated to ff
> [ 0.577698] pci 0002:00:00.0: [1957:0824] type 01 class 0x0b2000
> [ 0.577718] pci 0002:00:00.0: reg 0x10: [mem 0xff000000-0xffffffff]
> [ 0.577764] pci 0002:00:00.0: supports D1 D2
> [ 0.577767] pci 0002:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
> [ 0.577880] iommu: Removing device ffe260000.pcie from group 21
> [ 0.582434] iommu: Adding device 0002:00:00.0 to group 20
> [ 0.588545] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> [ 0.597194] pci 0002:00:00.0: PCI bridge to [bus 01-ff]
> [ 0.601040] pci 0002:00:00.0: bridge window [io 0x8000080000032000-0x8000080000032fff]
> [ 0.601045] pci 0002:00:00.0: bridge window [mem 0x00000000-0x000fffff]
> [ 0.601052] pci 0002:00:00.0: bridge window
> Dmesg messages from linux about amdgpu:
> [5.866162] [drm] amdgpu kernel modesetting enabled.
> [5.870293] [drm] initializing kernel modesetting (POLARIS12 0x1002:0x6987 0x1787:0x2389 0x80).
> [5.877719] amdgpu 0001:01:00.0: Fatal error during GPU init
> [5.882363] amdgpu: probe of 0001:01:00.0 failed with error -12 [mem 0x00000000-0x000fffff 64bit pref]
> [ 0.601064] pci_bus 0002:01: busn_res: [bus 01-ff] end is updated to 01
> [ 0.601070] pci_bus 0002:00: busn_res: [bus 00-ff] end is updated to 01
> [ 0.601197] fsl-pci ffe270000.pcie: PCI host bridge to bus 0003:00
> [ 0.605995] pci_bus 0003:00: root bus resource [io 0x8000080000043000-0x8000080000052fff] (bus address [0x0000-0xffff])
> [ 0.615553] pci_bus 0003:00: root bus resource [mem 0xc30000000-0xc3fffffff] (bus address [0xe0000000-0xefffffff])
> [ 0.624593] pci_bus 0003:00: root bus resource [bus 00]
> [ 0.628501] pci_bus 0003:00: busn_res: [bus 00] end is updated to ff
> [ 0.628519] pci 0003:00:00.0: [1957:0824] type 01 class 0x0b2000
> [ 0.628538] pci 0003:00:00.0: reg 0x10: [mem 0xff000000-0xffffffff]
> [ 0.628584] pci 0003:00:00.0: supports D1 D2
> [ 0.628588] pci 0003:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
> [ 0.628703] iommu: Removing device ffe270000.pcie from group 22
> [ 0.633257] iommu: Adding device 0003:00:00.0 to group 21
> [ 0.639362] pci 0003:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> Dmesg messages from linux about amdgpu:
> [5.866162] [drm] amdgpu kernel modesetting enabled.
> [5.870293] [drm] initializing kernel modesetting (POLARIS12 0x1002:0x6987 0x1787:0x2389 0x80).
> [5.877719] amdgpu 0001:01:00.0: Fatal error during GPU init
> [5.882363] amdgpu: probe of 0001:01:00.0 failed with error -12[ 0.648066] pci 0003:00:00.0: PCI bridge to [bus 01-ff]
> [ 0.651912] pci 0003:00:00.0: bridge window [io 0x8000080000043000-0x8000080000043fff]
> [ 0.651917] pci 0003:00:00.0: bridge window [mem 0x00000000-0x000fffff]
> [ 0.651923] pci 0003:00:00.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
> [ 0.651936] pci_bus 0003:01: busn_res: [bus 01-ff] end is updated to 01
> [ 0.651942] pci_bus 0003:00: busn_res: [bus 00-ff] end is updated to 01
> [ 0.651988] PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
> [ 0.658435] PCI: Cannot allocate resource region 0 of device 0001:00:00.0, will remap
> [ 0.664953] PCI: Cannot allocate resource region 2 of device 0001:01:00.0, will remap
> [ 0.671469] PCI: Cannot allocate resource region 5 of device 0001:01:00.0, will remap
> [ 0.677989] PCI: Cannot allocate resource region 6 of device 0001:01:00.0, will remap
> [ 0.684514] PCI: Cannot allocate resource region 0 of device 0001:01:00.1, will remap
> [ 0.691033] PCI: Cannot allocate resource region 0 of device 0002:00:00.0, will remap
> [ 0.697552] PCI: Cannot allocate resource region 0 of device 0003:00:00.0, will remap
> [ 0.704083] PCI 0000:00 Cannot reserve Legacy IO [io 0x8000080000010000-0x10fff]
> [ 0.704086] PCI 0001:00 Cannot reserve Legacy IO [io 0x8000080000021000-0x21fff]
> [ 0.704089] PCI 0002:00 Cannot reserve Legacy IO [io 0x8000080000032000-0x32fff]
> [ 0.704092] PCI 0003:00 Cannot reserve Legacy IO [io 0x8000080000043000-0x43fff]
> [ 0.704107] pci 0000:00:00.0: BAR 0: no space for [mem size 0x01000000]
> [ 0.709375] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
> [ 0.715026] pci 0000:00:00.0: PCI bridge to [bus 01]
> [ 0.718673] pci 0000:00:00.0: bridge window [io 0x8000080000010000-0x800008000001ffff]
> [ 0.725545] pci 0000:00:00.0: bridge window [mem 0xc00000000-0xc0fffffff]
> [ 0.731196] pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
> [ 0.738932] pci_bus 0000:00: resource 4 [io 0x8000080000010000-0x800008000001ffff]
> [ 0.738935] pci_bus 0000:00: resource 5 [mem 0xc00000000-0xc0fffffff]
> [ 0.738939] pci_bus 0000:01: resource 0 [io 0x8000080000010000-0x800008000001ffff]
> [ 0.738942] pci_bus 0000:01: resource 1 [mem 0xc00000000-0xc0fffffff]
> [ 0.738953] pci 0001:00:00.0: BAR 0: no space for [mem size 0x01000000]
> [ 0.744235] pci 0001:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
> [ 0.749887] pci 0001:00:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
> [ 0.756144] pci 0001:00:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
> [ 0.762754] pci 0001:01:00.0: BAR 2: no space for [mem size 0x00200000 64bit pref]
> [ 0.769010] pci 0001:01:00.0: BAR 2: failed to assign [mem size 0x00200000 64bit pref]
> [ 0.775617] pci 0001:01:00.0: BAR 5: no space for [mem size 0x00040000]
> [ 0.780920] pci 0001:01:00.0: BAR 5: failed to assign [mem size 0x00040000]
> [ 0.786571] pci 0001:01:00.0: BAR 6: no space for [mem size 0x00020000 pref]
> [ 0.792308] pci 0001:01:00.0: BAR 6: failed to assign [mem size 0x00020000 pref]
> [ 0.798394] pci 0001:01:00.1: BAR 0: no space for [mem size 0x00004000 64bit]
> [ 0.804218] pci 0001:01:00.1: BAR 0: failed to assign [mem size 0x00004000 64bit]
> [ 0.810391] pci 0001:00:00.0: PCI bridge to [bus 01]
> [ 0.814038] pci 0001:00:00.0: bridge window [io 0x8000080000021000-0x8000080000030fff]
> [ 0.820910] pci 0001:00:00.0: bridge window [mem 0xc10000000-0xc1fffffff]
> [ 0.826561] pci_bus 0001:00: Some PCI device resources are unassigned, try booting with pci=realloc
> [ 0.834298] pci_bus 0001:00: resource 4 [io 0x8000080000021000-0x8000080000030fff]
> [ 0.834301] pci_bus 0001:00: resource 5 [mem 0xc10000000-0xc1fffffff]
> [ 0.834305] pci_bus 0001:01: resource 0 [io 0x8000080000021000-0x8000080000030fff]
> [ 0.834308] pci_bus 0001:01: resource 1 [mem 0xc10000000-0xc1fffffff]
> [ 0.834318] pci 0002:00:00.0: BAR 0: no space for [mem size 0x01000000]
> [ 0.839600] pci 0002:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
> [ 0.845251] pci 0002:00:00.0: PCI bridge to [bus 01]
> [ 0.848898] pci 0002:00:00.0: bridge window [io 0x8000080000032000-0x8000080000041fff]
> [ 0.855780] pci 0002:00:00.0: bridge window [mem 0xc20000000-0xc2fffffff]
> [ 0.861422] pci_bus 0002:00: Some PCI device resources are unassigned, try booting with pci=realloc
> [ 0.869158] pci_bus 0002:00: resource 4 [io 0x8000080000032000-0x8000080000041fff]
> [ 0.869161] pci_bus 0002:00: resource 5 [mem 0xc20000000-0xc2fffffff]
> [ 0.869165] pci_bus 0002:01: resource 0 [io 0x8000080000032000-0x8000080000041fff]
> [ 0.869168] pci_bus 0002:01: resource 1 [mem 0xc20000000-0xc2fffffff]
> [ 0.869178] pci 0003:00:00.0: BAR 0: no space for [mem size 0x01000000]
> [ 0.874468] pci 0003:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
> [ 0.880112] pci 0003:00:00.0: PCI bridge to [bus 01]
> [ 0.883759] pci 0003:00:00.0: bridge window [io 0x8000080000043000-0x8000080000052fff]
> [ 0.890632] pci 0003:00:00.0: bridge window [mem 0xc30000000-0xc3fffffff]
> [ 0.896284] pci_bus 0003:00: Some PCI device resources are unassigned, try booting with pci=realloc
> [ 0.904018] pci_bus 0003:00: resource 4 [io 0x8000080000043000-0x8000080000052fff]
> [ 0.904022] pci_bus 0003:00: resource 5 [mem 0xc30000000-0xc3fffffff]
> [ 0.904025] pci_bus 0003:01: resource 0 [io 0x8000080000043000-0x8000080000052fff]
> [ 0.904028] pci_bus 0003:01: resource 1 [mem 0xc30000000-0xc3fffffff]
> [ 0.904030] PCI: Probing PCI hardware done
>
>
>
> PCI console messages from U-BOOT
>
>
> PCI: Probing PCI hardware
> fsl-pci ffe240000.pcie: PCI host bridge to bus 0000:00
> pci_bus 0000:00: root bus resource [io 0x8000080000010000-0x800008000001ffff] (bus address [0x0000-0xffff])
> pci_bus 0000:00: root bus resource [mem 0xc00000000-0xc0fffffff] (bus address [0xe0000000-0xefffffff])
> pci_bus 0000:00: root bus resource [bus 00]
> iommu: Removing device ffe240000.pcie from group 19
> iommu: Adding device 0000:00:00.0 to group 24
> pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> pci 0000:00:00.0: PCI bridge to [bus 01-ff]
> fsl-pci ffe250000.pcie: PCI host bridge to bus 0001:00
> pci_bus 0001:00: root bus resource [io 0x8000080000021000-0x8000080000030fff] (bus address [0x0000-0xffff])
> pci_bus 0001:00: root bus resource [mem 0xc10000000-0xc1fffffff] (bus address [0xe0000000-0xefffffff])
> pci_bus 0001:00: root bus resource [bus 00-01]
> iommu: Removing device ffe250000.pcie from group 20
> iommu: Adding device 0001:00:00.0 to group 19
> pci 0001:01:00.0: enabling Extended Tags
> pci 0001:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5 GT/s x1 link at 0001:00:00.0 (capable of 63.008 Gb/s with 8 GT/s x8 link)
> iommu: Adding device 0001:01:00.0 to group 19
> pci 0001:01:00.1: enabling Extended Tags
> iommu: Adding device 0001:01:00.1 to group 19
> pci 0001:00:00.0: PCI bridge to [bus 01-ff]
> fsl-pci ffe260000.pcie: PCI host bridge to bus 0002:00
> pci_bus 0002:00: root bus resource [io 0x8000080000032000-0x8000080000041fff] (bus address [0x0000-0xffff])
> pci_bus 0002:00: root bus resource [mem 0xc20000000-0xc2fffffff] (bus address [0xe0000000-0xefffffff])
> pci_bus 0002:00: root bus resource [bus 00]
> iommu: Removing device ffe260000.pcie from group 21
> iommu: Adding device 0002:00:00.0 to group 20
> pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> pci 0002:00:00.0: PCI bridge to [bus 01-ff]
> fsl-pci ffe270000.pcie: PCI host bridge to bus 0003:00
> pci_bus 0003:00: root bus resource [io 0x8000080000043000-0x8000080000052fff] (bus address [0x0000-0xffff])
> pci_bus 0003:00: root bus resource [mem 0xc30000000-0xc3fffffff] (bus address [0xe0000000-0xefffffff])
> pci_bus 0003:00: root bus resource [bus 00]
> iommu: Removing device ffe270000.pcie from group 22
> iommu: Adding device 0003:00:00.0 to group 21
> pci 0003:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> pci 0003:00:00.0: PCI bridge to [bus 01-ff]
> PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
> PCI: Cannot allocate resource region 0 of device 0001:00:00.0, will remap
> PCI: Cannot allocate resource region 2 of device 0001:01:00.0, will remap
> PCI: Cannot allocate resource region 5 of device 0001:01:00.0, will remap
> PCI: Cannot allocate resource region 6 of device 0001:01:00.0, will remap
> PCI: Cannot allocate resource region 0 of device 0001:01:00.1, will remap
> PCI: Cannot allocate resource region 0 of device 0002:00:00.0, will remap
> PCI: Cannot allocate resource region 0 of device 0003:00:00.0, will remap
> pci 0000:00:00.0: BAR 0: no space for [mem size 0x01000000]
> pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
> pci 0000:00:00.0: PCI bridge to [bus 01]
> pci 0000:00:00.0: bridge window [io 0x8000080000010000-0x800008000001ffff]
> pci 0000:00:00.0: bridge window [mem 0xc00000000-0xc0fffffff]
> pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
> pci 0001:00:00.0: BAR 0: no space for [mem size 0x01000000]
> pci 0001:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
> pci 0001:00:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
> pci 0001:00:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
> pci 0001:01:00.0: BAR 2: no space for [mem size 0x00200000 64bit pref]
> pci 0001:01:00.0: BAR 2: failed to assign [mem size 0x00200000 64bit pref]
> pci 0001:01:00.0: BAR 5: no space for [mem size 0x00040000]
> pci 0001:01:00.0: BAR 5: failed to assign [mem size 0x00040000]
> pci 0001:01:00.0: BAR 6: no space for [mem size 0x00020000 pref]
> pci 0001:01:00.0: BAR 6: failed to assign [mem size 0x00020000 pref]
> pci 0001:01:00.1: BAR 0: no space for [mem size 0x00004000 64bit]
> pci 0001:01:00.1: BAR 0: failed to assign [mem size 0x00004000 64bit]
> pci 0001:00:00.0: PCI bridge to [bus 01]
> pci 0001:00:00.0: bridge window [io 0x8000080000021000-0x8000080000030fff]
> pci 0001:00:00.0: bridge window [mem 0xc10000000-0xc1fffffff]
> pci_bus 0001:00: Some PCI device resources are unassigned, try booting with pci=realloc
> pci 0002:00:00.0: BAR 0: no space for [mem size 0x01000000]
> pci 0002:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
> pci 0002:00:00.0: PCI bridge to [bus 01]
> pci 0002:00:00.0: bridge window [io 0x8000080000032000-0x8000080000041fff]
> pci 0002:00:00.0: bridge window [mem 0xc20000000-0xc2fffffff]
> pci_bus 0002:00: Some PCI device resources are unassigned, try booting with pci=realloc
> pci 0003:00:00.0: BAR 0: no space for [mem size 0x01000000]
> pci 0003:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
> pci 0003:00:00.0: PCI bridge to [bus 01]
> pci 0003:00:00.0: bridge window [io 0x8000080000043000-0x8000080000052fff]
> pci 0003:00:00.0: bridge window [mem 0xc30000000-0xc3fffffff]
> pci_bus 0003:00: Some PCI device resources are unassigned, try booting with pci=realloc
>
>
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list