[Powerpc] Sam460ex Canyonlands issue -Kernel 4.4.6-rc1
diff mbox

Message ID 56FCC8C1.7030706@daenzer.net
State New
Headers show

Commit Message

Michel Dänzer March 31, 2016, 6:50 a.m. UTC
On 30.03.2016 19:36, Julian Margetson wrote:
> On 3/29/2016 11:49 PM, Michel Dänzer wrote:
>> On 29.03.2016 18:55, Julian Margetson wrote:
>>> On 3/28/2016 11:15 PM, Michel Dänzer wrote:
>>>> On 29.03.2016 08:47, Julian Margetson wrote:
>>>>> Seeing the following when booting kernel 4.6-rc1 on Acube Sam460ex
>>>>> Canyonlands board.
>>>>> This loops for a few times then the kernel boots.
>>>>> No problem with the 4.6-rc1 with an A-eon Tabor Freescale e500v2
>>>>> board.
>>>>>
>>>>> Regards
>>>>>
>>>>> Julian
>>>>>
>>>>>
>>>>>    [    2.197839] ------------[ cut here ]------------
>>>>>    [    2.197850] WARNING: CPU: 0 PID: 1 at
>>>>> drivers/gpu/drm/drm_irq.c:1368 drm_vblank_off+0x2c/0x1e0
>>>> That's
>>>>
>>>>      if (WARN_ON(pipe >= dev->num_crtcs))
>>>>
>>>> My best guess is that drm_vblank_off is called before drm_vblank_init,
>>>> so dev->num_crtcs is still 0.
>>>>
>>>>
>>>> Please provide the full dmesg output corresponding to the problem.
>>>>
>>>>
>>> Attached
>> [...]
>>
>>> [drm] radeon: irq initialized.
>>> [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed
>>> (scratch(0x850C)=0xCAFEDEAD)
>>> radeon 0001:81:00.0: disabling GPU acceleration
>> Okay, so the problem is that acceleration fails to initialize, in which
>> case the driver calls drm_vblank_cleanup.
>>
>> I can see two basic options for a solution: Either don't call
>> radeon_irq_kms_fini/drm_vblank_cleanup if acceleration fails to
>> initialize, or check if acceleration is enabled before calling
>> drm_vblank_on/off. Any preferences?
>>
>>
> Thanks
> 
> No preferences .

Does the attached patch fix the problem?


> I would be interested in a fix for the acceleration problem if possible .

Beware that while the kernel side of this might be relatively easy to
fix, making the userspace radeonsi driver work on big endian hosts would
likely require substantial effort.

Comments

Julian Margetson March 31, 2016, 10 a.m. UTC | #1
On 3/31/2016 2:50 AM, Michel Dänzer wrote:
> On 30.03.2016 19:36, Julian Margetson wrote:
>> On 3/29/2016 11:49 PM, Michel Dänzer wrote:
>>> On 29.03.2016 18:55, Julian Margetson wrote:
>>>> On 3/28/2016 11:15 PM, Michel Dänzer wrote:
>>>>> On 29.03.2016 08:47, Julian Margetson wrote:
>>>>>> Seeing the following when booting kernel 4.6-rc1 on Acube Sam460ex
>>>>>> Canyonlands board.
>>>>>> This loops for a few times then the kernel boots.
>>>>>> No problem with the 4.6-rc1 with an A-eon Tabor Freescale e500v2
>>>>>> board.
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> Julian
>>>>>>
>>>>>>
>>>>>>     [    2.197839] ------------[ cut here ]------------
>>>>>>     [    2.197850] WARNING: CPU: 0 PID: 1 at
>>>>>> drivers/gpu/drm/drm_irq.c:1368 drm_vblank_off+0x2c/0x1e0
>>>>> That's
>>>>>
>>>>>       if (WARN_ON(pipe >= dev->num_crtcs))
>>>>>
>>>>> My best guess is that drm_vblank_off is called before drm_vblank_init,
>>>>> so dev->num_crtcs is still 0.
>>>>>
>>>>>
>>>>> Please provide the full dmesg output corresponding to the problem.
>>>>>
>>>>>
>>>> Attached
>>> [...]
>>>
>>>> [drm] radeon: irq initialized.
>>>> [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed
>>>> (scratch(0x850C)=0xCAFEDEAD)
>>>> radeon 0001:81:00.0: disabling GPU acceleration
>>> Okay, so the problem is that acceleration fails to initialize, in which
>>> case the driver calls drm_vblank_cleanup.
>>>
>>> I can see two basic options for a solution: Either don't call
>>> radeon_irq_kms_fini/drm_vblank_cleanup if acceleration fails to
>>> initialize, or check if acceleration is enabled before calling
>>> drm_vblank_on/off. Any preferences?
>>>
>>>
>> Thanks
>>
>> No preferences .
> Does the attached patch fix the problem?
>
>
>> I would be interested in a fix for the acceleration problem if possible .
> Beware that while the kernel side of this might be relatively easy to
> fix, making the userspace radeonsi driver work on big endian hosts would
> likely require substantial effort.
>
>

Thanks

The patch solved the problem .
Tested-by: Julian Margetson <runaway@candw.ms>

I  would indeed like to see the kernel side fix for the the acceleration 
problem. (Been hoping for it for almost 3 years now)
http://marc.info/?l=dri-devel&m=137881893518240&w=2
I also have Northern Islands cards  and  acceleration with these does 
work with my other powerpc board, an e500v2 .
It also requires the patch in the linked post by Hans Verkuil for Radeon 
NI and SI cards to work .

Regards
Julian
U-Boot 2015.a (May 16 2015 - 14:20:11)

CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
       No Security/Kasumi support
       Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
       Internal PCI arbiter enabled
       32 kB I-Cache 32 kB D-Cache
Board: Sam460ex/cr, PCIe 4x + PCIe 1x
I2C:   ready
DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
PCI:   Bus Dev VenId DevId Class Int
        00  04  1095  3512  0104  00
        00  06  126f  0501  0380  00
PCIE0: successfully set as root-complex
        03  00  1412  1724  0401  ff
        02  00  1b21  1080  0604  00
PCIE1: successfully set as root-complex
        05  00  1002  683f  0300  ff
Net:   ppc_4xx_eth0
FPGA:  Revision 03 (2010-10-07)
SM502: found
PERMD2:not found
VGA:   1
VESA:  OK
[    0.000000] Using Canyonlands machine description
[    0.000000] Linux version 4.6.0-rc1-sam460ex-jm (root@julian-VirtualBox) (gcc version 5.3.1 20160205 (Ubuntu 5.3.1-8ubuntu2) ) #24 PREEMPT Thu Mar 31 05:31:56 AST 2016
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty0
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] allocated 2097152 bytes of page_ext
[    0.000000] Memory: 1997104K/2097152K available (8428K kernel code, 344K rwdata, 4220K rodata, 256K init, 1410K bss, 100048K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000012] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000144] Console: colour dummy device 80x25
[    0.000706] console [tty0] enabled
[    0.000743] pid_max: default: 32768 minimum: 301
[    0.000849] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000875] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003484] devtmpfs: initialized
[    0.006185] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.006647] xor: measuring software checksum speed
[    0.016649]    8regs     :   900.000 MB/sec
[    0.026462]    8regs_prefetch:   800.000 MB/sec
[    0.036504]    32regs    :  1232.000 MB/sec
[    0.046576]    32regs_prefetch:  1084.000 MB/sec
[    0.046610] xor: using function: 32regs (1232.000 MB/sec)
[    0.046662] prandom: seed boundary self test passed
[    0.048718] prandom: 100 self tests passed
[    0.049552] NET: Registered protocol family 16
[    0.054857] cpuidle: using governor ladder
[    0.056937] cpuidle: using governor menu
[    0.057378] 256k L2-cache enabled
[    0.057511] PCIE0: Checking link...
[    0.057529] PCIE0: Device detected, waiting for link...
[    0.057547] PCIE0: link is up !
[    0.159765] PCI host bridge /plb/pciex@d00000000 (primary) ranges:
[    0.159815]  MEM 0x0000000e00000000..0x0000000e7fffffff -> 0x0000000080000000 
[    0.159851]  MEM 0x0000000f00000000..0x0000000f000fffff -> 0x0000000000000000 
[    0.159883]   IO 0x0000000f80000000..0x0000000f8000ffff -> 0x0000000000000000
[    0.159919] 4xx PCI DMA offset set to 0x00000000
[    0.159937] 4xx PCI DMA window base to 0x0000000000000000
[    0.159956] DMA window size 0x0000000080000000
[    0.159991] PCIE0: successfully set as root-complex
[    0.160039] PCIE1: Checking link...
[    0.160056] PCIE1: Device detected, waiting for link...
[    0.160074] PCIE1: link is up !
[    0.262123] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.262165]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.262201]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.262232]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.262263] 4xx PCI DMA offset set to 0x00000000
[    0.262280] 4xx PCI DMA window base to 0x0000000000000000
[    0.262299] DMA window size 0x0000000080000000
[    0.262329] PCIE1: successfully set as root-complex
[    0.262423] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.262452]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.262487]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.262518]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.262547] 4xx PCI DMA offset set to 0x00000000
[    0.262565] 4xx PCI DMA window base to 0x0000000000000000
[    0.262583] DMA window size 0x0000000080000000
[    0.272368] PCI: Probing PCI hardware
[    0.272701] PCI host bridge to bus 0000:40
[    0.272743] pci_bus 0000:40: root bus resource [io  0xfffc0000-0xfffcffff] (bus address [0x0000-0xffff])
[    0.272810] pci_bus 0000:40: root bus resource [mem 0xe00000000-0xe7fffffff] (bus address [0x80000000-0xffffffff])
[    0.272848] pci_bus 0000:40: root bus resource [mem 0xf00000000-0xf000fffff] (bus address [0x00000000-0x000fffff])
[    0.272886] pci_bus 0000:40: root bus resource [bus 40-ff]
[    0.273016] PCI: Hiding 4xx host bridge resources 0000:40:00.0
[    0.274872] pci 0000:40:00.0: PCI bridge to [bus 41-7f]
[    0.274988] pci 0000:41:00.0: bridge configuration invalid ([bus 02-02]), reconfiguring
[    0.275654] pci 0000:41:00.0: PCI bridge to [bus 42-ff]
[    0.275969] PCI host bridge to bus 0001:80
[    0.276008] pci_bus 0001:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.276044] pci_bus 0001:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.276081] pci_bus 0001:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.276117] pci_bus 0001:80: root bus resource [bus 80-ff]
[    0.276222] PCI: Hiding 4xx host bridge resources 0001:80:00.0
[    0.278912] pci 0001:80:00.0: PCI bridge to [bus 81-bf]
[    0.279256] PCI host bridge to bus 0002:00
[    0.279294] pci_bus 0002:00: root bus resource [io  0x0000-0xffff]
[    0.279320] pci_bus 0002:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.279356] pci_bus 0002:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.279393] pci_bus 0002:00: root bus resource [bus 00-ff]
[    0.280294] pci 0000:40:00.0: BAR 7: assigned [io  0xfffc1000-0xfffc1fff]
[    0.280335] pci 0000:41:00.0: BAR 7: assigned [io  0xfffc1000-0xfffc1fff]
[    0.280362] pci 0000:42:00.0: BAR 1: assigned [io  0xfffc1000-0xfffc107f]
[    0.280392] pci 0000:42:00.0: BAR 0: assigned [io  0xfffc1080-0xfffc109f]
[    0.280420] pci 0000:41:00.0: PCI bridge to [bus 42]
[    0.280444] pci 0000:41:00.0:   bridge window [io  0xfffc1000-0xfffc1fff]
[    0.280476] pci 0000:40:00.0: PCI bridge to [bus 41-7f]
[    0.280499] pci 0000:40:00.0:   bridge window [io  0xfffc1000-0xfffc1fff]
[    0.280594] pci 0001:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.280627] pci 0001:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.280653] pci 0001:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.280682] pci 0001:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.280723] pci 0001:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.280761] pci 0001:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.280795] pci 0001:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.280833] pci 0001:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.280860] pci 0001:80:00.0: PCI bridge to [bus 81-bf]
[    0.280882] pci 0001:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.280953] pci 0001:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.280982] pci 0001:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.281082] pci 0002:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.281111] pci 0002:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.281139] pci 0002:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.281170] pci 0002:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.281197] pci 0002:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.281222] pci 0002:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.281247] pci 0002:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.281273] pci 0002:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.281298] pci 0002:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.348845] raid6: int32x1  gen()   300 MB/s
[    0.365929] raid6: int32x1  xor()   171 MB/s
[    0.383040] raid6: int32x2  gen()   390 MB/s
[    0.400128] raid6: int32x2  xor()   236 MB/s
[    0.417332] raid6: int32x4  gen()   433 MB/s
[    0.434323] raid6: int32x4  xor()   246 MB/s
[    0.451478] raid6: int32x8  gen()   277 MB/s
[    0.468457] raid6: int32x8  xor()   205 MB/s
[    0.468481] raid6: using algorithm int32x4 gen() 433 MB/s
[    0.468500] raid6: .... xor() 246 MB/s, rmw enabled
[    0.468519] raid6: using intx1 recovery algorithm
[    0.469057] vgaarb: device added: PCI:0001:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.469103] vgaarb: loaded
[    0.469118] vgaarb: bridge control possible 0001:81:00.0
[    0.469609] SCSI subsystem initialized
[    0.470781] usbcore: registered new interface driver usbfs
[    0.470916] usbcore: registered new interface driver hub
[    0.471034] usbcore: registered new device driver usb
[    0.471466] pps_core: LinuxPPS API ver. 1 registered
[    0.471537] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.471649] PTP clock support registered
[    0.472908] EDAC MC: Ver: 3.0.0
[    0.473764] Advanced Linux Sound Architecture Driver Initialized.
[    0.474733] NET: Registered protocol family 23
[    0.474830] Bluetooth: Core ver 2.21
[    0.474942] NET: Registered protocol family 31
[    0.474969] Bluetooth: HCI device and connection manager initialized
[    0.474998] Bluetooth: HCI socket layer initialized
[    0.475021] Bluetooth: L2CAP socket layer initialized
[    0.475062] Bluetooth: SCO socket layer initialized
[    0.475502] clocksource: Switched to clocksource timebase
[    0.491141] NET: Registered protocol family 2
[    0.491959] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.492094] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.492418] TCP: Hash tables configured (established 8192 bind 8192)
[    0.493845] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.493939] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.494265] NET: Registered protocol family 1
[    0.494800] RPC: Registered named UNIX socket transport module.
[    0.494835] RPC: Registered udp transport module.
[    0.494853] RPC: Registered tcp transport module.
[    0.494871] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.495871] Could not remap bcsr
[    0.501719] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.504030] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.505037] workingset: timestamp_bits=28 max_order=19 bucket_order=0
[    0.521721] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.524648] ntfs: driver 2.1.32 [Flags: R/W].
[    0.525219] fuse init (API version 7.24)
[    0.531658] async_tx: api initialized (async)
[    0.531780] bounce: pool size: 64 pages
[    0.531880] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.531922] io scheduler noop registered
[    0.531947] io scheduler deadline registered
[    0.532130] io scheduler cfq registered (default)
[    0.534392] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.534424] crc32: self tests passed, processed 225944 bytes in 989311 nsec
[    0.535622] crc32c: CRC_LE_BITS = 64
[    0.535650] crc32c: self tests passed, processed 225944 bytes in 494937 nsec
[    0.605224] crc32_combine: 8373 self tests passed
[    0.674966] crc32c_combine: 8373 self tests passed
[    0.675038] glob: 64 self-tests passed, 0 failed
[    0.675761] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.775107] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.777923] console [ttyS0] disabled
[    0.798265] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.952966] console [ttyS0] enabled
[    1.977462] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 24, base_baud = 691200) is a U6_16550A
[    1.987783] console [ttyS0] disabled
[    0.000000] Using Canyonlands machine description
[    0.000000] Linux version 4.6.0-rc1-sam460ex-jm (root@julian-VirtualBox) (gcc version 5.3.1 20160205 (Ubuntu 5.3.1-8ubuntu2) ) #24 PREEMPT Thu Mar 31 05:31:56 AST 2016
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty0
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] allocated 2097152 bytes of page_ext
[    0.000000] Memory: 1997104K/2097152K available (8428K kernel code, 344K rwdata, 4220K rodata, 256K init, 1410K bss, 100048K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000012] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000144] Console: colour dummy device 80x25
[    0.000706] console [tty0] enabled
[    0.000743] pid_max: default: 32768 minimum: 301
[    0.000849] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000875] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003484] devtmpfs: initialized
[    0.006185] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.006647] xor: measuring software checksum speed
[    0.016649]    8regs     :   900.000 MB/sec
[    0.026462]    8regs_prefetch:   800.000 MB/sec
[    0.036504]    32regs    :  1232.000 MB/sec
[    0.046576]    32regs_prefetch:  1084.000 MB/sec
[    0.046610] xor: using function: 32regs (1232.000 MB/sec)
[    0.046662] prandom: seed boundary self test passed
[    0.048718] prandom: 100 self tests passed
[    0.049552] NET: Registered protocol family 16
[    0.054857] cpuidle: using governor ladder
[    0.056937] cpuidle: using governor menu
[    0.057378] 256k L2-cache enabled
[    0.057511] PCIE0: Checking link...
[    0.057529] PCIE0: Device detected, waiting for link...
[    0.057547] PCIE0: link is up !
[    0.159765] PCI host bridge /plb/pciex@d00000000 (primary) ranges:
[    0.159815]  MEM 0x0000000e00000000..0x0000000e7fffffff -> 0x0000000080000000 
[    0.159851]  MEM 0x0000000f00000000..0x0000000f000fffff -> 0x0000000000000000 
[    0.159883]   IO 0x0000000f80000000..0x0000000f8000ffff -> 0x0000000000000000
[    0.159919] 4xx PCI DMA offset set to 0x00000000
[    0.159937] 4xx PCI DMA window base to 0x0000000000000000
[    0.159956] DMA window size 0x0000000080000000
[    0.159991] PCIE0: successfully set as root-complex
[    0.160039] PCIE1: Checking link...
[    0.160056] PCIE1: Device detected, waiting for link...
[    0.160074] PCIE1: link is up !
[    0.262123] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.262165]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.262201]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.262232]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.262263] 4xx PCI DMA offset set to 0x00000000
[    0.262280] 4xx PCI DMA window base to 0x0000000000000000
[    0.262299] DMA window size 0x0000000080000000
[    0.262329] PCIE1: successfully set as root-complex
[    0.262423] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.262452]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.262487]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.262518]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.262547] 4xx PCI DMA offset set to 0x00000000
[    0.262565] 4xx PCI DMA window base to 0x0000000000000000
[    0.262583] DMA window size 0x0000000080000000
[    0.272368] PCI: Probing PCI hardware
[    0.272701] PCI host bridge to bus 0000:40
[    0.272743] pci_bus 0000:40: root bus resource [io  0xfffc0000-0xfffcffff] (bus address [0x0000-0xffff])
[    0.272810] pci_bus 0000:40: root bus resource [mem 0xe00000000-0xe7fffffff] (bus address [0x80000000-0xffffffff])
[    0.272848] pci_bus 0000:40: root bus resource [mem 0xf00000000-0xf000fffff] (bus address [0x00000000-0x000fffff])
[    0.272886] pci_bus 0000:40: root bus resource [bus 40-ff]
[    0.273016] PCI: Hiding 4xx host bridge resources 0000:40:00.0
[    0.274872] pci 0000:40:00.0: PCI bridge to [bus 41-7f]
[    0.274988] pci 0000:41:00.0: bridge configuration invalid ([bus 02-02]), reconfiguring
[    0.275654] pci 0000:41:00.0: PCI bridge to [bus 42-ff]
[    0.275969] PCI host bridge to bus 0001:80
[    0.276008] pci_bus 0001:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.276044] pci_bus 0001:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.276081] pci_bus 0001:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.276117] pci_bus 0001:80: root bus resource [bus 80-ff]
[    0.276222] PCI: Hiding 4xx host bridge resources 0001:80:00.0
[    0.278912] pci 0001:80:00.0: PCI bridge to [bus 81-bf]
[    0.279256] PCI host bridge to bus 0002:00
[    0.279294] pci_bus 0002:00: root bus resource [io  0x0000-0xffff]
[    0.279320] pci_bus 0002:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.279356] pci_bus 0002:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.279393] pci_bus 0002:00: root bus resource [bus 00-ff]
[    0.280294] pci 0000:40:00.0: BAR 7: assigned [io  0xfffc1000-0xfffc1fff]
[    0.280335] pci 0000:41:00.0: BAR 7: assigned [io  0xfffc1000-0xfffc1fff]
[    0.280362] pci 0000:42:00.0: BAR 1: assigned [io  0xfffc1000-0xfffc107f]
[    0.280392] pci 0000:42:00.0: BAR 0: assigned [io  0xfffc1080-0xfffc109f]
[    0.280420] pci 0000:41:00.0: PCI bridge to [bus 42]
[    0.280444] pci 0000:41:00.0:   bridge window [io  0xfffc1000-0xfffc1fff]
[    0.280476] pci 0000:40:00.0: PCI bridge to [bus 41-7f]
[    0.280499] pci 0000:40:00.0:   bridge window [io  0xfffc1000-0xfffc1fff]
[    0.280594] pci 0001:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.280627] pci 0001:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.280653] pci 0001:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.280682] pci 0001:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.280723] pci 0001:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.280761] pci 0001:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.280795] pci 0001:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.280833] pci 0001:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.280860] pci 0001:80:00.0: PCI bridge to [bus 81-bf]
[    0.280882] pci 0001:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.280953] pci 0001:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.280982] pci 0001:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.281082] pci 0002:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.281111] pci 0002:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.281139] pci 0002:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.281170] pci 0002:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.281197] pci 0002:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.281222] pci 0002:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.281247] pci 0002:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.281273] pci 0002:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.281298] pci 0002:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.348845] raid6: int32x1  gen()   300 MB/s
[    0.365929] raid6: int32x1  xor()   171 MB/s
[    0.383040] raid6: int32x2  gen()   390 MB/s
[    0.400128] raid6: int32x2  xor()   236 MB/s
[    0.417332] raid6: int32x4  gen()   433 MB/s
[    0.434323] raid6: int32x4  xor()   246 MB/s
[    0.451478] raid6: int32x8  gen()   277 MB/s
[    0.468457] raid6: int32x8  xor()   205 MB/s
[    0.468481] raid6: using algorithm int32x4 gen() 433 MB/s
[    0.468500] raid6: .... xor() 246 MB/s, rmw enabled
[    0.468519] raid6: using intx1 recovery algorithm
[    0.469057] vgaarb: device added: PCI:0001:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.469103] vgaarb: loaded
[    0.469118] vgaarb: bridge control possible 0001:81:00.0
[    0.469609] SCSI subsystem initialized
[    0.470781] usbcore: registered new interface driver usbfs
[    0.470916] usbcore: registered new interface driver hub
[    0.471034] usbcore: registered new device driver usb
[    0.471466] pps_core: LinuxPPS API ver. 1 registered
[    0.471537] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.471649] PTP clock support registered
[    0.472908] EDAC MC: Ver: 3.0.0
[    0.473764] Advanced Linux Sound Architecture Driver Initialized.
[    0.474733] NET: Registered protocol family 23
[    0.474830] Bluetooth: Core ver 2.21
[    0.474942] NET: Registered protocol family 31
[    0.474969] Bluetooth: HCI device and connection manager initialized
[    0.474998] Bluetooth: HCI socket layer initialized
[    0.475021] Bluetooth: L2CAP socket layer initialized
[    0.475062] Bluetooth: SCO socket layer initialized
[    0.475502] clocksource: Switched to clocksource timebase
[    0.491141] NET: Registered protocol family 2
[    0.491959] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.492094] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.492418] TCP: Hash tables configured (established 8192 bind 8192)
[    0.493845] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.493939] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.494265] NET: Registered protocol family 1
[    0.494800] RPC: Registered named UNIX socket transport module.
[    0.494835] RPC: Registered udp transport module.
[    0.494853] RPC: Registered tcp transport module.
[    0.494871] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.495871] Could not remap bcsr
[    0.501719] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.504030] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.505037] workingset: timestamp_bits=28 max_order=19 bucket_order=0
[    0.521721] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.524648] ntfs: driver 2.1.32 [Flags: R/W].
[    0.525219] fuse init (API version 7.24)
[    0.531658] async_tx: api initialized (async)
[    0.531780] bounce: pool size: 64 pages
[    0.531880] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.531922] io scheduler noop registered
[    0.531947] io scheduler deadline registered
[    0.532130] io scheduler cfq registered (default)
[    0.534392] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.534424] crc32: self tests passed, processed 225944 bytes in 989311 nsec
[    0.535622] crc32c: CRC_LE_BITS = 64
[    0.535650] crc32c: self tests passed, processed 225944 bytes in 494937 nsec
[    0.605224] crc32_combine: 8373 self tests passed
[    0.674966] crc32c_combine: 8373 self tests passed
[    0.675038] glob: 64 self-tests passed, 0 failed
[    0.675761] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.775107] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.777923] console [ttyS0] disabled
[    0.798265] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.952966] console [ttyS0] enabled
[    1.977462] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 24, base_baud = 691200) is a U6_16550A
[    1.987783] console [ttyS0] disabled
[    1.991705] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 23, base_baud = 691200) is a 16550
[    3.171228] console [ttyS0] enabled
[    3.175659] 4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 24, base_baud = 691200) is a 16550
[    3.185104] ePAPR hypervisor byte channel driver
[    3.190217] Generic non-volatile memory driver v1.1
[    3.195738] [drm] Initialized drm 1.1.0 20060810
[    3.200716] [drm] radeon kernel modesetting enabled.
[    3.206769] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    3.214969] [drm] register mmio base: 0xe90000000
[    3.219740] [drm] register mmio size: 262144
[    3.556010] ATOM BIOS: C44501
[    3.559290] radeon 0001:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    3.568219] radeon 0001:81:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    3.575913] [drm] Detected VRAM RAM=1024M, BAR=256M
[    3.580814] [drm] RAM width 128bits DDR
[    3.584853] [TTM] Zone  kernel: Available graphics memory: 376678 kiB
[    3.591341] [TTM] Zone highmem: Available graphics memory: 1032038 kiB
[    3.597893] [TTM] Initializing pool allocator
[    3.602293] [TTM] Initializing DMA pool allocator
[    3.607114] [drm] radeon: 1024M of VRAM memory ready
[    3.612118] [drm] radeon: 2048M of GTT memory ready.
[    3.617141] [drm] Loading verde Microcode
[    3.621212] [drm] Internal thermal controller with fan control
[    3.627374] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.676583] [drm] radeon: dpm initialized
[    3.683123] [drm] Found VCE firmware/feedback version 50.0.1 / 17!
[    3.689383] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    3.706066] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.776269] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[    3.783623] radeon 0001:81:00.0: WB enabled
[    3.787854] radeon 0001:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xee987c00
[    3.797981] radeon 0001:81:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xee987c04
[    3.808102] radeon 0001:81:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xee987c08
[    3.818225] radeon 0001:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xee987c0c
[    3.828354] radeon 0001:81:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xee987c10
[    3.869776] radeon 0001:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf90b5a18
[    3.906888] radeon 0001:81:00.0: fence driver on ring 6 use gpu addr 0x0000000040000c18 and cpu addr 0xee987c18
[    3.917055] radeon 0001:81:00.0: fence driver on ring 7 use gpu addr 0x0000000040000c1c and cpu addr 0xee987c1c
[    3.927182] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.933818] [drm] Driver supports precise vblank timestamp query.
[    3.939940] radeon 0001:81:00.0: radeon: MSI limited to 32-bit
[    3.945816] ppc4xx_setup_msi_irqs: fail allocating msi interrupt
[    3.951904] [drm] radeon: irq initialized.
[    4.710028] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    4.718875] radeon 0001:81:00.0: disabling GPU acceleration
[    4.927434] [drm] Radeon Display Connectors
[    4.932011] [drm] Connector 0:
[    4.935201] [drm]   HDMI-A-1
[    4.938168] [drm]   HPD4
[    4.940757] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    4.948208] [drm]   Encoders:
[    4.951203] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.955498] [drm] Connector 1:
[    4.958573] [drm]   DVI-I-1
[    4.961386] [drm]   HPD2
[    4.963942] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.971368] [drm]   Encoders:
[    4.974355] [drm]     DFP2: INTERNAL_UNIPHY
[    4.978557] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    5.095717] [drm] fb mappable at 0x806E9000
[    5.099937] [drm] vram apper at 0x80000000
[    5.104051] [drm] size 8294400
[    5.107123] [drm] fb depth is 24
[    5.110370] [drm]    pitch is 7680
[    5.405264] Console: switching to colour frame buffer device 240x67
[    5.483398] radeon 0001:81:00.0: fb0: radeondrmfb frame buffer device
[    5.492568] [drm] Initialized radeon 2.43.0 20080528 for 0001:81:00.0 on minor 0
[    5.513797] brd: module loaded
[    5.524037] loop: module loaded
[    5.527965] sm501 0002:00:06.0: enabling device (0004 -> 0006)
[    5.534382] sm501 0002:00:06.0: SM501 At fa900000: Version 050100c0, 64 Mb, IRQ 22
[    5.542450] sm501 0002:00:06.0: setting M1XCLK to 144000000
[    5.564510] sm501 0002:00:06.0: setting MCLK to 72000000
[    5.620644] serial8250 serial8250.9: unable to register port at index 0 (IO0 MEMd84030000 IRQ22): -28
[    5.630479] serial8250 serial8250.9: unable to register port at index 1 (IO0 MEMd84030020 IRQ22): -28
[    7.169857] sm501-fb sm501-fb.80: fb sm501fb-crt disabled at start
[    7.176435] sm501-fb sm501-fb.80: using mode default mode
[    7.182477] sm501-fb sm501-fb.80: fb1: sm501fb-crt frame buffer
[    7.188849] sm501-fb sm501-fb.80: fb sm501fb-panel enabled at start
[    7.195548] sm501-fb sm501-fb.80: using mode default mode
[    7.201564] sm501-fb sm501-fb.80: fb2: sm501fb-panel frame buffer
[    7.209326] sata_sil 0002:00:04.0: Applying R_ERR on DMA activate FIS errata fix
[    7.218909] scsi host0: sata_sil
[    7.223091] scsi host1: sata_sil
[    7.226835] ata1: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 22
[    7.234705] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 22
[    7.243376] libphy: Fixed MDIO Bus: probed
[    7.248290] PPC 4xx OCP EMAC driver, version 3.54
[    7.253731] MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
[    7.260064] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    7.265973] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[    7.273740] TAH /plb/opb/emac-tah@ef601350 initialized
[    7.279328] TAH /plb/opb/emac-tah@ef601450 initialized
[    7.285130] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
[    7.292922] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:50:c2:80:d5:c5
[    7.300340] eth0: found Generic MII PHY (0x00)
[    7.305290] /plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
[    7.312974] eth1: EMAC-1 /plb/opb/ethernet@ef600f00, MAC 00:00:00:00:00:00
[    7.320414] eth1: found Generic MII PHY (0x01)
[    7.325275] PPP generic driver version 2.4.2
[    7.330158] PPP BSD Compression module registered
[    7.335322] PPP Deflate Compression module registered
[    7.354474] NET: Registered protocol family 24
[    7.373091] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.393947] ppc-of-ehci 4bffd0400.ehci: OF EHCI
[    7.412699] ppc-of-ehci 4bffd0400.ehci: new USB bus registered, assigned bus number 1
[    7.435283] ppc-of-ehci 4bffd0400.ehci: irq 32, io mem 0x4bffd0400
[    7.461517] ppc-of-ehci 4bffd0400.ehci: USB 2.0 started, EHCI 1.00
[    7.482109] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.503232] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.524717] usb usb1: Product: OF EHCI
[    7.542679] usb usb1: Manufacturer: Linux 4.6.0-rc1-sam460ex-jm ehci_hcd
[    7.563892] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    7.585032] usb usb1: SerialNumber: PPC-OF USB
[    7.604237] ata1.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    7.604244] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    7.648322] ata1.00: configured for UDMA/100
[    7.667932] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1D05 PQ: 0 ANSI: 5
[    7.692110] hub 1-0:1.0: USB hub found
[    7.711398] hub 1-0:1.0: 1 port detected
[    7.731014] ehci-pci: EHCI PCI platform driver
[    7.751040] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.773645] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    7.773868] sd 0:0:0:0: [sda] Write Protect is off
[    7.773972] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.774218] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    7.845370]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 (DOS^C)(res 2 spb 2) sda9 (DOS^C)(res 2 spb 2) sda10 (DOS^C)(res 2 spb 2)
[    7.847886] sd 0:0:0:0: [sda] Attached SCSI disk
[    7.952305] ppc-of-ohci 4bffd0000.usb: OF OHCI
[    7.974415] ppc-of-ohci 4bffd0000.usb: new USB bus registered, assigned bus number 2
[    7.999780] ppc-of-ohci 4bffd0000.usb: irq 33, io mem 0x4bffd0000
[    8.073519] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    8.102821] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    8.150660] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    8.231632] ata2.00: configured for UDMA/100
[    8.253807] usb 1-1: New USB device found, idVendor=0424, idProduct=2517
[    8.253814] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.254401] hub 1-1:1.0: USB hub found
[    8.254549] hub 1-1:1.0: 7 ports detected
[    8.467454] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    8.544517] usb 1-1.1: new high-speed USB device number 3 using ppc-of-ehci
[    8.569588] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    8.569594] cdrom: Uniform CD-ROM driver Revision: 3.20
[    8.570399] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    8.821152] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    8.869508] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.920505] usb 1-1.1: Product: USB 2.0 Hub
[    8.961101] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    8.961107] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.961112] usb usb2: Product: OF OHCI
[    8.961117] usb usb2: Manufacturer: Linux 4.6.0-rc1-sam460ex-jm ohci_hcd
[    8.961122] usb usb2: SerialNumber: PPC-OF USB
[    8.961742] hub 2-0:1.0: USB hub found
[    8.961773] hub 2-0:1.0: 1 port detected
[    8.962153] sm501-usb sm501-usb.80: cannot declare coherent memory
[    8.962248] ohci-pci: OHCI PCI platform driver
[    8.962861] usbcore: registered new interface driver usblp
[    8.963041] usbcore: registered new interface driver usb-storage
[    8.963250] usbcore: registered new interface driver usbserial
[    8.963337] usbcore: registered new interface driver usbserial_generic
[    8.963418] usbserial: USB Serial support registered for generic
[    8.963563] usbcore: registered new interface driver ftdi_sio
[    8.963643] usbserial: USB Serial support registered for FTDI USB Serial Device
[    8.964208] mousedev: PS/2 mouse device common for all mice
[    8.966603] usbcore: registered new interface driver iforce
[    8.967939] usbcore: registered new interface driver xpad
[    8.968037] i2c /dev entries driver
[    9.045409] rtc-m41t80 8-0068: rtc core: registered m41t80 as rtc0
[    9.137886] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode
[    9.138293] ibm-iic 4ef600800.i2c: using standard (100 kHz) mode
[    9.138375] md: linear personality registered for level -1
[    9.138383] md: raid0 personality registered for level 0
[    9.138391] md: raid1 personality registered for level 1
[    9.138398] md: raid10 personality registered for level 10
[    9.163356] md: raid6 personality registered for level 6
[    9.163360] md: raid5 personality registered for level 5
[    9.163363] md: raid4 personality registered for level 4
[    9.164112] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    9.164126] EDAC PPC4xx MC: v1.0.0
[    9.164129] EDAC PPC4xx MC: Reporting type: interrupt
[    9.164348] hidraw: raw HID events driver (C) Jiri Kosina
[    9.165056] usbcore: registered new interface driver usbhid
[    9.165059] usbhid: USB HID core driver
[    9.169357] no UART detected at 0x1
[    9.170070] snd_hda_intel 0001:81:00.1: enabling device (0000 -> 0002)
[    9.170089] snd_hda_intel 0001:81:00.1: Force to snoop mode by module option
[    9.247897] snd_ice1724 0000:42:00.0: No matching model found for ID 0x12140324
[    9.348108] usbcore: registered new interface driver snd-usb-audio
[    9.348227] usbcore: registered new interface driver snd-ua101
[    9.348347] usbcore: registered new interface driver snd-usb-usx2y
[    9.348570] ipip: IPv4 over IPv4 tunneling driver
[    9.349755] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.349814] Initializing XFRM netlink socket
[    9.351367] NET: Registered protocol family 10
[    9.353057] sit: IPv6 over IPv4 tunneling driver
[    9.353771] NET: Registered protocol family 17
[    9.353797] NET: Registered protocol family 15
[    9.354049] Bluetooth: RFCOMM TTY layer initialized
[    9.354062] Bluetooth: RFCOMM socket layer initialized
[    9.354082] Bluetooth: RFCOMM ver 1.11
[    9.354099] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    9.354102] Bluetooth: BNEP filters: protocol multicast
[    9.354110] Bluetooth: BNEP socket layer initialized
[    9.354118] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    9.354124] Bluetooth: HIDP socket layer initialized
[    9.354222] Key type dns_resolver registered
[    9.358239] Btrfs loaded
[    9.359406] Key type encrypted registered
[    9.432654] rtc-m41t80 8-0068: setting system clock to 2016-03-31 05:39:11 UTC (1459402751)
[    9.432837] ALSA device list:
[    9.432840]   #0: Virtual MIDI Card 1
[    9.432843]   #2: ICEnsemble ICE1724 at 0xfffc1080, irq 19
[   10.436018] md: Waiting for all devices to be available before autodetect
[   10.456570] hub 1-1.1:1.0: USB hub found
[   10.456649] ppc4xx_setup_msi_irqs: fail allocating msi interrupt
[   10.456832] hub 1-1.1:1.0: 4 ports detected
[   10.477592] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0001:80/0001:80:00.0/0001:81:00.1/sound/card1/input0
[   10.539564] md: If you don't use raid, use raid=noautodetect
[   10.558998] usb 1-1.2: new low-speed USB device number 4 using ppc-of-ehci
[   10.581149] md: Autodetecting RAID arrays.
[   10.599718] md: Scanned 0 and added 0 devices.
[   10.618436] md: autorun ...
[   10.635294] md: ... autorun DONE.
[   10.672832] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[   10.694010] EXT4-fs (sda8): couldn't mount as ext3 due to feature incompatibilities
[   10.694463] EXT4-fs (sda8): couldn't mount as ext2 due to feature incompatibilities
[   10.738928] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   10.760796] usb 1-1.2: Product: USB Keyboard
[   10.780419] usb 1-1.2: Manufacturer: CHICONY
[   10.806225] input: CHICONY USB Keyboard as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input1
[   10.837065] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[   10.837110] VFS: Mounted root (ext4 filesystem) readonly on device 8:8.
[   10.883351] devtmpfs: mounted
[   10.901552] usb 1-1.1.1: new full-speed USB device number 5 using ppc-of-ehci
[   10.925010] Freeing unused kernel memory: 256K (c0c5f000 - c0c9f000)
[   10.948220] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-PPC-OF USB-1.2/input0
[   10.977714] This architecture does not have kernel memory protection.
[   11.013691] usb 1-1.1.1: New USB device found, idVendor=0d8c, idProduct=000c
[   11.038169] usb 1-1.1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   11.063250] usb 1-1.1.1: Product: C-Media USB Audio Device   
[   11.088575] usb 1-1.5: new high-speed USB device number 6 using ppc-of-ehci
[   11.136811] input: C-Media USB Audio Device    as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.3/0003:0D8C:000C.0002/input/input2
[   11.201950] usb 1-1.5: New USB device found, idVendor=18a5, idProduct=0300
[   11.227993] hid-generic 0003:0D8C:000C.0002: input,hidraw1: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-PPC-OF USB-1.1.1/input3
[   11.260395] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.286805] usb 1-1.5: Product: STORE N GO
[   11.309751] usb 1-1.5: Manufacturer: Verbatim
[   11.332898] usb 1-1.5: SerialNumber: 07023777EC7B7A87
[   11.358021] usb-storage 1-1.5:1.0: USB Mass Storage device detected
[   11.383252] scsi host2: usb-storage 1-1.5:1.0
[   11.456707] random: nonblocking pool is initialized
[   11.480320] usb 1-1.6: new full-speed USB device number 7 using ppc-of-ehci
[   11.595284] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[   11.621437] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   11.648100] usb 1-1.6: Product: USB Receiver
[   11.671532] usb 1-1.6: Manufacturer: Logitech
[   11.701320] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0003/input/input3
[   11.785795] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[   11.828385] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0004/input/input4
[   11.913075] hid-generic 0003:046D:C52B.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[   11.952495] hid-generic 0003:046D:C52B.0005: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[   12.058526] usb 1-1.7: new high-speed USB device number 8 using ppc-of-ehci
[   12.142153] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[   12.183717] systemd[1]: Detected architecture ppc.
[   12.218009] usb 1-1.7: New USB device found, idVendor=0424, idProduct=2240
[   12.251522] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   12.251528] usb 1-1.7: Product: Ultra Fast Media 
[   12.251533] usb 1-1.7: Manufacturer: Generic
[   12.251538] usb 1-1.7: SerialNumber: 000000225001
[   12.252758] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[   12.256528] scsi host3: usb-storage 1-1.7:1.0
[   12.447457] scsi 2:0:0:0: Direct-Access     Verbatim STORE N GO       5.00 PQ: 0 ANSI: 6
[   12.452442] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   12.453567] sd 2:0:0:0: [sdb] 3821568 512-byte logical blocks: (1.96 GB/1.82 GiB)
[   12.454757] sd 2:0:0:0: [sdb] Write Protect is off
[   12.455886] sd 2:0:0:0: [sdb] No Caching mode page found
[   12.455892] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   12.461896]  sdb: sdb1 sdb2 sdb3
[   12.466385] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   12.730288] systemd[1]: Set hostname to <Amigaone>.
[   13.260485] scsi 3:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   1.98 PQ: 0 ANSI: 0
[   13.293769] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   13.324753] sd 3:0:0:0: [sdc] Attached SCSI removable disk
[   14.163639] systemd[1]: Listening on Journal Socket.
[   14.215245] systemd[1]: Reached target User and Group Name Lookups.
[   14.268006] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   14.321741] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   14.374583] systemd[1]: Reached target Encrypted Volumes.
[   14.447629] systemd[1]: Listening on fsck to fsckd communication Socket.
[   14.499727] systemd[1]: Listening on udev Kernel Socket.
[   14.549805] systemd[1]: Listening on Journal Socket (/dev/log).
[   14.601180] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   14.655091] systemd[1]: Reached target Swap.
[   14.702428] systemd[1]: Created slice User and Session Slice.
[   14.751179] systemd[1]: Listening on Syslog Socket.
[   14.799328] systemd[1]: Created slice System Slice.
[   14.849359] systemd[1]: Mounting POSIX Message Queue File System...
[   14.909406] systemd[1]: Mounting Debug File System...
[   14.967025] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   15.020887] systemd[1]: Starting Nameserver information manager...
[   15.100269] systemd[1]: Starting Uncomplicated firewall...
[   15.158116] systemd[1]: Starting Journal Service...
[   15.252016] systemd[1]: Starting Load Kernel Modules...
[   15.306434] systemd[1]: Created slice system-getty.slice.
[   15.360680] systemd[1]: Started Read required files in advance.
[   15.442405] systemd[1]: Reached target Slices.
[   15.549674] systemd[1]: Reached target Remote File Systems (Pre).
[   15.643757] systemd[1]: Reached target Remote File Systems.
[   15.738991] systemd[1]: Listening on udev Control Socket.
[   15.833338] systemd[1]: Starting Create Static Device Nodes in /dev...
[   15.923344] systemd[1]: Mounted Debug File System.
[   15.969174] systemd[1]: Mounted POSIX Message Queue File System.
[   16.018663] systemd[1]: Started Journal Service.
Michel Dänzer April 1, 2016, 8:31 a.m. UTC | #2
On 31.03.2016 19:00, Julian Margetson wrote:
> On 3/31/2016 2:50 AM, Michel Dänzer wrote:
>> On 30.03.2016 19:36, Julian Margetson wrote:
>>> On 3/29/2016 11:49 PM, Michel Dänzer wrote:
>>>> On 29.03.2016 18:55, Julian Margetson wrote:
>>>>> On 3/28/2016 11:15 PM, Michel Dänzer wrote:
>>>>>> On 29.03.2016 08:47, Julian Margetson wrote:
>>>>>>> Seeing the following when booting kernel 4.6-rc1 on Acube Sam460ex
>>>>>>> Canyonlands board.
>>>>>>> This loops for a few times then the kernel boots.
>>>>>>> No problem with the 4.6-rc1 with an A-eon Tabor Freescale e500v2
>>>>>>> board.
>>>>>>>
>>>>>>>     [    2.197839] ------------[ cut here ]------------
>>>>>>>     [    2.197850] WARNING: CPU: 0 PID: 1 at
>>>>>>> drivers/gpu/drm/drm_irq.c:1368 drm_vblank_off+0x2c/0x1e0
>>>>>> That's
>>>>>>
>>>>>>       if (WARN_ON(pipe >= dev->num_crtcs))
>>>>>>
>>>>>> My best guess is that drm_vblank_off is called before
>>>>>> drm_vblank_init, so dev->num_crtcs is still 0.
>>>>>>
>>>>>>
>>>>>> Please provide the full dmesg output corresponding to the problem.
>>>>> 
>>>>> [drm] radeon: irq initialized.
>>>>> [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed
>>>>> (scratch(0x850C)=0xCAFEDEAD)
>>>>> radeon 0001:81:00.0: disabling GPU acceleration
>>>> Okay, so the problem is that acceleration fails to initialize, in which
>>>> case the driver calls drm_vblank_cleanup.
>>>>
>>>> I can see two basic options for a solution: Either don't call
>>>> radeon_irq_kms_fini/drm_vblank_cleanup if acceleration fails to
>>>> initialize, or check if acceleration is enabled before calling
>>>> drm_vblank_on/off. Any preferences?
>>>>
>>>>
>>> Thanks
>>>
>>> No preferences .
>> Does the attached patch fix the problem?
>>
>>
>>> I would be interested in a fix for the acceleration problem if
>>> possible .
>> Beware that while the kernel side of this might be relatively easy to
>> fix, making the userspace radeonsi driver work on big endian hosts would
>> likely require substantial effort.
> 
> Thanks
> 
> The patch solved the problem .
> Tested-by: Julian Margetson <runaway@candw.ms>

Thanks, patch submitted for inclusion.


> I  would indeed like to see the kernel side fix for the the acceleration
> problem. (Been hoping for it for almost 3 years now)
> http://marc.info/?l=dri-devel&m=137881893518240&w=2
> I also have Northern Islands cards  and  acceleration with these does
> work with my other powerpc board, an e500v2 .
> It also requires the patch in the linked post by Hans Verkuil for Radeon
> NI and SI cards to work .

Is Hans' patch enough for SI or not? Anyway, somebody should split Hans'
patch up between ttm and radeon, clean up the latter (use PRIx64 or a
phys_addr_t specific format sequence instead of %llx, apply the same fix
in radeon_doorbell_init) and submit them as properly Git formatted patches.
Julian Margetson April 1, 2016, 10:33 a.m. UTC | #3
On 4/1/2016 4:31 AM, Michel Dänzer wrote:
> On 31.03.2016 19:00, Julian Margetson wrote:
>> On 3/31/2016 2:50 AM, Michel Dänzer wrote:
>>> On 30.03.2016 19:36, Julian Margetson wrote:
>>>> On 3/29/2016 11:49 PM, Michel Dänzer wrote:
>>>>> On 29.03.2016 18:55, Julian Margetson wrote:
>>>>>> On 3/28/2016 11:15 PM, Michel Dänzer wrote:
>>>>>>> On 29.03.2016 08:47, Julian Margetson wrote:
>>>>>>>> Seeing the following when booting kernel 4.6-rc1 on Acube Sam460ex
>>>>>>>> Canyonlands board.
>>>>>>>> This loops for a few times then the kernel boots.
>>>>>>>> No problem with the 4.6-rc1 with an A-eon Tabor Freescale e500v2
>>>>>>>> board.
>>>>>>>>
>>>>>>>>      [    2.197839] ------------[ cut here ]------------
>>>>>>>>      [    2.197850] WARNING: CPU: 0 PID: 1 at
>>>>>>>> drivers/gpu/drm/drm_irq.c:1368 drm_vblank_off+0x2c/0x1e0
>>>>>>> That's
>>>>>>>
>>>>>>>        if (WARN_ON(pipe >= dev->num_crtcs))
>>>>>>>
>>>>>>> My best guess is that drm_vblank_off is called before
>>>>>>> drm_vblank_init, so dev->num_crtcs is still 0.
>>>>>>>
>>>>>>>
>>>>>>> Please provide the full dmesg output corresponding to the problem.
>>>>>> [drm] radeon: irq initialized.
>>>>>> [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed
>>>>>> (scratch(0x850C)=0xCAFEDEAD)
>>>>>> radeon 0001:81:00.0: disabling GPU acceleration
>>>>> Okay, so the problem is that acceleration fails to initialize, in which
>>>>> case the driver calls drm_vblank_cleanup.
>>>>>
>>>>> I can see two basic options for a solution: Either don't call
>>>>> radeon_irq_kms_fini/drm_vblank_cleanup if acceleration fails to
>>>>> initialize, or check if acceleration is enabled before calling
>>>>> drm_vblank_on/off. Any preferences?
>>>>>
>>>>>
>>>> Thanks
>>>>
>>>> No preferences .
>>> Does the attached patch fix the problem?
>>>
>>>
>>>> I would be interested in a fix for the acceleration problem if
>>>> possible .
>>> Beware that while the kernel side of this might be relatively easy to
>>> fix, making the userspace radeonsi driver work on big endian hosts would
>>> likely require substantial effort.
>> Thanks
>>
>> The patch solved the problem .
>> Tested-by: Julian Margetson <runaway@candw.ms>
> Thanks, patch submitted for inclusion.
>
>
>> I  would indeed like to see the kernel side fix for the the acceleration
>> problem. (Been hoping for it for almost 3 years now)
>> http://marc.info/?l=dri-devel&m=137881893518240&w=2
>> I also have Northern Islands cards  and  acceleration with these does
>> work with my other powerpc board, an e500v2 .
>> It also requires the patch in the linked post by Hans Verkuil for Radeon
>> NI and SI cards to work .
> Is Hans' patch enough for SI or not? Anyway, somebody should split Hans'
> patch up between ttm and radeon, clean up the latter (use PRIx64 or a
> phys_addr_t specific format sequence instead of %llx, apply the same fix
> in radeon_doorbell_init) and submit them as properly Git formatted patches.
>
>
Han's patch seems to be enough for SI.
There are 4 powerpc motherboards that our group are using. Two require 
the full patch.
The Sam460ex (460ex) and Tabor (e500v2).
The Nemo X1000 (P.A. semi) does require part of the patch or another 
one  that has been used.
The  Cyrus X5000 (P5020) do not.

There are some other powerpc issues with mesa.
Apparently Oded Gabbay  has been working on mesa fixes .

I have attached the dmesg of a Tabor boot with a Radeon SI card.
Is there anyone one who could redo Han's patches or would we have to 
find someone ?

Regards
Julian
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2016.04.01 05:18:59 =~=~=~=~=~=~=~=~=~=~=~=

SD boot...
gd @ f8f9c000
2 GiB left unmapped
Second program loader running in sram...


U-Boot 2014.04-00134-g3f74b5d (May 15 2015 - 10:49:01)

CPU0:  P1022, Version: 1.1, (0x80e60011)
Core:  e500, Version: 5.1, (0x80211151)
Clock Configuration:
       CPU0:1199.880 MHz, CPU1:1199.880 MHz, 
       CCB:399.960 MHz,
       DDR:399.960 MHz (799.920 MT/s data rate) (Asynchronous), LBC:49.995 MHz
L1:    D-cache 32 KiB enabled
       I-cache 32 KiB enabled
Board: Tabor, I2C:   ready
SPI:   ready
DRAM:  Detected UDIMM 9905469-063.A00LF 
4 GiB (DDR3, 64-bit, CL=6, ECC off)
L2:    256 KiB already enabled
MMC:  FSL_SDHC: 0
MAC: 00:04:A3:3F:CA:69
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
MAC: 00:1E:C0:AE:37:95
EEPROM: NXID v0
PCIe1: Root Complex of Slot 1, x4 gen1, regs @ 0xffe0a000
  01:00.0     - 1002:683f - Display controller
  01:00.1     - 1002:aab0 - Multimedia device
PCIe1: Bus 00 - 01
Pins = 0x0
Looking for VGA
videoboot: Booting PCI video card bus 1, function 0, device 0
Begin BIOS POST
End BIOS POST
Setting VESA Mode
Found required VESA mode
About to set mode 279
About to get mode
Got mode 49431 (0xc117)
OK
XSize = 1024 YSize = 768 Base =0xe0000000
mmio_base = 0xc0000000
bgx = 0xad55ad55 fgx = 0x0
In:    serial
Out:   serial
Err:   serial
SCSI:  scanning bus for devices...
Found 0 device(s).
Net:   Tuning PHY @ 3
Tuning PHY @ 7
eTSEC1 [PRIME], eTSEC2

MMC read: dev # 0, block # 1280, count 512 ... 512 blocks read: OK

MMC read: dev # 0, block # 65536, count 131072 ... 131072 blocks read: OK
USB0:   USB EHCI 1.00
scanning bus 0 for devices... ERROR: Invalid USB EP length (9)
ERROR: Invalid USB EP length (9)
7 USB Device(s) found
USB1:   Disabled
lowlevel init failed
SATA0 (3 Gbps)

       SATA1 (1.5 Gbps)

CE at device

scanning bus for devices...
max transfer length is 64MB

  Device 0: (1:0) Vendor: ASUS Prod.: DRW-24B3ST   i Rev: 1.00
            Type: Removable CD ROM
            Capacity: 72800.0 MB = 71.0 GB (92274738 x 1526726656)
Found 1 device(s).
scanning bus for devices...
max transfer length is 64MB

  Device 0: (1:0) Vendor: ASUS Prod.: DRW-24B3ST   i Rev: 1.00
            Type: Removable CD ROM
            Capacity: 72800.0 MB = 71.0 GB (92274738 x 1526726656)
Found 1 device(s).

Reset SCSI
scanning bus for devices...
max transfer length is 64MB

  Device 0: (1:0) Vendor: ASUS Prod.: DRW-24B3ST   i Rev: 1.00
            Type: Removable CD ROM
            Capacity: 72800.0 MB = 71.0 GB (92274738 x 1526726656)
Found 1 device(s).
SATA0 (3 Gbps)

       SATA1 (1.5 Gbps)

CE at device

(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... ERROR: Invalid USB EP length (9)
ERROR: Invalid USB EP length (9)
7 USB Device(s) found
USB1:   Disabled
lowlevel init failed
       scanning usb for storage devices... 1 Storage Device(s) found
## No elf image at address 0x01000000
A1222> run linux1 2 1
reading uImage-tabor
7098231 bytes read in 469 ms (14.4 MiB/s)
reading tabor2.dtb
13124 bytes read in 135 ms (94.7 KiB/s)
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   Linux-4.6.0-rc1-tabor-jm
   Created:      2016-03-28  22:15:11 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    7098167 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 03ff9000, end 03fff343 ... OK
[    0.000000] Using Tabor machine description
[    0.000000] Memory CAM mapping: 256/256/256 Mb, residual: 3328Mb
[    0.000000] Linux version 4.6.0-rc1-tabor-jm (root@julian-VirtualBox) (gcc version 5.3.1 20160205 (Ubuntu 5.3.1-8ubuntu2) ) #1 SMP PREEMPT Mon Mar 28 18:15:01 AST 2016
[    0.000000] CPU maps initialized for 1 thread per core
[    0.000000] Tabor 
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x00000000ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x00000000ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000ffffffff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] percpu: Embedded 12 pages/cpu @edfa4000 s16860 r8192 d24100 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1047040
[    0.000000] Kernel command line: console=ttyS0,115200 console=tty0 root=/dev/sda8
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] allocated 4194304 bytes of page_ext
[    0.000000] Memory: 4074732K/4194304K available (9196K kernel code, 364K rwdata, 4288K rodata, 280K init, 1437K bss, 119572K reserved, 0K cma-reserved, 3407860K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffbf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffc00000..0xffc00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffc00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] mpic: Setting up MPIC " OpenPIC  " version 1.2 at fffe40000, max 2 CPUs
[    0.000000] mpic: ISU size: 256, shift: 8, mask: ff
[    0.000000] mpic: Initializing for 256 sources
[    0.000009] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0xb87c6e0cb, max_idle_ns: 440795203664 ns
[    0.000018] clocksource: timebase mult[14008316] shift[24] registered
[    0.000136] Console: colour dummy device 80x25
[    0.000641] console [tty0] enabled
[    0.000670] pid_max: default: 32768 minimum: 301
[    0.000777] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000804] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001667] mpic: requesting IPIs...
[    0.001791] e500 family performance monitor hardware support registered
[    0.123423] Brought up 2 CPUs
[    0.124278] devtmpfs: initialized
[    0.127502] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.127728] xor: measuring software checksum speed
[    0.137461]    8regs     :  1412.000 MB/sec
[    0.147535]    8regs_prefetch:  1308.000 MB/sec
[    0.157623]    32regs    :  1528.000 MB/sec
[    0.167711]    32regs_prefetch:  1308.000 MB/sec
[    0.167731] xor: using function: 32regs (1528.000 MB/sec)
[    0.167764] prandom: seed boundary self test passed
[    0.169544] prandom: 100 self tests passed
[    0.170262] NET: Registered protocol family 16
[    0.176927] cpuidle: using governor ladder
[    0.180971] cpuidle: using governor menu
[    0.195028] Found FSL PCI host bridge at 0x0000000fffe0a000. Firmware bus number: 0->1
[    0.195077] PCI host bridge /pcie@fffe0a000 (primary) ranges:
[    0.195101]  MEM 0x0000000c40000000..0x0000000c5fffffff -> 0x00000000e0000000 
[    0.195125]   IO 0x0000000fffc20000..0x0000000fffc2ffff -> 0x0000000000000000
[    0.195164] /pcie@fffe0a000: PCICSRBAR @ 0xdff00000
[    0.195182] setup_pci_atmu: end of DRAM 100000000
[    0.195201] /pcie@fffe0a000: Setup 64-bit PCI DMA window
[    0.195216] /pcie@fffe0a000: DMA window size is 0xdff00000
[    0.197764] software IO TLB [mem 0x29ae0000-0x2dae0000] (64MB) mapped at [e9ae0000-edadffff]
[    0.197811] PCI: Probing PCI hardware
[    0.198083] fsl-pci fffe0a000.pcie: PCI host bridge to bus 0000:00
[    0.198127] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.198150] pci_bus 0000:00: root bus resource [mem 0xc40000000-0xc5fffffff] (bus address [0xe0000000-0xffffffff])
[    0.198180] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.201601] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.201786] PCI: Cannot allocate resource region 0 of PCI bridge 1, will remap
[    0.201819] PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
[    0.201845] PCI: Cannot allocate resource region 4 of device 0000:01:00.0, will remap
[    0.201904] pci 0000:00:00.0: BAR 0: no space for [mem size 0x00100000]
[    0.201928] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x00100000]
[    0.201956] pci 0000:01:00.0: BAR 6: assigned [mem 0xc50060000-0xc5007ffff pref]
[    0.201981] pci 0000:01:00.0: BAR 4: no space for [io  size 0x0100]
[    0.202001] pci 0000:01:00.0: BAR 4: failed to assign [io  size 0x0100]
[    0.202022] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.202042] pci 0000:00:00.0:   bridge window [mem 0xc40000000-0xc5fffffff]
[    0.202065] pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    0.202461] mpic-msgr fffe41400.message: Found 0 message registers
[    0.202496] mpic-msgr fffe41400.message: Of-device full name /soc@fffe00000/message@41400
[    0.202540] mpic-msgr fffe41400.message: Failed to find message register block alias
[    0.266240] raid6: int32x1  gen()    46 MB/s
[    0.282613] raid6: int32x1  xor()   140 MB/s
[    0.300255] raid6: int32x2  gen()    85 MB/s
[    0.317133] raid6: int32x2  xor()    83 MB/s
[    0.334701] raid6: int32x4  gen()   140 MB/s
[    0.351785] raid6: int32x4  xor()   150 MB/s
[    0.369158] raid6: int32x8  gen()   203 MB/s
[    0.386289] raid6: int32x8  xor()   154 MB/s
[    0.386320] raid6: using algorithm int32x8 gen() 203 MB/s
[    0.386335] raid6: .... xor() 154 MB/s, rmw enabled
[    0.386350] raid6: using intx1 recovery algorithm
[    0.386493] Freescale Elo series DMA driver
[    0.386677] fsl-elo-dma fffe0c300.dma: #2 (fsl,eloplus-dma-channel), irq 78
[    0.386744] fsl-elo-dma fffe0c300.dma: #3 (fsl,eloplus-dma-channel), irq 79
[    0.387193] fsl-elo-dma fffe21300.dma: #0 (fsl,eloplus-dma-channel), irq 20
[    0.387287] fsl-elo-dma fffe21300.dma: #1 (fsl,eloplus-dma-channel), irq 21
[    0.387349] fsl-elo-dma fffe21300.dma: #2 (fsl,eloplus-dma-channel), irq 22
[    0.387409] fsl-elo-dma fffe21300.dma: #3 (fsl,eloplus-dma-channel), irq 23
[    0.388811] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none
[    0.388860] vgaarb: loaded
[    0.388872] vgaarb: bridge control possible 0000:01:00.0
[    0.389309] SCSI subsystem initialized
[    0.390775] usbcore: registered new interface driver usbfs
[    0.390912] usbcore: registered new interface driver hub
[    0.391066] usbcore: registered new device driver usb
[    0.391406] pps_core: LinuxPPS API ver. 1 registered
[    0.391448] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.391534] PTP clock support registered
[    0.393586] EDAC MC: Ver: 3.0.0
[    0.394346] Advanced Linux Sound Architecture Driver Initialized.
[    0.395266] NET: Registered protocol family 23
[    0.395387] Bluetooth: Core ver 2.21
[    0.395541] NET: Registered protocol family 31
[    0.395571] Bluetooth: HCI device and connection manager initialized
[    0.395602] Bluetooth: HCI socket layer initialized
[    0.395625] Bluetooth: L2CAP socket layer initialized
[    0.395681] Bluetooth: SCO socket layer initialized
[    0.396323] clocksource: Switched to clocksource timebase
[    0.413735] NET: Registered protocol family 2
[    0.414748] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.414879] TCP bind hash table entries: 8192 (order: 5, 196608 bytes)
[    0.415113] TCP: Hash tables configured (established 8192 bind 8192)
[    0.415241] UDP hash table entries: 512 (order: 3, 32768 bytes)
[    0.415397] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
[    0.415717] NET: Registered protocol family 1
[    0.416116] RPC: Registered named UNIX socket transport module.
[    0.416154] RPC: Registered udp transport module.
[    0.416169] RPC: Registered tcp transport module.
[    0.416183] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.420550] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.421855] workingset: timestamp_bits=28 max_order=20 bucket_order=0
[    0.436874] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.439673] ntfs: driver 2.1.32 [Flags: R/W].
[    0.440240] fuse init (API version 7.24)
[    0.449769] async_tx: api initialized (async)
[    0.449891] bounce: pool size: 64 pages
[    0.449980] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.450023] io scheduler noop registered
[    0.450043] io scheduler deadline registered
[    0.450270] io scheduler cfq registered (default)
[    0.451927] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.451962] crc32: self tests passed, processed 225944 bytes in 708250 nsec
[    0.452810] crc32c: CRC_LE_BITS = 64
[    0.452832] crc32c: self tests passed, processed 225944 bytes in 383858 nsec
[    0.500928] crc32_combine: 8373 self tests passed
[    0.549029] crc32c_combine: 8373 self tests passed
[    0.549115] glob: 64 self-tests passed, 0 failed
[    0.657163] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.658752] console [ttyS0] disabled
[    0.658866] serial8250.0: ttyS0 at MMIO 0xfffe04500 (irq = 42, base_baud = 24997500) is a 16550A
[    1.548590] console [ttyS0] enabled
[    1.552911] serial8250.0: ttyS1 at MMIO 0xfffe04600 (irq = 42, base_baud = 24997500) is a 16550A
[    1.562212] Freescale QUICC Engine UART device driver
[    1.567548] ePAPR hypervisor byte channel driver
[    1.572637] Generic non-volatile memory driver v1.1
[    1.578066] [drm] Initialized drm 1.1.0 20060810
[    1.582865] [drm] radeon kernel modesetting enabled.
[    1.588929] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    1.596958] [drm] register mmio base: 0xc50000000
[    1.601718] [drm] register mmio size: 262144
[    1.606046] [drm:radeon_device_init] *ERROR* Unable to find PCI I/O BAR
[    1.947061] [drm:radeon_atombios_init] *ERROR* Unable to find PCI I/O BAR; using MMIO for ATOM IIO
[    1.956086] ATOM BIOS: C44501
[    1.959372] radeon 0000:01:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    1.968323] radeon 0000:01:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    1.976022] [drm] Detected VRAM RAM=1024M, BAR=256M
[    1.980932] [drm] RAM width 128bits DDR
[    1.985054] [TTM] Zone  kernel: Available graphics memory: 333946 kiB
[    1.991562] [TTM] Zone highmem: Available graphics memory: 2037876 kiB
[    1.998124] [TTM] Initializing pool allocator
[    2.002558] [TTM] Initializing DMA pool allocator
[    2.007403] [drm] radeon: 1024M of VRAM memory ready
[    2.012428] [drm] radeon: 2048M of GTT memory ready.
[    2.017504] [drm] Loading verde Microcode
[    2.021584] [drm] Internal thermal controller with fan control
[    2.027689] [drm] probing gen 2 caps for device 1957:111 = 3d441/0
[    2.075067] [drm] radeon: dpm initialized
[    2.081006] [drm] Found VCE firmware/feedback version 50.0.1 / 17!
[    2.087294] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    2.100855] [drm] probing gen 2 caps for device 1957:111 = 3d441/0
[    2.167669] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[    2.174940] radeon 0000:01:00.0: WB enabled
[    2.179201] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xe8cacc00
[    2.189339] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xe8cacc04
[    2.199474] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xe8cacc08
[    2.209611] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xe8cacc0c
[    2.219748] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xe8cacc10
[    2.255871] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf1235a18
[    2.291335] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000040000c18 and cpu addr 0xe8cacc18
[    2.301485] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000040000c1c and cpu addr 0xe8cacc1c
[    2.311618] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.318268] [drm] Driver supports precise vblank timestamp query.
[    2.324398] radeon 0000:01:00.0: radeon: MSI limited to 32-bit
[    2.330376] radeon 0000:01:00.0: radeon: using MSI.
[    2.335374] [drm] radeon: irq initialized.
[    2.908818] [drm] ring test on 0 succeeded in 1 usecs
[    2.913928] [drm] ring test on 1 succeeded in 1 usecs
[    2.919021] [drm] ring test on 2 succeeded in 1 usecs
[    2.924126] [drm] ring test on 3 succeeded in 10 usecs
[    2.929329] [drm] ring test on 4 succeeded in 10 usecs
[    3.108429] [drm] ring test on 5 succeeded in 2 usecs
[    3.113540] [drm] UVD initialized successfully.
[    3.226118] [drm] ring test on 6 succeeded in 19 usecs
[    3.231330] [drm] ring test on 7 succeeded in 3 usecs
[    3.236416] [drm] VCE initialized successfully.
[    3.242713] [drm] ib test on ring 0 succeeded in 0 usecs
[    3.248156] [drm] ib test on ring 1 succeeded in 0 usecs
[    3.253589] [drm] ib test on ring 2 succeeded in 0 usecs
[    3.259012] [drm] ib test on ring 3 succeeded in 0 usecs
[    3.264443] [drm] ib test on ring 4 succeeded in 0 usecs
[    3.918421] [drm] ib test on ring 5 succeeded
[    4.423420] [drm] ib test on ring 6 succeeded
[    4.928432] [drm] ib test on ring 7 succeeded
[    4.935597] [drm] Radeon Display Connectors
[    4.939870] [drm] Connector 0:
[    4.943004] [drm]   HDMI-A-1
[    4.945935] [drm]   HPD4
[    4.948512] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    4.955955] [drm]   Encoders:
[    4.958967] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.963282] [drm] Connector 1:
[    4.966374] [drm]   DVI-I-1
[    4.969208] [drm]   HPD2
[    4.971779] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.979222] [drm]   Encoders:
[    4.982229] [drm]     DFP2: INTERNAL_UNIPHY
[    4.986445] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    5.116045] [drm] fb mappable at 0x406EB000
[    5.120280] [drm] vram apper at 0x40000000
[    5.124408] [drm] size 8294400
[    5.127492] [drm] fb depth is 24
[    5.130751] [drm]    pitch is 7680
[    5.400608] Console: switching to colour frame buffer device 240x67
[    5.456157] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device
[    5.467403] [drm] Initialized radeon 2.43.0 20080528 for 0000:01:00.0 on minor 0
[    5.490683] brd: module loaded
[    5.501392] loop: module loaded
[    5.505468] fsl-sata fffe18000.sata: Sata FSL Platform/CSB Driver init
[    5.513239] scsi host0: sata_fsl
[    5.516871] ata1: SATA max UDMA/133 irq 74
[    5.521369] fsl-sata fffe19000.sata: Sata FSL Platform/CSB Driver init
[    5.529224] scsi host1: sata_fsl
[    5.532673] ata1: Signature Update detected @ 0 msecs
[    5.538257] ata2: SATA max UDMA/133 irq 41
[    5.544182] fsl_espi fffe07000.spi: at 0xf107e000 (irq = 59)
[    5.550150] ata2: Signature Update detected @ 0 msecs
[    5.556906] libphy: Fixed MDIO Bus: probed
[    5.562053] libphy: Freescale PowerQUICC MII Bus: probed
[    5.569370] libphy: Freescale PowerQUICC MII Bus: probed
[    5.575562] fsl-gianfar soc@fffe00000:ethernet@b0000: enabled errata workarounds, flags: 0x4
[    5.595515] fsl-gianfar soc@fffe00000:ethernet@b0000 eth0: mac: 00:04:a3:3f:ce:3d
[    5.603348] fsl-gianfar soc@fffe00000:ethernet@b0000 eth0: Running with NAPI enabled
[    5.611441] fsl-gianfar soc@fffe00000:ethernet@b0000 eth0: RX BD ring size for Q[0]: 256
[    5.619888] fsl-gianfar soc@fffe00000:ethernet@b0000 eth0: RX BD ring size for Q[1]: 256
[    5.628342] fsl-gianfar soc@fffe00000:ethernet@b0000 eth0: TX BD ring size for Q[0]: 256
[    5.636783] fsl-gianfar soc@fffe00000:ethernet@b0000 eth0: TX BD ring size for Q[1]: 256
[    5.645516] fsl-gianfar soc@fffe00000:ethernet@b1000: enabled errata workarounds, flags: 0x4
[    5.665504] fsl-gianfar soc@fffe00000:ethernet@b1000 eth1: mac: 00:1e:c0:ae:37:95
[    5.673353] fsl-gianfar soc@fffe00000:ethernet@b1000 eth1: Running with NAPI enabled
[    5.681448] fsl-gianfar soc@fffe00000:ethernet@b1000 eth1: RX BD ring size for Q[0]: 256
[    5.689894] fsl-gianfar soc@fffe00000:ethernet@b1000 eth1: RX BD ring size for Q[1]: 256
[    5.698377] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    5.704941] ata1.00: ATA-8: WDC WD5000AAKX-60U6AA0, 18.01H18, max UDMA/100
[    5.704948] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 16/32)
[    5.712250] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    5.719397] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    5.719398] ata1.00: configured for UDMA/100
[    5.727521] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKX-6 1H18 PQ: 0 ANSI: 5
[    5.732877] ata2.00: configured for UDMA/100
[    5.750328] fsl-gianfar soc@fffe00000:ethernet@b1000 eth1: TX BD ring size for Q[0]: 256
[    5.767328] fsl-gianfar soc@fffe00000:ethernet@b1000 eth1: TX BD ring size for Q[1]: 256
[    5.784797] ucc_geth_driver: QE UCC Gigabit Ethernet Controller
[    5.800221] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    5.800232] PPP generic driver version 2.4.2
[    5.800519] PPP BSD Compression module registered
[    5.800528] PPP Deflate Compression module registered
[    5.800536] NET: Registered protocol family 24
[    5.800842] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.801005] ehci-pci: EHCI PCI platform driver
[    5.801086] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.801285] ohci-pci: OHCI PCI platform driver
[    5.802022] ehci-fsl: Freescale EHCI Host controller driver
[    5.802118] fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
[    5.802427] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
[    5.802544] fsl-ehci fsl-ehci.0: irq 28, io mem 0xfffe22000
[    5.803452] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.808352] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
[    5.808653] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.808661] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.808665] usb usb1: Product: Freescale On-Chip EHCI Host Controller
[    5.808670] usb usb1: Manufacturer: Linux 4.6.0-rc1-tabor-jm ehci_hcd
[    5.808674] usb usb1: SerialNumber: fsl-ehci.0
[    5.809428] hub 1-0:1.0: USB hub found
[    5.809598] hub 1-0:1.0: 1 port detected
[    5.810037] usbcore: registered new interface driver usblp
[    5.810142] usbcore: registered new interface driver usb-storage
[    5.810294] usbcore: registered new interface driver usbserial
[    5.810405] usbcore: registered new interface driver usbserial_generic
[    5.810446] usbserial: USB Serial support registered for generic
[    5.810506] usbcore: registered new interface driver ftdi_sio
[    5.810543] usbserial: USB Serial support registered for FTDI USB Serial Device
[    5.811586] mousedev: PS/2 mouse device common for all mice
[    5.812939] usbcore: registered new interface driver iforce
[    5.815590] usbcore: registered new interface driver xpad
[    5.815768] md: linear personality registered for level -1
[    5.815776] md: raid0 personality registered for level 0
[    5.815783] md: raid1 personality registered for level 1
[    5.815790] md: raid10 personality registered for level 10
[    5.819467] md: raid6 personality registered for level 6
[    5.819471] md: raid5 personality registered for level 5
[    5.819474] md: raid4 personality registered for level 4
[    5.821650] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    5.821671] Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
[    5.822764] EDAC PCI0: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV mpc85xx-pci-edac.0.auto (INTERRUPT)
[    5.822809] MPC85xx_edac acquired irq 16 for PCI Err
[    5.822812] MPC85xx_edac PCI err registered
[    5.824024] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    5.825049] hidraw: raw HID events driver (C) Jiri Kosina
[    5.826007] usbcore: registered new interface driver usbhid
[    5.826010] usbhid: USB HID core driver
[    5.831726] no UART detected at 0x1
[    5.832100] snd_hda_intel 0000:01:00.1: Force to snoop mode by module option
[    5.832582] usbcore: registered new interface driver snd-usb-audio
[    5.832665] usbcore: registered new interface driver snd-ua101
[    5.832743] usbcore: registered new interface driver snd-usb-usx2y
[    5.833142] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    5.833148] cdrom: Uniform CD-ROM driver Revision: 3.20
[    5.833988] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    5.840559] fsl-ssi-dai fffe15000.ssi: No cache defaults, reading back from HW
[    5.842035] ipip: IPv4 over IPv4 tunneling driver
[    5.842936] ip_tables: (C) 2000-2006 Netfilter Core Team
[    5.843009] Initializing XFRM netlink socket
[    5.844755] NET: Registered protocol family 10
[    5.848351] sit: IPv6 over IPv4 tunneling driver
[    5.849351] NET: Registered protocol family 17
[    5.849394] NET: Registered protocol family 15
[    5.849652] Bluetooth: RFCOMM TTY layer initialized
[    5.849671] Bluetooth: RFCOMM socket layer initialized
[    5.849695] Bluetooth: RFCOMM ver 1.11
[    5.849720] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    5.849723] Bluetooth: BNEP filters: protocol multicast
[    5.849733] Bluetooth: BNEP socket layer initialized
[    5.849743] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    5.849750] Bluetooth: HIDP socket layer initialized
[    5.849841] Key type dns_resolver registered
[    5.856472] Btrfs loaded
[    5.858419] Key type encrypted registered
[    5.859904] hctosys: unable to open rtc device (rtc0)
[    5.860072] ALSA device list:
[    5.860077]   #0: Virtual MIDI Card 1
[    6.215621] snd_hda_codec_hdmi hdaudioC1D0: HDMI ATI/AMD: no speaker allocation for ELD
[    6.217164] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/platform/fffe0a000.pcie/pci0000:00/0000:00:00.0/0000:01:00.1/sound/card1/input0
[    6.433382] usb 1-1: new high-speed USB device number 2 using fsl-ehci
[    6.559768] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    6.559775] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    6.560436] hub 1-1:1.0: USB hub found
[    6.560635] hub 1-1:1.0: 4 ports detected
[    6.832380] usb 1-1.1: new low-speed USB device number 3 using fsl-ehci
[    6.926567] usb 1-1.1: New USB device found, idVendor=04f2, idProduct=0116
[    6.926574] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.926578] usb 1-1.1: Product: USB Keyboard
[    6.926582] usb 1-1.1: Manufacturer: CHICONY
[    6.934231] input: CHICONY USB Keyboard as /devices/platform/soc@fffe00000/fffe22000.usb/fsl-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04F2:0116.0001/input/input1
[    6.990494] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-fsl-ehci.0-1.1/input0
[    7.076365] usb 1-1.2: new full-speed USB device number 4 using fsl-ehci
[    7.169719] usb 1-1.2: New USB device found, idVendor=046d, idProduct=c52b
[    7.169726] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    7.169731] usb 1-1.2: Product: USB Receiver
[    7.169735] usb 1-1.2: Manufacturer: Logitech
[    7.174552] input: Logitech USB Receiver as /devices/platform/soc@fffe00000/fffe22000.usb/fsl-ehci.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C52B.0002/input/input2
[    7.229849] hid-generic 0003:046D:C52B.0002: input,hidraw1: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-fsl-ehci.0-1.2/input0
[    7.238967] input: Logitech USB Receiver as /devices/platform/soc@fffe00000/fffe22000.usb/fsl-ehci.0/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52B.0003/input/input3
[    7.289272] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-fsl-ehci.0-1.2/input1
[    7.297228] hid-generic 0003:046D:C52B.0004: hidraw3: USB HID v1.11 Device [Logitech USB Receiver] on usb-fsl-ehci.0-1.2/input2
[    7.389395] usb 1-1.4: new high-speed USB device number 5 using fsl-ehci
[    7.485882] sd 0:0:0:0: [sda] Write Protect is off
[    7.503623] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.506251] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0608
[    7.506258] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.506263] usb 1-1.4: Product: USB2.0 Hub
[    7.507169] hub 1-1.4:1.0: USB hub found
[    7.507643] hub 1-1.4:1.0: 4 ports detected
[    7.630453]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 ((res 2 spb 1) sda9 ((res 2 spb 1) sda10 ((res 2 spb 1)
[    7.685209] sd 0:0:0:0: [sda] Attached SCSI disk
[    7.703893] md: Waiting for all devices to be available before autodetect
[    7.724745] md: If you don't use raid, use raid=noautodetect
[    7.745503] md: Autodetecting RAID arrays.
[    7.763388] md: Scanned 0 and added 0 devices.
[    7.781605] md: autorun ...
[    7.797981] md: ... autorun DONE.
[    7.837991] EXT4-fs (sda8): couldn't mount as ext3 due to feature incompatibilities
[    7.859378] usb 1-1.4.1: new full-speed USB device number 6 using fsl-ehci
[    7.880749] EXT4-fs (sda8): couldn't mount as ext2 due to feature incompatibilities
[    7.933907] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[    7.955540] VFS: Mounted root (ext4 filesystem) readonly on device 8:8.
[    7.988570] usb 1-1.4.1: New USB device found, idVendor=0d8c, idProduct=000c
[    8.009912] devtmpfs: mounted
[    8.010274] Freeing unused kernel memory: 280K (c0d2f000 - c0d75000)
[    8.010276] This architecture does not have kernel memory protection.
[    8.074148] usb 1-1.4.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.097629] usb 1-1.4.1: Product: C-Media USB Audio Device   
[    8.138159] input: C-Media USB Audio Device    as /devices/platform/soc@fffe00000/fffe22000.usb/fsl-ehci.0/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.3/0003:0D8C:000C.0005/input/input4
[    8.219880] hid-generic 0003:0D8C:000C.0005: input,hidraw4: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-fsl-ehci.0-1.4.1/input3
[    8.305893] random: nonblocking pool is initialized
[    8.311350] usb 1-1.4.4: new high-speed USB device number 7 using fsl-ehci
[    8.401543] usb 1-1.4.4: New USB device found, idVendor=18a5, idProduct=0300
[    8.425394] usb 1-1.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.449078] usb 1-1.4.4: Product: STORE N GO
[    8.473633] usb 1-1.4.4: Manufacturer: Verbatim
[    8.494403] usb 1-1.4.4: SerialNumber: 07023777E97B5116
[    8.517421] usb-storage 1-1.4.4:1.0: USB Mass Storage device detected
[    8.543246] scsi host2: usb-storage 1-1.4.4:1.0
[    8.574689] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    8.604352] systemd[1]: Detected architecture 'ppc'.
[    8.754739] systemd[1]: Set hostname to <TaborPowerPCSPE>.
[    9.339541] systemd[1]: Expecting device dev-ttyS0.device...
[    9.377904] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    9.401918] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    9.425754] systemd[1]: Starting Remote File Systems (Pre).
[    9.463243] systemd[1]: Reached target Remote File Systems (Pre).
[    9.484855] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    9.525792] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    9.551087] systemd[1]: Starting Encrypted Volumes.
[    9.588551] systemd[1]: Reached target Encrypted Volumes.
[    9.609259] systemd[1]: Starting Swap.
[    9.634021] scsi 2:0:0:0: Direct-Access     Verbatim STORE N GO       5.00 PQ: 0 ANSI: 6
[    9.635668] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    9.687503] systemd[1]: Reached target Swap.
[    9.706050] systemd[1]: Starting Root Slice.
[    9.739043] systemd[1]: Created slice Root Slice.
[    9.757805] systemd[1]: Starting User and Session Slice.
[    9.791918] systemd[1]: Created slice User and Session Slice.
[    9.811979] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[    9.846517] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    9.866995] systemd[1]: Starting Delayed Shutdown Socket.
[    9.899759] systemd[1]: Listening on Delayed Shutdown Socket.
[    9.918983] systemd[1]: Starting Journal Socket (/dev/log).
[    9.952285] systemd[1]: Listening on Journal Socket (/dev/log).
[    9.971981] systemd[1]: Starting udev Control Socket.
[   10.004837] systemd[1]: Listening on udev Control Socket.
[   10.023815] systemd[1]: Starting udev Kernel Socket.
[   10.056220] systemd[1]: Listening on udev Kernel Socket.
[   10.074950] systemd[1]: Starting Journal Socket.
[   10.106700] systemd[1]: Listening on Journal Socket.
[   10.124988] systemd[1]: Starting System Slice.
[   10.156191] systemd[1]: Created slice System Slice.
[   10.173840] systemd[1]: Starting File System Check on Root Device...
[   10.211178] systemd[1]: Starting system-getty.slice.
[   10.241554] systemd[1]: Created slice system-getty.slice.
[   10.259158] systemd[1]: Starting system-serial\x2dgetty.slice.
[   10.289234] sd 2:0:0:0: [sdb] 3821568 512-byte logical blocks: (1.96 GB/1.82 GiB)
[   10.310086] sd 2:0:0:0: [sdb] Write Protect is off
[   10.310135] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   10.345597] systemd[1]: Starting Increase datagram queue length...
[   10.364182] sd 2:0:0:0: [sdb] No Caching mode page found
[   10.364190] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   10.418286] systemd[1]: Mounting POSIX Message Queue File System...
[   10.436946]  sdb: sdb1 sdb2 sdb3
[   10.459593] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   10.515979] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   10.537905] systemd[1]: Starting Create Static Device Nodes in /dev...
[   10.633707] systemd[1]: Started Set Up Additional Binary Formats.
[   10.677973] systemd[1]: Starting Load Kernel Modules...
[   10.715223] systemd[1]: Mounted Huge Pages File System.
[   10.733985] systemd[1]: Mounting Debug File System...
[   10.768835] systemd[1]: Starting udev Coldplug all Devices...
[   10.805206] systemd[1]: Starting Slices.
[   10.834152] systemd[1]: Reached target Slices.
[   10.868895] systemd[1]: Mounted Debug File System.
[   10.919038] systemd[1]: Mounted POSIX Message Queue File System.
[   10.951598] systemd[1]: Started File System Check on Root Device.
[   10.999576] systemd[1]: Started Increase datagram queue length.
[   11.032913] systemd[1]: Started Create Static Device Nodes in /dev.
[   11.052142] systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
[   11.101469] systemd[1]: Failed to start Load Kernel Modules.
[   11.119470] systemd[1]: Unit systemd-modules-load.service entered failed state.
[   11.217522] systemd[1]: Mounting FUSE Control File System...
[   11.255447] systemd[1]: Mounting Configuration File System...
[   11.314034] systemd[1]: Starting Apply Kernel Variables...
[   11.385461] systemd[1]: Starting udev Kernel Device Manager...
[   11.428486] systemd[1]: Starting Syslog Socket.
[   11.467549] systemd[1]: Listening on Syslog Socket.
[   11.470619] systemd-udevd[2578]: starting version 215
[   11.508419] systemd[1]: Starting Journal Service...
[   11.561278] systemd[1]: Started Journal Service.
[   12.005153] EXT4-fs (sda8): re-mounted. Opts: errors=remount-ro
[   12.642518] systemd-journald[2868]: Received request to flush runtime journal from PID 1
[   13.662391] sr 1:0:0:0: [sr0] Hmm, seems the drive doesn't support multisession CD's
[   13.736297] fsl-gianfar soc@fffe00000:ethernet@b0000 eth2: renamed from eth0
[   13.832945] systemd-udevd[2891]: renamed network interface eth0 to eth2
[   13.833171] fsl-gianfar soc@fffe00000:ethernet@b1000 eth3: renamed from eth1
[   13.872456] systemd-udevd[2892]: renamed network interface eth1 to eth3
[   16.732380] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[   20.739921] fsl-gianfar soc@fffe00000:ethernet@b0000 eth2: Link is Up - 1Gbps/Full - flow control rx/tx
[   20.761507] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
[   28.383432] cgroup: new mount options do not match the existing superblock, will be ignored


