Graphic Card Does not Work

I use a SWFT 210 Radeon RX 6600 CORE Gaming Graphics Card for HiFive Unmatched Rev B board. However, nothing is outputted. I looked at the log and found it was not initialized correctly. The related logs are attached as follows:

FreedomUSDK 2021.03.01 unmatched ttySIF0

unmatched login: [ 94.654709] rcu: INFO: rcu_sched self-detected stall on CPU
*[ 94.659534] rcu: 0-…: (5249 ticks this GP) idle=ece/1/0x4000000000000002 softirq=2561/2561 fqs=2067 *
[ 94.669000] (t=5250 jiffies g=2213 q=27198)
[ 94.673254] Task dump for CPU 0:
[ 94.676468] task:systemd-udevd state:R running task stack: 0 pid: 156 ppid: 137 flags:0x00000008
[ 94.686369] Call Trace:
[ 94.688802] [] walk_stackframe+0x0/0xaa
[ 95.254742] rcu: INFO: rcu_sched detected expedited stalls on CPUs/tasks: { 0-… } 5398 jiffies s: 125 root: 0x1/.
[ 95.264529] rcu: blocking rcu_node structures:
[ 95.268938] Task dump for CPU 0:
[ 95.272143] task:systemd-udevd state:R running task stack: 0 pid: 156 ppid: 137 flags:0x00000008
[ 95.282063] Call Trace:
[ 95.284475] [] __schedule+0x1cc/0x56c
[ 98.290604] macb 10090000.ethernet eth0: PHY [10090000.ethernet-ffffffff:00] driver [Microsemi VSC8541 SyncE] (irq=POLL)
[ 98.300803] macb 10090000.ethernet eth0: configuring for phy/gmii link mode
[ 99.378780] iwlwifi 0000:05:00.0: SecBoot CPU1 Status: 0x55a2, CPU2 Status: 0x3
[ 99.385400] iwlwifi 0000:05:00.0: UMAC PC: 0x804778b4
[ 99.390458] iwlwifi 0000:05:00.0: LMAC PC: 0x4f0e12
[ 99.395283] iwlwifi 0000:05:00.0: WRT: Collecting data: ini trigger 13 fired.
[ 99.403510] iwlwifi 0000:05:00.0: Start IWL Error Log Dump:
[ 99.408346] iwlwifi 0000:05:00.0: Status: 0x00000000, count: 6
[ 99.414171] iwlwifi 0000:05:00.0: Loaded firmware version: 59.601f3a66.0 cc-a0-59.ucode
*[ 99.422164] iwlwifi 0000:05:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN *
[ 99.429105] iwlwifi 0000:05:00.0: 0x002022F0 | trm_hw_status0
[ 99.434848] iwlwifi 0000:05:00.0: 0x00000000 | trm_hw_status1
[ 99.440600] iwlwifi 0000:05:00.0: 0x004FAA36 | branchlink2
[ 99.446061] iwlwifi 0000:05:00.0: 0x004F0E12 | interruptlink1
[ 99.451788] iwlwifi 0000:05:00.0: 0x004F0E12 | interruptlink2
[ 99.457520] iwlwifi 0000:05:00.0: 0x004F966E | data1
[ 99.462472] iwlwifi 0000:05:00.0: 0x01000000 | data2
[ 99.467416] iwlwifi 0000:05:00.0: 0x00000000 | data3
[ 99.472369] iwlwifi 0000:05:00.0: 0x00000000 | beacon time
[ 99.477845] iwlwifi 0000:05:00.0: 0x000F9904 | tsf low
[ 99.482964] iwlwifi 0000:05:00.0: 0x00000000 | tsf hi
[ 99.488002] iwlwifi 0000:05:00.0: 0x00000000 | time gp1
[ 99.493217] iwlwifi 0000:05:00.0: 0x000FEF99 | time gp2
[ 99.498431] iwlwifi 0000:05:00.0: 0x00000001 | uCode revision type
[ 99.504599] iwlwifi 0000:05:00.0: 0x0000003B | uCode version major
[ 99.510762] iwlwifi 0000:05:00.0: 0x601F3A66 | uCode version minor
[ 99.516932] iwlwifi 0000:05:00.0: 0x00000340 | hw version
[ 99.522317] iwlwifi 0000:05:00.0: 0x00C89000 | board version
[ 99.527960] iwlwifi 0000:05:00.0: 0x8005F502 | hcmd
[ 99.532821] iwlwifi 0000:05:00.0: 0x00020000 | isr0
[ 99.537688] iwlwifi 0000:05:00.0: 0x00000000 | isr1
[ 99.542555] iwlwifi 0000:05:00.0: 0x08F00002 | isr2
[ 99.547414] iwlwifi 0000:05:00.0: 0x00C0001C | isr3
[ 99.552280] iwlwifi 0000:05:00.0: 0x00000000 | isr4
[ 99.557145] iwlwifi 0000:05:00.0: 0x00000000 | last cmd Id
[ 99.562620] iwlwifi 0000:05:00.0: 0x004F966E | wait_event
[ 99.568012] iwlwifi 0000:05:00.0: 0x00000000 | l2p_control
[ 99.573482] iwlwifi 0000:05:00.0: 0x00000020 | l2p_duration
[ 99.579033] iwlwifi 0000:05:00.0: 0x00000000 | l2p_mhvalid
[ 99.584504] iwlwifi 0000:05:00.0: 0x00000000 | l2p_addr_match
[ 99.590241] iwlwifi 0000:05:00.0: 0x00000009 | lmpm_pmg_sel
[ 99.595797] iwlwifi 0000:05:00.0: 0x00000000 | timestamp
[ 99.601097] iwlwifi 0000:05:00.0: 0x0000F820 | flow_handler
[ 99.606695] iwlwifi 0000:05:00.0: Start IWL Error Log Dump:
[ 99.612214] iwlwifi 0000:05:00.0: Status: 0x00000000, count: 7
[ 99.618038] iwlwifi 0000:05:00.0: 0x20000066 | NMI_INTERRUPT_HOST
[ 99.624111] iwlwifi 0000:05:00.0: 0x00000000 | umac branchlink1
[ 99.630021] iwlwifi 0000:05:00.0: 0x804568FC | umac branchlink2
[ 99.635924] iwlwifi 0000:05:00.0: 0x804778B4 | umac interruptlink1
[ 99.642094] iwlwifi 0000:05:00.0: 0x804778B4 | umac interruptlink2
[ 99.648259] iwlwifi 0000:05:00.0: 0x01000000 | umac data1
[ 99.653643] iwlwifi 0000:05:00.0: 0x804778B4 | umac data2
[ 99.659026] iwlwifi 0000:05:00.0: 0x00000000 | umac data3
[ 99.664411] iwlwifi 0000:05:00.0: 0x0000003B | umac major
[ 99.669798] iwlwifi 0000:05:00.0: 0x601F3A66 | umac minor
[ 99.675179] iwlwifi 0000:05:00.0: 0x000FEF97 | frame pointer
[ 99.680831] iwlwifi 0000:05:00.0: 0xC0886274 | stack pointer
[ 99.686480] iwlwifi 0000:05:00.0: 0x00000000 | last host cmd
[ 99.692134] iwlwifi 0000:05:00.0: 0x00000000 | isr status reg
[ 99.697871] iwlwifi 0000:05:00.0: Fseq Registers:
[ 99.702511] iwlwifi 0000:05:00.0: 0x60000000 | FSEQ_ERROR_CODE
[ 99.708332] iwlwifi 0000:05:00.0: 0x80290021 | FSEQ_TOP_INIT_VERSION
[ 99.714673] iwlwifi 0000:05:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[ 99.721186] iwlwifi 0000:05:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[ 99.727093] iwlwifi 0000:05:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[ 99.733693] iwlwifi 0000:05:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[ 99.739600] iwlwifi 0000:05:00.0: 0x00100530 | FSEQ_CNVI_ID
[ 99.745159] iwlwifi 0000:05:00.0: 0x00000532 | FSEQ_CNVR_ID
[ 99.750717] iwlwifi 0000:05:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[ 99.756801] iwlwifi 0000:05:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[ 99.762879] iwlwifi 0000:05:00.0: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[ 99.770696] iwlwifi 0000:05:00.0: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[ 99.779043] iwlwifi 0000:05:00.0: WRT: Collecting data: ini trigger 4 fired.
[ 99.785926] ieee80211 phy0: Hardware restart was requested
[ 99.791411] iwlwifi 0000:05:00.0: Failed to start RT ucode: -110
[ 99.797407] iwlwifi 0000:05:00.0: Failed to start RT ucode: -110
[ 100.343611] iwlwifi 0000:05:00.0: WRT: Failed to dump region: id=4, type=5
[ 100.349815] iwlwifi 0000:05:00.0: WRT: Failed to dump region: id=6, type=5
[ 103.953572] [drm] amdgpu kernel modesetting enabled.
[ 103.958662] amdgpu 0000:09:00.0: enabling device (0000 → 0003)
[ 103.963877] [drm] initializing kernel modesetting (DIMGREY_CAVEFISH 0x1002:0x73FF 0x1EAE:0x6505 0xC7).
[ 103.973196] amdgpu 0000:09:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
[ 103.981285] [drm] register mmio base: 0x60500000
[ 103.985821] [drm] register mmio size: 1048576
[ 103.990160] [drm] PCI I/O BAR is not found.
[ 103.994346] [drm] PCIE atomic ops is not supported
[ 104.000953] [drm] add ip block number 0 <nv_common>
[ 104.005078] [drm] add ip block number 1 <gmc_v10_0>
[ 104.009950] [drm] add ip block number 2 <navi10_ih>
[ 104.014806] [drm] add ip block number 3
[ 104.019147] [drm] add ip block number 4
[ 104.023492] [drm] add ip block number 5 <gfx_v10_0>
[ 104.028353] [drm] add ip block number 6 <sdma_v5_2>
[ 104.033219] [drm] add ip block number 7 <vcn_v3_0>
[ 104.037994] [drm] add ip block number 8 <jpeg_v3_0>
[ 104.064315] amdgpu 0000:09:00.0: amdgpu: Fetched VBIOS from ROM BAR
[ 104.072892] amdgpu: ATOM BIOS: 113-23L86HMD2-D02
[ 104.076913] [drm] VCN(0) decode is enabled in VM mode
[ 104.081798] [drm] VCN(0) encode is enabled in VM mode
[ 104.086836] [drm] JPEG decode is enabled in VM mode
[ 104.091738] [drm] GPU posting now…
[ 104.095427] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
[ 104.103892] amdgpu 0000:09:00.0: BAR 2: releasing [mem 0x2010000000-0x20101fffff 64bit pref]
[ 104.112248] amdgpu 0000:09:00.0: BAR 0: releasing [mem 0x2000000000-0x200fffffff 64bit pref]
[ 104.120694] pcieport 0000:08:00.0: BAR 15: releasing [mem 0x2000000000-0x2017ffffff 64bit pref]
[ 104.129313] pcieport 0000:07:00.0: BAR 15: releasing [mem 0x2000000000-0x2017ffffff 64bit pref]
[ 104.137990] pcieport 0000:02:08.0: BAR 15: releasing [mem 0x2000000000-0x2017ffffff 64bit pref]
[ 104.146676] pcieport 0000:01:00.0: BAR 15: releasing [mem 0x2000000000-0x2017ffffff 64bit pref]
[ 104.155360] pcieport 0000:00:00.0: BAR 15: releasing [mem 0x2000000000-0x2017ffffff 64bit pref]
[ 104.164142] pcieport 0000:00:00.0: BAR 15: assigned [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.172651] pcieport 0000:01:00.0: BAR 15: assigned [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.181250] pcieport 0000:02:08.0: BAR 15: assigned [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.189851] pcieport 0000:07:00.0: BAR 15: assigned [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.198445] pcieport 0000:08:00.0: BAR 15: assigned [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.207044] amdgpu 0000:09:00.0: BAR 0: assigned [mem 0x2000000000-0x21ffffffff 64bit pref]
[ 104.215404] amdgpu 0000:09:00.0: BAR 2: assigned [mem 0x2200000000-0x22001fffff 64bit pref]
[ 104.223741] pcieport 0000:00:00.0: PCI bridge to [bus 01-09]
[ 104.229365] pcieport 0000:00:00.0: bridge window [io 0x0000-0x0fff]
[ 104.235878] pcieport 0000:00:00.0: bridge window [mem 0x60200000-0x607fffff]
[ 104.243086] pcieport 0000:00:00.0: bridge window [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.251600] pcieport 0000:01:00.0: PCI bridge to [bus 02-09]
[ 104.257245] pcieport 0000:01:00.0: bridge window [io 0x0000-0x0fff]
[ 104.263763] pcieport 0000:01:00.0: bridge window [mem 0x60200000-0x607fffff]
[ 104.270970] pcieport 0000:01:00.0: bridge window [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.279486] pcieport 0000:02:08.0: PCI bridge to [bus 07-09]
[ 104.285127] pcieport 0000:02:08.0: bridge window [io 0x0000-0x0fff]
[ 104.291644] pcieport 0000:02:08.0: bridge window [mem 0x60500000-0x607fffff]
[ 104.298851] pcieport 0000:02:08.0: bridge window [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.307368] pcieport 0000:07:00.0: PCI bridge to [bus 08-09]
[ 104.313013] pcieport 0000:07:00.0: bridge window [io 0x0000-0x0fff]
[ 104.319531] pcieport 0000:07:00.0: bridge window [mem 0x60500000-0x606fffff]
[ 104.326737] pcieport 0000:07:00.0: bridge window [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.335254] pcieport 0000:08:00.0: PCI bridge to [bus 09]
[ 104.340633] pcieport 0000:08:00.0: bridge window [io 0x0000-0x0fff]
[ 104.347152] pcieport 0000:08:00.0: bridge window [mem 0x60500000-0x606fffff]
[ 104.354358] pcieport 0000:08:00.0: bridge window [mem 0x2000000000-0x22ffffffff 64bit pref]
[ 104.362906] amdgpu 0000:09:00.0: amdgpu: VRAM: 8176M 0x0000008000000000 - 0x00000081FEFFFFFF (8176M used)
[ 104.372418] amdgpu 0000:09:00.0: amdgpu: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[ 104.380756] amdgpu 0000:09:00.0: amdgpu: AGP: 267894784M 0x0000008400000000 - 0x0000FFFFFFFFFFFF
[ 104.389536] [drm] Detected VRAM RAM=8176M, BAR=8192M
[ 104.394478] [drm] RAM width 128bits GDDR6
[ 104.398840] [TTM] Zone kernel: Available graphics memory: 8211620 KiB
[ 104.405002] [TTM] Zone dma32: Available graphics memory: 2097152 KiB
[ 104.487266] [drm] amdgpu: 8176M of VRAM memory ready
[ 104.491542] [drm] amdgpu: 8176M of GTT memory ready.
[ 104.496471] [drm] GART: num cpu pages 131072, num gpu pages 131072
[ 104.502820] [drm] PCIE GART of 512M enabled (table at 0x0000008000000000).
[ 104.515858] ------------[ cut here ]------------
[ 104.519739] WARNING: CPU: 3 PID: 558 at drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c:258 iwl_mvm_mac_ctxt_init+0x16a/0x192 [iwlmvm]
[ 104.549598] Modules linked in: rfcomm amdgpu(+) bnep iwlmvm mac80211 libarc4 btusb iwlwifi btrtl btbcm btintel bluetooth cfg80211 snd_hda_codec_hdmi mfd_core snd_hda_intel gpu_sched snd_intel_dspcfg snd_hda_codec backlight drm_ttm_helper ttm snd_hda_core ecdh_generic ecc fuse
[ 104.574036] CPU: 3 PID: 558 Comm: NetworkManager Not tainted 5.11.10 #1
[ 104.580607] epc: ffffffdf84f82bd8 ra : ffffffdf84f82ae6 sp : ffffffe087dd31b0
[ 104.587726] gp : ffffffe000e56510 tp : ffffffe083726180 t0 : ffffffe087c292d0
[ 104.594935] t1 : 0000000000000000 t2 : 0000000000000000 s0 : ffffffe087dd3220
[ 104.602147] s1 : ffffffe08251b308 a0 : ffffffe08d8a86c0 a1 : 0000000000000003
[ 104.609357] a2 : ffffffdf84f817c6 a3 : ffffffe087dd31b0 a4 : ffffffe08251b700
[ 104.616577] a5 : 0000000000000001 a6 : 0000000000000006 a7 : 0000000000010e36
[ 104.623773] s2 : ffffffe08d8a9de8 s3 : ffffffe000e5a0a8 s4 : ffffffe08251b5e8
[ 104.630988] s5 : ffffffe08d8a9e18 s6 : ffffffe08d8a86c0 s7 : ffffffe08251b5e8
[ 104.638190] s8 : 0000000000000000 s9 : ffffffdf84120888 s10: ffffffe087dd3710
[ 104.645401] s11: 0000000000000000 t3 : bdce7bd103067000 t4 : 0000000000000014
[ 104.652610] t5 : 0000000000000000 t6 : ffffffe08e16144c
[ 104.657907] status: 0000000200000120 badaddr: 0000000000000004 cause: 0000000000000003
[ 104.665811] —[ end trace 54b97ddf8e413b81 ]—
[ 104.676563] amdgpu 0000:09:00.0: Direct firmware load for amdgpu/dimgrey_cavefish_sos.bin failed with error -2
[ 104.685853] amdgpu 0000:09:00.0: amdgpu: failed to init sos firmware
[ 104.692171] [drm:psp_sw_init [amdgpu]] ERROR Failed to load psp firmware!
[ 104.829768] [drm:amdgpu_device_init [amdgpu]] ERROR sw_init of IP block failed -2
[ 104.966901] amdgpu 0000:09:00.0: amdgpu: amdgpu_device_ip_init failed
[ 104.973409] amdgpu 0000:09:00.0: amdgpu: Fatal error during GPU init
[ 104.979840] amdgpu: probe of 0000:09:00.0 failed with error -2

FreedomUSDK 2021.03.01 unmatched ttySIF0

unmatched login:

Could anyone tell me how to fix this problem? Thanks!

You need a patch series that was merged in Linux version 6.10 in order to use RX 6000-series graphics cards with a RISC-V CPU.

https://lore.kernel.org/linux-riscv/20240329072441.591471-1-samuel.holland@sifive.com/

1 Like

Thanks for this helpful information!

Could you provide some hints on how to patch this on the existing system on the SD card? Do I need to rebuild the whole system? Thanks!