From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8C952208E for ; Mon, 19 Aug 2024 10:20:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724062837; cv=none; b=JYe9enkKBOqIr4FY9LcFw6CeyxelXyEQH+sMF74UOrhVpR0qXfqfzJlaTvf+62c1Be+dh2rSCJLjjpmYwB8k1kXocZ3J2U6rJz6xbDXtLMycs6UyGWswlxY80cOTha+zbvNMsq2Uw3Mo37Dc9xZbJPwgTb5Y+TOfLuwU9Bp5/TQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724062837; c=relaxed/simple; bh=9Kkmf1MaPZBYNKZEO1m2sxMvORw92h1NABTkdYxVC8Q=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=GHTfOHRXZc8GGtmbTchX8/+ZdlkBRYQboUDkxonuqR+MKksX5cV5HcX4K9g94N8eIJn/RAlkVkVRkk1yEYuoGfrEUiqQsp7ALORsaGYqjCVBsfPABcBGb4SNpWYpzCZDNuhip3z6lXAjHB2uaZRuLLmjKgzxAW7gqDLoim/mck0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HMeUS5nQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HMeUS5nQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9E14C32782; Mon, 19 Aug 2024 10:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724062837; bh=9Kkmf1MaPZBYNKZEO1m2sxMvORw92h1NABTkdYxVC8Q=; h=Subject:To:Cc:From:Date:From; b=HMeUS5nQ7+Nk1TDebrINiWXhxDwBrsdHrH/+u65rvs3/Y7WULCQWF36HehI2RwaKq fMYKxOBzKmKlSGexCWcAzvWK7TQom6dnK3dpFBO5ORuckEKposXdPKDFmclFKKsD6y FqLGPi0I9MiL4XbXMrbMTmkn0Bl7DTLf5pPlMAZg= Subject: FAILED: patch "[PATCH] drm/amd/display: fix cursor offset on rotation 180" failed to apply to 6.6-stable tree To: mwen@igalia.com,alexander.deucher@amd.com,chiahsuan.chung@amd.com,daniel.wheeler@amd.com,hamza.mahfooz@amd.com,harry.wentland@amd.com,xaver.hugl@gmail.com Cc: From: Date: Mon, 19 Aug 2024 12:20:34 +0200 Message-ID: <2024081932-diabetes-etching-e527@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 737222cebecbdbcdde2b69475c52bcb9ecfeb830 # git commit -s git send-email --to '' --in-reply-to '2024081932-diabetes-etching-e527@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: 737222cebecb ("drm/amd/display: fix cursor offset on rotation 180") thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 737222cebecbdbcdde2b69475c52bcb9ecfeb830 Mon Sep 17 00:00:00 2001 From: Melissa Wen Date: Tue, 31 Jan 2023 15:05:46 -0100 Subject: [PATCH] drm/amd/display: fix cursor offset on rotation 180 [why & how] Cursor gets clipped off in the middle of the screen with hw rotation 180. Fix a miscalculation of cursor offset when it's placed near the edges in the pipe split case. Cursor bugs with hw rotation were reported on AMD issue tracker: https://gitlab.freedesktop.org/drm/amd/-/issues/2247 The issues on rotation 270 was fixed by: https://lore.kernel.org/amd-gfx/20221118125935.4013669-22-Brian.Chang@amd.com/ that partially addressed the rotation 180 too. So, this patch is the final bits for rotation 180. Reported-by: Xaver Hugl Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/2247 Reviewed-by: Harry Wentland Fixes: 9d84c7ef8a87 ("drm/amd/display: Correct cursor position on horizontal mirror") Signed-off-by: Melissa Wen Signed-off-by: Hamza Mahfooz Signed-off-by: Tom Chung Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher (cherry picked from commit 1fd2cf090096af8a25bf85564341cfc21cec659d) Cc: stable@vger.kernel.org diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c index ff03b1d98aa7..1b9ac8812f5b 100644 --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c @@ -3589,7 +3589,7 @@ void dcn10_set_cursor_position(struct pipe_ctx *pipe_ctx) (int)hubp->curs_attr.width || pos_cpy.x <= (int)hubp->curs_attr.width + pipe_ctx->plane_state->src_rect.x) { - pos_cpy.x = temp_x + viewport_width; + pos_cpy.x = 2 * viewport_width - temp_x; } } } else {