Debian GNU/Linux 8 TaborPowerPCSPE ttyS0

TaborPowerPCSPE login: [   71.014953] EXT4-fs (sdb3): mounting ext3 file system using the ext4 subsystem
[   71.096012] EXT4-fs (sdb3): mounted filesystem with ordered data mode. Opts: (null)

Patch
diff mbox

diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c
index cf61e08..b80b08f 100644
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -275,13 +275,15 @@  void atombios_crtc_dpms(struct drm_crtc *crtc, int mode)
 		if (ASIC_IS_DCE3(rdev) && !ASIC_IS_DCE6(rdev))
 			atombios_enable_crtc_memreq(crtc, ATOM_ENABLE);
 		atombios_blank_crtc(crtc, ATOM_DISABLE);
-		drm_vblank_on(dev, radeon_crtc->crtc_id);
+		if (dev->num_crtcs > radeon_crtc->crtc_id)
+			drm_vblank_on(dev, radeon_crtc->crtc_id);
 		radeon_crtc_load_lut(crtc);
 		break;
 	case DRM_MODE_DPMS_STANDBY:
 	case DRM_MODE_DPMS_SUSPEND:
 	case DRM_MODE_DPMS_OFF:
-		drm_vblank_off(dev, radeon_crtc->crtc_id);
+		if (dev->num_crtcs > radeon_crtc->crtc_id)
+			drm_vblank_off(dev, radeon_crtc->crtc_id);
 		if (radeon_crtc->enabled)
 			atombios_blank_crtc(crtc, ATOM_ENABLE);
 		if (ASIC_IS_DCE3(rdev) && !ASIC_IS_DCE6(rdev))
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
index 24152df..478d409 100644
--- a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
+++ b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
@@ -331,13 +331,15 @@  static void radeon_crtc_dpms(struct drm_crtc *crtc, int mode)
 									 RADEON_CRTC_DISP_REQ_EN_B));
 			WREG32_P(RADEON_CRTC_EXT_CNTL, crtc_ext_cntl, ~(mask | crtc_ext_cntl));
 		}
-		drm_vblank_on(dev, radeon_crtc->crtc_id);
+		if (dev->num_crtcs > radeon_crtc->crtc_id)
+			drm_vblank_on(dev, radeon_crtc->crtc_id);
 		radeon_crtc_load_lut(crtc);
 		break;
 	case DRM_MODE_DPMS_STANDBY:
 	case DRM_MODE_DPMS_SUSPEND:
 	case DRM_MODE_DPMS_OFF:
-		drm_vblank_off(dev, radeon_crtc->crtc_id);
+		if (dev->num_crtcs > radeon_crtc->crtc_id)
+			drm_vblank_off(dev, radeon_crtc->crtc_id);
 		if (radeon_crtc->crtc_id)
 			WREG32_P(RADEON_CRTC2_GEN_CNTL, mask, ~(RADEON_CRTC2_EN | mask));
 		else {