Re: Upgrading amdgpu for new video card

Felix Miata via slackware <[email protected]> Mon, 20 Mar 2023 18:54:47 -0400
Newsgroups gmane.linux.slackware
Organization less than infinite
Message-ID <[email protected]>
Rich Shepard via slackware composed on 2023-03-20 13:36 (UTC-0400):

> This host is running Slackware64_14.2. Yesterday I replaced the Radeon
> RX-550 video card and HP/Compaq LA1951g monitor to a Radeon Pro WX-2100
> video card and an Acer SB-220Q monitor.
> 
> While the Xfce4 resolution is set to 1920x1080 dpi, it keeps resetting to
> the former 1280x1024 dpi.
> 
> lspci shows no video driver:
> # lspci
> 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1450
> 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451
> 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
> 00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
> 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
> 00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
> 00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
> 00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
> 00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
> 00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1454
> 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
> 00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1454
> 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)
> 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
> 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1460
> 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1461
> 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1462
> 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1463
> 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1464
> 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1465
> 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1466
> 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1467
> 01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43d0 (rev 01)
> 01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43c8 (rev 01)
> 01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c6 (rev 01)
> 02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
> 02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
> 02:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
> 02:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
> 02:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
> 04:00.0 USB controller: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller
> 06:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
> 08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 6995
> 08:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aae0
> 09:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 145a
> 09:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1456
> 09:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 145f
> 0a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 1455
> 0a:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
> 0a:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Device 1457
> 
> lamod has one:
> # lsmod | grep amdgpu
> amdgpu               3248128  3
> chash                  16384  1 amdgpu
> gpu_sched              28672  1 amdgpu
> ttm                   114688  1 amdgpu
> drm_kms_helper        196608  1 amdgpu
> drm                   479232  7 gpu_sched,drm_kms_helper,amdgpu,ttm
> i2c_algo_bit           16384  2 igb,amdgpu
> i2c_core               77824  8 drm_kms_helper,i2c_algo_bit,igb,amdgpu,psmouse,i2c_piix4,i2c_dev,drm
> hwmon                  20480  4 igb,k10temp,asus_wmi,amdgpu
> 
> I just downloaded amdgpu-install_22.20.50205-1_all.deb and ran it through
> deb2tgz. Can I upgradepkg using the amdgpu-install_22.20.50205-1_all.txz?
> Or, what do I do to have the monitor hold the set resolution?

Recent Xorg releases all do very well automagically with all hardware as old as a
WX 2100. Are you sure you don't have lingering /etc/X11/xorg.conf or
/etc/xorg.cond.d/*.conf interfering? Do you have a custom configuration script
somewhere in /etc/X11/ interfering? What about in ~/?

My most recent amdgpu is 2 generations older than your WX 2100, has no slackware
installation, but works automagically with Debian, Fedora, Mageia, openSUSE &
*buntu, e.g.:
# inxi -GSaz
System:
  Kernel: 6.1.12-200.fc37.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.38-25.fc37 parameters: BOOT_IMAGE=/boot/vmlinuz root=LABEL=<filter>
    noresume audit=0 ipv6.disable=1 net.ifnames=0 mitigations=auto
    consoleblank=0 radeon.cik_support=0 amdgpu.cik_support=1
  Desktop: Trinity v: R14.0.13 tk: Qt v: 3.5.0 info: kicker wm: Twin v: 3.0
    vt: 7 dm: 1: TDM 2: XDM Distro: Fedora release 37 (Thirty Seven)
Graphics:
  Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: ASRock driver: amdgpu
    v: kernel alternate: radeon arch: GCN-2 code: Sea Islands
    process: GF/TSMC 16-28nm built: 2013-17 ports: active: DP-1,HDMI-A-1
    empty: DVI-D-1,VGA-1 bus-ID: 00:01.0 chip-ID: 1002:130f class-ID: 0300
  Display: x11 server: X.Org v: 1.20.14 driver: X: loaded: modesetting
    dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4240x1440 s-dpi: 120 s-size: 897x304mm (35.31x11.97")
    s-diag: 947mm (37.29")
  Monitor-1: DP-1 pos: primary,left model: Acer K272HUL serial: <filter>
    built: 2018 res: 2560x1440 hz: 60 dpi: 109 gamma: 1.2
    size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-1 pos: right model: Dell P2213
    serial: <filter> built: 2012 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2
    size: 473x296mm (18.62x11.65") diag: 558mm (22") ratio: 16:10 modes:
    max: 1680x1050 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.3.5 renderer: AMD Radeon R7 Graphics (kaveri
    LLVM 15.0.7 DRM 3.49 6.1.12-200.fc37.x86_64) direct-render: Yes
# lsmod | grep -E 'vid|amdg'
amdgpu              10665984  1
iommu_v2               24576  1 amdgpu
gpu_sched              49152  1 amdgpu
drm_buddy              20480  1 amdgpu
drm_ttm_helper         16384  2 amdgpu,radeon
ttm                    94208  3 amdgpu,radeon,drm_ttm_helper
drm_display_helper    208896  2 amdgpu,radeon
video                  65536  2 amdgpu,radeon
wmi                    45056  1 video
# rpmqa mwar
amd-gpu-firmware-20230210-147.fc37.noarch
linux-firmware-20230210-147.fc37.noarch
linux-firmware-whence-20230210-147.fc37.noarch
# rpmqa mesa
mesa-demos-8.4.0-14.20210504git0f9e7d9.fc37.x86_64
mesa-dri-drivers-22.3.5-1.fc37.x86_64
mesa-filesystem-22.3.5-1.fc37.x86_64
mesa-libEGL-22.3.5-1.fc37.x86_64
mesa-libgbm-22.3.5-1.fc37.x86_64
mesa-libGL-22.3.5-1.fc37.x86_64
mesa-libglapi-22.3.5-1.fc37.x86_64
mesa-libGLU-9.0.1-7.fc37.x86_64
mesa-vulkan-drivers-22.3.5-1.fc37.x86_64
# fpaste /var/log/Xorg.0.log
https://paste.centos.org/view/raw/13cbe6f8

Note that my cmdline radeon.cik_support=0 amdgpu.cik_support=1 is applicable only
to my generation of amdgpus. This same PC can run 4 displays automagically, other
than needing manual positioning to match actual placement: 2560x1440, 1920x1200,
1680x1050 & 1600x900, easily handled via an xrandr script appropriately placed
according to distro configuration.

Note above that mine is running on the amdgpu kernel module, but not the amdgpu
DDX display driver, instead on the modesetting DIX display driver. Have you tried
both?
<https://www.linuxquestions.org/questions/blog/mrmazda-1035595/amd-intel-and-nvidia-x-graphics-driver-primer-38306/>
-- 
Evolution as taught in public schools is, like religion,
	based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

-- 
slackware mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/slackware