Welcome! Log In Create A New Profile

Advanced

Request : XGI Graphics

Posted by Gravelrash 
Re: Request : XGI Graphics
April 27, 2016 08:04PM
I guess there should be no answer and no excuse as there is no need to rush.

Enjoy the process and do as you please.

-syong
Re: Request : XGI Graphics
April 27, 2016 11:48PM
syong Wrote:
-------------------------------------------------------
> I guess there should be no answer and no excuse as
> there is no need to rush.
>
> Enjoy the process and do as you please.

Good attitude :) there is a lot of zen like spirit in there.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Request : XGI Graphics
April 28, 2016 02:39AM
> its over to you bobbafetthotmail, you are the "lead" now for the graphics output, are you willing to go further?

I'll try to hack it, yes. I will probably ask stupid questions to bodhi every now and then about what to write where.

But I agree with syong, the answer to the question "Will there be a driver?" is "Soon(TM)" as I also have a job and other things, and I can change my mind and aliens can abduct me or something else entirely.

Anyway, stay tuned, I will open yet another github repo for this new hacked xgi driver, so everyone that wants to help me hack it can do so.



Edited 1 time(s). Last edit at 04/28/2016 02:40AM by bobafetthotmail.
Re: Request : XGI Graphics
April 29, 2016 05:01PM
@bobbafetthotmail

im going to play with this next week and see if it doesnt offer us some improvements on the fbdev driver. it claims to be a drop in replacement and compatable with the fbdev we already use but with more optimisations - although its primarily aimed at Allwinner and that fruit-Pi thingy



xf86-video-fbturbo - video driver, primarily optimized for the devices powered
by the Allwinner SoC (A10, A13, A20). It can use some of the 2D/3D hardware
acceleration features.

And because this driver is based on xf86-video-fbdev (with none of the
original features stripped), it actually supports all the same hardware
as xf86-video-fbdev. Essentially, xf86-video-fbturbo can be just used as
a drop-in replacement and run on practically any Linux system. There will
be no real difference on x86, but any ARM based system should see better
performance thanks to some additional optimizations (the elimination of
ShadowFB layer, ARM NEON/VFP code for dealing with uncached framebuffer
reads, automatic backing store management for faster window moves)
Re: Request : XGI Graphics
May 01, 2016 11:42AM
Sounds interesting, if it runs on raspi B it should also run in a kirkwood (both lack NEON and hardware floating point).
Re: Request : XGI Graphics
May 09, 2016 03:21AM
been somewhat delayed with my attempts at the display driver - still in Iceland and the toys are in the UK,
Re: Request : XGI Graphics
May 09, 2016 11:02AM
bodhi Wrote:
-----------------------------------------------------
> :) let's make the kernel driver a project for the
> rainy days.

Good news!
I successfully have ported old hp X11 XGIfb driver for recent kernels today. It is builded in to 4.5.2 kernel in my case. Will try to build it as module for bodhi's 4.5.0 and upload it here for everyone interested.

Bad news - I don't see any improvements in feelings. Also I don't know how to measure if acceleration even switched on.
Attachments:
open | download - XGIfb.ko.gz (69.7 KB)
Re: Request : XGI Graphics
May 09, 2016 12:19PM
xssa Wrote:
-------------------------------------------------------
> Bad news - I don't see any improvements in
> feelings. Also I don't know how to measure if
> acceleration even switched on.

I used to use glxgears.

No matter it is good or bad, any news is good.

-syong
Re: Request : XGI Graphics
May 09, 2016 04:00PM
@syong-could you upload it and i will test when i get back to the UK
Re: Request : XGI Graphics
May 11, 2016 01:30PM
Did anyone test XGIfb.ko module against 4.5.0-kirkwood-tld-1?

There was stupid mistake in Makefile that prevent to build it as a kernel module.

My quick look into sources - there are only two accelerated functions for recent kernels: fbcon_XGI_fillrect and fbcon_XGI_copyarea. Can they are used by xorg fbdev driver, who knows?

Gravelrash, look into my previous post.
Re: Request : XGI Graphics
May 11, 2016 02:47PM
@syong - will test this a feeback the result

from what little i understand about the framebuffer and its function, the actions you describe will benefit when fbhwdev is loaded.

so its good to have it in there
Re: Request : XGI Graphics
May 13, 2016 04:15AM
@xssa

in the xorg driver source (look at the link on github some posts above), xgi_dga.c file there is a "XGI_fillrect" function.

