summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/i915/gem (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused `anon' argument from uvmfault_unlockall().mpi2020-11-061-5/+5
| | | | | | | | | It won't be used when amap and anon locking will be introduced. This "fixes" passing a unrelated/uninitialized pointer in an error path in case of memory shortage. ok kettenis@
* handle capable(CAP_SYS_NICE) for allowing high priority contextsjsg2020-10-211-4/+0
|
* change drm_vma function arguments to take struct drm_file *jsg2020-10-212-3/+3
| | | | | reduces the diff to linux 5.7.y ok kettenis@
* use drm_mm from linux 5.7.yjsg2020-10-201-6/+0
| | | | | | | | | | | | | | | | | Without this boot time tests from setting amdgpu_testing = 1 fail. For example on Vega 56: drm: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF ... [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0xa00000 [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0xb00000 ... [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0x1fe00000 [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0x1ff00000 [drm] *ERROR* 0xffff80000135f858 bind failed Error while testing BO move ok kettenis@
* move ifdef to make it clear we don't use __create_shmem()jsg2020-10-131-6/+2
|
* Align pool items on CACHELINESIZE when replacing linux kmem_cache withjsg2020-10-111-1/+1
| | | | | | SLAB_HWCACHE_ALIGN flag. tested by semarie@
* use drm_cache.c from linux 5.7.yjsg2020-09-131-2/+0
| | | | ok kettenis@
* change some drm locks from IPL_TTY to IPL_NONEjsg2020-07-132-3/+3
| | | | | | | | In drm linux spinlocks are mapped to mutex(9). Locks without calls to spin_lock_irqsave(), spin_lock_irq() and the like (which block interrupts) can be changed to IPL_NONE. ok kettenis@
* drm/i915/gem: Avoid iterating an empty listjsg2020-06-261-6/+9
| | | | | | From Chris Wilson 42765cb3887c2eea8a65f665a58f42b4ee6333c1 in linux 5.7.y/5.7.6 757a9395f33c51c4e6eff2c7c0fbd50226a58224 in mainline linux
* gup: document and work around "COW can break either way" issuejsg2020-06-221-0/+8
| | | | | | From Linus Torvalds 8e45fdafdecc8436c5b6e1620c30726056e6b29c in linux 5.7.y/5.7.3 17839856fd588f4ab6b789f482ed3ffd7c403e1f in mainline linux
* rename our kunmap() to kunmap_va()jsg2020-06-141-1/+1
| | | | | | | In linux kunmap() has a page struct * argument our kunmap() has a void * argument which results in uncoverted uses building but doing the wrong thing. Renaming will catch any codepaths that need to be changed at compile time.
* update drm to linux 5.7jsg2020-06-0858-0/+23414
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.