Sun Ultra 10 - openBSD 6.7+Creator3D+sunffb: Xorg and xenocara freeze the system

Vasile Buruiana bvasea at gmail.com
Sun Aug 16 02:34:44 CDT 2020


Greetings.

I would like to solve a mistery regarding graphical user interface on a Sun
Ultra 10+ Creator3D UPA graphics card, running OpenBSD 6.7/sparc64.
Everything works fine with Solaris 10. Did anybody manage to get X running
on openBSD?  Sparc64 support is somehow bogus so I feel that if I talk to
them, there will be no answer.

Here is what I am trying to do and hope will help others:
- installed openBSD on two Sun Ultra 10 machines: one machine full install
(with X packages), the other without X, but xenocara compiled later;
- Configured /etc/X11/xorg.conf as described in attached file 1;
The same issues were observed for both Xorg and xenocara, so I suspect
there's something wrong with sunffb:
- /var/log/Xorg.0.log shows everything is in order (except for a xaa
warning) as described in attached file 2;
- at each startx (without system reboot), X registers a new display   :0
 :1   :2   :3  and so on. It never falls back to :0 unless I tell it
manually to do so:   startx -- :0  - so at this time, for both machines the
attached file 2 is "/var/log/Xorg.10.log" (last X session);
- startx says "Unknown boardID[000000ff], assuming FFB2, DoubleRES,
Z-buffer, Single-buffered.";
- dmesg is shown in attached file 3;
- GUI starts, as confirmed by ps aux;
-  Screen becomes white, the previous black text becomes yellow. Window
manager (wmaker) is running;
- if creator0 kernel flag is set to 1 (disable accel), some blue dots
appear instead of yellow text, but still no graphics;
- I tried both default, 28.636 and 29.5 "Option" "ReferenceClock" according
to xorg.conf manual - Xorg.0.log reports this option is never used;
- if I start X11vnc, I can get a vnc client connection but the screen is
white - so I suspect there is some wrong memory mapping:  sunffb is using
some bogus memory location while x11vnc is reading from somewhere else.


Did anyone encounter this problem?
Please advise.
Best wishes,
Vasile Buruiana (bvasea!gmail[]com)
____________________________
Attached file 1:  /etc/X11/xorg.conf

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option         "Xinerama" "On"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option "Protocol" "wskbd"
        Option "Device" "/dev/wskbd0"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option    "Protocol" "SunMouse"
        Option    "Device" "/dev/tty00"
        Option    "BaudRate" "1200"
EndSection

Section "Monitor"
        Identifier   "Monitor"
        VendorName   "Unknown"
        ModelName    "Unknown"
        HorizSync    31.5-60
        VertRefresh  50-70
EndSection
Section "Device"
        Identifier      "creator0"
#        Driver          "wsfb"
#        Option          "device" "/dev/ttyC0"

        Driver          "sunffb"
        Option          "ReferenceClock"        "28.636"
#       Option      "UseFBDev" "true"
#       Option     "accel" "True"
         VendorName "Elite3D"
         BoardName  "SUNW"
#       Option          "device" "/dev/console"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "creator0"
        Monitor    "Monitor"
        DefaultDepth 24
        SubSection "Display"
                Depth     24
                FbBpp 32
                Weight 8 8 8
        EndSubSection
EndSection


__________________________________________________________
attached file 2:  /var/log/Xorg.10.log
__________________________________________________________

[  3904.433] (--) Using wscons driver on /dev/ttyD0
[  3904.476]
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[  3904.477] Build Operating System: OpenBSD 6.7 sparc64
[  3904.479] Current Operating System: OpenBSD frectie.seprom.ro 6.7
GENERIC#306 sparc64
[  3904.482] Build Date: 16 August 2020  02:14:23AM
[  3904.482]
[  3904.483] Current version of pixman: 0.38.4
[  3904.483]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  3904.484] Markers: (--) probed, (**) from config file, (==) default
setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  3904.489] (==) Log file: "/var/log/Xorg.10.log", Time: Sun Aug 16
10:31:31 2020
[  3904.493] (==) Using config file: "/etc/X11/xorg.conf"
[  3904.493] (==) Using system config directory
"/usr/X11R6/share/X11/xorg.conf.d"
[  3904.496] Parse error on line 10 of section Files in file
/etc/X11/xorg.conf
        Ignoring obsolete keyword "RgbPath".
