Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3285797pxk; Mon, 21 Sep 2020 09:42:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEy3taWILHcwaCzuPAt3u+xGvPKxjrNrLWDEP+MlCNPJwcwU8+9n8Zqvt7ROb/D6daRwpB X-Received: by 2002:a50:fe07:: with SMTP id f7mr538542edt.173.1600706537235; Mon, 21 Sep 2020 09:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600706537; cv=none; d=google.com; s=arc-20160816; b=VC6vgZEMQ1ciBQw7yziCrmT1eJsIgNCDL6jDL0KXuN+p3V53DwRrnR40rakYYbMhTV 6YtzBcJFFI2I05Yw/r7QH8SUpvAG7gwPVJK+hHHbI2//UPC3KXiGrAWEA95qpVmA058z 1PmIYelqhhLKdnbMGak2XjkNJ84lJLWjQDsKuejQgX4AnpoI1b7xtFQueHQ0i5regc86 yy6eCcP9aUiXDHGHI2Bzzo5l8chc0eiEIq7C6kdEkHAdsh1oY1D79G63KNvD4QzqOEGQ g3AebKOD6pYDNJ8/N9rYm1YWNC9qGlXebCUwx+Yhb7uNA/wehE31lrh1JUtJCmvXCBq+ un8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=UZX0lVSW/BkEY5EryFzi+/GuKlznQU9YGzQJgrOT6C4=; b=T5UhEPT3g7wgY+Yw6gbqVLbI7VNHN0hRzQkj/xdre7Ef0SCTfur1U3NLh53+o/4cjQ Gd/E8qTzPF69MWu0LJBmxvtB8Aw/2QAN8BMZrqQgCTjBjWAKxuS1AYssZHSENZjaFj6d 7rfvfnb9Nh5i5ejrcL3+BumIfeYo8qoAqPiZ9/SltITlEwFqgXTySySK618mXEl4S42X r5jU53fHEVv6yKd6VLjCOfRwoynsDZxsYWDg9Pb9vd/lNvYmYmXNSRkDZnSqz9oMX294 Yn2XTjeop2LJaYR/iPVWgYpYRFTGTkXGjI+5DfTwEu6xCqKYSN8DMNsrnDfrplyfUz3F 714Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iBQJfW+P; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si9115820edb.493.2020.09.21.09.41.53; Mon, 21 Sep 2020 09:42:17 -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=@gmail.com header.s=20161025 header.b=iBQJfW+P; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729080AbgIUQhg (ORCPT + 99 others); Mon, 21 Sep 2020 12:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729044AbgIUQhV (ORCPT ); Mon, 21 Sep 2020 12:37:21 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA926C061755 for ; Mon, 21 Sep 2020 09:37:20 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id e16so13517446wrm.2 for ; Mon, 21 Sep 2020 09:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UZX0lVSW/BkEY5EryFzi+/GuKlznQU9YGzQJgrOT6C4=; b=iBQJfW+PbQ6dwx/Cp+3UtA7/VPz72PX7opUnQ6BephjRS45wwN6DC4an23bNi+ZkLp KY8NYSomNL0yvk5PYd+YcVM7qPjf1OQ6F4sN8xMMopxX7WzgQaWRIPA7U6CnnxWuinYF PuXLhzUkRHSAXdoCZMswlHSFHTS9CnTNYFcOtfvDCGLnGoVL99ZstlVaAX9TJwGjwuPb LC4hyQf2iuSV7MpYla1zP2MM9RTgkJbmD+maHoMBcj9Gvv6XUxiz+5T0eBT0ShHHO7Oq Kvlo1RBZFyMNune7QwzqMAZ5n1E8n3ghIY3wcBR1on7ovqDkZ14X8JMBwh0TfejPapaJ pBbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UZX0lVSW/BkEY5EryFzi+/GuKlznQU9YGzQJgrOT6C4=; b=SrcSUhyT3qhlOYUJ06u0J7PTt/S3xGCrJstVQHK7AAtQ7uQm6YDBZOqlZ5ABkNCttY wf5wfWpw7ZBoVZd+TLgBO42uTZCMn9YRfpYl2HJoeKvuvblc4fFeO1p6NZPPP2bn2aVJ 613g9XFzjDyEBiD+gf0ojjnk0SMGTouMa+Z3USdyl1CrDNLySgYc1ZKGsZRhP9qRJHlP Zv1CoOHOmIPvoneEAKl3tpMVGHcFq7Myi7QOldUKxhMY3FS+UmeS6E4WobyjBBf4fXcw efJr1LYorp/Bpc1Z7np/ukBLSrnncmkauJUoaB5WjG1KT81pBa/3woTkkViPkuxRMUkk P84g== X-Gm-Message-State: AOAM531AkVUE4vVTNupJK3sQLweFynTE3nkDbuZfFgo6auzs7g3UbxfF gyqMkTH4zCzmbw4u/L7KhEw= X-Received: by 2002:adf:84c3:: with SMTP id 61mr606109wrg.131.1600706239370; Mon, 21 Sep 2020 09:37:19 -0700 (PDT) Received: from ziggy.stardust ([213.195.113.201]) by smtp.gmail.com with ESMTPSA id c16sm22948533wrx.31.2020.09.21.09.37.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Sep 2020 09:37:18 -0700 (PDT) Subject: Re: [PATCH v3 9/9] drm/mediatek: reduce clear event To: Chun-Kuang Hu , Dennis YC Hsieh Cc: 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 References: <1594136714-11650-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1594136714-11650-10-git-send-email-dennis-yc.hsieh@mediatek.com> From: Matthias Brugger Message-ID: Date: Mon, 21 Sep 2020 18:37:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/07/2020 01:01, Chun-Kuang Hu wrote: > Hi, Dennis: > > Dennis YC Hsieh 於 2020年7月7日 週二 下午11:47寫道: >> >> 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 > Pushed now to v5.9-next/soc Thanks! >> >> 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/mediatek/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_crtc *mtk_crtc) >> mbox_flush(mtk_crtc->cmdq_client->chan, 2000); >> cmdq_handle = cmdq_pkt_create(mtk_crtc->cmdq_client, PAGE_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_handle); >> -- >> 1.7.9.5 >> _______________________________________________ >> Linux-mediatek mailing list >> Linux-mediatek@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-mediatek