Message ID | 1512393408.4977.44.camel@synopsys.com |
---|---|
State | New |
Headers | show |
Series | xf86-video-armada via UDL [was: Re: UDL's fbdev doesn't work for user-space apps] | expand |
On 04-12-2017 13:16, Alexey Brodkin wrote: > Option "kmsdev" "/dev/dri/card1" Which drm driver uses /dev/dri/card0? I'm seing drmOpen code and if you don't specify the busID it will fallback for the first card that matches "armada-drm" or "imx-drm" or "udl". > But if I swap "imx-drm" to "udl" I don't see anything on my screen > (connected via UDL) even though Xserver seems to really start claiming the screen > (so I see it becomes black, effectively overriding whatever was there before) and > glmark benchmark prints results. > > Xorg.log can help confirm if everything is ok.
Hi Jose, On Mon, 2017-12-04 at 14:02 +0000, Jose Abreu wrote: > On 04-12-2017 13:16, Alexey Brodkin wrote: > > > > Option "kmsdev" "/dev/dri/card1" > > Which drm driver uses /dev/dri/card0? I'm seing drmOpen code and > if you don't specify the busID it will fallback for the first > card that matches "armada-drm" or "imx-drm" or "udl". > > > > > But if I swap "imx-drm" to "udl" I don't see anything on my screen > > (connected via UDL) even though Xserver seems to really start claiming the screen > > (so I see it becomes black, effectively overriding whatever was there before) and > > glmark benchmark prints results. > > > > > > Xorg.log can help confirm if everything is ok. That's xorg.conf: ------------------------------->8------------------------------ # cat /etc/X11/xorg.conf Section "Device" Identifier "Driver0" Screen 0 Driver "armada" # Support hotplugging displays? Option "Hotplug" "TRUE" # Support hardware cursor if available? Option "HWCursor" "TRUE" # Use GPU acceleration? Option "UseGPU" "TRUE" # Provide Xv interfaces? Option "XvAccel" "TRUE" # Prefer overlay for Xv (TRUE for armada-drm, FALSE for imx-drm) Option "XvPreferOverlay" "TRUE" # Which accelerator module to load (automatically found if commented out) Option "AccelModule" "etnadrm_gpu" Option "AccelModule" "etnaviv_gpu" # Support DRI2 interfaces? Option "DRI" "TRUE" EndSection ------------------------------->8------------------------------ Full log you may find below. -Alexey Linux version 4.14.2-00008-g95be6f762b7f-dirty (abrodkin@abrodkin-7440l) (gcc version 7.1.1 20170710 (ARCv2 ISA Linux uClibc toolchain 2017.09-rc1)) #68 SMP PREEMPT Mon Dec 4 16:12:46 MSK 2017 Memory @ 80000000 [1024M] OF: fdt: Machine model: snps,hsdk earlycon: uart8250 at MMIO32 0xf0005000 (options '115200n8') bootconsole [uart8250] enabled archs-intc : 2 priority levels (default 1) FIRQ (not used) IDENTITY : ARCVER [0x52] ARCNUM [0x0] CHIPID [ 0x0] processor [0] : ARC HS38 R2.1 (ARCv2 ISA) Timers : Timer0 Timer1 RTC [UP 64-bit] GFRC [SMP 64-bit] ISA Extn : atomic ll64 unalign (not used) : mpy[opt 9] div_rem norm barrel-shift swap minmax swape BPU : full match, cache:2048, Predict Table:16384 MMU [v4] : 8k PAGE, 2M Super Page (not used) JTLB 1024 (256x4), uDTLB 8, uITLB 4, PAE40 (not used) I-Cache : 64K, 4way/set, 64B Line, VIPT aliasing D-Cache : 64K, 2way/set, 64B Line, PIPT SLC : 512K, 128B Line Peripherals : 0xf0000000, IO-Coherency (disabled) Vector Table : 0x90000000 FPU : SP DP DEBUG : ActionPoint smaRT RTT OS ABI [v4] : 64-bit data any register aligned Extn [SMP] : ARConnect (v2): 4 cores with IPI IDU DEBUG GFRC Enable CONFIG_ARC_HAS_ACCL_REGS for working apps On node 0 totalpages: 131072 free_area_init_node: node 0, pgdat 91cf1080, node_mem_map bfb80000 Normal zone: 576 pages used for memmap Normal zone: 0 pages reserved Normal zone: 131072 pages, LIFO batch:15 random: fast init done percpu: Embedded 7 pages/cpu @bfb1c000 s25088 r8192 d24064 u57344 pcpu-alloc: s25088 r8192 d24064 u57344 alloc=7*8192 pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 Built 1 zonelists, mobility grouping on. Total pages: 130496 Kernel command line: earlycon=uart8250,mmio32,0xf0005000,115200n8 console=ttyS0,115200n8 debug print-fatal-signals=1 drm.debug=0x1e PID hash table entries: 4096 (order: 1, 16384 bytes) Dentry cache hash table entries: 131072 (order: 6, 524288 bytes) Inode-cache hash table entries: 65536 (order: 5, 262144 bytes) Memory: 749864K/1048576K available (5319K kernel code, 270K rwdata, 1048K rodata, 23040K init, 293K bss, 298712K reserved, 0K cma-reserved) Preemptible hierarchical RCU implementation. Tasks RCU enabled. NR_IRQS: 512 MCIP: IDU supports 64 common irqs clocksource: ARConnect GFRC: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns Console: colour dummy device 80x25 Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 2048 (order: 0, 8192 bytes) Mountpoint-cache hash table entries: 2048 (order: 0, 8192 bytes) Hierarchical SRCU implementation. smp: Bringing up secondary CPUs ... Idle Task [1] bf04da80 Trying to bring up CPU1 ... archs-intc : 2 priority levels (default 1) FIRQ (not used) IDENTITY : ARCVER [0x52] ARCNUM [0x1] CHIPID [ 0x0] processor [1] : ARC HS38 R2.1 (ARCv2 ISA) Timers : Timer0 Timer1 RTC [UP 64-bit] ISA Extn : atomic ll64 unalign (not used) : mpy[opt 9] div_rem norm barrel-shift swap minmax swape BPU : full match, cache:2048, Predict Table:16384 MMU [v4] : 8k PAGE, 2M Super Page (not used) JTLB 1024 (256x4), uDTLB 8, uITLB 4, PAE40 (not used) I-Cache : 64K, 4way/set, 64B Line, VIPT aliasing D-Cache : 64K, 2way/set, 64B Line, PIPT SLC : 512K, 128B Line Peripherals : 0xf0000000, IO-Coherency (disabled) Vector Table : 0x90000000 FPU : SP DP DEBUG : ActionPoint smaRT RTT Extn [CCM] : DCCM @ 80000000, 256 KB / ICCM: @ 70000000, 256 KB OS ABI [v4] : 64-bit data any register aligned Extn [SMP] : ARConnect (v2): 4 cores with IPI IDU DEBUG GFRC Enable CONFIG_ARC_HAS_ACCL_REGS for working apps ## CPU1 LIVE ##: Executing Code... Idle Task [2] bf04d540 Trying to bring up CPU2 ... archs-intc : 2 priority levels (default 1) FIRQ (not used) IDENTITY : ARCVER [0x52] ARCNUM [0x2] CHIPID [ 0x0] processor [2] : ARC HS38 R2.1 (ARCv2 ISA) Timers : Timer0 Timer1 RTC [UP 64-bit] ISA Extn : atomic ll64 unalign (not used) : mpy[opt 9] div_rem norm barrel-shift swap minmax swape BPU : full match, cache:2048, Predict Table:16384 MMU [v4] : 8k PAGE, 2M Super Page (not used) JTLB 1024 (256x4), uDTLB 8, uITLB 4, PAE40 (not used) I-Cache : 64K, 4way/set, 64B Line, VIPT aliasing D-Cache : 64K, 2way/set, 64B Line, PIPT SLC : 512K, 128B Line Peripherals : 0xf0000000, IO-Coherency (disabled) Vector Table : 0x90000000 FPU : SP DP DEBUG : ActionPoint smaRT RTT OS ABI [v4] : 64-bit data any register aligned Extn [SMP] : ARConnect (v2): 4 cores with IPI IDU DEBUG GFRC Enable CONFIG_ARC_HAS_ACCL_REGS for working apps ## CPU2 LIVE ##: Executing Code... Idle Task [3] bf04d000 Trying to bring up CPU3 ... archs-intc : 2 priority levels (default 1) FIRQ (not used) IDENTITY : ARCVER [0x52] ARCNUM [0x3] CHIPID [ 0x0] processor [3] : ARC HS38 R2.1 (ARCv2 ISA) Timers : Timer0 Timer1 RTC [UP 64-bit] ISA Extn : atomic ll64 unalign (not used) : mpy[opt 9] div_rem norm barrel-shift swap minmax swape BPU : full match, cache:2048, Predict Table:16384 MMU [v4] : 8k PAGE, 2M Super Page (not used) JTLB 1024 (256x4), uDTLB 8, uITLB 4, PAE40 (not used) I-Cache : 64K, 4way/set, 64B Line, VIPT aliasing D-Cache : 64K, 2way/set, 64B Line, PIPT SLC : 512K, 128B Line Peripherals : 0xf0000000, IO-Coherency (disabled) Vector Table : 0x90000000 FPU : SP DP DEBUG : ActionPoint smaRT RTT Extn [CCM] : DCCM @ 80000000, 256 KB / ICCM: @ 70000000, 256 KB OS ABI [v4] : 64-bit data any register aligned Extn [SMP] : ARConnect (v2): 4 cores with IPI IDU DEBUG GFRC Enable CONFIG_ARC_HAS_ACCL_REGS for working apps ## CPU3 LIVE ##: Executing Code... smp: Brought up 1 node, 4 CPUs devtmpfs: initialized clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 1024 (order: 3, 65536 bytes) NET: Registered protocol family 16 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> PTP clock support registered clocksource: Switched to clocksource ARConnect GFRC NET: Registered protocol family 2 TCP established hash table entries: 8192 (order: 2, 32768 bytes) TCP bind hash table entries: 8192 (order: 3, 65536 bytes) TCP: Hash tables configured (established 8192 bind 8192) UDP hash table entries: 512 (order: 1, 16384 bytes) UDP-Lite hash table entries: 512 (order: 1, 16384 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. ARC perf : 8 counters (48 bits), 113 conditions workingset: timestamp_bits=30 max_order=17 bucket_order=0 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) io scheduler mq-deadline registered io scheduler kyber registered Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled console [ttyS0] disabled f0005000.serial: ttyS0 at MMIO 0xf0005000 (irq = 6, base_baud = 2083125) is a 16550A console [ttyS0] enabled console [ttyS0] enabled bootconsole [uart8250] disabled bootconsole [uart8250] disabled usbcore: registered new interface driver udl etnaviv soc:gpu-subsystem: bound f0090000.gpu (ops 0x91be058c) etnaviv-gpu f0090000.gpu: model: GC880, revision: 5124 [drm] Initialized etnaviv 1.1.0 20151214 for soc:gpu-subsystem on minor 0 libphy: Fixed MDIO Bus: probed stmmaceth f0008000.ethernet: PTP uses main clock stmmac - user ID: 0x10, Synopsys ID: 0x37 stmmaceth f0008000.ethernet: Ring mode enabled stmmaceth f0008000.ethernet: DMA HW capability register supported stmmaceth f0008000.ethernet: Normal descriptors stmmaceth f0008000.ethernet: RX Checksum Offload Engine supported stmmaceth f0008000.ethernet: COE Type 2 stmmaceth f0008000.ethernet: TX Checksum insertion supported stmmaceth f0008000.ethernet: Enable RX Mitigation via HW Watchdog Timer libphy: stmmac: probed ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-platform: EHCI generic platform driver ehci-platform f0040000.ehci: EHCI Host Controller ehci-platform f0040000.ehci: new USB bus registered, assigned bus number 1 ehci-platform f0040000.ehci: irq 15, io mem 0xf0040000 ehci-platform f0040000.ehci: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ohci-platform: OHCI generic platform driver ohci-platform f0060000.ohci: Generic Platform OHCI controller ohci-platform f0060000.ohci: new USB bus registered, assigned bus number 2 ohci-platform f0060000.ohci: irq 15, io mem 0xf0060000 hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected usbcore: registered new interface driver usb-storage IR NEC protocol handler initialized IR RC5(x/sz) protocol handler initialized IR RC6 protocol handler initialized IR JVC protocol handler initialized IR Sony protocol handler initialized IR SANYO protocol handler initialized IR Sharp protocol handler initialized IR MCE Keyboard/mouse protocol handler initialized IR XMP protocol handler initialized sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman Synopsys Designware Multimedia Card Interface Driver dw_mmc f000a000.mmc: 'num-slots' was deprecated. dw_mmc f000a000.mmc: IDMAC supports 32-bit address mode. dw_mmc f000a000.mmc: Using internal DMA controller. dw_mmc f000a000.mmc: Version ID is 290a dw_mmc f000a000.mmc: DW MMC controller at irq 12,32 bit host data width,16 deep fifo mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63) sdhci-pltfm: SDHCI platform and OF driver helper usbcore: registered new interface driver usbhid usbhid: USB HID core driver NET: Registered protocol family 10 Segment Routing with IPv6 sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver NET: Registered protocol family 17 ttyS0 - failed to request DMA Freeing unused kernel memory: 23040K This architecture does not have kernel memory protection. Starting logging: OK Initializing random number generator... done. Starting network: stmmaceth f0008000.ethernet eth0: device MAC address a6:6c:7e:40:c6:86 mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 25000000Hz, actual 25000000HZ div = 1) usb 1-1: new high-speed USB device number 2 using ehci-platform mmc0: new SDHC card at address aaaa blk_queue_max_segment_size: set to minimum 8192 mmcblk0: mmc0:aaaa SL08G 7.40 GiB mmcblk0: p1 p2 Micrel KSZ9031 Gigabit PHY stmmac-0:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:00, irq=POLL) stmmaceth f0008000.ethernet eth0: PTP not supported by HW IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready udhcpc: started, v1.27.2 udhcpc: sending discover hub 1-1:1.0: USB hub found hub 1-1:1.0: 2 ports detected usb 1-1.1: new high-speed USB device number 3 using ehci-platform [drm] vendor descriptor length:2e data:2e 5f 01 00 2c 00 04 04 01 00 03 [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. [drm] Initialized udl 0.0.1 20120220 for 1-1.1:1.0 on minor 1 [drm] Initialized udl on minor 1 stmmaceth f0008000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready udhcpc: sending discover udhcpc: sending discover udhcpc: sending select for 10.42.0.122 udhcpc: lease of 10.42.0.122 obtained, lease time 3600 deleting routers adding dns 10.42.0.1 OK Welcome to the ARC Software Development Platform axs103 login: root # cat /etc/X11/xorg.conf Section "Device" Identifier "Driver0" Screen 0 Driver "armada" # Support hotplugging displays? Option "Hotplug" "TRUE" # Support hardware cursor if available? Option "HWCursor" "TRUE" # Use GPU acceleration? Option "UseGPU" "TRUE" # Provide Xv interfaces? Option "XvAccel" "TRUE" # Prefer overlay for Xv (TRUE for armada-drm, FALSE for imx-drm) Option "XvPreferOverlay" "TRUE" # Which accelerator module to load (automatically found if commented out) Option "AccelModule" "etnadrm_gpu" Option "AccelModule" "etnaviv_gpu" # Support DRI2 interfaces? Option "DRI" "TRUE" EndSection # X& # X.Org X Server 1.19.5 Release Date: 2017-10-12 X Protocol Version 11, Revision 0 Build Operating System: Linux 3.10.0-514.el7.x86_64 x86_64 Current Operating System: Linux axs1[drm:drm_helper_probe_single_connector_modes] [CONNECTOR:30:DVI-I-1] 03 4.14.2-00008-g95be6f762b7f-di[drm:drm_helper_probe_single_connector_modes] [CONNECTOR:30:DVI-I-1] status updated from unknown to connected rty #68 SMP PREEMPT Mon Dec 4 16:12:46 MSK 2017 arc Kernel command line: earlycon=uart8250,mmio32,0xf0005000,115200n8 console=ttyS0,115200n8 debug print-fatal-signals=1 drm.debug=0x1e Build Date: 01 December 2017 12:21:28PM Current version of pixman: 0.34.0 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/[drm:drm_helper_probe_single_connector_modes] [CONNECTOR:30:DVI-I-1] probed modes : var/log/Xorg.0.log", Time: Thu J[drm:drm_mode_debug_printmodeline] Modeline 32:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5 an 1 00:00:30 1970 (==) Using [drm:drm_mode_debug_printmodeline] Modeline 39:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5 config file: "/etc/X11/xorg.conf[drm:drm_mode_debug_printmodeline] Modeline 34:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5 " (==) Using system config dire[drm:drm_mode_debug_printmodeline] Modeline 33:"1152x864" 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5 ctory "/usr/share/X11/xorg.conf.[drm:drm_mode_debug_printmodeline] Modeline 40:"1024x768" 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5 d" [drm:drm_mode_debug_printmodeline] Modeline 41:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa [drm:drm_mode_debug_printmodeline] Modeline 42:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5 [drm:drm_mode_debug_printmodeline] Modeline 35:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5 [drm:drm_mode_debug_printmodeline] Modeline 36:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa [drm:drm_mode_debug_printmodeline] Modeline 37:"640x480" 60 25175 640 656 752 800 480 490 492 525 0x40 0xa [drm:drm_mode_debug_printmodeline] Modeline 38:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6 [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:30:DVI-I-1] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:30:DVI-I-1] probed modes : [drm:drm_mode_debug_printmodeline] Modeline 32:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5 [drm:drm_mode_debug_printmodeline] Modeline 39:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5 [drm:drm_mode_debug_printmodeline] Modeline 34:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5 [drm:drm_mode_debug_printmodeline] Modeline 33:"1152x864" 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5 [drm:drm_mode_debug_printmodeline] Modeline 40:"1024x768" 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5 [drm:drm_mode_debug_printmodeline] Modeline 41:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa [drm:drm_mode_debug_printmodeline] Modeline 42:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5 [drm:drm_mode_debug_printmodeline] Modeline 35:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5 [drm:drm_mode_debug_printmodeline] Modeline 36:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa [drm:drm_mode_debug_printmodeline] Modeline 37:"640x480" 60 25175 640 656 752 800 480 490 492 525 0x40 0xa [drm:drm_mode_debug_printmodeline] Modeline 38:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6 [drm:udl_drm_gem_mmap] flags = 0x1 [drm:drm_mode_addfb] [FB:31] [drm:drm_mode_setcrtc] [CRTC:28:crtc-0] [drm:drm_mode_setcrtc] [CONNECTOR:30:DVI-I-1] [drm:drm_crtc_helper_set_config] [drm:drm_crtc_helper_set_config] [CRTC:28:crtc-0] [FB:31] #connectors=1 (x y) (0 0) [drm:drm_crtc_helper_set_config] crtc has no fb, full mode set [drm:drm_crtc_helper_set_config] modes are different, full mode set [drm:drm_mode_debug_printmodeline] Modeline 0:"" 0 0 0 0 0 0 0 0 0 0 0x0 0x0 [drm:drm_mode_debug_printmodeline] Modeline 44:"" 0 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x0 0x5 [drm:drm_crtc_helper_set_config] encoder changed, full mode switch [drm:drm_crtc_helper_set_config] crtc changed, full mode switch [drm:drm_crtc_helper_set_config] [CONNECTOR:30:DVI-I-1] to [CRTC:28:crtc-0] [drm:drm_crtc_helper_set_config] attempting to set mode from userspace [drm:drm_mode_debug_printmodeline] Modeline 44:"" 0 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x0 0x5 [drm:drm_crtc_helper_set_mode] [CRTC:28:crtc-0] [drm:drm_crtc_helper_set_mode] [ENCODER:29:TMDS-29] set [MODE:44:] [drm] write mode info 153 [drm:drm_crtc_helper_set_config] Setting connector DPMS state to on [drm:drm_crtc_helper_set_config] [CONNECTOR:30:DVI-I-1] set DPMS on [drm:udl_attach_dma_buf] [DEV:soc:gpu-subsystem] size:8298496 [drm:udl_map_dma_buf] [DEV:soc:gpu-subsystem] size:8298496 dir=0 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 cmd 00000000: 380000c8 00000000 40000002 00000000 ... cmd 00000130: 48000000 00000701 08010e01 00000040 stream link to 0x00000050 @ 0x00002000 71042000 cmd 00000000: 08010e03 00000008 08010e02 00000701 ... cmd 000000b0: 40000007 00000050 link op: 71040000 addr: 0x00000010 back: 0x00000050 event: 0 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 cmd 00000000: 40000008 00000010 40000002 00000000 ... cmd 00000130: 48000000 00000701 08010e01 00000040 # # export DISPLAY=:0 # glmark2-es2random: crng init done ======================================================= glmetnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 ark2 2014.03 ==================cmd 00000000: 40000008 00000010 40000002 00000000 ================================cmd 00000010: 08010061 00000118 08010e02 00000701 ===== OpenGL Information cmd 00000020: 48000000 00000701 08010e03 00000000 GL_VENDOR: etnaviv Gcmd 00000030: 08010e02 00000701 48000000 00000701 L_RENDERER: Vivante GC880 rev cmd 00000040: 08010e00 00000001 40000017 00002000 5124 GL_VERSION: OpenGL cmd 00000050: 08010e03 00000008 08010e02 00000701 ES 2.0 Mesa 17.2.4 ============cmd 00000060: 48000000 00000701 08010e01 00000040 ================================cmd 00000070: 380000c8 00000701 40000002 00000070 =========== cmd 00000080: 40000013 00002000 40000002 00000080 ... cmd 00000130: 48000000 00000701 08010e01 00000040 stream link to 0x000000c0 @ 0x00002000 71042000 cmd 00000000: 08010e13 00000000 08010e05 00000001 ... cmd 00000110: 40000007 000000c0 link op: 71040070 addr: 0x00000080 back: 0x000000c0 event: 0 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 etnaviv-gpu f0090000.gpu: MMU fault status 0x00002000 etnaviv-gpu f0090000.gpu: MMU 0 fault addr 0x00000000 etnaviv-gpu f0090000.gpu: MMU 1 fault addr 0x00000000 etnaviv-gpu f0090000.gpu: MMU 2 fault addr 0x00000000 etnaviv-gpu f0090000.gpu: MMU 3 fault addr 0x0082a000 cmd 00000000: 40000008 00000010 40000002 00000000 ... cmd 00000130: 48000000 00000701 08010e01 00000040 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 cmd 00000000: 40000008 00000010 40000002 00000000 ... cmd 00000130: 48000000 00000701 08010e01 00000040 stream link to 0x000000f8 @ 0x00003000 71043000 cmd 00000000: 08010e13 00000000 08010e05 00000001 cmd 00000010: 08010382 00000031 0801028b 34000001 cmd 00000020: 080105ae 00000000 40000007 000000f8 link op: 710400e8 addr: 0x00003000 back: 0x000000f8 event: 1 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 cmd 00000000: 40000008 00000010 40000002 00000000 ... cmd 00000130: 48000000 00000701 08010e01 00000040 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 cmd 00000000: 40000008 00000010 40000002 00000000 ... cmd 00000130: 48000000 00000701 08010e01 00000040 stream link to 0x00000170 @ 0x00004000 71044000 cmd 00000000: 0804048a 00040000 00001e00 00000000 ... cmd 00000090: 40000007 00000170 link op: 71040120 addr: 0x00000130 back: 0x00000170 event: 2 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 cmd 00000000: 40000008 00000010 40000002 00000000 ... cmd 00000130: 08010061 00000118 08010e02 00000701 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 cmd 00000000: 40000008 00000010 40000002 00000000 ... cmd 00000130: 08010061 00000118 08010e02 00000701 stream link to 0x000001e0 @ 0x00005000 71045000 cmd 00000000: 08010e13 00000000 08010e05 00000001 cmd 00000010: 08010382 00000031 0801028b 34000001 cmd 00000020: 080105ae 00000000 40000007 000001e0 link op: 71040190 addr: 0x000001a0 back: 0x000001e0 event: 3 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 cmd 00000000: 40000008 00000010 40000002 00000000 ... cmd 00000130: 08010061 00000118 08010e02 00000701 [build] use-vbo=false:etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 cmd 00000000: 40000008 00000010 40000002 00000000 ... ^C <-- Ctrl-C # [drm:udl_drm_gem_mmap] flags = 0x1 [drm:drm_mode_addfb] [FB:31] [drm:drm_mode_setcrtc] [CRTC:28:crtc-0] [drm:drm_mode_setcrtc] [CONNECTOR:30:DVI-I-1] [drm:drm_crtc_helper_set_config] [drm:drm_crtc_helper_set_config] [CRTC:28:crtc-0] [FB:31] #connectors=1 (x y) (0 0) [drm:drm_crtc_helper_set_config] crtc has no fb, full mode set [drm:drm_crtc_helper_set_config] connector dpms not on, full mode switch [drm:drm_crtc_helper_set_config] encoder changed, full mode switch [drm:drm_crtc_helper_set_config] crtc changed, full mode switch [drm:drm_crtc_helper_set_config] [CONNECTOR:30:DVI-I-1] to [CRTC:28:crtc-0] [drm:drm_crtc_helper_set_config] attempting to set mode from userspace [drm:drm_mode_debug_printmodeline] Modeline 44:"" 0 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x0 0x5 [drm:drm_crtc_helper_set_mode] [CRTC:28:crtc-0] [drm:drm_crtc_helper_set_mode] [ENCODER:29:TMDS-29] set [MODE:44:] [drm] write mode info 153 [drm:drm_crtc_helper_set_config] Setting connector DPMS state to on [drm:drm_crtc_helper_set_config] [CONNECTOR:30:DVI-I-1] set DPMS on [drm] write mode info 153 [drm:udl_attach_dma_buf] [DEV:soc:gpu-subsystem] size:8298496 [drm:udl_map_dma_buf] [DEV:soc:gpu-subsystem] size:8298496 dir=0 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0
On 04-12-2017 14:53, Alexey Brodkin wrote:
> Full log you may find below.
Sorry but I meant /var/log/Xorg.0.log file.
Hi Jose, On Mon, 2017-12-04 at 15:55 +0000, Jose Abreu wrote: > On 04-12-2017 14:53, Alexey Brodkin wrote: > > > > Full log you may find below. > > Sorry but I meant /var/log/Xorg.0.log file. Ooops... sorry... here is it. -Alexey # cat /var/log/Xorg.0.log [ 30.345] X.Org X Server 1.19.5 Release Date: 2017-10-12 [ 30.345] X Protocol Version 11, Revision 0 [ 30.345] Build Operating System: Linux 3.10.0-514.el7.x86_64 x86_64 [ 30.346] Current Operating System: Linux axs103 4.14.2-00008-g95be6f762b7f-dirty #68 SMP PREEMPT Mon Dec 4 16:12:46 MSK 2017 arc [ 30.346] Kernel command line: earlycon=uart8250,mmio32,0xf0005000,115200n8 console=ttyS0,115200n8 debug print-fatal-signals=1 drm.debug=0x1e [ 30.346] Build Date: 01 December 2017 12:21:28PM [ 30.346] [ 30.346] Current version of pixman: 0.34.0 [ 30.346] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 30.346] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 30.346] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 1 00:00:30 1970 [ 30.346] (==) Using config file: "/etc/X11/xorg.conf" [ 30.346] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 30.347] (==) No Layout section. Using the first Screen section. [ 30.347] (==) No screen section available. Using defaults. [ 30.347] (**) |-->Screen "Default Screen Section" (0) [ 30.347] (**) | |-->Monitor "<default monitor>" [ 30.348] (==) No device specified for screen "Default Screen Section". Using the first device section listed. [ 30.348] (**) | |-->Device "Driver0" [ 30.348] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 30.349] (==) Not automatically adding devices [ 30.349] (==) Not automatically enabling devices [ 30.349] (==) Not automatically adding GPU devices [ 30.349] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 30.349] (WW) The directory "/usr/share/fonts/X11//TTF/" does not exist. [ 30.349] Entry deleted from font path. [ 30.349] (WW) The directory "/usr/share/fonts/X11//OTF/" does not exist. [ 30.349] Entry deleted from font path. [ 30.349] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11//100dpi/". [ 30.349] Entry deleted from font path. [ 30.349] (Run 'mkfontdir' on "/usr/share/fonts/X11//100dpi/"). [ 30.349] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11//75dpi/". [ 30.349] Entry deleted from font path. [ 30.350] (Run 'mkfontdir' on "/usr/share/fonts/X11//75dpi/"). [ 30.350] (==) FontPath set to: /usr/share/fonts/X11//misc/, /usr/share/fonts/X11//Type1/ [ 30.350] (==) ModulePath set to "/usr/lib/xorg/modules" [ 30.350] (==) |-->Input Device "<default pointer>" [ 30.350] (==) |-->Input Device "<default keyboard>" [ 30.350] (==) No Layout section. Using the default mouse configuration. [ 30.350] (==) No Layout section. Using the default keyboard configuration. [ 30.350] (II) Loader magic: 0x178528 [ 30.350] (II) Module ABI versions: [ 30.350] X.Org ANSI C Emulation: 0.4 [ 30.350] X.Org Video Driver: 23.0 [ 30.350] X.Org XInput driver : 24.1 [ 30.350] X.Org Server Extension : 10.0 [ 30.350] (II) LoadModule: "armada" [ 30.351] (II) Loading /usr/lib/xorg/modules/drivers/armada_drv.so [ 30.352] (II) Module armada: vendor="X.Org Foundation" [ 30.352] compiled for 1.19.5, module version = 0.0.0 [ 30.352] Module class: X.Org Video Driver [ 30.352] ABI class: X.Org Video Driver, version 23.0 [ 30.352] (II) LoadModule: "mouse" [ 30.352] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so [ 30.353] (II) Module mouse: vendor="X.Org Foundation" [ 30.353] compiled for 1.19.5, module version = 1.9.2 [ 30.353] Module class: X.Org XInput Driver [ 30.353] ABI class: X.Org XInput driver, version 24.1 [ 30.353] (II) LoadModule: "kbd" [ 30.353] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so [ 30.353] (II) Module kbd: vendor="X.Org Foundation" [ 30.353] compiled for 1.19.5, module version = 1.9.0 [ 30.354] Module class: X.Org XInput Driver [ 30.354] ABI class: X.Org XInput driver, version 24.1 [ 30.354] (II) armada: Support for Marvell LCD Controller: 88AP510 [ 30.354] (II) armada: Support for Freescale IPU: i.MX6 [ 30.354] (II) armada: Support DisplayLink USB2.0: UDL [ 30.354] (--) using VT number 2 [ 30.354] (WW) Falling back to old probe method for armada [ 30.357] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 30.357] (II) armada(0): hardware: udl [ 30.357] (II) armada(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 [ 30.357] (==) armada(0): Depth 24, (--) framebuffer bpp 32 [ 30.357] (==) armada(0): RGB weight 888 [ 30.357] (==) armada(0): Default visual is TrueColor [ 30.358] (**) armada(0): Option "XvAccel" "TRUE" [ 30.358] (**) armada(0): Option "XvPreferOverlay" "TRUE" [ 30.358] (**) armada(0): Option "UseGPU" "TRUE" [ 30.358] (**) armada(0): Option "AccelModule" "etnadrm_gpu" [ 30.358] (II) Loading sub module "etnadrm_gpu" [ 30.358] (II) LoadModule: "etnadrm_gpu" [ 30.358] (II) Loading /usr/lib/xorg/modules/drivers/etnadrm_gpu.so [ 30.359] (II) Module Etnaviv GPU driver (DRM): vendor="X.Org Foundation" [ 30.359] compiled for 1.19.5, module version = 0.0.0 [ 30.359] ABI class: X.Org ANSI C Emulation, version 0.4 [ 30.359] (**) armada(0): Option "DRI" "TRUE" [ 30.558] (II) armada(0): Output DVI1 has no monitor section [ 30.727] (II) armada(0): EDID for output DVI1 [ 30.727] (II) armada(0): Manufacturer: DEL Model: 4072 Serial#: 1110979404 [ 30.727] (II) armada(0): Year: 2011 Week: 32 [ 30.728] (II) armada(0): EDID Version: 1.3 [ 30.728] (II) armada(0): Digital Display Input [ 30.728] (II) armada(0): Max Image Size [cm]: horiz.: 51 vert.: 29 [ 30.728] (II) armada(0): Gamma: 2.20 [ 30.728] (II) armada(0): DPMS capabilities: StandBy Suspend Off [ 30.728] (II) armada(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 [ 30.728] (II) armada(0): First detailed timing is preferred mode [ 30.728] (II) armada(0): redX: 0.638 redY: 0.330 greenX: 0.312 greenY: 0.623 [ 30.728] (II) armada(0): blueX: 0.150 blueY: 0.068 whiteX: 0.313 whiteY: 0.329 [ 30.728] (II) armada(0): Supported established timings: [ 30.728] (II) armada(0): 720x400@70Hz [ 30.728] (II) armada(0): 640x480@60Hz [ 30.728] (II) armada(0): 640x480@75Hz [ 30.728] (II) armada(0): 800x600@60Hz [ 30.728] (II) armada(0): 800x600@75Hz [ 30.728] (II) armada(0): 1024x768@60Hz [ 30.729] (II) armada(0): 1024x768@75Hz [ 30.729] (II) armada(0): 1280x1024@75Hz [ 30.729] (II) armada(0): Manufacturer's mask: 0 [ 30.729] (II) armada(0): Supported standard timings: [ 30.729] (II) armada(0): #0: hsize: 1152 vsize 864 refresh: 75 vid: 20337 [ 30.729] (II) armada(0): #1: hsize: 1280 vsize 1024 refresh: 60 vid: 32897 [ 30.729] (II) armada(0): #2: hsize: 1920 vsize 1080 refresh: 60 vid: 49361 [ 30.729] (II) armada(0): Supported detailed timing: [ 30.729] (II) armada(0): clock: 148.5 MHz Image Size: 510 x 287 mm [ 30.729] (II) armada(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0 [ 30.729] (II) armada(0): v_active: 1080 v_sync: 1084 v_sync_end 1089 v_blanking: 1125 v_border: 0 [ 30.729] (II) armada(0): Serial No: 59DJP189B83L [ 30.729] (II) armada(0): Monitor name: DELL U2312HM [ 30.729] (II) armada(0): Ranges: V min: 56 V max: 76 Hz, H min: 30 H max: 83 kHz, PixClock max 175 MHz [ 30.729] (II) armada(0): EDID (in hex): [ 30.729] (II) armada(0): 00ffffffffffff0010ac72404c333842 [ 30.729] (II) armada(0): 2015010380331d78ea6ea5a3544f9f26 [ 30.730] (II) armada(0): 115054a54b00714f8180d1c001010101 [ 30.730] (II) armada(0): 010101010101023a801871382d40582c [ 30.730] (II) armada(0): 4500fe1f1100001e000000ff00353944 [ 30.730] (II) armada(0): 4a503138394238334c0a000000fc0044 [ 30.730] (II) armada(0): 454c4c205532333132484d0a000000fd [ 30.730] (II) armada(0): 00384c1e5311000a2020202020200060 [ 30.730] (II) armada(0): Printing probed modes for output DVI1 [ 30.730] (II) armada(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP) [ 30.730] (II) armada(0): Modeline "1280x1024"x75.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e) [ 30.731] (II) armada(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e) [ 30.731] (II) armada(0): Modeline "1152x864"x75.0 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync (67.5 kHz e) [ 30.731] (II) armada(0): Modeline "1024x768"x75.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e) [ 30.731] (II) armada(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e) [ 30.731] (II) armada(0): Modeline "800x600"x75.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e) [ 30.731] (II) armada(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e) [ 30.731] (II) armada(0): Modeline "640x480"x75.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e) [ 30.731] (II) armada(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e) [ 30.731] (II) armada(0): Modeline "720x400"x70.1 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e) [ 30.731] (II) armada(0): Output DVI1 connected [ 30.731] (II) armada(0): Using exact sizes for initial modes [ 30.732] (II) armada(0): Output DVI1 using initial mode 1920x1080 +0+0 [ 30.732] (==) armada(0): Using gamma correction (1.0, 1.0, 1.0) [ 30.732] (==) armada(0): DPI set to (96, 96) [ 30.732] (II) Loading sub module "fb" [ 30.732] (II) LoadModule: "fb" [ 30.732] (II) Loading /usr/lib/xorg/modules/libfb.so [ 30.734] (II) Module fb: vendor="X.Org Foundation" [ 30.734] compiled for 1.19.5, module version = 1.0.0 [ 30.734] ABI class: X.Org ANSI C Emulation, version 0.4 [ 30.734] (==) Depth 24 pixmap format is 32 bpp [ 30.757] (**) armada(0): Option "HWcursor" "TRUE" [ 30.757] (**) armada(0): Option "HotPlug" "TRUE" [ 30.758] (==) armada(0): Backing store enabled [ 30.758] (==) armada(0): Silken mouse enabled [ 30.758] (--) armada(0): Vivante GC880 GPU revision 5124 (etnaviv) 2d PE2.0 [ 30.759] (II) armada(0): [DRI2] Setup complete [ 30.759] (II) armada(0): [DRI2] DRI driver: etnaviv [ 30.759] (II) armada(0): direct rendering: DRI2 enabled [ 30.759] (II) armada(0): No hardware cursor support - disabling hardware cursors [ 30.759] (II) armada(0): RandR 1.2 enabled, ignore the following RandR disabled message. [ 30.760] (==) armada(0): DPMS enabled [ 30.763] (II) armada(0): etnaviv: Xv: using YUY2 format intermediate YUV target [ 30.917] (--) RandR disabled [ 30.932] (II) armada(0): etnaviv: A8 target not supported [ 30.932] (II) armada(0): Setting screen physical size to 508 x 285 [ 31.175] (II) Using input driver 'mouse' for '<default pointer>' [ 31.175] (**) Option "CorePointer" "on" [ 31.175] (**) <default pointer>: always reports core events [ 31.175] (WW) <default pointer>: No Device specified, looking for one... [ 31.175] (EE) <default pointer>: Cannot find which device to use. [ 31.175] (==) <default pointer>: Protocol: "Auto" [ 31.175] (**) <default pointer>: always reports core events [ 31.175] (EE) xf86OpenSerial: No Device specified. [ 31.176] (EE) <default pointer>: cannot open input device [ 31.176] (EE) PreInit returned 2 for "<default pointer>" [ 31.176] (II) UnloadModule: "mouse" [ 31.176] (II) Using input driver 'kbd' for '<default keyboard>' [ 31.176] (**) Option "CoreKeyboard" "on" [ 31.176] (**) <default keyboard>: always reports core events [ 31.176] (**) <default keyboard>: always reports core events [ 31.176] (**) Option "Protocol" "standard" [ 31.176] (**) Option "XkbRules" "base" [ 31.176] (**) Option "XkbModel" "pc105" [ 31.176] (**) Option "XkbLayout" "us" [ 31.176] (II) XINPUT: Adding extended input device "<default keyboard>" (type: KEYBOARD, id 6) [ 54.810] (II) UnloadModule: "kbd" [ 55.265] (--) armada(0): Vivante GC880 GPU revision 5124 (etnaviv) 2d PE2.0 [ 55.265] (II) armada(0): [DRI2] Setup complete [ 55.265] (II) armada(0): [DRI2] DRI driver: etnaviv [ 55.265] (II) armada(0): direct rendering: DRI2 enabled [ 55.266] (II) armada(0): No hardware cursor support - disabling hardware cursors [ 55.266] (II) armada(0): RandR 1.2 enabled, ignore the following RandR disabled message. [ 55.266] (==) armada(0): DPMS enabled [ 55.269] (II) armada(0): etnaviv: Xv: using YUY2 format intermediate YUV target [ 55.410] (--) RandR disabled [ 55.425] (II) armada(0): etnaviv: A8 target not supported [ 55.425] (II) armada(0): Setting screen physical size to 508 x 285 [ 55.648] (II) Using input driver 'mouse' for '<default pointer>' [ 55.648] (**) Option "CorePointer" "on" [ 55.648] (**) <default pointer>: always reports core events [ 55.649] (WW) <default pointer>: No Device specified, looking for one... [ 55.649] (EE) <default pointer>: Cannot find which device to use. [ 55.649] (==) <default pointer>: Protocol: "Auto" [ 55.649] (**) <default pointer>: always reports core events [ 55.649] (EE) xf86OpenSerial: No Device specified. [ 55.649] (EE) <default pointer>: cannot open input device [ 55.649] (EE) PreInit returned 2 for "<default pointer>" [ 55.649] (II) UnloadModule: "mouse" [ 55.649] (II) Using input driver 'kbd' for '<default keyboard>' [ 55.649] (**) Option "CoreKeyboard" "on" [ 55.649] (**) <default keyboard>: always reports core events [ 55.649] (**) <default keyboard>: always reports core events [ 55.649] (**) Option "Protocol" "standard" [ 55.649] (**) Option "XkbRules" "base" [ 55.650] (**) Option "XkbModel" "pc105" [ 55.650] (**) Option "XkbLayout" "us"
On 04-12-2017 16:00, Alexey Brodkin wrote: > [ 30.763] (II) armada(0): etnaviv: Xv: using YUY2 format intermediate YUV target > I'm wondering if this means that target format for UDL is YUV ... But anyway, I revisited your first email and noticed that you said kmscube runs fine. Is this using etnaviv as renderer? And you also said X is claiming the screen but nothing appears ... which X client are you using to test this?
Hi Jose, On Mon, 2017-12-04 at 17:24 +0000, Jose Abreu wrote: > On 04-12-2017 16:00, Alexey Brodkin wrote: > > > > [ 30.763] (II) armada(0): etnaviv: Xv: using YUY2 format intermediate YUV target > > > > I'm wondering if this means that target format for UDL is YUV ... > > But anyway, I revisited your first email and noticed that you > said kmscube runs fine. Is this using etnaviv as renderer? Indeed, in case of kmscube etnaviv is a renderer while UDL outputs the picture on the screen. > And > you also said X is claiming the screen but nothing appears ... > which X client are you using to test this? Well it might be seen from my full log. I just start X with "X&" command and then execute things like "xclock". So not sure who is a client in that case. -Alexey
On 4 December 2017 at 14:02, Jose Abreu <Jose.Abreu@synopsys.com> wrote: > On 04-12-2017 13:16, Alexey Brodkin wrote: >> Option "kmsdev" "/dev/dri/card1" > > Which drm driver uses /dev/dri/card0? I'm seing drmOpen code and > if you don't specify the busID it will fallback for the first > card that matches "armada-drm" or "imx-drm" or "udl". > As you've noticed, drmOpen can give you some 'nice' side-effects. I'd recommend getting a list of devices with drmGetDevice{,s}2 and applying $heuristics to filter the device you want. -Emil
Hi Alexey, On 04-12-2017 17:29, Alexey Brodkin wrote: > > Indeed, in case of kmscube etnaviv is a renderer while UDL > outputs the picture on the screen. Thats nice :) Ok, from your logs I was not able to see anything wrong. X server does not error exit and Prime seems to be working in DRM ... Lets try one more thing: Enable all debug in DRM (drm.debug=0x3f) and try to correlate the log with the actions. i.e. [boot] [log] [x start] [log] [xclock start] [log] [glmark2-es2 start] [log] If that does not give any more info then maybe someone with better understanding of etnaviv, UDL and X can help (maybe cc X devel list also ...) Best Regards, Jose Miguel Abreu
Hi Jose, On Tue, 2017-12-05 at 10:39 +0000, Jose Abreu wrote: > Hi Alexey, > > On 04-12-2017 17:29, Alexey Brodkin wrote: > > > > > > Indeed, in case of kmscube etnaviv is a renderer while UDL > > outputs the picture on the screen. > > Thats nice :) > > Ok, from your logs I was not able to see anything wrong. X server > does not error exit and Prime seems to be working in DRM ... > > Lets try one more thing: Enable all debug in DRM (drm.debug=0x3f) > and try to correlate the log with the actions. i.e. > > [boot] > [log] > [x start] > [log] > [xclock start] > [log] > [glmark2-es2 start] > [log] I think I have something like that. Below are extracts which show at least one difference I was able to find. And that difference is presence of "[drm:udl_drm_gem_mmap] flags = 0x1" in case of Xserver only. kmscube: -------------------------->8--------------------------- [drm:drm_crtc_helper_set_config] encoder changed, full mode switch [drm:drm_crtc_helper_set_config] crtc changed, full mode switch [drm:drm_crtc_helper_set_config] [CONNECTOR:30:DVI-I-1] to [CRTC:28:crtc-0] [drm:drm_crtc_helper_set_config] attempting to set mode from userspace [drm:drm_mode_debug_printmodeline] Modeline 44:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5 [drm:drm_crtc_helper_set_mode] [CRTC:28:crtc-0] [drm:drm_crtc_helper_set_mode] [ENCODER:29:TMDS-29] set [MODE:44:1920x1080] [drm] write mode info 153 [drm:drm_crtc_helper_set_config] Setting connector DPMS state to on [drm:drm_crtc_helper_set_config] [CONNECTOR:30:DVI-I-1] set DPMS on [drm:udl_attach_dma_buf] [DEV:soc:gpu-subsystem] size:8355840 [drm:udl_map_dma_buf] [DEV:soc:gpu-subsystem] size:8355840 dir=0 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 stream link to 0x000000a8 @ 0x00002000 71042000 -------------------------->8--------------------------- X: -------------------------->8--------------------------- [drm:udl_drm_gem_mmap] flags = 0x1 [drm:drm_mode_addfb] [FB:43] [drm:drm_mode_setcrtc] [CRTC:28:crtc-0] [drm:drm_mode_setcrtc] [CONNECTOR:30:DVI-I-1] [drm:drm_crtc_helper_set_config] [drm:drm_crtc_helper_set_config] [CRTC:28:crtc-0] [FB:43] #connectors=1 (x y) (0 0) [drm:drm_crtc_helper_set_config] crtc has no fb, full mode set [drm:drm_crtc_helper_set_config] connector dpms not on, full mode switch [drm:drm_crtc_helper_set_config] encoder changed, full mode switch [drm:drm_crtc_helper_set_config] crtc changed, full mode switch [drm:drm_crtc_helper_set_config] [CONNECTOR:30:DVI-I-1] to [CRTC:28:crtc-0] [drm:drm_crtc_helper_set_config] attempting to set mode from userspace [drm:drm_mode_debug_printmodeline] Modeline 44:"" 0 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x0 0x5 [drm:drm_crtc_helper_set_mode] [CRTC:28:crtc-0] [drm:drm_crtc_helper_set_mode] [ENCODER:29:TMDS-29] set [MODE:44:] [drm] write mode info 153 [drm:drm_crtc_helper_set_config] Setting connector DPMS state to on [drm:drm_crtc_helper_set_config] [CONNECTOR:30:DVI-I-1] set DPMS on [drm] write mode info 153 [drm:udl_attach_dma_buf] [DEV:soc:gpu-subsystem] size:8298496 [drm:udl_map_dma_buf] [DEV:soc:gpu-subsystem] size:8298496 dir=0 etnaviv-gpu f0090000.gpu: virt 71040000 phys 0x00000000 free 0x00001ec0 stream link to 0x000001e8 @ 0x00002000 71042000 -------------------------->8--------------------------- > If that does not give any more info then maybe someone with > better understanding of etnaviv, UDL and X can help From my note above about udl_drm_gem_mmap() being only used in case of Xserver I barely may conclude anything. Given my lack of knowledge of DRM guts especially when it comes to complicated cases with DMA buffer exports/imports I cannot say immediately if that's just improper implementation of udl_drm_gem_mmap() or not. Even though I do see some differences between implementation of file_operations->mmap() callback in UDL and say exynos_drm_gem_mmap() or qxl_mmap() it's not clear why this and that implementation was done. > (maybe cc X devel list also ...) Well at this point I think its purely a UDL driver problem because if we swap UDL to imx-drm on Wandboard everything works perfectly fine! -Alexey
On 05-12-2017 11:53, Alexey Brodkin wrote: > > From my note above about udl_drm_gem_mmap() being only used in case of Xserver > I barely may conclude anything. Given my lack of knowledge of DRM guts > especially > when it comes to complicated cases with DMA buffer exports/imports I cannot say > immediately if that's just improper implementation of > udl_drm_gem_mmap() or not. > Even though I do see some differences between implementation of file_operations->mmap() > callback in UDL and > say exynos_drm_gem_mmap() or qxl_mmap() it's not clear > why this and that implementation was done. Oh, I've seen this before. This is the same thing that arcpgu used to do in the mmap callback! Please comment out the call to update_vm_cache_attr() in the mmap callback and check if it works.
Hi Jose, On Tue, 2017-12-05 at 12:26 +0000, Jose Abreu wrote: > On 05-12-2017 11:53, Alexey Brodkin wrote: > > > > > > From my note above about udl_drm_gem_mmap() being only used in case of Xserver > > I barely may conclude anything. Given my lack of knowledge of DRM guts > > especially > > when it comes to complicated cases with DMA buffer exports/imports I cannot say > > immediately if that's just improper implementation of > > udl_drm_gem_mmap() or not. > > Even though I do see some differences between implementation of file_operations->mmap() > > callback in UDL and > > say exynos_drm_gem_mmap() or qxl_mmap() it's not clear > > why this and that implementation was done. > > Oh, I've seen this before. This is the same thing that arcpgu > used to do in the mmap callback! Please comment out the call to > update_vm_cache_attr() in the mmap callback and check if it works. Actually I did it as the first thing when I spotted it in udl_drm_gem_mmap(). But that made no difference at all :( -Alexey
--- a/src/armada_module.c +++ b/src/armada_module.c @@ -26,7 +26,7 @@ #define ARMADA_NAME "armada" #define ARMADA_DRIVER_NAME "armada" -#define DRM_MODULE_NAMES "armada-drm", "imx-drm" +#define DRM_MODULE_NAMES "armada-drm", "imx-drm", "udl" #define DRM_DEFAULT_BUS_ID NULL static const char *drm_module_names[] = { DRM_MODULE_NAMES }; @@ -43,6 +43,11 @@ static SymTabRec ipu_chipsets[] = { { -1, NULL } }; +static SymTabRec udl_chipsets[] = { + { 0, "UDL" }, + { -1, NULL } +}; + static const OptionInfoRec * const options[] = { armada_drm_options, common_drm_options, @@ -115,6 +120,8 @@ static void armada_identify(int flags) armada_chipsets); xf86PrintChipsets(ARMADA_NAME, "Support for Freescale IPU", ipu_chipsets); + xf86PrintChipsets(ARMADA_NAME, "Support DisplayLink USB2.0", + udl_chipsets); } ----------------------->8---------------------- -Alexey _______________________________________________