cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fengkk_jake
Observer
Observer
808 Views
Registered: ‎02-18-2019

petalinux 2018.3 how to run Xorg on two graphic cards simultaneously

Hi !

My customed zynqmp(xczu5ev) board have two graphic cards.  The version of petalinux  is 2018.3.  Each graphic card works fine with Xorg individually.  I want to run Xorg on both graphic cards simultaneously, but there is only one graphic card work.  How can i  achieve it?

the xorg.conf i use is:

 

Section "Monitor"
  Identifier "Monitor-0"
  Option "DPMS" "true"
  Option "Primary"  "1"
EndSection

Section "Device"
	Identifier	"Device-0"
	Driver		"armsoc"
	BusID       "a0050000.v_mix" 
	Option		"DRICard"		"0"
	Option		"DRI2"			"true"
	Option		"DRI2_PAGE_FLIP"	"false"
	Option		"DRI2_WAIT_VSYNC"	"true"
	Option		"SWcursorLCD"		"false"
	Option		"DEBUG"			"true"
	Option		"DPMS"			"false"
EndSection

Section "Screen"
	Identifier	"Screen-0"
	Device		"Device-0"
	Monitor		"Monitor-0"
	DefaultDepth	24
EndSection

Section "Monitor"
  Identifier "Monitor-1"
  Option "DPMS" "true"
EndSection

Section "Device"
	Identifier	"Device-1"
	Driver		"armsoc"
	BusID       "a0040000.v_mix" 
	Option		"DRICard"		"1"
	Option		"DRI2"			"true"
	Option		"DRI2_PAGE_FLIP"	"false"
	Option		"DRI2_WAIT_VSYNC"	"true"
	Option		"SWcursorLCD"		"false"
	Option		"DEBUG"			"true"
	Option		"DPMS"			"false"
EndSection

Section "Screen"
	Identifier	"Screen-1"
	Device		"Device-1"
	Monitor		"Monitor-1"
	DefaultDepth	24 
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen-0" 0 0
    Screen 1 "Screen-1" 0 0
    #Screen 1 "Screen-1" Relative "Screen-0" 0 0
    #Screen 1 "Screen-1" LeftOf "Screen-0"
    Option          "StandbyTime"           "0"
    Option          "SuspendTime"           "0"
    Option          "OffTime"               "0"
    Option          "BlankTime"             "0"
EndSection 

 

/var/log/Xorg.log:

cat /var/log/Xorg.0.log
[  4026.700] X.Org X Server 1.19.3 Release Date: 2017-03-15
[  4026.701] X Protocol Version 11, Revision 0
[  4026.701] Build Operating System: Linux 3.10.0-327.el7.x86_64 x86_64 
[  4026.701] Current Operating System: Linux zcu106_vcu_trd 4.14.0 #2 SMP Thu Jul 25 09:18:48 UTC 2019 aarch64
[  4026.701] Kernel command line: earlycon clk_ignore_unused
[  4026.701] Build Date: 03 December 2018  09:43:45PM
[  4026.701]  
[  4026.701] Current version of pixman: 0.34.0
[  4026.701]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  4026.701] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  4026.702] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 12 11:21:03 2102
[  4026.703] (==) Using config file: "/etc/X11/xorg.conf"
[  4026.703] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  4026.703] (==) ServerLayout "X.org Configured"
[  4026.703] (**) |-->Screen "Screen-0" (0)
[  4026.703] (**) |   |-->Monitor "Monitor-0"
[  4026.703] (**) |   |-->Device "Device-0"
[  4026.704] (**) |-->Screen "Screen-1" (1)
[  4026.704] (**) |   |-->Monitor "Monitor-1"
[  4026.704] (**) |   |-->Device "Device-1"
[  4026.704] (==) Automatically adding devices
[  4026.704] (==) Automatically enabling devices
[  4026.704] (==) Automatically adding GPU devices
[  4026.704] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  4026.704] (WW) The directory "/usr/share/fonts/X11/misc/" does not exist.
[  4026.704]    Entry deleted from font path.
[  4026.704] (WW) The directory "/usr/share/fonts/X11/TTF/" does not exist.
[  4026.704]    Entry deleted from font path.
[  4026.704] (WW) The directory "/usr/share/fonts/X11/OTF/" does not exist.
[  4026.704]    Entry deleted from font path.
[  4026.704] (WW) The directory "/usr/share/fonts/X11/Type1/" does not exist.
[  4026.704]    Entry deleted from font path.
[  4026.704] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[  4026.704]    Entry deleted from font path.
[  4026.704] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[  4026.704]    Entry deleted from font path.
[  4026.704] (==) FontPath set to:

