NetBSD Problem Report #48317

From www@NetBSD.org  Wed Oct 16 16:42:10 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 40CD871003
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 16 Oct 2013 16:42:10 +0000 (UTC)
Message-Id: <20131016164207.9CAFB726EE@mollari.NetBSD.org>
Date: Wed, 16 Oct 2013 16:42:07 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: openchrome driver crashes with undefined PLT symbol
X-Send-Pr-Version: www-1.0

>Number:         48317
>Notify-List:    jdbaker@consolidated.net
>Category:       xsrc
>Synopsis:       openchrome driver crashes with undefined PLT symbol
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 16 16:45:00 +0000 2013
>Closed-Date:    Wed Dec 05 07:15:59 +0000 2018
>Last-Modified:  Wed Dec 05 07:15:59 +0000 2018
>Originator:     John D. Baker
>Release:        NetBSD/i386-6.99.24
>Organization:
>Environment:
NetBSD neoware 6.99.24 NetBSD 6.99.24 (GENERIC) #32: Wed Oct  9 18:39:39 CDT 2013  sysop@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GENERIC i386
>Description:
NeoWare thin-client based on VIA CLE266 UniChrome, etc. starting X with
no config file crashes as follows:

X.Org X Server 1.10.6
Release Date: 2011-07-08
X Protocol Version 11, Revision 0
Build Operating System: NetBSD/i386  - 
Current Operating System: NetBSD neoware 6.99.24 NetBSD 6.99.24 (GENERIC) #32: Wed Oct  9 18:39:39 CDT 2013  sysop@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GENERIC i386
Build Date: 01 August 2011  01:01:00AM

Current version of pixman: 0.30.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: "/var/log/Xorg.0.log", Time: Fri Oct 11 12:57:35 2013
(==) Using default built-in configuration (12 lines)
/usr/X11R7/lib/modules/drivers/openchrome_drv.so: Undefined PLT symbol "drmCheckModesettingSupported" (symnum = 189)

The above-mentioned symbol is defined in

  xsrc/external/mit/libdrm/dist/xf86drmMode.c

but it is not clear whether a trick similar to xsrc/48315 can be used
to satisfy the missing symbol.

The Xorg.0.log file that accompanied the above execution attempt:

[  1184.262] 
X.Org X Server 1.10.6
Release Date: 2011-07-08
[  1184.265] X Protocol Version 11, Revision 0
[  1184.266] Build Operating System: NetBSD/i386  - 
[  1184.267] Current Operating System: NetBSD neoware 6.99.24 NetBSD 6.99.24 (GENERIC) #32: Wed Oct  9 18:39:39 CDT 2013  sysop@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GENERIC i386
[  1184.284] Build Date: 01 August 2011  01:01:00AM
[  1184.285]  
[  1184.286] Current version of pixman: 0.30.0
[  1184.286]    Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
[  1184.287] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1184.296] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct 11 12:57:35 2013
[  1184.300] (II) Loader magic: 0x82776e0
[  1184.300] (II) Module ABI versions:
[  1184.300]    X.Org ANSI C Emulation: 0.4
[  1184.300]    X.Org Video Driver: 10.0
[  1184.300]    X.Org XInput driver : 12.2
[  1184.300]    X.Org Server Extension : 5.0
[  1184.313] (--) PCI:*(1:1:0:0) 1106:3122:1106:3122 rev 3, Mem @ 0xe8000000/67108864, 0xec000000/16777216
[  1184.314] (==) Using default built-in configuration (12 lines)
[  1184.315] (==) --- Start of built-in configuration ---
[  1184.315]    Section "Device"
[  1184.315]            Identifier      "Builtin Default openchrome Device 0"
[  1184.315]            Driver  "openchrome"
[  1184.315]    EndSection
[  1184.315]    Section "Screen"
[  1184.315]            Identifier      "Builtin Default openchrome Screen 0"
[  1184.315]            Device  "Builtin Default openchrome Device 0"
[  1184.315]    EndSection
[  1184.315]    Section "ServerLayout"
[  1184.315]            Identifier      "Builtin Default Layout"
[  1184.315]            Screen  "Builtin Default openchrome Screen 0"
[  1184.315]    EndSection
[  1184.315] (==) --- End of built-in configuration ---
[  1184.316] (==) ServerLayout "Builtin Default Layout"
[  1184.316] (**) |-->Screen "Builtin Default openchrome Screen 0" (0)
[  1184.316] (**) |   |-->Monitor "<default monitor>"
[  1184.318] (**) |   |-->Device "Builtin Default openchrome Device 0"
[  1184.318] (==) No monitor specified for screen "Builtin Default openchrome Screen 0".
        Using a default monitor configuration.
