Friday, June 10, 2022

investigating the mouse and keyboard freeze on ubuntu 22.04

 


dmesg --level=warn

[    0.005871] ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20210331/tbfadt-615)

[    0.441107] AMD-Vi: [Firmware Warn]: EFR mismatch. Use IVHD EFR (0x37ef22294ada : 0x77ef22294ada).

[    0.441205] pci 0000:00:00.2: can't derive routing for PCI INT A

[    0.441207] pci 0000:00:00.2: PCI INT A: not connected

[    0.809850] platform eisa.0: EISA: Cannot allocate resource for mainboard

[    0.809852] platform eisa.0: Cannot allocate resource for EISA slot 1

[    0.809853] platform eisa.0: Cannot allocate resource for EISA slot 2

[    0.809855] platform eisa.0: Cannot allocate resource for EISA slot 3

[    0.809856] platform eisa.0: Cannot allocate resource for EISA slot 4

[    0.809857] platform eisa.0: Cannot allocate resource for EISA slot 5

[    0.809858] platform eisa.0: Cannot allocate resource for EISA slot 6

[    0.809859] platform eisa.0: Cannot allocate resource for EISA slot 7

[    0.809861] platform eisa.0: Cannot allocate resource for EISA slot 8

[    3.251160] systemd-journald[269]: File /var/log/journal/031a21c3a8864f3681b5d2599bcc40df/system.journal corrupted or uncleanly shut down, renaming and replacing.

[    4.270016] amdgpu 0000:00:01.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported

[    4.413232] [drm] Unsupported Connector type:5!

[    4.842451] acp_audio_dma: probe of acp_audio_dma.1.auto failed with error -110

[  163.581036] systemd-journald[269]: File /var/log/journal/031a21c3a8864f3681b5d2599bcc40df/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.

[  169.562975] kauditd_printk_skb: 28 callbacks suppressed

https://lore.kernel.org/all/16533743-de8d-6355-211d-1b4f8949fcfb@molgen.mpg.de/

sudo sysctl -a | grep net.core.message_

https://www.kernel.org/doc/Documentation/sysctl/net.txt

Ubuntu AMDGPU-PRO

The open source AMDGPU driver does not support (currently) HDMI audio. Installing the following "hybrid" AMDGPU-Pro driver from AMD will resolve this issue.

https://www.dell.com/support/kbdoc/en-in/000146175/installing-and-configuring-amdgpu-pro-in-ubuntu-16-04-linux

lspci -k | grep -EA2 'VGA|3D'

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wani [Radeon R5/R6/R7 Graphics] (rev e6)

Subsystem: Gigabyte Technology Co., Ltd Radeon R7 Graphics

Kernel driver in use: amdgpu

https://www.amd.com/en/support/kb/release-notes/rn-radpro-lin-16-40

https://amdgpu-install.readthedocs.io/en/latest/

dpkg -l amdgpu-pro

dpkg-query: no packages found matching amdgpu-pro

dpkg -l amdgpu-pro
dpkg-query: no packages found matching amdgpu-pro


sudo lshw -c video

  *-display                 

       description: VGA compatible controller

       product: Wani [Radeon R5/R6/R7 Graphics]

       vendor: Advanced Micro Devices, Inc. [AMD/ATI]

       physical id: 1

       bus info: pci@0000:00:01.0

       version: e6

       width: 64 bits

       clock: 33MHz

       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom

       configuration: driver=amdgpu latency=0

       resources: irq:34 memory:c0000000-cfffffff memory:d0000000-d07fffff ioport:f000(size=256) memory:feb00000-feb3ffff memory:c0000-dffff


 lsmod | grep amd

edac_mce_amd           32768  0

kvm_amd               118784  0

ccp                    98304  1 kvm_amd

kvm                   864256  1 kvm_amd

amdgpu               6348800  23

iommu_v2               24576  1 amdgpu

gpu_sched              36864  1 amdgpu

drm_ttm_helper         16384  1 amdgpu

ttm                    69632  2 amdgpu,drm_ttm_helper

drm_kms_helper        253952  1 amdgpu

i2c_algo_bit           16384  1 amdgpu

drm                   557056  11 gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm

dmesg | grep -i amdgpu

[    4.255521] [drm] amdgpu kernel modesetting enabled.

[    4.266085] amdgpu: Topology: Add APU node [0x0:0x0]

[    4.266158] fb0: switching to amdgpudrmfb from VESA VGA

[    4.269763] amdgpu 0000:00:01.0: vgaarb: deactivate vga console

[    4.270016] amdgpu 0000:00:01.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported

[    4.283825] amdgpu 0000:00:01.0: amdgpu: Fetched VBIOS from ROM BAR

[    4.283893] amdgpu 0000:00:01.0: amdgpu: VRAM: 512M 0x000000F400000000 - 0x000000F41FFFFFFF (512M used)

[    4.283896] amdgpu 0000:00:01.0: amdgpu: GART: 1024M 0x000000FF00000000 - 0x000000FF3FFFFFFF

[    4.283959] [drm] amdgpu: 512M of VRAM memory ready

[    4.283962] [drm] amdgpu: 3072M of GTT memory ready.

[    4.365552] amdgpu: hwmgr_sw_init smu backed is smu8_smu

[    4.386916] amdgpu: smu version 19.13.09

[    4.425432] snd_hda_intel 0000:00:01.1: bound 0000:00:01.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])

[    4.712433] kfd kfd: amdgpu: Allocated 3969056 bytes on gart

[    4.712579] amdgpu: Topology: Add APU node [0x9874:0x1002]

[    4.712583] kfd kfd: amdgpu: added device 1002:9874

[    4.712586] amdgpu 0000:00:01.0: amdgpu: SE 1, SH per SE 1, CU per SH 8, active_cu_number 6

[    4.714678] fbcon: amdgpudrmfb (fb0) is primary device

[    4.716197] amdgpu 0000:00:01.0: [drm] fb0: amdgpudrmfb frame buffer device

[    4.753215] [drm] Initialized amdgpu 3.41.0 20150101 for 0000:00:01.0 on minor 0


sudo add-apt-repository ppa:oibaf/graphics-drivers

In case you need to revert back to your original Ubuntu AMD Radeon drivers you can remove the PPA driver installation using the below commands:


$ sudo apt install ppa-purge

$ sudo ppa-purge ppa:oibaf/graphics-drivers

https://linuxconfig.org/amd-radeon-ubuntu-20-04-driver-installation

Linux uses this mechanism to throttle the spamming of log events, decreasing the likelihood of a denial-of-service attack.

lsmod | grep -i amdgpu

amdgpu               6348800  23

iommu_v2               24576  1 amdgpu

gpu_sched              36864  1 amdgpu

drm_ttm_helper         16384  1 amdgpu

ttm                    69632  2 amdgpu,drm_ttm_helper

drm_kms_helper        253952  1 amdgpu

i2c_algo_bit           16384  1 amdgpu

drm                   557056  11 gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm

https://www.amd.com/en/support


good guess its a driver problem, the drivers for your card is not included in Ubuntu, see this from AMD/ATI it includes the software you need

https://www.phoronix.com/scan.php?page=news_item&px=AMDGPU-TMZ-Default-Soonv

https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-50


https://wiki.archlinux.org/title/Keyboard_shortcuts#Kernel