I think I read in changelog that they removed something regarding copymem or something like that because it was not accelerated in useful ways.
Re: Request : XGI Graphics
May 16, 2016 02:04PM
@xssa and @syong - apologies chaps for mixing your names round
Re: Request : XGI Graphics
June 03, 2016 01:42PM
bobafetthotmail Wrote:
-------------------------------------------------------
> Anyway, stay tuned, I will open yet another github
> repo for this new hacked xgi driver, so everyone
> that wants to help me hack it can do so.

My effort to go further with xf86-video-xgi is our Z11 is recognised but failed with this Xorg.log:
driver can not unlock registers, can't retrieve DDC data and fall into segfault at the end.

Can we kindly ask Connor Behan for help?
[ 99233.470]
X.Org X Server 1.16.4
Release Date: 2014-12-20
[ 99233.470] X Protocol Version 11, Revision 0
[ 99233.470] Build Operating System: Linux 3.16.0-0.bpo.4-armmp-lpae armv7l Debian
[ 99233.470] Current Operating System: Linux t5325 4.5.2-tld-1 #23 PREEMPT Mon May 9 18:43:11 EEST 2016 armv5tel
[ 99233.470] Kernel command line: console=tty0 console=ttyS0,115200 root=LABEL=rootfs
[ 99233.471] Build Date: 11 February 2015  01:28:48AM
[ 99233.471] xorg-server 2:1.16.4-1 (http://www.debian.org/support)
[ 99233.471] Current version of pixman: 0.32.6
[ 99233.471]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 99233.471] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 99233.472] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun  3 01:07:31 2016
[ 99233.473] (==) Using config file: "/etc/X11/xorg.conf"
[ 99233.473] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 99233.475] (==) ServerLayout "Default Layout"
[ 99233.475] (**) |-->Screen "Primary Screen" (0)
[ 99233.475] (**) |   |-->Monitor "Primary Monitor"
[ 99233.476] (**) |   |-->Device "Driver0"
[ 99233.476] (**) |-->Input Device "Generic Keyboard"
[ 99233.476] (**) Option "DontVTSwitch" "false"
[ 99233.477] (**) Option "DontZap" "false"
[ 99233.477] (**) Option "DontZoom" "true"
[ 99233.477] (==) Automatically adding devices
[ 99233.477] (==) Automatically enabling devices
[ 99233.477] (==) Automatically adding GPU devices
[ 99233.477] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 99233.477]    Entry deleted from font path.
[ 99233.477] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[ 99233.477]    Entry deleted from font path.
[ 99233.478] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 99233.478]    Entry deleted from font path.
[ 99233.478] (**) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        /usr/share/fonts/X11/75dpi,
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        /usr/share/fonts/X11/75dpi,
        built-ins
[ 99233.478] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 99233.478] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 99233.478] (II) Loader magic: 0x7f770f18
[ 99233.478] (II) Module ABI versions:
[ 99233.478]    X.Org ANSI C Emulation: 0.4
[ 99233.478]    X.Org Video Driver: 18.0
[ 99233.478]    X.Org XInput driver : 21.0
[ 99233.478]    X.Org Server Extension : 8.0
[ 99233.481] (--) PCI:*(0:1:0:0) 18ca:0027:18ca:0027 rev 0, Mem @ 0xe0000000/67108864, 0xe4000000/262144, I/O @ 0x00010000/128
[ 99233.481] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 99233.481] (II) LoadModule: "record"
[ 99233.482] (II) Module "record" already built-in
[ 99233.482] (II) LoadModule: "dbe"
[ 99233.482] (II) Module "dbe" already built-in
[ 99233.482] (II) LoadModule: "ddc"
[ 99233.482] (II) Module "ddc" already built-in
[ 99233.482] (II) LoadModule: "dri"
[ 99233.482] (II) Module "dri" already built-in
[ 99233.482] (II) LoadModule: "extmod"
[ 99233.483] (II) Module "extmod" already built-in
[ 99233.483] (II) LoadModule: "glx"
[ 99233.483] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 99233.541] (II) Module glx: vendor="X.Org Foundation"
[ 99233.541]    compiled for 1.16.4, module version = 1.0.0
[ 99233.541]    ABI class: X.Org Server Extension, version 8.0
[ 99233.541] (==) AIGLX enabled
[ 99233.542] (II) LoadModule: "int10"
[ 99233.543] (II) Loading /usr/lib/xorg/modules/libint10.so
[ 99233.543] (II) Module int10: vendor="X.Org Foundation"
[ 99233.543]    compiled for 1.16.4, module version = 1.0.0
[ 99233.544]    ABI class: X.Org Video Driver, version 18.0
[ 99233.544] (II) LoadModule: "vbe"
[ 99233.545] (II) Loading /usr/lib/xorg/modules/libvbe.so
[ 99233.545] (II) Module vbe: vendor="X.Org Foundation"
[ 99233.545]    compiled for 1.16.4, module version = 1.1.0
[ 99233.546]    ABI class: X.Org Video Driver, version 18.0
[ 99233.546] (II) LoadModule: "xgi"
[ 99233.547] (II) Loading /usr/lib/xorg/modules/drivers/xgi_drv.so
[ 99233.548] (II) Module xgi: vendor="X.Org Foundation"
[ 99233.548]    compiled for 1.16.4, module version = 1.6.1
[ 99233.548]    Module class: X.Org Video Driver
[ 99233.548]    ABI class: X.Org Video Driver, version 18.0
[ 99233.548] (II) LoadModule: "evdev"
[ 99233.560] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 99233.562] (II) Module evdev: vendor="X.Org Foundation"
[ 99233.563]    compiled for 1.16.0, module version = 2.9.0
[ 99233.563]    Module class: X.Org XInput Driver
[ 99233.563]    ABI class: X.Org XInput driver, version 21.0
[ 99233.563] (II) XGI: driver for XGI chipsets: Volari V8_V5_V3XT, Volari Z7_Z9_Z9s,
        Volari Z9_Z9s, Volari Z11
