kernel_samsung_a53x/include/drm
Harry Wentland ffe5792d6c drm: Don't treat 0 as -1 in drm_fixp2int_ceil
[ Upstream commit cf8837d7204481026335461629b84ac7f4538fa5 ]

Unit testing this in VKMS shows that passing 0 into
this function returns -1, which is highly counter-
intuitive. Fix it by checking whether the input is
>= 0 instead of > 0.

Fixes: 64566b5e767f ("drm: Add drm_fixp_from_fraction and drm_fixp2int_ceil")
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231108163647.106853-2-harry.wentland@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:51 +01:00
..
bridge Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ttm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd_asic_type.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_agpsupport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_atomic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_atomic_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_atomic_state_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_atomic_uapi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_audio_component.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_auth.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_blend.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_bridge.h drm/bridge: Fix typo in post_disable() description 2024-11-18 12:12:39 +01:00
drm_bridge_connector.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_cache.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_client.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_color_mgmt.h drm: using mul_u32_u32() requires linux/math64.h 2024-11-18 12:13:21 +01:00
drm_connector.h drm/connector: Add support for out-of-band hotplug notification (v3) 2024-11-08 11:26:15 +01:00
drm_crtc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_crtc_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_damage_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_debugfs_crc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_device.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_displayid.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_dp_dual_mode_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_dp_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_dp_mst_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_dsc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_edid.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_encoder.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_encoder_slave.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_fb_cma_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_fb_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_file.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_fixed.h drm: Don't treat 0 as -1 in drm_fixp2int_ceil 2024-11-19 08:44:51 +01:00
drm_flip_work.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_format_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_fourcc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_framebuffer.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_gem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_gem_cma_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_gem_framebuffer_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_gem_shmem_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_gem_ttm_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_gem_vram_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_hashtab.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_hdcp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_ioctl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_irq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_lease.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_legacy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_managed.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_mipi_dbi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_mipi_dsi.h drm/mipi-dsi: Fix detach call without attach 2024-11-18 12:13:18 +01:00
drm_mm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_mode_config.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_mode_object.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_modes.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_modeset_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_modeset_helper_vtables.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_modeset_lock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_of.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_panel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_pciids.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_plane.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_plane_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_prime.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_print.h drm: Stub out debug prints 2024-11-17 17:45:26 +01:00
drm_probe_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_property.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_rect.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_scdc_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_self_refresh_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_simple_kms_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_syncobj.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_sysfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_util.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_utils.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_vblank.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_vblank_work.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_vma_manager.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm_writeback.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gma_drm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpu_scheduler.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_component.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_drm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_mei_hdcp_interface.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_pciids.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-gtt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_lpe_audio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spsc_queue.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
task_barrier.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00