amd / xdna-driver

Other
289 stars 38 forks source link

Help for install xdna-driver "No such device with index '0'" #168

Closed joebnb closed 1 month ago

joebnb commented 1 month ago

I'm having trouble running the example after building a kernel with the newest XRT and driver for amd 8845hs.

the operation is under PVE virtual machine

These are what i check for each step

Check hardware

to ensure driver will install check the VM system requirements and host requirements

host check
root@pve:~# dmesg | grep -i iommu
# boot options
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.8-2-pve root=/dev/mapper/pve-root ro quiet amd_iommu=on iommu=pt nomodeset pcie_acs_override=downstream initcall_blacklist=sysfb_init vfio_iommu_type1.allow_unsafe_interrupts=1  video=efifb:off
[    0.000000] Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA
[    0.063268] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.8-2-pve root=/dev/mapper/pve-root ro quiet amd_iommu=on iommu=pt nomodeset pcie_acs_override=downstream initcall_blacklist=sysfb_init vfio_iommu_type1.allow_unsafe_interrupts=1 video=efifb:off
[    0.647008] iommu: Default domain type: Passthrough (set via kernel command line)
# found this
[    0.683854] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[    0.683910] pci 0000:00:01.0: Adding to iommu group 0
[    0.683927] pci 0000:00:01.2: Adding to iommu group 1
[    0.683944] pci 0000:00:01.4: Adding to iommu group 2
[    0.683973] pci 0000:00:02.0: Adding to iommu group 3
[    0.683990] pci 0000:00:02.1: Adding to iommu group 4
[    0.684006] pci 0000:00:02.2: Adding to iommu group 5
[    0.684022] pci 0000:00:02.3: Adding to iommu group 6
[    0.684045] pci 0000:00:03.0: Adding to iommu group 7
[    0.684063] pci 0000:00:03.1: Adding to iommu group 8
[    0.684087] pci 0000:00:04.0: Adding to iommu group 9
[    0.684105] pci 0000:00:04.1: Adding to iommu group 10
[    0.684133] pci 0000:00:08.0: Adding to iommu group 11
[    0.684149] pci 0000:00:08.1: Adding to iommu group 12
[    0.684165] pci 0000:00:08.2: Adding to iommu group 13
[    0.684181] pci 0000:00:08.3: Adding to iommu group 14
[    0.684209] pci 0000:00:14.0: Adding to iommu group 15
[    0.684223] pci 0000:00:14.3: Adding to iommu group 15
[    0.684292] pci 0000:00:18.0: Adding to iommu group 16
[    0.684306] pci 0000:00:18.1: Adding to iommu group 16
[    0.684321] pci 0000:00:18.2: Adding to iommu group 16
[    0.684336] pci 0000:00:18.3: Adding to iommu group 16
[    0.684351] pci 0000:00:18.4: Adding to iommu group 16
[    0.684366] pci 0000:00:18.5: Adding to iommu group 16
[    0.684383] pci 0000:00:18.6: Adding to iommu group 16
[    0.684397] pci 0000:00:18.7: Adding to iommu group 16
[    0.684418] pci 0000:01:00.0: Adding to iommu group 17
[    0.684434] pci 0000:02:00.0: Adding to iommu group 18
[    0.684450] pci 0000:03:00.0: Adding to iommu group 19
[    0.684466] pci 0000:04:00.0: Adding to iommu group 20
[    0.684483] pci 0000:05:00.0: Adding to iommu group 21
[    0.684513] pci 0000:c6:00.0: Adding to iommu group 22
[    0.684530] pci 0000:c6:00.1: Adding to iommu group 23
[    0.684547] pci 0000:c6:00.2: Adding to iommu group 24
[    0.684565] pci 0000:c6:00.3: Adding to iommu group 25
[    0.684582] pci 0000:c6:00.4: Adding to iommu group 26
[    0.684600] pci 0000:c6:00.6: Adding to iommu group 27
[    0.684619] pci 0000:c7:00.0: Adding to iommu group 28
[    0.684639] pci 0000:c7:00.1: Adding to iommu group 29
[    0.684657] pci 0000:c8:00.0: Adding to iommu group 30
[    0.684677] pci 0000:c8:00.3: Adding to iommu group 31
[    0.684696] pci 0000:c8:00.4: Adding to iommu group 32
[    0.684714] pci 0000:c8:00.5: Adding to iommu group 33
[    0.684733] pci 0000:c8:00.6: Adding to iommu group 34
# found this
[    0.687914] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).

VM check

check cpu

root@vm:~# lscpu
Architecture:             x86_64
  CPU op-mode(s):         32-bit, 64-bit
  Address sizes:          48 bits physical, 48 bits virtual
  Byte Order:             Little Endian
CPU(s):                   4
  On-line CPU(s) list:    0-3
Vendor ID:                AuthenticAMD
# found this
  Model name:             AMD Ryzen 7 8845HS w/ Radeon 780M Graphics
    CPU family:           25
    Model:                117
    Thread(s) per core:   1
    Core(s) per socket:   4
    Socket(s):            1
    Stepping:             2
    BogoMIPS:             7585.70
    Flags:                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
                           pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pd
                          pe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pn
                          i pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_
                          deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_l
                          egacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw per
                          fctr_core ssbd ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase tsc
                          _adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed
                          adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx5
                          12vl xsaveopt xsavec xgetbv1 xsaves avx512_bf16 clzero xsaveerptr
                           wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean flushbyasi
                          d pausefilter pfthreshold v_vmsave_vmload vgif vnmi avx512vbmi um
                          ip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512
                          _bitalg avx512_vpopcntdq rdpid fsrm flush_l1d arch_capabilities
Virtualization features:
  Virtualization:         AMD-V
  Hypervisor vendor:      KVM
  Virtualization type:    full
Caches (sum of all):
  L1d:                    256 KiB (4 instances)
  L1i:                    256 KiB (4 instances)
  L2:                     2 MiB (4 instances)
  L3:                     64 MiB (4 instances)
NUMA:
  NUMA node(s):           1
  NUMA node0 CPU(s):      0-3
Vulnerabilities:
  Gather data sampling:   Not affected
  Itlb multihit:          Not affected
  L1tf:                   Not affected
  Mds:                    Not affected
  Meltdown:               Not affected
  Mmio stale data:        Not affected
  Reg file data sampling: Not affected
  Retbleed:               Not affected
  Spec rstack overflow:   Vulnerable: Safe RET, no microcode
  Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitizat
                          ion
  Spectre v2:             Mitigation; Enhanced / Automatic IBRS; IBPB conditional; STIBP di
                          sabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
  Srbds:                  Not affected
  Tsx async abort:        Not affected

check immou and drm

root@vm:~# cat /proc/cmdline
# found this
# not enable in cmdline immou but still detected enable
BOOT_IMAGE=/vmlinuz-6.8.0-38-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro

root@vm:~# sudo dmesg | grep -i iommu
# found this, iommu retured values
[    0.163549] iommu: Default domain type: Translated
[    0.163549] iommu: DMA domain TLB invalidation policy: lazy mode

root@vm:~#  sudo lsmod | grep drm
# found this, also return values
amddrm_ttm_helper      12288  1 amdgpu
amdttm                118784  2 amdgpu,amddrm_ttm_helper
amddrm_buddy           20480  1 amdgpu
drm_exec               16384  1 amdgpu
drm_suballoc_helper    16384  1 amdgpu
drm_display_helper    253952  1 amdgpu
cec                    98304  1 drm_display_helper
drm_vram_helper        24576  1 bochs
drm_ttm_helper         12288  2 bochs,drm_vram_helper
ttm                   114688  2 drm_vram_helper,drm_ttm_helper

root@vm:~#  sudo dmesg | grep drm
[    0.396334] ACPI: bus type drm_connector registered
[    0.431417] [drm] Initialized simpledrm 1.0.0 20200625 for simple-framebuffer.0 on minor 0
[    0.432952] simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device
[    0.731790] bochs-drm 0000:00:02.0: vgaarb: deactivate vga console
[    0.731861] [drm] Found bochs VGA, ID 0xb0c5.
[    0.731864] [drm] Framebuffer size 16384 kB @ 0xfd000000, mmio @ 0xfeb96000.
[    0.732780] [drm] Found EDID data blob.
[    0.732952] [drm] Initialized bochs-drm 1.0.0 20130925 for 0000:00:02.0 on minor 0
[    0.733705] fbcon: bochs-drmdrmfb (fb0) is primary device
[    1.034047] bochs-drm 0000:00:02.0: [drm] fb0: bochs-drmdrmfb frame buffer device
[    1.883668] [drm] amdgpu kernel modesetting enabled.
[    1.883681] [drm] amdgpu version: 6.7.0
[    1.883688] [drm] OS DRM version: 6.8.0
[    1.916430] [drm] initializing kernel modesetting (IP DISCOVERY 0x1002:0x1900 0x2014:0x8001 0xC5).
[    1.918362] [drm] register mmio base: 0xFEA00000
[    1.918370] [drm] register mmio size: 524288
[    1.921893] [drm] add ip block number 0 <soc21_common>
[    1.921904] [drm] add ip block number 1 <gmc_v11_0>
[    1.921911] [drm] add ip block number 2 <ih_v6_0>
[    1.921918] [drm] add ip block number 3 <psp>
[    1.921925] [drm] add ip block number 4 <smu>
[    1.922193] [drm] add ip block number 5 <dm>
[    1.922394] [drm] add ip block number 6 <gfx_v11_0>
[    1.922591] [drm] add ip block number 7 <sdma_v6_0>
[    1.922777] [drm] add ip block number 8 <vcn_v4_0>
[    1.922959] [drm] add ip block number 9 <jpeg_v4_0>
[    1.923137] [drm] add ip block number 10 <mes_v11_0>
[    1.932912] [drm] BIOS signature incorrect 5b 69
[    1.933147] [drm] BIOS header is broken
[    1.940333] [drm] BIOS signature incorrect 5b 69
[    2.090508] workqueue: drm_fb_helper_damage_work hogged CPU for >10000us 4 times, consider switching to WQ_UNBOUND
[    2.390508] workqueue: drm_fb_helper_damage_work hogged CPU for >10000us 8 times, consider switching to WQ_UNBOUND
[    2.689184] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
[    2.999504] workqueue: drm_fb_helper_damage_work hogged CPU for >10000us 16 times, consider switching to WQ_UNBOUND
[    5.211507] workqueue: drm_fb_helper_damage_work hogged CPU for >10000us 32 times, consider switching to WQ_UNBOUND

check pci device

root@vm:~# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
00:05.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
# found this
00:10.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 (rev c5)
# found this
00:11.0 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
00:12.0 Ethernet controller: Red Hat, Inc. Virtio network device
# found this
00:1b.0 Signal processing controller: Advanced Micro Devices, Inc. [AMD] AMD IPU Device
00:1e.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:1f.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
01:01.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI

there are GPU/IPU and audio device

and i was build success xrt and xdna-driver and it was installed

root@vm:~# ls /opt/xilinx/xrt/lib
libcontainer_mpd_plugin.so  libxrt_core.so                libxrt_hwemu_static.a
libxdp_core.so              libxrt_core.so.2              libxrt_noop.so
libxdp_core.so.2            libxrt_core.so.2.18.0         libxrt_noop.so.2
libxdp_core.so.2.18.0       libxrt_core_static.a          libxrt_noop.so.2.18.0
libxilinxopencl.so          libxrt_coreutil.so            libxrt++.so
libxilinxopencl.so.2        libxrt_coreutil.so.2          libxrt++.so.2
libxilinxopencl.so.2.18.0   libxrt_coreutil.so.2.18.0     libxrt++.so.2.18.0
libxilinxopencl_static.a    libxrt_coreutil_static.a      libxrt++_static.a
libxma2api.so               libxrt_driver_xdna.so         libxrt_swemu.so
libxma2api.so.2             libxrt_driver_xdna.so.2       libxrt_swemu.so.2
libxma2api.so.2.18.0        libxrt_driver_xdna.so.2.18.0  libxrt_swemu.so.2.18.0
libxma2plugin.so            libxrt_hwemu.so               libxrt_swemu_static.a
libxma2plugin.so.2          libxrt_hwemu.so.2             xrt
libxma2plugin.so.2.18.0     libxrt_hwemu.so.2.18.0
root@vm:~# ls /usr/lib/firmware/amdnpu/1502_00 -alh
total 316K
drwxr-xr-x 2 root root 4.0K Jul 19 18:58 .
drwxr-xr-x 6 root root 4.0K Jul 19 17:26 ..
-rw-r--r-- 1 root root 305K Jul 19 15:58 npu.sbin

when i check steps from #50

useing xrt xbutil check

root@vm:~# ./xrt/build/Release/opt/xilinx/xrt/bin/xrt-smi examine
System Configuration
  OS Name              : Linux
  Release              : 6.8.0-38-generic
  Machine              : x86_64
  CPU Cores            : 4
  Memory               : 7941 MB
  Distribution         : Ubuntu 24.04 LTS
  GLIBC                : 2.39
  Model                : Standard PC (i440FX + PIIX, 1996)
  BIOS vendor          : SeaBIOS
  BIOS version         : rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org

XRT
  Version              : 2.18.0
  Branch               : HEAD
  Hash                 : 54b1a0335ef517415d17206d30365cf4a2c380d0
  Hash Date            : 2024-07-19 18:10:24
  xocl                 : unknown, unknown
  xclmgmt              : unknown, unknown
WARNING: xclmgmt version is unknown. Is xclmgmt driver loaded? Or is MSD/MPD running?

Devices present
# found this 
  0 devices found

here is problem why 0 devices found

and try to install

# cwd is ./xdna-driver/build/Release
root@vm:~#  ./opt/xilinx/xrt/amdxdna/dkms_driver.sh --install
XILINX_XRT is not set properly

why XILINX_XRT is not set properly,i have installed xrt and xdna-driver,it's seems xrt was not install success.

and retry to install xrt

root@vm:~# sudo apt reinstall ./xrt_202420.2.18.0_24.04-amd64-xrt.deb  ./xrt_202420.2.18.0_24.04-amd64-xbflash.deb
[sudo] password for never:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'xrt' instead of './xrt_202420.2.18.0_24.04-amd64-xrt.deb'
Note, selecting 'xrt-xbflash' instead of './xrt_202420.2.18.0_24.04-amd64-xbflash.deb'
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 1 not upgraded.
Need to get 0 B/16.2 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /home/never/xdna-driver/xrt/build/Release/xrt_202420.2.18.0_24.04-amd64-xrt.deb xrt amd64 2.18.0 [16.2 MB]
Get:2 /home/never/xdna-driver/xrt/build/Release/xrt_202420.2.18.0_24.04-amd64-xbflash.deb xrt-xbflash amd64 2.18.0 [59.5 kB]
(Reading database ... 138133 files and directories currently installed.)
Preparing to unpack .../xrt_202420.2.18.0_24.04-amd64-xrt.deb ...
Unpacking xrt (2.18.0) over (2.18.0) ...
Preparing to unpack .../xrt_202420.2.18.0_24.04-amd64-xbflash.deb ...
Unpacking xrt-xbflash (2.18.0) over (2.18.0) ...
Setting up xrt (2.18.0) ...
Setting up xrt-xbflash (2.18.0) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
N: Download is performed unsandboxed as root as file '/home/never/xdna-driver/xrt/build/Release/xrt_202420.2.18.0_24.04-amd64-xrt.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

check driver

root@vm:~# dpkg -l | grep xdna
ii  xrt_plugin-amdxdna                     2.18.0                                  amd64        XDNA driver plugin for Xilinx RunTime

root@vm:~# dpkg -l | grep xrt
ii  xrt                                    2.18.0                                  amd64        Runtime stack for use with AMD platforms
ii  xrt-container                          2.18.0                                  amd64        Runtime stack for use with AMD platforms
ii  xrt-xbflash                            2.18.0                                  amd64        Runtime stack for use with AMD platforms
ii  xrt_plugin-amdxdna                     2.18.0                                  amd64        XDNA driver plugin for Xilinx RunTime

XILINX_XRT is not set properly problem still

switch to root and export XILINX_XRT=/opt/xilinx/xrt

root@vm:~# export XILINX_XRT=/opt/xilinx/xrt
root@vm:~#  ./opt/xilinx/xrt/amdxdna/dkms_driver.sh --install
Installing xrt-amdxdna-2.18.0 from /opt/xilinx/xrt/amdxdna...
Module xrt-amdxdna-2.18.0 for kernel 6.8.0-38-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

amdxdna.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.8.0-38-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...

amdxdna.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-38-generic/updates/dkms/
depmod...
Successfully intalled and enabled DKMS for xrt-amdxdna/2.18.0

check again use xrt-smi

root@vm:~# /home/never/xdna-driver# ./xrt/build/Release/opt/xilinx/xrt/bin/unwrapped/xrt-smi examin
ERROR: Unknown command: 'examin'

DESCRIPTION: The Xilinx (R) Run Time - System Management Interface (xrt-smi) is a standalone
             command line utility that is included with the Xilinx Run Time (XRT) installation
             package. It includes multiple commands to identify and validate the installed card(s).

             This information can be used for both card administration and application debugging.

USAGE: xrt-smi[--help] [--version] [--verbose] [--batch] [--force] [command [commandArgs]]

AVAILABLE COMMANDS:
  configure  - Device and host configuration
  examine    - Status of the system and device
  program    - Download the acceleration program to a given device
  reset      - Resets the given device
  validate   - Validates the basic shell acceleration functionality

OPTIONS:
  --help             - Help to use this application
  --version          - Report the version of XRT and its drivers
  --verbose          - Turn on verbosity
  --batch            - Enable batch mode (disables escape characters)
  --force            - When possible, force an operation
root@tkai:/home/never/xdna-driver# ./xrt/build/Release/opt/xilinx/xrt/bin/unwrapped/xrt-smi examine
System Configuration
  OS Name              : Linux
  Release              : 6.8.0-38-generic
  Machine              : x86_64
  CPU Cores            : 4
  Memory               : 7941 MB
  Distribution         : Ubuntu 24.04 LTS
  GLIBC                : 2.39
  Model                : Standard PC (i440FX + PIIX, 1996)
  BIOS vendor          : SeaBIOS
  BIOS version         : rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org

XRT
  Version              : 2.18.0
  Branch               : HEAD
  Hash                 : 54b1a0335ef517415d17206d30365cf4a2c380d0
  Hash Date            : 2024-07-19 18:10:24
  xocl                 : unknown, unknown
  xclmgmt              : unknown, unknown
WARNING: xclmgmt version is unknown. Is xclmgmt driver loaded? Or is MSD/MPD running?
  amdxdna              : 2.18.0_20240719, 33ce972deb1eaec4666671a0255870a28ec982ae

Devices present
  0 devices found

it's seems almost success, I'd appreciate any assistance. still 0 device found

maxzhen commented 1 month ago

Running NPU inside a VM is not supported. I suspect that the driver can't attach properly. You can try to reload the driver and see what you get from dmesg.

joebnb commented 1 month ago

Running NPU inside a VM is not supported. I suspect that the driver can't attach properly. You can try to reload the driver and see what you get from dmesg.

would tell me how to reload driver

btw: after xrt-smi examin show amdxdna version, i performed a reboot,when execute ./xrt/build/Release/opt/xilinx/xrt/bin/unwrapped/xrt-smi examin again amdxdna was disappear

joebnb commented 1 month ago

im using a none root user build and install driver,wired the ENV not set by driver automatic and xdna driver was gone after a reboot

root@vm:~# cd /home/never/xdna-driver
root@v m:/home/never/xdna-driver# ./xrt/build/Release/opt/xilinx/xrt/bin/xbutil examine
----------------------------------------------------------------------
                              WARNING:
                xbutil has been renamed to xrt-smi
        Please migrate to using xrt-smi instead of xbutil.

    Commands, options, arguments and their descriptions can also be
                    reported via the --help option.
----------------------------------------------------------------------
System Configuration
  OS Name              : Linux
  Release              : 6.8.0-38-generic
  Machine              : x86_64
  CPU Cores            : 4
  Memory               : 7941 MB
  Distribution         : Ubuntu 24.04 LTS
  GLIBC                : 2.39
  Model                : Standard PC (i440FX + PIIX, 1996)
  BIOS vendor          : SeaBIOS
  BIOS version         : rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org

XRT
  Version              : 2.18.0
  Branch               : HEAD
  Hash                 : 54b1a0335ef517415d17206d30365cf4a2c380d0
  Hash Date            : 2024-07-19 18:10:24
  xocl                 : unknown, unknown
  xclmgmt              : unknown, unknown
WARNING: xclmgmt version is unknown. Is xclmgmt driver loaded? Or is MSD/MPD running?

Devices present
  0 devices found
root@vm:/home/never/xdna-driver# echo $XILINX_XRT

root@vm:/home/never/xdna-driver# export XILINX_XRT=/opt/xilinx/xrt
root@vm:/home/never/xdna-driver# ./xrt/build/Release/opt/xilinx/xrt/bin/xbutil examine
----------------------------------------------------------------------
                              WARNING:
                xbutil has been renamed to xrt-smi
        Please migrate to using xrt-smi instead of xbutil.

    Commands, options, arguments and their descriptions can also be
                    reported via the --help option.
----------------------------------------------------------------------
System Configuration
  OS Name              : Linux
  Release              : 6.8.0-38-generic
  Machine              : x86_64
  CPU Cores            : 4
  Memory               : 7941 MB
  Distribution         : Ubuntu 24.04 LTS
  GLIBC                : 2.39
  Model                : Standard PC (i440FX + PIIX, 1996)
  BIOS vendor          : SeaBIOS
  BIOS version         : rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org

XRT
  Version              : 2.18.0
  Branch               : HEAD
  Hash                 : 54b1a0335ef517415d17206d30365cf4a2c380d0
  Hash Date            : 2024-07-19 18:10:24
  xocl                 : unknown, unknown
  xclmgmt              : unknown, unknown
WARNING: xclmgmt version is unknown. Is xclmgmt driver loaded? Or is MSD/MPD running?

Devices present
  0 devices found
joebnb commented 1 month ago

Running NPU inside a VM is not supported. I suspect that the driver can't attach properly. You can try to reload the driver and see what you get from dmesg.

i rang sudo dmesg | grep -E 'amd|error|ipu|xrt|xdna|warn|fail' get this print

[    0.000000] Linux version 6.8.0-38-generic (buildd@lcy02-amd64-049) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun  7 15:25:01 UTC 2024 (Ubuntu 6.8.0-38.38-generic 6.8.8)
[    0.070367] ACPI: _OSC evaluation for CPUs failed, trying _PDC
[    0.432412] amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled
[    0.709489] amdkcl: loading out-of-tree module taints kernel.
[    0.709497] amdkcl: module verification failed: signature and/or required key missing - tainting kernel
[    1.885825] [drm] amdgpu kernel modesetting enabled.
[    1.885835] [drm] amdgpu version: 6.7.0
[    1.887568] amdgpu: Virtual CRAT table created for CPU
[    1.887596] amdgpu: Topology: Add CPU node
[    1.946732] amdgpu 0000:00:10.0: amdgpu: Unable to locate a BIOS ROM
# see here
[    1.947298] amdgpu 0000:00:10.0: amdgpu: Fatal error during GPU init
[    1.947913] amdgpu 0000:00:10.0: amdgpu: amdgpu: finishing device.
[    1.980428] amdgpu: probe of 0000:00:10.0 failed with error -22
[    3.109208] kvm_amd: TSC scaling supported
[    3.109213] kvm_amd: Nested Virtualization enabled
[    3.109214] kvm_amd: Nested Paging enabled
[    3.109217] kvm_amd: Virtual VMLOAD VMSAVE supported
[    3.109218] kvm_amd: Virtual GIF supported
[    3.109218] kvm_amd: Virtual NMI enabled
[    3.109219] kvm_amd: LBR virtualization supported
[    3.122737] amdxdna 0000:00:1b.0: aie2_init: Enable PASID failed, ret -19
# see here
[    3.124764] amdxdna 0000:00:1b.0: amdxdna_probe: Hardware init failed, ret -19

would help analysis is have possible to make it work

xmixahlx commented 1 month ago

Are you also using an unpatched 6.8 kernel?

maxzhen commented 1 month ago

Or in your VM, there is no virtual IOMMU which to support PASID... We may need to disable PASID and fall back to physical memory address mode. There is something we have to do here and it is not trivial.

joebnb commented 1 month ago

Are you also using an unpatched 6.8 kernel?

in vm is not patched,on pve that is patched this is pve:

Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.8-2-pve root=/dev/mapper/pve-root ro quiet amd_iommu=on iommu=pt nomodeset pcie_acs_override=downstream initcall_blacklist=sysfb_init vfio_iommu_type1.allow_unsafe_interrupts=1  video=efifb:off

this is vm

BOOT_IMAGE=/vmlinuz-6.8.0-38-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro

but in vm immout still have output

root@vm:~# sudo dmesg | grep -i iommu
# found this, iommu retured values
[    0.163549] iommu: Default domain type: Translated
[    0.163549] iommu: DMA domain TLB invalidation policy: lazy mode

now im trying another solution: https://bbs.archlinux.org/viewtopic.php?id=237818

i'm not sure is it works,pve default bios is legancy bios,im trying to create a uefi bios system

joebnb commented 1 month ago

Or in your VM, there is no virtual IOMMU which to support PASID... We may need to disable PASID and fall back to physical memory address mode. There is something we have to do here and it is not trivial.

host machine return

root@pve:~# dmesg | grep -e DMAR -e IOMMU
[    0.000000] Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA
[    0.683854] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[    0.687914] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank). 

vm wasn't out put any thing

sudo dmesg | grep -e DMAR -e IOMMU
# nothing

should i need rebuild kernel follow this steps or this is not necessary

# Assuming you have knowledge of kernel compilation,
# this is just refreshing up a few key points.

# Clone Linux source code from your favorite repository, for example
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

# Usually, when people compile kernel from source code, they use current config
cp /boot/config-`uname -r` <your_build_dir>/.config   # (Option step, if you know how to do it better)
# Open <your_build_dir>/.config and add "CONFIG_DRM_ACCEL=y" #Required by XDNA Driver
# Or run instead
scripts/config --file .config --enable DRM_ACCEL
scripts/config --file .config --enable AMD_IOMMU # Option step, if you know this is not set

# Use below command to build kernel packages. Once build is done, DEB packages are at the parent directory of <your_build_dir>
make -j `nproc` bindeb-pkg
# The exact names will depend on your configuration
sudo apt reinstall ../linux-headers-6.10.0_6.10.0-1_amd64.deb ../linux-image-6.10.0_6.10.0-1_amd64.deb ../linux-libc-dev_6.10.0-1_amd64.deb
joebnb commented 1 month ago

Or in your VM, there is no virtual IOMMU which to support PASID... We may need to disable PASID and fall back to physical memory address mode. There is something we have to do here and it is not trivial.

a little infomation from pve https://pve.proxmox.com/wiki/PCI_Passthrough

dmesg | grep -e DMAR -e IOMMU
[    0.000000] Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA
[    0.683854] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[    0.687914] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).

dmesg | grep 'remapping'
# is x2apic and pasid are same thing
[    0.162407] x2apic: IRQ remapping doesn't support X2APIC mode
[    0.684985] AMD-Vi: Interrupt remapping enabled

root@pve:~# dmesg | grep -i pasid
# empty

this is pve official pass throw manual,wish it will help for implement this

mamin506 commented 1 month ago

About manually load driver,

  1. Check module info, run modinfo amdxdna
  2. If 1) shows module details, then the driver should be installed. Then run modprobe amdxdna to load driver
  3. Right after step 2), you can check dmesg to see if there is error. Run dmesg

Step 2 and 3 needs root privilege.

joebnb commented 1 month ago

3. dmesg i rang upper command


