drm/amdgpu: shadow BOs don't need any alignment
authorChristian König <christian.koenig@amd.com>
Tue, 11 Sep 2018 08:31:54 +0000 (10:31 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Sep 2018 17:38:29 +0000 (12:38 -0500)
They aren't directly used by the hardware.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

index 244c71c2fa06dbd34989614497980e27c47648f6..524c21d56f75efd6a76f748bac7aafc75de0734f 100644 (file)
@@ -532,7 +532,7 @@ fail_unreserve:
 }
 
 static int amdgpu_bo_create_shadow(struct amdgpu_device *adev,
-                                  unsigned long size, int byte_align,
+                                  unsigned long size,
                                   struct amdgpu_bo *bo)
 {
        struct amdgpu_bo_param bp;
@@ -543,7 +543,6 @@ static int amdgpu_bo_create_shadow(struct amdgpu_device *adev,
 
        memset(&bp, 0, sizeof(bp));
        bp.size = size;
-       bp.byte_align = byte_align;
        bp.domain = AMDGPU_GEM_DOMAIN_GTT;
        bp.flags = AMDGPU_GEM_CREATE_CPU_GTT_USWC |
                AMDGPU_GEM_CREATE_SHADOW;
@@ -592,7 +591,7 @@ int amdgpu_bo_create(struct amdgpu_device *adev,
                        WARN_ON(reservation_object_lock((*bo_ptr)->tbo.resv,
                                                        NULL));
 
-               r = amdgpu_bo_create_shadow(adev, bp->size, bp->byte_align, (*bo_ptr));
+               r = amdgpu_bo_create_shadow(adev, bp->size, *bo_ptr);
 
                if (!bp->resv)
                        reservation_object_unlock((*bo_ptr)->tbo.resv);