[  1184.319] (==) Not automatically adding devices
[  1184.319] (==) Not automatically enabling devices
[  1184.321] (==) FontPath set to:
        /usr/X11R7/lib/X11/fonts/misc/,
        /usr/X11R7/lib/X11/fonts/TTF/,
        /usr/X11R7/lib/X11/fonts/Type1/,
        /usr/X11R7/lib/X11/fonts/75dpi/,
        /usr/X11R7/lib/X11/fonts/100dpi/
[  1184.321] (==) ModulePath set to "/usr/X11R7/lib/modules"
[  1184.321] (==) |-->Input Device "<default pointer>"
[  1184.321] (==) |-->Input Device "<default keyboard>"
[  1184.321] (==) The core pointer device wasn't specified explicitly in the layout.
        Using the default mouse configuration.
[  1184.321] (==) The core keyboard device wasn't specified explicitly in the layout.
        Using the default keyboard configuration.
[  1184.321] (II) LoadModule: "extmod"
[  1184.356] (II) Loading /usr/X11R7/lib/modules/extensions/libextmod.so
[  1184.361] (II) Module extmod: vendor="X.Org Foundation"
[  1184.361]    compiled for 1.10.6, module version = 1.0.0
[  1184.361]    Module class: X.Org Server Extension
[  1184.361]    ABI class: X.Org Server Extension, version 5.0
[  1184.361] (II) Loading extension MIT-SCREEN-SAVER
[  1184.361] (II) Loading extension XFree86-VidModeExtension
[  1184.361] (II) Loading extension XFree86-DGA
[  1184.361] (II) Loading extension DPMS
[  1184.362] (II) Loading extension XVideo
[  1184.362] (II) Loading extension XVideo-MotionCompensation
[  1184.362] (II) Loading extension X-Resource
[  1184.362] (II) LoadModule: "dbe"
[  1184.391] (II) Loading /usr/X11R7/lib/modules/extensions/libdbe.so
[  1184.394] (II) Module dbe: vendor="X.Org Foundation"
[  1184.394]    compiled for 1.10.6, module version = 1.0.0
[  1184.394]    Module class: X.Org Server Extension
[  1184.394]    ABI class: X.Org Server Extension, version 5.0
[  1184.394] (II) Loading extension DOUBLE-BUFFER
[  1184.395] (II) LoadModule: "glx"
[  1184.427] (II) Loading /usr/X11R7/lib/modules/extensions/libglx.so
[  1184.431] (II) Module glx: vendor="X.Org Foundation"
[  1184.431]    compiled for 1.10.6, module version = 1.0.0
[  1184.431]    ABI class: X.Org Server Extension, version 5.0
[  1184.431] (==) AIGLX enabled
[  1184.432] (II) Loading extension GLX
[  1184.432] (II) LoadModule: "record"
[  1184.465] (II) Loading /usr/X11R7/lib/modules/extensions/librecord.so
[  1184.468] (II) Module record: vendor="X.Org Foundation"
[  1184.468]    compiled for 1.10.6, module version = 1.13.0
[  1184.468]    Module class: X.Org Server Extension
[  1184.469]    ABI class: X.Org Server Extension, version 5.0
[  1184.469] (II) Loading extension RECORD
[  1184.469] (II) LoadModule: "dri"
[  1184.498] (II) Loading /usr/X11R7/lib/modules/extensions/libdri.so
[  1184.502] (II) Module dri: vendor="X.Org Foundation"
[  1184.502]    compiled for 1.10.6, module version = 1.0.0
[  1184.502]    ABI class: X.Org Server Extension, version 5.0
[  1184.502] (II) Loading extension XFree86-DRI
[  1184.502] (II) LoadModule: "dri2"
[  1184.532] (II) Loading /usr/X11R7/lib/modules/extensions/libdri2.so
[  1184.535] (II) Module dri2: vendor="X.Org Foundation"
[  1184.535]    compiled for 1.10.6, module version = 1.2.0
[  1184.535]    ABI class: X.Org Server Extension, version 5.0
[  1184.536] (II) Loading extension DRI2
[  1184.536] (II) LoadModule: "openchrome"
[  1184.555] (II) Loading /usr/X11R7/lib/modules/drivers/openchrome_drv.so
[  1184.559] (II) Module openchrome: vendor="http://openchrome.org/"
[  1184.559]    compiled for 1.10.6, module version = 0.3.3
[  1184.559]    Module class: X.Org Video Driver
[  1184.559]    ABI class: X.Org Video Driver, version 10.0
[  1184.559] (II) LoadModule: "mouse"
[  1184.576] (II) Loading /usr/X11R7/lib/modules/drivers/mouse_drv.so
[  1184.579] (II) Module mouse: vendor="X.Org Foundation"
[  1184.579]    compiled for 1.10.6, module version = 1.9.0
[  1184.579]    Module class: X.Org XInput Driver
[  1184.579]    ABI class: X.Org XInput driver, version 12.2
[  1184.579] (II) LoadModule: "kbd"
[  1184.597] (II) Loading /usr/X11R7/lib/modules/drivers/kbd_drv.so
[  1184.599] (II) Module kbd: vendor="X.Org Foundation"
[  1184.599]    compiled for 1.10.6, module version = 1.7.0
[  1184.600]    Module class: X.Org XInput Driver
[  1184.600]    ABI class: X.Org XInput driver, version 12.2
[  1184.600] (II) OPENCHROME: Driver for VIA Chrome chipsets: CLE266, KM400/KN400,
        K8M800/K8N800, PM800/PM880/CN400, VM800/P4M800Pro/VN800/CN700,
        CX700/VX700, K8M890/K8N890, P4M890, P4M900/VN896/CN896, VX800/VX820,
        VX855/VX875, VX900