[  3904.499] (==) ServerLayout "X.org Configured"
[  3904.499] (**) |-->Screen "Screen0" (0)
[  3904.499] (**) |   |-->Monitor "Monitor"
[  3904.505] (**) |   |-->Device "creator0"
[  3904.505] (**) |-->Input Device "Mouse0"
[  3904.506] (**) |-->Input Device "Keyboard0"
[  3904.507] (**) Option "Xinerama" "On"
[  3904.507] (==) Automatically adding devices
[  3904.507] (==) Automatically enabling devices
[  3904.507] (==) Not automatically adding GPU devices
[  3904.508] (**) Xinerama: enabled
[  3904.508] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  3904.509] (WW) The directory "/usr/X11R6/lib/X11/fonts/CID/" does not
exist.
[  3904.509]    Entry deleted from font path.
[  3904.510] (**) FontPath set to:
        /usr/X11R6/lib/X11/fonts/misc/,
        /usr/X11R6/lib/X11/fonts/TTF/,
        /usr/X11R6/lib/X11/fonts/Type1/,
        /usr/X11R6/lib/X11/fonts/75dpi/,
        /usr/X11R6/lib/X11/fonts/100dpi/,
        /usr/X11R6/lib/X11/fonts/misc/,
        /usr/X11R6/lib/X11/fonts/TTF/,
        /usr/X11R6/lib/X11/fonts/OTF/,
        /usr/X11R6/lib/X11/fonts/Type1/,
        /usr/X11R6/lib/X11/fonts/100dpi/,
        /usr/X11R6/lib/X11/fonts/75dpi/
