summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/amd/amdgpu (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
* 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@
* 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/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
* 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/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/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: 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@
* drm/amdgpu/atomfirmware: fix vram_info fetching for renoirjsg2020-07-091-0/+1
| | | | | | From Alex Deucher fceff9423f428a62a20bb8fb8f66e6a9f906f12c in linux 5.7.y/5.7.8 d7a6634a4cfba073ff6a526cb4265d6e58ece234 in mainline linux
* drm/amdgpu: use %u rather than %d for sclk/mclkjsg2020-07-091-2/+2
| | | | | | From Alex Deucher c337fc540bb99e476e33153a9196eba4749a707a in linux 5.7.y/5.7.8 beaf10efca64ac824240838ab1f054dfbefab5e6 in mainline linux
* drm/amdgpu: fix kernel page fault issue by ras recovery on sGPUjsg2020-07-091-2/+3
| | | | | | From Guchun Chen 18b1cf2968e1baa883dbdf6adef6213626beaa0f in linux 5.7.y/5.7.8 12c17b9d62663c14a5343d6742682b3e67280754 in mainline linux
* drm/amdgpu: fix non-pointer dereference for non-RAS supportedjsg2020-07-091-2/+2
| | | | | | From Evan Quan 9c33bf981fab14ffbde2635d6e3d7d0818bac5a8 in linux 5.7.y/5.7.8 a9d82d2f91297679cfafd7e61c4bccdca6cd550d in mainline linux
* drm/amdgpu: disable ras query and iject during gpu resetjsg2020-07-093-3/+28
| | | | | | From John Clements 50a8cfb0e71644f2882dbfaf93150184094245bd in linux 5.7.y/5.7.8 61380faa4b4cc577df8a7ff5db5859bac6b351f7 in mainline linux
* drm/amdgpu: add fw release for sdma v5_0jsg2020-07-021-1/+5
| | | | | | From Wenhui Sheng cfece0241468bc49d339c3c90ead98278063ae0f in linux 5.7.y/5.7.7 edfaf6fa73f15568d4337f208b2333f647c35810 in mainline linux
* remove now unused varjsg2020-06-291-1/+0
| | | | found the hard way by deraadt@ on sparc64
* set fb_set_par and have register_framebuffer() do initial modesetjsg2020-06-282-6/+4
|
* drm/amdgpu: Sync with VM root BO when switching VM to CPU update modejsg2020-06-221-2/+9
| | | | | | From Felix Kuehling 8db9696c1fdfa3d80e29ee80d002f315e4e344a9 in linux 5.7.y/5.7.5 90ca78deb004abe75b5024968a199acb96bb70f9 in mainline linux
* drm/amd/powerpay: Disable gfxoff when setting manual mode on picasso and ravenjsg2020-06-221-0/+9
| | | | | | From chen gong 4e88ff94dd359871f609da9f430712fcf7025164 in linux 5.7.y/5.7.5 cbd2d08c7463e78d625a69e9db27ad3004cbbd99 in mainline linux
* drm/amdgpu: Init data to avoid oops while reading pp_num_states.jsg2020-06-221-1/+4
| | | | | | From limingyu 4ceae1cf8ca686b64a68822677ef0fb69a917c4e in linux 5.7.y/5.7.5 6f81b2d047c59eb77cd04795a44245d6a52cdaec in mainline linux
* drm/amdgpu: fix and cleanup amdgpu_gem_object_close v4jsg2020-06-221-18/+25
| | | | | | From Christian Koenig ba90bed3ea632a6cff527dea080336666f36ab2b in linux 5.7.y/5.7.5 82c416b13cb7d22b96ec0888b296a48dff8a09eb in mainline linux
* Silence amdgpu_device_resize_fb_bar; supporting resizing of PCI BARs iskettenis2020-06-121-24/+2
| | | | | | tricky and using the pre-programmed BAR size should always work. Using bigger BARs might improve performance but it we probably need other changes (such as making the driver mpsafe) to benefit from that.
* Make amdgpu_irq_add_domain silent; this functionality is only needed tokettenis2020-06-121-4/+2
| | | | support digital audio output which we don't support (yet) in OpenBSD.
* update drm to linux 5.7jsg2020-06-08269-23360/+68575
| | | | | | | | | | 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.
* change wsdisplay attribute type from long to uint32_tjsg2020-05-251-3/+3
| | | | | | | | miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
* rename wsdisplay alloc_attr() to pack_attr()jsg2020-05-251-1/+1
| | | | | | | | Suggested by John Carmack. miod agrees a rename would make sense and explained it was initially thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. ok mpi@
* drm/amdgpu: Change VCE booting with firmware loaded by PSPjsg2020-05-151-4/+9
| | | | | | | | | From James Zhu aa5873dca46385454d36c3dca31d66d7b64574be in mainline linux prevents hang on boot with vega10_sos.bin firmware from linux-firmware 20200421 https://bugs.freedesktop.org/show_bug.cgi?id=110733
* drm/amdgpu:change VEGA booting with firmware loaded by PSPjsg2020-05-151-4/+5
| | | | | | | | | From Feifei Xu bfcea5204287b0a09dac71fa56a5d066d94d9bb1 in mainline linux prevents hang on boot with vega10_sos.bin firmware from linux-firmware 20200421 https://bugs.freedesktop.org/show_bug.cgi?id=110733
* drm/amdgpu: Fix oops when pp_funcs is unset in ACPI eventjsg2020-05-111-1/+2
| | | | | | From Aaron Ma 74edc32fda52b684a9af99dd65aa7745a170a18d in linux 4.19.y/4.19.122 5932d260a8d85a103bd6c504fbb85ff58b156bf9 in mainline linux
* drm/amdgpu: fix typo for vcn1 idle checkjsg2020-04-151-1/+1
| | | | | | From James Zhu 7b9d4492808eb3c3ba43f6391b138101a7e9e42e in linux 4.19.y/4.19.115 acfc62dc68770aa665cc606891f6df7d6d1e52c0 in mainline linux
* drm/amd/amdgpu: Fix GPR read from debugfs (v2)jsg2020-03-261-3/+3
| | | | | | From Tom St Denis 053a9862f0202cdcda9c56778dd98396a7cb3513 in linux 4.19.y/4.19.113 5bbc6604a62814511c32f2e39bc9ffb2c1b92cbe in mainline linux
* drm/amd/display: remove duplicated assignment to grph_obj_typejsg2020-03-211-2/+1
| | | | | | From Colin Ian King bef7177cefad180b9776ed49290d42bfb873da1e in linux 4.19.y/4.19.111 d785476c608c621b345dd9396e8b21e90375cb0e in mainline linux