diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4354-drm-amd-display-Add-assert-that-chroma-pitch-is-non-.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/4354-drm-amd-display-Add-assert-that-chroma-pitch-is-non-.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4354-drm-amd-display-Add-assert-that-chroma-pitch-is-non-.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4354-drm-amd-display-Add-assert-that-chroma-pitch-is-non-.patch new file mode 100644 index 00000000..b9b0c57a --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4354-drm-amd-display-Add-assert-that-chroma-pitch-is-non-.patch @@ -0,0 +1,31 @@ +From 8a0914695a1a2a96308aa985c77515052b147864 Mon Sep 17 00:00:00 2001 +From: Julian Parkin <jparkin@amd.com> +Date: Fri, 13 Apr 2018 13:23:02 -0400 +Subject: [PATCH 4354/5725] drm/amd/display: Add assert that chroma pitch is + non zero + +Signed-off-by: Julian Parkin <jparkin@amd.com> +Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Harry Wentland <harry.wentland@amd.com> +--- + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c +index 159bebc..0cbc83e 100644 +--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c ++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c +@@ -146,6 +146,9 @@ void hubp1_program_size_and_rotation( + * 444 or 420 luma + */ + if (format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) { ++ ASSERT(plane_size->video.chroma_pitch != 0); ++ /* Chroma pitch zero can cause system hang! */ ++ + pitch = plane_size->video.luma_pitch - 1; + meta_pitch = dcc->video.meta_pitch_l - 1; + pitch_c = plane_size->video.chroma_pitch - 1; +-- +2.7.4 + |