Patched kernel, lost graphics config

I received the security kernel patch 716(?) yesterday but held off on installing it immediately, mainly in case something goes wrong, as I’ve had in the past with new kernels and not yet updated NVidia drivers. I could always install the NVidia driver the “hard way”, til the official one gets built.

I’m running a Radeon now, so am currently using AMDGPU drivers. I don’t think there’s a “hard way” to install them, so rely upon the repositories.

The kernel is updated…

% uname -a

Linux linux-XXXX 5.3.18-lp152.75-default #1 SMP Wed May 5 09:22:56 UTC 2021 (16c42c8) x86_64 x86_64 x86_64 GNU/Linux

After the reboot, my dual monitor, mixed resolution, 2560 x 1440 and 1920 x 1200, setup became a dual monitor, mirrored 1400 x 1050 setup. The configuration seems lost.

X-Server information from KInfocenter says:

Vendor Release Number 1.20.3
Version Number 11.0

% lsmod | grep amd

amdgpu               4755456  0
amd_iommu_v2           20480  1 amdgpu
gpu_sched              36864  1 amdgpu
i2c_algo_bit           16384  1 amdgpu
drm_kms_helper        229376  1 amdgpu
ttm                   122880  1 amdgpu
drm                   544768  4 gpu_sched,drm_kms_helper,amdgpu,ttm

So the kernel module seems loaded.

% more /etc/X11/xorg.conf.d/10-amdgpu.conf

Section "OutputClass"
        Identifier "AMDgpu"
        MatchDriver "amdgpu"
        Driver "amdgpu"
EndSection
% more /etc/X11/xorg.conf.d/50-screen.conf

# Having multiple "Screen" sections is known to be problematic. Make
# sure you don't have in use another one laying around e.g. in another
# xorg.conf.d file or even a generic xorg.conf file. More details can
# be found in https://bugs.freedesktop.org/show_bug.cgi?id=32430.
#
#Section "Screen"
#  Identifier "Default Screen"
#
#  Device "Default Device"
#
#  ## Doesn't help for radeon/radeonhd drivers; use magic in
#  ## 50-device.conf instead
#  Monitor "Default Monitor"
#
#EndSection
% more /etc/X11/xorg.conf.d/50-device.conf

# Having multiple "Device" sections is known to be problematic. Make
# sure you don't have in use another one laying around e.g. in another
# xorg.conf.d file or even a generic xorg.conf file. More details can
# be found in https://bugs.freedesktop.org/show_bug.cgi?id=32430.
#
#Section "Device"
#  Identifier "Default Device"
#
#  #Driver "radeon"
#
#  ## Required magic for radeon/radeonhd drivers; output name
#  ## (here: "DVI-0") can be figured out via 'xrandr -q'
#  #Option "monitor-DVI-0" "Default Monitor"
#
#EndSection

Installed drivers…

% rpm -qa | grep amd

libgles-amdgpu-pro-21.10-1244864.x86_64
mesa-amdgpu-filesystem-20.3.4-1244864.x86_64
mesa-amdgpu-libGL-20.3.4-1244864.x86_64
libgl-amdgpu-pro-dri-21.10-1244864.x86_64
amdgpu-lib-21.10-1244864.x86_64
llvm-amdgpu-libs-11.0-1244864.x86_64
mesa-amdgpu-dri-drivers-20.3.4-1244864.x86_64
mesa-amdgpu-libxatracker-20.3.4-1244864.x86_64
libsamdb0-32bit-4.11.14+git.247.8c858f7ee14-lp152.3.19.1.x86_64
amdgpu-21.10-1244864.x86_64
libdrm-amdgpu-2.4.100-1244864.x86_64
libdrm-amdgpu-common-1.0.0-1244864.noarch
libgl-amdgpu-pro-ext-21.10-1244864.x86_64
mesa-amdgpu-libglapi-20.3.4-1244864.x86_64
libgl-amdgpu-pro-21.10-1244864.x86_64
xf86-video-amdgpu-18.1.0-lp152.2.5.x86_64
libdrm_amdgpu1-2.4.100-lp152.1.4.x86_64
mesa-amdgpu-libgbm-20.3.4-1244864.x86_64
libgl-amdgpu-pro-appprofiles-21.10-1244864.noarch
amdgpu-pro-21.10-1244864.x86_64
libglapi-amdgpu-pro-21.10-1244864.x86_64
libcolamd2-2.9.6-lp152.5.10.x86_64
libteamdctl0-1.27-lp152.4.7.x86_64
amdgpu-pro-core-21.10-1244864.noarch
xorg-x11-amdgpu-drv-amdgpu-19.1.0-1244864.x86_64
amdgpu-core-21.10-1244864.noarch
libccolamd2-2.9.6-lp152.5.10.x86_64
mesa-amdgpu-vdpau-drivers-20.3.4-1244864.x86_64
libsamdb0-4.11.14+git.247.8c858f7ee14-lp152.3.19.1.x86_64
amdgpu-dkms-5.9.20.102-1244864.noarch
mesa-amdgpu-libGLES-20.3.4-1244864.x86_64
libcamd2-2.4.6-lp152.5.10.x86_64
mesa-amdgpu-libEGL-20.3.4-1244864.x86_64
amdgpu-dkms-firmware-5.9.20.102-1244864.noarch
libamd2-2.4.6-lp152.5.10.x86_64
libegl-amdgpu-pro-21.10-1244864.x86_64
ucode-amd-20200107-lp152.2.6.1.noarch

Is there something I need to reconfigure? Or do I need a new AMDGPU kernel module and thus need to wait on the repositories?

Thanks!

% more /var/log/Xorg.0.log

    63.501] (--) Log file renamed from "/var/log/Xorg.pid-2392.log" to "/var/log/Xorg.0
