summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* add BL_CORE_SUSPENDRESUME definejsg2019-10-061-0/+3
| | | | needed for next round of 4.19 patches
* drm/vblank: Allow dynamic per-crtc max_vblank_countjsg2019-09-162-0/+43
| | | | | | From Ville Syrjala 2b4f567912ad5f6653c557e424ee1bf85d8b6266 in linux 4.19.y/4.19.73 ed20151a7699bb2c77eba3610199789a126940c4 in mainline linux
* define away dma_set_max_seg_size()jsg2019-09-071-0/+1
| | | | needed for a future linux 4.19 change
* Build and enable amdgpu(4) on arm64. The DCN1.0 support has been madekettenis2019-08-282-3/+5
| | | | | | | optional and will only be compiled for amd64/i386. Apparently this is only needed on Raven Ridge APUs. ok jsg@, patrick@, deraadt@
* drm/i915/cml: Add CML PCI IDSjsg2019-08-241-1/+27
| | | | | From Anusha Srivatsa a7b4deeb02b978bc59808cb13c93ba84f01023a4 in mainline linux
* define CONFIG_X86* in autoconf.h as needed and reduce diff to linuxjsg2019-08-192-4/+12
| | | | ok kettenis@
* Implement a few Linux compat ACPI interfaces and enable the ACPI supportkettenis2019-08-187-32/+127
| | | | | | code in radeon(4) and amdgpu(4). ok jsg@
* change drm memory barriers to be closer to what linux does onjsg2019-08-171-7/+19
| | | | | | amd64 and i386 ok kettenis@
* move CONFIG_DRM_FBDEV_EMULATION and CONFIG_BACKLIGHT_CLASS_DEVICEjsg2019-08-142-4/+3
| | | | defines to kconfig.h with most of the others
* Don't match on amdgpu devices flagged as having experimental hardware supportjsg2019-08-131-0/+2
| | | | | | | (AMD_EXP_HW_SUPPORT) in the amdgpu_pciidlist table. Prompted by a report from Charlie Burnett that display doesn't light up with a Radeon VII (VEGA20).
* drm/i915: Fix I915_EXEC_RING_MASKjsg2019-07-291-1/+1
| | | | | | From Chris Wilson 554f4253700e09d2b9ef7a133c68e32389a48c81 in linux 4.19.y/4.19.50 d90c06d57027203f73021bb7ddb30b800d65c636 in mainline linux
* drm/edid: parse CEA blocks embedded in DisplayIDjsg2019-07-271-0/+10
| | | | | | From Andres Rodriguez 66a13b5e4e9cc7bb2c6a5d12a650df4309b77c46 in linux 4.19.y/4.19.61 e28ad544f462231d3fd081a7316339359efbb481 in mainline linux
* Remove old unused drm_debug_flag var and make drm_debug (used byjsg2019-07-252-5/+3
| | | | | | | drm_print) a var instead of a define in a header. Makes it easier to change without rebuilding everything and allows the value to be changed at runtime via ddb.
* Remove old DRM_READMEMORYBARRIER() DRM_WRITEMEMORYBARRIER() andjsg2019-07-251-39/+43
| | | | DRM_MEMORYBARRIER() definitions and directly define rmb() wmb() and mb().
* remove some unused macrosjsg2019-07-251-5/+1
|
* Get rid of `ddb_is_active' instead use `db_active'.mpi2019-07-202-5/+3
| | | | | | From Christian Ludwig <christian_ludwig at genua dot de> ok visa@
* add PCI_BUS_NUM()jsg2019-07-151-1/+2
|
* Add dmi functions used by drm_panel_orientation_quirks.c and enablejsg2019-07-153-3/+10
| | | | | | CONFIG_DMI path. ok mlarkin@ kettenis@
* include linux/string.h so drm_panel_orientation_quirks.c can get thejsg2019-07-111-1/+2
| | | | definition for match_string()
* Implement Linux kthread interfaces.kettenis2019-07-101-6/+7
| | | | ok jsg@
* add dma_fence_wait_any_timeout() required for parts of amdgpujsg2019-07-091-0/+3
| | | | ok kettenis@
* drm/amdgpu: simplify Raven, Raven2, and Picasso handlingjsg2019-07-041-1/+0
| | | | | From Alex Deucher 741deade2a704a434bd5939118c43d38e9ddac25 in mainline linux
* drm/amdgpu: add picasso to asic_type enumjsg2019-07-041-0/+1
| | | | | From Likun Gao be9699e3923000ea32c2f4522e1e4de333d21d47 in mainline linux
* Make seqlock_init() take an IPL argument so the engine stats lock whichjsg2019-07-041-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() andjsg2019-07-021-1/+1
| | | | | | spin_lock_irqsave() to closer match the linux interrupt blocking behaviour. Prompted by a discussion with kettenis@. ok kettenis@
* drm: add fallback override/firmware EDID modes workaroundjsg2019-06-301-0/+1
| | | | | | From Jani Nikula 04757d0e37897cdfa59050157b9083d661bd099e in linux 4.19.y/4.19.53 48eaeb7664c76139438724d520a1ea4a84a3ed92 in mainline linux
* drm: don't block fb changes for async plane updatesjsg2019-06-111-0/+8
| | | | | | From Helen Koike fbb7e114e6e690c46f170dedd6fd2fb22f241519 in linux 4.19.y/4.19.50 89a4aac0ab0e6f5eea10d7bf4869dd15c3de2cd4 in mainline linux
* Let drm(4) allocate memory without constraints if the hardware supportskettenis2019-06-091-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 bejsg2019-06-041-60/+2
| | | | one function with a single address.
* add amdgpu from linux 4.19.44 for recent AMD Radeon partsjsg2019-05-211-0/+2
| | | | | | | committing now so this can be worked on in tree Thanks to the OpenBSD Foundation for sponsoring this work and kettenis@ for helping.
* add in_irq() in_interrupt() in_task()jsg2019-05-131-0/+14
| | | | | | | in_irq() uses ci_idepth on archs that have it in_interrupt() is the same as in_irq() for now, linux has in_irq() for hard interrupt context and in_interrupt() is also for soft interrupt and nmi context.
* add idr_is_empty()jsg2019-05-131-1/+6
|
* remove unused STUB definitionjsg2019-05-121-6/+0
|
* implement dma_fence_arrayjsg2019-05-111-14/+17
|
* move irq_work bits into irq_work headerjsg2019-05-112-21/+50
|
* Add wait_event_killable(). In linux TASK_KILLABLE only gets fataljsg2019-05-081-1/+7
| | | | | signals, as we don't have an equivalent use PCATCH and check for all signals before and after msleep. Discussed with kettenis@.
* Fix overflow tests such that we can allocate arrays with zero items.kettenis2019-05-082-3/+3
| | | | | | | Linux allows this sillyness and it is needed to make X work on the integrated graphics on the AMD Ryzen 3 PRO 2200GE APU. ok jsg@
* add cmpxchg() with same implementation as atomic_cmpxchg()jsg2019-05-081-1/+2
|
* Improve the interaction between efifb(4), inteldrm(4) and radeondrm(4)kettenis2019-05-041-6/+5
| | | | | | | | | | | | | | | | when we have a serial console by introducing the notion of a "primary" graphics device. The primary graphics device is the one set up and used by firmware (BIOS, UEFI). The goal is to make sure that wsdisplay0 and drm0 reliably attach to the primary graphics device such that X works out of the box even if you have multiple cards or if you are using a serial console. This also fixes the situation where inteldrm(4) or radeondrm(4) would take over the console on UEFI systems even if the kernel was booted with a serial console. ok jsg@
* Avoid using an expression which resolves to an int in a bool contextjsg2019-05-011-2/+2
| | | | | when a nested macro is called with an expression argument. Prompted by -Wint-in-bool-context with gcc 8. ok kettenis@
* Remove file name and line number output from witness(4)visa2019-04-233-51/+33
| | | | | | | | | | | | | Reduce code clutter by removing the file name and line number output from witness(4). Typically it is easy enough to locate offending locks using the stack traces that are shown in lock order conflict reports. Tricky cases can be tracked using sysctl kern.witness.locktrace=1 . This patch additionally removes the witness(4) wrapper for mutexes. Now each mutex implementation has to invoke the WITNESS_*() macros in order to utilize the checker. Discussed with and OK dlg@, OK mpi@
* Linux code expects to find struct file in fs.h so include sys/file.hjsg2019-04-231-0/+1
| | | | | there. As sys/file.h does not have an include guard don't include it in drm_linux.c which indirectly includes fs.h via drmP.h.
* Fix rbtree_postorder_for_each_entry_safe() implementation. Fixes crasheskettenis2019-04-211-5/+33
| | | | | | seen with the "intel" X driver with the new inteldrm kernel driver. ok (and with help from) jsg@
* Update shared drm code, inteldrm(4) and radeondrm(4) from linux 4.4 tojsg2019-04-14270-0/+35385
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.