From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380674; b=otjEjfVvPww0vfGXu3pYocxbGwu6qN+s8mrCsab/ovI5fG9Nlnk9gEiD0jiVjbUah7f5 ejqnEcLXmah1zwuFGme3m2+ZXxzw4QXb1yr5aPki72IKSi0lkiMKLe+zrnYzoQOIzVFuh uJVARtE7434moPV/xAvLjg4pRHD3GZgZgztNZ7ZmPKY+m21XikLHWnMIVJbBMYzn+rs0q t6ksOjN+en3Mw86dK7DACtBC4j656uF4uYnsbyyjvLHkxmeuUnlRjtqFzdn0dQZs3CJqB HqgjSPsztzOcXG18KjB3ikOv/zD1iJmdxSW1bnNxccu2RN7WM5YkiyscJ/3d/wgfLZA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380674; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=OR+Ejf7WiQcxanQ/EXVd/oJhsde/g8E5r6//zQmdxFI=; b=07/xOhK81lOTA7fumVVgN9lU2qRRKlxqgS0bAHcnlbZ7glno/gmyyM8ZIAMnzes6NCjO TlLFPLrxAE/b0z8UD5P0Qwfl5w3o6d6rPVMYUVeXgccMJk9VzPoIpK7OEYshBBHf0CQWB +SoLm5bLYDKyl6PAOOPMOfWk2lzPMY/iC9Bm5gAzK+GFTif6oh9PLE5TeO2GYoZwkgcMB 63hsg+QQbRfLW7M2y4b+kiVYEg0m9e3oERS8YOubruFcvVTpymF2e/qFQJZnbxELRxxFD 9Dt66TVcvqTZo3vrm8Kt9q5+TBONpklAgZB204r88IK5u5TGHFFKHQLT4HOhxeKJW6A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=uM0jzzBy; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB840606A681; Fri, 4 Dec 2026 10:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=uM0jzzBy Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7AEF1F000C2; Fri, 4 Dec 2026 10:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380674; bh=OR+Ejf7WiQcxanQ/EXVd/oJhsde/g8E5r6//zQmdxFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=uM0jzzBy34y8xaZrhRMDkshc+NjWjw7jlRpHR0vn1Ak4/c69eV4uUKuYl0Tkj14mV wAqCaPM+CYZhseQ5M9F2cxYZh3j5iGvXUvTziesrwP7mBVEzfQ8WoNFKv397Yqmxab Ds2I0vRH5+Moz5/cv8C0C8jdXdywEtjfa2j1ygGg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dillon Varone , Mario Limonciello , Alex Deucher , ChiaHsuan Chung , Austin Zheng , Wayne Lin , Dan Wheeler Subject: [PATCH 7.3 376/742] drm/amd/display: Flip dml2_core_utils_get_segment_horizontal_contiguous() Inputs Date: Fri, 4 Dec 2026 19:04:00 +0900 Message-ID: <20261204100645.074938004@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Austin Zheng commit 8bcb6863ac318dfadf622598171c79a020fdd7ff upstream. [Why/How] Parameters for dml2_core_utils_get_segment_horizontal_contiguous() should be flipped. Should be swizzle mode then bytes per pixel. Cc: Dillon Varone Cc: Mario Limonciello Cc: Alex Deucher Reviewed-by: ChiaHsuan Chung Signed-off-by: Austin Zheng Signed-off-by: Wayne Lin Tested-by: Dan Wheeler Signed-off-by: Alex Deucher (cherry picked from commit 8e985b38672c3de9355dd8f166527f96e472706c) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn5_calcs_dchub.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn5_calcs_dchub.c +++ b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn5_calcs_dchub.c @@ -836,7 +836,7 @@ void dcn5_calculate_swath_and_det_config p->SwathHeightC[k] = MaximumSwathHeightC[k]; RoundedUpSwathSizeBytesY[k] = p->full_swath_bytes_l[k] / 2; RoundedUpSwathSizeBytesC[k] = p->full_swath_bytes_c[k]; - p->request_size_bytes_luma[k] = dml2_core_utils_get_segment_horizontal_contiguous(p->BytePerPixY[k], p->display_cfg->plane_descriptors[k].surface.tiling) + p->request_size_bytes_luma[k] = dml2_core_utils_get_segment_horizontal_contiguous(p->display_cfg->plane_descriptors[k].surface.tiling, p->BytePerPixY[k]) == dml2_core_utils_is_vertical_rotation(p->display_cfg->plane_descriptors[k].composition.rotation_angle) ? 64 : 128; p->request_size_bytes_chroma[k] = 256; @@ -846,7 +846,7 @@ void dcn5_calculate_swath_and_det_config RoundedUpSwathSizeBytesY[k] = p->full_swath_bytes_l[k]; RoundedUpSwathSizeBytesC[k] = p->full_swath_bytes_c[k] / 2; p->request_size_bytes_luma[k] = 256; - p->request_size_bytes_chroma[k] = dml2_core_utils_get_segment_horizontal_contiguous(p->BytePerPixC[k], p->display_cfg->plane_descriptors[k].surface.tiling) + p->request_size_bytes_chroma[k] = dml2_core_utils_get_segment_horizontal_contiguous(p->display_cfg->plane_descriptors[k].surface.tiling, p->BytePerPixC[k]) == dml2_core_utils_is_vertical_rotation(p->display_cfg->plane_descriptors[k].composition.rotation_angle) ? 64 : 128; } else { @@ -854,9 +854,9 @@ void dcn5_calculate_swath_and_det_config p->SwathHeightC[k] = MaximumSwathHeightC[k] / 2; RoundedUpSwathSizeBytesY[k] = p->full_swath_bytes_l[k] / 2; RoundedUpSwathSizeBytesC[k] = p->full_swath_bytes_c[k] / 2; - p->request_size_bytes_luma[k] = dml2_core_utils_get_segment_horizontal_contiguous(p->BytePerPixY[k], p->display_cfg->plane_descriptors[k].surface.tiling) + p->request_size_bytes_luma[k] = dml2_core_utils_get_segment_horizontal_contiguous(p->display_cfg->plane_descriptors[k].surface.tiling, p->BytePerPixY[k]) == dml2_core_utils_is_vertical_rotation(p->display_cfg->plane_descriptors[k].composition.rotation_angle) ? 64 : 128; - p->request_size_bytes_chroma[k] = dml2_core_utils_get_segment_horizontal_contiguous(p->BytePerPixC[k], p->display_cfg->plane_descriptors[k].surface.tiling) + p->request_size_bytes_chroma[k] = dml2_core_utils_get_segment_horizontal_contiguous(p->display_cfg->plane_descriptors[k].surface.tiling, p->BytePerPixC[k]) == dml2_core_utils_is_vertical_rotation(p->display_cfg->plane_descriptors[k].composition.rotation_angle) ? 64 : 128; }