.log"
    63.512] 
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
    63.512] Build Operating System: openSUSE SUSE LINUX
    63.512] Current Operating System: Linux linux-st0n 5.3.18-lp152.75-default #1 SMP Wed May 5 09:22:56 UTC 2021 (16c42c8) x86_64
    63.512] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.3.18-lp152.75-default root=UUID=acda966f-644f-435e-ba15-98161204eb01 resume=/dev/disk/by-uuid/bb388ce9-96cb-4f08-9349-1b858f0a4d1a splash=silent quiet showopts resume=/dev/disk/by-uuid/bb388ce9-96cb-4f08-9349-1b858f0a4d1a splash=silent quiet showopts
    63.512] Build Date: 14 April 2021  12:00:00PM
    63.512]  
    63.512] Current version of pixman: 0.34.0
    63.512]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
    63.512] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    63.512] (==) Log file: "/var/log/Xorg.0.log", Time: Thu May 13 17:51:14 2021
    63.613] (==) Using config directory: "/etc/X11/xorg.conf.d"
    63.613] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    63.632] (==) No Layout section.  Using the first Screen section.
    63.632] (==) No screen section available. Using defaults.
    63.632] (**) |-->Screen "Default Screen Section" (0)
    63.632] (**) |   |-->Monitor "<default monitor>"
    63.632] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
    63.632] (==) Automatically adding devices
    63.632] (==) Automatically enabling devices
    63.632] (==) Automatically adding GPU devices
    63.632] (==) Max clients allowed: 256, resource mask: 0x1fffff
    63.705] (WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
    63.706]    Entry deleted from font path.
    63.708] (==) FontPath set to:
        /usr/share/fonts/misc:unscaled,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/100dpi:unscaled,
        /usr/share/fonts/75dpi:unscaled,
        /usr/share/fonts/ghostscript/,
        /usr/share/fonts/cyrillic:unscaled,
        /usr/share/fonts/truetype/,
        built-ins
    63.708] (**) ModulePath set to "/opt/amdgpu-pro/lib64/xorg/modules,/opt/amdgpu/lib64/xorg/modules,/usr/lib64/xorg/modules"
    63.708] (WW) Ignoring unrecognized extension "XFree86-DGA"
    63.708] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
    63.708] (II) Loader magic: 0x56172136fd20
    63.708] (II) Module ABI versions:
    63.708]    X.Org ANSI C Emulation: 0.4
    63.708]    X.Org Video Driver: 24.0
    63.708]    X.Org XInput driver : 24.1
    63.708]    X.Org Server Extension : 10.0
    63.709] (++) using VT number 7

    63.709] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
    63.719] (--) PCI:*(10@0:0:0) 1002:67b1:1682:9295 rev 0, Mem @ 0xd0000000/268435456, 0xcf800000/8388608, 0xfbc80000/262144, I/O @ 0x0000d000/256, BIOS @ 0x????????/131072
    63.719] (II) LoadModule: "glx"
    63.738] (II) Loading /opt/amdgpu-pro/lib64/xorg/modules/extensions/libglx.so
    63.903] (II) Module glx: vendor="X.Org Foundation"
    63.903]    compiled for 1.20.1, module version = 1.0.0
    63.903]    ABI class: X.Org Server Extension, version 10.0
    63.904] (II) Scanning /etc/X11/xorg_pci_ids directory for additional PCI ID's supported by the drivers
    63.904] (==) Matched ati as autoconfigured driver 0
    63.904] (==) Matched modesetting as autoconfigured driver 1
    63.904] (==) Matched fbdev as autoconfigured driver 2
    63.904] (==) Matched vesa as autoconfigured driver 3
    63.904] (==) Assigned the driver to the xf86ConfigLayout
    63.904] (II) LoadModule: "ati"
    63.927] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
    63.939] (II) Module ati: vendor="X.Org Foundation"
    63.939]    compiled for 1.20.3, module version = 18.1.0
    63.939]    Module class: X.Org Video Driver
    63.939]    ABI class: X.Org Video Driver, version 24.0
    64.001] (II) LoadModule: "radeon"
    64.002] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
    64.092] (II) Module radeon: vendor="X.Org Foundation"
    64.092]    compiled for 1.20.3, module version = 18.1.0
    64.092]    Module class: X.Org Video Driver
    64.092]    ABI class: X.Org Video Driver, version 24.0
    64.092] (II) LoadModule: "modesetting"
    64.093] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
    64.110] (II) Module modesetting: vendor="X.Org Foundation"
    64.110]    compiled for 1.20.3, module version = 1.20.3
    64.110]    Module class: X.Org Video Driver
    64.110]    ABI class: X.Org Video Driver, version 24.0
    64.110] (II) LoadModule: "fbdev"
    64.110] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
    64.134] (II) Module fbdev: vendor="X.Org Foundation"
    64.134]    compiled for 1.20.3, module version = 0.5.0
    64.134]    Module class: X.Org Video Driver
    64.134]    ABI class: X.Org Video Driver, version 24.0
    64.134] (II) LoadModule: "vesa"
    64.135] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
    64.146] (II) Module vesa: vendor="X.Org Foundation"
    64.146]    compiled for 1.20.3, module version = 2.4.0
    64.146]    Module class: X.Org Video Driver
    64.146]    ABI class: X.Org Video Driver, version 24.0
    64.146] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
