Skip to content

Commit

Permalink
drm/amdgpu: don't skip runtime pm get on A+A config
Browse files Browse the repository at this point in the history
The runtime PM get was incorrectly added after the check.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211206084551.92502-1-christian.koenig@amd.com
  • Loading branch information
Christian König committed Dec 9, 2021
1 parent ae710a4 commit 21a6732
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 21a6732

Please sign in to comment.