modinfo amdxdna
filename:       /lib/modules/6.8.0-38-generic/updates/dkms/amdxdna.ko.zst
description:    amdxdna driver
version:        2.18.0_20240719,7e3e157ca80cef532537a4eb319109b6c05c66d3
author:         XRT Team <runtimeca39d@amd.com>
license:        GPL
srcversion:     CD1E54156086A2401FAF552
alias:          pci:v00001022d*sv*sd*bc11sc80i*
depends:        gpu-sched
retpoline:      Y
name:           amdxdna
vermagic:       6.8.0-38-generic SMP preempt mod_unload modversions
sig_id:         PKCS#7
signer:         tkai Secure Boot Module Signature key
sig_key:        5B:AE:A2:68:1A:F4:94:3D:76:E9:A9:14:70:1F:71:CC:CA:A7:2E:D7
sig_hashalgo:   sha512
signature:      02:89:61:F4:BE:B6:16:00:D9:21:FC:E6:7B:DF:06:53:AC:04:68:71:
8E:A5:AE:59:F5:30:87:CE:38:42:EF:16:5C:22:44:37:A0:3B:93:51:
BF:C4:63:7A:C7:0E:29:12:85:0F:E8:ED:AE:28:69:47:FB:A9:5E:97:
1B:46:71:62:5D:B1:0D:F9:6D:DA:CF:7D:66:7C:89:5B:7D:76:2E:98:
35:CA:D1:99:BD:5A:0A:E1:FC:43:E5:16:D5:3D:26:C2:D8:EC:35:8A:
A1:FB:47:BA:BE:D6:61:41:56:C3:B7:4D:F9:DA:33:41:5A:26:0F:54:
0B:27:1A:58:5E:B4:8B:D1:A4:8D:BE:47:AE:20:B5:A2:32:45:3E:AD:
93:BC:2A:5A:91:AC:08:E2:3E:5D:EF:BA:29:A6:2F:9B:1A:6F:F1:E8:
90:6A:54:0A:5B:31:C9:1F:F2:EC:7A:A8:27:B3:3D:49:D3:F2:5B:BE:
32:4F:BD:2C:D0:99:49:47:C7:DB:C5:12:5E:3D:73:A3:B2:8A:6B:35:
BE:35:DA:0E:A2:40:69:14:DC:00:3F:3D:FB:2D:C8:82:C2:D9:4B:BA:
12:03:97:74:58:63:88:23:3F:5A:88:AD:E4:98:14:DF:66:F4:A5:07:
8A:85:90:91:F6:50:EF:73:68:83:B2:1F:86:C7:5B:9C
parm:           iommu_mode:0 = w/ PASID (Default), 1 = wo/ PASID, 2 = Bypass (int)
parm:           priv_load:Privileged loading runtime configure (Default false) (bool)
parm:           start_col_index:Force start column, default -1 (auto select) (int)
parm:           aie2_max_col:Maximum column could be used (int)
parm:           force_cmdlist:Force use command list (Default false) (bool)
parm:           timeout_in_sec:Seconds to timeout and recovery, default 2; 0 - No TDR (int)
parm:           mailbox_polling:1:Enable mailbox polling mode (int)

modprobe amdxdna

nothing output also trying with sudo

sudo dmesg [ 0.000000] Linux version 6.8.0-38-generic (buildd@lcy02-amd64-049) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024 (Ubuntu 6.8.0-38.38-generic 6.8.8) [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.8.0-38-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet amd_iommu=on iommu=pt [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Hygon HygonGenuine [ 0.000000] Centaur CentaurHauls [ 0.000000] zhaoxin Shanghai [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000007fffff] usable [ 0.000000] BIOS-e820: [mem 0x0000000000800000-0x0000000000807fff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000000808000-0x000000000080afff] usable [ 0.000000] BIOS-e820: [mem 0x000000000080b000-0x000000000080bfff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x000000000080c000-0x000000000080ffff] usable [ 0.000000] BIOS-e820: [mem 0x0000000000810000-0x00000000008fffff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000000900000-0x00000000bee63fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000bee64000-0x00000000bef24fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000bef25000-0x00000000bf8ecfff] usable [ 0.000000] BIOS-e820: [mem 0x00000000bf8ed000-0x00000000bfb6cfff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000bfb6d000-0x00000000bfb7efff] ACPI data [ 0.000000] BIOS-e820: [mem 0x00000000bfb7f000-0x00000000bfbfefff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x00000000bfbff000-0x00000000bff1ffff] usable [ 0.000000] BIOS-e820: [mem 0x00000000bff20000-0x00000000bff3ffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000bff40000-0x00000000bfffffff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000ffe00000-0x00000000ffffffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000023fffffff] usable [ 0.000000] BIOS-e820: [mem 0x000000fd00000000-0x000000ffffffffff] reserved [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] APIC: Static calls initialized [ 0.000000] e820: update [mem 0xbe7e6018-0xbe7efa57] usable ==> usable [ 0.000000] e820: update [mem 0xbe7e6018-0xbe7efa57] usable ==> usable [ 0.000000] e820: update [mem 0xbe0af018-0xbe0d6457] usable ==> usable [ 0.000000] e820: update [mem 0xbe0af018-0xbe0d6457] usable ==> usable [ 0.000000] extended physical RAM map: [ 0.000000] reserve setup_data: [mem 0x0000000000000000-0x000000000009ffff] usable [ 0.000000] reserve setup_data: [mem 0x0000000000100000-0x00000000007fffff] usable [ 0.000000] reserve setup_data: [mem 0x0000000000800000-0x0000000000807fff] ACPI NVS [ 0.000000] reserve setup_data: [mem 0x0000000000808000-0x000000000080afff] usable [ 0.000000] reserve setup_data: [mem 0x000000000080b000-0x000000000080bfff] ACPI NVS [ 0.000000] reserve setup_data: [mem 0x000000000080c000-0x000000000080ffff] usable [ 0.000000] reserve setup_data: [mem 0x0000000000810000-0x00000000008fffff] ACPI NVS [ 0.000000] reserve setup_data: [mem 0x0000000000900000-0x00000000be0af017] usable [ 0.000000] reserve setup_data: [mem 0x00000000be0af018-0x00000000be0d6457] usable [ 0.000000] reserve setup_data: [mem 0x00000000be0d6458-0x00000000be7e6017] usable [ 0.000000] reserve setup_data: [mem 0x00000000be7e6018-0x00000000be7efa57] usable [ 0.000000] reserve setup_data: [mem 0x00000000be7efa58-0x00000000bee63fff] usable [ 0.000000] reserve setup_data: [mem 0x00000000bee64000-0x00000000bef24fff] reserved [ 0.000000] reserve setup_data: [mem 0x00000000bef25000-0x00000000bf8ecfff] usable [ 0.000000] reserve setup_data: [mem 0x00000000bf8ed000-0x00000000bfb6cfff] reserved [ 0.000000] reserve setup_data: [mem 0x00000000bfb6d000-0x00000000bfb7efff] ACPI data [ 0.000000] reserve setup_data: [mem 0x00000000bfb7f000-0x00000000bfbfefff] ACPI NVS [ 0.000000] reserve setup_data: [mem 0x00000000bfbff000-0x00000000bff1ffff] usable [ 0.000000] reserve setup_data: [mem 0x00000000bff20000-0x00000000bff3ffff] reserved [ 0.000000] reserve setup_data: [mem 0x00000000bff40000-0x00000000bfffffff] ACPI NVS [ 0.000000] reserve setup_data: [mem 0x00000000feffc000-0x00000000feffffff] reserved [ 0.000000] reserve setup_data: [mem 0x00000000ffe00000-0x00000000ffffffff] reserved [ 0.000000] reserve setup_data: [mem 0x0000000100000000-0x000000023fffffff] usable [ 0.000000] reserve setup_data: [mem 0x000000fd00000000-0x000000ffffffffff] reserved [ 0.000000] efi: EFI v2.7 by EFI Development Kit II / OVMF [ 0.000000] efi: SMBIOS=0xbf918000 ACPI=0xbfb7e000 ACPI 2.0=0xbfb7e014 MEMATTR=0xbe7f5018 MOKvar=0xbf913000 INITRD=0xbe7f6a18 [ 0.000000] efi: Remove mem137: MMIO range=[0xffe00000-0xffffffff] (2MB) from e820 map [ 0.000000] e820: remove [mem 0xffe00000-0xffffffff] reserved [ 0.000000] secureboot: Secure boot disabled [ 0.000000] SMBIOS 2.8 present. [ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 3.20230228-4 06/06/2023 [ 0.000000] Hypervisor detected: KVM [ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00 [ 0.000000] kvm-clock: using sched offset of 1439700714325 cycles [ 0.000002] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 0.000004] tsc: Detected 3792.854 MHz processor [ 0.000085] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved [ 0.000088] e820: remove [mem 0x000a0000-0x000fffff] usable [ 0.000093] last_pfn = 0x240000 max_arch_pfn = 0x400000000 [ 0.000120] MTRR map: 4 entries (2 fixed + 2 variable; max 18), built from 8 variable MTRRs [ 0.000123] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT [ 0.000158] last_pfn = 0xbff20 max_arch_pfn = 0x400000000 [ 0.003402] Using GB pages for direct mapping [ 0.003911] secureboot: Secure boot disabled [ 0.003911] RAMDISK: [mem 0xb5010000-0xb9018fff] [ 0.004201] ACPI: Early table checksum verification disabled [ 0.004204] ACPI: RSDP 0x00000000BFB7E014 000024 (v02 BOCHS ) [ 0.004207] ACPI: XSDT 0x00000000BFB7D0E8 000054 (v01 BOCHS BXPC 00000001 01000013) [ 0.004211] ACPI: FACP 0x00000000BFB78000 000074 (v01 BOCHS BXPC 00000001 BXPC 00000001) [ 0.004215] ACPI: DSDT 0x00000000BFB79000 003F39 (v01 BOCHS BXPC 00000001 BXPC 00000001) [ 0.004217] ACPI: FACS 0x00000000BFBDC000 000040 [ 0.004218] ACPI: APIC 0x00000000BFB77000 0000B0 (v03 BOCHS BXPC 00000001 BXPC 00000001) [ 0.004220] ACPI: SSDT 0x00000000BFB76000 0000CA (v01 BOCHS VMGENID 00000001 BXPC 00000001) [ 0.004222] ACPI: HPET 0x00000000BFB75000 000038 (v01 BOCHS BXPC 00000001 BXPC 00000001) [ 0.004223] ACPI: WAET 0x00000000BFB74000 000028 (v01 BOCHS BXPC 00000001 BXPC 00000001) [ 0.004225] ACPI: BGRT 0x00000000BFB73000 000038 (v01 INTEL EDK2 00000002 01000013) [ 0.004226] ACPI: Reserving FACP table memory at [mem 0xbfb78000-0xbfb78073] [ 0.004227] ACPI: Reserving DSDT table memory at [mem 0xbfb79000-0xbfb7cf38] [ 0.004228] ACPI: Reserving FACS table memory at [mem 0xbfbdc000-0xbfbdc03f] [ 0.004228] ACPI: Reserving APIC table memory at [mem 0xbfb77000-0xbfb770af] [ 0.004229] ACPI: Reserving SSDT table memory at [mem 0xbfb76000-0xbfb760c9] [ 0.004229] ACPI: Reserving HPET table memory at [mem 0xbfb75000-0xbfb75037] [ 0.004230] ACPI: Reserving WAET table memory at [mem 0xbfb74000-0xbfb74027] [ 0.004230] ACPI: Reserving BGRT table memory at [mem 0xbfb73000-0xbfb73037] [ 0.004417] No NUMA configuration found [ 0.004417] Faking a node at [mem 0x0000000000000000-0x000000023fffffff] [ 0.004421] NODE_DATA(0) allocated [mem 0x23ffd5000-0x23fffffff] [ 0.004537] Zone ranges: [ 0.004538] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.004539] DMA32 [mem 0x0000000001000000-0x00000000ffffffff] [ 0.004540] Normal [mem 0x0000000100000000-0x000000023fffffff] [ 0.004541] Device empty [ 0.004542] Movable zone start for each node [ 0.004543] Early memory node ranges [ 0.004543] node 0: [mem 0x0000000000001000-0x000000000009ffff] [ 0.004544] node 0: [mem 0x0000000000100000-0x00000000007fffff] [ 0.004545] node 0: [mem 0x0000000000808000-0x000000000080afff] [ 0.004545] node 0: [mem 0x000000000080c000-0x000000000080ffff] [ 0.004546] node 0: [mem 0x0000000000900000-0x00000000bee63fff] [ 0.004546] node 0: [mem 0x00000000bef25000-0x00000000bf8ecfff] [ 0.004547] node 0: [mem 0x00000000bfbff000-0x00000000bff1ffff] [ 0.004547] node 0: [mem 0x0000000100000000-0x000000023fffffff] [ 0.004548] Initmem setup node 0 [mem 0x0000000000001000-0x000000023fffffff] [ 0.004554] On node 0, zone DMA: 1 pages in unavailable ranges [ 0.004560] On node 0, zone DMA: 96 pages in unavailable ranges [ 0.004561] On node 0, zone DMA: 8 pages in unavailable ranges [ 0.004561] On node 0, zone DMA: 1 pages in unavailable ranges [ 0.004567] On node 0, zone DMA: 240 pages in unavailable ranges [ 0.006363] On node 0, zone DMA32: 193 pages in unavailable ranges [ 0.006374] On node 0, zone DMA32: 786 pages in unavailable ranges [ 0.009600] On node 0, zone Normal: 224 pages in unavailable ranges [ 0.010308] ACPI: PM-Timer IO Port: 0xb008 [ 0.010317] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1]) [ 0.010339] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23 [ 0.010341] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) [ 0.010343] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level) [ 0.010344] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) [ 0.010345] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level) [ 0.010345] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level) [ 0.010347] ACPI: Using ACPI (MADT) for SMP configuration information [ 0.010348] ACPI: HPET id: 0x8086a201 base: 0xfed00000 [ 0.010356] e820: update [mem 0xbe0d7000-0xbe0fafff] usable ==> reserved [ 0.010365] TSC deadline timer available [ 0.010366] smpboot: Allowing 8 CPUs, 0 hotplug CPUs [ 0.010381] kvm-guest: APIC: eoi() replaced with kvm_guest_apic_eoi_write() [ 0.010392] kvm-guest: KVM setup pv remote TLB flush [ 0.010394] kvm-guest: setup PV sched yield [ 0.010404] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.010405] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000fffff] [ 0.010406] PM: hibernation: Registered nosave memory: [mem 0x00800000-0x00807fff] [ 0.010407] PM: hibernation: Registered nosave memory: [mem 0x0080b000-0x0080bfff] [ 0.010408] PM: hibernation: Registered nosave memory: [mem 0x00810000-0x008fffff] [ 0.010409] PM: hibernation: Registered nosave memory: [mem 0xbe0af000-0xbe0affff] [ 0.010410] PM: hibernation: Registered nosave memory: [mem 0xbe0d6000-0xbe0d6fff] [ 0.010411] PM: hibernation: Registered nosave memory: [mem 0xbe0d7000-0xbe0fafff] [ 0.010412] PM: hibernation: Registered nosave memory: [mem 0xbe7e6000-0xbe7e6fff] [ 0.010413] PM: hibernation: Registered nosave memory: [mem 0xbe7ef000-0xbe7effff] [ 0.010413] PM: hibernation: Registered nosave memory: [mem 0xbee64000-0xbef24fff] [ 0.010414] PM: hibernation: Registered nosave memory: [mem 0xbf8ed000-0xbfb6cfff] [ 0.010415] PM: hibernation: Registered nosave memory: [mem 0xbfb6d000-0xbfb7efff] [ 0.010415] PM: hibernation: Registered nosave memory: [mem 0xbfb7f000-0xbfbfefff] [ 0.010416] PM: hibernation: Registered nosave memory: [mem 0xbff20000-0xbff3ffff] [ 0.010417] PM: hibernation: Registered nosave memory: [mem 0xbff40000-0xbfffffff] [ 0.010417] PM: hibernation: Registered nosave memory: [mem 0xc0000000-0xfeffbfff] [ 0.010418] PM: hibernation: Registered nosave memory: [mem 0xfeffc000-0xfeffffff] [ 0.010418] PM: hibernation: Registered nosave memory: [mem 0xff000000-0xffffffff] [ 0.010419] [mem 0xc0000000-0xfeffbfff] available for PCI devices [ 0.010421] Booting paravirtualized kernel on KVM [ 0.010422] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns [ 0.010428] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:8 nr_cpu_ids:8 nr_node_ids:1 [ 0.010630] percpu: Embedded 86 pages/cpu s229376 r8192 d114688 u524288 [ 0.010634] pcpu-alloc: s229376 r8192 d114688 u524288 alloc=1*2097152 [ 0.010636] pcpu-alloc: [0] 0 1 2 3 [0] 4 5 6 7 [ 0.010663] kvm-guest: PV spinlocks enabled [ 0.010664] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.010666] Kernel command line: BOOT_IMAGE=/vmlinuz-6.8.0-38-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet amd_iommu=on iommu=pt [ 0.010711] AMD-Vi: Unknown option - 'on' [ 0.010720] Unknown kernel command line parameters "BOOT_IMAGE=/vmlinuz-6.8.0-38-generic", will be passed to user space. [ 0.010921] random: crng init done [ 0.011238] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.011402] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.011446] Fallback order for Node 0: 0 [ 0.011448] Built 1 zonelists, mobility grouping on. Total pages: 2060907 [ 0.011449] Policy zone: Normal [ 0.011453] mem auto-init: stack:all(zero), heap alloc:on, heap free:off [ 0.011458] software IO TLB: area num 8. [ 0.023290] Memory: 8011832K/8382412K available (22528K kernel code, 4440K rwdata, 14300K rodata, 4972K init, 4736K bss, 370320K reserved, 0K cma-reserved) [ 0.024054] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1 [ 0.024073] ftrace: allocating 57844 entries in 226 pages [ 0.033599] ftrace: allocated 226 pages with 4 groups [ 0.034323] Dynamic Preempt: voluntary [ 0.034367] rcu: Preemptible hierarchical RCU implementation. [ 0.034368] rcu: RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=8. [ 0.034369] Trampoline variant of Tasks RCU enabled. [ 0.034369] Rude variant of Tasks RCU enabled. [ 0.034369] Tracing variant of Tasks RCU enabled. [ 0.034370] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies. [ 0.034371] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8 [ 0.036025] NR_IRQS: 524544, nr_irqs: 488, preallocated irqs: 16 [ 0.036217] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.036339] Console: colour dummy device 80x25 [ 0.036340] printk: legacy console [tty0] enabled [ 0.036369] ACPI: Core revision 20230628 [ 0.036480] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns [ 0.036550] APIC: Switch to symmetric I/O mode setup [ 0.036677] x2apic enabled [ 0.036874] APIC: Switched APIC routing to: physical x2apic [ 0.036876] kvm-guest: APIC: send_IPI_mask() replaced with kvm_send_ipi_mask() [ 0.036879] kvm-guest: APIC: send_IPI_mask_allbutself() replaced with kvm_send_ipi_mask_allbutself() [ 0.036880] kvm-guest: setup PV IPIs [ 0.037559] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 [ 0.037575] tsc: Marking TSC unstable due to TSCs unsynchronized [ 0.037577] Calibrating delay loop (skipped) preset value.. 7585.70 BogoMIPS (lpj=3792854) [ 0.037640] x86/cpu: User Mode Instruction Prevention (UMIP) activated [ 0.037694] Last level iTLB entries: 4KB 512, 2MB 255, 4MB 127 [ 0.037695] Last level dTLB entries: 4KB 512, 2MB 255, 4MB 127, 1GB 0 [ 0.037699] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 0.037702] Spectre V2 : Mitigation: Enhanced / Automatic IBRS [ 0.037703] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch [ 0.037704] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier [ 0.037705] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl [ 0.037706] Speculative Return Stack Overflow: IBPB-extending microcode not applied! [ 0.037707] Speculative Return Stack Overflow: WARNING: See https://kernel.org/doc/html/latest/admin-guide/hw-vuln/srso.html for mitigation options. [ 0.037707] Speculative Return Stack Overflow: Vulnerable: Safe RET, no microcode [ 0.037725] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [ 0.037726] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [ 0.037727] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [ 0.037727] x86/fpu: Supporting XSAVE feature 0x020: 'AVX-512 opmask' [ 0.037728] x86/fpu: Supporting XSAVE feature 0x040: 'AVX-512 Hi256' [ 0.037728] x86/fpu: Supporting XSAVE feature 0x080: 'AVX-512 ZMM_Hi256' [ 0.037729] x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'

