]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/i915: correct the input parameter on _intel_dsb_commit()
authorheminhong <heminhong@kylinos.cn>
Tue, 14 Nov 2023 02:43:41 +0000 (10:43 +0800)
committerJani Nikula <jani.nikula@intel.com>
Tue, 5 Dec 2023 08:43:07 +0000 (10:43 +0200)
commit9f269070abe9c45dc60abc84e29326f855317eac
tree76aeb93e1fb9431ae32eae056e0b6cce9c0fd178
parentdd7eb65c493615fda7d459501c3d4a46e00ea5ba
drm/i915: correct the input parameter on _intel_dsb_commit()

Current, the dewake_scanline variable is defined as unsigned int,
an unsigned int variable that is always greater than or equal to 0.
when _intel_dsb_commit function is called by intel_dsb_commit function,
the dewake_scanline variable may have an int value.
So the dewake_scanline variable is necessary to defined as an int.

Fixes: f83b94d23770 ("drm/i915/dsb: Use DEwake to combat PkgC latency")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310052201.AnVbpgPr-lkp@intel.com/
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: heminhong <heminhong@kylinos.cn>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231114024341.14524-1-heminhong@kylinos.cn
(cherry picked from commit ef32c3cc9c62252986f09e06b4e525742cd91529)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dsb.c