[PATCH 1/1] drm/amdgpu: Fix IB allocation sizes for page table updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 30, 2017 at 5:08 PM, Felix Kuehling <Felix.Kuehling at amd.com> wrote:
> set_pte_pde commands need 10 dwords.
>
> Signed-off-by: Felix Kuehling <Felix.Kuehling at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> index 4cdfb70..587a166 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> @@ -1037,7 +1037,7 @@ static int amdgpu_vm_update_level(struct amdgpu_device *adev,
>                 ndw = 64;
>
>                 /* assume the worst case */
> -               ndw += parent->last_entry_used * 6;
> +               ndw += parent->last_entry_used * 10;
>
>                 pd_addr = amdgpu_bo_gpu_offset(parent->base.bo);
>
> @@ -1545,7 +1545,7 @@ static int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev,
>         ndw = 64;
>
>         /* one PDE write for each huge page */
> -       ndw += ((nptes >> adev->vm_manager.block_size) + 1) * 6;
> +       ndw += ((nptes >> adev->vm_manager.block_size) + 1) * 10;
>
>         if (src) {
>                 /* only copy commands needed */
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux