Displaying 4 results from an estimated 4 matches for "kunit_kzalloc".
2024 Oct 04
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...eb62116c..8a2ab90c6e8f 100644
> > > --- a/drivers/gpu/drm/ttm/tests/ttm_bo_test.c
> > > +++ b/drivers/gpu/drm/ttm/tests/ttm_bo_test.c
> > > @@ -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
> > >...
2024 Oct 05
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...> > > > --- a/drivers/gpu/drm/ttm/tests/ttm_bo_test.c
> > > > +++ b/drivers/gpu/drm/ttm/tests/ttm_bo_test.c
> > > > @@ -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, tt...
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()
2023 Aug 09
8
[PATCH -next 0/7] drm: Remove many unnecessary NULL values
The NULL initialization of the pointers assigned by kzalloc() or
kunit_kzalloc() first is not necessary, because if the kzalloc() or
kunit_kzalloc() failed, the pointers will be assigned NULL, otherwise
it works as usual. so remove it.
Ruan Jinjie (7):
drm/amdkfd: Remove unnecessary NULL values
drm/amd/display: Remove unnecessary NULL values
drm/msm: Remove unnecessary...