aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
diff options
context:
space:
mode:
authorLang Yu <[email protected]>2023-10-07 02:10:50 +0000
committerAlex Deucher <[email protected]>2023-10-13 14:58:13 +0000
commit84aa39ab1e6528278c8ffc2c1ff9de1e2c39ee8e (patch)
tree1bc89a93dc6a0388a66094fa0d98c5c43c4d79c7 /drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
parentdrm/amdgpu/vpe: remove IB end boundary requirement (diff)
downloadkernel-84aa39ab1e6528278c8ffc2c1ff9de1e2c39ee8e.tar.gz
kernel-84aa39ab1e6528278c8ffc2c1ff9de1e2c39ee8e.zip
drm/amdgpu/vpe: align with mcbp changes
MCBP is decided by adev->gfx.mcbp now. This is missed in rebase. Signed-off-by: Lang Yu <[email protected]> Reviewed-by: Yifan Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
index 23966221dbec..bb74478098bb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
@@ -253,7 +253,7 @@ static uint64_t vpe_get_csa_mc_addr(struct amdgpu_ring *ring, uint32_t vmid)
uint32_t index = 0;
uint64_t csa_mc_addr;
- if (amdgpu_sriov_vf(adev) || vmid == 0 || !amdgpu_mcbp)
+ if (amdgpu_sriov_vf(adev) || vmid == 0 || !adev->gfx.mcbp)
return 0;
csa_mc_addr = amdgpu_csa_vaddr(adev) + AMDGPU_CSA_VPE_OFFSET +