Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | apart from the lock wait_queue_head struct is unused so replace it | 2020-06-22 | 1 | -25/+25 | ||
| | ||||||
* | don't try to decrement if completion flag is UINT_MAX | 2020-06-22 | 1 | -6/+11 | ||
| | ||||||
* | in wait_for_completion_* return 0 on timeout -ERESTARTSYS on signal | 2020-06-22 | 1 | -14/+11 | ||
| | | | | matches how the interfaces are documented | |||||
* | correct mutex_lock_interruptible() | 2020-06-21 | 1 | -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@ | |||||
* | use atomic_set() in kref_init() | 2020-06-17 | 1 | -2/+2 | ||
| | ||||||
* | kref_sub() interface was removed from linux and is unused | 2020-06-17 | 1 | -8/+1 | ||
| | ||||||
* | use WRITE_ONCE and READ_ONCE for set and read | 2020-06-17 | 1 | -6/+6 | ||
| | | | | ok kettenis@ | |||||
* | remove some unused defines | 2020-06-16 | 1 | -14/+6 | ||
| | ||||||
* | implement atomic_inc_not_zero() by way of atomic_add_unless() | 2020-06-16 | 1 | -11/+3 | ||
| | ||||||
* | remove a dead store | 2020-06-16 | 1 | -2/+2 | ||
| | ||||||
* | rename our kunmap() to kunmap_va() | 2020-06-14 | 1 | -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. | |||||
* | make IS_ERR() and IS_ERR_OR_NULL() return bool | 2020-06-14 | 1 | -2/+2 | ||
| | ||||||
* | use wakeup_one() in complete() | 2020-06-13 | 1 | -2/+2 | ||
| | | | | ok kettenis@ | |||||
* | use a unique wchan name for wait_for_completion() | 2020-06-13 | 1 | -2/+2 | ||
| | | | | ok kettenis@ | |||||
* | handle sg_set_page() with NULL page argument | 2020-06-11 | 1 | -2/+2 | ||
| | | | | | should fix problem reported by Laurence Tratt on bugs@ tweak and ok kettenis@ | |||||
* | reduce the diff to linux | 2020-06-09 | 1 | -0/+1 | ||
| | ||||||
* | update drm to linux 5.7 | 2020-06-08 | 125 | -203/+1424 | ||
| | | | | | | | | | | 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. | |||||
* | Fix return value of dma_fence_wait(). Seems to fix occasional | 2020-04-30 | 1 | -1/+7 | ||
| | | | | | | synchroniation problems when playing youtube videos in chrome. ok jsg@ | |||||
* | Fix an incorrect test for root in drm linux compatiblity code. | 2020-04-17 | 1 | -1/+1 | ||
| | | | | | Patch from and commited on behalf of Jonathan Gray (jsg@) ok kettenis@ | |||||
* | Turn those spinlock and seqlock inline functions to macros | 2020-04-12 | 2 | -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@ | |||||
* | Implement request_firmware_direct(). | 2020-02-20 | 1 | -0/+7 | ||
| | ||||||
* | In signal_pending_state() only test for pending signal when | 2020-02-20 | 1 | -1/+2 | ||
| | | | | | | TASK_INTERRUPTIBLE (PCATCH) is set in the state argument. Spotted by and original diff from claudio@. ok claudio@ | |||||
* | Cleanup <sys/kthread.h> and <sys/proc.h> includes. | 2020-02-18 | 1 | -2/+2 | ||
| | | | | | | | Do not include <sys/kthread.h> where it is not needed and stop including <sys/proc.h> in it. ok visa@, anton@ | |||||
* | Use SIGPENDING() instead of CURSIG() for emulating signal_pending(). | 2020-02-18 | 1 | -2/+2 | ||
| | | | | | There is no need for the additional work done by CURSIG(). seems reasonable jsg@ | |||||
* | Remove empty unmap_mapping_range() define and hide drm_vma_node_unmap(). | 2020-01-22 | 1 | -2/+0 | ||
| | | | | | Errors at compile time are preferred over being silently broken. ok kettenis@ | |||||
* | convert infinite msleep(9) to msleep_nsec(9) | 2019-12-30 | 1 | -3/+4 | ||
| | | | | ok mpi@ | |||||
* | Convert infinite sleeps to {m,t}sleep_nsec(9). | 2019-12-30 | 1 | -2/+2 | ||
| | | | | ok jsg@ | |||||
* | implement unregister_shrinker() | 2019-12-26 | 1 | -0/+1 | ||
| | | | | ok kettenis@ | |||||
* | Hook up the shrinker for inteldrm(4). This is a "light" version that only | 2019-12-25 | 4 | -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@ | |||||
* | Allow pagefault_disable() to be called recursively, something that may happen | 2019-12-18 | 1 | -5/+5 | ||
| | | | | | | in inteldrm(4). ok guenther@ | |||||
* | correct return type of sign_extend64() | 2019-11-24 | 1 | -3/+3 | ||
| | ||||||
* | Fix off-by-one (truncation) in k{v,}asprintf(). | 2019-11-13 | 1 | -4/+4 | ||
| | | | | ok jsg@ | |||||
* | add BL_CORE_SUSPENDRESUME define | 2019-10-06 | 1 | -0/+3 | ||
| | | | | needed for next round of 4.19 patches | |||||
* | define away dma_set_max_seg_size() | 2019-09-07 | 1 | -0/+1 | ||
| | | | | needed for a future linux 4.19 change | |||||
* | Build and enable amdgpu(4) on arm64. The DCN1.0 support has been made | 2019-08-28 | 1 | -3/+3 | ||
| | | | | | | | optional and will only be compiled for amd64/i386. Apparently this is only needed on Raven Ridge APUs. ok jsg@, patrick@, deraadt@ | |||||
* | Implement a few Linux compat ACPI interfaces and enable the ACPI support | 2019-08-18 | 5 | -31/+88 | ||
| | | | | | | code in radeon(4) and amdgpu(4). ok jsg@ | |||||
* | change drm memory barriers to be closer to what linux does on | 2019-08-17 | 1 | -7/+19 | ||
| | | | | | | amd64 and i386 ok kettenis@ | |||||
* | move CONFIG_DRM_FBDEV_EMULATION and CONFIG_BACKLIGHT_CLASS_DEVICE | 2019-08-14 | 1 | -0/+2 | ||
| | | | | defines to kconfig.h with most of the others | |||||
* | Remove old DRM_READMEMORYBARRIER() DRM_WRITEMEMORYBARRIER() and | 2019-07-25 | 1 | -39/+43 | ||
| | | | | DRM_MEMORYBARRIER() definitions and directly define rmb() wmb() and mb(). | |||||
* | remove some unused macros | 2019-07-25 | 1 | -5/+1 | ||
| | ||||||
* | Get rid of `ddb_is_active' instead use `db_active'. | 2019-07-20 | 2 | -5/+3 | ||
| | | | | | | From Christian Ludwig <christian_ludwig at genua dot de> ok visa@ | |||||
* | add PCI_BUS_NUM() | 2019-07-15 | 1 | -1/+2 | ||
| | ||||||
* | Add dmi functions used by drm_panel_orientation_quirks.c and enable | 2019-07-15 | 3 | -3/+10 | ||
| | | | | | | CONFIG_DMI path. ok mlarkin@ kettenis@ | |||||
* | include linux/string.h so drm_panel_orientation_quirks.c can get the | 2019-07-11 | 1 | -1/+2 | ||
| | | | | definition for match_string() | |||||
* | Implement Linux kthread interfaces. | 2019-07-10 | 1 | -6/+7 | ||
| | | | | ok jsg@ | |||||
* | add dma_fence_wait_any_timeout() required for parts of amdgpu | 2019-07-09 | 1 | -0/+3 | ||
| | | | | ok kettenis@ | |||||
* | Make seqlock_init() take an IPL argument so the engine stats lock which | 2019-07-04 | 1 | -2/+2 | ||
| | | | | uses write_seqlock_irqsave() will be backed by a mutex with IPL_TTY. | |||||
* | Use IPL_TTY for locks used as arguments to spin_lock_irq() and | 2019-07-02 | 1 | -1/+1 | ||
| | | | | | | spin_lock_irqsave() to closer match the linux interrupt blocking behaviour. Prompted by a discussion with kettenis@. ok kettenis@ | |||||
* | Let drm(4) allocate memory without constraints if the hardware supports | 2019-06-09 | 1 | -12/+13 | ||
| | | | | | | | | | 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@ | |||||
* | Move a function used as a callback out of a header so there will only be | 2019-06-04 | 1 | -60/+2 | ||
| | | | | one function with a single address. |