MFC r342182:Remove UMS support code from radeonkms.
Revert drm2 removal.Revert r338177, r338176, r338175, r338174, r338172After long consultations with re@, core members and mmacy, revertthese changes. Followup changes will be made to mark them a
Revert drm2 removal.Revert r338177, r338176, r338175, r338174, r338172After long consultations with re@, core members and mmacy, revertthese changes. Followup changes will be made to mark them asdeprecated and prent a message about where to find the up-to-datedriver. Followup commits will be made to make this clear in theinstaller. Followup commits to reduce POLA in ways we're stillexploring.It's anticipated that after the freeze, this will be removed in13-current (with the residual of the drm2 code copied tosys/arm/dev/drm2 for the TEGRA port's use w/o the intel orradeon drivers).Due to the impending freeze, there was no formal core vote forthis. I've been talking to different core members all day, as well asMatt Macey and Glen Barber. Nobody is completely happy, all aregrudgingly going along with this. Work is in progress to mitigatethe negative effects as much as possible.Requested by: re@ (gjb, rgrimes)
show more ...
Remove legacy drm and drm2 from treeAs discussed on the MLs drm2 conflicts with the ports' version and thereis no upstream for most if not all of drm. Both have been merged in toa single port.U
Remove legacy drm and drm2 from treeAs discussed on the MLs drm2 conflicts with the ports' version and thereis no upstream for most if not all of drm. Both have been merged in toa single port.Users on powerpc, 32-bit hardware, or with GPUs predating Radeonand i915 will need to install the graphics/drm-legacy-kmod. Allother users should be able to use one of the LinuxKPI-based ports:graphics/drm-stable-kmod, graphics/drm-next-kmod, graphics/drm-devel-kmod.MFC: neverApproved by: core@
disable set but not used on code that can't be changed
Move most of the contents of opt_compat.h to opt_global.h.opt_compat.h is mentioned in nearly 180 files. In-progress networkdriver compabibility improvements may add over 100 more so this isclose
Move most of the contents of opt_compat.h to opt_global.h.opt_compat.h is mentioned in nearly 180 files. In-progress networkdriver compabibility improvements may add over 100 more so this iscloser to "just about everywhere" than "only some files" per theguidance in sys/conf/options.Keep COMPAT_LINUX32 in opt_compat.h as it is confined to a subset ofsys/compat/linux/*.c. A fake _COMPAT_LINUX option ensure opt_compat.his created on all architectures.Move COMPAT_LINUXKPI to opt_dontuse.h as it is only used to control theset of compiled files.Reviewed by: kib, cem, jhb, jtlSponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D14941
sys/modules: normalize .CURDIR-relative paths to SRCTOPThis simplifies make output/logicTested with: `cd sys/modules; make ALL_MODULES=` on amd64MFC after: 1 monthSponsored by: Dell EMC Isilon
drm: Update the device-independent code to match Linux 3.8.13This update brings few features: o Support for the setmaster/dropmaster ioctls. For instance, they are used to run multiple
drm: Update the device-independent code to match Linux 3.8.13This update brings few features: o Support for the setmaster/dropmaster ioctls. For instance, they are used to run multiple X servers simultaneously. o Support for minor devices. The only user-visible change is a new entry in /dev/dri but it is useless at the moment. This is a first step to support render nodes [1].The main benefit is to greatly reduce the diff with Linux (at theexpense of an unreadable commit diff). Hopefully, next upgrades will beeasier.No updates were made to the drivers, beside adapting them to APIchanges.[1] https://en.wikipedia.org/wiki/Direct_Rendering_Manager#Render_nodesTested by: Many peopleMFC after: 1 monthRelnotes: yes
Globally enable -fms-extensions when building kernel with gcc, and removethis option from all modules that enable it theirselves. In C mode -fms-extensions option enables anonymous structs and uni
Globally enable -fms-extensions when building kernel with gcc, and removethis option from all modules that enable it theirselves. In C mode -fms-extensions option enables anonymous structs and unions,allowing us to use this C11 feature in kernel. Of course, clang supportsit without any extra options.Reviewed by: dim
Remove unnecessary inclusions of bsd.own.mk.
drm/radeon: Add 32bit ioctls supportThis allows to run 32bit applications on a 64bit host. This was testedsuccessfully with Wine (emulators/i386-wine-devel) and StarCraft II.Submitted by: Jan Ko
drm/radeon: Add 32bit ioctls supportThis allows to run 32bit applications on a 64bit host. This was testedsuccessfully with Wine (emulators/i386-wine-devel) and StarCraft II.Submitted by: Jan Kokemüller <[email protected]>MFC after: 1 week
Similar to r260020, only use -fms-extensions with gcc, for all othermodules which require this flag to compile. Use a GCC_MS_EXTENSIONSvariable, defined in kern.pre.mk, which can be used to easily
Similar to r260020, only use -fms-extensions with gcc, for all othermodules which require this flag to compile. Use a GCC_MS_EXTENSIONSvariable, defined in kern.pre.mk, which can be used to easily supply theflag (or not), depending on the compiler type.MFC after: 3 days
For sys/dev/drm2/radeon, only use -fms-extensions with gcc. This flagis only to stop gcc complaining about anonymous unions, which clang doesnot do. For clang 3.4 however, -fms-extensions enables
For sys/dev/drm2/radeon, only use -fms-extensions with gcc. This flagis only to stop gcc complaining about anonymous unions, which clang doesnot do. For clang 3.4 however, -fms-extensions enables the Microsoft__wchar_t type, which clashes with our own types.h.MFC after: 3 days
Disable error message about failed attempt to attach fbd when drm2 built withsyscons.Sponsored by: The FreeBSD Foundation
Merge VT(9) project (a.k.a. newcons).Reviewed by: nwhitehornMFC_to_10_after: re approvalSponsored by: The FreeBSD Foundation
drm/radeon: Import the Radeon KMS driverThis driver is based on Linux 3.8 and a previous effort by kan@.More informations about this project can be found on the FreeBSD wiki: https://wiki.fre
drm/radeon: Import the Radeon KMS driverThis driver is based on Linux 3.8 and a previous effort by kan@.More informations about this project can be found on the FreeBSD wiki: https://wiki.freebsd.org/AMD_GPUThe driver is split into: sys/dev/drm2: The driver sources. sys/modules/drm2/radeonkmw: The driver main kernel module's Makefile. sys/modules/drm2/radeonkmsfw: All firmware kernel module Makefiles. There's one directory and one Makefile for each firmware. sys/contrib/dev/drm2/radeonkmsfw: All firmware binary sources. tools/tools/drm/radeon Tools to update firmwares or regenerate some headers.Merging the driver to FreeBSD 9.x may be possible but not a priority fornow.Help from: kib@, kan@Tested by: avg@, kwm@, ray@, Alexander Yerenkow <[email protected]>, Anders Bolt-Evensen <[email protected]>, Denis Djubajlo <[email protected]>, J.R. Oldroyd <[email protected]>, Mikaël Urankar <[email protected]>, Pierre-Emmanuel Pédron <[email protected]>, Sam Fourman Jr. <[email protected]>, Wade <[email protected]>, (probably other I forgot...)HW donations: kyzh, Yakaz