summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/ttm/ttm_page_alloc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use RWLOCK_INITIALIZER() in DEFINE_MUTEX()jsg2020-11-121-1/+1
| | | | | | | | | | Gives rwlocks defined this way a non-NULL rwl_name. Move ttm_pool_shrink_scan() DEFINE_MUTEX use out of function scope to fix build with WITNESS after this change and expand macro to have a better name than "lock". Found by and ok semarie@
* update drm to linux 5.7jsg2020-06-081-2/+2
| | | | | | | | | | 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.
* drm/ttm: fix incrementing the page pointer for huge pagesjsg2020-01-171-2/+2
| | | | | | From Christian Koenig 8c2cdfb2c81bb533b9e6a3874ee5399102c4c580 in linux 4.19.y/4.19.97 453393369dc9806d2455151e329c599684762428 in mainline linux
* drm/ttm: fix start page for huge page check in ttm_put_pages()jsg2020-01-171-2/+2
| | | | | | From Christian Koenig 83a88fb92950ef34b9924c39ff7554ae92c9af69 in linux 4.19.y/4.19.97 ac1e516d5a4c56bf0cb4a3dfc0672f689131cfd4 in mainline linux
* implement unregister_shrinker()jsg2019-12-261-2/+0
| | | | ok kettenis@
* enable shrinker for ttmjsg2019-12-261-7/+0
| | | | ok kettenis@
* drm/ttm: fix out-of-bounds read in ttm_put_pages() v2jsg2019-04-271-2/+3
| | | | | | From Christian Koenig 96800ba9e565ab752774cd88328f96aed28a1436 in linux 4.19.y/4.19.37 a66477b0efe511d98dde3e4aaeb189790e6f0a39 in mainline linux
* Update shared drm code, inteldrm(4) and radeondrm(4) from linux 4.4 tojsg2019-04-141-194/+468
| | | | | | | | | | | | | | | | | | | 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.
* update ttm and radeondrm(4) to Linux 4.4.129jsg2018-04-251-96/+114
| | | | | | | 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-120/+115
|
* syncderaadt2018-04-201-115/+120
|
* Implement set_pages_array_wb() and set_pages_array_wc() for powerpc. Sincekettenis2015-10-081-5/+7
| | | | | | | powerpc doesn't actually implement write-combining fall back to uncached mappings. ok mpi@, jsg@
* Switch remaining users of the FreeBSD refcount apis back to the originaljsg2015-09-271-8/+19
| | | | | | linux kref/kobject use. ok kettenis@
* change back to spinlock_t/DEFINE_SPINLOCKjsg2015-04-111-2/+2
|
* Switch most printf style functions calls back to linux function namesjsg2015-02-111-12/+12
| | | | and move DRM_INFO/pr_info/dev_info messages under DRMDEBUG.
* switch most mtx_* calls back to linux spinlocksjsg2015-02-101-13/+17
|
* Reduce uvm include madness. Use <uvm/uvm_extern.h> instead ofmpi2014-03-281-2/+2
| | | | | | <uvm/uvm.h> if possible and remove double inclusions. ok beck@, mlarkin@, deraadt@
* Remove and shuffle some includes to reduce their number since drmP.hmpi2014-03-251-2/+2
| | | | is included by a lot of files.
* Reduce dmesg spam. Apologies to stsp@ for rejecting his larger diff thatkettenis2014-02-241-2/+1
| | | | | | contained this bit. ok deraadt@
* use linux style memory allocations in ttmjsg2014-02-091-8/+8
|
* add static back to the ttm functionsjsg2013-12-081-52/+18
| | | | ok kettenis@
* Add a port of the TTM and Radeon DRM code from Linux 3.8.13.jsg2013-08-121-0/+981
Includes kernel modesetting, framebuffer console and support for newer hardware. Firmware needs to be present for acceleration and in some cases modesetting to work. It can be installed via fw_update or manually via pkg_add. With lots of help from kettenis@ some macppc bits from mpi@ and some ttm refcount/queue bits from FreeBSD. Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.