diff options
| author | Alex Deucher <[email protected]> | 2023-06-16 20:49:04 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-30 17:12:14 +0000 |
| commit | 02ff519e99fc90f6c9aed50def1b6d65e20c1875 (patch) | |
| tree | 496d83221ee88ca682029f88f6cefc218bc27719 /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | |
| parent | drm/amd: Don't initialize PSP twice for Navi3x (diff) | |
| download | kernel-02ff519e99fc90f6c9aed50def1b6d65e20c1875.tar.gz kernel-02ff519e99fc90f6c9aed50def1b6d65e20c1875.zip | |
drm/amdgpu: make mcbp a per device setting
So we can selectively enable it on certain devices. No
intended functional change.
Reviewed-and-tested-by: Jiadong Zhu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c index 78ec3420ef85..dacf281d2b21 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c @@ -72,7 +72,7 @@ uint64_t amdgpu_sdma_get_csa_mc_addr(struct amdgpu_ring *ring, int r; /* don't enable OS preemption on SDMA under SRIOV */ - if (amdgpu_sriov_vf(adev) || vmid == 0 || !amdgpu_mcbp) + if (amdgpu_sriov_vf(adev) || vmid == 0 || !adev->gfx.mcbp) return 0; if (ring->is_mes_queue) { |