[  1184.603] (--) Using wscons driver on /dev/ttyE4 in pcvt compatibility mode (version 3.32)
[  1184.603] (--) using VT number 5

[  1184.615] (II) Loading /usr/X11R7/lib/modules/drivers/openchrome_drv.so
[  1184.615] (!!) VIA Technologies does not support this driver in any way.
[  1184.615] (!!) For support, please refer to http://www.openchrome.org/.
[  1184.615] (!!) (openchrome 0.3.3 release)
[  1184.615] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  1184.615] (II) CHROME(0): VIAPreInit
[  1184.615] (II) CHROME(0): VIAGetRec
[  1184.616] (--) CHROME(0): Chipset: CLE266
[  1184.616] (--) CHROME(0): Chipset revision: 0
[  1184.616] drmOpenDevice: node name is /dev/dri/card0
[  1184.621] drmOpenDevice: open result is 10, (OK)
[  1184.621] drmOpenByBusid: Searching for BusID pci:0001:01:00.0
[  1184.621] drmOpenDevice: node name is /dev/dri/card0
[  1184.624] drmOpenDevice: open result is 10, (OK)
[  1184.624] drmOpenByBusid: drmOpenMinor returns 10
[  1184.624] drmOpenByBusid: Interface 1.4 failed, trying 1.1
[  1184.624] drmOpenByBusid: drmGetBusid reports pci:0001:01:00.0