**(chipset list cut for brevity)**
    64.150] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
    64.150] (II) FBDEV: driver for framebuffer: fbdev
    64.150] (II) VESA: driver for VESA chipsets: vesa
    64.376] (II) [KMS] drm report modesetting isn't supported.
    64.376] (EE) open /dev/dri/card0: No such file or directory
    64.376] (WW) Falling back to old probe method for modesetting
    64.376] (EE) open /dev/dri/card0: No such file or directory
    64.376] (II) Loading sub module "fbdevhw"
    64.376] (II) LoadModule: "fbdevhw"
    64.462] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
    64.468] (II) Module fbdevhw: vendor="X.Org Foundation"
    64.468]    compiled for 1.20.3, module version = 0.0.2
    64.468]    ABI class: X.Org Video Driver, version 24.0
    64.468] (EE) Unable to find a valid framebuffer device
    64.468] (WW) Falling back to old probe method for fbdev
    64.468] (II) Loading sub module "fbdevhw"
    64.468] (II) LoadModule: "fbdevhw"
    64.468] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
    64.468] (II) Module fbdevhw: vendor="X.Org Foundation"
    64.468]    compiled for 1.20.3, module version = 0.0.2
    64.468]    ABI class: X.Org Video Driver, version 24.0
    64.468] (II) FBDEV(3): using default device
    64.469] (EE) Screen 0 deleted because of no matching config section.
    64.469] (II) UnloadModule: "radeon"
    64.469] (EE) Screen 0 deleted because of no matching config section.
    64.469] (II) UnloadModule: "modesetting"
    64.469] (EE) Screen 0 deleted because of no matching config section.
    64.469] (II) UnloadModule: "fbdev"
    64.469] (II) UnloadSubModule: "fbdevhw"
    64.469] (II) FBDEV(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
    64.469] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
    64.469] (==) FBDEV(0): RGB weight 888
    64.469] (==) FBDEV(0): Default visual is TrueColor
    64.469] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
    64.469] (II) FBDEV(0): hardware: VESA VGA (video memory: 5824kB)
    64.469] (DB) xf86MergeOutputClassOptions unsupported bus type 0
    64.469] (II) FBDEV(0): checking modes against framebuffer device...
    64.469] (II) FBDEV(0): checking modes against monitor...
    64.469] (II) FBDEV(0): Virtual size is 1400x1050 (pitch 1400)
    64.469] (**) FBDEV(0):  Built-in mode "current": 147.0 MHz, 83.2 kHz, 77.4 Hz
    64.469] (II) FBDEV(0): Modeline "current"x0.0  147.04  1400 1432 1600 1768  1050 1054 1058 1074 -hsync -vsync -csync (83.2 kHz b)
    64.469] (==) FBDEV(0): DPI set to (96, 96)
    64.469] (II) Loading sub module "fb"
    64.469] (II) LoadModule: "fb"
    64.469] (II) Loading /usr/lib64/xorg/modules/libfb.so
    64.482] (II) Module fb: vendor="X.Org Foundation"
    64.483]    compiled for 1.20.3, module version = 1.0.0
    64.483]    ABI class: X.Org ANSI C Emulation, version 0.4
    64.483] (**) FBDEV(0): using shadow framebuffer
    64.483] (II) Loading sub module "shadow"
    64.483] (II) LoadModule: "shadow"
    64.483] (II) Loading /usr/lib64/xorg/modules/libshadow.so
    64.491] (II) Module shadow: vendor="X.Org Foundation"
    64.491]    compiled for 1.20.3, module version = 1.1.0
    64.491]    ABI class: X.Org ANSI C Emulation, version 0.4
    64.491] (II) UnloadModule: "vesa"
    64.491] (II) Unloading vesa
    64.492] (II) FBDEV(0): FBIOBLANK: Invalid argument (Screen blanking not supported by kernel - disabling)
    64.492] (==) FBDEV(0): Backing store enabled
    64.492] (==) FBDEV(0): DPMS enabled
    64.492] (II) Initializing extension Generic Event Extension
    64.492] (II) Initializing extension SHAPE
    64.492] (II) Initializing extension MIT-SHM
    64.492] (II) Initializing extension XInputExtension
    64.492] (II) Initializing extension XTEST
    64.493] (II) Initializing extension BIG-REQUESTS
    64.493] (II) Initializing extension SYNC
    64.493] (II) Initializing extension XKEYBOARD
    64.493] (II) Initializing extension XC-MISC
    64.493] (II) Initializing extension SECURITY
    64.493] (II) Initializing extension XFIXES
    64.493] (II) Initializing extension RENDER
    64.493] (II) Initializing extension RANDR
    64.494] (II) Initializing extension COMPOSITE
    64.494] (II) Initializing extension DAMAGE
    64.494] (II) Initializing extension MIT-SCREEN-SAVER
    64.494] (II) Initializing extension DOUBLE-BUFFER
    64.494] (II) Initializing extension RECORD
    64.494] (II) Initializing extension DPMS
    64.494] (II) Initializing extension Present
    64.494] (II) Initializing extension DRI3
    64.494] (II) Initializing extension X-Resource
    64.494] (II) Initializing extension XVideo
    64.495] (II) Initializing extension XVideo-MotionCompensation
    64.495] (II) Initializing extension GLX
    64.495] (II) AIGLX: Screen 0 is not DRI2 capable
    64.495] (EE) AIGLX: reverting to software rendering
    64.495] (II) GLX: no usable GL providers found for screen 0
    64.495] (II) Initializing extension XFree86-VidModeExtension
    64.495] (II) Initializing extension XFree86-DGA
    64.495] (II) Initializing extension XFree86-DRI
    64.495] (II) Initializing extension DRI2

Everything works normally if I select the previous kernel in Grub2 at startup…

Advanced options for openSUSE Leap 15.2

then…

5.3.18-lp152.72-default

instead of the newly installed…

5.3.18-lp152.75-default

Something’s gone wrong to cause (EE) open /dev/dri/card0: No such file or directory. Without /dev/dri/card0, neither modesetting nor amdgpu driver is available, so X falls back to FBDEV, which is slow and provides limited support for widescreen modes. Here, everything looks good for AMD:

