summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/ttm/ttm_tt.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Call ttm_tt_unpopulate() instead of directly calling ttm_tt_unpopulatejsg2020-12-081-1/+1
| | | | | | function pointer in ttm_tt_swapout(). Reduces the diff to linux. ok kettenis@
* correct ttm_tt error paths if bus_dmamap_create() failsjsg2020-12-081-2/+9
| | | | | | | | Avoids a double free of gtt in amdgpu_ttm_tt_create() if the bus_dmamap_create() call in ttm_sg_tt_init() fails and ttm_tt_destroy() calls amdgpu_ttm_backend_destroy(). feedback from and ok kettenis@
* drm/ttm/nouveau: don't call tt destroy callback on alloc failure.jsg2020-08-221-3/+0
| | | | | | From Dave Airlie 7387ad86fe8ef830e88a586b021b322eef316211 in linux 5.7.y/5.7.16 5de5b6ecf97a021f29403aa272cb4e03318ef586 in mainline linux
* update drm to linux 5.7jsg2020-06-081-4/+4
| | | | | | | | | | 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.
* Use km_alloc() instead of mallocarray() when allocating ttm dma segmentsjsg2019-06-111-7/+10
| | | | to avoid running out of kmem space. Suggested by and ok kettenis@
* Let drm(4) allocate memory without constraints if the hardware supportskettenis2019-06-091-2/+8
| | | | | | | | | 64-bit DMA. Should reduce the pressure on DMA-reachable memory, which is important since there are still cases where the pagedaemon ends up being triggered continuously if we run out of DMA-reachable memory but have plenty of memory left. ok jsg@
* Update shared drm code, inteldrm(4) and radeondrm(4) from linux 4.4 tojsg2019-04-141-65/+197
| | | | | | | | | | | | | | | | | | | 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-13/+36
| | | | | | | 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-36/+13
|
* syncderaadt2018-04-201-13/+36
|
* Switch most printf style functions calls back to linux function namesjsg2015-02-111-3/+3
| | | | and move DRM_INFO/pr_info/dev_info messages under DRMDEBUG.
* drm/ttm: fix the tt_populated check in ttm_tt_destroy()jsg2014-02-101-2/+2
| | | | | | From Ben Skeggs 43a1ab9ba9d7c0d97e7079a09438fe1b4209e318 in ubuntu 3.8 182b17c8dc4e83aab000ce86587b6810e515da87 in mainline linux
* add static back to the ttm functionsjsg2013-12-081-35/+16
| | | | ok kettenis@
* Add a port of the TTM and Radeon DRM code from Linux 3.8.13.jsg2013-08-121-0/+396
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.