[  3904.510] (==) ModulePath set to "/usr/X11R6/lib/modules"
[  3904.510] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse'
or 'vmmouse' will be disabled.
[  3904.510] (WW) Disabling Mouse0
[  3904.511] (WW) Disabling Keyboard0
[  3904.511] (II) Loader magic: 0xeefafa6010
[  3904.511] (II) Module ABI versions:
[  3904.511]    X.Org ANSI C Emulation: 0.4
[  3904.511]    X.Org Video Driver: 24.1
[  3904.511]    X.Org XInput driver : 24.1
[  3904.511]    X.Org Server Extension : 10.0
[  3904.520] (--) PCI:*(1 at 0:2:0) 1002:4750:0000:0000 rev 92, Mem @
0xe1000000/16777216, 0xe2000000/4096, I/O @ 0x00000000/256, BIOS @
0x????????/131072
[  3904.521] (II) "glx" will be loaded by default.
[  3904.521] (II) LoadModule: "glx"
[  3904.526] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[  3904.559] (II) Module glx: vendor="X.Org Foundation"
[  3904.559]    compiled for 1.20.8, module version = 1.0.0
[  3904.559]    ABI class: X.Org Server Extension, version 10.0
[  3904.560] (II) LoadModule: "sunffb"
[  3904.563] (II) Loading /usr/X11R6/lib/modules/drivers/sunffb_drv.so
[  3904.564] (II) Module sunffb: vendor="X.Org Foundation"
[  3904.565]    compiled for 1.20.8, module version = 1.2.2
[  3904.565]    Module class: X.Org Video Driver
[  3904.565]    ABI class: X.Org Video Driver, version 24.1
[  3904.565] (II) SUNFFB: driver for Creator, Creator 3D and Elite 3D
[  3904.565] (WW) Falling back to old probe method for sunffb
[  3904.567] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card
support
[  3904.568] (**) SUNFFB(0): RGB weight 888
[  3904.568] (==) SUNFFB(0): Default visual is TrueColor
[  3904.569] (==) SUNFFB(0): Using gamma correction (1.0, 1.0, 1.0)
[  3904.569] (==) SUNFFB(0): Using HW cursor
[  3904.569] (II) Loading sub module "fb"
[  3904.569] (II) LoadModule: "fb"
[  3904.576] (II) Loading /usr/X11R6/lib/modules/libfb.so
[  3904.579] (II) Module fb: vendor="X.Org Foundation"
[  3904.579]    compiled for 1.20.8, module version = 1.0.0
[  3904.579]    ABI class: X.Org ANSI C Emulation, version 0.4
[  3904.579] (II) Loading sub module "xaa"
[  3904.579] (II) LoadModule: "xaa"
[  3904.592] (WW) Warning, couldn't open module xaa
[  3904.592] (EE) SUNFFB: Failed to load module "xaa" (module does not
exist, 0)
[  3904.592] (II) SUNFFB(0): Loading XAA failed, acceleration disabled
[  3904.592] (II) Loading sub module "ramdac"
[  3904.592] (II) LoadModule: "ramdac"
[  3904.593] (II) Module "ramdac" already built-in
[  3904.593] (II) Loading sub module "dbe"
[  3904.593] (II) LoadModule: "dbe"
[  3904.593] (II) Module "dbe" already built-in
[  3904.593] (==) SUNFFB(0): DPI set to (96, 96)
[  3904.598] (II) creator0: Unknown boardID[000000ff], assuming FFB2,
DoubleRES, Z-buffer, Single-buffered.
[  3904.600] (II) creator0: BT9068 (PAC1) ramdac detected (with normal
cursor control)
[  3904.601] (II) creator0: Detected Creator/Creator3D
[  3904.606] (==) SUNFFB(0): Backing store enabled
[  3904.606] (==) SUNFFB(0): Silken mouse enabled
[  3904.609] (==) SUNFFB(0): DPMS enabled
[  3904.610] (WW) SUNFFB(0): Option "ReferenceClock" is not used
[  3904.610] (II) Initializing extension Generic Event Extension
[  3904.616] (II) Initializing extension SHAPE
[  3904.622] (II) Initializing extension MIT-SHM
[  3904.628] (II) Initializing extension XInputExtension
[  3904.634] (II) Initializing extension XTEST
[  3904.640] (II) Initializing extension BIG-REQUESTS
[  3904.646] (II) Initializing extension SYNC
[  3904.652] (II) Initializing extension XKEYBOARD
[  3904.657] (II) Initializing extension XC-MISC
[  3904.663] (II) Initializing extension SECURITY
[  3904.669] (II) Initializing extension XINERAMA
[  3904.669] (II) Initializing extension XFIXES
[  3904.675] (II) Initializing extension RENDER
[  3904.681] (II) Initializing extension RANDR
[  3904.681] (II) Initializing extension COMPOSITE
[  3904.687] (II) Initializing extension DAMAGE
[  3904.693] (II) Initializing extension MIT-SCREEN-SAVER
[  3904.698] (II) Initializing extension DOUBLE-BUFFER
[  3904.704] (II) Initializing extension RECORD
[  3904.710] (II) Initializing extension DPMS
[  3904.715] (II) Initializing extension Present
[  3904.721] (II) Initializing extension DRI3
[  3904.721] (II) Initializing extension X-Resource
[  3904.727] (II) Initializing extension XVideo
[  3904.732] (II) Initializing extension XVideo-MotionCompensation
[  3904.732] (II) Initializing extension GLX
[  3904.739] (II) AIGLX: Screen 0 is not DRI2 capable
[  3904.868] (II) IGLX: Loaded and initialized swrast
[  3904.868] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  3904.868] (II) Initializing extension XFree86-VidModeExtension
[  3904.874] (II) Initializing extension XFree86-DGA
[  3904.879] (II) Initializing extension XFree86-DRI
[  3904.879] (II) Initializing extension DRI2
[  3907.959] (II) config/wscons: checking input device /dev/wskbd
[  3907.959] (II) wskbd: using layout us
[  3907.960] (II) LoadModule: "kbd"
[  3907.965] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[  3907.968] (II) Module kbd: vendor="X.Org Foundation"
[  3907.968]    compiled for 1.20.8, module version = 1.9.0
[  3907.968]    Module class: X.Org XInput Driver
[  3907.968]    ABI class: X.Org XInput driver, version 24.1
[  3907.968] (II) Using input driver 'kbd' for '/dev/wskbd'
[  3907.969] (**) /dev/wskbd: always reports core events
[  3907.970] (**) /dev/wskbd: always reports core events
[  3907.970] (**) Option "Protocol" "standard"
[  3907.971] (**) Option "XkbRules" "base"
[  3907.971] (**) Option "XkbModel" "pc105"
[  3907.971] (**) Option "XkbLayout" "us"
[  3907.971] (II) XINPUT: Adding extended input device "/dev/wskbd" (type:
KEYBOARD, id 6)
[  3907.977] (II) config/wscons: checking input device /dev/wsmouse
[  3907.978] (II) LoadModule: "ws"
[  3907.983] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[  3907.985] (II) Module ws: vendor="X.Org Foundation"
[  3907.985]    compiled for 1.20.8, module version = 1.3.0
[  3907.985]    Module class: X.Org XInput Driver
[  3907.985]    ABI class: X.Org XInput driver, version 24.1
[  3907.985] (II) Using input driver 'ws' for '/dev/wsmouse'
[  3907.985] (**) /dev/wsmouse: always reports core events
[  3907.986] (II) ws: /dev/wsmouse: debuglevel 0
[  3907.986] (**) Option "Device" "/dev/wsmouse"
[  3907.986] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[  3907.986] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[  3907.986] (**) ws: /dev/wsmouse: associated screen: 0
[  3907.987] (II) ws: /dev/wsmouse: minimum x position: 0
[  3907.987] (II) ws: /dev/wsmouse: maximum x position: 1151
[  3907.987] (II) ws: /dev/wsmouse: minimum y position: 0
[  3907.988] (II) ws: /dev/wsmouse: maximum y position: 899
[  3907.988] (==) ws: /dev/wsmouse: Buttons: 7
[  3907.988] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[  3907.988] (II) XINPUT: Adding extended input device "/dev/wsmouse"
(type: MOUSE, id 7)
[  3907.992] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[  3907.992] (**) /dev/wsmouse: (accel) acceleration profile 0
[  3907.993] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[  3907.993] (**) /dev/wsmouse: (accel) acceleration threshold: 4
[  3908.018] (EE) Failed to open authorization file
"/root/.serverauth.68zMtvOjbh": Permission denied
[  3918.136] (II) UnloadModule: "ws"
[  3918.138] (II) UnloadModule: "kbd"

