]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix DISP_POS_Y and DISP_HEIGHT defines
authorHans de Goede <hdegoede@redhat.com>
Mon, 18 Apr 2022 15:09:36 +0000 (17:09 +0200)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 25 Apr 2022 04:05:03 +0000 (07:05 +0300)
commit37cfa311aa96b551ae88cbdb7f31db8206fe0591
tree7d4dbc031fdaad7f204c93d1a3a63c9842f010c2
parent7c464de09a7344a2cfcff7733684bbcf4ce79cc5
drm/i915: Fix DISP_POS_Y and DISP_HEIGHT defines

Commit 9b837db159bf ("drm/i915: Clean up pre-skl primary plane registers")
introduced DISP_POS_Y and DISP_HEIGHT defines but accidentally set these
their masks to REG_GENMASK(31, 0) instead of REG_GENMASK(31, 16).

This breaks the primary display pane on at least pineview machines, fix
the mask to fix the primary display pane only showing black.

Tested on an Acer One AO532h with an Intel N450 SoC.

Fixes: 9b837db159bf ("drm/i915: Clean up pre-skl primary plane registers")
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220418150936.5499-1-hdegoede@redhat.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
(cherry picked from commit 681f8a5c6e372dbfd2a313ace417e7749543de1d)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_reg.h