Bug#943664: xserver-xorg-video-radeon 19.1 (ppc64) crash at startup: undefined symbol: exaGetPixmapDriverPrivate

2020-01-08 Thread Andreas Beckmann
Control: severity -1 important

On Sun, 27 Oct 2019 16:59:23 +0100 "Ralf P."  wrote:
> Package: xserver-xorg-video-radeon
> Version: 1:19.0.1-1
> Severity: grave
> Justification: renders package unusable
> 
> Dear Maintainer,
> 
>on the ppc64 architecture the package 

Downgrading the severity for a Debian ports architecture.


Andreas



Bug#943664: xserver-xorg-video-radeon 19.1 (ppc64) crash at startup: undefined symbol: exaGetPixmapDriverPrivate

2020-01-08 Thread Shawn Rutledge
>on the ppc64 architecture the package 
>
>   xserver-xorg-video-radeon_1%3a19.1.0-1_ppc64.deb
> 
>crashes the xserver at startup.
>Xorg complains about an undefined symbol: exaGetPixmapDriverPrivate

I’m having this issue too, after installing Debian “sid” for PPC64 big-endian 
on a PowerMac G5 and updating everything: I end up with 
xserver-xorg-video-radeon and xserver-xorg-video-ati  19.1.0-1.  So have been 
trying the suggested workarounds.  The only driver that seems to “work” for 
unaccelerated graphics is fbdev.  In that case Qt even manages to fall back to 
llvmpipe and render OpenGL (Qt Quick) content mostly correctly.  But of course, 
having a GPU, I’d certainly rather be able to use it.

The modesetting driver with AccelMethod “none” will start, but the color 
rendering has obvious issues probably related to endianness: black turns into 
bright blue, glxgears runs (via software emulation apparently) but the gears 
are cyan and magenta on a bright blue background, and generally hard to see.

I work on Qt.  Once in a while I build and test Qt on this machine to see what 
endian-related issues are showing up, and try to fix them as a low-priority 
thing.  I needed to upgrade to sid because Debian 8 was the last version that 
actually had a PPC big-endian 64-bit release, and the compiler on that version 
is getting long in the tooth; Qt 5.14 doesn’t build so easily anymore with such 
an old one.

GPU seems to be an AGP Radeon 9600; lspci says

:f0:10.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
RV350 [Radeon 9550/9600/X1050 Series]

BTW if I try to use amdgpu, I ran into the issue that glamor requires 128 or 
more instructions but this GPU only supports 64.  So it would really need to be 
radeon_drv for best performance I suppose.  (By comparison, on Debian 8 the 
radeon driver is automatically chosen, but the log says GPU access disabled or 
not working, using shadowfb for KMS.  The colors are fine, but the OpenGL 
performance is not good, of course.)

Here’s my current /etc/X11/xorg.conf.d/10-modesetting.conf
Section "Device"
Identifier "rv350"
#Driver  "fbdev"
Driver  "modesetting"
Option  "AccelMethod" "none"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName  "Samsung SyncMaster"
HorizSync   30.0 - 81.0
VertRefresh 50.0 - 63.0
Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "rv350"
Monitor"Monitor0"
DefaultDepth24
SubSection "Display"
Depth   24
EndSubSection
EndSection

And xorg.log with that setup:

[147798.710]
X.Org X Server 1.20.6
X Protocol Version 11, Revision 0
[147798.759] Build Operating System: Linux 4.19.0-5-powerpc64 ppc64 Debian
[147798.776] Current Operating System: Linux g5deb 5.4.0-2-powerpc64 #1 SMP 
Debian 5.4.8-1 (2020-01-05) ppc64
[147798.776] Kernel command line: 
root=UUID=7afdfb2d-2088-4916-8a9f-1c6ff2c1c046 ro ramdisk_size=8192
[147798.809] Build Date: 25 November 2019  09:49:09AM
[147798.825] xorg-server 2:1.20.6-1 (https://www.debian.org/support)
[147798.841] Current version of pixman: 0.36.0
[147798.874]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[147798.874] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[147798.940] (==) Log file: "/home/rutledge/.local/share/xorg/Xorg.9.log", 
Time: Wed Jan  8 10:55:18 2020
[147798.957] (==) Using config directory: "/etc/X11/xorg.conf.d"
[147798.974] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[147798.978] (==) No Layout section.  Using the first Screen section.
[147798.978] (**) |-->Screen "Screen0" (0)
[147798.978] (**) |   |-->Monitor "Monitor0"
[147798.980] (**) |   |-->Device "rv350"
[147798.980] (==) Automatically adding devices
[147798.980] (==) Automatically enabling devices
[147798.980] (==) Automatically adding GPU devices
[147798.980] (==) Max clients allowed: 256, resource mask: 0x1f
[147798.981] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[147798.981]Entry deleted from font path.
[147798.982] (==) 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,
built-ins
[147798.982] (==) ModulePath set to "/usr/lib/xorg/modules"
[147798.982] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[147798.982] (II) Loader magic: 0x12e202ad0
[147798.982] (II) 

Bug#943664: xserver-xorg-video-radeon 19.1 (ppc64) crash at startup: undefined symbol: exaGetPixmapDriverPrivate

2019-11-06 Thread Ralf P.
Hi.

I assume that the error occurs on the PPC64 system because of
disabled HA (Hardware Acceleration) too:

According to 

   https://bugs.freedesktop.org/show_bug.cgi?id=99851

a "ring 0 test failed" message from drm means that HA gets disabled.


dmesg | grep -i drm

[5.621228] [drm] radeon kernel modesetting enabled.
[5.662906] [drm] initializing kernel modesetting (CEDAR 0x1002:0x68FA 
0x174B:0xE127 0x00).
[5.974683] [drm] GPU not posted. posting now...
[6.017017] [drm] Detected VRAM RAM=1024M, BAR=256M
[6.017018] [drm] RAM width 64bits DDR
[6.082254] [drm] radeon: 1024M of VRAM memory ready
[6.195713] [drm] radeon: 1024M of GTT memory ready.
[6.220009] [drm] Loading CEDAR Microcode
[6.335990] [drm] Internal thermal controller with fan control
[6.364947] [drm] radeon: dpm initialized
[6.396903] [drm] GART: num cpu pages 16384, num gpu pages 262144
[6.458639] [drm] PCIE GART of 1024M enabled (table at 0x0015).
[6.531588] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[6.576700] [drm] Driver supports precise vblank timestamp query.
[6.641177] [drm] radeon: irq initialized.
[6.834702] [drm:.r600_ring_test [radeon]] *ERROR* radeon: ring 0 test 
failed (scratch(0x8504)=0xCAFEDEAD)
[6.863707] [drm] Radeon Display Connectors
[6.880862] [drm] Connector 0:
[6.880863] [drm]   DVI-I-1
[6.880865] [drm]   HPD2
[6.880867] [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 
0x643c
[6.880868] [drm]   Encoders:
[6.880869] [drm] DFP1: INTERNAL_UNIPHY1
[6.880870] [drm] CRT2: INTERNAL_KLDSCP_DAC2
[6.880875] [drm] Connector 1:
[6.902720] [drm]   DVI-I-2
[6.913316] [drm]   HPD4
[6.987101] [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 
0x644c
[7.001856] [drm]   Encoders:
[7.007757] [drm] DFP2: INTERNAL_UNIPHY
[7.016093] [drm] CRT1: INTERNAL_KLDSCP_DAC1
[7.112647] [drm] fb mappable at 0x9036
[7.120638] [drm] vram apper at 0x9000
[7.128797] [drm] size 7733248
[7.134875] [drm] fb depth is 24
[7.141298] [drm]pitch is 6400
[7.212427] radeon :0a:00.0: fb0: radeondrmfb frame buffer device
[7.238821] [drm] Initialized radeon 2.50.0 20080528 for :0a:00.0 on 
minor 0



I tested these kernel versions:
4.18.0-3-powerpc64   (official kernel from Debian PPC64 sid)
4.19.28-rt16 (self compiled, with realtime patches)

Both result in "ring 0 test failed".


In my opinion it would be great if:

1) xserver-xorg-video-radeon_1%3a19.1.0-1 would not fail but fall back to
   frame buffer device like xserver-xorg-video-radeon_1%3a19.0.1-1

2) the "ring 0 test" would not fail
   According to the last post from the link above the failure was
   seen in 4.14.4 and 4.15-rc2 but not in kernel 4.17.2.
   Maybe I should get/compile a linux 4.17.2 kernel.

Thank you and best regards,
Ralf



Bug#943664: xserver-xorg-video-radeon 19.1 (ppc64) crash at startup: undefined symbol: exaGetPixmapDriverPrivate

2019-10-27 Thread Ralf P.
Package: xserver-xorg-video-radeon
Version: 1:19.0.1-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

   on the ppc64 architecture the package 
   
  xserver-xorg-video-radeon_1%3a19.1.0-1_ppc64.deb

   crashes the xserver at startup.
   Xorg complains about an undefined symbol: exaGetPixmapDriverPrivate
   
   The bug occured after an update
   from:  xserver-xorg-video-radeon_1%3a19.0.1-1_ppc64.deb
   to:xserver-xorg-video-radeon_1%3a19.1.0-1_ppc64.deb

   To make sure the bug is in xserver-xorg-video-radeon 19.1.0-1
   I switched several times between these two versions of the package.
   As soon as version 19.0.1-1 is installed, Xorg runs well.


   Log from Xorg (in console):

  X.Org X Server 1.20.4
  X Protocol Version 11, Revision 0
  Build Operating System: Linux 4.19.0-2-powerpc64 ppc64 Debian
  Current Operating System: Linux g5-1 4.19.28-rt16rp1 #1 SMP Tue Apr 30 
21:12:53 CEST 2019 ppc64
  Kernel command line: BOOT_IMAGE=/boot/vmlinux-4.19.28-rt16rp1 
root=UUID=0b889fec-98b2-4e34-ade1-1a43105f8417 ro
  Build Date: 05 March 2019  08:11:12PM
  xorg-server 2:1.20.4-1 (https://www.debian.org/support) 
  Current version of pixman: 0.36.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: "/home/ralf/.local/share/xorg/Xorg.1.log", Time: Sun Oct 
27 15:29:03 2019
  (==) Using system config directory "/usr/share/X11/xorg.conf.d"
  (II) [KMS] Kernel modesetting enabled.
  /usr/lib/xorg/Xorg: symbol lookup error: 
/usr/lib/xorg/modules/drivers/radeon_drv.so: undefined symbol: 
exaGetPixmapDriverPrivate
  xinit: giving up
  xinit: unable to connect to X server: Connection refused
  xinit: server error
  

-- Package-specific info:
/etc/X11/X does not exist.
/etc/X11/X is not a symlink.
/etc/X11/X is not executable.

VGA-compatible devices on PCI bus:
--
:0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. 
[AMD/ATI] Cedar [Radeon HD 7350/8350 / R5 220] [1002:68fa]


DRM Information from dmesg:
--

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64

Kernel: Linux 4.19.28-rt16rp1 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xserver-xorg-video-radeon depends on:
ii  libc6  2.29-2
ii  libdrm-radeon1 2.4.99-1
ii  libgbm119.2.1-1
ii  libudev1   242-7
ii  xserver-xorg-core [xorg-video-abi-24]  2:1.20.4-1

xserver-xorg-video-radeon recommends no packages.

Versions of packages xserver-xorg-video-radeon suggests:
ii  firmware-amd-graphics  20180825+dfsg-1

-- no debconf information