# inxi -SGay
System:
  Host: asa88 Kernel: **5.3.18-lp152.75**-default x86_64 bits: 64 compiler: gcc  v: 7.5.0...
  Desktop: Trinity R14.0.10 tk: Qt 3.5.0 info: kicker wm: Twin 3.0 vt: 7
  dm: TDM Distro: **openSUSE Leap 15.2**
Graphics:
  **Device-1: AMD Kaveri** [Radeon R7 Graphics] vendor: ASUSTeK **driver: amdgpu**
  v: kernel alternate: radeon bus-ID: 00:01.0 chip-ID: 1002:130f  class-ID: 0300
  Display: server: **X.Org 1.20.3 driver: loaded: amdgpu**
  unloaded: fbdev,modesetting,vesa alternate: ati display-ID: :0 screens: 1
  **Screen-1: 0 s-res: 2560x2520** s-dpi: 120 s-size: 541x533mm (21.3x21.0")
  s-diag: 759mm (29.9")
  **Monitor-1**: HDMI-A-0 res: 2560x1080 hz: 60 dpi: 97
  size: 673x284mm (26.5x11.2") diag: 730mm (28.8")
  **Monitor-2**: DisplayPort-0 res: 2560x1440 hz: 60 dpi: 109
  size: 598x336mm (23.5x13.2") diag: 686mm (27")
  OpenGL: renderer: AMD KAVERI (DRM 3.33.0 5.3.18-lp152.75-default LLVM 9.0.1)
  v: 4.5 Mesa 19.3.4 direct render: Yes
# rpm -qa | grep amdgpu
libdrm_amdgpu1-2.4.100-lp152.1.4.x86_64
xf86-video-amdgpu-18.1.0-lp152.2.5.x86_64

Just when did you switch from NVidia to AMD? Are there NVidia installation remnants remaining installed?

If I had to guess, I’d say the AMD proprietary drivers, which I never use, need an update to match the .75 kernel.

Indeed, FBDEV is so slow… it was quite annoying!

Here’s my system booted to 5.3.18-lp152.72-default kernel, where everything works…

% inxi -SGa

System:
  Host: linux-XXXX Kernel: **5.3.18-lp152.72-default** x86_64 bits: 64 
  compiler: gcc v: 7.5.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.3.18-lp152.72-default 
  root=UUID=acda966f-644f-435e-ba15-98161204eb01 
  resume=/dev/disk/by-uuid/bb388ce9-96cb-4f08-9349-1b858f0a4d1a 
  splash=silent quiet showopts 
  resume=/dev/disk/by-uuid/bb388ce9-96cb-4f08-9349-1b858f0a4d1a 
  splash=silent quiet showopts 
  Desktop: KDE Plasma 5.18.6 tk: Qt 5.12.7 wm: kwin_x11 dm: SDDM 
  Distro: **openSUSE Leap 15.2 **
Graphics:
  **Device-1: AMD Hawaii PRO [Radeon R9 290/390]** vendor: XFX Pine 
  **driver: amdgpu** v: 5.9.20.21.10 bus ID: 0a:00.0 chip ID: 1002:67b1 
  Display: x11 **server: X.Org 1.20.3** compositor: kwin_x11 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa display ID: :0 screens: 1 
  **Screen-1: 0 s-res: 4480x1440** s-dpi: 96 s-size: 1185x381mm (46.7x15.0") 
  s-diag: 1245mm (49") 
  **Monitor-1: HDMI-A-0** res: 1920x1200 hz: 60 dpi: 94 
  size: 518x324mm (20.4x12.8") diag: 611mm (24.1") 
  **Monitor-2: DVI-D-1** res: 2560x1440 hz: 60 dpi: 109 
  size: 597x336mm (23.5x13.2") diag: 685mm (27") 
  OpenGL: renderer: AMD Radeon R9 200 Series 
  v: 4.5.14735 Core Profile Context 21.10 compat-v: 4.6.14735 
  direct render: Yes

I switched from NVidia to AMD a few weeks ago, when I went from Leap 15.1 to 15.2 and learned that my NVidia GT240 was no longer supported by NVidia itself for proprietary drivers.

I’ll post the results of inxi -SGa with 5.3.18-lp152.75-default kernel next…

5.3.18-lp152.75-default kernel…

% inxi -SGa

System:
  Host: linux-st0n Kernel: **5.3.18-lp152.75-default** x86_64 bits: 64 compiler: gcc 
  v: 7.5.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.3.18-lp152.75-default 
  root=UUID=acda966f-644f-435e-ba15-98161204eb01 
  resume=/dev/disk/by-uuid/bb388ce9-96cb-4f08-9349-1b858f0a4d1a splash=silent quiet 
  showopts resume=/dev/disk/by-uuid/bb388ce9-96cb-4f08-9349-1b858f0a4d1a 
  splash=silent quiet showopts 
  Desktop: KDE Plasma 5.18.6 tk: Qt 5.12.7 wm: kwin_x11 dm: SDDM 
  Distro: **openSUSE Leap 15.2** 
Graphics:
  Device-1: AMD Hawaii PRO [Radeon R9 290/390] vendor: XFX Pine driver: N/A 
  bus ID: 0a:00.0 chip ID: 1002:67b1 
  Display: x11 **server: X.Org 1.20.3** compositor: kwin_x11 **driver: ati **
  unloaded: fbdev,modesetting,radeon,vesa display ID: :0 screens: 1 
  **Screen-1: 0 s-res: 1400x1050** s-dpi: 96 s-size: 370x278mm (14.6x10.9") 
  s-diag: 463mm (18.2") 
  **Monitor-1: default** res: 1400x1050 hz: 77 
  OpenGL: renderer: N/A v: N/A direct render: N/A

/var/log/Xorg.0.log of working kernel…

 14023.145] (--) Log file renamed from "/var/log/Xorg.pid-12954.log" to "/var/log/Xorg.0.log"
 14023.146] 
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
 14023.146] Build Operating System: openSUSE SUSE LINUX
 14023.146] Current Operating System: Linux linux-XXXX 5.3.18-lp152.72-default #1 SMP Wed Apr 14 10:13:15 UTC 2021 (013936d) x86_64
 14023.146] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.3.18-lp152.72-default root=UUID=acda966f-644f-435e-ba15-98161204eb01 resume=/dev/disk/by-uuid/bb388ce9-96cb-4f08-9349-1b858f0a4d1a splash=silent quiet showopts resume=/dev/disk/by-uuid/bb388ce9-96cb-4f08-9349-1b858f0a4d1a splash=silent quiet showopts
 14023.146] Build Date: 14 April 2021  12:00:00PM
 14023.146]  
 14023.146] Current version of pixman: 0.34.0
 14023.146]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
 14023.146] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 14023.146] (==) Log file: "/var/log/Xorg.0.log", Time: Thu May 13 23:58:15 2021
 14023.146] (==) Using config directory: "/etc/X11/xorg.conf.d"
 14023.146] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
 14023.147] (==) No Layout section.  Using the first Screen section.
 14023.147] (==) No screen section available. Using defaults.
 14023.147] (**) |-->Screen "Default Screen Section" (0)
 14023.147] (**) |   |-->Monitor "<default monitor>"
 14023.147] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
 14023.147] (==) Automatically adding devices
 14023.147] (==) Automatically enabling devices
 14023.147] (==) Automatically adding GPU devices
 14023.147] (==) Max clients allowed: 256, resource mask: 0x1fffff
 14023.147] (WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
 14023.147]    Entry deleted from font path.
 14023.147] (==) FontPath set to:
        /usr/share/fonts/misc:unscaled,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/100dpi:unscaled,
        /usr/share/fonts/75dpi:unscaled,
        /usr/share/fonts/ghostscript/,
        /usr/share/fonts/cyrillic:unscaled,
        /usr/share/fonts/truetype/,
        built-ins
 14023.147] (**) ModulePath set to "/opt/amdgpu-pro/lib64/xorg/modules,/opt/amdgpu/lib6
