Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DCN-enabled AMD Graphics cards #100

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

Icenowy
Copy link

@Icenowy Icenowy commented Jan 18, 2024

No description provided.

This is needed to support recent hardware in the amdgpu DRM driver. The
FPU code in that driver is not performance-critical, so only provide the
minimal support.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Since it is not possible to incrementally add/remove extensions from the
compiler's ISA string by appending arguments, any code that wants to
modify the ISA string must recreate the whole thing. To support this,
factor out the logic for generating the -march argument so it can be
reused where needed.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
RISC-V uses kernel_fpu_begin()/kernel_fpu_end() like several other
architectures. Enabling hardware FP requires overriding the ISA string
for the relevant compilation units.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
@Icenowy
Copy link
Author

Icenowy commented Jan 19, 2024

force pushed to add my own SoB.

@Icenowy Icenowy marked this pull request as ready for review January 19, 2024 05:16
@Icenowy
Copy link
Author

Icenowy commented Jan 19, 2024

Have run SuperTuxKart on Pioneer + RX7600 ( 0000:03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 33 [Radeon RX 7700S/7600S] [1002:7480] (rev cf) ) for ~20h.

@xingxg2022 xingxg2022 merged commit beafa88 into sophgo:sg2042-dev Jan 19, 2024
@silvanshade
Copy link

@Icenowy Do you know if this still works on sg2042-master branch (as of 257e385)?

If it does still work for you, can you share your kernel config or any other details about your system configuration?

I am trying to get an RX 7800 XT to work with a Pioneer 1.2 board but getting a kernel oops as soon as it finishes loading all the firmwares, after the message [drm] Display Core failed to initialize.

@Icenowy
Copy link
Author

Icenowy commented Mar 26, 2024

@silvanshade

  1. I don't have spare Pioneer to test now.
  2. I do not support the 6.6 kernel.

@xingxg2022
Copy link
Collaborator

xingxg2022 commented Mar 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants