Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1721566lqs; Sun, 16 Jun 2024 01:29:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWSRDO7WpwOjbNbHwZdiBV2wCSLaX8FgnudGkdvr4gWpotl7lPV2IOz/5/ezRHhqUH/1EWiWrdUX0R+7zcMQsB2IyHin3Kh0w50rDHEQ== X-Google-Smtp-Source: AGHT+IGjJ5iFsF9ZHHnPg+a1GzHFKpYxuGQ9f6vCnV82mGJUywK7kznmaR++Pt633fnvgjtopXTS X-Received: by 2002:a05:6830:2b0b:b0:6f9:8a29:8e8b with SMTP id 46e09a7af769-6fc17c4c112mr7560007a34.32.1718526588509; Sun, 16 Jun 2024 01:29:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718526588; cv=pass; d=google.com; s=arc-20160816; b=ckGI8mYjxyy6Ip8fdYvlauL5TTYee6ScBmbmC/3Xp/NXFuR0/8VrdU9RM7JWO93Ot8 BXMk6t2LYDAKqreU/gx9yVXYvJJdl1OUH3/aCMhCUhWu9mXnKijOrtTUMYBxoBJfOisq /jCP/5ebJMRME6Ry8vH8lvbEN7PNSlqkZKJxeHLs6vL7bkr+JPRzmZWwiAub2Rm/ZN48 Z/kL1GJZ6ebqL/xq0sAZRIiD/jb1F+dVZ9DkMSzzwhJVCnATIv++OprWk77uaNyeLBii MAcDJHDX5PrGMnqzyMM7WpG9tluI1jiBbqsErSL2rSpV0Tj2NoYkodM9aVdvO2ASbkY9 1Lpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=h3iVYmkTR3f9xK/fYUNKcyDiTI4eT1NCUpg2QLfCp6c=; fh=6tE54z06ulRkgzfrooKGswCitNkbv5FNTOdWO2JiScs=; b=H0PJZ4OB/o+C6DjHL17KwFh88EFpcDFsRcc2n68X8FhQ8Vc+QquJW18eOMco+ZaCrm 40SUzMSyljQj0UVipVFB5g4xguHAlM/NeANmtu//6q9HBZpsJRGK8Rzjpe3Dk8OrLQ/8 VCNup0xgVdvFV22gne9Cei2ltQqq6XchkOFqO1APpHEo2hWsCL/CUEx/mgELY/tdsldW BE2IRWe8e8T9uLPmpAb0xt0R9VTM8xBKzaX5QuKDgOJ4XUOATG5x7eZCe/KKQevt4CP4 qjEckUfT+nb25xA3Mpf4nSbfSUNEjnChc2IAUA3SHvzuwcEXQHg07olSkvQZ3Gv4EpQA riqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KpS3YKDP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-216188-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216188-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee310c93asi6806637a12.426.2024.06.16.01.29.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 01:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216188-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KpS3YKDP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-216188-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216188-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1BDAF281860 for ; Sun, 16 Jun 2024 08:29:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D544181D03; Sun, 16 Jun 2024 08:29:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KpS3YKDP" 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 55FE018628D for ; Sun, 16 Jun 2024 08:29:15 +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=1718526555; cv=none; b=UhTF2iKqY1PVa7dHirI9b05CVv/OhcRxZPaXKgdJ0xcPBDObO+hzaA0sdBNOgiyQ7TE/89VezKFX3az9EaZf3nhZzRnuTZFhOYoL2sfG7BJPFCHjlP3WABPfLJWDjWptjoPHZBd0B20M/UnJR+QZ/gyPgyuM+moHiSDLCX+/o08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718526555; c=relaxed/simple; bh=ooFwSoVJ9N3sXdcV4iug2DcGs+ehRHDEPEzbrAfyAEI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uVYdphAB23J4IamO58UHQelS8GTsAOpOs+6vLT91YzZ1eJ2jctSYCvZrAdPlQA0k4dPpvPBKUfHZo0/d24H3+APy/gppIji4aihBams6Nh7pAmRxa+tQEpYy+t2N4K/7fG4ZHJ/GJPJANDHAtUft9II8mLtR2+BNUMChlfgFxtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KpS3YKDP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 0643DC4AF50; Sun, 16 Jun 2024 08:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718526555; bh=ooFwSoVJ9N3sXdcV4iug2DcGs+ehRHDEPEzbrAfyAEI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=KpS3YKDP1ahe//Us3V7N1GqiG1otEZ4R6peB5lsLGldYx9UrZ+ykCyGuGoJ9rDU71 Gg+QXFjoENRLVyc1ckyOdFT52tyvx7YFZjtEQKCyYpj0asi0tSCNk2t4kFJBYbgp+1 13aS5FZ9iRdEUrYU6go5iSRMKrGd+DFTy/wyZr00mHeaFuU3c35cRUik/wQI5IlqgC 1lzr8hWPVuFWHgNK1vG1vPIrV7Vw2XGpt5LFFvFZfXCg+GrvUwkuw23ocDml8qYEpr GuXR+VrrALUmgOZlUZrR6RuRfdaVAvra24/uaoyN4OkYRnHYFs2qDp92Rh0sfx3IVe ekDOJCgVlVRFA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5BFBC27C77; Sun, 16 Jun 2024 08:29:14 +0000 (UTC) From: Hsiao Chien Sung via B4 Relay Date: Sun, 16 Jun 2024 16:29:13 +0800 Subject: [PATCH 03/13] drm/mediatek: Add missing plane settings when async update Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240616-mediatek-drm-next-v1-3-7e8f9cf785d8@mediatek.com> References: <20240616-mediatek-drm-next-v1-0-7e8f9cf785d8@mediatek.com> In-Reply-To: <20240616-mediatek-drm-next-v1-0-7e8f9cf785d8@mediatek.com> To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , AngeloGioacchino Del Regno , CK Hu , Bibby Hsieh , Daniel Kurtz , YT Shen , Mao Huang , "Nancy.Lin" Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Hsiao Chien Sung X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718526553; l=1082; i=shawn.sung@mediatek.com; s=20240616; h=from:subject:message-id; bh=ADiZlSVJT5s2sH18XbsNK2Wsb8sGtAwURKhvCjHjtzc=; b=FVT/WCynaSSn97vJO73+EtVbiFHnpQke6j5kOKH+9CSpaY+pf3TzcrWiqOmEJYs+/GibTLH26 PI8uVoDJsH9DfpE3reZyu3mXz7V5UXp64qRrbfhMf+MYlS5Y6DFcOsc X-Developer-Key: i=shawn.sung@mediatek.com; a=ed25519; pk=lq1w8BuWDINX+4JHjGHhhbAU5ICP+cL9VCj7wn+cEDA= X-Endpoint-Received: by B4 Relay for shawn.sung@mediatek.com/20240616 with auth_id=172 X-Original-From: Hsiao Chien Sung Reply-To: shawn.sung@mediatek.com From: Hsiao Chien Sung Fix an issue that plane coordinate was not saved when calling async update. Fixes: 920fffcc8912 ("drm/mediatek: update cursors by using async atomic update") Reviewed-by: CK Hu Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Hsiao Chien Sung --- drivers/gpu/drm/mediatek/mtk_plane.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_plane.c b/drivers/gpu/drm/mediatek/mtk_plane.c index 4625deb21d40..a74b26d35985 100644 --- a/drivers/gpu/drm/mediatek/mtk_plane.c +++ b/drivers/gpu/drm/mediatek/mtk_plane.c @@ -227,6 +227,8 @@ static void mtk_plane_atomic_async_update(struct drm_plane *plane, plane->state->src_y = new_state->src_y; plane->state->src_h = new_state->src_h; plane->state->src_w = new_state->src_w; + plane->state->dst.x1 = new_state->dst.x1; + plane->state->dst.y1 = new_state->dst.y1; mtk_plane_update_new_state(new_state, new_plane_state); swap(plane->state->fb, new_state->fb); -- Git-146)