4/xorg/modules,/usr/lib64/xorg/modules"
 14023.147] (WW) Ignoring unrecognized extension "XFree86-DGA"
 14023.147] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
 14023.147] (II) Loader magic: 0x561357871d20
 14023.147] (II) Module ABI versions:
 14023.147]    X.Org ANSI C Emulation: 0.4
 14023.147]    X.Org Video Driver: 24.0
 14023.147]    X.Org XInput driver : 24.1
 14023.147]    X.Org Server Extension : 10.0
 14023.148] (++) using VT number 7

 14023.148] (II) systemd-logind: logind integration requires -keeptty and -keeptty was 
not provided, disabling logind integration
 14023.148] (II) xfree86: Adding drm device (/dev/dri/card0)
 14023.156] (--) PCI:*(10@0:0:0) 1002:67b1:1682:9295 rev 0, Mem @ 0xd0000000/268435456, 0xcf800000/8388608, 0xfbc80000/262144, I/O @ 0x0000d000/256, BIOS @ 0x????????/131072
 14023.156] (II) LoadModule: "glx"
 14023.157] (II) Loading /opt/amdgpu-pro/lib64/xorg/modules/extensions/libglx.so
 14023.158] (II) Module glx: vendor="X.Org Foundation"
 14023.158]    compiled for 1.20.1, module version = 1.0.0
 14023.158]    ABI class: X.Org Server Extension, version 10.0
 14023.158] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
 14023.158]    loading driver: amdgpu
 14023.158] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
 14023.158]    loading driver: amdgpu
 14023.158] (II) Scanning /etc/X11/xorg_pci_ids directory for additional PCI ID's supported by the drivers
 14023.158] (II) Scanning /etc/X11/xorg_pci_ids directory for additional PCI ID's supported by the drivers
 14023.158] (==) Matched amdgpu as autoconfigured driver 0
 14023.158] (==) Matched ati as autoconfigured driver 1
 14023.158] (==) Matched modesetting as autoconfigured driver 2
 14023.158] (==) Matched fbdev as autoconfigured driver 3
 14023.158] (==) Matched vesa as autoconfigured driver 4
 14023.158] (==) Assigned the driver to the xf86ConfigLayout
 14023.158] (II) LoadModule: "amdgpu"
 14023.158] (II) Loading /opt/amdgpu/lib64/xorg/modules/drivers/amdgpu_drv.so
 14023.159] (II) Module amdgpu: vendor="X.Org Foundation"
 14023.159]    compiled for 1.20.3, module version = 19.1.0
 14023.159]    Module class: X.Org Video Driver
 14023.159]    ABI class: X.Org Video Driver, version 24.0
 14023.159] (II) LoadModule: "ati"
 14023.159] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
 14023.159] (II) Module ati: vendor="X.Org Foundation"
 14023.159]    compiled for 1.20.3, module version = 18.1.0
 14023.159]    Module class: X.Org Video Driver
 14023.159]    ABI class: X.Org Video Driver, version 24.0
 14023.160] (II) LoadModule: "modesetting"
 14023.160] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
 14023.160] (II) Module modesetting: vendor="X.Org Foundation"
 14023.160]    compiled for 1.20.3, module version = 1.20.3
 14023.160]    Module class: X.Org Video Driver
 14023.160]    ABI class: X.Org Video Driver, version 24.0
 14023.160] (II) LoadModule: "fbdev"
 14023.160] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
 14023.160] (II) Module fbdev: vendor="X.Org Foundation"
 14023.160]    compiled for 1.20.3, module version = 0.5.0
 14023.160]    Module class: X.Org Video Driver
 14023.160]    ABI class: X.Org Video Driver, version 24.0
 14023.160] (II) LoadModule: "vesa"
 14023.160] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
 14023.160] (II) Module vesa: vendor="X.Org Foundation"
 14023.160]    compiled for 1.20.3, module version = 2.4.0
 14023.160]    Module class: X.Org Video Driver
 14023.160]    ABI class: X.Org Video Driver, version 24.0
 14023.160] (II) AMDGPU: Driver for AMD Radeon:
        All GPUs supported by the amdgpu kernel driver
 14023.161] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
 14023.161] (II) FBDEV: driver for framebuffer: fbdev
 14023.161] (II) VESA: driver for VESA chipsets: vesa
 14023.175] (WW) Falling back to old probe method for modesetting
 14023.176] (WW) Falling back to old probe method for fbdev
 14023.176] (II) Loading sub module "fbdevhw"
 14023.176] (II) LoadModule: "fbdevhw"
 14023.176] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
 14023.176] (II) Module fbdevhw: vendor="X.Org Foundation"
 14023.176]    compiled for 1.20.3, module version = 0.0.2
 14023.176]    ABI class: X.Org Video Driver, version 24.0
 14023.177] (II) AMDGPU(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
 14023.177] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
 14023.177] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
 14023.177] (==) AMDGPU(0): Default visual is TrueColor
 14023.177] (==) AMDGPU(0): RGB weight 888
 14023.177] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
 14023.177] (--) AMDGPU(0): Chipset: "AMD Radeon R9 200 Series" (ChipID = 0x67b1)
 14023.177] (II) Loading sub module "fb"
 14023.177] (II) LoadModule: "fb"
 14023.177] (II) Loading /usr/lib64/xorg/modules/libfb.so
 14023.177] (II) Module fb: vendor="X.Org Foundation"
 14023.177]    compiled for 1.20.3, module version = 1.0.0
 14023.177]    ABI class: X.Org ANSI C Emulation, version 0.4
 14023.177] (II) Loading sub module "dri2"
 14023.177] (II) LoadModule: "dri2"
 14023.177] (II) Module "dri2" already built-in
 14023.196] (II) Loading sub module "glamoregl"
 14023.196] (II) LoadModule: "glamoregl"
 14023.196] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
 14023.197] (II) Module glamoregl: vendor="X.Org Foundation"
 14023.197]    compiled for 1.20.3, module version = 1.0.1
 14023.197]    ABI class: X.Org ANSI C Emulation, version 0.4
 14023.335] (II) AMDGPU(0): glamor X acceleration enabled on AMD Radeon R9 200 Series
 14023.335] (II) AMDGPU(0): glamor detected, initialising EGL layer.
 14023.335] (==) AMDGPU(0): TearFree property default: auto
 14023.335] (==) AMDGPU(0): VariableRefresh: disabled
 14023.335] (II) AMDGPU(0): KMS Pageflipping: enabled
 14023.335] (II) AMDGPU(0): Output DisplayPort-0 has no monitor section
 14023.336] (II) AMDGPU(0): Output HDMI-A-0 has no monitor section
 14023.336] (II) AMDGPU(0): Output DVI-D-0 has no monitor section
 14023.336] (II) AMDGPU(0): Output DVI-D-1 has no monitor section
 14023.369] (II) AMDGPU(0): EDID for output DisplayPort-0
 14023.370] (II) AMDGPU(0): EDID for output HDMI-A-0
 14023.370] (II) AMDGPU(0): Manufacturer: DEL  Model: a0ba  Serial#: 811156556
 14023.370] (II) AMDGPU(0): Year: 2016  Week: 46
 14023.370] (II) AMDGPU(0): EDID Version: 1.3
 14023.370] (II) AMDGPU(0): Digital Display Input
 14023.370] (II) AMDGPU(0): Max Image Size [cm]: horiz.: 52  vert.: 32
 14023.370] (II) AMDGPU(0): Gamma: 2.20
 14023.370] (II) AMDGPU(0): DPMS capabilities: StandBy Suspend Off
 14023.370] (II) AMDGPU(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
 14023.370] (II) AMDGPU(0): First detailed timing is preferred mode
 14023.370] (II) AMDGPU(0): redX: 0.660 redY: 0.332   greenX: 0.302 greenY: 0.613
 14023.370] (II) AMDGPU(0): blueX: 0.150 blueY: 0.063   whiteX: 0.313 whiteY: 0.329
 14023.370] (II) AMDGPU(0): Supported established timings:
