Displaying 4 results from an estimated 4 matches for "ttm_pool_init".
Did you mean:
tag_pool_init
2023 Aug 22
0
[PATCH v4 43/48] drm/ttm: introduce pool_shrink_rwsem
...t);
> list_move_tail(&pt->shrinker_list, &shrinker_list);
> @@ -329,6 +331,7 @@ static unsigned int ttm_pool_shrink(void)
> } else {
> num_pages = 0;
> }
> + up_read(&pool_shrink_rwsem);
>
> return num_pages;
> }
> @@ -572,6 +575,18 @@ void ttm_pool_init(struct ttm_pool *pool, struct device *dev,
> }
> EXPORT_SYMBOL(ttm_pool_init);
>
> +/**
> + * synchronize_shrinkers - Wait for all running shrinkers to complete.
> + *
> + * This is useful to guarantee that all shrinker invocations have seen an
> + * update, before freei...
2024 Oct 04
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...truct ttm_global *glob = &ttm_glob;
> > > ?? int ret, nid;
> > > @@ -212,7 +211,7 @@ int ttm_device_init(struct ttm_device *bdev,
> > > const struct ttm_device_funcs *func
> > > ?? else
> > > ?? nid = NUMA_NO_NODE;
> > > ?
> > > - ttm_pool_init(&bdev->pool, dev, nid, use_dma_alloc,
> > > use_dma32);
> > > + ttm_pool_init(&bdev->pool, dev, nid,
> > > flags.use_dma_alloc,
> > > flags.use_dma32);
> > > ?
> > > ?? bdev->vma_manager = vma_manager;
> > > ?? spin_lo...
2024 Oct 05
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...lob;
> > > > ?? int ret, nid;
> > > > @@ -212,7 +211,7 @@ int ttm_device_init(struct ttm_device *bdev,
> > > > const struct ttm_device_funcs *func
> > > > ?? else
> > > > ?? nid = NUMA_NO_NODE;
> > > > ?
> > > > - ttm_pool_init(&bdev->pool, dev, nid, use_dma_alloc,
> > > > use_dma32);
> > > > + ttm_pool_init(&bdev->pool, dev, nid,
> > > > flags.use_dma_alloc,
> > > > flags.use_dma32);
> > > > ?
> > > > ?? bdev->vma_manager = vma_mana...
2024 Oct 02
2
[PATCH v2 0/2] drm/ttm: Add an option to report graphics memory OOM
Some graphics APIs differentiate between out-of-graphics-memory and
out-of-host-memory (system memory). Add a device init flag to
have -ENOSPC propagated from the resource managers instead of being
converted to -ENOMEM, to aid driver stacks in determining what
error code to return or whether corrective action can be taken at
the driver level.
The first patch deals with a ttm_device_init()