Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp250105lqt; Thu, 6 Jun 2024 02:27:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXppB1EoTLqWohGITdwkLPbBuyFBxL6te1zOzYCwjsf8sZt++9xB/rI4knBxn3f2bJF7M/WDFAFCA296q6UJIa93Wlbpie89EZuHyCbVw== X-Google-Smtp-Source: AGHT+IEPsSdbgtLk24BmG9r32Lj8lCg/sR5iqV4jGEPEda7A0ol5WcFfTuLMj3lY3yDGpOINuu7H X-Received: by 2002:a17:902:eb8c:b0:1f3:2b46:47c9 with SMTP id d9443c01a7336-1f6a5a1392amr51803915ad.28.1717666022426; Thu, 06 Jun 2024 02:27:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717666022; cv=pass; d=google.com; s=arc-20160816; b=SIWxs0mEcNDQjE3YYCd7/rHFCUKRM5HDH8SKXnnzviY0cjObILTGLn+7odltWvaEjz ObzO+4HHZb8Xn3YEpOp0kALGtaseLA/SX6+Q5BdmGtvYUC093MOD0hE2t3O/g2DgbF5f M/yvG0zheyp8YXP0bS+H/k/2PGznA+Opma/zpjMnYhoBuvpqwHFa8ypsvPMkmzM5IjOY PVyup9fkjU2vvBz4H66ao9+pcsgH9fgrmv7YMMK3c2Yo/VouH7LSifKypBc/MqnztNzm qmXlh/vaZLMuflkkmTzSJAfc4Q8wvrRtn4gR4vhWTR+53zvigYO40rN2xEjIfPlJLZap ARYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i3+6+QTyogEskPWqDueFjhPdOWhJo2GLN1jhaZk0OD0=; fh=q/Ppq8/frEfcA3kotGB0IrpJr8gO0uNs3CtN4uoBAAY=; b=xFJLHY0BGeqty3Mhg8KQsZsIn7GR7HCohp2dl12RDjlhXlRn9qVV3nSFUGaDuXXeOZ 1bee2GRSP+z0o7KmPFdLyUlExOadrRJX7qEbiqdhqeDw83bYtp4zUBjlo3LXpNeHc3x7 YLey7LozRwLrUXg1fLxyQFhwwbF3AeDy0i5msWioLKGzd86WSCSZB7anNl8tGh1WYewO JtaTAC4kLcIoPlVzlgGhqquAMJPWbykcyB60cb8CJpUfrVXnZIBHLRwsjUAPAx1V+du3 yx4oC7vbHhq6NN49UShSr9T1WPqk6CbNdj9jCwfvfnOIRCYQFIUNSVey6X57v7PEKADJ 4lJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TX+wY4O8; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-203989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7d2c9asi8519665ad.320.2024.06.06.02.27.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:27:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TX+wY4O8; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-203989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com 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 4B9C7285746 for ; Thu, 6 Jun 2024 09:26:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F40213E8B8; Thu, 6 Jun 2024 09:26:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="TX+wY4O8" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 34F5D13CFAF for ; Thu, 6 Jun 2024 09:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666005; cv=none; b=mzMTIM7bA0teeVYgfvxPSGBgipQFN2kLncABjXJNgDWxV0pveQ7+X/QS0CmeG72mibGIKyjkumYDv9FShkg2NZlBkiZ2dwOki3PQRIsZQO4INAwMOG1DmHii+mXetOoOuun/+zAxq+pW/wBfr7+eKXS75ryoCzTmtLjgjejkbq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666005; c=relaxed/simple; bh=1wr9EKr1Y7iHpQu8yo9Lqoplr+UZxA75OUxOZ1LTDMM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ccv1lKb/awN+zylp87Ux2g7GF+QhrPwIQQKowhKQBiigiQl+6DEAyclu86vP6r9zNJPD/RXlAk03kMV0PydW3pxgiWa7aGtqLGFdzCOWUDf0pq+fP2iE3zLkjb16fuZov5A0YBJVF3csnL/l7NUV2K5rRjQkmRSfsbfAm+ZkHis= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=TX+wY4O8; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: dff1057e23e611efa54bbfbb386b949c-20240606 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=i3+6+QTyogEskPWqDueFjhPdOWhJo2GLN1jhaZk0OD0=; b=TX+wY4O8bpK9plw1UvskKY+YW4olVcFQ9HibznR0C8cZn4riwk24HXspqm4YZf9YcFbTvGqojIDOuwgy9Vd3XgmoUIWjAnMUh/e5U7LuAEOKAS6UdWieOMnGg5gfXTYyp8lOXDw5m2kKi225UeHefd8dvovgKLLXa1wfU5bHlJ4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.39,REQID:dc0f70d3-d94d-4878-ab00-243fbb5553dc,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:393d96e,CLOUDID:15d24988-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES :1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: dff1057e23e611efa54bbfbb386b949c-20240606 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1172105907; Thu, 06 Jun 2024 17:26:37 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by MTKMBS09N2.mediatek.inc (172.21.101.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 6 Jun 2024 02:26:36 -0700 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 6 Jun 2024 17:26:36 +0800 From: Shawn Sung To: Chun-Kuang Hu CC: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , AngeloGioacchino Del Regno , Bibby Hsieh , CK Hu , "Nancy . Lin" , Sean Paul , Jason Chen , Fei Shao , , , , , Hsiao Chien Sung Subject: [PATCH v8 03/16] drm/mediatek: Add missing plane settings when async update Date: Thu, 6 Jun 2024 17:26:22 +0800 Message-ID: <20240606092635.27981-4-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240606092635.27981-1-shawn.sung@mediatek.com> References: <20240606092635.27981-1-shawn.sung@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N 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); -- 2.18.0