Displaying 6 results from an estimated 6 matches for "ttm_manager_type".
2020 Sep 01
0
[PATCH 3/3] drm/ttm: remove io_reserve_lru handling v2
...t a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 772c640a6046..89d8ab6edd40 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -263,11 +263,7 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,
struct ttm_resource_manager *new_man = ttm_manager_type(bdev, mem->mem_type);
int ret;
- ret = ttm_mem_io_lock(old_man, true);
- if (unlikely(ret != 0))
- goto out_err;
- ttm_bo_unmap_virtual_locked(bo);
- ttm_mem_io_unlock(old_man);
+ ttm_bo_unmap_virtual(bo);
/*
* Create and bind a ttm if required.
@@ -538,7 +534,6 @@ static void ttm_bo...
2020 Sep 01
4
[PATCH 1/3] drm/ttm: make sure that we always zero init mem.bus v2
We are trying to remove the io_lru handling and depend
on zero init base, offset and addr here.
v2: init addr as well
Signed-off-by: Christian K?nig <christian.koenig at amd.com>
---
drivers/gpu/drm/ttm/ttm_bo.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index e3931e515906..772c640a6046 100644
---
2020 Aug 21
5
Moving LRU handling into Nouveau v3
Hi guys,
so I got some hardware and tested this and after hammering out tons of typos it now seems to work fine.
Could you give it more testing?
Thanks in advance,
Christian
2024 Oct 04
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...> ?
> > > - err = ttm_device_kunit_init(priv, ttm_dev, false,
> > > false);
> > > + err = ttm_device_kunit_init(priv, ttm_dev, (struct
> > > ttm_device_init_flags){});
> > > ?? KUNIT_ASSERT_EQ(test, err, 0);
> > > ?
> > > ?? man = ttm_manager_type(ttm_dev, TTM_PL_SYSTEM);
> > > @@ -109,7 +110,7 @@ static void ttm_device_init_no_vma_man(struct
> > > kunit *test)
> > > ?? vma_man = drm->vma_offset_manager;
> > > ?? drm->vma_offset_manager = NULL;
> > > ?
> > > - err = ttm_device_kuni...
2024 Oct 05
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...= ttm_device_kunit_init(priv, ttm_dev, false,
> > > > false);
> > > > + err = ttm_device_kunit_init(priv, ttm_dev, (struct
> > > > ttm_device_init_flags){});
> > > > ?? KUNIT_ASSERT_EQ(test, err, 0);
> > > > ?
> > > > ?? man = ttm_manager_type(ttm_dev, TTM_PL_SYSTEM);
> > > > @@ -109,7 +110,7 @@ static void ttm_device_init_no_vma_man(struct
> > > > kunit *test)
> > > > ?? vma_man = drm->vma_offset_manager;
> > > > ?? drm->vma_offset_manager = NULL;
> > > > ?
> > >...
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()