Using 'X -configure' to get a baseline configuration file results in
the following "Device" section:

Section "Device"
        ### Available Driver options are:-
        ### Values: : integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "PrintVGARegs"              # [<bool>]
        #Option     "PrintTVRegs"               # [<bool>]
        #Option     "I2CScan"                   # [<bool>]
        #Option     "VBEModes"                  # [<bool>]
        #Option     "NoAccel"                   # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "ExaNoComposite"            # [<bool>]
        #Option     "ExaScratchSize"            # 
        #Option     "SWCursor"                  # [<bool>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "RotationType"              # [<str>]
        #Option     "Rotate"                    # [<str>]
        #Option     "VideoRAM"                  # 
        #Option     "ActiveDevice"              # [<str>]
        #Option     "TVDotCrawl"                # [<bool>]
        #Option     "TVDeflicker"               # 
        #Option     "TVType"                    # [<str>]
        #Option     "TVOutput"                  # [<str>]
        #Option     "TVPort"                    # [<str>]
        #Option     "DisableVQ"                 # [<bool>]
        #Option     "DisableIRQ"                # [<bool>]
        #Option     "EnableAGPDMA"              # [<bool>]
        #Option     "NoAGPFor2D"                # [<bool>]
        #Option     "NoXVDMA"                   # [<bool>]
        #Option     "VbeSaveRestore"            # [<bool>]
        #Option     "DisableXvBWCheck"          # [<bool>]
        #Option     "ModeSwitchMethod"          # [<str>]
        #Option     "MaxDRIMem"                 # 
        #Option     "AGPMem"                    # 
        #Option     "I2CDevices"                # [<str>]
        Identifier  "Card0"
        Driver      "openchrome"
        BusID       "PCI:1:0:0"
EndSection

It is not clear whether any option above may be modified to bypass
the problem.

>How-To-Repeat:
Using native Xorg on NetBSD/i386-6.99.24 (netbsd-6?, -5?) on a machine
with a VIA UniChrome video device (CLE266 in particular), attempt to
start the X server.
>Fix:

>Release-Note:

>Audit-Trail:
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
Date: Fri, 22 Aug 2014 21:12:43 -0500 (CDT)

 First, could someone edit the Synopis of the original PR submission to
 correct my typo:  "openchrome" (not "opencrome").  That should make it
 show up in searches properly.

 After quite some time, I've finally managed to look at this again.  With
 the latest -current/i386, the X server still crashes due to undefined
 PLT symbol, but it's different from the original:

 $ uname -a
  NetBSD neoware 7.99.1 NetBSD 7.99.1 (NEOWARE) #0: Wed Aug 20 23:31:10 CDT 2014  sysop@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/NEOWARE i386


 X.Org X Server 1.10.6
 Release Date: 2011-07-08
 X Protocol Version 11, Revision 0
 Build Operating System: NetBSD/i386  - 
 Current Operating System: NetBSD neoware 7.99.1 NetBSD 7.99.1 (NEOWARE) #0: Wed Aug 20 23:31:10 CDT 2014  sysop@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/NEOWARE i386
 Build Date: 01 August 2011  01:01:00AM

 Current version of pixman: 0.32.6
 	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: "/var/log/Xorg.0.log", Time: Fri Aug 22 15:15:37 2014
 (==) Using default built-in configuration (21 lines)
 /usr/X11R7/lib/modules/drivers/openchrome_drv.so: Undefined PLT symbol "UMSPreInit" (symnum = 72)

 The symbol mentioned is found in:

    xsrc/external/mit/xf86-video-openchrome/dist/src/via_ums.c

 The reachover Makefile in:

   src/external/mit/xorg/server/drivers/xf86-video-openchrome/Makefile

 does not include that file in the SRCS variable.

 I've added it and am in the process of rebuilding.


 For comparison, I tried pkgsrc/modular Xorg (built on 6.99.49 from
 pkgsrc-2014Q2) and got a mostly-working X server.  The only glitch is
 that the mouse cursor is invisible all the time.

 X.Org X Server 1.12.4
 Release Date: 2012-08-27
 X Protocol Version 11, Revision 0
 Build Operating System: NetBSD-6.99.49-i386 The NetBSD Foundation
 Current Operating System: NetBSD neoware 7.99.1 NetBSD 7.99.1 (NEOWARE) #0: Wed Aug 20 23:31:10 CDT 2014  sysop@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/NEOWARE i386
 Build Date: 04 August 2014  06:18:53PM

 Current version of pixman: 0.32.4
 	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: "/var/log/Xorg.0.log", Time: Fri Aug 22 14:55:39 2014
 (==) Using system config directory "/usr/pkg/share/X11/xorg.conf.d"
 3145728 bytes of DRI memory allocated at 0, handle 1585370986
 262144 bytes of DRI memory allocated at 300000, handle 2898459703
 32 bytes of DRI memory allocated at 340000, handle 2589265463
 32 bytes of DRI memory allocated at 340020, handle 1526190376
 256 bytes of DRI memory allocated at 340040, handle 3778958601
 256 bytes of DRI memory allocated at 340140, handle 3711521160
 2097152 bytes of DRI memory allocated at 340240, handle 471372120
 4194304 bytes of DRI memory allocated at 0, handle 3770701770

 ERROR!  sizeof(VIADRIRec) does not match passed size from device driver

 [ kernel syslog messages ]
 Aug 22 14:55:40 neoware /netbsd: viadrm0: interrupting at irq 3
 Aug 22 14:55:40 neoware /netbsd: error: [drm:pid2755:via_initialize] *ERROR* called again without calling cleanup

 I'll post Xorg.0.log files for each setup in separate replies if they
 will provide more clues.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