**(Resolutions and Frequencies)**
**(EDID)**
 14023.372] (II) AMDGPU(0): Printing probed modes for output HDMI-A-0
**(Modelines)**
 14023.372] (II) AMDGPU(0): EDID for output DVI-D-0
 14023.373] (II) AMDGPU(0): EDID for output DVI-D-1
 14023.373] (II) AMDGPU(0): Manufacturer: ENC  Model: 2551  Serial#: 34883095
 14023.373] (II) AMDGPU(0): Year: 2015  Week: 40
 14023.373] (II) AMDGPU(0): EDID Version: 1.3
 14023.373] (II) AMDGPU(0): Digital Display Input
 14023.373] (II) AMDGPU(0): Max Image Size [cm]: horiz.: 60  vert.: 34
 14023.373] (II) AMDGPU(0): Gamma: 2.20
 14023.373] (II) AMDGPU(0): DPMS capabilities: StandBy Suspend Off
 14023.373] (II) AMDGPU(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
 14023.373] (II) AMDGPU(0): First detailed timing is preferred mode
 14023.373] (II) AMDGPU(0): redX: 0.680 redY: 0.310   greenX: 0.210 greenY: 0.700
 14023.373] (II) AMDGPU(0): blueX: 0.147 blueY: 0.054   whiteX: 0.313 whiteY: 0.329
 14023.373] (II) AMDGPU(0): Supported established timings:
