Skip to content

backport: feat: support rdna graphics card#7

Open
RevySR wants to merge 3 commits intoeswincomputing:linux-6.6.18-EIC7Xfrom
RevySR:feat/rdna
Open

backport: feat: support rdna graphics card#7
RevySR wants to merge 3 commits intoeswincomputing:linux-6.6.18-EIC7Xfrom
RevySR:feat/rdna

Conversation

@RevySR
Copy link
Copy Markdown
Contributor

@RevySR RevySR commented Aug 30, 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>
Link: https://lore.kernel.org/r/20231122030621.3759313-2-samuel.holland@sifive.com
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
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>
Link: https://lore.kernel.org/r/20231122030621.3759313-3-samuel.holland@sifive.com
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
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>
Link: https://lore.kernel.org/r/20231122030621.3759313-4-samuel.holland@sifive.com
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
@JoeyZheng JoeyZheng enabled auto-merge September 2, 2024 14:53
super2279 pushed a commit that referenced this pull request Apr 30, 2025
…ng/linux-stable:linux-6.6.18-EIC7X into linux-6.6.18-EIC7X

Reviewed-on: http://10.100.130.109:3000/Upstream/linux-stable/pulls/7
Reviewed-by: ningyu <ningyu@eswincomputing.com>
Reviewed-by: Joey Zheng <zhengyu@eswincomputing.com>
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