[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian failed



On Sun, Dec 4, 2022 at 5:30 PM hw <hw@adminart.net> wrote:
>
> On Sun, 2022-12-04 at 20:58 +0000, Andrew M.A. Cater wrote:
> > On Sun, Dec 04, 2022 at 09:49:59PM +0100, hw wrote:
> > > On Sun, 2022-12-04 at 13:58 -0500, Jeffrey Walton wrote:
> > > > On Sun, Dec 4, 2022 at 9:53 AM hw <hw@adminart.net> wrote:
> > > > >
> > > > > so I wanted to have Debian on a Precision R7910 with AMD graphics card
> > > > > and it failed because it refuses to use the amdgpu module.  I tried
> > > > > forcing to load it when booting and it still didn't work.
> > > > >
> > > > > So I'm stuck with Fedora.  What's wrong with Debian that we can't even
> > > > > get AMD cards to work.
> > > >
> > > > I think you need around the 5.15 kernel.
> > >
> > > It was fully updated and the amdgpu module would load after forcing it,
> > > yet it didn't work right.  This is something that should --- and does
> > > with Fedora --- work right out of the box.
> > >
> >
> > If Jeffrey is right - and Debian stable will install, then install the 6.0 kernel from backports and a more up to date firmware?
>
> Thanks, if I try again, that would be worth a try.

Yeah, a newer kernel is probably worth a try. The 5.8 kernel may work.
The 5.15 kernel will work based on my experience.

For completeness, here is the mini-pc I was having trouble with:
https://www.amazon.com/dp/B0B2RHXLDK . It is described as 'AMD Ryzen 5
5560U with AMD Radeon Graphics'.

Here's the result of inxi on Mint 20.3 with the 5.4 kernel. Notice the
use of 'ati,fbdev' drivers.

# inxi -Fxxxz
System:
  Kernel: 5.4.0-135-generic x86_64 bits: 64 compiler: gcc v: 9.4.0
  Console: tty 0 dm: LightDM 1.30.0 Distro: Linux Mint 20.3 Una
  base: Ubuntu 20.04 focal
Machine:
  Type: Mini-pc Mobo: AZW model: SER v: V1.0 serial: N/A
  UEFI: American Megatrends LLC. v: FP655U504 date: 09/13/2022
CPU:
  Topology: 6-Core model: AMD Ryzen 5 5560U with Radeon Graphics bits: 64
  type: MT MCP arch: Zen 3 L1 cache: 384 KiB L2 cache: 3072 KiB
  L3 cache: 8192 KiB
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  bogomips: 55095
  Speed: 1330 MHz min/max: 1600/2300 MHz boost: enabled Core speeds (MHz):
  1: 1330 2: 1329 3: 1330 4: 1330 5: 1330 6: 1330 7: 1331 8: 1331 9: 1597
  10: 1597 11: 1330 12: 1328
Graphics:
  Device-1: AMD driver: N/A bus ID: 04:00.0 chip ID: 1002:1638
  Display: server: X.org 1.20.13 driver: ati,fbdev
  unloaded: modesetting,radeon,vesa tty: 80x24
  Message: Advanced graphics data unavailable in console for root.
Audio:
  Device-1: AMD driver: snd_hda_intel v: kernel bus ID: 04:00.1
  chip ID: 1002:1637
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
  driver: snd_rn_pci_acp3x v: kernel bus ID: 04:00.5 chip ID: 1022:15e2
  Device-3: AMD Family 17h HD Audio driver: snd_hda_intel v: kernel
  bus ID: 04:00.6 chip ID: 1022:15e3
  Sound Server: ALSA v: k5.4.0-135-generic
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  driver: r8169 v: kernel port: f000 bus ID: 01:00.0 chip ID: 10ec:8168
  IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: MEDIATEK driver: N/A port: f000 bus ID: 02:00.0
  chip ID: 14c3:0608
Drives:
  Local Storage: total: 465.76 GiB used: 21.62 GiB (4.6%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 500GB
  size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 2B2QEXM7
  scheme: GPT
Partition:
  ID-1: / size: 441.93 GiB used: 21.61 GiB (4.9%) fs: ext4
  dev: /dev/nvme0n1p2
  ID-2: swap-1 size: 15.96 GiB used: 0 KiB (0.0%) fs: swap
  dev: /dev/nvme0n1p3
Sensors:
  Message: No sensors data was found. Is sensors configured?
Info:
  Processes: 276 Uptime: 1h 01m Memory: 12.66 GiB used: 1.81 GiB (14.3%)
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 9
  clang: 10.0.0-4ubuntu1 Shell: bash v: 5.0.17 running in: tty 0 (SSH)
  inxi: 3.0.38

And inxi on Mint 21 with the 5.15 kernel. Notice the use of the 'amdgpu' driver.

$ inxi -Frxxxz
System:
  Kernel: 5.15.0-56-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
    Desktop: Cinnamon 5.4.12 tk: GTK 3.24.33 wm: Mutter vt: 7
    dm: LightDM 1.30.0 Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Mini-pc Mobo: AZW model: SER v: V1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FP655U504 date: 09/13/2022
CPU:
  Info: 6-core model: AMD Ryzen 5 5560U with Radeon Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 3 rev: 0 cache: L1: 384 KiB L2: 3 MiB
    L3: 8 MiB
  Speed (MHz): avg: 1881 high: 2256 min/max: 400/4062 boost: enabled cores:
    1: 1809 2: 1806 3: 1801 4: 1806 5: 2256 6: 2253 7: 1808 8: 1810 9: 1807
    10: 1810 11: 1809 12: 1807 bogomips: 55095
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Cezanne driver: amdgpu v: kernel pcie: speed: 8 GT/s
    lanes: 16 ports: active: HDMI-A-2 empty: HDMI-A-1 bus-ID: 04:00.0
    chip-ID: 1002:1638 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
    s-diag: 582mm (22.9")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-2 model: Dell SE2419HX
    serial: <filter> res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7")
    diag: 604mm (23.8") modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.42 5.15.0-56-generic)
    v: 4.6 Mesa 22.0.5 direct render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 04:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    driver: snd_rn_pci_acp3x v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h HD Audio driver: N/A pcie: speed: 8 GT/s
    lanes: 16 bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-56-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: f000
    bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: MEDIATEK driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1
    port: N/A bus-ID: 02:00.0 chip-ID: 14c3:0608 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
Bluetooth:
  Device-1: MediaTek Wireless_Device type: USB driver: btusb v: 0.8
    bus-ID: 3-3:4 chip-ID: 0e8d:0608 class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.2 sub-v: 2202 hci-v: 5.2 rev: 915
Drives:
  Local Storage: total: 465.76 GiB used: 33.09 GiB (7.1%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 500GB
    size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXM7 temp: 38.9 C scheme: GPT
Partition:
  ID-1: / size: 441.93 GiB used: 33.09 GiB (7.5%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 5.2 MiB (1.0%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 15.96 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 36.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 305 Uptime: 0m wakeups: 0 Memory: 12.59 GiB
  used: 1.5 GiB (11.9%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11/9 clang: 14.0.0-1ubuntu1 Shell: Bash v: 5.1.16
  running-in: gnome-terminal inxi: 3.3.13

Notice the amdgpu driver is loaded, and the graphics card,
[integrated] audio, and sensors are populated.

The thing that kept tripping me up was:

# lspci | grep -v 'bridge:'
...
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc.
[AMD/ATI] Device 1638 (rev c3)
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637

Device 1638 was supposed to use amdgpu driver per [1,2]. But it didn't
- it used an old ati driver. I did not realize the 5.4 kernel was too
old. The 5.4 kernel lacked Cezanne support.

[1] https://drmdb.emersion.fr/devices?driver=amdgpu
[2] https://wiki.archlinux.org/title/AMDGPU

Jeff


Reply to: