Bug 259158 - graphics/libdrm: Enable radeon on RISC-V
Summary: graphics/libdrm: Enable radeon on RISC-V
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: riscv Any
: --- Affects Many People
Assignee: freebsd-x11 (Nobody)
URL:
Keywords: feature, needs-qa
Depends on:
Blocks: 259159
  Show dependency treegraph
 
Reported: 2021-10-13 22:09 UTC by Robert Clausecker
Modified: 2021-11-19 10:10 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)
koobs: merge-quarterly?


Attachments
graphics/libdrm: enable RADEON on riscv64. (779 bytes, patch)
2021-10-13 22:09 UTC, Robert Clausecker
no flags Details | Diff
graphics/libdrm: enable RADEON on riscv64 (933 bytes, patch)
2021-10-21 12:29 UTC, Robert Clausecker
fuz: maintainer-approval? (manu)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)