summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/amd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove warning about amdgpu userptr ioctl being unimplementedjsg2021-02-201-1/+0
| | | | | matches radeon and i915 reported by Benjamin Baier
* Use DC_FP_START()/DC_FP_END() around dcn2.1 paths known to causejsg2020-11-301-0/+6
| | | | | | | | | | | SSE FP exception traps, update_bw_bounding_box() and dcn20_populate_dml_pipes_from_context(). The scope around the dcn20_fast_validate_bw() call is large to match DC_FP_START()/DC_FP_END() use in dcn20_resource.c and avoid the situation where a dcn2.0 path would have nested DC_FP_START() calls. ok kettenis@
* The conversion of the IO BAR access did not completely mirror thepatrick2020-11-191-6/+22
| | | | | | | | | | | | behaviour of Linux' implementation: arm64's bus space operations have no barriers, so while Linux' iowrite32/ioread32 explicitly contain barriers, using bus space read/write is not enough on arm64. Add read barriers after a read to make sure that all reads have completed before the following reads. Add write barriers before a write to make sure all previous writes have completed before that write. This fixes panics on the HoneyComb LX2K with amdgpu(4). ok kettenis@
* Switch from bus_space_read/write to linux io.h interfaces for alljsg2020-10-286-71/+30
| | | | | | pci "memory space" io. Further reduces the diff to linux. ok kettenis@
* Make mapping the "I/O Space" BAR optional. POWER9 systems don't supportkettenis2020-10-261-14/+7
| | | | | | | "I/O Space" on their PCIe host bridges and for most (all) Radeon variants there is an alternative method to access the relevant registers. ok jsg@
* handle capable(CAP_SYS_NICE) for allowing high priority contextsjsg2020-10-211-2/+0
|
* change drm_vma function arguments to take struct drm_file *jsg2020-10-211-1/+2
| | | | | reduces the diff to linux 5.7.y ok kettenis@
* consistently use dev_info() for sos fw version messagesjsg2020-10-152-2/+2
| | | | noticed in renoir dmesg
* don't print pci ids when amdgpu attachesjsg2020-10-151-1/+22
| | | | | Print asic name, rev and number of compute units. Suggested by and ok kettenis@
* drm/amdgpu: move gpu_info parsing after common early initjsg2020-10-151-4/+4
| | | | | | | | From Alex Deucher 6e29c227a4976460ec6d4cc70b998e3a8c30c873 in mainline linux needed to load the correct gpu info firmware on raven2 (Ryzen 3 3200U/Ryzen 3 3250U/Athlon 300U/Athlon 3000G)
* drm/amdgpu: move discovery gfx config fetchingjsg2020-10-151-4/+3
| | | | | From Alex Deucher 6ba57b7a8f94fcf3df6883db362642a0075d185b in mainline linux
* Align pool items on CACHELINESIZE when replacing linux kmem_cache withjsg2020-10-112-2/+2
| | | | | | SLAB_HWCACHE_ALIGN flag. tested by semarie@
* drm/amdgpu: Fix buffer overflow in INFO ioctljsg2020-09-041-0/+4
| | | | | From Alex Deucher b5b97cab55eb71daba3283c8b1d2cce456d511a1 in mainline linux
* bring back local #undef DEBUG changes lost in drm 5.7 updatejsg2020-08-271-0/+4
| | | | fixes errors building with option DEBUG reported by phessler@
* Revert "drm/amd/display: Improve DisplayPort monitor interop"jsg2020-08-263-23/+8
| | | | | From Alex Deucher 813b2c197929540e700dc3d42b2c8136795c5d4c in linux 5.7.y/5.7.18
* drm/amd/display: fix pow() crashing when given base 0jsg2020-08-261-0/+3
| | | | | | From Krunoslav Kovac b9d077f3781412f304968cf806f636ee91b4470e in linux 5.7.y/5.7.18 d2e59d0ff4c44d1f6f8ed884a5bea7d1bb7fd98c in mainline linux
* drm/amd/display: Fix DFPstate hang due to view port changedjsg2020-08-261-2/+2
| | | | | | From Paul Hsieh 3f88e2e7a7943ef07a384f653f01832600bb91dd in linux 5.7.y/5.7.18 8e80d482608a4e6a97c75272ef8b4bcfc5d0c490 in mainline linux
* drm/amd/display: Blank stream before destroying HDCP sessionjsg2020-08-261-2/+1
| | | | | | From Jaehyun Chung cdda25b43e0efb8df20a6f9956ff9091a1355328 in linux 5.7.y/5.7.18 79940e4d10df9c737a394630968471c632246ee0 in mainline linux
* drm/amd/display: Fix EDID parsing after resume from suspendjsg2020-08-261-0/+1
| | | | | | From Stylon Wang a4615f3893f39560dd3e71865e80bccd20330321 in linux 5.7.y/5.7.18 b24bdc37d03a0478189e20a50286092840f414fa in mainline linux
* drm/amdgpu/display: use GFP_ATOMIC in dcn20_validate_bandwidth_internaljsg2020-08-261-1/+1
| | | | | | From Daniel Kolesa 9917538295f9319dc7c6cf63d25eef89f302d81e in linux 5.7.y/5.7.18 f41ed88cbd6f025f7a683a11a74f901555fba11c in mainline linux
* drm/amd/display: dchubbub p-state warning during surface planes switchjsg2020-08-221-2/+67
| | | | | | From hersen wu adc8db21719668a4bf25ef0bef72c575d0a81cf5 in linux 5.7.y/5.7.17 8b0379a85762b516c7b46aed7dbf2a4947c00564 in mainline linux
* drm/amd/display: Fix dmesg warning from setting abm leveljsg2020-08-221-0/+23
| | | | | | From Stylon Wang bab191af99bd97db80ba19aafeea8081949bbe53 in linux 5.7.y/5.7.17 c5892a10218214d729699ab61bad6fc109baf0ce in mainline linux
* drm/amdgpu: Fix bug where DPM is not enabled after hibernate and resumejsg2020-08-221-1/+4
| | | | | | From Sandeep Raghuraman bac04cf4ea5cd6819828b33567f23431e2468708 in linux 5.7.y/5.7.17 f87812284172a9809820d10143b573d833cd3f75 in mainline linux
* drm/amdgpu: fix ordering of psp suspendjsg2020-08-221-4/+4
| | | | | From Alex Deucher d0b3df5fdc668c07bb47cb3082124eb823066141 in linux 5.7.y/5.7.17
* drm/amdgpu: ensure 0 is returned for success in jpeg_v2_5_wait_for_idlejsg2020-08-221-1/+1
| | | | | | From Colin Ian King 251f7e2972a154e63d37b9423477309f68d4af9f in linux 5.7.y/5.7.16 57f01856645afe4c3d0f9915ee2bb043e8dd7982 in mainline linux
* drm/amdgpu: use the unlocked drm_gem_object_putjsg2020-08-221-1/+1
| | | | | | From Emil Velikov 6478b20d0364d70f32381123d1f717eaa486ec75 in linux 5.7.y/5.7.16 1a87f67a66de4ad0c0d79fd86b6c5273143387c3 in mainline linux
* drm/amd/powerplay: suppress compile error around BUG_ONjsg2020-08-221-2/+12
| | | | | | From Evan Quan ce8444749a649742fd88e5b9d05f352a478980ec in linux 5.7.y/5.7.16 75bc07e2403caea9ecac69f766dfb7dc33547594 in mainline linux
* drm/amd/powerplay: fix compile error with ARCH=arcjsg2020-08-221-1/+2
| | | | | | From Evan Quan e6132d0ce6f2ce0227722e42d236e30db3763cea in linux 5.7.y/5.7.16 9822ba2ead1baa3de4860ad9472f652c4cc78c9c in mainline linux
* drm/amdgpu/display: properly guard the calls to swSMU functionsjsg2020-08-221-2/+2
| | | | | | From Alex Deucher bb4960cc236b57708c44d11e272a9eeff66e90d9 in linux 5.7.y/5.7.16 4072327a2622af8688b88f5cd0a472136d3bf33d in mainline linux
* drm/amdgpu/display bail early in dm_pp_get_static_clocksjsg2020-08-221-0/+2
| | | | | | From Alex Deucher c2013b737bbde32f302575e6a1b74eb21cd419ca in linux 5.7.y/5.7.16 376814f5fcf1aadda501d1413d56e8af85d19a97 in mainline linux
* drm/amd/display: Improve DisplayPort monitor interopjsg2020-08-223-8/+23
| | | | | | From Aric Cyr aeb79d98b4b1e4007207936b7a8fb074a96c240f in linux 5.7.y/5.7.16 eec3303de3378cdfaa0bb86f43546dbbd88f94e2 in mainline linux
* drm/amdgpu: avoid dereferencing a NULL pointerjsg2020-08-221-7/+12
| | | | | | From Jack Xiao df1bd56e839e2461df3b0699a66d482e45ce2679 in linux 5.7.y/5.7.16 55611b507fd6453d26030c0c0619fdf0c262766d in mainline linux
* drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()jsg2020-08-051-1/+2
| | | | | | From Peilin Ye dd4672ba579a78f14dab65062d95c16f0835947b in linux 5.7.y/5.7.13 543e8669ed9bfb30545fd52bc0e047ca4df7fb31 in mainline linux
* drm/amd/display: Clear dm_state for fast updatesjsg2020-08-051-9/+27
| | | | | | From Mazin Rezk ee27c88788b88c9c1c75e3a9ce580c79c2dba009 in linux 5.7.y/5.7.13 fde9f39ac7f1ffd799a96ffa1e06b2051f0898f1 in mainline linux
* Revert "drm/amdgpu: Fix NULL dereference in dpm sysfs handlers"jsg2020-08-051-3/+6
| | | | | | From Alex Deucher f53aaf88742ccee0e9aa4ed7d700ceeb434d9a7a in linux 5.7.y/5.7.13 87004abfbc27261edd15716515d89ab42198b405 in mainline linux
* drm/amd/powerplay: fix a crash when overclocking Vega Mjsg2020-07-291-4/+6
| | | | | | From Qiu Wenbo b00f624573229df95e68308162da6c419ef0b2b2 in linux 5.7.y/5.7.11 88bb16ad998a0395fe4b346b7d3f621aaa0a2324 in mainline linux
* drm/amdgpu: Fix NULL dereference in dpm sysfs handlersjsg2020-07-291-6/+3
| | | | | | From Pawel Gronowski f69137b000ffcfc726e8f3d567e0b69b34a49649 in linux 5.7.y/5.7.11 38e0c89a19fd13f28d2b4721035160a3e66e270b in mainline linux
* drm/amdgpu: fix preemption unit testjsg2020-07-291-5/+15
| | | | | | From Jack Xiao 21869ebb9b74685d0668d42e55e628a29c969e62 in linux 5.7.y/5.7.11 d845a2051b6b673fab4229b920ea04c7c4352b51 in mainline linux
* drm/amdgpu/gfx10: fix race condition for kiqjsg2020-07-291-1/+8
| | | | | | From Jack Xiao d2b27b4f5b04bdce08df1b4e421b34fb2572ba97 in linux 5.7.y/5.7.11 7d65a577bb58d4f27a3398a4c0cb0b00ab7d0511 in mainline linux
* drm/amd/display: add dmcub check on RENOIRjsg2020-07-291-1/+1
| | | | | | From Aaron Ma ef176ba6acec80d11f1d8d7f998174b56e3c9620 in linux 5.7.y/5.7.11 3b2e973dff59d88bee1d814ddf8762a24fc02b60 in mainline linux
* drm/amd/display: Check DMCU Exists Before Loadingjsg2020-07-291-1/+6
| | | | | | From Jerry (Fangzhi) Zuo 984fafafde60f91b5bf8a31c3ba8ad7337496cc3 in linux 5.7.y/5.7.11 17bdb4a82fe5014c8aa5b2103c80c5729744a096 in mainline linux
* drm/amdgpu/display: create fake mst encoders ahead of time (v4)jsg2020-07-234-28/+48
| | | | | | From Alex Deucher 4c76a5a3db25f24accb12acf4a6f3707ee283761 in linux 5.7.y/5.7.10 3168470142e0a82b5732c04ed4c031a9322ae170 in mainline linux
* drm/amd/display: OLED panel backlight adjust not work with external display connectedjsg2020-07-231-0/+5
| | | | | | From hersen wu 702e13f8d26c6d18389c299347580783fef02bcd in linux 5.7.y/5.7.10 b448d30b0c303d5454ea572b772d1ffae96bc6e7 in mainline linux
* drm/amd/display: handle failed allocation during stream constructionjsg2020-07-231-3/+16
| | | | | | From Josip Pavic adfe5ec9ac3ff13e9dabe42216fb34a9e9c19738 in linux 5.7.y/5.7.10 be73e608ae2711dc8a1ab8b9549d9e348061b2ee in mainline linux
* drm/amdgpu/sdma5: fix wptr overwritten in ->get_wptr()jsg2020-07-231-18/+8
| | | | | | From Xiaojie Yuan 7c7df36732772d4f68e0ed50667ced18440bb2ad in linux 5.7.y/5.7.10 05051496b2622e4d12e2036b35165969aa502f89 in mainline linux
* drm/amdgpu/powerplay: Modify SMC message name for setting power profile modejsg2020-07-231-1/+1
| | | | | | From chen gong b22a2501543e9ebe88b8375652ad41715f1e765d in linux 5.7.y/5.7.10 98a34cf931e848f8489d3fb15a8f5fc03802ad65 in mainline linux
* drm/amdgpu: asd function needs to be unloaded in suspend phasejsg2020-07-161-0/+6
| | | | | | From Huang Rui 22ff658396b44606163ad0231e8215309a26d613 in linux 5.7.y/5.7.9 20303ec5d2165ee6344190274bc59118921f71d9 in mainline linux
* drm/amdgpu: add TMR destory function for pspjsg2020-07-161-4/+53
| | | | | | From Huang Rui 2c41c968c6f6480860c67210815cadc6507f5014 in linux 5.7.y/5.7.9 c564b8601ae917086751d90f464d5f19d731ece7 in mainline linux
* drm/amdgpu: don't do soft recovery if gpu_recovery=0jsg2020-07-161-1/+2
| | | | | | From Marek Olsak d7915047a1d59474d06789a9dd1925064969e080 in linux 5.7.y/5.7.9 f4892c327a8e5df7ce16cab40897daf90baf6bec in mainline linux
* change some drm locks from IPL_TTY to IPL_NONEjsg2020-07-136-7/+7
| | | | | | | | 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@