Date: Sat, 23 Aug 2014 14:35:07 -0500 (CDT)

 On Fri, 22 Aug 2014, John D. Baker wrote:

 > /usr/X11R7/lib/modules/drivers/openchrome_drv.so: Undefined PLT symbol "UMSPreInit" (symnum = 72)
 > 
 >    xsrc/external/mit/xf86-video-openchrome/dist/src/via_ums.c
 > 
 >   src/external/mit/xorg/server/drivers/xf86-video-openchrome/Makefile
 > 
 > I've added it and am in the process of rebuilding.

 Now it crashes with a different undefined symbol:

 X.Org X Server 1.10.6
 Release Date: 2011-07-08
 X Protocol Version 11, Revision 0
 Build Operating System: NetBSD/i386  - 
 Current Operating System: NetBSD neoware 7.99.1 NetBSD 7.99.1 (NEOWARE) #2: Sat Aug 23 12:47:30 CDT 2014  sysop@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/NEOWARE i386
 Build Date: 01 August 2011  01:01:00AM

 Current version of pixman: 0.32.6
 	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: "/var/log/Xorg.2.log", Time: Sat Aug 23 14:07:09 2014
 (==) Using default built-in configuration (21 lines)
 /usr/X11R7/lib/modules/drivers/openchrome_drv.so: Undefined PLT symbol "VIAVidHWDiffInit" (symnum = 43)

 The symbol is defined in:

   xsrc/external/mit/xf86-video-openchrome/dist/src/via_xv_overlay.c

 Which is again absent from SRCS in the reachover Makefile.

 I've added it and will be rebuilding soon.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: xsrc-manager@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org, jdbaker@mylinuxisp.com
