Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6029692rdb; Mon, 18 Sep 2023 01:35:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEX2BF2UaC2x5N4qYTQrDDyb+x5pbbs6EZczhX5Dr582DnM4Z3xFDMSUbz29hKbpU7VraF0 X-Received: by 2002:a05:6a00:2401:b0:68f:cb69:8e7f with SMTP id z1-20020a056a00240100b0068fcb698e7fmr8046285pfh.7.1695026107937; Mon, 18 Sep 2023 01:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695026107; cv=none; d=google.com; s=arc-20160816; b=SbE/zYQywgt0NAFOw+PI/NY55ho0cuVyrwGkCQ8oO45ZPLR1Q1XJ0D296/+stbqznZ UScsxZWVDx9XngBvOd2WDZTYsBqlccn8FW2oXdEM9gNp0O8fgTyZpXKnaGkYP++I59ky 9yFTavWRFcuJXmv4z3iVm1HwyVkLpv80UAvfr4x54mxobs4p5B8bY3l7yIybb7WyZdsO pXtMIS6vG8+Jyhx/bJLj7lDu9q6EPTTZOUkwS5L9Ce5n8df+JFN4AYOhIwFxUk02WPo8 vckk4rIAcswZjXfDrNYGzuGHqnZlSVPgzatopoI1lWnHfdkAD2/PL2x1GqAE22SV4neD G4uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=6zt995w9gkiCM+6T+4GvZlCBzgYVXteX5cMwkXuVk5c=; fh=Jxq9pZsgztLl6xmMF99kIcKUV3YJPpGDusX6X0M5ciw=; b=x2bQinSbk3a3AXMGEzUDhcxbtxiA8DmffIlhMscyCWv6998hAOzBku0tWhLd2LzuPx H8WYRbpT6+h2xuyOjM4P0xSdCVb6/Ck1o8EWKcLMQ48CMl8gb7pU6jdlRevu4KELn7/a WSvLT3Io9R842X7BmEgZqpk5meALc/CWvAUbE5ulRlFfx60k/C46QrGjkhKrKFsLEzkZ FIunmzfbUQFVL6bItCL08lM7QVmTA3xkP+CbG9ALCtF8/UHBFm7tg0vGyBh3tyaOJm1H U6L8kDJRTckQkgWTj2DyScQqEtTimXjuqEy/nGpgOpaEuZuI9znbjuM0VEIVRq+5CUAy +mgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Z+KmyVEf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id p39-20020a056a0026e700b0068fad24a32csi7656511pfw.27.2023.09.18.01.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 01:35:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Z+KmyVEf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3AD74819AD87; Mon, 18 Sep 2023 00:02:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239933AbjIRHBc (ORCPT + 99 others); Mon, 18 Sep 2023 03:01:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239967AbjIRHBB (ORCPT ); Mon, 18 Sep 2023 03:01:01 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01FDAE6 for ; Mon, 18 Sep 2023 00:00:47 -0700 (PDT) X-UUID: 15420fc655f111eea33bb35ae8d461a2-20230918 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=6zt995w9gkiCM+6T+4GvZlCBzgYVXteX5cMwkXuVk5c=; b=Z+KmyVEfQ3AU8s5orwxEXG/emUX7qrrdITTl0s2ZeRURJEouhMmYBR8a4LgzvR+mk07ACVx9O47zCNPvR2YfpFhvRXjyAjgutJ60Pnf9krs0xl3xOsY5vj/K49KXY466jYq4ejuY7Hsv3a/nl2xHB9OujGnbshG5XFkCAke5V1w=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.31,REQID:698772e3-374c-4fd6-9287-00867b49bf26,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:0ad78a4,CLOUDID:eeafd1ef-9a6e-4c39-b73e-f2bc08ca3dc5,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File: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 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 15420fc655f111eea33bb35ae8d461a2-20230918 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1923497886; Mon, 18 Sep 2023 15:00:42 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 18 Sep 2023 15:00:42 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 18 Sep 2023 15:00:42 +0800 From: Hsiao Chien Sung To: CK Hu , AngeloGioacchino Del Regno CC: Bibby Hsieh , David Airlie , Daniel Vetter , Matthias Brugger , Philipp Zabel , , , , , Hsiao Chien Sung Subject: [PATCH 1/1] drm/mediatek: Add missing plane settings when async update Date: Mon, 18 Sep 2023 15:00:28 +0800 Message-ID: <20230918070028.17915-2-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230918070028.17915-1-shawn.sung@mediatek.com> References: <20230918070028.17915-1-shawn.sung@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 18 Sep 2023 00:02:02 -0700 (PDT) Fix an issue that plane coordinate was not saved when calling async update. Fixes: 920fffcc8912 ("drm/mediatek: update cursors by using async atomic update") Signed-off-by: Hsiao Chien Sung --- drivers/gpu/drm/mediatek/mtk_drm_plane.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/drm/mediatek/mtk_drm_plane.c index db2f70ae060d..58e9f93c38c4 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c @@ -206,6 +206,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; swap(plane->state->fb, new_state->fb); mtk_plane_update_new_state(new_state, new_plane_state); -- 2.18.0