diff options
author | Dave Airlie <airlied@redhat.com> | 2019-02-10 23:04:05 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-02-10 23:04:20 -0500 |
commit | f4bc54b532a62d8bee421ca06adb6d1b3e7ffaa9 (patch) | |
tree | 3b835f9bed6bd236fa1a6d5d0add836f25ca8262 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 5ea3998d56346975c2701df18fb5b6e3ab5c8d9e (diff) | |
parent | 0461221316ec21e0a535a35fba3feb6ba75706e6 (diff) |
Merge branch 'drm-next-5.1' of git://people.freedesktop.org/~agd5f/linux into drm-next
Updates for 5.1:
- GDS fixes
- Add AMDGPU_CHUNK_ID_SCHEDULED_DEPENDENCIES interface
- GPUVM fixes
- PCIE DPM switching fixes for vega20
- Vega10 uclk DPM regression fix
- DC Freesync fixes
- DC ABM fixes
- Various DC cleanups
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190208210214.27666-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index f4f00217546e..d21dd2f369da 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
@@ -54,10 +54,6 @@ int amdgpu_gem_object_create(struct amdgpu_device *adev, unsigned long size, | |||
54 | 54 | ||
55 | memset(&bp, 0, sizeof(bp)); | 55 | memset(&bp, 0, sizeof(bp)); |
56 | *obj = NULL; | 56 | *obj = NULL; |
57 | /* At least align on page size */ | ||
58 | if (alignment < PAGE_SIZE) { | ||
59 | alignment = PAGE_SIZE; | ||
60 | } | ||
61 | 57 | ||
62 | bp.size = size; | 58 | bp.size = size; |
63 | bp.byte_align = alignment; | 59 | bp.byte_align = alignment; |
@@ -244,9 +240,6 @@ int amdgpu_gem_create_ioctl(struct drm_device *dev, void *data, | |||
244 | return -EINVAL; | 240 | return -EINVAL; |
245 | } | 241 | } |
246 | flags |= AMDGPU_GEM_CREATE_NO_CPU_ACCESS; | 242 | flags |= AMDGPU_GEM_CREATE_NO_CPU_ACCESS; |
247 | /* GDS allocations must be DW aligned */ | ||
248 | if (args->in.domains & AMDGPU_GEM_DOMAIN_GDS) | ||
249 | size = ALIGN(size, 4); | ||
250 | } | 243 | } |
251 | 244 | ||
252 | if (flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID) { | 245 | if (flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID) { |