diff options
| author | Monk Liu <[email protected]> | 2020-03-10 12:28:45 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-03-16 20:17:55 +0000 |
| commit | 2e0cc4d48b91a856a34027b093306c01c45d3a38 (patch) | |
| tree | b9e9cd5e6583891e88620fec6f9d40794544fe07 /drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h | |
| parent | drm/scheduler: fix inconsistent locking of job_list_lock (diff) | |
| download | kernel-2e0cc4d48b91a856a34027b093306c01c45d3a38.tar.gz kernel-2e0cc4d48b91a856a34027b093306c01c45d3a38.zip | |
drm/amdgpu: revise RLCG access path
what changed:
1)provide new implementation interface for the rlcg access path
2)put SQ_CMD/SQ_IND_INDEX to GFX9 RLCG path to let debugfs's reg_op
function can access reg that need RLCG path help
now even debugfs's reg_op can used to dump wave.
tested-by: Monk Liu <[email protected]>
tested-by: Zhou pengju <[email protected]>
Signed-off-by: Zhou pengju <[email protected]>
Signed-off-by: Monk Liu <[email protected]>
Reviewed-by: Emily Deng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h index 52509c254cbd..60bb3e8b3118 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h @@ -127,6 +127,8 @@ struct amdgpu_rlc_funcs { void (*reset)(struct amdgpu_device *adev); void (*start)(struct amdgpu_device *adev); void (*update_spm_vmid)(struct amdgpu_device *adev, unsigned vmid); + void (*rlcg_wreg)(struct amdgpu_device *adev, u32 offset, u32 v); + bool (*is_rlcg_access_range)(struct amdgpu_device *adev, uint32_t reg); }; struct amdgpu_rlc { |
