summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/amd/amdgpu
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-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-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/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-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/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-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-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@
2020-07-09drm/amdgpu/atomfirmware: fix vram_info fetching for renoirjsg1-0/+1
From Alex Deucher fceff9423f428a62a20bb8fb8f66e6a9f906f12c in linux 5.7.y/5.7.8 d7a6634a4cfba073ff6a526cb4265d6e58ece234 in mainline linux
2020-07-09drm/amdgpu: use %u rather than %d for sclk/mclkjsg1-2/+2
From Alex Deucher c337fc540bb99e476e33153a9196eba4749a707a in linux 5.7.y/5.7.8 beaf10efca64ac824240838ab1f054dfbefab5e6 in mainline linux
2020-07-09drm/amdgpu: fix kernel page fault issue by ras recovery on sGPUjsg1-2/+3
From Guchun Chen 18b1cf2968e1baa883dbdf6adef6213626beaa0f in linux 5.7.y/5.7.8 12c17b9d62663c14a5343d6742682b3e67280754 in mainline linux
2020-07-09drm/amdgpu: fix non-pointer dereference for non-RAS supportedjsg1-2/+2
From Evan Quan 9c33bf981fab14ffbde2635d6e3d7d0818bac5a8 in linux 5.7.y/5.7.8 a9d82d2f91297679cfafd7e61c4bccdca6cd550d in mainline linux
2020-07-09drm/amdgpu: disable ras query and iject during gpu resetjsg3-3/+28
From John Clements 50a8cfb0e71644f2882dbfaf93150184094245bd in linux 5.7.y/5.7.8 61380faa4b4cc577df8a7ff5db5859bac6b351f7 in mainline linux
2020-07-02drm/amdgpu: add fw release for sdma v5_0jsg1-1/+5
From Wenhui Sheng cfece0241468bc49d339c3c90ead98278063ae0f in linux 5.7.y/5.7.7 edfaf6fa73f15568d4337f208b2333f647c35810 in mainline linux
2020-06-29remove now unused varjsg1-1/+0
found the hard way by deraadt@ on sparc64
2020-06-28set fb_set_par and have register_framebuffer() do initial modesetjsg2-6/+4
2020-06-22drm/amdgpu: Sync with VM root BO when switching VM to CPU update modejsg1-2/+9
From Felix Kuehling 8db9696c1fdfa3d80e29ee80d002f315e4e344a9 in linux 5.7.y/5.7.5 90ca78deb004abe75b5024968a199acb96bb70f9 in mainline linux
2020-06-22drm/amd/powerpay: Disable gfxoff when setting manual mode on picasso and ravenjsg1-0/+9
From chen gong 4e88ff94dd359871f609da9f430712fcf7025164 in linux 5.7.y/5.7.5 cbd2d08c7463e78d625a69e9db27ad3004cbbd99 in mainline linux
2020-06-22drm/amdgpu: Init data to avoid oops while reading pp_num_states.jsg1-1/+4
From limingyu 4ceae1cf8ca686b64a68822677ef0fb69a917c4e in linux 5.7.y/5.7.5 6f81b2d047c59eb77cd04795a44245d6a52cdaec in mainline linux
2020-06-22drm/amdgpu: fix and cleanup amdgpu_gem_object_close v4jsg1-18/+25
From Christian Koenig ba90bed3ea632a6cff527dea080336666f36ab2b in linux 5.7.y/5.7.5 82c416b13cb7d22b96ec0888b296a48dff8a09eb in mainline linux
2020-06-12Silence amdgpu_device_resize_fb_bar; supporting resizing of PCI BARs iskettenis1-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.
2020-06-12Make amdgpu_irq_add_domain silent; this functionality is only needed tokettenis1-4/+2
support digital audio output which we don't support (yet) in OpenBSD.
2020-06-08update drm to linux 5.7jsg269-23319/+68534
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.
2020-05-25change wsdisplay attribute type from long to uint32_tjsg1-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@
2020-05-25rename wsdisplay alloc_attr() to pack_attr()jsg1-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@
2020-05-15drm/amdgpu: Change VCE booting with firmware loaded by PSPjsg1-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
2020-05-15drm/amdgpu:change VEGA booting with firmware loaded by PSPjsg1-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
2020-05-11drm/amdgpu: Fix oops when pp_funcs is unset in ACPI eventjsg1-1/+2
From Aaron Ma 74edc32fda52b684a9af99dd65aa7745a170a18d in linux 4.19.y/4.19.122 5932d260a8d85a103bd6c504fbb85ff58b156bf9 in mainline linux
2020-04-15drm/amdgpu: fix typo for vcn1 idle checkjsg1-1/+1
From James Zhu 7b9d4492808eb3c3ba43f6391b138101a7e9e42e in linux 4.19.y/4.19.115 acfc62dc68770aa665cc606891f6df7d6d1e52c0 in mainline linux
2020-03-26drm/amd/amdgpu: Fix GPR read from debugfs (v2)jsg1-3/+3
From Tom St Denis 053a9862f0202cdcda9c56778dd98396a7cb3513 in linux 4.19.y/4.19.113 5bbc6604a62814511c32f2e39bc9ffb2c1b92cbe in mainline linux
2020-03-21drm/amd/display: remove duplicated assignment to grph_obj_typejsg1-2/+1
From Colin Ian King bef7177cefad180b9776ed49290d42bfb873da1e in linux 4.19.y/4.19.111 d785476c608c621b345dd9396e8b21e90375cb0e in mainline linux