Bug#943664: Solution for PowerMac11,2

2020-05-01 Thread Ralf P.
On Fri, May 01, 2020 at 09:10:50AM +0200, Michel Dänzer wrote:

> > Note: For me this triggers another bug: If I run my AMD Radeon
> > hardware accelerated the X11 internal font server shows garbled
> > (sometimes looking like reversed) characters.
> > Client side font rendering (Firefox, LibreOffice, Emacs, sakura)
> > works.
> > My Nvidia card is affected too. Until now I have no soultion for this.
> 
> Sounds like https://gitlab.freedesktop.org/xorg/xserver/-/issues/1011 .

Confirmed!

Setting "AccelMethod" to "EXA" in xorg.conf
-> all characters are OK

Setting "AccelMethod" to "glamor" in xorg.conf
-> all characters are garbled/mirrored


@Michel: Thank you very much for this hint.

@Michel: You already replied to:
 https://gitlab.freedesktop.org/xorg/xserver/-/issues/1011
 Do you want me to confirm the bug on freedesktop.org for PPC64?



Bug#943664: Solution for PowerMac11,2

2020-04-30 Thread Ralf P.
Hi.

On my Apple G5 (PowerMac11,2) hardware acceleration was disabled
because of a failed "ring 0 test", resulting in the error
"undefined symbol: exaGetPixmapDriverPrivate"

According to a note I found on the net "the PCIe-x16 slot is directly
connected to the system controller and the other PCIe-x slots are
routed through some kind of hub."

The "ring 0 test" failure was resolved after moving the graphics card
from the x16 slot to the x8 slot. Hardware acceleration now works.


Note: For me this triggers another bug: If I run my AMD Radeon
hardware accelerated the X11 internal font server shows garbled
(sometimes looking like reversed) characters.
Client side font rendering (Firefox, LibreOffice, Emacs, sakura)
works.
My Nvidia card is affected too. Until now I have no soultion for this.



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