Bug 259158

Summary: graphics/libdrm: Enable radeon on RISC-V
Product: Ports & Packages Reporter: Robert Clausecker <fuz>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: Closed FIXED    
Severity: Affects Many People CC: manu, riscv, x11
Priority: --- Keywords: feature, needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (x11)
koobs: merge-quarterly?
Hardware: riscv   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259160
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259159
Bug Depends on:    
Bug Blocks: 259159    
Attachments:
Description Flags
graphics/libdrm: enable RADEON on riscv64.
none
graphics/libdrm: enable RADEON on riscv64 fuz: maintainer-approval? (manu)

Description Robert Clausecker freebsd_committer freebsd_triage 2021-10-13 22:09:09 UTC
Created attachment 228682 [details]
graphics/libdrm: enable RADEON on riscv64.

With the attached patch I was able to build a radeon-enabled version of graphics/libdrm on a patched riscv64 FreeBSD 13-STABLE with a hand compiled drm kernel module.

I am unable to check if this patch works with vanilla 13-STABLE.

Patch needs QA and further testing.
Comment 1 Emmanuel Vadot freebsd_committer freebsd_triage 2021-10-21 12:13:48 UTC
I would prefer to have another elif for riscv64 arch, makefile will be more clear.
Comment 2 Robert Clausecker freebsd_committer freebsd_triage 2021-10-21 12:29:59 UTC
Created attachment 228922 [details]
graphics/libdrm: enable RADEON on riscv64

Made a new case for ${ARCH} == riscv64.

Not tested due to a temporary lack of hardware (but should work the same way as before).
Comment 3 Robert Clausecker freebsd_committer freebsd_triage 2021-10-30 13:02:38 UTC
(In reply to Emmanuel Vadot from comment #1)

Do you approve of the revised patch?
Comment 4 Emmanuel Vadot freebsd_committer freebsd_triage 2021-11-09 09:10:38 UTC
Looks good, will take care of it today.
Comment 5 Robert Clausecker freebsd_committer freebsd_triage 2021-11-19 09:04:01 UTC
(In reply to Emmanuel Vadot from comment #4)

Any progress on this one?
Comment 6 commit-hook freebsd_committer freebsd_triage 2021-11-19 10:08:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=673b15bdeeab9bcc8167fb987b91ce3d54f56b2a

commit 673b15bdeeab9bcc8167fb987b91ce3d54f56b2a
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2021-11-19 10:05:22 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2021-11-19 10:07:18 +0000

    graphics/libdrm: enable RADEON on riscv64

    PR:     259158

 graphics/libdrm/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)