**(Resolutions and Frequencies)**
**(EDID)**
 14023.374] (II) AMDGPU(0): Printing probed modes for output DVI-D-1
**(Modeline)**
 14023.374] (II) AMDGPU(0): Output DisplayPort-0 disconnected
 14023.374] (II) AMDGPU(0): Output HDMI-A-0 connected
 14023.374] (II) AMDGPU(0): Output DVI-D-0 disconnected
 14023.374] (II) AMDGPU(0): Output DVI-D-1 connected
 14023.374] (II) AMDGPU(0): Using spanning desktop for initial modes
 14023.374] (II) AMDGPU(0): Output HDMI-A-0 using initial mode 1920x1200 +0+0
 14023.374] (II) AMDGPU(0): Output DVI-D-1 using initial mode 2560x1440 +1920+0
 14023.374] (II) AMDGPU(0): mem size init: gart size :5d9c7a000 vram size: s:fe604000 visible:bec83000
 14023.374] (II) AMDGPU(0): Video RAM: 4167696 kByte
 14023.374] (==) AMDGPU(0): DPI set to (96, 96)
 14023.374] (==) AMDGPU(0): Using gamma correction (1.0, 1.0, 1.0)
 14023.374] (II) Loading sub module "ramdac"
 14023.374] (II) LoadModule: "ramdac"
 14023.374] (II) Module "ramdac" already built-in
 14023.374] (II) UnloadModule: "modesetting"
 14023.374] (II) Unloading modesetting
 14023.375] (II) UnloadModule: "fbdev"
 14023.375] (II) Unloading fbdev
 14023.375] (II) UnloadSubModule: "fbdevhw"
 14023.375] (II) Unloading fbdevhw
 14023.375] (II) UnloadModule: "vesa"
 14023.375] (II) Unloading vesa
 14023.375] (II) AMDGPU(0): [DRI2] Setup complete
 14023.375] (II) AMDGPU(0): [DRI2]   DRI driver: radeonsi
 14023.375] (II) AMDGPU(0): [DRI2]   VDPAU driver: radeonsi
 14023.375] (II) AMDGPU(0): Front buffer pitch: 17920 bytes
 14023.375] (II) AMDGPU(0): SYNC extension fences enabled
 14023.375] (II) AMDGPU(0): Present extension enabled
 14023.375] (==) AMDGPU(0): DRI3 enabled
 14023.376] (==) AMDGPU(0): Backing store enabled
 14023.376] (II) AMDGPU(0): Direct rendering enabled
 14023.470] (II) AMDGPU(0): Use GLAMOR acceleration.
 14023.470] (II) AMDGPU(0): Acceleration enabled
 14023.470] (==) AMDGPU(0): DPMS enabled
 14023.470] (==) AMDGPU(0): Silken mouse enabled
 14023.470] (II) AMDGPU(0): Set up textured video (glamor)
 14023.503] (II) Initializing extension Generic Event Extension
 14023.503] (II) Initializing extension SHAPE
 14023.504] (II) Initializing extension MIT-SHM
 14023.504] (II) Initializing extension XInputExtension
 14023.504] (II) Initializing extension XTEST
 14023.504] (II) Initializing extension BIG-REQUESTS
 14023.504] (II) Initializing extension SYNC
 14023.504] (II) Initializing extension XKEYBOARD
 14023.504] (II) Initializing extension XC-MISC
 14023.504] (II) Initializing extension SECURITY
 14023.504] (II) Initializing extension XFIXES
 14023.504] (II) Initializing extension RENDER
 14023.505] (II) Initializing extension RANDR
 14023.505] (II) Initializing extension COMPOSITE
 14023.505] (II) Initializing extension DAMAGE
 14023.505] (II) Initializing extension MIT-SCREEN-SAVER
 14023.505] (II) Initializing extension DOUBLE-BUFFER
 14023.505] (II) Initializing extension RECORD
 14023.505] (II) Initializing extension DPMS
 14023.505] (II) Initializing extension Present
 14023.506] (II) Initializing extension DRI3
 14023.506] (II) Initializing extension X-Resource
 14023.506] (II) Initializing extension XVideo
 14023.506] (II) Initializing extension XVideo-MotionCompensation
 14023.506] (II) Initializing extension GLX
**(AIGLX)**
 14023.514] (II) GLX: Initialized DRI2 GL provider for screen 0
 14023.514] (II) Initializing extension XFree86-VidModeExtension
 14023.514] (II) Initializing extension XFree86-DGA
 14023.514] (II) Initializing extension XFree86-DRI
 14023.514] (II) Initializing extension DRI2
 14023.518] (II) AMDGPU(0): Setting screen physical size to 1185 x 381

Between the two Xorg.0.log’s, this crucial line seems to be missing…

** 14023.148] (II) xfree86: Adding drm device (/dev/dri/card0)**

… which makes this difference…

Non-working…

    63.719] (--) PCI:*(10@0:0:0) 1002:67b1:1682:9295 rev 0, Mem @ 0xd0000000/268435456, 0xcf800000/8388608, 0xfbc80000/262144, I/O @ 0x0000d000/256, BIOS @ 0x????????/131072
    63.719] (II) LoadModule: "glx"
    63.738] (II) Loading /opt/amdgpu-pro/lib64/xorg/modules/extensions/libglx.so
    63.903] (II) Module glx: vendor="X.Org Foundation"
    63.903]    compiled for 1.20.1, module version = 1.0.0
    63.903]    ABI class: X.Org Server Extension, version 10.0
    63.904] (II) Scanning /etc/X11/xorg_pci_ids directory for additional PCI ID's supported by the drivers
*    63.904] (==) Matched ati as autoconfigured driver 0
    63.904] (==) Matched modesetting as autoconfigured driver 1
    63.904] (==) Matched fbdev as autoconfigured driver 2
    63.904] (==) Matched vesa as autoconfigured driver 3*