[  4026.704] (==) ModulePath set to "/usr/lib/xorg/modules"
[  4026.704] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  4026.704] (II) Loader magic: 0x5bfc00
[  4026.704] (II) Module ABI versions:
[  4026.704]    X.Org ANSI C Emulation: 0.4
[  4026.704]    X.Org Video Driver: 23.0
[  4026.704]    X.Org XInput driver : 24.1
[  4026.704]    X.Org Server Extension : 10.0
[  4026.705] (II) xfree86: Adding drm device (/dev/dri/card1)
[  4026.705] (II) xfree86: Adding drm device (/dev/dri/card0)
[  4026.713] (II) xfree86: Adding drm device (/dev/dri/card2)
[  4026.713] (II) no primary bus or device found
[  4026.713]    falling back to /sys/devices/platform/amba_pl@0/a0040000.v_mix/drm/card1
[  4026.713] (II) LoadModule: "glx"
[  4026.714] (WW) Warning, couldn't open module glx
[  4026.714] (II) UnloadModule: "glx"
[  4026.714] (II) Unloading glx
[  4026.714] (EE) Failed to load module "glx" (module does not exist, 0)
[  4026.714] (II) LoadModule: "armsoc"
[  4026.714] (II) Loading /usr/lib/xorg/modules/drivers/armsoc_drv.so
[  4026.714] (II) Module armsoc: vendor="X.Org Foundation"
[  4026.714]    compiled for 1.19.3, module version = 1.4.1
[  4026.714]    Module class: X.Org Video Driver
[  4026.714]    ABI class: X.Org Video Driver, version 23.0
[  4026.714] (II) ARMSOC: Driver for ARM Mali compatible chipsets
[  4026.714] (--) using VT number 3