[ 99233.563] (--) using VT number 7

[ 99233.660] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 99233.660] XGIPreInit
[ 99233.660] (II) Loading sub module "vgahw"
[ 99233.660] (II) LoadModule: "vgahw"
[ 99233.661] (II) Loading /usr/lib/xorg/modules/libvgahw.so
[ 99233.662] (II) Module vgahw: vendor="X.Org Foundation"
[ 99233.662]    compiled for 1.16.4, module version = 0.1.0
[ 99233.662]    ABI class: X.Org Video Driver, version 18.0
[ 99233.662] (II) XGI(0): XGI driver (01/21/2009)
[ 99233.662] (II) XGI(0): Copyright (C) 2001-2004 Thomas Winischhofer <thomas@winischhofer.net> and others
[ 99233.665] (--) XGI(0): This adapter is primary display adapter
[ 99233.665] xgi_driver.c-VGAHWPTR->MapPhys=0x10000...
[ 99233.666] (II) XGI(0): VGA memory map from 0x10000 to 0xb676c000
[ 99233.666] (II) XGI(0): vgaHWGetIOBase: hwp->IOBase is 0x03b0
[ 99233.666] (II) Loading sub module "ramdac"
[ 99233.666] (II) LoadModule: "ramdac"
[ 99233.666] (II) Module "ramdac" already built-in
[ 99233.666] (--) XGI(0): Relocated IO registers at 0xB676C000
[ 99233.666] !!pointer xgi_driver.c-pXGI->xgi_HwDevExt.pjIOAddress=0xb676c030
[ 99233.666] (**) XGI(0): Depth 16, (--) framebuffer bpp 16
[ 99233.666] (==) XGI(0): RGB weight 565
[ 99233.666] (==) XGI(0): Default visual is TrueColor
[ 99233.666] (==) XGI(0): Using gamma correction (1.0, 1.0, 1.0)
[ 99233.666] (EE) XGI(0): **************************************************
[ 99233.666] (EE) XGI(0):                       ERROR:
[ 99233.667] (EE) XGI(0): Failed to unlock sr registers (0x7f8e97c0, b676c000, 0x86; 1)
[ 99233.667] (EE) XGI(0):                   END OF MESSAGE
[ 99233.667] (EE) XGI(0): **************************************************
[ 99233.667] (**) XGI(0): Option "SWcursor" "Off"
[ 99233.667] (**) XGI(0): Option "HWcursor" "On"
[ 99233.667] (**) XGI(0): Option "AccelMethod" "EXA"
[ 99233.667] (**) XGI(0): Option "NoAccel" "0"
[ 99233.667] (**) XGI(0): Option "ShadowFB" "true"
[ 99233.667] (**) XGI(0): Option "DRI" "On"
[ 99233.668] (**) XGI(0): Option "NonDDCDefaultMode" "1280x1024@60"
[ 99233.668] Non-DDC default mode is (1280 x 1024 @ 60 Hz)...
[ 99233.668] Non-DDC default mode is (1280 x 1024 @ 60 Hz)...
[ 99233.668] (**) XGI(0): Using EXA acceleration architecture
[ 99233.668] (**) XGI(0): Using HW cursor
[ 99233.668] (==) XGI(0): TurboQueue enabled
[ 99233.668] (**) XGI(0): Using "Shadow Frame Buffer" - 2D acceleration disabled
[ 99233.668] (**) XGI(0): DRI enabled
[ 99233.669] (--) XGI(0): Detected DRAM type : DDRII DRAM
[ 99233.669] (--) XGI(0): Detected memory clock : 14.318MHz
[ 99233.669] (--) XGI(0): Detected VRAM bus width is 64
[ 99233.669] (--) XGI(0): Detected Cmd Queue size is 128 KB
[ 99233.669] (--) XGI(0): Detected Cmd Queue Offset is 268304384
[ 99233.669] XGI_InitVBIOSData  VBType = 1
[ 99233.669] XGI_New_GetVBType  VBType = 0
[ 99233.669] (--) XGI(0): Linear framebuffer at 0xE0000000
[ 99233.669] (--) XGI(0): MMIO registers at 0xE4000000 (size 64K)
[ 99233.669] (--) XGI(0): VideoRAM: 262144 KB
[ 99233.669] (II) XGI(0): Using 262080K of framebuffer memory
[ 99233.669] (--) XGI(0): CRT2 (VGA) connection detected
[ 99233.669] (II) XGI(0): CRT1 gamma correction is enabled
[ 99233.669] (II) Loading sub module "ddc"
[ 99233.669] (II) LoadModule: "ddc"
[ 99233.675] (II) Module "ddc" already built-in
[ 99233.675] Getting CRT EDID (DAC1-CRT1)...
[ 99233.676] (II) XGI(0): XGIInternalDDC(): getting EDID for CRT1.
[ 99233.676] get EDID with I2C function instead of VBIOS call...
[ 99233.676] bGetEDID() fail !!
[ 99233.690] (WW) XGI(0): XGIInternalDDC(): VESA get DDC fail for output channel 1.
[ 99233.690] (II) XGI(0): Could not retrieve DDC data for CRT1
[ 99233.690] Getting DVI EDID (DVO)...
[ 99233.690] (II) XGI(0): XGIInternalDDC(): getting EDID for DVI.
[ 99233.691] get EDID with I2C function instead of VBIOS call...
[ 99233.691] (WW) XGI(0): XGIInternalDDC(): VESA get DDC fail for output channel 2.
[ 99233.691] (II) XGI(0): Could not retrieve DDC data for DVI
[ 99233.691] Getting CRT EDID (CRT2)...
[ 99233.691] (II) XGI(0): XGIInternalDDC(): getting EDID for CRT2.
[ 99233.691] get EDID with I2C function instead of VBIOS call...
[ 99233.691] bGetEDID() fail !!
[ 99233.710] (WW) XGI(0): XGIInternalDDC(): VESA get DDC fail for output channel 3.
[ 99233.710] (II) XGI(0): Could not retrieve DDC data for CRT2
[ 99233.710] PowerSavingStatus = 0xff...
[ 99233.710] XGIPowerSaving()...Begin
[ 99233.711] Turn on DAC1...
[ 99233.711] Turn on DVO...
[ 99233.711] Turn on DAC2...
[ 99233.711] XGIPowerSaving()...End
[ 99233.711] Non-DDC minitor or NO EDID information...
[ 99233.711] (==) XGI(0): Min pixel clock is 5 MHz
[ 99233.711] (--) XGI(0): Max pixel clock is 79 MHz
[ 99233.712] Call xf86ValidateModes()...Use Virtual Size-1-Virtual Size=0
[ 99233.712] (II) XGI(0): Primary Monitor: Using hsync range of 1.00-10000.00 kHz
[ 99233.712] (II) XGI(0): Primary Monitor: Using vrefresh range of 1.00-10000.00 Hz
[ 99233.712] (II) XGI(0): Clock range:   5.00 to  79.54 MHz
[ 99233.712] (II) XGI(0): Not using default mode "640x350" (no mode of this name)
[ 99233.712] (II) XGI(0): Not using default mode "320x175" (no mode of this name)
[ 99233.712] (II) XGI(0): Not using default mode "640x400" (no mode of this name)
[ 99233.712] (II) XGI(0): Not using default mode "320x200" (no mode of this name)
[ 99233.712] (II) XGI(0): Not using default mode "720x400" (no mode of this name)
[ 99233.712] (II) XGI(0): Not using default mode "360x200" (no mode of this name)
[ 99233.712] (II) XGI(0): Not using default mode "320x240" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "320x240" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "320x240" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "320x240" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "800x600" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "400x300" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "400x300" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "400x300" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "400x300" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "400x300" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "1024x768i" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "512x384i" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "512x384" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "512x384" (no mode of this name)
[ 99233.713] (II) XGI(0): Not using default mode "512x384" (no mode of this name)
[ 99233.714] (II) XGI(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
[ 99233.714] (II) XGI(0): Not using default mode "512x384" (no mode of this name)
[ 99233.714] (II) XGI(0): Not using default mode "1152x864" (bad mode clock/interlace/doublescan)
[ 99233.714] (II) XGI(0): Not using default mode "576x432" (no mode of this name)
[ 99233.714] (II) XGI(0): Not using default mode "1280x960" (bad mode clock/interlace/doublescan)
[ 99233.714] (II) XGI(0): Not using default mode "640x480" (no mode of this name)
[ 99233.714] (II) XGI(0): Not using default mode "1280x960" (bad mode clock/interlace/doublescan)
[ 99233.714] (II) XGI(0): Not using default mode "640x480" (no mode of this name)
[ 99233.714] (II) XGI(0): Not using default mode "1280x1024" (bad mode clock/interlace/doublescan)
[ 99233.714] (II) XGI(0): Not using default mode "640x512" (no mode of this name)
[ 99233.714] (II) XGI(0): Not using default mode "1280x1024" (bad mode clock/interlace/doublescan)
[ 99233.714] (II) XGI(0): Not using default mode "640x512" (no mode of this name)
[ 99233.714] (II) XGI(0): Not using default mode "1280x1024" (bad mode clock/interlace/doublescan)
[ 99233.714] (II) XGI(0): Not using default mode "640x512" (no mode of this name)
[ 99233.715] (II) XGI(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "1792x1344" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "896x672" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "1792x1344" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "896x672" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "1856x1392" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "928x696" (bad mode clock/interlace/doublescan)
[ 99233.715] (II) XGI(0): Not using default mode "1856x1392" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "928x696" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "1920x1440" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "960x720" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "1920x1440" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "960x720" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "832x624" (no mode of this name)
[ 99233.716] (II) XGI(0): Not using default mode "416x312" (no mode of this name)
[ 99233.716] (II) XGI(0): Not using default mode "1152x864" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "576x432" (no mode of this name)
[ 99233.716] (II) XGI(0): Not using default mode "1152x864" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "576x432" (no mode of this name)
[ 99233.716] (II) XGI(0): Not using default mode "1152x864" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "576x432" (no mode of this name)
[ 99233.716] (II) XGI(0): Not using default mode "1152x864" (bad mode clock/interlace/doublescan)
[ 99233.716] (II) XGI(0): Not using default mode "576x432" (no mode of this name)
[ 99233.717] (II) XGI(0): Not using default mode "1152x864" (bad mode clock/interlace/doublescan)
[ 99233.717] (II) XGI(0): Not using default mode "576x432" (no mode of this name)
[ 99233.717] (II) XGI(0): Not using default mode "1152x864" (bad mode clock/interlace/doublescan)
[ 99233.717] (II) XGI(0): Not using default mode "576x432" (no mode of this name)
[ 99233.717] (II) XGI(0): Not using default mode "1360x768" (no mode of this name)
[ 99233.717] (II) XGI(0): Not using default mode "680x384" (no mode of this name)
[ 99233.717] (II) XGI(0): Not using default mode "1360x768" (bad mode clock/interlace/doublescan)
[ 99233.717] (II) XGI(0): Not using default mode "680x384" (no mode of this name)
[ 99233.717] (II) XGI(0): Not using default mode "1400x1050" (bad mode clock/interlace/doublescan)
[ 99233.717] (II) XGI(0): Not using default mode "700x525" (no mode of this name)
[ 99233.717] (II) XGI(0): Not using default mode "1400x1050" (bad mode clock/interlace/doublescan)
[ 99233.717] (II) XGI(0): Not using default mode "700x525" (no mode of this name)
[ 99233.717] (II) XGI(0): Not using default mode "1400x1050" (bad mode clock/interlace/doublescan)
[ 99233.717] (II) XGI(0): Not using default mode "700x525" (no mode of this name)
[ 99233.717] (II) XGI(0): Not using default mode "1400x1050" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "700x525" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "1440x900" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "720x450" (no mode of this name)
[ 99233.718] (II) XGI(0): Not using default mode "1600x1024" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "800x512" (no mode of this name)
[ 99233.718] (II) XGI(0): Not using default mode "1680x1050" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "840x525" (no mode of this name)
[ 99233.718] (II) XGI(0): Not using default mode "1680x1050" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "840x525" (no mode of this name)
[ 99233.718] (II) XGI(0): Not using default mode "1680x1050" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "840x525" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "1680x1050" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "840x525" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "1680x1050" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "840x525" (bad mode clock/interlace/doublescan)
[ 99233.718] (II) XGI(0): Not using default mode "1920x1080" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using default mode "960x540" (no mode of this name)
[ 99233.719] (II) XGI(0): Not using default mode "1920x1200" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using default mode "960x600" (no mode of this name)
[ 99233.719] (II) XGI(0): Not using default mode "1920x1440" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using default mode "960x720" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using built-in mode "1440x900" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using built-in mode "1680x1050" (bad mode clock/interlace/doublescan)
[ 99233.719] (II) XGI(0): Not using mode "1280x1024" (no mode of this name)
[ 99233.719] (II) XGI(0): Not using mode "1280x960" (no mode of this name)
[ 99233.720] (II) XGI(0): Not using mode "1280x720" (no mode of this name)
[ 99233.720] (II) XGI(0): Not using mode "1152x864" (no mode of this name)
[ 99233.720] (II) XGI(0): Not using mode "800x480" (no mode of this name)
[ 99233.720] (II) XGI(0): Not using mode "768x576" (no mode of this name)
[ 99233.720] (II) XGI(0): Not using mode "720x480" (no mode of this name)
[ 99233.720] (II) XGI(0): Not using mode "320x200" (no mode of this name)
[ 99233.720] Call xf86PrintModes(pScrn) to list all valid modes...
[ 99233.720] (--) XGI(0): Virtual size is 1024x768 (pitch 1024)
[ 99233.720] (**) XGI(0): *Default mode "1024x768": 78.8 MHz, 60.0 kHz, 75.0 Hz
[ 99233.721] (II) XGI(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz zd)
[ 99233.721] (**) XGI(0): *Default mode "800x600": 56.3 MHz, 53.7 kHz, 85.0 Hz
[ 99233.721] (II) XGI(0): Modeline "800x600"x85.0   56.30  800 832 896 1048  600 601 604 631 +hsync +vsync (53.7 kHz zd)
[ 99233.721] (**) XGI(0): *Default mode "640x480": 36.0 MHz, 43.3 kHz, 85.0 Hz
[ 99233.721] (II) XGI(0): Modeline "640x480"x85.0   36.00  640 696 752 832  480 481 484 509 -hsync -vsync (43.3 kHz zd)
[ 99233.721] (**) XGI(0):  Default mode "1024x768": 75.0 MHz, 56.5 kHz, 70.0 Hz
[ 99233.721] (II) XGI(0): Modeline "1024x768"x70.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz d)
[ 99233.721] (**) XGI(0):  Default mode "1024x768": 65.0 MHz, 48.4 kHz, 60.0 Hz
[ 99233.721] (II) XGI(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[ 99233.721] (**) XGI(0):  Default mode "800x600": 49.5 MHz, 46.9 kHz, 75.0 Hz
[ 99233.721] (II) XGI(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz d)
[ 99233.721] (**) XGI(0):  Default mode "800x600": 50.0 MHz, 48.1 kHz, 72.0 Hz
[ 99233.722] (II) XGI(0): Modeline "800x600"x72.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz d)
[ 99233.722] (**) XGI(0):  Default mode "800x600": 40.0 MHz, 37.9 kHz, 60.0 Hz
[ 99233.722] (II) XGI(0): Modeline "800x600"x60.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[ 99233.722] (**) XGI(0):  Default mode "640x480": 31.5 MHz, 37.5 kHz, 75.0 Hz
[ 99233.722] (II) XGI(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz d)
[ 99233.722] (**) XGI(0):  Default mode "640x480": 31.5 MHz, 37.9 kHz, 73.0 Hz
[ 99233.722] (II) XGI(0): Modeline "640x480"x73.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz d)
[ 99233.722] (**) XGI(0):  Default mode "640x480": 25.2 MHz, 31.5 kHz, 60.0 Hz
[ 99233.722] (II) XGI(0): Modeline "640x480"x60.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[ 99233.722] (**) XGI(0): Display dimensions: (310, 240) mm
[ 99233.722] (**) XGI(0): DPI set to (83, 81)
[ 99233.722] (II) Loading sub module "fb"
[ 99233.722] (II) LoadModule: "fb"
[ 99233.723] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 99233.725] (II) Module fb: vendor="X.Org Foundation"
[ 99233.725]    compiled for 1.16.4, module version = 1.0.0
[ 99233.725]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 99233.725] (II) Loading sub module "shadowfb"
[ 99233.725] (II) LoadModule: "shadowfb"
[ 99233.726] (II) Loading /usr/lib/xorg/modules/libshadowfb.so
[ 99233.728] (II) Module shadowfb: vendor="X.Org Foundation"
[ 99233.728]    compiled for 1.16.4, module version = 1.0.0
[ 99233.728]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 99233.728] (II) Loading sub module "dri"
[ 99233.728] (II) LoadModule: "dri"
[ 99233.728] (II) Module "dri" already built-in
[ 99233.728] XGIScreenInit
[ 99233.728] (II) XGI(0): vgaHWGetIOBase: hwp->IOBase is 0x03b0
[ 99233.730] (EE) XGI(0): **************************************************
[ 99233.730] (EE) XGI(0):                       ERROR:
[ 99233.731] (EE) XGI(0): Failed to unlock sr registers (0x7f8e97c0, b676c000, 0x86; 2)
[ 99233.731] (EE) XGI(0):                   END OF MESSAGE
[ 99233.731] (EE) XGI(0): **************************************************
[ 99233.733] (EE) XGI(0): **************************************************
[ 99233.733] (EE) XGI(0):                       ERROR:
[ 99233.733] (EE) XGI(0): Failed to unlock sr registers (0x7f8e97c0, b676c000, 0x86; 3)
[ 99233.733] (EE) XGI(0):                   END OF MESSAGE
[ 99233.733] (EE) XGI(0): **************************************************
[ 99233.733] (II) XGI(0): vgaHWGetIOBase: hwp->IOBase is 0x03b0
[ 99233.733] (II) XGI(0): vgaHWGetIOBase: hwp->IOBase is 0x03b0
[ 99233.734] (II) XGI(0): vgaHWGetIOBase: hwp->IOBase is 0x03b0
[ 99233.735] (II) XGI(0): vgaHWGetIOBase: hwp->IOBase is 0x03b0
[ 99233.735] (EE) XGI(0): **************************************************
[ 99233.735] (EE) XGI(0):                       ERROR:
[ 99233.736] (EE) XGI(0): Failed to unlock sr registers (0x7f8e97c0, b676c000, 0x86; 4)
[ 99233.736] (EE) XGI(0):                   END OF MESSAGE
[ 99233.736] (EE) XGI(0): **************************************************
[ 99233.750] (II) XGI(0): Setting a standard mode 0x4d
[ 99233.750] Part2 0 = b0 XGISetDPMS(VESA_POWER_STATE = 0x0)...
[ 99233.750] XGI - No valid address of VBIOS ROM!
[ 99233.750] XGIPowerSaving()...Begin
[ 99233.751] Turn on DAC1...
[ 99233.751] Turn on DVO...
[ 99233.751] Turn on DAC2...
[ 99233.751] XGIPowerSaving()...End
[ 99233.751] (EE) XGI(0): **************************************************
[ 99233.751] (EE) XGI(0):                       ERROR:
[ 99233.751] (EE) XGI(0): Failed to unlock sr registers (0x7f8e97c0, b676c000, 0x86; 5)
[ 99233.751] (EE) XGI(0):                   END OF MESSAGE
[ 99233.751] (EE) XGI(0): **************************************************
[ 99233.752] AdjustFrame 0
[ 99233.752] (NI) XGI(0): DRI not supported on this chipset
[ 99233.752] (==) XGI(0): Backing store enabled
[ 99233.753] (==) XGI(0): Silken mouse enabled
[ 99233.753] (**) XGI(0): DPMS enabled
[ 99233.753] (II) XGI(0): Direct rendering disabled
[ 99233.753] (WW) XGI(0): Option "DDCMode" is not used
[ 99233.753] (WW) XGI(0): Option "UseFBDev" is not used
[ 99233.753] (WW) XGI(0): Option "RenderAccel" is not used
[ 99233.753] (WW) XGI(0): Option "BusType" is not used
[ 99233.753] (WW) XGI(0): Option "fbdev" is not used
[ 99233.754] (WW) XGI(0): Option "PreferredMode" is not used
[ 99233.754] (EE) XGI(0): **************************************************
[ 99233.754] (EE) XGI(0):                       ERROR:
[ 99233.754] (EE) XGI(0): Failed to unlock sr registers (0x7f8e97c0, b676c000, 0x86; 6)
[ 99233.754] (EE) XGI(0):                   END OF MESSAGE
[ 99233.754] (EE) XGI(0): **************************************************
[ 99233.819] AdjustFrame 0
[ 99233.819] (==) RandR enabled
[ 99233.872] (II) SELinux: Disabled on system
[ 99233.879] (II) AIGLX: Screen 0 is not DRI2 capable
[ 99233.879] (EE) AIGLX: reverting to software rendering
[ 99233.918] (II) AIGLX: Loaded and initialized swrast
[ 99233.918] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 99234.309] (EE)
[ 99234.310] (EE) Backtrace:
[ 99234.310] (EE)
[ 99234.311] (EE) Segmentation fault at address 0xb2200000
[ 99234.311] (EE)
Fatal server error:
[ 99234.311] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 99234.312] (EE)
[ 99234.312] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[ 99234.313] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 99234.313] (EE)
[ 99234.314] (EE) XGI(0): **************************************************
[ 99234.314] (EE) XGI(0):                       ERROR:
[ 99234.314] (EE) XGI(0): Failed to unlock sr registers (0x7f8e97c0, b676c000, 0x86; 7)
[ 99234.314] (EE) XGI(0):                   END OF MESSAGE
[ 99234.314] (EE) XGI(0): **************************************************
[ 99234.314] (II) XGI(0): vgaHWGetIOBase: hwp->IOBase is 0x03b0
[ 99234.314] Part2 0 = b0 (EE) Server terminated with error (1). Closing log file.

