Displaying 2 results from an estimated 2 matches for "ttm_sg_tt_alloc_page_directory".
2018 Feb 27
4
[PATCH 4/5] drm/ttm: add ttm_sg_tt_init
.../drivers/gpu/drm/ttm/ttm_tt.c
> index 8e0b525cda00..971133106ec2 100644
> --- a/drivers/gpu/drm/ttm/ttm_tt.c
> +++ b/drivers/gpu/drm/ttm/ttm_tt.c
> @@ -108,6 +108,16 @@ static int ttm_dma_tt_alloc_page_directory(struct ttm_dma_tt *ttm)
> return 0;
> }
>
> +static int ttm_sg_tt_alloc_page_directory(struct ttm_dma_tt *ttm)
> +{
> + ttm->dma_address = kvmalloc_array(ttm->ttm.num_pages,
> + sizeof(*ttm->dma_address),
> + GFP_KERNEL | __GFP_ZERO);
> + if (!ttm->dma_address)
> + return -ENOMEM;
> + return 0;
> +}
> +
> #ifdef CONFIG_X86
>...
2018 Mar 05
0
[PATCH 4/5] drm/ttm: add ttm_sg_tt_init
...gt; index 8e0b525cda00..971133106ec2 100644
>> --- a/drivers/gpu/drm/ttm/ttm_tt.c
>> +++ b/drivers/gpu/drm/ttm/ttm_tt.c
>> @@ -108,6 +108,16 @@ static int
>> ttm_dma_tt_alloc_page_directory(struct ttm_dma_tt *ttm)
>> return 0;
>> }
>> +static int ttm_sg_tt_alloc_page_directory(struct ttm_dma_tt *ttm)
>> +{
>> + ttm->dma_address = kvmalloc_array(ttm->ttm.num_pages,
>> + sizeof(*ttm->dma_address),
>> + GFP_KERNEL | __GFP_ZERO);
>> + if (!ttm->dma_address)
>> + return -ENO...