search for: ttm_device_kunit_init

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

2024 Oct 04
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...gt; @@ -251,7 +251,7 @@ static void ttm_bo_unreserve_basic(struct > > > kunit > > > *test) > > > ?? ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), > > > GFP_KERNEL); > > > ?? KUNIT_ASSERT_NOT_NULL(test, ttm_dev); > > > ? > > > - 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); > > > ?? priv->ttm_dev = ttm_dev; > > > ? > > > @@ -290,7 +290,7...
2024 Oct 05
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...ttm_bo_unreserve_basic(struct > > > > kunit > > > > *test) > > > > ?? ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), > > > > GFP_KERNEL); > > > > ?? KUNIT_ASSERT_NOT_NULL(test, ttm_dev); > > > > ? > > > > - 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); > > > > ?? priv->ttm_dev = ttm_dev; > > > > ? &...
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()