Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4596587rdb; Tue, 12 Dec 2023 04:21:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHa0RA+SWBVbYEISqXqhhf1y93XzrvN2AQgXJ0SJPqdnXLJeHciMeonfWHCAaieOcq3gYwI X-Received: by 2002:a05:6e02:1e03:b0:35d:620a:63b5 with SMTP id g3-20020a056e021e0300b0035d620a63b5mr10720503ila.29.1702383681832; Tue, 12 Dec 2023 04:21:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702383681; cv=none; d=google.com; s=arc-20160816; b=vVC0OHkH+VIZ68yH7PtZ48vvRurtNIdBdjMBIrFpdOS8uvlcPbhkB1xOQ0iA4witZC 1YP9TbOEJsadMYkc2jADs9W4fEibmaLDvJ1lNtx4MY9K1IhKXVPPkhI0I2DPHfjZgMyJ XuIIB4kfkOXmV+VPic6o5lpzTYcrgIOqF430DAzAZusAZgIYeEAQHOdYfcR+aSTHcpcg 2CBBNLc6Fmm/kHVHKS/RVFKyKq0/560ufsJ8AdKA/6fseEpCj9NF+5QgTMzeyk+dYAMo glkWY+n6ncpKz9Z2k47qsBuE9xgtvD0KCBnrnEnox9wEu9vnToiTRVOsL2uuACt/XHj7 Cnwg== 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 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id k24-20020a63ba18000000b005c6eb4bc772si6043813pgf.844.2023.12.12.04.21.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 04:21:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; 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 23.128.96.38 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 9E52A8096BAF; Tue, 12 Dec 2023 04:21:13 -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 Content-Type: text/plain 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:13 -0800 (PST) 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); -- 2.18.0