Subject: re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
Date: Sun, 24 Aug 2014 06:32:17 +1000

 indeed, the soures list for this driver seems to be missing
 several things.  try this patch, which builds for me and nm -u
 shows has only expected missing symbols.

 thanks.


 .mrg.


 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/src/external/mit/xorg/server/drivers/xf86-video-openchrome/Makefile,v
 retrieving revision 1.5
 diff -p -r1.5 Makefile
 *** Makefile	1 Jun 2013 21:21:36 -0000	1.5
 --- Makefile	23 Aug 2014 20:30:39 -0000
 *************** DRIVER_NAME=	openchrome_drv
 *** 5,10 ****
 --- 5,13 ----

   SRCS=	\
   	via_3d.c \
 + 	via_exa.c \
 + 	via_exa_h2.c \
 + 	via_exa_h6.c \
   	via_bandwidth.c \
   	via_ch7xxx.c \
   	via_display.c \
 *************** SRCS=	\
 *** 13,25 ****
 --- 16,34 ----
   	via_id.c \
   	via_lvds.c \
   	via_memcpy.c \
 + 	via_memmgr.c \
 + 	via_outputs.c \
 + 	via_xv_overlay.c \
 + 	via_ums.c \
   	via_vbe.c \
   	via_vgahw.c \
 + 	via_xv.c \
   	via_vt162x.c

   # DRI
   SRCS+=	\
   	via_dri.c \
 + 	via_kms.c \
   	via_xvmc.c

   MAN=	openchrome.4

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
Date: Sat, 23 Aug 2014 23:17:20 -0500 (CDT)

 On Sun, 24 Aug 2014, matthew green wrote:

 > indeed, the soures list for this driver seems to be missing several
 > things.  try this patch, which builds for me and nm -u shows has only
 > expected missing symbols.

 With the patch, the X server doesn't crash and initializes the display.
 It should certainly be committed and pulled up to netbsd-7.

 Like the pkgsrc/modular X server and openchrome driver, however, the
 mouse pointer is invisible all the time.  That needs more investigation.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
Date: Tue, 10 Jul 2018 19:30:08 -0500 (CDT)

 With the recent changes surrounding "viadrm"->"viadrmums" and the like,
 I should dig this machine out again and see if the issues with this PR
 have been addressed (not really DRM issues, but "openchrome_drv.so"
 issues).

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: maya@netbsd.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
Date: Wed, 11 Jul 2018 06:30:03 +0000

 On Wed, Jul 11, 2018 at 12:35:00AM +0000, John D. Baker wrote:
 > The following reply was made to PR xsrc/48317; it has been noted by GNATS.
 > 
 > From: "John D. Baker" <jdbaker@mylinuxisp.com>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
 > Date: Tue, 10 Jul 2018 19:30:08 -0500 (CDT)
 > 
 >  With the recent changes surrounding "viadrm"->"viadrmums" and the like,
 >  I should dig this machine out again and see if the issues with this PR
 >  have been addressed (not really DRM issues, but "openchrome_drv.so"
 >  issues).

 I did fix it in -current (I have a VIA graphics machine):
 https://mail-index.netbsd.org/source-changes/2018/07/10/msg096671.html

 I'll need to test the same fix for netbsd-8 separately.
 netbsd-7 seemed fine, I used its /usr/X11R7 for the initial testing.

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
Date: Wed, 11 Jul 2018 14:04:57 -0500 (CDT)

 On Wed, 11 Jul 2018, maya@netbsd.org wrote:

 >  On Wed, Jul 11, 2018 at 12:35:00AM +0000, John D. Baker wrote:
 >
 > >  With the recent changes surrounding "viadrm"->"viadrmums" and the like,
 > >  I should dig this machine out again and see if the issues with this PR
 > >  have been addressed (not really DRM issues, but "openchrome_drv.so"
 > >  issues).
 >  
 >  I did fix it in -current (I have a VIA graphics machine):
 >  https://mail-index.netbsd.org/source-changes/2018/07/10/msg096671.html

 As of netbsd-current (8.99.21) built from sources updated on 7 July
 2018, the openchrome driver still crashes with yet another undefined
 PLT symbol:

   /usr/X11R7/lib/modules/drivers/openchrome_drv.so: Undefined PLT symbol "viaVT1632Init" (symnum = 309)

 Note that this is still using the deprecated-but-not-yet-removed "viadrm"
 driver.  I've since updated the sources such that "viadrm" is gone and
 a kernel using "viadrmums" will be built soon-ish.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