[ 0.037733] x86/fpu: Enabled xstate features 0x2e7, context size is 2440 bytes, using 'compacted' format. [ 0.059689] Freeing SMP alternatives memory: 48K [ 0.059691] pid_max: default: 32768 minimum: 301 [ 0.061370] LSM: initializing lsm=lockdown,capability,landlock,yama,apparmor,integrity [ 0.061385] landlock: Up and running. [ 0.061387] Yama: becoming mindful. [ 0.061410] AppArmor: AppArmor initialized [ 0.061446] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.061453] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.061717] smpboot: CPU0: AMD Ryzen 7 8845HS w/ Radeon 780M Graphics (family: 0x19, model: 0x75, stepping: 0x2) [ 0.061848] RCU Tasks: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1. [ 0.061862] RCU Tasks Rude: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1. [ 0.061875] RCU Tasks Trace: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1. [ 0.061888] Performance Events: Fam17h+ core perfctr, AMD PMU driver. [ 0.061902] ... version: 0 [ 0.061903] ... bit width: 48 [ 0.061904] ... generic registers: 6 [ 0.061905] ... value mask: 0000ffffffffffff [ 0.061906] ... max period: 00007fffffffffff [ 0.061907] ... fixed-purpose events: 0 [ 0.061907] ... event mask: 000000000000003f [ 0.061981] signal: max sigframe size: 3376 [ 0.062005] rcu: Hierarchical SRCU implementation. [ 0.062006] rcu: Max phase no-delay instances is 400. [ 0.064201] smp: Bringing up secondary CPUs ... [ 0.064298] smpboot: x86: Booting SMP configuration: [ 0.064299] .... node #0, CPUs: #1 #2 #3 #4 #5 #6 #7 [ 0.066614] smp: Brought up 1 node, 8 CPUs [ 0.066614] smpboot: Max logical packages: 1 [ 0.066614] smpboot: Total of 8 processors activated (60685.66 BogoMIPS) [ 0.066904] devtmpfs: initialized [ 0.066904] x86/mm: Memory block size: 128MB [ 0.068473] ACPI: PM: Registering ACPI NVS region [mem 0x00800000-0x00807fff] (32768 bytes) [ 0.068473] ACPI: PM: Registering ACPI NVS region [mem 0x0080b000-0x0080bfff] (4096 bytes) [ 0.068473] ACPI: PM: Registering ACPI NVS region [mem 0x00810000-0x008fffff] (983040 bytes) [ 0.068473] ACPI: PM: Registering ACPI NVS region [mem 0xbfb7f000-0xbfbfefff] (524288 bytes) [ 0.068473] ACPI: PM: Registering ACPI NVS region [mem 0xbff40000-0xbfffffff] (786432 bytes) [ 0.068591] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 0.068598] futex hash table entries: 2048 (order: 5, 131072 bytes, linear) [ 0.068648] pinctrl core: initialized pinctrl subsystem [ 0.068746] PM: RTC time: 22:15:49, date: 2024-07-19 [ 0.069183] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.069325] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations [ 0.069726] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.069769] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.069780] audit: initializing netlink subsys (disabled) [ 0.069808] audit: type=2000 audit(1721427349.298:1): state=initialized audit_enabled=0 res=1 [ 0.069834] thermal_sys: Registered thermal governor 'fair_share' [ 0.069836] thermal_sys: Registered thermal governor 'bang_bang' [ 0.069838] thermal_sys: Registered thermal governor 'step_wise' [ 0.069839] thermal_sys: Registered thermal governor 'user_space' [ 0.069841] thermal_sys: Registered thermal governor 'power_allocator' [ 0.069851] EISA bus registered [ 0.069873] cpuidle: using governor ladder [ 0.069873] cpuidle: using governor menu [ 0.070692] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 [ 0.070794] PCI: Using configuration type 1 for base access [ 0.070795] PCI: Using configuration type 1 for extended access [ 0.070977] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible. [ 0.070994] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages [ 0.070994] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page [ 0.070994] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 0.070994] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page [ 0.071692] ACPI: Added _OSI(Module Device) [ 0.071694] ACPI: Added _OSI(Processor Device) [ 0.071695] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.071697] ACPI: Added _OSI(Processor Aggregator Device) [ 0.074810] ACPI: 2 ACPI AML tables successfully acquired and loaded [ 0.075695] ACPI: _OSC evaluation for CPUs failed, trying _PDC [ 0.076047] ACPI: Interpreter enabled [ 0.076062] ACPI: PM: (supports S0 S3 S4 S5) [ 0.076064] ACPI: Using IOAPIC for interrupt routing [ 0.076757] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug [ 0.076758] PCI: Ignoring E820 reservations for host bridge windows [ 0.077001] ACPI: Enabled 3 GPEs in block 00 to 0F [ 0.085504] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.085510] acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI EDR HPX-Type3] [ 0.086224] acpiphp: Slot [3] registered [ 0.086252] acpiphp: Slot [16] registered [ 0.086274] acpiphp: Slot [17] registered [ 0.086291] acpiphp: Slot [18] registered [ 0.086307] acpiphp: Slot [27] registered [ 0.086345] acpiphp: Slot [4] registered [ 0.086361] acpiphp: Slot [6] registered [ 0.086375] acpiphp: Slot [7] registered [ 0.086391] acpiphp: Slot [8] registered [ 0.086406] acpiphp: Slot [9] registered [ 0.086421] acpiphp: Slot [10] registered [ 0.086436] acpiphp: Slot [11] registered [ 0.086451] acpiphp: Slot [12] registered [ 0.086466] acpiphp: Slot [13] registered [ 0.086481] acpiphp: Slot [14] registered [ 0.086498] acpiphp: Slot [15] registered [ 0.086512] acpiphp: Slot [19] registered [ 0.086527] acpiphp: Slot [20] registered [ 0.086542] acpiphp: Slot [21] registered [ 0.086557] acpiphp: Slot [22] registered [ 0.086572] acpiphp: Slot [23] registered [ 0.086588] acpiphp: Slot [24] registered [ 0.086604] acpiphp: Slot [25] registered [ 0.086619] acpiphp: Slot [26] registered [ 0.086634] acpiphp: Slot [28] registered [ 0.086649] acpiphp: Slot [29] registered [ 0.086658] PCI host bridge to bus 0000:00 [ 0.086660] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] [ 0.086662] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] [ 0.086664] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] [ 0.086665] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window] [ 0.086667] pci_bus 0000:00: root bus resource [mem 0x380000000000-0x38181024a0ff window] [ 0.086670] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.086783] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000 conventional PCI endpoint [ 0.087099] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100 conventional PCI endpoint [ 0.087490] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180 conventional PCI endpoint [ 0.089404] pci 0000:00:01.1: BAR 4 [io 0xf180-0xf18f] [ 0.090227] pci 0000:00:01.1: BAR 0 [io 0x01f0-0x01f7]: legacy IDE quirk [ 0.090229] pci 0000:00:01.1: BAR 1 [io 0x03f6]: legacy IDE quirk [ 0.090231] pci 0000:00:01.1: BAR 2 [io 0x0170-0x0177]: legacy IDE quirk [ 0.090232] pci 0000:00:01.1: BAR 3 [io 0x0376]: legacy IDE quirk [ 0.090362] pci 0000:00:01.2: [8086:7020] type 00 class 0x0c0300 conventional PCI endpoint [ 0.092095] pci 0000:00:01.2: BAR 4 [io 0xf160-0xf17f] [ 0.094488] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000 conventional PCI endpoint [ 0.094488] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI [ 0.094488] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB [ 0.094488] pci 0000:00:02.0: [1234:1111] type 00 class 0x030000 conventional PCI endpoint [ 0.094983] pci 0000:00:02.0: BAR 0 [mem 0xc0000000-0xc0ffffff pref] [ 0.097584] pci 0000:00:02.0: BAR 2 [mem 0xc1787000-0xc1787fff] [ 0.100367] pci 0000:00:02.0: ROM [mem 0xffff0000-0xffffffff pref] [ 0.100399] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff] [ 0.100572] pci 0000:00:03.0: [1af4:1002] type 00 class 0x00ff00 conventional PCI endpoint [ 0.100897] pci 0000:00:03.0: BAR 0 [io 0xf100-0xf13f] [ 0.101829] pci 0000:00:03.0: BAR 4 [mem 0x381810240000-0x381810243fff 64bit pref] [ 0.103181] pci 0000:00:05.0: [1b36:0001] type 01 class 0x060400 conventional PCI bridge [ 0.103941] pci 0000:00:05.0: BAR 0 [mem 0x38181024a000-0x38181024a0ff 64bit] [ 0.104584] pci 0000:00:05.0: PCI bridge to [bus 01] [ 0.104598] pci 0000:00:05.0: bridge window [io 0xe000-0xefff] [ 0.104608] pci 0000:00:05.0: bridge window [mem 0xc1400000-0xc15fffff] [ 0.104984] pci 0000:00:05.0: bridge window [mem 0x380000000000-0x3807ffffffff 64bit pref] [ 0.107351] pci 0000:00:10.0: [1002:1900] type 00 class 0x030000 PCIe Legacy Endpoint [ 0.123585] pci 0000:00:10.0: BAR 0 [mem 0x381800000000-0x38180fffffff 64bit pref] [ 0.137584] pci 0000:00:10.0: BAR 2 [mem 0x381810000000-0x3818101fffff 64bit pref] [ 0.152584] pci 0000:00:10.0: BAR 4 [io 0xf000-0xf0ff] [ 0.166584] pci 0000:00:10.0: BAR 5 [mem 0xc1680000-0xc16fffff] [ 0.181849] pci 0000:00:10.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff] [ 0.182985] pci 0000:00:11.0: [1002:1640] type 00 class 0x040300 PCIe Legacy Endpoint [ 0.183573] pci 0000:00:11.0: BAR 0 [mem 0xc1780000-0xc1783fff] [ 0.186625] pci 0000:00:12.0: [1af4:1000] type 00 class 0x020000 conventional PCI endpoint [ 0.187108] pci 0000:00:12.0: BAR 0 [io 0xf140-0xf15f] [ 0.187579] pci 0000:00:12.0: BAR 1 [mem 0xc1786000-0xc1786fff] [ 0.189064] pci 0000:00:12.0: BAR 4 [mem 0x381810244000-0x381810247fff 64bit pref] [ 0.189474] pci 0000:00:12.0: ROM [mem 0xfffc0000-0xffffffff pref] [ 0.192590] pci 0000:00:1b.0: [1022:1502] type 00 class 0x118000 PCIe Endpoint [ 0.193587] pci 0000:00:1b.0: BAR 0 [mem 0xc1600000-0xc167ffff] [ 0.194584] pci 0000:00:1b.0: BAR 1 [mem 0xc1784000-0xc1785fff] [ 0.195584] pci 0000:00:1b.0: BAR 2 [mem 0x381810200000-0x38181023ffff 64bit pref] [ 0.196585] pci 0000:00:1b.0: BAR 4 [mem 0xc1700000-0xc173ffff] [ 0.200994] pci 0000:00:1e.0: [1b36:0001] type 01 class 0x060400 conventional PCI bridge [ 0.201453] pci 0000:00:1e.0: BAR 0 [mem 0x381810249000-0x3818102490ff 64bit] [ 0.201921] pci 0000:00:1e.0: PCI bridge to [bus 02] [ 0.201935] pci 0000:00:1e.0: bridge window [io 0xd000-0xdfff] [ 0.201945] pci 0000:00:1e.0: bridge window [mem 0xc1200000-0xc13fffff] [ 0.202301] pci 0000:00:1e.0: bridge window [mem 0x380800000000-0x380fffffffff 64bit pref] [ 0.202927] pci 0000:00:1f.0: [1b36:0001] type 01 class 0x060400 conventional PCI bridge [ 0.203374] pci 0000:00:1f.0: BAR 0 [mem 0x381810248000-0x3818102480ff 64bit] [ 0.203583] pci 0000:00:1f.0: PCI bridge to [bus 03] [ 0.203597] pci 0000:00:1f.0: bridge window [io 0xc000-0xcfff] [ 0.203606] pci 0000:00:1f.0: bridge window [mem 0xc1000000-0xc11fffff] [ 0.203769] pci 0000:00:1f.0: bridge window [mem 0x381000000000-0x3817ffffffff 64bit pref] [ 0.204302] pci_bus 0000:01: extended config space not accessible [ 0.204559] acpiphp: Slot [1-2] registered [ 0.204574] acpiphp: Slot [0] registered [ 0.204591] acpiphp: Slot [2] registered [ 0.204606] acpiphp: Slot [3-2] registered [ 0.204622] acpiphp: Slot [4-2] registered [ 0.204634] acpiphp: Slot [5] registered [ 0.204654] acpiphp: Slot [6-2] registered [ 0.204670] acpiphp: Slot [7-2] registered [ 0.204686] acpiphp: Slot [8-2] registered [ 0.204702] acpiphp: Slot [9-2] registered [ 0.204718] acpiphp: Slot [10-2] registered [ 0.204733] acpiphp: Slot [11-2] registered [ 0.204748] acpiphp: Slot [12-2] registered [ 0.204764] acpiphp: Slot [13-2] registered [ 0.204779] acpiphp: Slot [14-2] registered [ 0.204796] acpiphp: Slot [15-2] registered [ 0.204811] acpiphp: Slot [16-2] registered [ 0.204826] acpiphp: Slot [17-2] registered [ 0.204842] acpiphp: Slot [18-2] registered [ 0.204857] acpiphp: Slot [19-2] registered [ 0.204873] acpiphp: Slot [20-2] registered [ 0.204888] acpiphp: Slot [21-2] registered [ 0.204904] acpiphp: Slot [22-2] registered [ 0.204920] acpiphp: Slot [23-2] registered [ 0.204935] acpiphp: Slot [24-2] registered [ 0.204950] acpiphp: Slot [25-2] registered [ 0.204966] acpiphp: Slot [26-2] registered [ 0.204981] acpiphp: Slot [27-2] registered [ 0.204996] acpiphp: Slot [28-2] registered [ 0.205017] acpiphp: Slot [29-2] registered [ 0.205030] acpiphp: Slot [30] registered [ 0.205043] acpiphp: Slot [31] registered [ 0.205274] pci 0000:01:01.0: [1af4:1004] type 00 class 0x010000 conventional PCI endpoint [ 0.205579] pci 0000:01:01.0: BAR 0 [io 0xe000-0xe03f] [ 0.205900] pci 0000:01:01.0: BAR 1 [mem 0xc1400000-0xc1400fff] [ 0.207761] pci 0000:01:01.0: BAR 4 [mem 0x380000000000-0x380000003fff 64bit pref] [ 0.214430] pci 0000:00:05.0: PCI bridge to [bus 01] [ 0.214657] pci_bus 0000:02: extended config space not accessible [ 0.214913] acpiphp: Slot [0-2] registered [ 0.214931] acpiphp: Slot [1-3] registered [ 0.214947] acpiphp: Slot [2-2] registered [ 0.214963] acpiphp: Slot [3-3] registered [ 0.214980] acpiphp: Slot [4-3] registered [ 0.214998] acpiphp: Slot [5-2] registered [ 0.215014] acpiphp: Slot [6-3] registered [ 0.215030] acpiphp: Slot [7-3] registered [ 0.215047] acpiphp: Slot [8-3] registered [ 0.215063] acpiphp: Slot [9-3] registered [ 0.215079] acpiphp: Slot [10-3] registered [ 0.215095] acpiphp: Slot [11-3] registered [ 0.215111] acpiphp: Slot [12-3] registered [ 0.215127] acpiphp: Slot [13-3] registered [ 0.215143] acpiphp: Slot [14-3] registered [ 0.215160] acpiphp: Slot [15-3] registered [ 0.215176] acpiphp: Slot [16-3] registered [ 0.215193] acpiphp: Slot [17-3] registered [ 0.215209] acpiphp: Slot [18-3] registered [ 0.215225] acpiphp: Slot [19-3] registered [ 0.215241] acpiphp: Slot [20-3] registered [ 0.215257] acpiphp: Slot [21-3] registered [ 0.215274] acpiphp: Slot [22-3] registered [ 0.215290] acpiphp: Slot [23-3] registered [ 0.215307] acpiphp: Slot [24-3] registered [ 0.215323] acpiphp: Slot [25-3] registered [ 0.215339] acpiphp: Slot [26-3] registered [ 0.215355] acpiphp: Slot [27-3] registered [ 0.215371] acpiphp: Slot [28-3] registered [ 0.215388] acpiphp: Slot [29-3] registered [ 0.215404] acpiphp: Slot [30-2] registered [ 0.215420] acpiphp: Slot [31-2] registered [ 0.220938] pci 0000:00:1e.0: PCI bridge to [bus 02] [ 0.221184] pci_bus 0000:03: extended config space not accessible [ 0.221441] acpiphp: Slot [0-3] registered [ 0.221458] acpiphp: Slot [1-4] registered [ 0.221476] acpiphp: Slot [2-3] registered [ 0.221492] acpiphp: Slot [3-4] registered [ 0.221509] acpiphp: Slot [4-4] registered [ 0.221525] acpiphp: Slot [5-3] registered [ 0.221542] acpiphp: Slot [6-4] registered [ 0.221558] acpiphp: Slot [7-4] registered [ 0.221574] acpiphp: Slot [8-4] registered [ 0.221595] acpiphp: Slot [9-4] registered [ 0.221612] acpiphp: Slot [10-4] registered [ 0.221629] acpiphp: Slot [11-4] registered [ 0.221646] acpiphp: Slot [12-4] registered [ 0.221663] acpiphp: Slot [13-4] registered [ 0.221680] acpiphp: Slot [14-4] registered [ 0.221697] acpiphp: Slot [15-4] registered [ 0.221714] acpiphp: Slot [16-4] registered [ 0.221731] acpiphp: Slot [17-4] registered [ 0.221748] acpiphp: Slot [18-4] registered [ 0.221766] acpiphp: Slot [19-4] registered [ 0.221782] acpiphp: Slot [20-4] registered [ 0.221799] acpiphp: Slot [21-4] registered [ 0.221816] acpiphp: Slot [22-4] registered [ 0.221838] acpiphp: Slot [23-4] registered [ 0.221854] acpiphp: Slot [24-4] registered [ 0.221871] acpiphp: Slot [25-4] registered [ 0.221888] acpiphp: Slot [26-4] registered [ 0.221906] acpiphp: Slot [27-4] registered [ 0.221923] acpiphp: Slot [28-4] registered [ 0.221941] acpiphp: Slot [29-4] registered [ 0.221958] acpiphp: Slot [30-3] registered [ 0.221978] acpiphp: Slot [31-3] registered [ 0.227474] pci 0000:00:1f.0: PCI bridge to [bus 03] [ 0.228337] ACPI: PCI: Interrupt link LNKA configured for IRQ 10 [ 0.228455] ACPI: PCI: Interrupt link LNKB configured for IRQ 10 [ 0.233666] ACPI: PCI: Interrupt link LNKC configured for IRQ 11 [ 0.239678] ACPI: PCI: Interrupt link LNKD configured for IRQ 11 [ 0.244614] ACPI: PCI: Interrupt link LNKS configured for IRQ 9 [ 0.245617] iommu: Default domain type: Passthrough (set via kernel command line) [ 0.245721] SCSI subsystem initialized [ 0.246587] libata version 3.00 loaded. [ 0.246604] ACPI: bus type USB registered [ 0.246616] usbcore: registered new interface driver usbfs [ 0.246621] usbcore: registered new interface driver hub [ 0.246627] usbcore: registered new device driver usb [ 0.246646] pps_core: LinuxPPS API ver. 1 registered [ 0.246647] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.246650] PTP clock support registered [ 0.246662] EDAC MC: Ver: 3.0.0 [ 0.246776] efivars: Registered efivars operations [ 0.246809] NetLabel: Initializing [ 0.246811] NetLabel: domain hash size = 128 [ 0.246812] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.246826] NetLabel: unlabeled traffic allowed by default [ 0.246841] mctp: management component transport protocol core [ 0.246841] NET: Registered PF_MCTP protocol family [ 0.246841] PCI: Using ACPI for IRQ routing [ 0.246841] PCI: pci_cache_line_size set to 64 bytes [ 0.246841] e820: reserve RAM buffer [mem 0x0080b000-0x008fffff] [ 0.246841] e820: reserve RAM buffer [mem 0x00810000-0x008fffff] [ 0.246841] e820: reserve RAM buffer [mem 0xbe0af018-0xbfffffff] [ 0.246841] e820: reserve RAM buffer [mem 0xbe0d7000-0xbfffffff] [ 0.246841] e820: reserve RAM buffer [mem 0xbe7e6018-0xbfffffff] [ 0.246841] e820: reserve RAM buffer [mem 0xbee64000-0xbfffffff] [ 0.246841] e820: reserve RAM buffer [mem 0xbf8ed000-0xbfffffff] [ 0.246841] e820: reserve RAM buffer [mem 0xbff20000-0xbfffffff] [ 0.247587] pci 0000:00:02.0: vgaarb: setting as boot VGA device [ 0.247589] pci 0000:00:02.0: vgaarb: bridge control possible [ 0.247590] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none [ 0.247612] pci 0000:00:10.0: vgaarb: bridge control possible [ 0.247613] pci 0000:00:10.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none [ 0.247616] vgaarb: loaded [ 0.247632] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0 [ 0.247637] hpet0: 3 comparators, 64-bit 100.000000 MHz counter [ 0.250633] clocksource: Switched to clocksource kvm-clock [ 0.251495] VFS: Disk quotas dquot_6.6.0 [ 0.251505] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.251643] AppArmor: AppArmor Filesystem Enabled [ 0.251657] pnp: PnP ACPI init [ 0.251747] pnp 00:02: [dma 2] [ 0.252087] pnp: PnP ACPI: found 4 devices [ 0.258784] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns [ 0.258853] NET: Registered PF_INET protocol family [ 0.258905] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.269116] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear) [ 0.269129] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.269144] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.269240] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear) [ 0.269298] TCP: Hash tables configured (established 65536 bind 65536) [ 0.269363] MPTCP token hash table entries: 8192 (order: 5, 196608 bytes, linear) [ 0.269380] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear) [ 0.269391] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear) [ 0.269426] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.269433] NET: Registered PF_XDP protocol family [ 0.269437] pci 0000:00:12.0: ROM [mem 0xfffc0000-0xffffffff pref]: can't claim; no compatible bridge window

