From patchwork Thu Feb 15 10:11:09 2024 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: 201329 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp293065dyb; Thu, 15 Feb 2024 02:12:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX8oPGEkooMvEcgTFaHBLuzGCkScf1yEICsYAkE5WnS5fTCFWPtjJzJsYzJafTZAa4ICrnX2IMG6sGuw16NJP+Fe0tgqg== X-Google-Smtp-Source: AGHT+IHX0UsUtzvVrW8B4xcQ8QDA9iE7sF4dSRlM12qhTinK3Pw3DJYciEjtYKxPK7mdEnLQI5pt X-Received: by 2002:a05:6e02:1112:b0:363:b7a0:b1d5 with SMTP id u18-20020a056e02111200b00363b7a0b1d5mr1114994ilk.10.1707991966550; Thu, 15 Feb 2024 02:12:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707991966; cv=pass; d=google.com; s=arc-20160816; b=p482bjI0TIrPk9NmSkABgksZbDyvOhd/ewyGslG1OyiuZeKyag/I2zlDkaI6KbMBvK Chn10r4AfVwKP9VfMpVVrEGy+hOwgoqFl8870yRXGpCHYCmvPTEUeSqvJ9Ym+ClrsE6s 5jXJkXcigYyA7dCRMjnXhar41r555rYE7vbVzTZeyMJgUjd6KQjsyCqUvTo53INHX88a aiBu1JfJzxJJeAxTrrVGKxFYk24iBPY/4Xjr2GuWgRR+DvrSRFl/Zwzqh93HSZQ4cmcB 5QjKOguuzYPO+/rHf11VrxP7bYjR82gZ5oPHGhq6mM0AyHNjw0B9quMOoVi9JfbneAoD 9XTA== 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=0UW764IqKZlZdsFXqAecqzBj01NU6yDWNFVceMLD5+8=; fh=PWpMUFySz/+abNBcZMGAF+1x8Vi76p56GtPU1dgQSG4=; b=TDa3eLQmpGRUg6lvSucjkRtGB+I5S0ZfZLCfywWnCctmZhmt3g4DN3di3TXKnsBrFe suwHsnvbAaIZsANBZX4SWCPyUUdRW2ul2wVt/k8hQoNLnxqBknq4vdFEGL6Xv8p8q6hL cobksZ++aZjIU3/JESvxNqYnmbgWFAnv0kNkj3Z4rdZNk4igvOblkMiupQbGXnXqrpFY VsTI3Z2tG0idBOioWsgvoTWllyDb16zEj5jI9f44Y3VCA6L5hcLLDrX9RIuYzPoX9i5D E2bq9erQAbJKE4PGhzjbex4KSiWnw08CxZY/DcU1b8bg3mHxXsmcCickPmRzG6WlyUJV 7Bag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=R+2DYQMu; 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-66597-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66597-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k12-20020a635a4c000000b005dc504b9628si877462pgm.113.2024.02.15.02.12.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 02:12:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66597-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=R+2DYQMu; 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-66597-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66597-ouuuleilei=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 540B62823A2 for ; Thu, 15 Feb 2024 10:12:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C6BA66B4C; Thu, 15 Feb 2024 10:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="R+2DYQMu" 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 E8B7B69D0D for ; Thu, 15 Feb 2024 10:11:27 +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=1707991889; cv=none; b=Thq3vn2J8AMZWDQYCM1yox808q9mswLuf57cZPSVtMsBrjoeRnkL8KSaiJdPatoZpVzy87qYTnyHgpabGYa+OohX0s9GZ6bl8TWDFum1CJfy/URASp8fduKUH7jPawFxr3UEzDlRvTwiFZvDZWZKdVawW4cfZzD5lTssBclnkP0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707991889; c=relaxed/simple; bh=Tcf7gGmH1pUx273AfxUf0JZ683ChpZg2rGqMNjoeJqo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Y9QXW+cu8T6eeMHFstvisswDKtX77ujegIXLnMbUo/SoOJ6wZG9G8TbL0TozBtGW/llpegMZFRk0AOWDEv2HS9YXVrJngcYVv3kkPWdDqiO50bf0cBl9Jg1JNnyMLbVyuNkNtqVvoWrK2+BcaNBFJMT1NreoRNFM02Ew2taAFJU= 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=R+2DYQMu; 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: 925a641ccbea11eea2298b7352fd921d-20240215 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=0UW764IqKZlZdsFXqAecqzBj01NU6yDWNFVceMLD5+8=; b=R+2DYQMuhXLqZd12mJbCDvmcnLX0mCMIUyrOLl3v4PKwvNRTnaVPTm6jh8v03DZipvLa1Ii7+Nh41qvFChWANquBx0RiaWEpcAwqy6hXbcKTaR3fO9tszUyhtuLXgtAEWr4oPY2wu1his9PaHoRWPaH/fx8/xT6ff4yqo6l2rUA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:cc6cc8f3-e1ea-4d82-a108-3e58c60053a8,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:6f543d0,CLOUDID:b64d528f-e2c0-40b0-a8fe-7c7e47299109,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 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_ULN,TF_CID_SPAM_SNR X-UUID: 925a641ccbea11eea2298b7352fd921d-20240215 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 88760807; Thu, 15 Feb 2024 18:11:23 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 15 Feb 2024 18:11:21 +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; Thu, 15 Feb 2024 18:11:21 +0800 From: Hsiao Chien Sung To: AngeloGioacchino Del Regno , Chun-Kuang Hu CC: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , Bibby Hsieh , CK Hu , Sean Paul , Fei Shao , Jason Chen , "Nancy . Lin" , , , , , Hsiao Chien Sung Subject: [PATCH v5 03/13] drm/mediatek: Add missing plane settings when async update Date: Thu, 15 Feb 2024 18:11:09 +0800 Message-ID: <20240215101119.12629-4-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240215101119.12629-1-shawn.sung@mediatek.com> References: <20240215101119.12629-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 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: 1uypKmLkdmcgNXYDo2rRhsLcTtMlPIaVKx5ICGp/WtGdCqKtxM6bh64N WivjR4eGLYexjI/F2s67aBKK8e6y8yUtdpGicV4RA9lly13c/gHt/okBLaEo+NwQ5VDi3O9Bo8W MkQWv6iXBcIE78YqRWo6HM5rqDwqt47Is4r3/A5IJ6yLwsxgF/630/ZW9qu348SPRFJwtcxhpr/ zo9DQwBPIqHmvLgj9d/1p729Dtsi3b8InIzH6cbZJKBVkiWQLYwZBgUyJVEbl6Fw8/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: 8B041C672F0B02B6BD49352870BD20393DEE1D2E9FBC513DD2A7637DE91263552000:8 X-MTK: N X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790959384299965863 X-GMAIL-MSGID: 1790959384299965863 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 ddc9355b06d51..f10d4cc6c2234 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_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);