Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp544553lqs; Thu, 13 Jun 2024 19:48:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTHILPYcxrdfwWm8Xi91dKpHAPhCI4VfGB2YkjioT0emp/O6Sdc9od5Y8TujOtHHg2ukvMmOApidsK1JnXqcqBTF9yFBUkZV5oXwFgTA== X-Google-Smtp-Source: AGHT+IFDuf2pczVs2SkHPpuo8MrwUw/tXLP6iYWlo/cItkAbUzOUGDREG0UbHYn9hDPcXO6E84+p X-Received: by 2002:a17:903:41c9:b0:1f7:2dca:ea65 with SMTP id d9443c01a7336-1f862c25e20mr17549465ad.69.1718333298248; Thu, 13 Jun 2024 19:48:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718333298; cv=pass; d=google.com; s=arc-20160816; b=vs/7sBR6wj94o95qCTq6u5Wy42lqp/1GhyzCUq1IwEYFpT+g3XxoWXT24yslommrda uhavi6B4frehgphYCcjKDIRnjkW0LllsmDy7/wHUhre7gz/tN4Y77MLPweJmO5wvh1jO ekrNacpsfp4A5gKkCledPkHND2aFDdFInZO4Ww2skvxpZ67gfYm8W/2Jzn0oOgnJXBaM OlZaaAW38pyNyMiZhELGKDZ73Eicd5AIarivxD8tR8wFiKgsOC24E0EnpHDIoxb0/7iu 2KQdGVC1dGfiFY3gr6vAGtlxqJXS+3IBzxnnRtL8L1zge75LOr4p3myBzLrzqiPrOuGH az1w== 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=V3C92UuwK8e6w9duRcMMIFA0kj1SNfPRX4QDnnx85jo=; fh=Cte0M41KL382K/845AypIeaUjyBIokCILHK+7S14cpc=; b=qSXwJoYkKBbv733HhYDEGgizBCMfE/AqcEJ3SO4vRQWhrpHy6bLtkOEStIHGdKKT0Y HW+2cClO+6O1LHNG11lYL7+PSbK+CD7YY9J1rRv7ALTouomeUl9SjFDWMFPEmMel6fuu 72kch7Unr7WRTWevrQDi0xsDB1Go8KxtWFptS7klcCtClGaQTKZhtwz3Cz32RS1ZrEe1 fHoO/vWZ0H4SD/XZ4sVVphAyxi4WoPC9OC3ci32X+OuM67lEuRgFUsbrG4w1KwMg2vB+ cRH4W3b0zEGKEpBiu0ZftLcj3UOIGBu95FKholUCokKK4z8+CRrb/UcDxFg8HRtwuQPQ /F8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FbPZD0uG; 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-214255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214255-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-1f855ef8e27si16686275ad.441.2024.06.13.19.48.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 19:48:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214255-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=FbPZD0uG; 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-214255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214255-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 488BD284860 for ; Fri, 14 Jun 2024 02:47:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27138186E43; Fri, 14 Jun 2024 02:46:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="FbPZD0uG" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (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 E7A6A184121 for ; Fri, 14 Jun 2024 02:46:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718333192; cv=none; b=UmiwRqbe2SXgr8twizzhkFkdYiZyutRE7zPfgT/WxOIBeEfRUuEk2B8XNTPRN+khxsdoEsyJJp2Bnf/8uJGBSla2vCZs30W7UBKBLAiIs+ix5WlF6QjPuqlJZUYrJkjh4KGeQhH5/iuiR7NqsjaIcAALKGhangfCvqc80+cnE1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718333192; c=relaxed/simple; bh=v6jiytDVtHyiivA7Ge8empHdmaxu6UTUDxzrajpeTW0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MM8IKjA2WEUvqZAaOEeUJIbHkaGph43WEEYtcsr64p0a8T5F/HnolSVWadC70qUXitD89MvColORd/QY51aRWsk6kQHEPAHnUG/BcL3WJjQ0AKU5hstS/GPnn0ymwSVzp+sK9YFOPKi1nZTAFtiYz06NA9WhRAffxPX5mwhhbvQ= 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=FbPZD0uG; arc=none smtp.client-ip=210.61.82.184 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: 4b6afa3229f811efa22eafcdcd04c131-20240614 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=V3C92UuwK8e6w9duRcMMIFA0kj1SNfPRX4QDnnx85jo=; b=FbPZD0uGSNc/WLmSW504aMo8SrA/3ImqkN1qXIdeQ2CwA62QRN/u50pu1MGhl5kHTuiOg3m7knH8QrzlXgEXZeASxkVCr5WXQfSqNN0BQN2HU2LX5G2lJBnyavVrQIB3v7N2KJYBcgfRmfIldjOB7alOzpZQSC1C4B0p0zpYWYw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.39,REQID:3bdf6aaa-bb4e-4971-b36c-1d74f771489f,IP:0,U RL:0,TC:0,Content:0,EDM:-30,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-30 X-CID-META: VersionHash:393d96e,CLOUDID:9fc6f893-e2c0-40b0-a8fe-7c7e47299109,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:2,IP:nil,UR L: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: 4b6afa3229f811efa22eafcdcd04c131-20240614 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1790255519; Fri, 14 Jun 2024 10:46:26 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 14 Jun 2024 10:46:22 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 14 Jun 2024 10:46:22 +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 v9 03/21] drm/mediatek: Add missing plane settings when async update Date: Fri, 14 Jun 2024 10:46:02 +0800 Message-ID: <20240614024620.19011-4-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240614024620.19011-1-shawn.sung@mediatek.com> References: <20240614024620.19011-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-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--3.918200-8.000000 X-TMASE-MatchedRID: OgX40jBOMA++g7B0zLCl84zb2GR6Ttd38/hTakhR/NCCsBeCv8CM/eNl jrsvvgvDJZBJhgUbO4znftxNodBrx9m0JHSAKf2wA9lly13c/gHt/okBLaEo+NwQ5VDi3O9Bo8W MkQWv6iXBcIE78YqRWo6HM5rqDwqtpWAvGJ/ULwFBW8LgMmswZUJNg7w8knTeIVlaBsGiozAecR p7tGEPcwkqRRLprSfLwwiKS/7Mw1dnuZPtGJ5FPjOVSX7sckW+wZBgUyJVEbl6Fw8/PpTMRaVvm iAyeA2kc5MSfkiJFI5p3LlElBHTlw== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--3.918200-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 897ED056EA6719E8EF52DC5115A0F01C163687F9D63FCD59976AE5BA9BC937482000:8 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 95e1b17091f0..d20770162736 100644 --- a/drivers/gpu/drm/mediatek/mtk_plane.c +++ b/drivers/gpu/drm/mediatek/mtk_plane.c @@ -228,6 +228,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