xref: /openbmc/linux/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.h (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
15073506cSJonathan Kim /*
25073506cSJonathan Kim  * Copyright 2020 Advanced Micro Devices, Inc.
35073506cSJonathan Kim  *
45073506cSJonathan Kim  * Permission is hereby granted, free of charge, to any person obtaining a
55073506cSJonathan Kim  * copy of this software and associated documentation files (the "Software"),
65073506cSJonathan Kim  * to deal in the Software without restriction, including without limitation
75073506cSJonathan Kim  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
85073506cSJonathan Kim  * and/or sell copies of the Software, and to permit persons to whom the
95073506cSJonathan Kim  * Software is furnished to do so, subject to the following conditions:
105073506cSJonathan Kim  *
115073506cSJonathan Kim  * The above copyright notice and this permission notice shall be included in
125073506cSJonathan Kim  * all copies or substantial portions of the Software.
135073506cSJonathan Kim  *
145073506cSJonathan Kim  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
155073506cSJonathan Kim  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
165073506cSJonathan Kim  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
175073506cSJonathan Kim  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
185073506cSJonathan Kim  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
195073506cSJonathan Kim  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
205073506cSJonathan Kim  * OTHER DEALINGS IN THE SOFTWARE.
215073506cSJonathan Kim  */
225073506cSJonathan Kim 
23*420185fdSGraham Sider int kgd_arcturus_hqd_sdma_load(struct amdgpu_device *adev, void *mqd,
245073506cSJonathan Kim 			     uint32_t __user *wptr, struct mm_struct *mm);
25*420185fdSGraham Sider int kgd_arcturus_hqd_sdma_dump(struct amdgpu_device *adev,
265073506cSJonathan Kim 			     uint32_t engine_id, uint32_t queue_id,
275073506cSJonathan Kim 			     uint32_t (**dump)[2], uint32_t *n_regs);
28*420185fdSGraham Sider bool kgd_arcturus_hqd_sdma_is_occupied(struct amdgpu_device *adev,
29*420185fdSGraham Sider 				void *mqd);
30*420185fdSGraham Sider int kgd_arcturus_hqd_sdma_destroy(struct amdgpu_device *adev, void *mqd,
315073506cSJonathan Kim 				unsigned int utimeout);
32