From patchwork Tue Dec 12 12:19:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?U2hhd24gU3VuZyAo5a6L5a2d6KyZKQ==?= X-Patchwork-Id: 177300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7682229vqy; Tue, 12 Dec 2023 04:21:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTbmY00LeCXn7frZLgqNnpHfMVZq/a6DbYO/CCiXLMPyKI95WivdLjiV2uzmExAkQHZTC7 X-Received: by 2002:a6b:6517:0:b0:7b4:2d71:fe41 with SMTP id z23-20020a6b6517000000b007b42d71fe41mr7621369iob.27.1702383671460; Tue, 12 Dec 2023 04:21:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702383671; cv=none; d=google.com; s=arc-20160816; b=No501t60KS6S8rEp4kttj6V/3lJVDRzE0d7eFPkK/el1D+jq7u+eEd5CQqENwmQ7vx kZoLijQtdyYewMKhldV4zTpHmfqKmHHpA/e/NwvaEsP3aBTvOqW/bgL+EPhm2E9Egf5u 2tT5/eIEVKoDDqKwHsJAMotE7bgTvJ4+TL9yf7JFvn0PkencGwfjWPINGYnsNUI+bNaN /NzIsmE9SsZccanZDKUwnACVDyAiRdWkSupE/u1YuvLy2TJ6Bn5odSA7bQlaShr68UQ3 bAwqjSd5e2wtQBO/JK0o/CTbCZKX+PwGfdvbC2CsKVLhFedaOViLVQVt+jMoHfj06QMq iJeQ== 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=JBMkZAIFf288hoKMwUlhm1D9YhcT5t9X6lxWz2ykYQo=; fh=9gBY3LVbdxTioLa7O2pOsMOkTMxlNAxxvKin9b2wF1U=; b=VkqazpDDoz5WLc8qxGKJWAQ85hijHSOiUHdfIZggtapC3RW0me53NxEJTYpohG6vCM FwGXrVn2wPPpZXfkrVZOEztGYBd3reVTmjeIiw7QNzmBYP8G7dGRAwg2O5G3X7ryVU1g bmjoDQw81oVgNR4jCPYgWBdFq1/HWkFTDxcgGMGX9DMRL69w9nrpvP41jfjDmR88unBk fGS/MH7eTh8kgiJ7QKOW0sk5NVZvJrIHQLlFjNB5iOKemSSfPaHC0jB1VpKZ3wjtM2UK d8iGv9r/0WnxEkT6/MmWlC6372Dai2h3SC4V0gwa0mSeNaMqZhtlKOAv2J8KK8kRWDf6 /PoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UzUl9hR0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id ks1-20020a056a004b8100b006cef628dd82si5305205pfb.289.2023.12.12.04.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 04:21:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UzUl9hR0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 6E335807930B; Tue, 12 Dec 2023 04:21:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346633AbjLLMUo (ORCPT + 99 others); Tue, 12 Dec 2023 07:20:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346482AbjLLMUL (ORCPT ); Tue, 12 Dec 2023 07:20:11 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73A97F7; Tue, 12 Dec 2023 04:20:12 -0800 (PST) X-UUID: c744a5fa98e811eeba30773df0976c77-20231212 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=JBMkZAIFf288hoKMwUlhm1D9YhcT5t9X6lxWz2ykYQo=; b=UzUl9hR0Gk5JVblb2NWQBhlv0OBaa/bMr0xd/4u3RxGuV+llzWpfH4J1A6Z4hHX4nNN5TjjqCWHymQiBZu4DpCCdWREtSMLWYYBtDw3D+9ZQq+56rWr2wAZW3SxyjZr+mHwAyKPPZ7aWl59hO8Zp1uFoYB7sjvKPLmDeC/W2u2Q=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:528ed13f-757d-4db0-acbd-7fe6e1402a38,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:5d391d7,CLOUDID:4d3b1c61-c89d-4129-91cb-8ebfae4653fc,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,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,TF_CID_SPAM_ULN X-UUID: c744a5fa98e811eeba30773df0976c77-20231212 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 422742863; Tue, 12 Dec 2023 20:20:03 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 12 Dec 2023 20:20:02 +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; Tue, 12 Dec 2023 20:20:02 +0800 From: Hsiao Chien Sung To: AngeloGioacchino Del Regno , Chun-Kuang Hu , CK Hu CC: Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Chen-Yu Tsai , Sean Paul , Fei Shao , Bibby Hsieh , , , , , , Hsiao Chien Sung Subject: [PATCH v4 15/17] drm/mediatek: Add missing plane settings when async update Date: Tue, 12 Dec 2023 20:19:55 +0800 Message-ID: <20231212121957.19231-16-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231212121957.19231-1-shawn.sung@mediatek.com> References: <20231212121957.19231-1-shawn.sung@mediatek.com> MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 04:21:00 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785078660561255151 X-GMAIL-MSGID: 1785078660561255151 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_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 dfd81172a940..ff300426b590 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c @@ -232,6 +232,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);