summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/drm_linux.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* update drm to linux 5.7jsg2020-06-081-106/+0
| | | | | | | | | | adds kernel support for amdgpu: vega20, raven2, renoir, navi10, navi14 inteldrm: icelake, tigerlake Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for helping, patrick@ for helping adapt rockchip drm and many developers for testing.
* Update shared drm code, inteldrm(4) and radeondrm(4) from linux 4.4 tojsg2019-04-141-2696/+30
| | | | | | | | | | | | | | | | | | | linux 4.19.34. Adds support for more Intel hardware: Broxton/Apollo Lake (was is_preliminary in 4.4) Amber Lake (another Kaby Lake refresh) Gemini Lake Coffee Lake Whiskey Lake Cannon Lake (though no hardware with Intel graphics ever shipped) Ice Lake (alpha support, hardware not released) This does not add support for new radeon hardware on the AMD side as newer radeons have a different kernel driver (amdgpu). Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for helping and a bunch of other developers for testing.
* Add support to uvm to establish write-combining mappings. Use this in thekettenis2018-10-311-3/+3
| | | | | | inteldrm driver to add support for the I915_MMAP_WC flag. ok deraadt@, jsg@
* Add arm64 support. On ARM write-combining translates into the normal uncachedkettenis2018-08-201-1/+21
| | | | | | | | | memory attribute and uncached translates into device-nGnRnE memory. This complicates the mapping onto PMAP_WC, PMAP_NOCACHE and PMAP_DEVICE a bit since the requirements of the drm(4) subsystem don't quite match the natural definitions for these. ok jsg@, mpi@, visa@
* Use the MI interrupt enable/distable API instead of the MD one on amd64 andkettenis2018-07-271-3/+3
| | | | | | remove the MD API. ok guenther@, deraadt@, mpi@
* Implement DRI3/prime support. This allows graphics buffers to be passedkettenis2018-06-251-1/+36
| | | | | | | | between processes using file descriptors. This provides an alternative to eporting them with guesable 32-bit IDs. This implementation does not (yet) allow sharing of graphics buffers between GPUs. ok mpi@, visa@
* update ttm and radeondrm(4) to Linux 4.4.129jsg2018-04-251-19/+407
| | | | | | | Compared to the previous Linux 3.8 based port this adds support for KAVERI/KABINI/MULLINS APUs and OLAND/BONAIRE/HAINAN/HAWAII GPUs. Thanks to the OpenBSD Foundation for sponsoring this work.
* oops, snapshot tests not ready yetderaadt2018-04-201-413/+19
|
* syncderaadt2018-04-201-19/+413
|
* handle failure better in release_firmware()/request_firmware()jsg2018-04-181-3/+5
| | | | | | | | | Alloc the containing struct with M_ZERO so if loadfirmware() fails and doesn't set the pointer we won't try to free an address based on uninitialised memory. Use M_DEVBUF not M_DRM when freeing the buffer allocated by loadfirmware().
* Remove almost unused `flags' argument of suser().mpi2018-02-191-2/+2
| | | | | | | The account flag `ASU' will no longer be set but that makes suser() mpsafe since it no longer mess with a per-process field. No objection from millert@, ok tedu@, bluhm@
* adjust container_of() for const usejsg2018-01-311-2/+2
| | | | | avoids -Wincompatible-pointer-types-discards-qualifiers build errors with radeon_ucode.c
* add pci_is_root_bus()jsg2018-01-311-1/+8
|
* add dmi_match() and change dmi_found() to use itjsg2018-01-311-1/+2
|
* add more pci defines and pci_pcie_cap()/pcie_capability_read_dword()jsg2018-01-301-1/+32
|
* add module_init()/module_exit()/signal_pending()jsg2018-01-301-1/+4
|
* add stubs for pci_clear_master()/pci_save_state()/pci_restore_state()/jsg2018-01-301-1/+6
| | | | pci_set_power_state()
* add mutex_destroy()/down_read_trylock()jsg2018-01-301-1/+3
|
* add create_singlethread_workqueue()/system_power_efficient_wqjsg2018-01-301-1/+10
|
* add pm_runtime_* stubsjsg2018-01-301-1/+13
|
* Don't limit vga_switcheroo stubs to amd64/i386 and addjsg2018-01-301-3/+4
| | | | vga_switcheroo_fini_domain_pm_ops() stub.
* add iowrite64()/writeq()jsg2018-01-301-1/+8
|
* add GFP_USER/__user/vmalloc()jsg2018-01-301-1/+12
|
* add ilog2()/order_base_2()/gcd()jsg2018-01-301-1/+24
|
* disable -Wformat-zero-length when building with gccjsg2018-01-301-1/+3
| | | | | | | -Wformat includes -Wformat-zero-length with gcc 4.2 which breaks building unmodified atom.c with the SDEBUG macro "warning: zero-length kprintf format string"
* add i2c_bit_add_bus()jsg2018-01-301-1/+3
|
* add more endian macrosjsg2018-01-301-3/+10
|
* Switch the inteldrm(4) i2c code over to the Linux code base. This gives uskettenis2018-01-151-2/+13
| | | | | | | | several quirks that wre absent in the old OpenBSD-specific reimplementation. Fixes several issues with external connectors on several generations of hardware. ok deraadt@, benno@
* Add a linux compatible request_firmware() wrapper around loadfirmware(9).jsg2018-01-131-2/+12
| | | | ok deraadt@ kettenis@
* fix this on sparc64 (or maybe gcc)dlg2017-11-291-4/+4
| | | | ok jmatthew@ guenther@ kettenis@
* Revise the linux sleeping compat code to avoid lock ordering problems.kettenis2017-11-271-69/+85
| | | | | | Based on a diff from mpi@. ok guenther@, mpi@
* Add additional errno values required by POSIX.jsg2017-09-051-2/+1
| | | | ok jca@ kettenis@ deraadt@
* Make the vga_client_register() stub available to all archs to unbreakjsg2017-08-141-7/+7
| | | | | the drm build on non amd64/i386 archs after recent changes prompted by a coverity scan. Reported by miod.
* Provide a stub implementation for request_irq() and free_irq().mpi2017-08-121-1/+5
| | | | | | Fix Coverity CID 1453484 and reduce diff with Linux. ok kettenis@
* Always provide _mtx_* APIs, the use those to simplify the WITNESS wrappersguenther2017-08-121-42/+1
| | | | | | elsewhere ok visa@ kettenis@
* Add glue for passing through file+line when WITNESS is enabledguenther2017-08-101-1/+54
| | | | ok kettenis@
* Introduce jiffies, a volatile unsigned long version of our ticks variablekettenis2017-07-221-8/+7
| | | | | | | | | | | for use by the linux compatibility APIs in drm(4). While I hate infecting code in sys/kern with this, untangling all the of having different types and different signedness is too much for me right now. The best strategy may be to change ticks itself to be long but that needs some careful auditing. ok deraadt@
* Implement a proper hash table instead of lumping evrything into a singlekettenis2017-07-171-10/+37
| | | | list.
* Add some more i2c glue to reduce the diffs to Linux.kettenis2017-07-141-46/+53
|
* Add a "Backlight" property to connectors with an associated backlightkettenis2017-07-121-3/+7
| | | | | | | controller for the inteldrm(4) driver. If wscons(4) provides backlight control, prefer ir over raw hardware control and attach it to LVDS, eDP and DSI connectors which are the connector types typically connected to laptop screens.
* You win some, you los some. The Linux 4.4 code is still sub-standard butkettenis2017-07-071-2/+2
| | | | | | triggers different warnings now. ok naddy@
* Fix native/raw backlight support in inteldrm(4).kettenis2017-07-051-1/+35
|
* Enable MIPI/DSI support for inteldrm(4). Makes the display on my ASUSkettenis2017-07-021-1/+40
| | | | Transformer Book T100HA work (with some ugly error/warning messages).
* Update inteldrm(4) to code based on Linux 4.4.70. This brings us support forkettenis2017-07-011-56/+667
| | | | | | | | Skylake and Cherryview and better support for Broadwell and Valleyview. Also adds MST support. Some tweaks to the TTM code and radeondrm(4) to keep it working with the updated generic DRM code needed for inteldrm(4). Tested by many.
* The Linux code really isn't up to the same standard as our other code, andkettenis2017-05-261-1/+10
| | | | | | | clang complains about it a lot. Since we don't want to fix the code, suppress certain warnings using #pragma clang diagnostic. ok jsg@
* Always evaluate expression in BUG_ON() macro to avoid unused variablebluhm2017-04-161-2/+6
| | | | | warnings. Makes non diagnostic kernel compile. OK kettenis@
* Various printf claim to report the PID, so actually report that and not the TIDguenther2016-10-081-6/+6
| | | | ok kettenis@ tedu@
* Add an implementation of the Linux "idr" API.kettenis2016-04-051-1/+21
|
* Add vma offset manager code.kettenis2016-04-051-1/+6
| | | | ok jsg@
* Implement acpi_get_table_with_size(). Will soon be used to read VFCTkettenis2016-02-051-1/+16
| | | | tables in radeondrm(4).