+++ /dev/null
-From 7c9a300f59db519c4684e90eb9faac370b8e0271 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Mon, 26 Oct 2020 22:00:32 +0100
-Subject: drm/amdgpu: fix build_coefficients() argument
-
-From: Arnd Bergmann <arnd@arndb.de>
-
-[ Upstream commit dbb60031dd0c2b85f10ce4c12ae604c28d3aaca4 ]
-
-gcc -Wextra warns about a function taking an enum argument
-being called with a bool:
-
-drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c: In function 'apply_degamma_for_user_regamma':
-drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c:1617:29: warning: implicit conversion from 'enum <anonymous>' to 'enum dc_transfer_func_predefined' [-Wenum-conversion]
- 1617 | build_coefficients(&coeff, true);
-
-It appears that a patch was added using the old calling conventions
-after the type was changed, and the value should actually be 0
-(TRANSFER_FUNCTION_SRGB) here instead of 1 (true).
-
-Fixes: 55a01d4023ce ("drm/amd/display: Add user_regamma to color module")
-Reviewed-by: Harry Wentland <harry.wentland@amd.com>
-Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c
-index 11ea1a0e629bd..458e82da3c85b 100644
---- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c
-+++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c
-@@ -1296,7 +1296,7 @@ static void apply_degamma_for_user_regamma(struct pwl_float_data_ex *rgb_regamma
- struct pwl_float_data_ex *rgb = rgb_regamma;
- const struct hw_x_point *coord_x = coordinates_x;
-
-- build_coefficients(&coeff, true);
-+ build_coefficients(&coeff, TRANSFER_FUNCTION_SRGB);
-
- i = 0;
- while (i != hw_points_num + 1) {
---
-2.27.0
-
crypto-talitos-endianess-in-current_desc_hdr.patch
crypto-talitos-fix-return-type-of-current_desc_hdr.patch
crypto-inside-secure-fix-sizeof-mismatch.patch
-drm-amdgpu-fix-build_coefficients-argument.patch
powerpc-64-set-up-a-kernel-stack-for-secondaries-bef.patch
spi-img-spfi-fix-reference-leak-in-img_spfi_resume.patch
drm-msm-dsi_pll_10nm-restore-vco-rate-during-restore.patch
+++ /dev/null
-From be7b9b327e79cd2db07b659af599867b629b2f66 Mon Sep 17 00:00:00 2001
-From: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-Date: Sat, 21 Dec 2019 19:05:37 +0100
-Subject: drm/amd/display: Honor the offset for plane 0.
-
-From: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
-commit be7b9b327e79cd2db07b659af599867b629b2f66 upstream.
-
-With modifiers I'd like to support non-dedicated buffers for
-images.
-
-Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-Cc: stable@vger.kernel.org # 5.1.0
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 14 +++++++++-----
- 1 file changed, 9 insertions(+), 5 deletions(-)
-
---- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
-+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
-@@ -3746,6 +3746,7 @@ fill_plane_dcc_attributes(struct amdgpu_
- struct dc *dc = adev->dm.dc;
- struct dc_dcc_surface_param input;
- struct dc_surface_dcc_cap output;
-+ uint64_t plane_address = afb->address + afb->base.offsets[0];
- uint32_t offset = AMDGPU_TILING_GET(info, DCC_OFFSET_256B);
- uint32_t i64b = AMDGPU_TILING_GET(info, DCC_INDEPENDENT_64B) != 0;
- uint64_t dcc_address;
-@@ -3789,7 +3790,7 @@ fill_plane_dcc_attributes(struct amdgpu_
- AMDGPU_TILING_GET(info, DCC_PITCH_MAX) + 1;
- dcc->independent_64b_blks = i64b;
-
-- dcc_address = get_dcc_address(afb->address, info);
-+ dcc_address = get_dcc_address(plane_address, info);
- address->grph.meta_addr.low_part = lower_32_bits(dcc_address);
- address->grph.meta_addr.high_part = upper_32_bits(dcc_address);
-
-@@ -3820,6 +3821,8 @@ fill_plane_buffer_attributes(struct amdg
- address->tmz_surface = tmz_surface;
-
- if (format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) {
-+ uint64_t addr = afb->address + fb->offsets[0];
-+
- plane_size->surface_size.x = 0;
- plane_size->surface_size.y = 0;
- plane_size->surface_size.width = fb->width;
-@@ -3828,9 +3831,10 @@ fill_plane_buffer_attributes(struct amdg
- fb->pitches[0] / fb->format->cpp[0];
-
- address->type = PLN_ADDR_TYPE_GRAPHICS;
-- address->grph.addr.low_part = lower_32_bits(afb->address);
-- address->grph.addr.high_part = upper_32_bits(afb->address);
-+ address->grph.addr.low_part = lower_32_bits(addr);
-+ address->grph.addr.high_part = upper_32_bits(addr);
- } else if (format < SURFACE_PIXEL_FORMAT_INVALID) {
-+ uint64_t luma_addr = afb->address + fb->offsets[0];
- uint64_t chroma_addr = afb->address + fb->offsets[1];
-
- plane_size->surface_size.x = 0;
-@@ -3851,9 +3855,9 @@ fill_plane_buffer_attributes(struct amdg
-
- address->type = PLN_ADDR_TYPE_VIDEO_PROGRESSIVE;
- address->video_progressive.luma_addr.low_part =
-- lower_32_bits(afb->address);
-+ lower_32_bits(luma_addr);
- address->video_progressive.luma_addr.high_part =
-- upper_32_bits(afb->address);
-+ upper_32_bits(luma_addr);
- address->video_progressive.chroma_addr.low_part =
- lower_32_bits(chroma_addr);
- address->video_progressive.chroma_addr.high_part =
jfs-fix-array-index-bounds-check-in-dbadjtree.patch
drm-panfrost-fix-job-timeout-handling.patch
drm-panfrost-move-the-gpu-reset-bits-outside-the-timeout-handler.patch
-drm-amd-display-honor-the-offset-for-plane-0.patch
drm-amdgpu-only-set-dp-subconnector-type-on-dp-and-edp-connectors.patch
drm-amd-display-fix-memory-leaks-in-s3-resume.patch
drm-dp_aux_dev-check-aux_dev-before-use-in-drm_dp_aux_dev_get_by_minor.patch
+++ /dev/null
-From be7b9b327e79cd2db07b659af599867b629b2f66 Mon Sep 17 00:00:00 2001
-From: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-Date: Sat, 21 Dec 2019 19:05:37 +0100
-Subject: drm/amd/display: Honor the offset for plane 0.
-
-From: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
-commit be7b9b327e79cd2db07b659af599867b629b2f66 upstream.
-
-With modifiers I'd like to support non-dedicated buffers for
-images.
-
-Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-Cc: stable@vger.kernel.org # 5.1.0
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 14 +++++++++-----
- 1 file changed, 9 insertions(+), 5 deletions(-)
-
---- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
-+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
-@@ -2720,6 +2720,7 @@ fill_plane_dcc_attributes(struct amdgpu_
- struct dc *dc = adev->dm.dc;
- struct dc_dcc_surface_param input;
- struct dc_surface_dcc_cap output;
-+ uint64_t plane_address = afb->address + afb->base.offsets[0];
- uint32_t offset = AMDGPU_TILING_GET(info, DCC_OFFSET_256B);
- uint32_t i64b = AMDGPU_TILING_GET(info, DCC_INDEPENDENT_64B) != 0;
- uint64_t dcc_address;
-@@ -2763,7 +2764,7 @@ fill_plane_dcc_attributes(struct amdgpu_
- AMDGPU_TILING_GET(info, DCC_PITCH_MAX) + 1;
- dcc->independent_64b_blks = i64b;
-
-- dcc_address = get_dcc_address(afb->address, info);
-+ dcc_address = get_dcc_address(plane_address, info);
- address->grph.meta_addr.low_part = lower_32_bits(dcc_address);
- address->grph.meta_addr.high_part = upper_32_bits(dcc_address);
-
-@@ -2791,6 +2792,8 @@ fill_plane_buffer_attributes(struct amdg
- memset(address, 0, sizeof(*address));
-
- if (format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) {
-+ uint64_t addr = afb->address + fb->offsets[0];
-+
- plane_size->surface_size.x = 0;
- plane_size->surface_size.y = 0;
- plane_size->surface_size.width = fb->width;
-@@ -2799,9 +2802,10 @@ fill_plane_buffer_attributes(struct amdg
- fb->pitches[0] / fb->format->cpp[0];
-
- address->type = PLN_ADDR_TYPE_GRAPHICS;
-- address->grph.addr.low_part = lower_32_bits(afb->address);
-- address->grph.addr.high_part = upper_32_bits(afb->address);
-+ address->grph.addr.low_part = lower_32_bits(addr);
-+ address->grph.addr.high_part = upper_32_bits(addr);
- } else if (format < SURFACE_PIXEL_FORMAT_INVALID) {
-+ uint64_t luma_addr = afb->address + fb->offsets[0];
- uint64_t chroma_addr = afb->address + fb->offsets[1];
-
- plane_size->surface_size.x = 0;
-@@ -2822,9 +2826,9 @@ fill_plane_buffer_attributes(struct amdg
-
- address->type = PLN_ADDR_TYPE_VIDEO_PROGRESSIVE;
- address->video_progressive.luma_addr.low_part =
-- lower_32_bits(afb->address);
-+ lower_32_bits(luma_addr);
- address->video_progressive.luma_addr.high_part =
-- upper_32_bits(afb->address);
-+ upper_32_bits(luma_addr);
- address->video_progressive.chroma_addr.low_part =
- lower_32_bits(chroma_addr);
- address->video_progressive.chroma_addr.high_part =
jffs2-fix-gc-exit-abnormally.patch
jffs2-fix-ignoring-mounting-options-problem-during-remounting.patch
jfs-fix-array-index-bounds-check-in-dbadjtree.patch
-drm-amd-display-honor-the-offset-for-plane-0.patch
drm-amd-display-fix-memory-leaks-in-s3-resume.patch
drm-dp_aux_dev-check-aux_dev-before-use-in-drm_dp_aux_dev_get_by_minor.patch
drm-i915-fix-mismatch-between-misplaced-vma-check-and-vma-insert.patch