aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/drm2
Commit message (Collapse)AuthorAgeFilesLines
* Remove drm2 modules.Warner Losh2019-02-19102-971/+0
| | | | | | | | | | | | Remove support for compiling drm2 as a module. This has transitioned to the drm-kmod or drm-legacy-kmodw ports. Approved by: graphics team Reviewed by: manu@, mmel@ Differential Revision: https://reviews.freebsd.org/D19196 Notes: svn path=/head/; revision=344298
* Remove UMS support code from radeonkms.Mark Johnston2018-12-171-11/+0
| | | | | | | | | | | | | | | | The code is unreachable since the entries of radeon_ioctls[] are not associated with any device: we provide only the KMS entry points. Moreover, r600_cp_dispatch_texture() contains an integer overflow bug that can be triggered from userspace.[1] Reported by: Anonymous of the Shellphish Grill Team[1] Reviewed by: dumbbell MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18516 Notes: svn path=/head/; revision=342182
* Revert drm2 removal.Warner Losh2018-08-24102-0/+982
| | | | | | | | | | | | | | | | | | | | | | | | | | | Revert r338177, r338176, r338175, r338174, r338172 After long consultations with re@, core members and mmacy, revert these changes. Followup changes will be made to mark them as deprecated and prent a message about where to find the up-to-date driver. Followup commits will be made to make this clear in the installer. Followup commits to reduce POLA in ways we're still exploring. It's anticipated that after the freeze, this will be removed in 13-current (with the residual of the drm2 code copied to sys/arm/dev/drm2 for the TEGRA port's use w/o the intel or radeon drivers). Due to the impending freeze, there was no formal core vote for this. I've been talking to different core members all day, as well as Matt Macey and Glen Barber. Nobody is completely happy, all are grudgingly going along with this. Work is in progress to mitigate the negative effects as much as possible. Requested by: re@ (gjb, rgrimes) Notes: svn path=/head/; revision=338285
* Remove legacy drm and drm2 from treeMatt Macy2018-08-22102-982/+0
| | | | | | | | | | | | | | | | | As discussed on the MLs drm2 conflicts with the ports' version and there is no upstream for most if not all of drm. Both have been merged in to a single port. Users on powerpc, 32-bit hardware, or with GPUs predating Radeon and i915 will need to install the graphics/drm-legacy-kmod. All other 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: never Approved by: core@ Notes: svn path=/head/; revision=338172
* disable set but not used on code that can't be changedMatt Macy2018-05-192-0/+2
| | | | Notes: svn path=/head/; revision=333848
* Silence non-actionable warnings in vendor codeMatt Macy2018-05-191-0/+5
| | | | | | | | | We can't modify vendor code so there's no signal in warnings from it. Similarly -Waddress-of-packed-member is not useful on networking code as access to packed structures is fundamental to its operation. Notes: svn path=/head/; revision=333819
* Move most of the contents of opt_compat.h to opt_global.h.Brooks Davis2018-04-063-3/+1
| | | | | | | | | | | | | | | | | | | | | opt_compat.h is mentioned in nearly 180 files. In-progress network driver compabibility improvements may add over 100 more so this is closer to "just about everywhere" than "only some files" per the guidance in sys/conf/options. Keep COMPAT_LINUX32 in opt_compat.h as it is confined to a subset of sys/compat/linux/*.c. A fake _COMPAT_LINUX option ensure opt_compat.h is created on all architectures. Move COMPAT_LINUXKPI to opt_dontuse.h as it is only used to control the set of compiled files. Reviewed by: kib, cem, jhb, jtl Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14941 Notes: svn path=/head/; revision=332122
* sys/modules: normalize .CURDIR-relative paths to SRCTOPEnji Cooper2017-03-045-6/+6
| | | | | | | | | | | This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314651
* Really revert 312923 this timeBaptiste Daroussin2017-01-281-2/+0
| | | | Notes: svn path=/head/; revision=312928
* Revert crap accidentally committedBaptiste Daroussin2017-01-281-0/+2
| | | | Notes: svn path=/head/; revision=312927
* Revert r312923 a better approach will be taken laterBaptiste Daroussin2017-01-281-2/+0
| | | | Notes: svn path=/head/; revision=312926
* Make the drm2 module depend on linuxkpiBaptiste Daroussin2017-01-281-0/+2
| | | | | | | Use linux memory allocation to reduce diff with upstream Notes: svn path=/head/; revision=312923
* Remove pc98 support completely.Yoshihiro Takahashi2017-01-281-11/+1
| | | | | | | | | I thank all developers and contributors for pc98. Relnotes: yes Notes: svn path=/head/; revision=312910
* drm/i915: Update to match Linux 3.8.13Jean-Sébastien Pédron2016-03-081-1/+9
| | | | | | | | | | | | This update brings initial support for Haswell GPUs. Tested by: Many users of FreeBSD, PC-BSD and HardenedBSD Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5554 Notes: svn path=/head/; revision=296548
* Build all of sys/modules with SUBDIR_PARALLEL.Bryan Drewery2015-11-102-4/+0
| | | | | | | | Sponsored by: EMC / Isilon Storage Division MFC after: 3 weeks Notes: svn path=/head/; revision=290665
* drm: Update the device-independent code to match Linux 3.8.13Jean-Sébastien Pédron2015-03-173-9/+30
| | | | | | | | | | | | | | | | | | | | | | | | | This 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 the expense of an unreadable commit diff). Hopefully, next upgrades will be easier. No updates were made to the drivers, beside adapting them to API changes. [1] https://en.wikipedia.org/wiki/Direct_Rendering_Manager#Render_nodes Tested by: Many people MFC after: 1 month Relnotes: yes Notes: svn path=/head/; revision=280183
* drm: Allow parallel builds of drivers and firmwaresJean-Sébastien Pédron2015-03-042-0/+4
| | | | | | | | Submitted by: hps@ MFC after: 2 weeks Notes: svn path=/head/; revision=279600
* Globally enable -fms-extensions when building kernel with gcc, and removeGleb Smirnoff2015-02-171-1/+1
| | | | | | | | | | | | this 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 supports it without any extra options. Reviewed by: dim Notes: svn path=/head/; revision=278913
* An update for the i915 GPU driver, which brings the code up to LinuxKonstantin Belousov2015-01-211-0/+3
| | | | | | | | | | | | | | | commit 4d93914ae3db4a897ead4b. Some related drm infrastructure changes are imported as needed. Biggest update is the rewrite of the i915 gem io to more closely follow Linux model, althought the mechanism used by FreeBSD port is different. Sponsored by: The FreeBSD Foundation MFC after: 2 month Notes: svn path=/head/; revision=277487
* Re-support CWARNFLAGS, lost when bsd.sys.mk was removed. Also, supportWarner Losh2015-01-031-1/+0
| | | | | | | | | | | CWARNFALGS.$file centrally so we don't have to have it in all the places. Remove a few warning flags that are no longer needed. Also, always use -Wno-unknown-pragma to (hopefully temporarily) work around #pragma ident in debug.h in the opensolaris code. Remove some stale warning suppression that's no longer necessary. Notes: svn path=/head/; revision=276606
* Build ttm_agp_backend.c.Tijl Coosemans2014-10-311-1/+1
| | | | | | | | Reported by: dumbbell MFC after: 1 month Notes: svn path=/head/; revision=273902
* drm/i915: Add HW context supportJean-Sébastien Pédron2014-09-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This feature is required by Mesa 9.2+. Without this, a GL application crashes with the following message: # glxinfo name of display: :0.0 Gen6+ requires Kernel 3.6 or later. Assertion failed: (ctx->Version > 0), function handle_first_current, file ../../src/mesa/main/context.c, line 1498. Abort (core dumped) Now, Mesa 10.2.4 and 10.3-rc3 works fine: # glxinfo name of display: :0 display: :0 screen: 0 direct rendering: Yes ... OpenGL renderer string: Mesa DRI Intel(R) 965GM OpenGL version string: 2.1 Mesa 10.2.4 ... The code was imported from Linux 3.8.13. Reviewed by: kib@ Tested by: kwm@, danfe@, Henry Hu, Lundberg, Johannes <johannes@brilliantservice.co.jp>, Johannes Dieterich <dieterich.joh@gmail.com>, Lutz Bichler <lutz.bichler@gmail.com>, MFC after: 3 days Relnotes: yes Notes: svn path=/head/; revision=271705
* drm/i915: Disable the build of i915 on PC98Jean-Sébastien Pédron2014-08-251-1/+3
| | | | | | | | | | This module is of no use on this platform and now, i915 depends on ACPI anyway. Suggested by: nyan@ Notes: svn path=/head/; revision=270572
* drm/i915: Add opt_acpi.h and acpi_if.h to the source filesJean-Sébastien Pédron2014-08-251-2/+12
| | | | | | | While here, sort the list of generated source files. Notes: svn path=/head/; revision=270571
* Remove dependence on source tree options. Move all kernel moduleWarner Losh2014-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | | options into kern.opts.mk and change all the places where we use src.opts.mk to pull in the options. Conditionally define SYSDIR and use SYSDIR/conf/kern.opts.mk instead of a CURDIR path. Replace all instances of CURDIR/../../etc with STSDIR, but only in the affected files. As a special compatibility hack, include bsd.owm.mk at the top of kern.opts.mk to allow the bare build of sys/modules to work on older systems. If the defaults ever change between 9.x, 10.x and current for these options, however, you'll wind up with the host OS' defaults rather than the -current defaults. This hack will be removed when we no longer need to support this build scenario. Reviewed by: jhb Differential Revision: https://phabric.freebsd.org/D529 Notes: svn path=/head/; revision=269812
* Remove unnecessary inclusions of bsd.own.mk.Warner Losh2014-08-041-2/+0
| | | | Notes: svn path=/head/; revision=269538
* Fix buildkernel breakage, which was fall-out from the move of options toStefan Eßer2014-05-061-0/+1
| | | | | | | src.opts.mk. Notes: svn path=/head/; revision=265433
* drm/radeon: Add 32bit ioctls supportJean-Sébastien Pédron2014-05-031-1/+4
| | | | | | | | | | | This allows to run 32bit applications on a 64bit host. This was tested successfully with Wine (emulators/i386-wine-devel) and StarCraft II. Submitted by: Jan Kokemüller <jan.kokemueller@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=265262
* Similar to r260020, only use -fms-extensions with gcc, for all otherDimitry Andric2013-12-301-4/+1
| | | | | | | | | | | modules which require this flag to compile. Use a GCC_MS_EXTENSIONS variable, defined in kern.pre.mk, which can be used to easily supply the flag (or not), depending on the compiler type. MFC after: 3 days Notes: svn path=/head/; revision=260102
* For sys/dev/drm2/radeon, only use -fms-extensions with gcc. This flagDimitry Andric2013-12-281-2/+6
| | | | | | | | | | | is only to stop gcc complaining about anonymous unions, which clang does not 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 Notes: svn path=/head/; revision=260020
* For some files under sys/dev/drm2/i915, turn off warnings about unusedDimitry Andric2013-12-281-0/+5
| | | | | | | | | functions and variables, since they are contributed code. MFC after: 3 days Notes: svn path=/head/; revision=260019
* Disable error message about failed attempt to attach fbd when drm2 built withAleksandr Rybalko2013-12-103-2/+3
| | | | | | | | | syscons. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=259179
* Merge VT(9) project (a.k.a. newcons).Aleksandr Rybalko2013-12-052-2/+3
| | | | | | | | | | Reviewed by: nwhitehorn MFC_to_10_after: re approval Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=259016
* drm/radeon: Disable build on i386/pc98Jean-Sébastien Pédron2013-08-261-2/+14
| | | | Notes: svn path=/head/; revision=254899
* drm/radeon: Import the Radeon KMS driverJean-Sébastien Pédron2013-08-25100-2/+813
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This 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_GPU The 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 for now. Help from: kib@, kan@ Tested by: avg@, kwm@, ray@, Alexander Yerenkow <yerenkow@gmail.com>, Anders Bolt-Evensen <andersbo87@me.com>, Denis Djubajlo <stdedjub@googlemail.com>, J.R. Oldroyd <fbsd@opal.com>, Mikaël Urankar <mikael.urankar@gmail.com>, Pierre-Emmanuel Pédron <pepcitron@gmail.com>, Sam Fourman Jr. <sfourman@gmail.com>, Wade <wade-is-great@live.com>, (probably other I forgot...) HW donations: kyzh, Yakaz Notes: svn path=/head/; revision=254885
* drm: Import drm_dp_helper.c from Linux 3.8-rc3Jean-Sébastien Pédron2013-08-241-0/+1
| | | | | | | While here, update drm_dp_helper.h to better match Linux one. Notes: svn path=/head/; revision=254817
* drm: Import drm_buffer.[ch] from Linux 3.8-rc3Jean-Sébastien Pédron2013-08-241-0/+1
| | | | | | | This will be used by the Radeon KMS driver. Notes: svn path=/head/; revision=254794
* Import the preliminary port of the TTM.Konstantin Belousov2013-03-051-2/+14
| | | | | | | | | | | | The early commit is done to facilitate the off-tree work on the porting of the Radeon driver. Sponsored by: The FreeBSD Foundation Debugged and tested by: dumbbell MFC after: 1 month Notes: svn path=/head/; revision=247835
* Import the drm_global references helpers.Konstantin Belousov2013-03-051-0/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 month Notes: svn path=/head/; revision=247834
* Add drm and i915 ioctl translations for 32 bit process on 64 bit host.Konstantin Belousov2012-08-182-2/+12
| | | | | | | | Submitted by: meowthink@gmail.com MFC after: 2 weeks Notes: svn path=/head/; revision=239375
* The drm2 modules makefiles commit.Konstantin Belousov2012-05-234-0/+85
Still not attached to the build. Sponsored by: The FreeBSD Foundation MFC after: 1 month Notes: svn path=/head/; revision=235847