[PATCH v4 1/1] drm/tests: Add KUnit tests for drm_mode_create_dvi_i_properties()

2024-01-14 Thread Dipam Turkar
Introduce unit tests for the drm_mode_create_dvi_i_properties() function to ensure the proper creation of DVI-I specific connector properties and success if called multiple times. Signed-off-by: Dipam Turkar --- drivers/gpu/drm/tests/drm_connector_test.c | 58 ++ 1 file

[PATCH 1/1] Refactor radeon driver to use drm_gem_create_map_offset() instead of its custom implementation for associating GEM object with a fake offset. Since, we already have a generic implementatio

2024-01-06 Thread Dipam Turkar
Signed-off-by: Dipam Turkar --- drivers/gpu/drm/radeon/radeon_drv.c | 2 +- drivers/gpu/drm/radeon/radeon_gem.c | 24 ++-- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index

[PATCH v3 1/1] drm/tests: Add KUnit tests for drm_mode_create_dvi_i_properties()

2024-01-06 Thread Dipam Turkar
--- drivers/gpu/drm/tests/drm_connector_test.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/tests/drm_connector_test.c b/drivers/gpu/drm/tests/drm_connector_test.c index c66aa2dc8d9d..aad63839b5e5 100644 ---

Re: [PATCH v2] drm/tests: Add KUnit tests for drm_mode_create_dvi_i_properties()

2023-12-23 Thread Dipam Turkar
understanding this wrong? Thanks and regards Dipam Turkar On Tue, Nov 28, 2023 at 8:39 PM Maxime Ripard wrote: > Hi, > > On Sat, Nov 11, 2023 at 12:54:53AM +0530, Dipam Turkar wrote: > > Introduce unit tests for the drm_mode_create_dvi_i_properties() function > to ensure > > the

Re: [PATCH v2] drm/tests: Add KUnit tests for drm_mode_create_dvi_i_properties()

2023-11-28 Thread Dipam Turkar
Will work on that. Dipam Turkar On Tue, Nov 28, 2023 at 8:39 PM Maxime Ripard wrote: > Hi, > > On Sat, Nov 11, 2023 at 12:54:53AM +0530, Dipam Turkar wrote: > > Introduce unit tests for the drm_mode_create_dvi_i_properties() function > to ensure > > the proper cr

Re: [PATCH v2] Remove custom dumb_map_offset implementation in msm driver

2023-11-15 Thread Dipam Turkar
() and drm_gem_ttm_dumb_map_offset() do not have any locking mechanisms either. Thanks and regards Dipam Turkar On Thu, Nov 16, 2023 at 12:16 AM Dipam Turkar wrote: > They are not outdated, my bad. I went through the locks' code and saw that > they have been updated. But they are probably not necessary here a

Re: [PATCH v2] Remove custom dumb_map_offset implementation in msm driver

2023-11-15 Thread Dipam Turkar
() and drm_gem_ttm_dumb_map_offset() do not have any locking mechanisms either. Thanks and regards Dipam Turkar On Wed, Nov 15, 2023 at 8:37 PM Dmitry Baryshkov < dmitry.barysh...@linaro.org> wrote: > On Wed, 15 Nov 2023 at 16:30, Dipam Turkar wrote: > > > > Make msm use drm_gem_create_map_offset()

[PATCH v2] Remove custom dumb_map_offset implementation in msm driver

2023-11-15 Thread Dipam Turkar
the outdated locking leftovers. Signed-off-by: Dipam Turkar --- drivers/gpu/drm/msm/msm_drv.c | 2 +- drivers/gpu/drm/msm/msm_gem.c | 21 - drivers/gpu/drm/msm/msm_gem.h | 2 -- 3 files changed, 1 insertion(+), 24 deletions(-) Changes in v2: Modify commit message

[PATCH] Remove custom dumb_map_offset implementation in msm driver

2023-11-14 Thread Dipam Turkar
-by: Dipam Turkar --- drivers/gpu/drm/msm/msm_drv.c | 2 +- drivers/gpu/drm/msm/msm_gem.c | 21 - drivers/gpu/drm/msm/msm_gem.h | 2 -- 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index a428951ee539

[PATCH v2] drm/tests: Add KUnit tests for drm_mode_create_dvi_i_properties()

2023-11-10 Thread Dipam Turkar
Introduce unit tests for the drm_mode_create_dvi_i_properties() function to ensure the proper creation of DVI-I specific connector properties. Signed-off-by: Dipam Turkar --- drivers/gpu/drm/tests/drm_connector_test.c | 38 ++ 1 file changed, 38 insertions(+) diff --git

[PATCH v2] Remove custom dumb_map_offset implementations in i915 driver

2023-11-10 Thread Dipam Turkar
Making i915 use drm_gem_create_mmap_offset() instead of its custom implementations for associating GEM object with a fake offset. Signed-off-by: Dipam Turkar --- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 21 - drivers/gpu/drm/i915/gem/i915_gem_mman.h | 4 drivers/gpu

[PATCH] drm/tests: Add KUnit tests for drm_mode_create_dvi_i_properties()

2023-11-10 Thread Dipam Turkar
Introduce unit tests for the drm_mode_create_dvi_i_properties() function to ensure the proper creation of DVI-I specific connector properties. Signed-off-by: Dipam Turkar --- drivers/gpu/drm/tests/drm_connector_test.c | 20 1 file changed, 20 insertions(+) diff --git

[PATCH] Remove custom dumb_map_offset implementations in i915 driver

2023-11-10 Thread Dipam Turkar
Making i915 use drm_gem_create_mmap_offset() instead of its custom implementations for associating GEM object with a fake offset. Signed-off-by: Dipam Turkar --- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 192 --- drivers/gpu/drm/i915/gem/i915_gem_mman.h | 4 - drivers/gpu

[PATCH] drm/tests: Add KUnit tests for drm_mode_create_dvi_i_properties()

2023-10-28 Thread Dipam Turkar
Introduce unit tests for the drm_mode_create_dvi_i_properties() function to ensure the proper creation of DVI-I specific connector properties. Signed-off-by: Dipam Turkar --- drivers/gpu/drm/tests/drm_connector_test.c | 20 1 file changed, 20 insertions(+) diff --git