Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758470 - Xorg crashes with media-libs/mesa-20.3.0_rc3 using x11-drivers/xf86-video-ati
Summary: Xorg crashes with media-libs/mesa-20.3.0_rc3 using x11-drivers/xf86-video-ati
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/mesa/m...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-04 23:34 UTC by Attila Tóth
Modified: 2020-12-27 22:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2020-12-04 23:34:28 UTC
After upgrading media-libs/mesa-20.3.0_rc2 to _rc3, Xorg started to crash upon start.

I'm using the radeon driver on two machines with Radeon Bonaire graphics card (FirePro W5100 and a FirePro W6170M). Kernel: sys-kernel/gentoo-sources-5.8.18.

[  1891.098] (II) RADEON(0): EDID for output DisplayPort-1
[  1891.142] (II) RADEON(0): EDID for output DisplayPort-2
[  1891.158] (II) RADEON(0): EDID for output VGA-0
[  1891.158] (II) RADEON(0): Output eDP connected
[  1891.158] (II) RADEON(0): Output DisplayPort-0 connected
[  1891.158] (II) RADEON(0): Output DisplayPort-1 disconnected
[  1891.158] (II) RADEON(0): Output DisplayPort-2 disconnected
[  1891.158] (II) RADEON(0): Output VGA-0 disconnected
[  1891.158] (II) RADEON(0): Using user preference for initial modes
[  1891.158] (II) RADEON(0): Output eDP using initial mode 1920x1080 +0+0
[  1891.158] (II) RADEON(0): Output DisplayPort-0 using initial mode 1920x1080 +0+0
[  1891.158] (II) RADEON(0): mem size init: gart size :7fb66000 vram size: s:80000000 visible:de81000
[  1891.158] (==) RADEON(0): DPI set to (96, 96)
[  1891.158] (==) RADEON(0): Using gamma correction (1.0, 1.0, 1.0)
[  1891.158] (II) Loading sub module "ramdac"
[  1891.159] (II) LoadModule: "ramdac"
[  1891.159] (II) Module "ramdac" already built-in
[  1891.159] (II) UnloadModule: "modesetting"
[  1891.159] (II) Unloading modesetting
[  1891.159] (II) RADEON(0): [DRI2] Setup complete
[  1891.159] (II) RADEON(0): [DRI2]   DRI driver: radeonsi
[  1891.159] (II) RADEON(0): [DRI2]   VDPAU driver: radeonsi
[  1891.159] (II) RADEON(0): Front buffer size: 16200K
[  1891.160] (II) RADEON(0): VRAM usage limit set to 190393K
[  1891.160] (II) RADEON(0): SYNC extension fences enabled
[  1891.160] (II) RADEON(0): Present extension enabled
[  1891.160] (==) RADEON(0): DRI3 enabled
[  1891.160] (==) RADEON(0): Backing store enabled
[  1891.160] (II) RADEON(0): Direct rendering enabled
[  1891.167] (II) RADEON(0): Use GLAMOR acceleration.
[  1891.167] (II) RADEON(0): Acceleration enabled
[  1891.167] (==) RADEON(0): DPMS enabled
[  1891.168] (==) RADEON(0): Silken mouse enabled
[  1891.168] (II) RADEON(0): Set up textured video (glamor)
[  1891.168] (II) RADEON(0): [XvMC] Associated with GLAMOR Textured Video.
[  1891.168] (II) RADEON(0): [XvMC] Extension initialized.
[  1891.206] (II) Initializing extension Generic Event Extension
[  1891.206] (II) Initializing extension SHAPE
[  1891.206] (II) Initializing extension MIT-SHM
[  1891.206] (II) Initializing extension XInputExtension
[  1891.206] (II) Initializing extension XTEST
[  1891.206] (II) Initializing extension BIG-REQUESTS
[  1891.207] (II) Initializing extension SYNC
[  1891.207] (II) Initializing extension XKEYBOARD
[  1891.207] (II) Initializing extension XC-MISC
[  1891.207] (II) Initializing extension SECURITY
[  1891.207] (II) Initializing extension XFIXES
[  1891.207] (II) Initializing extension RENDER
[  1891.207] (II) Initializing extension RANDR
[  1891.208] (II) Initializing extension COMPOSITE
[  1891.208] (II) Initializing extension DAMAGE
[  1891.208] (II) Initializing extension MIT-SCREEN-SAVER
[  1891.208] (II) Initializing extension DOUBLE-BUFFER
[  1891.208] (II) Initializing extension RECORD
[  1891.208] (II) Initializing extension DPMS
[  1891.208] (II) Initializing extension Present
[  1891.208] (II) Initializing extension DRI3
[  1891.208] (II) Initializing extension X-Resource
[  1891.209] (II) Initializing extension XVideo
[  1891.209] (II) Initializing extension XVideo-MotionCompensation
[  1891.209] (II) Initializing extension GLX
[  1891.214] (II) AIGLX: Loaded and initialized radeonsi
[  1891.214] (II) GLX: Initialized DRI2 GL provider for screen 0
[  1891.214] (II) Initializing extension XFree86-VidModeExtension
[  1891.214] (II) Initializing extension XFree86-DGA
[  1891.214] (II) Initializing extension XFree86-DRI
[  1891.214] (II) Initializing extension DRI2
[  1891.216] (II) RADEON(0): Setting screen physical size to 1016 x 285
[  1891.279] (EE)
[  1891.279] (EE) Backtrace:
[  1891.279] (EE) 0: /usr/bin/X (OsLookupColor+0x135) [0x1da72fd0a0b5]
[  1891.280] (EE) 1: /lib64/libpthread.so.0 (funlockfile+0x50) [0x6e6f974fd9ef]
[  1891.280] (EE) 2: /usr/lib64/dri/radeonsi_dri.so (amdgpu_winsys_create+0xc7f2) [0x6e6f96379112]
[  1891.280] (EE) 3: /usr/lib64/dri/radeonsi_dri.so (radeon_drm_winsys_create+0x61974) [0x6e6f9639c884]
[  1891.280] (EE) 4: /usr/lib64/dri/radeonsi_dri.so (radeon_drm_winsys_create+0x65a05) [0x6e6f963a4e55]
[  1891.280] (EE) 5: /usr/lib64/dri/radeonsi_dri.so (radeon_drm_winsys_create+0x66bf5) [0x6e6f963a6c05]
[  1891.281] (EE) 6: /usr/lib64/dri/radeonsi_dri.so (radeon_drm_winsys_create+0x5bf10) [0x6e6f96391770]
[  1891.281] (EE) 7: /usr/lib64/dri/radeonsi_dri.so (radeon_drm_winsys_create+0x44799) [0x6e6f963628f9]
[  1891.281] (EE) 8: /usr/lib64/dri/radeonsi_dri.so (ac_init_shared_llvm_once+0x65b43) [0x6e6f9644e813]
[  1891.281] (EE) 9: /usr/lib64/dri/radeonsi_dri.so (__driDriverGetExtensions_zink+0xc8a0) [0x6e6f95bc3f30]
[  1891.282] (EE) 10: /usr/lib64/dri/radeonsi_dri.so (__driDriverGetExtensions_zink+0xd3d3) [0x6e6f95bc6413]
[  1891.282] (EE) 11: /usr/lib64/dri/radeonsi_dri.so (__driDriverGetExtensions_zink+0x19ef9d) [0x6e6f95ee950d]
[  1891.282] (EE) 12: /usr/lib64/dri/radeonsi_dri.so (__driDriverGetExtensions_zink+0x1a0dce) [0x6e6f95eed85e]
[  1891.282] (EE) 13: /usr/lib64/xorg/modules/libglamoregl.so (glamor_create_gc+0x10a9) [0x6e6f97078609]
[  1891.283] (EE) 14: /usr/lib64/xorg/modules/libglamoregl.so (glamor_create_gc+0xf06b) [0x6e6f970949ab]
[  1891.283] (EE) 15: /usr/lib64/xorg/modules/libglamoregl.so (glamor_create_gc+0xf60d) [0x6e6f9709551d]
[  1891.283] (EE) 16: /usr/bin/X (DamageRegionAppend+0x1595) [0x1da72fc8e4d5]
[  1891.283] (EE) 17: /usr/bin/X (ServerBitsFromGlyph+0x143) [0x1da72fbc7363]
[  1891.284] (EE) 18: /usr/bin/X (AllocGlyphCursor+0x11d) [0x1da72fba0eed]
[  1891.284] (EE) 19: /usr/bin/X (CreateRootCursor+0x9d) [0x1da72fba137d]
[  1891.284] (EE) 20: /usr/bin/X (InitFonts+0x2ff) [0x1da72fbb15df]
[  1891.284] (EE) 21: /lib64/libc.so.6 (__libc_start_main+0xea) [0x6e6f97350e0a]
[  1891.284] (EE) 22: /usr/bin/X (_start+0x2a) [0x1da72fb9aeaa]
[  1891.285] (EE)
[  1891.285] (EE) Floating point exception at address 0x6e6f9636c942
[  1891.285] (EE)
Fatal server error:
[  1891.285] (EE) Caught signal 8 (Floating point exception). Server aborting
[  1891.285] (EE)
[  1891.285] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[  1891.285] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1891.285] (EE)
[  1891.285] (II) AIGLX: Suspending AIGLX clients for VT switch
[  1891.298] (EE) Server terminated with error (1). Closing log file.