[  4026.739] (WW) Falling back to old probe method for armsoc
[  4026.739] (II) No BusID or DriverName specified - opening /dev/dri/card0
[  4026.739] (II) Got BusID a0050000.v_mix
[  4026.763] (II) Opened DRM
[  4026.763] (II)    DeviceName is [/dev/dri/card0]
[  4026.763] (II)    bus_id is [a0050000.v_mix]
[  4026.763] (II)    DriverName is [xlnx]
[  4026.763] (II)    version is [1.0.0]
[  4026.763] (II) Screen:0,  CRTC:0
[  4026.780] (II) No BusID or DriverName specified - opening /dev/dri/card1
[  4026.780] (II) Got BusID a0040000.v_mix
[  4026.813] (II) Opened DRM
[  4026.813] (II)    DeviceName is [/dev/dri/card1]
[  4026.813] (II)    bus_id is [a0040000.v_mix]
[  4026.813] (II)    DriverName is [xlnx]
[  4026.813] (II)    version is [1.0.0]
[  4026.813] (II) Screen:1,  CRTC:1
[  4026.822] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  4026.822] (++) ARMSOC(0): Depth 24, (--) framebuffer bpp 32
[  4026.822] (==) ARMSOC(0): RGB weight 888
[  4026.822] (==) ARMSOC(0): Using gamma correction (1.0, 1.0, 1.0)
[  4026.822] (==) ARMSOC(0): Default visual is TrueColor
[  4026.822] (II) No BusID or DriverName specified - opening /dev/dri/card1
[  4026.822] (II) Got BusID a0040000.v_mix
[  4026.863] (II) Opened DRM
[  4026.863] (II)    DeviceName is [/dev/dri/card1]
[  4026.863] (II)    bus_id is [a0040000.v_mix]
[  4026.863] (II)    DriverName is [xlnx]
[  4026.863] (II)    version is [1.0.0]
[  4026.863] (II) ARMSOC(0): Chipset: Mali
[  4026.863] (**) ARMSOC(0): Option "Debug" "false"
[  4026.863] (**) ARMSOC(0): Option "DRICard" "0"
[  4026.863] (II) ARMSOC(0): Buffer Flipping is Enabled
[  4026.863] (II) ARMSOC(0): umplock is Enabled
[  4026.863] (II) ARMSOC(0): Setting the video modes ...
[  4026.863] (II) ARMSOC(0): Got CRTC: 0 (id: 33)
[  4026.863] (II) ARMSOC(0): Output VGA-2 using monitor section Monitor-0
[  4026.864] (II) ARMSOC(0): Printing probed modes for output VGA-2
[  4026.864] (II) ARMSOC(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz UeP)
[  4026.864] (II) ARMSOC(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[  4026.864] (II) ARMSOC(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[  4026.864] (II) ARMSOC(0): Output VGA-2 connected
[  4026.864] (II) ARMSOC(0): Using user preference for initial modes
[  4026.864] (II) ARMSOC(0): Output VGA-2 using initial mode 1024x768 +0+0
[  4026.864] (II) ARMSOC(0): Got KMS resources
[  4026.864] (==) ARMSOC(0): DPI set to (96, 96)
[  4026.864] (II) Loading sub module "dri2"
[  4026.864] (II) LoadModule: "dri2"
[  4026.864] (II) Module "dri2" already built-in
[  4026.864] (II) Loading sub module "exa"
[  4026.864] (II) LoadModule: "exa"
[  4026.864] (II) Loading /usr/lib/xorg/modules/libexa.so
[  4026.864] (II) Module exa: vendor="X.Org Foundation"
[  4026.864]    compiled for 1.19.3, module version = 2.6.0
[  4026.864]    ABI class: X.Org Video Driver, version 23.0
[  4026.864] (II) Loading sub module "fb"
[  4026.864] (II) LoadModule: "fb"
[  4026.864] (II) Loading /usr/lib/xorg/modules/libfb.so
[  4026.865] (II) Module fb: vendor="X.Org Foundation"
[  4026.865]    compiled for 1.19.3, module version = 1.0.0
[  4026.865]    ABI class: X.Org ANSI C Emulation, version 0.4
[  4026.865] (++) ARMSOC(1): Depth 24, (--) framebuffer bpp 32
[  4026.865] (==) ARMSOC(1): RGB weight 888
[  4026.865] (==) ARMSOC(1): Using gamma correction (1.0, 1.0, 1.0)
[  4026.865] (==) ARMSOC(1): Default visual is TrueColor
[  4026.865] (II) ARMSOC(1): Chipset: Mali
[  4026.865] (**) ARMSOC(1): Option "Debug" "false"
[  4026.865] (**) ARMSOC(1): Option "DRICard" "1"
[  4026.865] (II) ARMSOC(1): Buffer Flipping is Enabled
[  4026.865] (II) ARMSOC(1): umplock is Enabled
[  4026.865] (II) ARMSOC(1): Setting the video modes ...
[  4026.865] (EE) ARMSOC(1): ERROR: Specified more Screens in xorg.conf than there are DRM CRTCs
[  4026.865] (EE) ARMSOC(1): ERROR: Cannot get KMS resources
[  4026.865] (II) UnloadModule: "armsoc"
[  4026.865] (--) Depth 24 pixmap format is 32 bpp
[  4026.866] (II) ARMSOC(0): Soft EXA mode
[  4026.866] (II) EXA(0): Driver allocated offscreen pixmaps
[  4026.866] (II) EXA(0): Driver registered support for the following operations:
[  4026.866] (II)         Solid
[  4026.866] (II)         Copy
[  4026.866] (II)         Composite (RENDER acceleration)
[  4026.866] (II) ARMSOC(0): Setting swap chain size: 2 
[  4026.866] (II) ARMSOC(0): [DRI2] Setup complete
[  4026.866] (II) ARMSOC(0): [DRI2]   DRI driver: armsoc
[  4026.866] (==) ARMSOC(0): Backing store enabled
[  4026.867] (==) ARMSOC(0): Silken mouse enabled
[  4026.867] (II) ARMSOC(0): HW cursor init()
[  4026.922] (II) ARMSOC(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  4026.922] (**) ARMSOC(0): DPMS enabled
[  4026.922] (--) RandR disabled
[  4026.922] (II) ARMSOC(0): Setting screen physical size to 270 x 203

thanks.

 

0 Kudos
0 Replies