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 218021E25E1; Thu, 17 Apr 2025 18:06:33 +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=1744913193; cv=none; b=FA0esBCnyVGQtzFNrqCEFpfFCtU2vOGMv8z9P08MT04k4qli27HI5r4v/CpaQyLYjpT+MbH5qIHjKlnL2LHyA13a9TzCZsPG/IEmo5MXZMqUolC9aS/xOyFOQoANKfUPoY98Pg/eJjqWatKs4UtyGbmxumkbh8e5hfSnLgTwXLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744913193; c=relaxed/simple; bh=+ef4bc7Oj+HCIX23fvwyQvnx5jM3MCerFzmePUwRzlo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GuSd6uFClQqsm/Ts5FH0Zoxh2fY9w8vF5r/kY+v+ENtZ4rnhLFDeVO08cmLCxT9PWwKHlw+vkFtgaId0OzNVvzTzhdMnIbBUpM0hcWOCTEwVavgYtI2K4+1keDeN4GcBEtsSAVehf5Z1rmlGxoKzrkcl58o7MPaIhhmjO1BYvhg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uABfc3sl; 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="uABfc3sl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96DCFC4CEE4; Thu, 17 Apr 2025 18:06:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744913193; bh=+ef4bc7Oj+HCIX23fvwyQvnx5jM3MCerFzmePUwRzlo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uABfc3slbmfnb8aWmH9ww+Ayl/DyD4J0LrLqxORXtkbKEINvWqzE9WJk7BtgcLKNX rcc/4JDgZ4W1gOQoPLSbOPwLMOa8KDxOT9Fm60pEZvmT53+P4QSk3Elw+KVgG4VJ1H hmlg5HBkgzYc2EXGzYb263F2BdIO4632invBZxAw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, John Keeping , Michael Tretter , Hans Verkuil Subject: [PATCH 6.14 230/449] media: rockchip: rga: fix rga offset lookup Date: Thu, 17 Apr 2025 19:48:38 +0200 Message-ID: <20250417175127.255133066@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175117.964400335@linuxfoundation.org> References: <20250417175117.964400335@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: John Keeping commit 11de3582675cc0b7136e12f3971f1da3e5a05382 upstream. The arguments to rga_lookup_draw_pos() are passed in the wrong order, rotate mode should be before mirror mode. Fixes: 558c248f930e6 ("media: rockchip: rga: split src and dst buffer setup") Cc: stable@vger.kernel.org Signed-off-by: John Keeping Reviewed-by: Michael Tretter Signed-off-by: Hans Verkuil Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/rockchip/rga/rga-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/platform/rockchip/rga/rga-hw.c +++ b/drivers/media/platform/rockchip/rga/rga-hw.c @@ -376,7 +376,7 @@ static void rga_cmd_set_dst_info(struct * Configure the dest framebuffer base address with pixel offset. */ offsets = rga_get_addr_offset(&ctx->out, offset, dst_x, dst_y, dst_w, dst_h); - dst_offset = rga_lookup_draw_pos(&offsets, mir_mode, rot_mode); + dst_offset = rga_lookup_draw_pos(&offsets, rot_mode, mir_mode); dest[(RGA_DST_Y_RGB_BASE_ADDR - RGA_MODE_BASE_REG) >> 2] = dst_offset->y_off;