diff options
| author | Christian König <[email protected]> | 2021-12-06 08:42:02 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2021-12-09 16:13:17 +0000 |
| commit | 21a6732f464894fa43fa1d43fdc7570b454b970c (patch) | |
| tree | 4fa629f10ad392198f8975bc48e4eeb2275582b7 /drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | |
| parent | drm: Replace kernel.h with the necessary inclusions (diff) | |
| download | kernel-21a6732f464894fa43fa1d43fdc7570b454b970c.tar.gz kernel-21a6732f464894fa43fa1d43fdc7570b454b970c.zip | |
drm/amdgpu: don't skip runtime pm get on A+A config
The runtime PM get was incorrectly added after the check.
Signed-off-by: Christian König <[email protected]>
Acked-by: Evan Quan <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c index ae6ab93c868b..4896c876ffec 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c @@ -61,9 +61,6 @@ static int amdgpu_dma_buf_attach(struct dma_buf *dmabuf, if (pci_p2pdma_distance_many(adev->pdev, &attach->dev, 1, true) < 0) attach->peer2peer = false; - if (attach->dev->driver == adev->dev->driver) - return 0; - r = pm_runtime_get_sync(adev_to_drm(adev)->dev); if (r < 0) goto out; |
