Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp58590ybt; Tue, 7 Jul 2020 16:02:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBeSeuKqWo6+b2XQhQn5beDyeLgA7aOK6DyqL0PsYzbmlQdQWq8vinpYRL4fw8Na/Prgxo X-Received: by 2002:a50:ed15:: with SMTP id j21mr38316287eds.246.1594162930036; Tue, 07 Jul 2020 16:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594162930; cv=none; d=google.com; s=arc-20160816; b=EzMuJWWgJW37/8BWObZOVblvL5G3XsJnQIBrcdnC30VUElVfr0XMQjwJ+U+ZFgQWub owfeEdcz4MKF//ugbFzU7xJ1UcS7V+HnA9Ivs1QuJ9tNZaoDCMQYhPwfyk30wYNbiVpo J6zT+HDu0d+vgxtSRyt22kLz74r6uTQ3FV0vuYFcWsccab2cWloUpdh4rrVdblox8N0S ds8BIyB212ijXbk8AugsdrA2WC4Oj7/tVP6DCSEdipPWG4gmvXk9NdIMWYaVPMHtwt+m lfNCZt+eVEGJRjwh43NA4D+TeHQcLKJ7N9j2OJD7AczaZ+7i5ef8zAbVuV/F8ex5lQwq Munw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3UrcJdl0ktU1KZN1xHKV9K00E9CauKCq17pSYrwoZ6Q=; b=qpSKoN1D5sVmY6l5R6NHEquVPJwaXype/Xw0/2OQyNPfKzmJL9ZNCPYmJPj38P/5si uRzsd7LUitOULCsZ6V6BaqYbSz+4ftAmh5/DDv19vxKVhB8ffs4Sn6rmXnTpuAb+ciHP r4WgMqc+tOzxB4EwuGnhdutHPtVcnJmUE/qdbYg5t7MCtV2pEppardWyY9hTfZwo2goo DpOW1O4yCaOGxPYiwygKWuFaQZeYvmv9A/h5G0j5jaFuvrwPXVLFWyLkPXxXMFJAgqCb Vp5f7qBoVGMtqNE0s1nQ2RBrO55vgkw0UIhrPjUeV0usOrEvK7Q6pU9Itu3c5ARyimr+ YujQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="pid8eg/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si15722512ejb.322.2020.07.07.16.01.46; Tue, 07 Jul 2020 16:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="pid8eg/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728400AbgGGXBa (ORCPT + 99 others); Tue, 7 Jul 2020 19:01:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:36678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728001AbgGGXBa (ORCPT ); Tue, 7 Jul 2020 19:01:30 -0400 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 542E32075B for ; Tue, 7 Jul 2020 23:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594162889; bh=4qJEKQQJcDJ7ghgfJoXN9/TcliJkC9rBFhJEq8AKAaY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pid8eg/X7TWu5oQ8D71nKDtkDO8KtHQjV+IIyaY5BUtDBgetVYrRuZ9TlpnFwDDK+ Wd2CW2uDvrIhRkC5CSjvo/bz4xcCA4p54ZKnG7J8XZdeBTen2XI63NHEI9flHq48W0 Gn2Ct2XkGWr8+Kz54wmfV/L6UEuVdOgYCBktcIPA= Received: by mail-ed1-f50.google.com with SMTP id d15so40111951edm.10 for ; Tue, 07 Jul 2020 16:01:29 -0700 (PDT) X-Gm-Message-State: AOAM531/sXrpivgNih3LpFmZpw8bRUTgI9om99+Wj8nOC3rrUVEYqB4I Y3UDFlU+LqogWPje53rjC7GMqVREQfuddrCeaA== X-Received: by 2002:a05:6402:203c:: with SMTP id ay28mr54721396edb.271.1594162887967; Tue, 07 Jul 2020 16:01:27 -0700 (PDT) MIME-Version: 1.0 References: <1594136714-11650-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1594136714-11650-10-git-send-email-dennis-yc.hsieh@mediatek.com> In-Reply-To: <1594136714-11650-10-git-send-email-dennis-yc.hsieh@mediatek.com> From: Chun-Kuang Hu Date: Wed, 8 Jul 2020 07:01:17 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 9/9] drm/mediatek: reduce clear event To: Dennis YC Hsieh Cc: Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei , wsd_upstream , linux-kernel , DRI Development , HS Liao , "moderated list:ARM/Mediatek SoC support" , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Dennis: Dennis YC Hsieh =E6=96=BC 2020=E5=B9=B47=E6= =9C=887=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=8811:47=E5=AF=AB=E9=81= =93=EF=BC=9A > > No need to clear event again since event always clear before wait. > This fix depend on patch: > "soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api" Acked-by: Chun-Kuang Hu > > Fixes: 2f965be7f9008 ("drm/mediatek: apply CMDQ control flow") > Signed-off-by: Dennis YC Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c b/drivers/gpu/drm/me= diatek/mtk_drm_crtc.c > index c84e7a14d4a8..ba6cf956b239 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_crtc.c > @@ -490,7 +490,7 @@ static void mtk_drm_crtc_hw_config(struct mtk_drm_crt= c *mtk_crtc) > mbox_flush(mtk_crtc->cmdq_client->chan, 2000); > cmdq_handle =3D cmdq_pkt_create(mtk_crtc->cmdq_client, PA= GE_SIZE); > cmdq_pkt_clear_event(cmdq_handle, mtk_crtc->cmdq_event); > - cmdq_pkt_wfe(cmdq_handle, mtk_crtc->cmdq_event, true); > + cmdq_pkt_wfe(cmdq_handle, mtk_crtc->cmdq_event, false); > mtk_crtc_ddp_config(crtc, cmdq_handle); > cmdq_pkt_finalize(cmdq_handle); > cmdq_pkt_flush_async(cmdq_handle, ddp_cmdq_cb, cmdq_handl= e); > -- > 1.7.9.5 > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek