diff options
author | Dave Airlie <airlied@redhat.com> | 2021-04-08 10:11:09 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2021-04-08 10:11:11 +0300 |
commit | 2bbbb07da802a5b5e2252841b754292cc834e8c9 (patch) | |
tree | 964bd7483e88b5ec53f2be73aef5ab1339c6ddbc /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
parent | e49d033bddf5b565044e2abe4241353959bc9120 (diff) | |
parent | cdcc108a2aced5f9cbc45920e29bf49819e5477f (diff) | |
download | linux-2bbbb07da802a5b5e2252841b754292cc834e8c9.tar.xz |
Merge tag 'amd-drm-fixes-5.12-2021-04-08' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
amd-drm-fixes-5.12-2021-04-08:
amdgpu:
- DCN3 fix
- Fix CAC setting regression for TOPAZ
- Fix ttm regression
radeon:
- Fix ttm regression
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210408045512.3879-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 9fd2157b133a..5efa331e3ee8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -906,7 +906,7 @@ static int amdgpu_ttm_tt_pin_userptr(struct ttm_bo_device *bdev, /* Allocate an SG array and squash pages into it */ r = sg_alloc_table_from_pages(ttm->sg, ttm->pages, ttm->num_pages, 0, - ttm->num_pages << PAGE_SHIFT, + (u64)ttm->num_pages << PAGE_SHIFT, GFP_KERNEL); if (r) goto release_sg; |