Page MenuHomeFreeBSD

nvidia-drm-515-kmod: Fix build on CURRENT with iosys-map.h
ClosedPublic

Authored by ashafer_badland.io on Dec 29 2023, 7:15 PM.
Tags
None
Referenced Files
F89346913: D43234.id.diff
Fri, Jul 26, 8:51 PM
Unknown Object (File)
Sat, Jul 20, 12:13 PM
Unknown Object (File)
Tue, Jul 9, 5:01 PM
Unknown Object (File)
Thu, Jul 4, 7:15 AM
Unknown Object (File)
Jun 26 2024, 11:07 AM
Unknown Object (File)
Jun 25 2024, 12:58 PM
Unknown Object (File)
Jun 17 2024, 12:38 PM
Unknown Object (File)
Jun 2 2024, 4:53 PM
Subscribers
None

Details

Summary

Commit f8ab2f5bae1d added the linux/iosys-map.h header to base in order
to support 5.18+ versions of drm-kmod. This messes with nvidia-drm's
conftest logic as on recent enough CURRENT versions it will see iosys-map
and assume it can use it, but the drm-kmod version in use is 5.15,
which wants to use the older dma_buf_map.

This adds a patch on the port side to override nvidia-drm's detector
and force the use of dma_buf_map on the 5.15 port.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 55152
Build 52041: arc lint + arc unit

Event Timeline

ashafer_badland.io created this revision.

I know there's a lot of updates to the DRM infrastructure (terrific btw!) happening so feel free to ping me if there's anything you think might break nvidia-drm and you want me to test. I've verified 6.1-lts builds with nvidia-drm fine and I plan on testing that on my machines at some point soon.

manu requested changes to this revision.Dec 29 2023, 7:23 PM

You might want to bump PORTREVISION too assuming the current port version builds fine but don't work.

This revision now requires changes to proceed.Dec 29 2023, 7:23 PM
This revision is now accepted and ready to land.Dec 29 2023, 7:26 PM