summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/amd
AgeCommit message (Collapse)AuthorFilesLines
2021-02-20remove warning about amdgpu userptr ioctl being unimplementedjsg1-1/+0
matches radeon and i915 reported by Benjamin Baier
2020-11-30Use DC_FP_START()/DC_FP_END() around dcn2.1 paths known to causejsg1-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@
2020-11-19The conversion of the IO BAR access did not completely mirror thepatrick1-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@
2020-10-28Switch from bus_space_read/write to linux io.h interfaces for alljsg6-71/+30
pci "memory space" io. Further reduces the diff to linux. ok kettenis@
2020-10-26Make mapping the "I/O Space" BAR optional. POWER9 systems don't supportkettenis1-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@
2020-10-21handle capable(CAP_SYS_NICE) for allowing high priority contextsjsg1-2/+0
2020-10-21change drm_vma function arguments to take struct drm_file *jsg1-1/+2
reduces the diff to linux 5.7.y ok kettenis@
2020-10-15consistently use dev_info() for sos fw version messagesjsg2-2/+2
noticed in renoir dmesg
2020-10-15don't print pci ids when amdgpu attachesjsg1-1/+22
Print asic name, rev and number of compute units. Suggested by and ok kettenis@
2020-10-15drm/amdgpu: move gpu_info parsing after common early initjsg1-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)
2020-10-15drm/amdgpu: move discovery gfx config fetchingjsg1-4/+3
From Alex Deucher 6ba57b7a8f94fcf3df6883db362642a0075d185b in mainline linux
2020-10-11Align pool items on CACHELINESIZE when replacing linux kmem_cache withjsg2-2/+2
SLAB_HWCACHE_ALIGN flag. tested by semarie@
2020-09-04drm/amdgpu: Fix buffer overflow in INFO ioctljsg1-0/+4
From Alex Deucher b5b97cab55eb71daba3283c8b1d2cce456d511a1 in mainline linux
2020-08-27bring back local #undef DEBUG changes lost in drm 5.7 updatejsg1-0/+4
fixes errors building with option DEBUG reported by phessler@
2020-08-26Revert "drm/amd/display: Improve DisplayPort monitor interop"jsg3-23/+8
From Alex Deucher 813b2c197929540e700dc3d42b2c8136795c5d4c in linux 5.7.y/5.7.18
2020-08-26drm/amd/display: fix pow() crashing when given base 0jsg1-0/+3
From Krunoslav Kovac b9d077f3781412f304968cf806f636ee91b4470e in linux 5.7.y/5.7.18 d2e59d0ff4c44d1f6f8ed884a5bea7d1bb7fd98c in mainline linux
2020-08-26drm/amd/display: Fix DFPstate hang due to view port changedjsg1-2/+2
From Paul Hsieh 3f88e2e7a7943ef07a384f653f01832600bb91dd in linux 5.7.y/5.7.18 8e80d482608a4e6a97c75272ef8b4bcfc5d0c490 in mainline linux
2020-08-26drm/amd/display: Blank stream before destroying HDCP sessionjsg1-2/+1
From Jaehyun Chung cdda25b43e0efb8df20a6f9956ff9091a1355328 in linux 5.7.y/5.7.18 79940e4d10df9c737a394630968471c632246ee0 in mainline linux
2020-08-26drm/amd/display: Fix EDID parsing after resume from suspendjsg1-0/+1
From Stylon Wang a4615f3893f39560dd3e71865e80bccd20330321 in linux 5.7.y/5.7.18 b24bdc37d03a0478189e20a50286092840f414fa in mainline linux
2020-08-26drm/amdgpu/display: use GFP_ATOMIC in dcn20_validate_bandwidth_internaljsg1-1/+1
From Daniel Kolesa 9917538295f9319dc7c6cf63d25eef89f302d81e in linux 5.7.y/5.7.18 f41ed88cbd6f025f7a683a11a74f901555fba11c in mainline linux
2020-08-22drm/amd/display: dchubbub p-state warning during surface planes switchjsg1-2/+67
From hersen wu adc8db21719668a4bf25ef0bef72c575d0a81cf5 in linux 5.7.y/5.7.17 8b0379a85762b516c7b46aed7dbf2a4947c00564 in mainline linux
2020-08-22drm/amd/display: Fix dmesg warning from setting abm leveljsg1-0/+23
From Stylon Wang bab191af99bd97db80ba19aafeea8081949bbe53 in linux 5.7.y/5.7.17 c5892a10218214d729699ab61bad6fc109baf0ce in mainline linux
2020-08-22drm/amdgpu: Fix bug where DPM is not enabled after hibernate and resumejsg1-1/+4
From Sandeep Raghuraman bac04cf4ea5cd6819828b33567f23431e2468708 in linux 5.7.y/5.7.17 f87812284172a9809820d10143b573d833cd3f75 in mainline linux
2020-08-22drm/amdgpu: fix ordering of psp suspendjsg1-4/+4
From Alex Deucher d0b3df5fdc668c07bb47cb3082124eb823066141 in linux 5.7.y/5.7.17
2020-08-22drm/amdgpu: ensure 0 is returned for success in jpeg_v2_5_wait_for_idlejsg1-1/+1
From Colin Ian King 251f7e2972a154e63d37b9423477309f68d4af9f in linux 5.7.y/5.7.16 57f01856645afe4c3d0f9915ee2bb043e8dd7982 in mainline linux
2020-08-22drm/amdgpu: use the unlocked drm_gem_object_putjsg1-1/+1
From Emil Velikov 6478b20d0364d70f32381123d1f717eaa486ec75 in linux 5.7.y/5.7.16 1a87f67a66de4ad0c0d79fd86b6c5273143387c3 in mainline linux
2020-08-22drm/amd/powerplay: suppress compile error around BUG_ONjsg1-2/+12
From Evan Quan ce8444749a649742fd88e5b9d05f352a478980ec in linux 5.7.y/5.7.16 75bc07e2403caea9ecac69f766dfb7dc33547594 in mainline linux
2020-08-22drm/amd/powerplay: fix compile error with ARCH=arcjsg1-1/+2
From Evan Quan e6132d0ce6f2ce0227722e42d236e30db3763cea in linux 5.7.y/5.7.16 9822ba2ead1baa3de4860ad9472f652c4cc78c9c in mainline linux
2020-08-22drm/amdgpu/display: properly guard the calls to swSMU functionsjsg1-2/+2
From Alex Deucher bb4960cc236b57708c44d11e272a9eeff66e90d9 in linux 5.7.y/5.7.16 4072327a2622af8688b88f5cd0a472136d3bf33d in mainline linux
2020-08-22drm/amdgpu/display bail early in dm_pp_get_static_clocksjsg1-0/+2
From Alex Deucher c2013b737bbde32f302575e6a1b74eb21cd419ca in linux 5.7.y/5.7.16 376814f5fcf1aadda501d1413d56e8af85d19a97 in mainline linux
2020-08-22drm/amd/display: Improve DisplayPort monitor interopjsg3-8/+23
From Aric Cyr aeb79d98b4b1e4007207936b7a8fb074a96c240f in linux 5.7.y/5.7.16 eec3303de3378cdfaa0bb86f43546dbbd88f94e2 in mainline linux
2020-08-22drm/amdgpu: avoid dereferencing a NULL pointerjsg1-7/+12
From Jack Xiao df1bd56e839e2461df3b0699a66d482e45ce2679 in linux 5.7.y/5.7.16 55611b507fd6453d26030c0c0619fdf0c262766d in mainline linux
2020-08-05drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()jsg1-1/+2
From Peilin Ye dd4672ba579a78f14dab65062d95c16f0835947b in linux 5.7.y/5.7.13 543e8669ed9bfb30545fd52bc0e047ca4df7fb31 in mainline linux
2020-08-05drm/amd/display: Clear dm_state for fast updatesjsg1-9/+27
From Mazin Rezk ee27c88788b88c9c1c75e3a9ce580c79c2dba009 in linux 5.7.y/5.7.13 fde9f39ac7f1ffd799a96ffa1e06b2051f0898f1 in mainline linux
2020-08-05Revert "drm/amdgpu: Fix NULL dereference in dpm sysfs handlers"jsg1-3/+6
From Alex Deucher f53aaf88742ccee0e9aa4ed7d700ceeb434d9a7a in linux 5.7.y/5.7.13 87004abfbc27261edd15716515d89ab42198b405 in mainline linux
2020-07-29drm/amd/powerplay: fix a crash when overclocking Vega Mjsg1-4/+6
From Qiu Wenbo b00f624573229df95e68308162da6c419ef0b2b2 in linux 5.7.y/5.7.11 88bb16ad998a0395fe4b346b7d3f621aaa0a2324 in mainline linux
2020-07-29drm/amdgpu: Fix NULL dereference in dpm sysfs handlersjsg1-6/+3
From Pawel Gronowski f69137b000ffcfc726e8f3d567e0b69b34a49649 in linux 5.7.y/5.7.11 38e0c89a19fd13f28d2b4721035160a3e66e270b in mainline linux
2020-07-29drm/amdgpu: fix preemption unit testjsg1-5/+15
From Jack Xiao 21869ebb9b74685d0668d42e55e628a29c969e62 in linux 5.7.y/5.7.11 d845a2051b6b673fab4229b920ea04c7c4352b51 in mainline linux
2020-07-29drm/amdgpu/gfx10: fix race condition for kiqjsg1-1/+8
From Jack Xiao d2b27b4f5b04bdce08df1b4e421b34fb2572ba97 in linux 5.7.y/5.7.11 7d65a577bb58d4f27a3398a4c0cb0b00ab7d0511 in mainline linux
2020-07-29drm/amd/display: add dmcub check on RENOIRjsg1-1/+1
From Aaron Ma ef176ba6acec80d11f1d8d7f998174b56e3c9620 in linux 5.7.y/5.7.11 3b2e973dff59d88bee1d814ddf8762a24fc02b60 in mainline linux
2020-07-29drm/amd/display: Check DMCU Exists Before Loadingjsg1-1/+6
From Jerry (Fangzhi) Zuo 984fafafde60f91b5bf8a31c3ba8ad7337496cc3 in linux 5.7.y/5.7.11 17bdb4a82fe5014c8aa5b2103c80c5729744a096 in mainline linux
2020-07-23drm/amdgpu/display: create fake mst encoders ahead of time (v4)jsg4-28/+48
From Alex Deucher 4c76a5a3db25f24accb12acf4a6f3707ee283761 in linux 5.7.y/5.7.10 3168470142e0a82b5732c04ed4c031a9322ae170 in mainline linux
2020-07-23drm/amd/display: OLED panel backlight adjust not work with external display connectedjsg1-0/+5
From hersen wu 702e13f8d26c6d18389c299347580783fef02bcd in linux 5.7.y/5.7.10 b448d30b0c303d5454ea572b772d1ffae96bc6e7 in mainline linux
2020-07-23drm/amd/display: handle failed allocation during stream constructionjsg1-3/+16
From Josip Pavic adfe5ec9ac3ff13e9dabe42216fb34a9e9c19738 in linux 5.7.y/5.7.10 be73e608ae2711dc8a1ab8b9549d9e348061b2ee in mainline linux
2020-07-23drm/amdgpu/sdma5: fix wptr overwritten in ->get_wptr()jsg1-18/+8
From Xiaojie Yuan 7c7df36732772d4f68e0ed50667ced18440bb2ad in linux 5.7.y/5.7.10 05051496b2622e4d12e2036b35165969aa502f89 in mainline linux
2020-07-23drm/amdgpu/powerplay: Modify SMC message name for setting power profile modejsg1-1/+1
From chen gong b22a2501543e9ebe88b8375652ad41715f1e765d in linux 5.7.y/5.7.10 98a34cf931e848f8489d3fb15a8f5fc03802ad65 in mainline linux
2020-07-16drm/amdgpu: asd function needs to be unloaded in suspend phasejsg1-0/+6
From Huang Rui 22ff658396b44606163ad0231e8215309a26d613 in linux 5.7.y/5.7.9 20303ec5d2165ee6344190274bc59118921f71d9 in mainline linux
2020-07-16drm/amdgpu: add TMR destory function for pspjsg1-4/+53
From Huang Rui 2c41c968c6f6480860c67210815cadc6507f5014 in linux 5.7.y/5.7.9 c564b8601ae917086751d90f464d5f19d731ece7 in mainline linux
2020-07-16drm/amdgpu: don't do soft recovery if gpu_recovery=0jsg1-1/+2
From Marek Olsak d7915047a1d59474d06789a9dd1925064969e080 in linux 5.7.y/5.7.9 f4892c327a8e5df7ce16cab40897daf90baf6bec in mainline linux
2020-07-13change some drm locks from IPL_TTY to IPL_NONEjsg6-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@