Working…

** 14023.148] (II) xfree86: Adding drm device (/dev/dri/card0)**
 14023.156] (--) PCI:*(10@0:0:0) 1002:67b1:1682:9295 rev 0, Mem @ 0xd0000000/268435456, 0xcf800000/8388608, 0xfbc80000/262144, I/O @ 0x0000d000/256, BIOS @ 0x????????/131072
 14023.156] (II) LoadModule: "glx"
 14023.157] (II) Loading /opt/amdgpu-pro/lib64/xorg/modules/extensions/libglx.so
 14023.158] (II) Module glx: vendor="X.Org Foundation"
 14023.158]    compiled for 1.20.1, module version = 1.0.0
 14023.158]    ABI class: X.Org Server Extension, version 10.0
** 14023.158] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
 14023.158]    loading driver: amdgpu
 14023.158] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
 14023.158]    loading driver: amdgpu**
 14023.158] (II) Scanning /etc/X11/xorg_pci_ids directory for additional PCI ID's supported by the drivers
** 14023.158] (II) Scanning /etc/X11/xorg_pci_ids directory for additional PCI ID's supported by the drivers**
** 14023.158] (==) Matched amdgpu as autoconfigured driver 0**
* 14023.158] (==) Matched ati as autoconfigured driver 1
 14023.158] (==) Matched modesetting as autoconfigured driver 2
 14023.158] (==) Matched fbdev as autoconfigured driver 3
 14023.158] (==) Matched vesa as autoconfigured driver 4*

What triggers xfree86 to add drm device (/dev/dri/card0)? And what kernel difference between .72 and .75 would prevent it?

I guess the subsequent “Applying OutputClass” and “loading driver: amdgpu” is contingent on the drm device being added?

More research…

This is the kernel security patch I installed… openSUSE-SU-2021:0716-1: important: Security update for the Linux Kernel

https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/message/VDF7UBOVWJVCBDNJIGAY445AXZJU4OOD/

This thread from October 2020 seems like a similar problem, where after a kernel security patch, graphics problems resulted…

https://forums.opensuse.org/showthread.php/545527-Screen-is-black-after-update-to-kernel-default-5-3-18-lp152-44

The fix was resolved in this bugzilla…

https://bugzilla.opensuse.org/show_bug.cgi?id=1177384


I tried some ideas from the bugzilla thread…

5.3.18-lp152.72-default kernel:

/lib/modules/5.3.18-lp152.72-default/kernel/drivers/gpu/drm/radeon/
-rw-r--r-- 1 root root 2894755 Apr 15 08:04 radeon.ko

/lib/modules/5.3.18-lp152.72-default/kernel/drivers/gpu/drm/amd/
amdgpu:
total 11628
-rw-r--r-- 1 root root 11904800 Apr 23 03:12 amdgpu.ko

amdkcl:
total 48
-rw-r--r-- 1 root root 48544 Apr 23 03:12 amdkcl.ko

5.3.18-lp152.75-default kernel:

/lib/modules/5.3.18-lp152.75-default/kernel/drivers/gpu/drm/radeon/
-rw-r--r-- 1 root root 2894755 May 11 02:16 radeon.ko

/lib/modules/5.3.18-lp152.75-default/kernel/drivers/gpu/drm/amd/
amdgpu:
total 20084
-rw-r--r-- 1 root root  8658611 May 11 02:15 amdgpu.ko

As you can see, the radeon.ko files are the same size. The newer .75 kernel has a smaller amdgpu.ko file and is missing the amdkcl directory and contents.

I tried making the newer .75 kernel’s directory match the older .72 kernel with the same amdgpu.ko file and amdkcl/amdkcl.ko files, then depmod 5.3.18-lp152.75-default and mkinitrd (from comment 11 in the bugzilla thread), without luck.

/lib/modules/5.3.18-lp152.75-default/kernel/drivers/gpu/drm/amd/
amdkcl:
total 48
-rw-r--r-- 1 root root 48544 Apr 23 03:12 amdkcl.ko

amdgpu:
total 20084
-rw-r--r-- 1 root root 11904800 Apr 23 03:12 amdgpu.ko
-rw-r--r-- 1 root root  8658611 May 11 02:15 amdgpu.ko75

Any ideas? Is it time to file a bugzilla report?

I would.
https://en.opensuse.org/openSUSE:Submitting_bug_reports
https://en.opensuse.org/openSUSE:Bug_reporting_FAQ

Success!

On a whim, I pretended that the AMDGPU-PRO drivers weren’t installed, even though YaST says it is.

  1. I booted into the newer .75 kernel.
  2. I launched YaST.
  3. Searched for “amdgpu” and set all files that had “amdgpu” in the name as Update (even they were already installed and set as Keep), with exception of ones with “mesa-” and these two, “x86-video-amdgpu” and “xorg-x11-amdgpu-drv-amdgpu”.
  4. Searched for “xorg-x11-server” and set that to Update too. (I had to Update this one after initially installing the AMDGPU-PRO drivers the last time to get things to work.)
  5. Accepted and let everything reinstall.
  6. Rebooted.

With NVidia and a kernel update, I either had to install the NVidia drivers the “hard way” or wait for a new NVidia repository build.

With AMD and a kernel update, it seems doing the above is like the “hard way”.


Thanks to everyone for assisting others in these forums! Sometimes there are direct answers, sometimes ideas that spawn other ideas.

Just confirming that method in previous post worked…

Went from kernel 5.3.18-lp152.75-default to 5.3.18-lp152.78-default this morning, lost AMD graphics config, and restored with reinstall of already installed packages.

ILL KMS is not installed.

Is this something that will invoke a reinstall of the AMDGPU-PRO modules whenever a new kernel is installed?