[ 0.269451] pci 0000:00:05.0: PCI bridge to [bus 01] [ 0.269464] pci 0000:00:05.0: bridge window [io 0xe000-0xefff] [ 0.269756] pci 0000:00:05.0: bridge window [mem 0xc1400000-0xc15fffff] [ 0.269898] pci 0000:00:05.0: bridge window [mem 0x380000000000-0x3807ffffffff 64bit pref] [ 0.270189] pci 0000:00:1e.0: PCI bridge to [bus 02] [ 0.270196] pci 0000:00:1e.0: bridge window [io 0xd000-0xdfff] [ 0.270428] pci 0000:00:1e.0: bridge window [mem 0xc1200000-0xc13fffff] [ 0.270560] pci 0000:00:1e.0: bridge window [mem 0x380800000000-0x380fffffffff 64bit pref] [ 0.270817] pci 0000:00:1f.0: PCI bridge to [bus 03] [ 0.270824] pci 0000:00:1f.0: bridge window [io 0xc000-0xcfff] [ 0.271030] pci 0000:00:1f.0: bridge window [mem 0xc1000000-0xc11fffff] [ 0.271165] pci 0000:00:1f.0: bridge window [mem 0x381000000000-0x3817ffffffff 64bit pref] [ 0.271434] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window] [ 0.271437] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window] [ 0.271438] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window] [ 0.271439] pci_bus 0000:00: resource 7 [mem 0xc0000000-0xfebfffff window] [ 0.271441] pci_bus 0000:00: resource 8 [mem 0x380000000000-0x38181024a0ff window] [ 0.271443] pci_bus 0000:01: resource 0 [io 0xe000-0xefff] [ 0.271444] pci_bus 0000:01: resource 1 [mem 0xc1400000-0xc15fffff] [ 0.271445] pci_bus 0000:01: resource 2 [mem 0x380000000000-0x3807ffffffff 64bit pref] [ 0.271447] pci_bus 0000:02: resource 0 [io 0xd000-0xdfff] [ 0.271448] pci_bus 0000:02: resource 1 [mem 0xc1200000-0xc13fffff] [ 0.271450] pci_bus 0000:02: resource 2 [mem 0x380800000000-0x380fffffffff 64bit pref] [ 0.271451] pci_bus 0000:03: resource 0 [io 0xc000-0xcfff] [ 0.271453] pci_bus 0000:03: resource 1 [mem 0xc1000000-0xc11fffff] [ 0.271454] pcibus 0000:03: resource 2 [mem 0x381000000000-0x3817ffffffff 64bit pref] [ 0.271580] pci 0000:00:01.0: PIIX3: Enabling Passive Release [ 0.271589] pci 0000:00:00.0: Limiting direct PCI/PCI transfers [ 0.303010] ACPI: _SB.LNKD: Enabled at IRQ 11 [ 0.334246] pci 0000:00:01.2: quirk_usb_early_handoff+0x0/0x190 took 61171 usecs [ 0.334345] PCI: CLS 64 bytes, default 64 [ 0.334360] PCI-DMA: Using software bounce buffering for IO (SWIOTLB) [ 0.334361] software IO TLB: mapped [mem 0x00000000b1010000-0x00000000b5010000] (64MB) [ 0.334458] Trying to unpack rootfs image as initramfs... [ 0.334854] Initialise system trusted keyrings [ 0.334862] Key type blacklist registered [ 0.335013] workingset: timestamp_bits=36 max_order=21 bucketorder=0 [ 0.335022] zbud: loaded [ 0.335264] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.335512] fuse: init (API version 7.39) [ 0.335731] integrity: Platform Keyring initialized [ 0.335735] integrity: Machine keyring initialized [ 0.342795] Key type asymmetric registered [ 0.342800] Asymmetric key parser 'x509' registered [ 0.342820] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243) [ 0.342929] io scheduler mq-deadline registered [ 0.344658] shpchp 0000:00:05.0: Requesting control of SHPC hotplug via OSHP (_SB.PCI0.S28) [ 0.344667] shpchp 0000:00:05.0: Requesting control of SHPC hotplug via OSHP (_SB.PCI0) [ 0.344675] shpchp 0000:00:05.0: Cannot get control of SHPC hotplug [ 0.344701] shpchp 0000:00:1e.0: Requesting control of SHPC hotplug via OSHP (_SB.PCI0.SF0) [ 0.344707] shpchp 0000:00:1e.0: Requesting control of SHPC hotplug via OSHP (_SB.PCI0) [ 0.344709] shpchp 0000:00:1e.0: Cannot get control of SHPC hotplug [ 0.344735] shpchp 0000:00:1f.0: Requesting control of SHPC hotplug via OSHP (_SB.PCI0.SF8) [ 0.344741] shpchp 0000:00:1f.0: Requesting control of SHPC hotplug via OSHP (_SB.PCI0) [ 0.344743] shpchp 0000:00:1f.0: Cannot get control of SHPC hotplug [ 0.344748] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 0.344886] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 [ 0.344977] ACPI: button: Power Button [PWRF] [ 0.376999] ACPI: _SB.LNKC: Enabled at IRQ 10 [ 0.394702] Freeing initrd memory: 65572K [ 0.409090] ACPI: _SB.LNKB: Enabled at IRQ 10 [ 0.440767] ACPI: _SB_.LNKA: Enabled at IRQ 11 [ 0.472785] Free page reporting enabled [ 0.472923] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled [ 0.475368] Linux agpgart interface v0.103 [ 0.477461] loop: module loaded [ 0.477794] virtio_scsi virtio2: 8/0/0 default/read/poll queues [ 0.478953] scsi host0: Virtio SCSI HBA [ 0.479861] ata_piix 0000:00:01.1: version 2.13 [ 0.480060] scsi 0:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 0.480297] scsi host1: ata_piix [ 0.480423] scsi host2: ata_piix [ 0.480447] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xf180 irq 14 lpm-pol 0 [ 0.480449] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xf188 irq 15 lpm-pol 0 [ 0.480478] ACPI: bus type drm_connector registered [ 0.480764] tun: Universal TUN/TAP device driver, 1.6 [ 0.481741] PPP generic driver version 2.4.2 [ 0.490561] scsi 0:0:0:0: Attached scsi generic sg0 type 0 [ 0.490672] sd 0:0:0:0: Power-on or device reset occurred [ 0.490732] sd 0:0:0:0: [sda] 503316480 512-byte logical blocks: (258 GB/240 GiB) [ 0.490754] sd 0:0:0:0: [sda] Write Protect is off [ 0.490757] sd 0:0:0:0: [sda] Mode Sense: 63 00 00 08 [ 0.490795] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 0.492721] sda: sda1 sda2 sda3 [ 0.492855] sd 0:0:0:0: [sda] Attached SCSI disk [ 0.513102] uhci_hcd 0000:00:01.2: UHCI Host Controller [ 0.513108] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1 [ 0.513118] uhci_hcd 0000:00:01.2: detected 2 ports [ 0.513179] uhci_hcd 0000:00:01.2: irq 11, io port 0x0000f160 [ 0.513242] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.08 [ 0.513244] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.513246] usb usb1: Product: UHCI Host Controller [ 0.513247] usb usb1: Manufacturer: Linux 6.8.0-38-generic uhci_hcd [ 0.513249] usb usb1: SerialNumber: 0000:00:01.2 [ 0.513395] hub 1-0:1.0: USB hub found [ 0.513404] hub 1-0:1.0: 2 ports detected [ 0.513532] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12 [ 0.514021] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 0.514025] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 0.514167] mousedev: PS/2 mouse device common for all mice [ 0.514283] rtc_cmos 00:03: RTC can wake from S4 [ 0.514676] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1 [ 0.514698] rtc_cmos 00:03: registered as rtc0 [ 0.514782] rtc_cmos 00:03: setting system clock to 2024-07-19T22:15:49 UTC (1721427349) [ 0.514854] rtc_cmos 00:03: alarms up to one day, y3k, 242 bytes nvram [ 0.514864] i2c_dev: i2c /dev entries driver [ 0.514891] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log. [ 0.514904] device-mapper: uevent: version 1.0.3 [ 0.514961] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com [ 0.514992] platform eisa.0: Probing EISA bus 0 [ 0.514995] platform eisa.0: EISA: Cannot allocate resource for mainboard [ 0.514998] platform eisa.0: Cannot allocate resource for EISA slot 1 [ 0.514999] platform eisa.0: Cannot allocate resource for EISA slot 2 [ 0.515001] platform eisa.0: Cannot allocate resource for EISA slot 3 [ 0.515003] platform eisa.0: Cannot allocate resource for EISA slot 4 [ 0.515005] platform eisa.0: Cannot allocate resource for EISA slot 5 [ 0.515006] platform eisa.0: Cannot allocate resource for EISA slot 6 [ 0.515008] platform eisa.0: Cannot allocate resource for EISA slot 7 [ 0.515010] platform eisa.0: Cannot allocate resource for EISA slot 8 [ 0.515011] platform eisa.0: EISA: Detected 0 cards [ 0.515014] amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled [ 0.515246] ledtrig-cpu: registered to indicate activity on CPUs [ 0.515493] [drm] Initialized simpledrm 1.0.0 20200625 for simple-framebuffer.0 on minor 0 [ 0.515751] fbcon: Deferring console take-over [ 0.515754] simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device [ 0.515809] drop_monitor: Initializing network drop monitor service [ 0.515890] NET: Registered PF_INET6 protocol family [ 0.521945] Segment Routing with IPv6 [ 0.521955] In-situ OAM (IOAM) with IPv6 [ 0.521985] NET: Registered PF_PACKET protocol family [ 0.522041] Key type dns_resolver registered [ 0.522673] IPI shorthand broadcast: enabled [ 0.524447] sched_clock: Marking stable (524001386, 355168)->(526178362, -1821808) [ 0.524592] registered taskstats version 1 [ 0.524927] Loading compiled-in X.509 certificates [ 0.525283] Loaded X.509 cert 'Build time autogenerated kernel key: cf354f5902ec413d242316b698484ca79c45fa8a' [ 0.525561] Loaded X.509 cert 'Canonical Ltd. Live Patch Signing: 14df34d1a87cf37625abec039ef2bf521249b969' [ 0.525827] Loaded X.509 cert 'Canonical Ltd. Kernel Module Signing: 88f752e560a1e0737e31163a466ad7b70a850c19' [ 0.525828] blacklist: Loading compiled-in revocation X.509 certificates [ 0.525842] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing: 61482aa2830d0ab2ad5af10b7250da9033ddcef0' [ 0.525851] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2017): 242ade75ac4a15e50d50c84b0d45ff3eae707a03' [ 0.525860] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (ESM 2018): 365188c1d374d6b07c3c8f240f8ef722433d6a8b' [ 0.525871] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2019): c0746fd6c5da3ae827864651ad66ae47fe24b3e8' [ 0.525880] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v1): a8d54bbb3825cfb94fa13c9f8a594a195c107b8d' [ 0.525889] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v2): 4cf046892d6fd3c9a5b03f98d845f90851dc6a8c' [ 0.525899] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v3): 100437bb6de6e469b581e61cd66bce3ef4ed53af' [ 0.525908] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (Ubuntu Core 2019): c1d57b8f6b743f23ee41f4f7ee292f06eecadfb9' [ 0.529571] Key type .fscrypt registered [ 0.529573] Key type fscrypt-provisioning registered [ 0.534407] cryptd: max_cpu_qlen set to 1000 [ 0.536699] AVX2 version of gcm_enc/dec engaged. [ 0.536813] AES CTR mode by8 optimization enabled [ 0.547261] Key type encrypted registered [ 0.547266] AppArmor: AppArmor sha256 policy hashing enabled [ 0.547367] ima: No TPM chip found, activating TPM-bypass! [ 0.547371] Loading compiled-in module X.509 certificates [ 0.547771] Loaded X.509 cert 'Build time autogenerated kernel key: cf354f5902ec413d242316b698484ca79c45fa8a' [ 0.547774] ima: Allocated hash algorithm: sha256 [ 0.547783] ima: No architecture policies found [ 0.547800] evm: Initialising EVM extended attributes: [ 0.547802] evm: security.selinux [ 0.547803] evm: security.SMACK64 [ 0.547804] evm: security.SMACK64EXEC [ 0.547806] evm: security.SMACK64TRANSMUTE [ 0.547807] evm: security.SMACK64MMAP [ 0.547808] evm: security.apparmor [ 0.547809] evm: security.ima [ 0.547810] evm: security.capability [ 0.547811] evm: HMAC attrs: 0x1 [ 0.548132] PM: Magic number: 0:489:300 [ 0.552673] RAS: Correctable Errors collector initialized. [ 0.552736] clk: Disabling unused clocks [ 0.553671] Freeing unused decrypted memory: 2028K [ 0.554142] Freeing unused kernel image (initmem) memory: 4972K [ 0.554145] Write protecting the kernel read-only data: 36864k [ 0.554366] Freeing unused kernel image (rodata/data gap) memory: 36K [ 0.586441] x86/mm: Checked W+X mappings: passed, no W+X pages found. [ 0.586445] Run /init as init process [ 0.586446] with arguments: [ 0.586448] /init [ 0.586449] with environment: [ 0.586450] HOME=/ [ 0.586451] TERM=linux [ 0.586451] BOOT_IMAGE=/vmlinuz-6.8.0-38-generic [ 0.667482] virtio_net virtio1 ens18: renamed from eth0 [ 0.670047] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input4 [ 0.670387] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3 [ 0.676638] FDC 0 is a S82078B [ 0.687717] bochs-drm 0000:00:02.0: vgaarb: deactivate vga console [ 0.687803] [drm] Found bochs VGA, ID 0xb0c5. [ 0.687806] [drm] Framebuffer size 16384 kB @ 0xc0000000, mmio @ 0xc1787000. [ 0.688771] [drm] Found EDID data blob. [ 0.688869] [drm] Initialized bochs-drm 1.0.0 20130925 for 0000:00:02.0 on minor 0 [ 0.689396] fbcon: bochs-drmdrmfb (fb0) is primary device [ 0.689398] fbcon: Deferring console take-over [ 0.689400] bochs-drm 0000:00:02.0: [drm] fb0: bochs-drmdrmfb frame buffer device [ 0.734368] usb 1-1: new full-speed USB device number 2 using uhci_hcd [ 0.901367] usb 1-1: New USB device found, idVendor=0627, idProduct=0001, bcdDevice= 0.00 [ 0.901371] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=10 [ 0.901374] usb 1-1: Product: QEMU USB Tablet [ 0.901376] usb 1-1: Manufacturer: QEMU [ 0.901377] usb 1-1: SerialNumber: 28754-0000:00:01.2-1 [ 0.909145] hid: raw HID events driver (C) Jiri Kosina [ 0.914451] usbcore: registered new interface driver usbhid [ 0.914454] usbhid: USB HID core driver [ 0.915773] input: QEMU QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-1/1-1:1.0/0003:0627:0001.0001/input/input5 [ 0.915934] hid-generic 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Mouse [QEMU QEMU USB Tablet] on usb-0000:00:01.2-1/input0 [ 0.972358] raid6: avx512x4 gen() 47876 MB/s [ 0.989360] raid6: avx512x2 gen() 46297 MB/s [ 1.006361] raid6: avx512x1 gen() 41758 MB/s [ 1.023360] raid6: avx2x4 gen() 53690 MB/s [ 1.040360] raid6: avx2x2 gen() 50852 MB/s [ 1.057361] raid6: avx2x1 gen() 34000 MB/s [ 1.057362] raid6: using algorithm avx2x4 gen() 53690 MB/s [ 1.074361] raid6: .... xor() 5867 MB/s, rmw enabled [ 1.074362] raid6: using avx512x2 recovery algorithm [ 1.074999] xor: automatically using best checksumming function avx [ 1.075558] async_tx: api initialized (async) [ 1.155495] Btrfs loaded, zoned=yes, fsverity=yes [ 1.193937] fbcon: Taking over console [ 1.198696] EXT4-fs (dm-0): mounted filesystem 81c38a68-ddad-45a3-962f-846b17d90b9c ro with ordered data mode. Quota mode: none. [ 1.489965] Console: switching to colour frame buffer device 160x50 [ 1.640327] systemd[1]: Inserted module 'autofs4' [ 1.654873] systemd[1]: systemd 255.4-1ubuntu8.2 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified) [ 1.654876] systemd[1]: Detected virtualization kvm. [ 1.654888] systemd[1]: Detected architecture x86-64. [ 1.655527] systemd[1]: Hostname set to . [ 1.719610] systemd[1]: Configuration file /run/systemd/system/systemd-networkd-wait-online.service.d/10-netplan.conf is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway. [ 1.720972] systemd[1]: Configuration file /run/systemd/system/netplan-ovs-cleanup.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway. [ 1.771467] systemd[1]: Queued start job for default target graphical.target. [ 1.786270] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe. [ 1.786572] systemd[1]: Created slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck. [ 1.786756] systemd[1]: Created slice user.slice - User and Session Slice. [ 1.786793] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch. [ 1.786903] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point. [ 1.786913] systemd[1]: Expecting device dev-disk-by\x2duuid-0160\x2d2D18.device - /dev/disk/by-uuid/0160-2D18... [ 1.786917] systemd[1]: Expecting device dev-disk-by\x2duuid-8755e05f\x2dbc6e\x2d42db\x2db429\x2df9727bbaedaf.device - /dev/disk/by-uuid/8755e05f-bc6e-42db-b429-f9727bbaedaf... [ 1.786926] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes. [ 1.786939] systemd[1]: Reached target slices.target - Slice Units. [ 1.786945] systemd[1]: Reached target snapd.mounts-pre.target - Mounting snaps. [ 1.786950] systemd[1]: Reached target snapd.mounts.target - Mounted snaps. [ 1.786959] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes. [ 1.787006] systemd[1]: Listening on dm-event.socket - Device-mapper event daemon FIFOs. [ 1.787068] systemd[1]: Listening on lvm2-lvmpolld.socket - LVM2 poll daemon socket. [ 1.787124] systemd[1]: Listening on multipathd.socket - multipathd control socket. [ 1.787183] systemd[1]: Listening on syslog.socket - Syslog Socket. [ 1.787228] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket. [ 1.787254] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe. [ 1.787309] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log). [ 1.787381] systemd[1]: Listening on systemd-journald.socket - Journal Socket. [ 1.787458] systemd[1]: Listening on systemd-networkd.socket - Network Service Netlink Socket. [ 1.787476] systemd[1]: systemd-pcrextend.socket - TPM2 PCR Extension (Varlink) was skipped because of an unmet condition check (ConditionSecurity=measured-uki). [ 1.787547] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket. [ 1.787594] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket. [ 1.788365] systemd[1]: Mounting dev-hugepages.mount - Huge Pages File System... [ 1.788801] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System... [ 1.789247] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System... [ 1.789687] systemd[1]: Mounting sys-kernel-tracing.mount - Kernel Trace File System... [ 1.790693] systemd[1]: Starting systemd-journald.service - Journal Service... [ 1.791201] systemd[1]: Starting keyboard-setup.service - Set the console keyboard layout... [ 1.791673] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes... [ 1.792425] systemd[1]: Starting lvm2-monitor.service - Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling... [ 1.793513] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs... [ 1.794011] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod... [ 1.794483] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm... [ 1.794933] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore... [ 1.795428] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse... [ 1.795922] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop... [ 1.795946] systemd[1]: netplan-ovs-cleanup.service - OpenVSwitch configuration for cleanup was skipped because of an unmet condition check (ConditionFileIsExecutable=/usr/bin/ovs-vsctl). [ 1.796007] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fsck-root). [ 1.797286] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules... [ 1.797302] systemd[1]: systemd-pcrmachine.service - TPM2 PCR Machine ID Measurement was skipped because of an unmet condition check (ConditionSecurity=measured-uki). [ 1.797790] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems... [ 1.797818] systemd[1]: systemd-tpm2-setup-early.service - TPM2 SRK Setup (Early) was skipped because of an unmet condition check (ConditionSecurity=measured-uki). [ 1.798307] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices... [ 1.799058] systemd[1]: Mounted dev-hugepages.mount - Huge Pages File System. [ 1.799132] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System. [ 1.799189] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System. [ 1.799247] systemd[1]: Mounted sys-kernel-tracing.mount - Kernel Trace File System. [ 1.799405] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes. [ 1.799637] systemd[1]: modprobe@configfs.service: Deactivated successfully. [ 1.799740] systemd[1]: Finished modprobe@configfs.service - Load Kernel Module configfs. [ 1.799934] pstore: Using crash dump compression: deflate [ 1.799968] systemd[1]: modprobe@dm_mod.service: Deactivated successfully. [ 1.800068] systemd[1]: Finished modprobe@dm_mod.service - Load Kernel Module dm_mod. [ 1.800232] systemd[1]: modprobe@drm.service: Deactivated successfully. [ 1.800322] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm. [ 1.800564] systemd[1]: modprobe@fuse.service: Deactivated successfully. [ 1.800663] systemd[1]: Finished modprobe@fuse.service - Load Kernel Module fuse. [ 1.800829] systemd[1]: modprobe@loop.service: Deactivated successfully. [ 1.800924] systemd[1]: Finished modprobe@loop.service - Load Kernel Module loop. [ 1.801044] pstore: Registered efi_pstore as persistent store backend [ 1.801558] systemd[1]: Mounting sys-fs-fuse-connections.mount - FUSE Control File System... [ 1.802094] systemd[1]: Mounting sys-kernel-config.mount - Kernel Configuration File System... [ 1.802131] systemd[1]: systemd-repart.service - Repartition Root Disk was skipped because no trigger condition checks were met. [ 1.802735] systemd[1]: Starting systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully... [ 1.802910] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully. [ 1.803009] systemd[1]: Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore. [ 1.803742] systemd-journald[363]: Collecting audit messages is disabled. [ 1.805591] systemd[1]: Mounted sys-fs-fuse-connections.mount - FUSE Control File System. [ 1.805671] systemd[1]: Mounted sys-kernel-config.mount - Kernel Configuration File System. [ 1.811830] EXT4-fs (dm-0): re-mounted 81c38a68-ddad-45a3-962f-846b17d90b9c r/w. Quota mode: none. [ 1.812399] systemd[1]: Finished systemd-modules-load.service - Load Kernel Modules. [ 1.812589] systemd[1]: Finished systemd-remount-fs.service - Remount Root and Kernel File Systems. [ 1.813160] systemd[1]: Activating swap swap.img.swap - /swap.img... [ 1.813595] systemd[1]: Starting multipathd.service - Device-Mapper Multipath Device Controller... [ 1.814012] systemd[1]: systemd-hwdb-update.service - Rebuild Hardware Database was skipped because of an unmet condition check (ConditionNeedsUpdate=/etc). [ 1.814034] systemd[1]: systemd-pstore.service - Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore). [ 1.814507] systemd[1]: Starting systemd-random-seed.service - Load/Save OS Random Seed... [ 1.815904] systemd[1]: Starting systemd-sysctl.service - Apply Kernel Variables... [ 1.815919] systemd[1]: systemd-tpm2-setup.service - TPM2 SRK Setup was skipped because of an unmet condition check (ConditionSecurity=measured-uki). [ 1.818955] Adding 4194300k swap on /swap.img. Priority:-2 extents:5 across:4481020k [ 1.818993] systemd[1]: Activated swap swap.img.swap - /swap.img. [ 1.819030] systemd[1]: Reached target swap.target - Swaps. [ 1.820133] systemd[1]: Finished systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully. [ 1.820250] systemd[1]: systemd-sysusers.service - Create System Users was skipped because no trigger condition checks were met. [ 1.820844] systemd[1]: Starting systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev... [ 1.823852] systemd[1]: Started systemd-journald.service - Journal Service. [ 1.829998] systemd-journald[363]: Received client request to flush runtime journal. [ 1.841226] systemd-journald[363]: /var/log/journal/52892409f8ed4921a5ca2a73622451e1/system.journal: Journal file uses a different sequence number ID, rotating. [ 1.841233] systemd-journald[363]: Rotating system journal. [ 1.957575] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0 [ 1.966256] amdxdna: loading out-of-tree module taints kernel. [ 1.966262] amdxdna: module verification failed: signature and/or required key missing - tainting kernel [ 2.020926] amdxdna 0000:00:1b.0: aie2_init: Enable PASID failed, ret -19 [ 2.021424] amdxdna 0000:00:1b.0: amdxdna_probe: Hardware init failed, ret -19 [ 2.026295] kvm_amd: TSC scaling supported [ 2.026299] kvm_amd: Nested Virtualization enabled [ 2.026300] kvm_amd: Nested Paging enabled [ 2.026305] kvm_amd: Virtual VMLOAD VMSAVE supported [ 2.026305] kvm_amd: Virtual GIF supported [ 2.026306] kvm_amd: Virtual NMI enabled [ 2.026306] kvm_amd: LBR virtualization supported [ 2.103496] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:11.0/sound/card0/input6 [ 2.103554] input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:11.0/sound/card0/input7 [ 2.103602] input: HD-Audio Generic HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:11.0/sound/card0/input8 [ 2.103652] input: HD-Audio Generic HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:11.0/sound/card0/input9 [ 2.155359] workqueue: drm_fb_helper_damage_work hogged CPU for >10000us 4 times, consider switching to WQ_UNBOUND [ 3.366099] [drm] amdgpu kernel modesetting enabled. [ 3.366248] amdgpu: Virtual CRAT table created for CPU [ 3.366261] amdgpu: Topology: Add CPU node [ 3.380914] EXT4-fs (sda2): mounted filesystem 8755e05f-bc6e-42db-b429-f9727bbaedaf r/w with ordered data mode. Quota mode: none. [ 3.397869] [drm] initializing kernel modesetting (IP DISCOVERY 0x1002:0x1900 0x2014:0x8001 0xC5). [ 3.397891] [drm] register mmio base: 0xC1680000 [ 3.397892] [drm] register mmio size: 524288 [ 3.401561] [drm] add ip block number 0 [ 3.401565] [drm] add ip block number 1 [ 3.401568] [drm] add ip block number 2 [ 3.401569] [drm] add ip block number 3 [ 3.401571] [drm] add ip block number 4 [ 3.401573] [drm] add ip block number 5 [ 3.401575] [drm] add ip block number 6 [ 3.401577] [drm] add ip block number 7 [ 3.401579] [drm] add ip block number 8 [ 3.401580] [drm] add ip block number 9 [ 3.401582] [drm] add ip block number 10 [ 3.408950] [drm] BIOS signature incorrect 5b 69 [ 3.408962] amdgpu 0000:00:10.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0x4556 [ 3.414179] [drm] BIOS signature incorrect 5b 69 [ 3.414183] amdgpu 0000:00:10.0: amdgpu: Unable to locate a BIOS ROM [ 3.414202] amdgpu 0000:00:10.0: amdgpu: Fatal error during GPU init [ 3.414212] amdgpu 0000:00:10.0: amdgpu: amdgpu: finishing device. [ 3.417330] audit: type=1400 audit(1721427352.401:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name=4D6F6E676F444220436F6D70617373 pid=631 comm="apparmor_parser" [ 3.417535] audit: type=1400 audit(1721427352.402:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="QtWebEngineProcess" pid=632 comm="apparmor_parser" [ 3.417658] audit: type=1400 audit(1721427352.402:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="busybox" pid=635 comm="apparmor_parser" [ 3.417661] audit: type=1400 audit(1721427352.402:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="Discord" pid=630 comm="apparmor_parser" [ 3.417662] audit: type=1400 audit(1721427352.402:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="cam" pid=636 comm="apparmor_parser" [ 3.417687] audit: type=1400 audit(1721427352.402:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="brave" pid=633 comm="apparmor_parser" [ 3.417724] audit: type=1400 audit(1721427352.402:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="buildah" pid=634 comm="apparmor_parser" [ 3.417781] audit: type=1400 audit(1721427352.402:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="1password" pid=629 comm="apparmor_parser" [ 3.418815] audit: type=1400 audit(1721427352.403:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="ch-checkns" pid=640 comm="apparmor_parser" [ 3.453139] amdgpu: probe of 0000:00:10.0 failed with error -22 [ 3.479708] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 3.479939] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 3.480058] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600' [ 3.649606] NET: Registered PF_QIPCRTR protocol family [ 3.669086] loop0: detected capacity change from 0 to 8 [ 74.951272] systemd-journald[363]: /var/log/journal/52892409f8ed4921a5ca2a73622451e1/user-1000.journal: Journal file uses a different sequence number ID, rotating. [ 77.748944] xrt-smi[1777]: segfault at ffffffffffffffe0 ip 00005ec188dae13c sp 00007ffe9e9b38d0 error 5 in xrt-smi[5ec188cea000+1e6000] likely on CPU 2 (core 2, socket 0) [ 77.748952] Code: 24 d8 49 89 44 24 e0 4d 89 64 24 f0 4c 89 e7 eb ac 0f 1f 44 00 00 31 c0 e9 11 fe ff ff 90 48 8b 84 24 f8 00 00 00 48 8d 50 e0 <48> 8b 78 e0 48 89 94 24 f8 00 00 00 48 8d 50 f0 48 39 d7 74 0d 48


dmesq important  summary

[ 2.020926] amdxdna 0000:00:1b.0: aie2_init: Enable PASID failed, ret -19 [ 2.021424] amdxdna 0000:00:1b.0: amdxdna_probe: Hardware init failed, ret -19

[ 3.414183] amdgpu 0000:00:10.0: amdgpu: Unable to locate a BIOS ROM [ 3.414202] amdgpu 0000:00:10.0: amdgpu: Fatal error during GPU init

[ 77.748944] xrt-smi[1777]: segfault at ffffffffffffffe0 ip 00005ec188dae13c sp 00007ffe9e9b38d0 error 5 in xrt-smi[5ec188cea000+1e6000] likely on CPU 2 (core 2, socket 0) [ 77.748952] Code: 24 d8 49 89 44 24 e0 4d 89 64 24 f0 4c 89 e7 eb ac 0f 1f 44 00 00 31 c0 e9 11 fe ff ff 90 48 8b 84 24 f8 00 00 00 48 8d 50 e0 <48> 8b 78 e0 48 89 94 24 f8 00 00 00 48 8d 50 f0 48 39 d7 74 0d 48


aie2_init: Enable PASID failed i have no idea to solve this,maybe @maxzhen  says it need to do something to make workaround
sashakeel commented 1 month ago

Any update on this? I have exactly the same issue...

joebnb commented 1 month ago

Any update on this? I have exactly the same issue...

no new updates. it's likely the weekend over there, so they will probably discuss and respond on Monday.

sashakeel commented 1 month ago

Good day,

I resolved the "no such device with index 0" issue by using Linux kernel version 6.10-rc4 instead of v6.8.0 or v6.10. You can download the v6.10-rc4 mainline kernel from here. Ensure your system is updated to this kernel version before installing the xdna-driver.

If you are manually building the Linux kernel as per the instructions in the Readme.md, use the corresponding source code: v6.10-rc4.

Please let me know if there is anything else I can assist you with.

joebnb commented 1 month ago

./opt/xilinx/xrt/amdxdna/dkms_driver.sh --install

thanks for share your solution, i still have issues using the method you provided,it's seems this error was being resolved

[    2.020926] amdxdna 0000:00:1b.0: aie2_init: Enable PASID failed, ret -19
[    2.021424] amdxdna 0000:00:1b.0: amdxdna_probe: Hardware init failed, ret -19

but this are still exist

dmesg
[    3.426926] [drm] initializing kernel modesetting (IP DISCOVERY 0x1002:0x1900 0x2014:0x8001 0xC5).
[    3.426951] [drm] register mmio base: 0xC1680000
[    3.426953] [drm] register mmio size: 524288
[    3.430949] [drm] add ip block number 0 <soc21_common>
[    3.430952] [drm] add ip block number 1 <gmc_v11_0>
[    3.430955] [drm] add ip block number 2 <ih_v6_0>
[    3.430956] [drm] add ip block number 3 <psp>
[    3.430958] [drm] add ip block number 4 <smu>
[    3.430960] [drm] add ip block number 5 <dm>
[    3.430962] [drm] add ip block number 6 <gfx_v11_0>
[    3.430964] [drm] add ip block number 7 <sdma_v6_0>
[    3.430966] [drm] add ip block number 8 <vcn_v4_0>
[    3.430968] [drm] add ip block number 9 <jpeg_v4_0>
[    3.430969] [drm] add ip block number 10 <mes_v11_0>
[    3.431234] audit: type=1400 audit(1721702364.486:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="1password" pid=640 comm="apparmor_parser"
[    3.431271] audit: type=1400 audit(1721702364.486:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="QtWebEngineProcess" pid=643 comm="apparmor_parser"
[    3.431322] audit: type=1400 audit(1721702364.486:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="brave" pid=644 comm="apparmor_parser"
[    3.431368] audit: type=1400 audit(1721702364.487:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="busybox" pid=646 comm="apparmor_parser"
[    3.431400] audit: type=1400 audit(1721702364.487:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name=4D6F6E676F444220436F6D70617373 pid=642 comm="apparmor_parser"
[    3.431443] audit: type=1400 audit(1721702364.487:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="Discord" pid=641 comm="apparmor_parser"
[    3.431484] audit: type=1400 audit(1721702364.487:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="cam" pid=647 comm="apparmor_parser"
[    3.431641] audit: type=1400 audit(1721702364.487:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="buildah" pid=645 comm="apparmor_parser"
[    3.432989] audit: type=1400 audit(1721702364.488:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="ch-checkns" pid=649 comm="apparmor_parser"
[    3.438914] [drm] BIOS signature incorrect 5b 69
[    3.438936] amdgpu 0000:00:10.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0x4556
[    3.444225] [drm] BIOS signature incorrect 5b 69
[    3.444228] amdgpu 0000:00:10.0: amdgpu: Unable to locate a BIOS ROM
[    3.444248] amdgpu 0000:00:10.0: amdgpu: Fatal error during GPU init
[    3.444259] amdgpu 0000:00:10.0: amdgpu: amdgpu: finishing device.
[    3.480438] amdgpu 0000:00:10.0: probe with driver amdgpu failed with error -22
[    3.485681] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.485881] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.485971] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[    3.677497] NET: Registered PF_QIPCRTR protocol family
[    3.703423] loop0: detected capacity change from 0 to 8

this is VM system information

uname -a
Linux tkai 6.10.0-061000rc4-generic #202406161734 SMP PREEMPT_DYNAMIC Sun Jun 16 21:47:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

sudo dmesg | grep iommu
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.10.0-061000rc4-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet amd_iommu=on iommu=pt video=efifb:off
[    0.010372] Kernel command line: BOOT_IMAGE=/vmlinuz-6.10.0-061000rc4-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet amd_iommu=on iommu=pt video=efifb:off
[    0.175135] iommu: Default domain type: Passthrough (set via kernel command line)

 ./xdna-driver/xrt/build/Release/opt/xilinx/xrt/bin/xrt-smi examine
System Configuration
  OS Name              : Linux
  Release              : 6.10.0-061000rc4-generic
  Machine              : x86_64
  CPU Cores            : 8
  Memory               : 7934 MB
  Distribution         : Ubuntu 24.04 LTS
  GLIBC                : 2.39
  Model                : Standard PC (i440FX + PIIX, 1996)
  BIOS vendor          : EFI Development Kit II / OVMF
  BIOS version         : 3.20230228-4

XRT
  Version              : 2.18.0
  Branch               : HEAD
  Hash                 : 54b1a0335ef517415d17206d30365cf4a2c380d0
  Hash Date            : 2024-07-23 01:52:44
  xocl                 : unknown, unknown
  xclmgmt              : unknown, unknown
WARNING: xclmgmt version is unknown. Is xclmgmt driver loaded? Or is MSD/MPD running?

Devices present
  0 devices found

i install 6.10-rc4 kernel on vm,the host is still 6.8,because host is not ubuntu, i'm not sure did is virtualized environment not supported.did you you also using xdna in a VM?

if you are running under a VM,could you share your pci devices? i would like to check if there is some issue with my pci configuration.just lspci

in my pci there are two graphic card one is virtualized by VM other is passthrogut AMD

00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
00:10.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 (rev c5)

btw:i also use make -jnprocbindeb-pkg in git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git this repo trying to build kernel but get this,seems some configuration is error.

  LD [M]  arch/x86/kvm/kvm-amd.o
  CC [M]  arch/x86/kernel/cpuid.o
  AR      arch/x86/kernel/built-in.a
  AR      arch/x86/built-in.a
make[4]: *** [Makefile:1934: .] Error 2
make[3]: *** [debian/rules:74: build-arch] Error 2
dpkg-buildpackage: error: make -f debian/rules binary subprocess returned exit status 2
make[2]: *** [scripts/Makefile.package:121: bindeb-pkg] Error 2
make[1]: *** [/home/never/linux/Makefile:1555: bindeb-pkg] Error 2
make: *** [Makefile:240: __sub-make] Error 2
mamin506 commented 1 month ago

@joebnb , "aie2_init: Enable PASID failed, ret -19" means iommu_dev_enable_feature() failed. This is the API of iommu module. The issue here is that in a VM, there is no virtual IOMMU to support PASID. Supporting PASID in IOMMU in VM is out of scope of this repo. But we will be happy to follow up once IOMMU supports PASID in a VM.

Can you please try test XDNA driver in a bare metal machine?

joebnb commented 1 month ago

@joebnb , "aie2_init: Enable PASID failed, ret -19" means iommu_dev_enable_feature() failed. This is the API of iommu module. The issue here is that in a VM, there is no virtual IOMMU to support PASID. Supporting PASID in IOMMU in VM is out of scope of this repo. But we will be happy to follow up once IOMMU supports PASID in a VM.

Can you please try test XDNA driver in a bare metal machine?

when using @sashakeel suggest,the pasid error seems being fixed,but there still have some error,would you please explain what is amd gpu need locate a BIOS(is this is motherboard BIOS?),is this error caused by the system have 2 pci vga device?

[    3.438914] [drm] BIOS signature incorrect 5b 69
[    3.438936] amdgpu 0000:00:10.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0x4556
[    3.444225] [drm] BIOS signature incorrect 5b 69
[    3.444228] amdgpu 0000:00:10.0: amdgpu: Unable to locate a BIOS ROM
[    3.444248] amdgpu 0000:00:10.0: amdgpu: Fatal error during GPU init
[    3.444259] amdgpu 0000:00:10.0: amdgpu: amdgpu: finishing device.
[    3.480438] amdgpu 0000:00:10.0: probe with driver amdgpu failed with error -22
sashakeel commented 1 month ago

@joebnb, regarding your question

did you also using xdna in a VM?

No, I am using it on Bare Metal Machine.

joebnb commented 1 month ago

ok,seems xdna driver not support VM environment,maybe i should close this issue and create new one to clearify question

joebnb commented 1 month ago

after a reinstall OS, kernel and re compile driver on a VM, strict follow amd installation readme still

user@vm:~$ uname -a
Linux tkai 6.10.0-061000rc4-generic #202406161734 SMP PREEMPT_DYNAMIC Sun Jun 16 21:47:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

user@vm:~$ lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
00:05.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:10.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 (rev c5)
00:11.0 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
00:12.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:1b.0 Signal processing controller: Advanced Micro Devices, Inc. [AMD] AMD IPU Device
00:1e.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:1f.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
01:01.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI

user@vm:~$ sudo dmesg | grep -E 'xdna|amdgpu|xrt'
[    1.953156] amdxdna: loading out-of-tree module taints kernel.
[    1.953161] amdxdna: module verification failed: signature and/or required key missing - tainting kernel
[    2.005615] amdxdna 0000:00:1b.0: aie2_init: Enable PASID failed, ret -19
[    2.005970] amdxdna 0000:00:1b.0: amdxdna_probe: Hardware init failed, ret -19
[    3.401012] [drm] amdgpu kernel modesetting enabled.
[    3.401157] amdgpu: Virtual CRAT table created for CPU
[    3.401183] amdgpu: Topology: Add CPU node
[    3.446697] amdgpu 0000:00:10.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0x4556
[    3.451895] amdgpu 0000:00:10.0: amdgpu: Unable to locate a BIOS ROM
[    3.452195] amdgpu 0000:00:10.0: amdgpu: Fatal error during GPU init
[    3.452451] amdgpu 0000:00:10.0: amdgpu: amdgpu: finishing device.
[    3.486359] amdgpu 0000:00:10.0: probe with driver amdgpu failed with error -22
[   82.380202] xrt-smi[1233]: segfault at ffffffffffffffe0 ip 0000714aa2f632d4 sp 00007ffd440ef708 error 5 in libstdc++.so.6.0.33[1632d4,714aa2e9d000+140000] likely on CPU 7 (core 7, socket 0)

user@vm:~$ ./xdna-driver/xrt/build/Debug/opt/xilinx/xrt/bin/xrt-smi examine
System Configuration
  OS Name              : Linux
  Release              : 6.10.0-061000rc4-generic
  Machine              : x86_64
  CPU Cores            : 8
  Memory               : 7933 MB
  Distribution         : Ubuntu 24.04 LTS
  GLIBC                : 2.39
  Model                : Standard PC (i440FX + PIIX, 1996)
  BIOS vendor          : Proxmox distribution of EDK II
  BIOS version         : 4.2023.08-4

XRT
  Version              : 2.18.0
  Branch               : HEAD
  Hash                 : 54b1a0335ef517415d17206d30365cf4a2c380d0
  Hash Date            : 2024-07-26 14:28:49
  xocl                 : unknown, unknown
  xclmgmt              : unknown, unknown
WARNING: xclmgmt version is unknown. Is xclmgmt driver loaded? Or is MSD/MPD running?

Devices present
  0 devices found