Date: Wed, 11 Jul 2018 14:11:42 -0500 (CDT)

 On Wed, 11 Jul 2018, John D. Baker wrote:

 > On Wed, 11 Jul 2018, maya@netbsd.org wrote:
 > 
 > >  I did fix it in -current (I have a VIA graphics machine):
 > >  https://mail-index.netbsd.org/source-changes/2018/07/10/msg096671.html
 > 
 > As of netbsd-current (8.99.21) built from sources updated on 7 July
 > 2018, the openchrome driver still crashes with yet another undefined
 > PLT symbol:
 > 
 >   /usr/X11R7/lib/modules/drivers/openchrome_drv.so: Undefined PLT symbol "viaVT1632Init" (symnum = 309)

 If this is the same symbol you saw, then my recent source update will
 include the fix.  Building soon.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/48317: openchrome driver crashes with undefined PLT symbol
Date: Wed, 11 Jul 2018 20:50:44 -0500 (CDT)

 On Wed, 11 Jul 2018, John D. Baker wrote:

 > On Wed, 11 Jul 2018, John D. Baker wrote:
 > 
 > > On Wed, 11 Jul 2018, maya@netbsd.org wrote:
 > > 
 > > >  I did fix it in -current (I have a VIA graphics machine):
 > > >  https://mail-index.netbsd.org/source-changes/2018/07/10/msg096671.html
 > > 
 > > As of netbsd-current (8.99.21) built from sources updated on 7 July
 > > 2018, the openchrome driver still crashes with yet another undefined
 > > PLT symbol:
 > > 
 > >   /usr/X11R7/lib/modules/drivers/openchrome_drv.so: Undefined PLT symbol "viaVT1632Init" (symnum = 309)
 > 
 > If this is the same symbol you saw, then my recent source update will
 > include the fix.  Building soon.

 The openchrome_drv.so seems to be fixed with regard to undefined PLT
 symbols.  Starting X on the NeoWare thin client shows:

 X.Org X Server 1.18.4
 Release Date: 2016-07-19
 X Protocol Version 11, Revision 0
 Build Operating System: NetBSD/i386 8.99.21 - The NetBSD Foundation, Inc.
 Current Operating System: NetBSD neoware 8.99.21 NetBSD 8.99.21 (NEOWARE) #26: Wed Jul 11 19:10:47 CDT 2018  sysop@plex760.technoskunk.fur:/r0/build/current/obj/i386/sys/arch/i386/compile/NEOWARE i386
 Build Date: 14 August 2016  01:29:29AM

 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: "/var/log/Xorg.0.log", Time: Wed Jul 11 20:34:18 2018
 (==) Using default built-in configuration (30 lines)
 3145728 bytes of Linear memory allocated at 300000, handle 3107467616
 262144 bytes of Linear memory allocated at 600000, handle 3107467664
 32 bytes of Linear memory allocated at 640000, handle 3107468480
 32 bytes of Linear memory allocated at 640080, handle 3107468528
 256 bytes of Linear memory allocated at 640100, handle 3107468720
 256 bytes of Linear memory allocated at 640200, handle 3107468576
 DRM memory allocation failed -6
 635904 bytes of Linear memory allocated at 641000, handle 3107468816
 Freed 6557696 (pool 4)
 The XKEYBOARD keymap compiler (xkbcomp) reports:
 > Error:            Couldn't lookup keysym
 >                   Symbol interpretation ignored
 > Error:            Couldn't lookup keysym
 >                   Symbol interpretation ignored
 Errors from xkbcomp are not fatal to the X server

 The DRM memory allocation failure seems harmless--the X server is
 running and client applications open just fine.

 Looks like this one can be closed.

 See xsrc/49155 for remaining issues.


 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

State-Changed-From-To: open->closed
State-Changed-By: spz@NetBSD.org
State-Changed-When: Wed, 05 Dec 2018 07:15:59 +0000
State-Changed-Why:
reported reported it fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.