Re: Request : XGI Graphics
June 06, 2016 04:57AM
Good, another step towards greatness.

Other mention of failure to unlock registers I can find is here https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-sis/+bug/1095723

A guy trying to operate integrated AND dedicated card at the same time.

It makes me think of the VGA Arbiter (in linux kernel), as it deals with this resource allocation https://www.kernel.org/doc/Documentation/vgaarbiter.txt

There is another guy that solved a similar issue here somehow (look in followup posts)

https://mail.gnome.org/archives/gdm-list/2009-May/msg00000.html

Other mentions of sr registers are "Status Registers" inside old Savage cards. I assume it is a legacy implementation that is absent from newer cards.
http://xserver-xorg-driver-savage.sourcearchive.com/documentation/2.0.2.3/savage__regs_8h-source.html


I cannot go much further than that though, sorry.


>Can we kindly ask Connor Behan for help?

His mail is in the changelogs. Mention what you did to get there.
Re: Request : XGI Graphics
June 06, 2016 12:41PM
I'm not skilled with programing vga and oher pci devices nor have any datasheets for VGA hardware. So all info i can access is inside driver sources and Xorg.log from working thinpro XGI driver. My thoughts after hard digging in different sources about all of this:
- xgi xorg driver in thinpro use legacy pci access methods (libpcidata.so), but our new xorg server leeds to use new libpciaccess, so we have to debug and may be sometimes reimplement PciRework. In latest xgi sources there is (untested?) pieces of libpciaccess code written by Jong in 2009.
- main difference between x86 and arm there is no io ports on arm. They are actually mapped to memory and different MMIO functions used in driver to access it. In sis driver there another completely different implementation of this functions.
- problem is in wrong calculated MMIO offsets and we dont actualy access to our mapped io registers but simply write unlock magic (0x86) to ordinary memory adresses and than read this written magic from it but not a respond from registers itself. Other config information also is read from wrong places and leads to misconfiguration later. Look at memory size,type and frequency detected in logs.
- there are some ugly hacks used in driver to calculate MMIO offsets, but this hacks is unuseful in our newer API as there no such members in newer vgahw struct.

Conclusion - i need datasheet for z11 to reimplement this mmio on top of libpciaccess for arm and/or some help from much more skilled person. Another way is to learn, transfer and adopt mmio implementation from sis driver, or smi driver or some other driver onto xgi.



Edited 3 time(s). Last edit at 06/06/2016 01:06PM by xssa.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: