search for: ttm_dma_tt_alloc_page_directory

Displaying 3 results from an estimated 3 matches for "ttm_dma_tt_alloc_page_directory".

2018 Feb 27
4
[PATCH 4/5] drm/ttm: add ttm_sg_tt_init
...t; 2 files changed, 47 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/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 (...
2018 Mar 05
0
[PATCH 4/5] drm/ttm: add ttm_sg_tt_init
...s(+), 9 deletions(-) >> >> diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/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), >> + ...
2014 Jul 08
8
[PATCH v4 0/6] drm: nouveau: memory coherency on ARM
Another revision of this patchset critical for GK20A to operate. Previous attempts were exclusively using either TTM's regular page allocator or the DMA API one. Both have their advantages and drawbacks: the page allocator is fast but requires explicit synchronization on non-coherent architectures, whereas the DMA allocator always returns coherent memory, but is also slower, creates a