summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/drm_fb_helper.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* drm/drm_fb_helper: fix fbdev with sparc64jsg2020-08-121-1/+5
| | | | | | From Sam Ravnborg cea0a7943a30a6d0320c8558a844dd27e8f0aa8b in linux 5.7.y/5.7.15 2a1658bf922ffd9b7907e270a7d9cdc9643fc45d in mainline linux
* defer access of fb_info pointer in drm_fb_helper_hotplug_event()jsg2020-07-061-1/+2
| | | | | Fixes a regression from rev 1.24 which lead to a page fault reported by Martin Ziemer. ok stsp@
* drm/fb-helper: Fix vt restorejsg2020-07-021-18/+57
| | | | | | From Daniel Vetter 7b6902118146835fa67b52f624576d30b1c9e09f in linux 5.7.y/5.7.7 dc5bdb68b5b369d5bc7d1de96fa64cc1737a6320 in mainline linux
* don't warn on entry to drm_fb_helper_set_suspend_unlocked()jsg2020-06-301-2/+1
| | | | we don't have a console lock like linux does
* On hotplug event call driver specific fb_set_par if available instead ofjsg2020-06-281-1/+5
| | | | | | | | | directly calling drm_fb_helper_set_par(). Avoids a problem where rc output and login prompt were not seen without switching to a vt and back on some intel machines with skylake and newer graphics. diff from stsp@ who tracked this problem down ok stsp@ kettenis@
* reduce the diff to linuxjsg2020-06-191-4/+0
|
* update drm to linux 5.7jsg2020-06-081-1397/+339
| | | | | | | | | | 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.
* drm/fb-helper: generic: Call drm_client_add() after setup is donejsg2020-01-281-2/+2
| | | | | | From Noralf Tronnes 6c5df6f63e8f98fe89c41c879385105bd0952248 in linux 4.19.y/4.19.99 6e3f17ee73f7e3c2ef0e2c8fd8624b2ece8ef2c9 in mainline linux
* drm/fb-helper: generic: Fix setup error pathjsg2020-01-281-40/+58
| | | | | | From Noralf Tronnes 66779aa306b37b3789e7acae0b60017b7c3a51d3 in linux 4.19.y/4.19.99 6e1490cf439aa86b104e5124c36275b964238e1f in mainline linux
* drm/fb-helper: Round up bits_per_pixel if possiblejsg2020-01-151-1/+6
| | | | | | From Geert Uytterhoeven 779f5790fa47d8175b7346449a036f37f5717778 in linux 4.19.y/4.19.96 f30e27779d3031a092c2a177b7fb76adccc45241 in mainline linux
* When no display outputs are connected on boot linux 4.19 drm relies onjsg2019-09-091-2/+10
| | | | | | | | | | | | | | | | deferred setup to handle the console framebuffer where as linux 4.4 drm created a 1024x768 console framebuffer in this situation. As we only handle setting up rasops and wsdisplay on attach go back to the old behaviour for now so a display can be connected after booting with none attached to interact with the console. This partly reverts linux commit drm/fb-helper: Support deferred setup ca91a2758fcef6635626993557dd51cfbb6dd134 Reported and tested by Marcus MERIGHI. Tested by and ok kettenis@
* drm/fb-helper: generic: Don't take module ref for fbconjsg2019-07-111-2/+4
| | | | | | From Noralf Tronnes e9fde78c3a4f7f374ffe589771f08e119d0879aa in linux 4.19.y/4.19.58 6ab20a05f4c7ed45632e24d5397d6284e192567d in mainline linux
* 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@
* Convert a linux specific test for master in currently disabled code.jsg2019-04-301-1/+1
|
* Add an equivalent test for master in drm_fb_helper_is_bound()jsg2019-04-301-0/+3
| | | | | | | Prevents black screens on hotplugging a new display with Xorg running which required a vt switch for screens to be useable. Reported by various people on misc@. Tested by and ok sthen@
* Update shared drm code, inteldrm(4) and radeondrm(4) from linux 4.4 tojsg2019-04-141-656/+1757
| | | | | | | | | | | | | | | | | | | 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 inteldrm(4) to code based on Linux 4.4.70. This brings us support forkettenis2017-07-011-220/+798
| | | | | | | | Skylake and Cherryview and better support for Broadwell and Valleyview. Also adds MST support. Some tweaks to the TTM code and radeondrm(4) to keep it working with the updated generic DRM code needed for inteldrm(4). Tested by many.
* Enable monitor hot plugging for the framebuffer console.kettenis2015-09-271-24/+7
| | | | | Tested on the VGA port of a Radeon 7500 and Radeon 9250 (aka 9200 PRO). Hopefully this works on Intel Graphics as well.
* Update inteldrm to the code from Linux 3.14.52 (which corresponds tokettenis2015-09-231-94/+308
| | | | | | | | | | | | | | | | | commit 48f8f36a6c8018c2b36ea207aaf68ef5326c5075 on the linux-3.14.y branch of the linux-stable tree). This brings preliminary support for the GPU on Intel's Broadwell CPUs. Don't expect these to work perfectly yet. There are some remaining issues with older hardware as well, but no significant regressions have been uncovered. This also updates some of drm core code. The radeondrm code remains based on Linux 3.8 with some minimal canges to adjust to changes in the core drm APIs. Joint effort with jsg@, who did the initial update of the relevant drm core bits. Committing this early to make sure it gets more testing and make it possible for others to help getting the remaining wrinkles straightened out.
* Switch most printf style functions calls back to linux function namesjsg2015-02-111-4/+4
| | | | and move DRM_INFO/pr_info/dev_info messages under DRMDEBUG.
* switch most mtx_* calls back to linux spinlocksjsg2015-02-101-3/+3
|
* use linux function names when locking mode configjsg2015-02-101-6/+6
|
* use linux style memory allocations in shared drm codejsg2014-03-091-31/+25
|
* add static back to functions that originally had itjsg2013-09-021-107/+40
| | | | reduces the diff to linux
* Add a port of the TTM and Radeon DRM code from Linux 3.8.13.jsg2013-08-121-13/+3
| | | | | | | | | | | | | | 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.
* burner supportkettenis2013-05-161-7/+4
|
* make a few printfs debug only to reduce dmesg spamjsg2013-03-191-2/+2
|
* Significantly increase the wordlist for ddb hangman,jsg2013-03-181-0/+1533
and update our device independent DRM code and the Intel DRM code to be mostly in sync with Linux 3.8.3. Among other things this brings support for kernel modesetting and enables use of the rings on gen6+ Intel hardware. Based on some earlier work from matthieu@ with some hints from FreeBSD and with lots of help from kettenis@ (including a beautiful accelerated wscons framebuffer console!) Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.