2019-07-09 22:59:30 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2019 Advanced Micro Devices, Inc.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
|
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
|
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/fdtable.h>
|
|
|
|
#include <linux/uaccess.h>
|
|
|
|
#include <linux/mmu_context.h>
|
|
|
|
#include <linux/firmware.h>
|
|
|
|
#include "amdgpu.h"
|
|
|
|
#include "amdgpu_amdkfd.h"
|
|
|
|
#include "sdma0/sdma0_4_2_2_offset.h"
|
|
|
|
#include "sdma0/sdma0_4_2_2_sh_mask.h"
|
|
|
|
#include "sdma1/sdma1_4_2_2_offset.h"
|
|
|
|
#include "sdma1/sdma1_4_2_2_sh_mask.h"
|
|
|
|
#include "sdma2/sdma2_4_2_2_offset.h"
|
|
|
|
#include "sdma2/sdma2_4_2_2_sh_mask.h"
|
|
|
|
#include "sdma3/sdma3_4_2_2_offset.h"
|
|
|
|
#include "sdma3/sdma3_4_2_2_sh_mask.h"
|
|
|
|
#include "sdma4/sdma4_4_2_2_offset.h"
|
|
|
|
#include "sdma4/sdma4_4_2_2_sh_mask.h"
|
|
|
|
#include "sdma5/sdma5_4_2_2_offset.h"
|
|
|
|
#include "sdma5/sdma5_4_2_2_sh_mask.h"
|
|
|
|
#include "sdma6/sdma6_4_2_2_offset.h"
|
|
|
|
#include "sdma6/sdma6_4_2_2_sh_mask.h"
|
|
|
|
#include "sdma7/sdma7_4_2_2_offset.h"
|
|
|
|
#include "sdma7/sdma7_4_2_2_sh_mask.h"
|
|
|
|
#include "v9_structs.h"
|
|
|
|
#include "soc15.h"
|
|
|
|
#include "soc15d.h"
|
|
|
|
#include "amdgpu_amdkfd_gfx_v9.h"
|
2019-12-03 12:23:41 +08:00
|
|
|
#include "gfxhub_v1_0.h"
|
|
|
|
#include "mmhub_v9_4.h"
|
2019-07-09 22:59:30 +08:00
|
|
|
|
|
|
|
#define HQD_N_REGS 56
|
|
|
|
#define DUMP_REG(addr) do { \
|
|
|
|
if (WARN_ON_ONCE(i >= HQD_N_REGS)) \
|
|
|
|
break; \
|
|
|
|
(*dump)[i][0] = (addr) << 2; \
|
|
|
|
(*dump)[i++][1] = RREG32(addr); \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd)
|
|
|
|
{
|
|
|
|
return (struct amdgpu_device *)kgd;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline struct v9_sdma_mqd *get_sdma_mqd(void *mqd)
|
|
|
|
{
|
|
|
|
return (struct v9_sdma_mqd *)mqd;
|
|
|
|
}
|
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
static uint32_t get_sdma_rlc_reg_offset(struct amdgpu_device *adev,
|
2019-07-09 22:59:30 +08:00
|
|
|
unsigned int engine_id,
|
|
|
|
unsigned int queue_id)
|
|
|
|
{
|
2019-12-14 00:31:48 +08:00
|
|
|
uint32_t sdma_engine_reg_base = 0;
|
|
|
|
uint32_t sdma_rlc_reg_offset;
|
|
|
|
|
|
|
|
switch (engine_id) {
|
|
|
|
default:
|
|
|
|
dev_warn(adev->dev,
|
|
|
|
"Invalid sdma engine id (%d), using engine id 0\n",
|
|
|
|
engine_id);
|
|
|
|
/* fall through */
|
|
|
|
case 0:
|
|
|
|
sdma_engine_reg_base = SOC15_REG_OFFSET(SDMA0, 0,
|
|
|
|
mmSDMA0_RLC0_RB_CNTL) - mmSDMA0_RLC0_RB_CNTL;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
sdma_engine_reg_base = SOC15_REG_OFFSET(SDMA1, 0,
|
|
|
|
mmSDMA1_RLC0_RB_CNTL) - mmSDMA1_RLC0_RB_CNTL;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
sdma_engine_reg_base = SOC15_REG_OFFSET(SDMA2, 0,
|
|
|
|
mmSDMA2_RLC0_RB_CNTL) - mmSDMA2_RLC0_RB_CNTL;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
sdma_engine_reg_base = SOC15_REG_OFFSET(SDMA3, 0,
|
|
|
|
mmSDMA3_RLC0_RB_CNTL) - mmSDMA3_RLC0_RB_CNTL;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
sdma_engine_reg_base = SOC15_REG_OFFSET(SDMA4, 0,
|
|
|
|
mmSDMA4_RLC0_RB_CNTL) - mmSDMA4_RLC0_RB_CNTL;
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
sdma_engine_reg_base = SOC15_REG_OFFSET(SDMA5, 0,
|
|
|
|
mmSDMA5_RLC0_RB_CNTL) - mmSDMA5_RLC0_RB_CNTL;
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
sdma_engine_reg_base = SOC15_REG_OFFSET(SDMA6, 0,
|
|
|
|
mmSDMA6_RLC0_RB_CNTL) - mmSDMA6_RLC0_RB_CNTL;
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
sdma_engine_reg_base = SOC15_REG_OFFSET(SDMA7, 0,
|
|
|
|
mmSDMA7_RLC0_RB_CNTL) - mmSDMA7_RLC0_RB_CNTL;
|
|
|
|
break;
|
|
|
|
}
|
2019-07-09 22:59:30 +08:00
|
|
|
|
2019-12-14 00:31:48 +08:00
|
|
|
sdma_rlc_reg_offset = sdma_engine_reg_base
|
2019-09-22 05:46:03 +08:00
|
|
|
+ queue_id * (mmSDMA0_RLC1_RB_CNTL - mmSDMA0_RLC0_RB_CNTL);
|
2019-07-09 22:59:30 +08:00
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
pr_debug("RLC register offset for SDMA%d RLC%d: 0x%x\n", engine_id,
|
2019-12-14 00:31:48 +08:00
|
|
|
queue_id, sdma_rlc_reg_offset);
|
2019-07-09 22:59:30 +08:00
|
|
|
|
2019-12-14 00:31:48 +08:00
|
|
|
return sdma_rlc_reg_offset;
|
2019-07-09 22:59:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static int kgd_hqd_sdma_load(struct kgd_dev *kgd, void *mqd,
|
|
|
|
uint32_t __user *wptr, struct mm_struct *mm)
|
|
|
|
{
|
|
|
|
struct amdgpu_device *adev = get_amdgpu_device(kgd);
|
|
|
|
struct v9_sdma_mqd *m;
|
2019-09-22 05:46:03 +08:00
|
|
|
uint32_t sdma_rlc_reg_offset;
|
2019-07-09 22:59:30 +08:00
|
|
|
unsigned long end_jiffies;
|
|
|
|
uint32_t data;
|
|
|
|
uint64_t data64;
|
|
|
|
uint64_t __user *wptr64 = (uint64_t __user *)wptr;
|
|
|
|
|
|
|
|
m = get_sdma_mqd(mqd);
|
2019-09-22 05:46:03 +08:00
|
|
|
sdma_rlc_reg_offset = get_sdma_rlc_reg_offset(adev, m->sdma_engine_id,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdma_queue_id);
|
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_CNTL,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdmax_rlcx_rb_cntl & (~SDMA0_RLC0_RB_CNTL__RB_ENABLE_MASK));
|
|
|
|
|
|
|
|
end_jiffies = msecs_to_jiffies(2000) + jiffies;
|
|
|
|
while (true) {
|
2019-09-22 05:46:03 +08:00
|
|
|
data = RREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_CONTEXT_STATUS);
|
2019-07-09 22:59:30 +08:00
|
|
|
if (data & SDMA0_RLC0_CONTEXT_STATUS__IDLE_MASK)
|
|
|
|
break;
|
2019-09-20 00:42:34 +08:00
|
|
|
if (time_after(jiffies, end_jiffies)) {
|
|
|
|
pr_err("SDMA RLC not idle in %s\n", __func__);
|
2019-07-09 22:59:30 +08:00
|
|
|
return -ETIME;
|
2019-09-20 00:42:34 +08:00
|
|
|
}
|
2019-07-09 22:59:30 +08:00
|
|
|
usleep_range(500, 1000);
|
|
|
|
}
|
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_DOORBELL_OFFSET,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdmax_rlcx_doorbell_offset);
|
|
|
|
|
|
|
|
data = REG_SET_FIELD(m->sdmax_rlcx_doorbell, SDMA0_RLC0_DOORBELL,
|
|
|
|
ENABLE, 1);
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_DOORBELL, data);
|
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_RPTR,
|
|
|
|
m->sdmax_rlcx_rb_rptr);
|
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_RPTR_HI,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdmax_rlcx_rb_rptr_hi);
|
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_MINOR_PTR_UPDATE, 1);
|
2019-07-09 22:59:30 +08:00
|
|
|
if (read_user_wptr(mm, wptr64, data64)) {
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_WPTR,
|
2019-07-09 22:59:30 +08:00
|
|
|
lower_32_bits(data64));
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_WPTR_HI,
|
2019-07-09 22:59:30 +08:00
|
|
|
upper_32_bits(data64));
|
|
|
|
} else {
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_WPTR,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdmax_rlcx_rb_rptr);
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_WPTR_HI,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdmax_rlcx_rb_rptr_hi);
|
|
|
|
}
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_MINOR_PTR_UPDATE, 0);
|
2019-07-09 22:59:30 +08:00
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_BASE, m->sdmax_rlcx_rb_base);
|
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_BASE_HI,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdmax_rlcx_rb_base_hi);
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_RPTR_ADDR_LO,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdmax_rlcx_rb_rptr_addr_lo);
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_RPTR_ADDR_HI,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdmax_rlcx_rb_rptr_addr_hi);
|
|
|
|
|
|
|
|
data = REG_SET_FIELD(m->sdmax_rlcx_rb_cntl, SDMA0_RLC0_RB_CNTL,
|
|
|
|
RB_ENABLE, 1);
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_CNTL, data);
|
2019-07-09 22:59:30 +08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int kgd_hqd_sdma_dump(struct kgd_dev *kgd,
|
|
|
|
uint32_t engine_id, uint32_t queue_id,
|
|
|
|
uint32_t (**dump)[2], uint32_t *n_regs)
|
|
|
|
{
|
|
|
|
struct amdgpu_device *adev = get_amdgpu_device(kgd);
|
2019-09-22 05:46:03 +08:00
|
|
|
uint32_t sdma_rlc_reg_offset = get_sdma_rlc_reg_offset(adev,
|
|
|
|
engine_id, queue_id);
|
2019-07-09 22:59:30 +08:00
|
|
|
uint32_t i = 0, reg;
|
|
|
|
#undef HQD_N_REGS
|
|
|
|
#define HQD_N_REGS (19+6+7+10)
|
|
|
|
|
|
|
|
*dump = kmalloc_array(HQD_N_REGS * 2, sizeof(uint32_t), GFP_KERNEL);
|
|
|
|
if (*dump == NULL)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
for (reg = mmSDMA0_RLC0_RB_CNTL; reg <= mmSDMA0_RLC0_DOORBELL; reg++)
|
2019-09-22 05:46:03 +08:00
|
|
|
DUMP_REG(sdma_rlc_reg_offset + reg);
|
2019-07-09 22:59:30 +08:00
|
|
|
for (reg = mmSDMA0_RLC0_STATUS; reg <= mmSDMA0_RLC0_CSA_ADDR_HI; reg++)
|
2019-09-22 05:46:03 +08:00
|
|
|
DUMP_REG(sdma_rlc_reg_offset + reg);
|
2019-07-09 22:59:30 +08:00
|
|
|
for (reg = mmSDMA0_RLC0_IB_SUB_REMAIN;
|
|
|
|
reg <= mmSDMA0_RLC0_MINOR_PTR_UPDATE; reg++)
|
2019-09-22 05:46:03 +08:00
|
|
|
DUMP_REG(sdma_rlc_reg_offset + reg);
|
2019-07-09 22:59:30 +08:00
|
|
|
for (reg = mmSDMA0_RLC0_MIDCMD_DATA0;
|
|
|
|
reg <= mmSDMA0_RLC0_MIDCMD_CNTL; reg++)
|
2019-09-22 05:46:03 +08:00
|
|
|
DUMP_REG(sdma_rlc_reg_offset + reg);
|
2019-07-09 22:59:30 +08:00
|
|
|
|
|
|
|
WARN_ON_ONCE(i != HQD_N_REGS);
|
|
|
|
*n_regs = i;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static bool kgd_hqd_sdma_is_occupied(struct kgd_dev *kgd, void *mqd)
|
|
|
|
{
|
|
|
|
struct amdgpu_device *adev = get_amdgpu_device(kgd);
|
|
|
|
struct v9_sdma_mqd *m;
|
2019-09-22 05:46:03 +08:00
|
|
|
uint32_t sdma_rlc_reg_offset;
|
2019-07-09 22:59:30 +08:00
|
|
|
uint32_t sdma_rlc_rb_cntl;
|
|
|
|
|
|
|
|
m = get_sdma_mqd(mqd);
|
2019-09-22 05:46:03 +08:00
|
|
|
sdma_rlc_reg_offset = get_sdma_rlc_reg_offset(adev, m->sdma_engine_id,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdma_queue_id);
|
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
sdma_rlc_rb_cntl = RREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_CNTL);
|
2019-07-09 22:59:30 +08:00
|
|
|
|
|
|
|
if (sdma_rlc_rb_cntl & SDMA0_RLC0_RB_CNTL__RB_ENABLE_MASK)
|
|
|
|
return true;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int kgd_hqd_sdma_destroy(struct kgd_dev *kgd, void *mqd,
|
|
|
|
unsigned int utimeout)
|
|
|
|
{
|
|
|
|
struct amdgpu_device *adev = get_amdgpu_device(kgd);
|
|
|
|
struct v9_sdma_mqd *m;
|
2019-09-22 05:46:03 +08:00
|
|
|
uint32_t sdma_rlc_reg_offset;
|
2019-07-09 22:59:30 +08:00
|
|
|
uint32_t temp;
|
|
|
|
unsigned long end_jiffies = (utimeout * HZ / 1000) + jiffies;
|
|
|
|
|
|
|
|
m = get_sdma_mqd(mqd);
|
2019-09-22 05:46:03 +08:00
|
|
|
sdma_rlc_reg_offset = get_sdma_rlc_reg_offset(adev, m->sdma_engine_id,
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdma_queue_id);
|
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
temp = RREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_CNTL);
|
2019-07-09 22:59:30 +08:00
|
|
|
temp = temp & ~SDMA0_RLC0_RB_CNTL__RB_ENABLE_MASK;
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_CNTL, temp);
|
2019-07-09 22:59:30 +08:00
|
|
|
|
|
|
|
while (true) {
|
2019-09-22 05:46:03 +08:00
|
|
|
temp = RREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_CONTEXT_STATUS);
|
2019-07-09 22:59:30 +08:00
|
|
|
if (temp & SDMA0_RLC0_CONTEXT_STATUS__IDLE_MASK)
|
|
|
|
break;
|
2019-09-20 00:42:34 +08:00
|
|
|
if (time_after(jiffies, end_jiffies)) {
|
|
|
|
pr_err("SDMA RLC not idle in %s\n", __func__);
|
2019-07-09 22:59:30 +08:00
|
|
|
return -ETIME;
|
2019-09-20 00:42:34 +08:00
|
|
|
}
|
2019-07-09 22:59:30 +08:00
|
|
|
usleep_range(500, 1000);
|
|
|
|
}
|
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_DOORBELL, 0);
|
|
|
|
WREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_CNTL,
|
|
|
|
RREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_CNTL) |
|
2019-07-09 22:59:30 +08:00
|
|
|
SDMA0_RLC0_RB_CNTL__RB_ENABLE_MASK);
|
|
|
|
|
2019-09-22 05:46:03 +08:00
|
|
|
m->sdmax_rlcx_rb_rptr = RREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_RPTR);
|
2019-07-09 22:59:30 +08:00
|
|
|
m->sdmax_rlcx_rb_rptr_hi =
|
2019-09-22 05:46:03 +08:00
|
|
|
RREG32(sdma_rlc_reg_offset + mmSDMA0_RLC0_RB_RPTR_HI);
|
2019-07-09 22:59:30 +08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-12-03 12:23:41 +08:00
|
|
|
static void kgd_set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid,
|
|
|
|
uint64_t page_table_base)
|
|
|
|
{
|
|
|
|
struct amdgpu_device *adev = get_amdgpu_device(kgd);
|
|
|
|
|
|
|
|
if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) {
|
|
|
|
pr_err("trying to set page table base for wrong VMID %u\n",
|
|
|
|
vmid);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
mmhub_v9_4_setup_vm_pt_regs(adev, vmid, page_table_base);
|
|
|
|
|
|
|
|
gfxhub_v1_0_setup_vm_pt_regs(adev, vmid, page_table_base);
|
|
|
|
}
|
|
|
|
|
2019-09-28 10:03:42 +08:00
|
|
|
const struct kfd2kgd_calls arcturus_kfd2kgd = {
|
2019-07-09 22:59:30 +08:00
|
|
|
.program_sh_mem_settings = kgd_gfx_v9_program_sh_mem_settings,
|
|
|
|
.set_pasid_vmid_mapping = kgd_gfx_v9_set_pasid_vmid_mapping,
|
|
|
|
.init_interrupts = kgd_gfx_v9_init_interrupts,
|
|
|
|
.hqd_load = kgd_gfx_v9_hqd_load,
|
|
|
|
.hqd_sdma_load = kgd_hqd_sdma_load,
|
|
|
|
.hqd_dump = kgd_gfx_v9_hqd_dump,
|
|
|
|
.hqd_sdma_dump = kgd_hqd_sdma_dump,
|
|
|
|
.hqd_is_occupied = kgd_gfx_v9_hqd_is_occupied,
|
|
|
|
.hqd_sdma_is_occupied = kgd_hqd_sdma_is_occupied,
|
|
|
|
.hqd_destroy = kgd_gfx_v9_hqd_destroy,
|
|
|
|
.hqd_sdma_destroy = kgd_hqd_sdma_destroy,
|
|
|
|
.address_watch_disable = kgd_gfx_v9_address_watch_disable,
|
|
|
|
.address_watch_execute = kgd_gfx_v9_address_watch_execute,
|
|
|
|
.wave_control_execute = kgd_gfx_v9_wave_control_execute,
|
|
|
|
.address_watch_get_offset = kgd_gfx_v9_address_watch_get_offset,
|
2019-09-26 11:57:30 +08:00
|
|
|
.get_atc_vmid_pasid_mapping_info =
|
|
|
|
kgd_gfx_v9_get_atc_vmid_pasid_mapping_info,
|
2019-07-09 22:59:30 +08:00
|
|
|
.get_tile_config = kgd_gfx_v9_get_tile_config,
|
2019-12-03 12:23:41 +08:00
|
|
|
.set_vm_context_page_table_base = kgd_set_vm_context_page_table_base,
|
2019-07-09 22:59:30 +08:00
|
|
|
.get_hive_id = amdgpu_amdkfd_get_hive_id,
|
|
|
|
};
|