Re: [PATCH] drm/test/shmem: set a DMA mask for the mock device

2024-02-26 Thread Marco Pagani
On 2024-02-26 12:26, Maxime Ripard wrote: > Hi, > > On Mon, Feb 26, 2024 at 12:00:27PM +0100, Marco Pagani wrote: >> Set a DMA mask for the mock device to avoid warnings generated in >> dma_map_sgtable(). >> >> Reported-by: Guenter Roeck >> Signed-off-by:

[PATCH] drm/test/shmem: set a DMA mask for the mock device

2024-02-26 Thread Marco Pagani
Set a DMA mask for the mock device to avoid warnings generated in dma_map_sgtable(). Reported-by: Guenter Roeck Signed-off-by: Marco Pagani --- drivers/gpu/drm/tests/drm_gem_shmem_test.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tests/drm_gem_shmem_test.c b

Re: [PATCH v5] drm/test: add a test suite for GEM objects backed by shmem

2024-02-22 Thread Marco Pagani
On 2024-02-22 16:52, Guenter Roeck wrote: > Hi Marco, > > On 2/22/24 07:32, Marco Pagani wrote: >> >> >> On 2024-02-18 16:49, Guenter Roeck wrote: >>> Hi, >>> >>> On Thu, Nov 30, 2023 at 06:14:16PM +0100, Marco Pagani wrote: >>

Re: [PATCH v5] drm/test: add a test suite for GEM objects backed by shmem

2024-02-22 Thread Marco Pagani
On 2024-02-18 16:49, Guenter Roeck wrote: > Hi, > > On Thu, Nov 30, 2023 at 06:14:16PM +0100, Marco Pagani wrote: >> This patch introduces an initial KUnit test suite for GEM objects >> backed by shmem buffers. >> >> Suggested-by: Javier Martinez Canilla

Re: [RFC 1/2] fpga: support loading from a pre-allocated buffer

2024-01-15 Thread Marco Pagani
On 2023-11-22 06:30, Nava kishore Manne wrote: > Some systems are memory constrained but they need to load very > large Configuration files. The FPGA subsystem allows drivers to > request this Configuration image be loaded from the filesystem, > but this requires that the entire configuration

[PATCH v5] drm/test: add a test suite for GEM objects backed by shmem

2023-11-30 Thread Marco Pagani
This patch introduces an initial KUnit test suite for GEM objects backed by shmem buffers. Suggested-by: Javier Martinez Canillas Signed-off-by: Marco Pagani v5: - using __drm_kunit_helper_alloc_drm_device() to avoid local struct v4: - Add missing MMU dependency for DRM_GEM_SHMEM_HELPER

Re: [PATCH v4] drm/test: add a test suite for GEM objects backed by shmem

2023-11-24 Thread Marco Pagani
On 2023-11-24 09:49, Maxime Ripard wrote: > Hi, > > On Thu, Nov 23, 2023 at 11:01:46AM +0100, Marco Pagani wrote: >> +static int drm_gem_shmem_test_init(struct kunit *test) >> +{ >> +struct device *dev; >> +struct fake_dev { >> +str

[PATCH v4] drm/test: add a test suite for GEM objects backed by shmem

2023-11-23 Thread Marco Pagani
This patch introduces an initial KUnit test suite for GEM objects backed by shmem buffers. Suggested-by: Javier Martinez Canillas Signed-off-by: Marco Pagani v4: - Add missing MMU dependency for DRM_GEM_SHMEM_HELPER (kernel test robot) v3: - Explicitly cast pointers in the helpers - Removed

[PATCH v3] drm/test: add a test suite for GEM objects backed by shmem

2023-11-20 Thread Marco Pagani
This patch introduces an initial KUnit test suite for GEM objects backed by shmem buffers. Suggested-by: Javier Martinez Canillas Signed-off-by: Marco Pagani v3: - Explicitly cast pointers in the helpers - Removed unused pointer to parent dev in struct fake_dev - Test entries reordering

[PATCH] drm/test: rearrange test entries in Kconfig and Makefile

2023-11-15 Thread Marco Pagani
Rearrange entries in Kconfig and Makefile alphabetically to make room for additional KUnit test suites. Signed-off-by: Marco Pagani --- drivers/gpu/drm/Kconfig| 10 +- drivers/gpu/drm/tests/Makefile | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [RFC PATCH v2] drm/test: add a test suite for GEM objects backed by shmem

2023-11-14 Thread Marco Pagani
On 2023-11-10 15:41, Maxime Ripard wrote: > On Wed, Nov 08, 2023 at 02:42:03PM +0100, Marco Pagani wrote: >> This patch introduces an initial KUnit test suite for GEM objects >> backed by shmem buffers. >> >> Suggested-by: Javier Martinez Canillas >> Sign

[RFC PATCH v2] drm/test: add a test suite for GEM objects backed by shmem

2023-11-08 Thread Marco Pagani
This patch introduces an initial KUnit test suite for GEM objects backed by shmem buffers. Suggested-by: Javier Martinez Canillas Signed-off-by: Marco Pagani v2: - Improved description of test cases - Cleaner error handling using KUnit actions - Alphabetical order in Kconfig and Makefile

Re: [RFC PATCH] drm/test: add a test suite for GEM objects backed by shmem

2023-10-30 Thread Marco Pagani
On 2023-10-25 10:43, Maxime Ripard wrote: > Hi, > > On Tue, Oct 24, 2023 at 07:14:25PM +0200, Marco Pagani wrote: >>>> +static void drm_gem_shmem_test_obj_create_private(struct kunit *test) >>>> +{ >>>> + struct fake_dev *fdev = test->

Re: [RFC PATCH] drm/test: add a test suite for GEM objects backed by shmem

2023-10-24 Thread Marco Pagani
On 2023-10-24 11:23, Maxime Ripard wrote: > Hi Marco, > > On Mon, Oct 23, 2023 at 06:45:40PM +0200, Marco Pagani wrote: >> This patch introduces an initial KUnit test suite for GEM objects >> backed by shmem buffers. >> >> Signed-off-by: Marco Pagani &

[RFC PATCH] drm/test: add a test suite for GEM objects backed by shmem

2023-10-23 Thread Marco Pagani
This patch introduces an initial KUnit test suite for GEM objects backed by shmem buffers. Signed-off-by: Marco Pagani --- drivers/gpu/drm/Kconfig| 1 + drivers/gpu/drm/tests/Makefile | 3 +- drivers/gpu/drm/tests/drm_gem_shmem_test.c | 303

Re: [PATCH] accel/ivpu: Use struct_size()

2023-06-01 Thread Marco Pagani
On 2023-05-29 15:28, Christophe JAILLET wrote: > Use struct_size() instead of hand-writing it. It is less verbose, more > robust and more informative. > > Signed-off-by: Christophe JAILLET Reviewed-by: Marco Pagani > --- > drivers/accel/ivpu/ivpu_job.c | 4 +--- &g