Reproducible: Always
Comment 1 Attila Tóth 2020-12-04 23:36:47 UTC
I've bisected the problem and the culprit commit turns out to be this one:

commit 5bf5eb452f5c891d0dfc2fba014a0f80e3899ee1
Author: Marek Olšák <marek.olsak@amd.com>
Date:   Tue Nov 10 21:30:52 2020 -0500

    ac: fix min/max_good_num_cu_per_sa on gfx10.3 with disabled SEs

    Fixes: 9538b9a68ed - radeonsi: add support for Sienna Cichlid

    Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7542>
    (cherry picked from commit f2977a162af46ff0b9d9334bb677b768900ba5d3)

 .pick_status.json                             |  2 +-
 src/amd/common/ac_gpu_info.c                  | 15 ++++++++++++---
 src/amd/common/ac_gpu_info.h                  |  3 ++-
 src/amd/vulkan/winsys/null/radv_null_winsys.c |  1 +
 4 files changed, 16 insertions(+), 5 deletions(-)

I'm not sure how this is related to the actual graphics card, but I will test mesa-20.3.0 final in the tree in a couple of days and update this bug.
Comment 2 Peter Levine 2020-12-05 23:05:51 UTC
Based on the backtrace, it looks like https://gitlab.freedesktop.org/mesa/mesa/-/issues/3784
Comment 3 Peter Levine 2020-12-05 23:08:40 UTC
(In reply to Peter Levine from comment #2)
> Based on the backtrace, it looks like
> https://gitlab.freedesktop.org/mesa/mesa/-/issues/3784

Disregard.  Was looking at the wrong bug.
Comment 4 Piotr Karbowski (RETIRED) gentoo-dev 2020-12-06 15:18:42 UTC
Have you tried to reach to the author of the commit that breaks mesa? That might be the fastest way to get his attention.
Comment 5 Attila Tóth 2020-12-06 16:25:37 UTC
(In reply to Piotr Karbowski from comment #4)
> Have you tried to reach to the author of the commit that breaks mesa? That
> might be the fastest way to get his attention.

I've wrote an email to the author of the commit.
I'm not sure about the scope of this problem. Peter Levine also has a Bonaire graphics card.
Comment 6 Matt Turner gentoo-dev 2020-12-27 22:20:34 UTC
Fixed in 20.3.1.