linux-imx/drivers/gpu/drm/tests
Ville Syrjälä 4e042f0222 drm/dp_mst: Fix fractional DSC bpp handling
[ Upstream commit 7707dd6022 ]

The current code does '(bpp << 4) / 16' in the MST PBN
calculation, but that is just the same as 'bpp' so the
DSC codepath achieves absolutely nothing. Fix it up so that
the fractional part of the bpp value is actually used instead
of truncated away. 64*1006 has enough zero lsbs that we can
just shift that down in the dividend and thus still manage
to stick to a 32bit divisor.

And while touching this, let's just make the whole thing more
straightforward by making the passed in bpp value .4 binary
fixed point always, instead of having to pass in different
things based on whether DSC is enabled or not.

v2:
- Fix DSC kunit test cases.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: David Francis <David.Francis@amd.com>
Cc: Mikita Lipski <mikita.lipski@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Fixes: dc48529fb1 ("drm/dp_mst: Add PBN calculation for DSC modes")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
[Imre: Fix kunit test cases]
Acked-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231030155843.2251023-3-imre.deak@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:35:31 -08:00
..
.kunitconfig
drm_buddy_test.c drm: test: Fix 32-bit issue in drm_buddy_test 2023-03-29 17:14:15 +02:00
drm_client_modeset_test.c drm/tests: client-modeset: Remove call to drm_kunit_helper_free_device() 2023-07-31 14:19:57 +02:00
drm_cmdline_parser_test.c drm/modes: Introduce the tv_mode property as a command-line option 2022-11-24 12:42:39 +01:00
drm_connector_test.c drm/connector: Add a function to lookup a TV mode by its name 2022-11-24 12:42:39 +01:00
drm_damage_helper_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_dp_mst_helper_test.c drm/dp_mst: Fix fractional DSC bpp handling 2024-01-25 15:35:31 -08:00
drm_exec_test.c drm/test: drm_exec: fix memory leak on object prepare 2023-08-10 09:01:00 +02:00
drm_format_helper_test.c drm/format-helper: Use drm_format_info_min_pitch() in tests helper 2023-03-17 16:59:54 +01:00
drm_format_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_framebuffer_test.c drm/tests: Fix swapped drm_framebuffer tests parameter names 2023-06-28 20:39:15 -03:00
drm_kunit_helpers.c drm/tests: Fix kunit_release_action ctx argument 2023-09-30 12:13:05 -03:00
drm_managed_test.c drm/tests: Add a test for DRM managed actions 2022-12-08 09:56:55 +01:00
drm_mm_test.c drm/tests: Fix incorrect argument in drm_test_mm_insert_range 2023-09-15 11:39:48 -03:00
drm_modes_test.c drm/tests: modes: Remove call to drm_kunit_helper_free_device() 2023-07-31 14:19:57 +02:00
drm_plane_helper_test.c drm/plane_helper: Split into parameterized test cases 2022-10-20 08:13:30 -03:00
drm_probe_helper_test.c drm/tests: probe-helper: Remove call to drm_kunit_helper_free_device() 2023-07-31 14:19:57 +02:00
drm_rect_test.c drm/test: Add test cases for drm_rect_rotate_inv() 2023-04-24 16:33:26 -03:00
Makefile drm: add drm_exec selftests v4 2023-07-12 14:14:23 +02:00