__________________________________________________________
attached file 3:  dmesg output
__________________________________________________________

console is keyboard/display
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2020 OpenBSD. All rights reserved.
https://www.OpenBSD.org

OpenBSD 6.7 (GENERIC) #306: Thu May  7 18:19:56 MDT 2020
    deraadt at sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1038467072 (990MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 440MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 9.1) @ 440 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 2048K external
(64 b/l)
psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba" rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003,
72c000-72c003, 72f000-72f003
power0 at ebus0 addr 724000-724003 ivec 0x25
"SUNW,pll" at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
sabtty0 at sab0 port 0
sabtty1 at sab0 port 1
comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: layout 34
wskbd0 at comkbd0: console keyboard
comms0 at ebus0 addr 3062f8-3062ff ivec 0x2a
wsmouse0 at comms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ivec 0x22:
polled
"fdthree" at ebus0 addr 3023f0-3023f7, 706000-70600f, 720000-720003 ivec
0x27 not configured
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
audioce0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f,
722000-722003 ivec 0x23 ivec 0x24: nvaddrs 0
audio0 at audioce0
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address
08:00:20:c0:ff:ef
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
machfb0 at pci1 dev 2 function 0 "ATI Mach64" rev 0x5c
machfb0: ATY,GT-C, 1152x900
wsdisplay0 at machfb0 mux 1
wsdisplay0: screen 0 added (std, sun emulation)
pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x03: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <Maxtor 6Y080P0>
wd0: 16-sector PIO, LBA, 78167MB, 160086528 sectors
wd1 at pciide0 channel 0 drive 1: <WDC WD800JB-00JJC0>
wd1: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <ASUS, DRW-1608P3S, 1.06> removable
wd2 at pciide0 channel 1 drive 1: <WDC WD1600AAJB-00J3A0>
wd2: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
wd2(pciide0:1:1): using PIO mode 4, DMA mode 2
ppb1 at pci0 dev 1 function 0 "Sun Simba" rev 0x13
pci2 at ppb1 bus 2
creator0 at mainbus0 addr 0xfebee000: Elite3D, model SUNW,XXX-XXXX, dac 0,
1152x900
wsdisplay1 at creator0 mux 1: console (std, sun emulation), using wskbd0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootpath: /pci at 1f,0/pci at 1,1/ide at 3,0/disk at 0,0
root on wd0a (1f60d5c98cb9f231.a) swap on wd0b dump on wd0b

_____________________________________________________________


More information about the cctech mailing list