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

Re: Help amdgpu kernel 6.4 sifive unmatched



Hi Bo,

Thanks for your feedback! I forgot to mention the model of my video card 😅
It is a Radeon RX 570. The system output is:

´´´
root@unmatched:/# lspci |grep -i amd
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev ef)
07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
´´´

´´´
root@unmatched:/# lshw -c video
  *-display UNCLAIMED      
       description: VGA compatible controller
       product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:07:00.0
       version: ef
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller cap_list
       configuration: latency=0
       resources: iomemory:200-1ff iomemory:200-1ff memory:2000000000-200fffffff memory:2010000000-20101fffff ioport:1000(size=256) memory:60500000-6053ffff memory:60540000-6055ffff
´´´

´´´
root@unmatched:/# lsmod |grep amd
amdgpu              36290560  0
gpu_sched             327680  1 amdgpu
drm_buddy             114688  1 amdgpu
drm_suballoc_helper    77824  1 amdgpu
i2c_algo_bit           49152  1 amdgpu
drm_display_helper    827392  1 amdgpu
drm_kms_helper       1007616  2 drm_display_helper,amdgpu
drm_ttm_helper         20480  1 amdgpu
ttm                   552960  2 amdgpu,drm_ttm_helper
drm                  3248128  8 gpu_sched,drm_kms_helper,drm_suballoc_helper,drm_display_helper,drm_buddy,amdgpu,drm_ttm_helper,ttm
´´´

I also for experiment removed xserver-xorg-video-radeon and xserver-xorg-video-ati in order to only have xserver-xorg-video-amdgpu installed. And removed all kernel flags but

´´´
root@unmatched:/# cat /proc/cmdline
root=/dev/nvme0n1p4 rw quiet console=ttySIF0,115200 net.ifnames=0
´´´

Thanks! I'll continue trying options  👍

Regards,
Edson


El jue, 12 oct 2023 a la(s) 09:45, Bo YU (tsu.yubo@gmail.com) escribió:
Hi,

On Thu, Oct 12, 2023 at 11:37 AM Edson Contreras Cárdenas
<edrecon@gmail.com> wrote:
>
> Hi gurus! :)
>
> I was following this guide:
>
> https://wiki.debian.org/InstallingDebianOn/SiFive/HiFiveUnmatched
>
> And I succeeded installing debian on my Unmatched board booting from nand and with a nvme drive. However, I cannot make the amdgpu driver work.
>
> I have installed firmware-amd-graphics, firmware-linux, firmware-linux-free and firmware-linux-nonfree with no luck.
>
What is your graphics card? my is  AMDnRadeon HD 5000/6000/7350/8350
Series, so one firmware-amd-graphics maybe can work here.

> After changing kernel parameters in several combinations I succeeded to have it "working" but not twice in a row. Always the "second time" didn't work. Anyway... when it worked, I couldn't interact with keyboard or mouse, but I had X.
>
> Almost every time that I boot, dmesg shows the following:
>
> https://pastebin.com/RWqBdB8h

yeah, I have such dmesg after rebooting every time. But once it passed
the complaint, the whole system worked normal.
The log maybe from power issue with the graphics card.

>
> My idea is to help to repair as many errors as possible. I like the RISC-V architecture, and I want to run Debian latest here.
>
> I typically use the following kernel parameters:
>
> root=/dev/nvme0n1p4 rw rootwait console=ttySIF0,115200 earlycon net.ifnames=0 radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1

In fact, the wiki you followed I think was some obscure. I am not sure
your u-boot-* file was put where. But
I remembered if putting them on SD and nvme separately and this caused
maintainance trouble: after upgrading kernel
need to copy from SD to nvme. So I just simple here: on nvme, there is
only rootfs; on sd card, there is only
u-boot-* file. it works! But if you enable to boot from onboard SPI
Flash as the wiki, you do not need sd at all maybe.

Here is my pre-built Unmatched Debian image(hope this helps):
https://github.com/yuzibo/Unmatched-Debian-image/releases/tag/0.0.2

Then dd these images into nvme and sd separately then the system
should work. On my system, there is no kernel parameters,
just:

rv@debci-01:~$ cat /proc/cmdline
root=/dev/nvme0n1p1 ro quiet

BR,
Bo
>
> One of the journalctl logs that ran ok:
>
> https://pastebin.com/zSKtuSbx
>
> I hope you can help me boot my system properly.
>
> Best regards and thanks!
>
> --
> Atte.
> Edson René Contreras Cárdenas
> Ingeniero Civil Electrónico
> Technical Manager - BciPlus+ Loyalty
> Banco BCI


--
Atte.
Edson René Contreras Cárdenas
Ingeniero Civil Electrónico
Technical Manager - BciPlus+ Loyalty
Banco BCI

Reply to: