Commit graph

52 commits

Author SHA1 Message Date
Emmanuel Vadot
db9be57be0 drm-current-kmod/drm-devel-kmod: Update to latest version
- Use acpi code from base (thanks to wulf@)
- Add radeon/i386 patches (thanks to tilj@)
- Translate O_ flags for linuxulator (thanks to Greg V)
- Lot of linuxkpi cleanup
- Hack for amdgpu when the IP isn't init properly, this happens
  on one of my laptop with a dGPU. We still don't support it but
  we don't panic when we load amdgpu
2020-11-09 13:37:12 +00:00
Emmanuel Vadot
980f6577c2 graphics/drm-{current,devel}-kmod: Update to 5.4.62.g20201003
Fix backlight in i915kms
Add dependancy to backlight after 1300118
2020-10-03 08:33:13 +00:00
Emmanuel Vadot
60ba510d0e graphics/drm-devel-kmod: Update to 5.4.62.g20201002
This will use the backlight(9) framework from base if it's recent
enough.

Sponsored by:	The FreeBSD Foundation
2020-10-02 19:03:46 +00:00
Mark Linimon
ce8063e198 Allow building on powerpc64le.
Approved by:	portmgr (tier-2 blanket)
2020-09-24 21:25:31 +00:00
Emmanuel Vadot
bd6dcdd238 graphics/drm*kmod: Update to latest upstream
drm-current-kmod/drm-devel-kmod:
 - Remove local patch, code is upstream now
 - Fix amdgpu build on powerpc64
 - Depend on latest gpu-firmware-kmod (for navi14 and renoir users)

drm-kmod:
 - Need FreeBSD 1300108, missed in r548208
2020-09-14 09:46:36 +00:00
Emmanuel Vadot
ea0b3c59cc graphics/drm-devel-kmod: Require latest gpu-firmware
While here :
 - Remove mention of drm-legacy
 - Adjust kld_list usage (no need for the full path in 13-CURRENT)
 - Update pkg-descr to have the correct version
 - Remove comment that says that amdgpu and radeon fails with UEFI,
   this is not the case for me although there might be some problems
   with some bios so leave that part in pkg-message.

Sponsored by:	The FreeBSD Foundation
2020-09-05 14:00:59 +00:00
Emmanuel Vadot
2c22985580 graphics/drm-devel-kmod: Update to v5.4.62
This update the drm drivers to be in sync with Linux v5.4.62
This also set the default for psr (Panel Self Refresh) for i915 to disable.
There is some issue in our code that make the console not refreshing as it
should and since I don't have the hardware to reproduce simply change the default
for us.
This also change the power_well default in i915 to have them always enabled. We likely
miss something related to this for FreeBSD and this cause a spam on the console when
using HDMI.

Sponsored by:	The FreeBSD Foundation
2020-09-05 13:25:47 +00:00
Emmanuel Vadot
42887762bf drm-devel-kmod: Update to 5.4.58.g20200818
This is now in par with Linux LTS 5.4.58

Sponsored by:	The FreeBSD Foundation
2020-09-03 12:18:43 +00:00
Emmanuel Vadot
61bb203960 graphics/drm-devel-kmod: Update to latest version
This fix the vboxvideo module. Console doesn't update, one need to
interact with the vbox gui so it's refreshed.
I don't know yet if it's a vbox problem or drm driver one.
While here update pkg-descr to have the correct url and info.

Sponsored by:	The FreeBSD Foundation
2020-07-24 11:38:53 +00:00
Emmanuel Vadot
e120a3ee13 graphics/drm-devel-kmod: Update to latest version after r363077 in base
Sponsored by:	The FreeBSD Foundation
2020-07-10 11:41:54 +00:00
Emmanuel Vadot
de436573d1 graphics/drm-devel-kmod: Update to drm_v5.3_2
Fix build on i386
Add support for AMD NAVI 10

Sponsored by:	The FreeBSD Foundation
2020-07-08 10:25:10 +00:00
Emmanuel Vadot
621ca8a235 Update drm-devel-kmod to 5.3
This put us in sync with Linux 5.3 drm drivers with one cavehat: Navi10 AMDGPU
support, an issue is created upstream and we hope to have it working soon.
https://github.com/freebsd/drm-kmod/issues/10
2020-06-30 09:48:30 +00:00
Emmanuel Vadot
0dae73e613 graphics/drm-devel-kmod: Update to latest version
Fix build after base linuxkpi updates.
2020-06-02 13:20:25 +00:00
Emmanuel Vadot
34cfc8a98a graphics/drm-devel-kmod: Update to the latest version
This fixes building on powerpc64.

Sponsored-by: The FreeBSD Foundation
2020-06-01 18:52:49 +00:00
Emmanuel Vadot
4ad89a11fc graphics/drm-devel-kmod: Update to latest 5.2
This update the drm-devel-kmod port to track the freebsd/drm-kmod github repo
and update the code to the latest one which track Linux 5.2 kernel

Sponsored-by: The FreeBSD Foundation
Approved by:	x11 (zeising@ over irc)
2020-05-24 13:33:11 +00:00
Niclas Zeising
d7ffee0363 graphics/drm-devel-kmod: Update snapshot
Update graphics/drm-devel-kmod to the latest snapshot.
This update contains several fixes:
Fix build on latest CURRENT
Improvements to make Vega 3 (Raven 2) work
Improvements to diagnostics and debug messages.
2020-05-07 20:44:09 +00:00
Niclas Zeising
0c619a69c8 graphics/drm-devel-kmod: Update snapshot
Update the graphics/drm-devel-kmod snapshot to the latest version.
This includes fixes to make it build on current and changes to make it work
with pending VM changes.
2020-03-20 22:10:21 +00:00
Niclas Zeising
09769f7c23 graphics/drm-devel-kmod: Install vboxdrv
Install vboxdrv unkonditionally on amd64 and i386.  It was not installed for
older FreeBSD versions, but we don't support those any more.
2020-02-21 21:00:20 +00:00
Niclas Zeising
6f35778d59 graphics/drm-devel-kmod: Update snapshot
Update graphics/drm-devel-kmod to the latest snapshot.
This fixes the build on latest current.
Make unsynchronized DRM_IOCTL_I915_GEM_USERPTR work in mesa on 7th
generation Haswell graphics.  This is needed for vulkan
Add devctl (devd) notification for monitor hotplug
Remove support for older FreeBSD versions and bump the minimum version
requirements to FreeBSD 1300055.
2020-02-21 20:42:21 +00:00
Niclas Zeising
9f3f7cddbf graphics/drm-devel-kmod: Enable on arm64
Enable drm-devel-kmod build on arm64.

Submitted by:	andrew
Differential Revision:	https://reviews.freebsd.org/D23437
2020-02-15 20:51:52 +00:00
Niclas Zeising
984366c167 graphics/drm-kmod ports: Update snapshots
Update snapshots of all linux KPI based DRM graphics driver ports.
This update fixes an information disclosure security vulnerability.

Please note that only the drivers for intel GPUs are affected.

MFH:		2020Q1
Security:	d2c2c815-3793-11ea-8be3-54e1ad3d6335
2020-01-15 13:54:10 +00:00
Niclas Zeising
b6ba6361c8 graphics/drm-devel-kmod: Bump portversion
Bump the portversion of graphics/drm-devel-kmod, this was forgotten in the
previous commit.
Reroll distinfo, because of how github distinfo works, the name changes when
the portversion changes.

Reported by:	jbeich
2019-12-18 20:59:39 +00:00
Niclas Zeising
63c32d0acc graphics/drm-devel-kmod: Update snapshot
Update graphics/drm-devel-kmod to the latest snapshot
This update fixes the build on current, improves handling when switching
VT console and contains some further minor fixes.
2019-12-17 21:39:33 +00:00
Niclas Zeising
171f181633 graphics/drm-devel-kmod: Update snapshot
Update graphics/drm-devel-kmod to the latest snapshot.  This is a security
update, containing fixes for local privilege escalation and denial of
service bugs, as part of the Intel 2019.2 IPU

MFH:		2019Q4 (implicit, security, drm-drivers blanket)
Security:	ecb7fdec-0b82-11ea-874d-0c9d925bbbc0
2019-11-20 11:30:19 +00:00
Niclas Zeising
99517036e7 Fix packaging on powerpc64
Fix packaging on powerpc64, the vboxvideo driver isn't installed there.
While here, replace space with tabs.

PR:		241478
Submitted by:	pkubaj
2019-10-24 22:21:13 +00:00
Niclas Zeising
5b4201d1a8 graphics/drm-devel-kmod: Update snapshot
Update graphics/drm-devel-kmod to the latest snapshots.  This includes
runtime fixes on recent CURRENT, as well as minor fixes to aarch64, ppc64
and sysfs usage.
2019-10-23 08:27:25 +00:00
Niclas Zeising
b741eb5dd6 graphics/drm-devel-kmod: Update snapshot
Update snapshot with fixes for powerpc64 elfv2, fixes when printing a
sysctl, fixes for a use after free in the wmvgfx driver and fixes in
anticipation of updates to current.
2019-08-28 08:20:01 +00:00
Niclas Zeising
90a62f8be6 graphics/drm-devel-kmod: Update snapshot
Fix build on latest current.
2019-08-27 12:51:51 +00:00
Niclas Zeising
51c5021565 graphics/drm-devel-kmod: Update snapshot
Fix build on latest CURRENT

MFH:		2019Q3 (implicit, drm-drivers blanket)
Sponsored by:	B3 Init
2019-08-14 21:04:27 +00:00
Mathieu Arnold
79698c8457 Convert to UCL & cleanup pkg-message (categories e-g) 2019-08-13 16:03:11 +00:00
Niclas Zeising
11bd6149d0 graphics/drm-devel-kmod: Update snapshot
Update graphics/drm-devel-kmod to the latest snapshot.  Fixes a panic on
ppc64 POWER9.

FreeBSD Graphics issue:	#161
			https://github.com/FreeBSDDesktop/kms-drm/issues/161
MFH:		2019Q3
2019-08-06 22:14:41 +00:00
Gerald Pfeifer
ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00
Niclas Zeising
f830779ba2 graphics/drm-current-kmod: Update snapshot
Update graphics/drm-current-kmod snapshot to fix build on CURRENT after
r350199.

FreeBSDDesktop issue:	#160
MFH:			2019Q3 (implicit, drm-driver blanket)
Sponsored by:		B3 Init
2019-07-22 17:20:22 +00:00
Niclas Zeising
77c2e01ede graphics/drm-devel-kmod: Update snapshot
Update graphics/drm-devel-kmod to the latest snapshot.
Summary of changes:
Fixes a memory leak
Improves debugfs and debug capabilities
Adds the new vboxvideo.ko driver, an experimental driver for virtualbox
graphics.  This is enabled on amd64 and i386.

MFH:		2019Q3 (implicit, drm-drivers blanket)
Sponsored by:	B3 Init
2019-07-10 20:07:23 +00:00
Niclas Zeising
2257fae092 Change maintainer of all drm kmod ports to x11@
Change maintainer of all drm kmod ports to x11@FreeBSD.org.  This way, PRs,
notice about build breakages from package builds and so on goes to the
entire x11@ team, and not just one member.

Approved by:	jmd (maintainer)
2019-07-09 20:20:28 +00:00
Niclas Zeising
21d61aed7f graphics/drm-devel-kmod: fix package
Fix packaging of graphics/drm-devel-kmod, the amdkfd module has been
disabled, and I missed this last night.  Remove it from the pkg-plist by
commenting it out for all architectures for now.
This is a stop gap measure to get the port to package, until I can touch
base with johalun and jmd about how to handle this permanently.

MFH:		2019Q2 (implicit, drm-drivers blanket)
Sponsored by:	B3 Init
2019-05-21 06:23:48 +00:00
Niclas Zeising
f6964e25c6 add graphics/drm-devel-kmod
Add graphics/drm-devel-kmod, development version of the lkpi based DRM
graphics drivers.  This version is experimental, and for recent CURRENT
only.

This version currently corresponds to Linux 5.0 DRM drivers, and should give
better support for more recent Intel and AMD GPUs.

Please note that this port is copied from drm-current-kmod, rather than
resurrected from the old drm-devel-kmod port, that's because
drm-current-kmod was created by copying the old drm-devel-kmod when that
went to a more stable version.

Big thank you to everyone who has worked on this, and johalun in particuar,
who has done most of the heavy lifting.

Approved by:	jmd (maintainer, implicit)
MFH:		2019Q2 (implicit, drm-drivers blanket)
Sponsored by:	B3 Init
2019-05-20 20:28:16 +00:00
Johannes M Dieterich
bfbf8bd33e LinuxKPI-based DRM ports: move to new ports nomenclature.
After some discussions within the x11 team, it was decided to move to a new
nomenclature for the LinuxKPI-based DRM ports that correctly reflects the
FreeBSD version the ports are for. This will also allow us to move to dedicated
branches per FreeBSD release and eases porting work.

Functionally, this commit is a no-op as we are not moving to new snapshots.

Reflect the move in UPDATING and MOVED. Users using the graphics/drm-kmod meta
port should not be affected. Direct consumers of the DRM ports shall move, as
in MOVED, as follows:

drm-stable-kmod is drm-fbsd11.2-kmod
drm-next-kmod is drm-fbsd12.0-kmod
drm-devel-kmod is drm-current-kmod

Reviewed by:	zeising (x11)
Approved by:	zeising (x11)
Differential Revision:	https://reviews.freebsd.org/D18328
2018-12-10 03:02:11 +00:00
Johannes M Dieterich
80964322b1 graphics/drm-devel-kmod: update to latest snapshot
Fixes a double registration bug in amdgpu.
2018-11-24 19:05:52 +00:00
Mathieu Arnold
3ea61a99d6 Always append to PLIST_SUB after an include. 2018-11-21 13:50:55 +00:00
Johannes M Dieterich
a024db8e65 graphics/drm-devel-kmod: update to latest snapshot
This importantly brings initial support on powerpc64 for amdgpu and radeon.

Obtained from:	mmacy (powerpc64) via FreeBSDDesktop
2018-11-20 02:20:31 +00:00
Niclas Zeising
7785664fd0 graphics/drm-devel-kmod: Fix runtime
Fix runtime after stolen memory handling was comitted.  Use FreeBSD 1200086
as delimiter, since FreeBSD versions wasn't bumped for the stolen memory
commit.
2018-11-14 20:12:38 +00:00
Johannes M Dieterich
a7fc53860a graphics/drm-devel-kmod: enable experimental i386 support.
Alongside update to a later snapshot which brings vmwgfx.

Obtained from:	FreeBSDDesktop
2018-11-13 03:27:51 +00:00
Niclas Zeising
3bacda7801 Graphics/drm-*-kmod: Update pkg-message
Update pkg-message in drm-stable-kmod, drm-next-kmod and drm-devel-kmod and
point people to drm-legacy-kmod for the legacy drm drivers.

Approved by:	jmd (maintainer, implicit)
2018-11-06 21:18:31 +00:00
Niclas Zeising
d3a06bd731 graphics/drm-devel-kmod: Update pkg-descr to match reality 2018-11-06 20:03:02 +00:00
Niclas Zeising
e6110caf15 graphics/drm-next-kmod: Update snapshot
Update graphics/drm-next-kmod to the latest snapshot.  This contains fixes
for vaapi rendering and possibly also other rendering bugs.

Approved by:	jmd (maintainer, implicit)
Obtained from:	FreeBSD Graphics Team
MFH:		2018Q4
2018-10-27 12:20:38 +00:00
Johannes M Dieterich
9608ffc531 graphics/drm-devel-kmod: chase updated signature in MODULE_PNP_INFO macro 2018-09-27 23:25:09 +00:00
Niclas Zeising
460efc2541 graphics/drm-devel-kmod: Update snapshot
This updates to the latest snapshot, which fixes a mistake in the AMD
GPU codepaths.

Approved by:	jmd (maintainer, implicit)
2018-08-24 21:55:00 +00:00
Johannes M Dieterich
4d2ecbc672 graphics/drm-devel-kmod: update to later revision.
Implements pci_{save,restore}_state functions. Bumps DRM version to Linux 4.16 equivalent.

While there, fix pkg-message.

Approved by:	zeising (mentor, implicit)
Obtained from:	FreeBSDDesktop
2018-08-23 03:50:57 +00:00
Johannes M Dieterich
78bab05a5c new port: graphics/drm-legacy-kmod
This port contains the drm1 and drm2 legacy bits from base.

Reviewed by:	seanc, zeising (mentor), mat
Approved by:	seanc, zeising (mentor)
Differential Revision:	https://reviews.freebsd.org/D16823
2018-08-22 00:35:32 +00:00