summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include
AgeCommit message (Collapse)AuthorFilesLines
2020-06-22apart from the lock wait_queue_head struct is unused so replace itjsg1-25/+25
2020-06-22don't try to decrement if completion flag is UINT_MAXjsg1-6/+11
2020-06-22in wait_for_completion_* return 0 on timeout -ERESTARTSYS on signaljsg1-14/+11
matches how the interfaces are documented
2020-06-21correct mutex_lock_interruptible()jsg1-2/+9
Linux kernel code often passes errors around as negative numbers cast to pointers. As rw_enter() returns a errno on failure mutex_lock_interruptible() negated the return value. But this did not account for ERESTART being -1 which would return 1 to the caller. sthen@ periodically hit a uvm_fault() in i915_request_create() which was caused by attempting to use 1 as a pointer. ok kettenis@
2020-06-19reduce the diff to linuxjsg1-0/+2
2020-06-17use atomic_set() in kref_init()jsg1-2/+2
2020-06-17kref_sub() interface was removed from linux and is unusedjsg1-8/+1
2020-06-17use WRITE_ONCE and READ_ONCE for set and readjsg1-6/+6
ok kettenis@
2020-06-16remove some unused definesjsg1-14/+6
2020-06-16implement atomic_inc_not_zero() by way of atomic_add_unless()jsg1-11/+3
2020-06-16remove a dead storejsg1-2/+2
2020-06-14rename our kunmap() to kunmap_va()jsg1-2/+2
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.
2020-06-14make IS_ERR() and IS_ERR_OR_NULL() return booljsg1-2/+2
2020-06-13use wakeup_one() in complete()jsg1-2/+2
ok kettenis@
2020-06-13use a unique wchan name for wait_for_completion()jsg1-2/+2
ok kettenis@
2020-06-12DRM_I915_FBDEV was replaced by DRM_FBDEV_EMULATIONjsg1-1/+0
2020-06-11handle sg_set_page() with NULL page argumentjsg1-2/+2
should fix problem reported by Laurence Tratt on bugs@ tweak and ok kettenis@
2020-06-09reduce the diff to linuxjsg1-0/+1
2020-06-08update drm to linux 5.7jsg230-2398/+11123
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.
2020-04-30Fix return value of dma_fence_wait(). Seems to fix occasionalkettenis1-1/+7
synchroniation problems when playing youtube videos in chrome. ok jsg@
2020-04-17Fix an incorrect test for root in drm linux compatiblity code.benno1-1/+1
Patch from and commited on behalf of Jonathan Gray (jsg@) ok kettenis@
2020-04-12Turn those spinlock and seqlock inline functions to macrosjca2-18/+25
They're macros on Linux because they save state in their flags parameter. Turning them to static inline functions creates a lot of -Wuninitialized warnings, so just use macros which set their flags argument. ok kettenis@
2020-03-04Properly implement the page fault handler for CMA GEM buffers and actuallykettenis2-2/+5
make drm(4) attach to rkdrm(4). This makes KMS work on the RK3399 SoC. ok patrick@
2020-03-03Clean up attachment of PCI drm(4) devices and make the PCI aspects optional.kettenis2-14/+1
ok jsg@
2020-02-21Add a DRM GEM CMA helper from NetBSD. Plenty of parts are stillpatrick1-0/+26
under ifdef for us, so for now we don't support SG tables or the GEM CMA ops, but at least it lets us create a simple framebuffer. ok kettenis@
2020-02-20Implement request_firmware_direct().kettenis1-0/+7
2020-02-20In signal_pending_state() only test for pending signal whenjsg1-1/+2
TASK_INTERRUPTIBLE (PCATCH) is set in the state argument. Spotted by and original diff from claudio@. ok claudio@
2020-02-18Cleanup <sys/kthread.h> and <sys/proc.h> includes.mpi2-4/+3
Do not include <sys/kthread.h> where it is not needed and stop including <sys/proc.h> in it. ok visa@, anton@
2020-02-18Use SIGPENDING() instead of CURSIG() for emulating signal_pending().claudio1-2/+2
There is no need for the additional work done by CURSIG(). seems reasonable jsg@
2020-01-28drm/panel: make drm_panel.h self-containedjsg1-0/+1
From Jani Nikula e34d8d2b2e2f49d1aa933a1e5f15d3e9ee9aa54b in linux 4.19.y/4.19.99 bf3f5e98559360661a3d2af340d46522512c0b00 in mainline linux
2020-01-22Remove empty unmap_mapping_range() define and hide drm_vma_node_unmap().jsg2-3/+3
Errors at compile time are preferred over being silently broken. ok kettenis@
2020-01-04remove unused TIOCSPGRP / TIOCGPGRP cases in drmjsg1-2/+0
async/SIGIO use likely came from DR1 context swapping for the "gamma" driver for 3dlabs GMX 2000, removed from the old upstream drm cvs repository in 2004: commit 1430163b4bbf7b00367ea1066c1c5fe85dbeefed Author: Dave Airlie <airlied@linux.ie> Date: Sun Aug 29 12:04:35 2004 +0000 Drop GAMMA DRM from a great height ... linux in 2005: commit 1fad99499afdd2730adb1d53413b91580b1f0662 Author: Dave Airlie <airlied@starflyer.(none)> Date: Fri Aug 5 22:40:34 2005 +1000 drm: remove the gamma driver and further remaining async bits removed from linux in 2013 with commit b0e898ac555e96e7863a5ee95d70f3625f1db5e2 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Thu Aug 8 15:41:23 2013 +0200 drm: remove FASYNC support pointed out by claudio@ ok visa@ kettenis@
2019-12-31drm: mst: Fix query_payload ack reply structjsg1-1/+1
From Sean Paul f015785ae7fbf7a817b74b4001f92ca3070aa718 in linux 4.19.y/4.19.92 268de6530aa18fe5773062367fd119f0045f6e88 in mainline linux
2019-12-30convert infinite msleep(9) to msleep_nsec(9)jsg1-3/+4
ok mpi@
2019-12-30Convert infinite sleeps to {m,t}sleep_nsec(9).mpi1-2/+2
ok jsg@
2019-12-26implement unregister_shrinker()jsg1-0/+1
ok kettenis@
2019-12-25Hook up the shrinker for inteldrm(4). This is a "light" version that onlykettenis4-1/+49
drops graphics buffers that are cached and not in active use. Help from beck@ for pointing out how to hook this up to our pagedaemon. ok jsg@
2019-12-18Allow pagefault_disable() to be called recursively, something that may happenkettenis1-5/+5
in inteldrm(4). ok guenther@
2019-11-29drm_sched_entity_flush() doesn't care about specific threads, so justguenther1-1/+1
track the process (and not the original thread of the process). ok jsg@ kettenis@
2019-11-24correct return type of sign_extend64()jsg1-3/+3
2019-11-13Fix off-by-one (truncation) in k{v,}asprintf().mpi1-4/+4
ok jsg@
2019-10-06add BL_CORE_SUSPENDRESUME definejsg1-0/+3
needed for next round of 4.19 patches
2019-09-16drm/vblank: Allow dynamic per-crtc max_vblank_countjsg2-0/+43
From Ville Syrjala 2b4f567912ad5f6653c557e424ee1bf85d8b6266 in linux 4.19.y/4.19.73 ed20151a7699bb2c77eba3610199789a126940c4 in mainline linux
2019-09-07define away dma_set_max_seg_size()jsg1-0/+1
needed for a future linux 4.19 change
2019-08-28Build and enable amdgpu(4) on arm64. The DCN1.0 support has been madekettenis2-3/+5
optional and will only be compiled for amd64/i386. Apparently this is only needed on Raven Ridge APUs. ok jsg@, patrick@, deraadt@
2019-08-24drm/i915/cml: Add CML PCI IDSjsg1-1/+27
From Anusha Srivatsa a7b4deeb02b978bc59808cb13c93ba84f01023a4 in mainline linux
2019-08-19define CONFIG_X86* in autoconf.h as needed and reduce diff to linuxjsg2-4/+12
ok kettenis@
2019-08-18Implement a few Linux compat ACPI interfaces and enable the ACPI supportkettenis7-32/+127
code in radeon(4) and amdgpu(4). ok jsg@
2019-08-17change drm memory barriers to be closer to what linux does onjsg1-7/+19
amd64 and i386 ok kettenis@
2019-08-14move CONFIG_DRM_FBDEV_EMULATION and CONFIG_BACKLIGHT_CLASS_DEVICEjsg2-4/+3
defines to kconfig.h with most of the others