Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp193977ybl; Thu, 5 Dec 2019 17:54:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxPzBMFGx3gvFGdLf7CoBKAQlKOgUfpbNZ5CN8+AJGdiZUJgRwIJE6T/YbAEWwk3dIl2utc X-Received: by 2002:a9d:6216:: with SMTP id g22mr7865497otj.260.1575597280255; Thu, 05 Dec 2019 17:54:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575597280; cv=none; d=google.com; s=arc-20160816; b=i3O/l0hRmoUQZySIhNvAtfak9ccxVpSJ9+mIer15/ArutciD8ME8u8qj7frGPX3upF 0l5X8v3r0FSuY25k2k3dJZ3uxfpGYITEFr7l5jGG1F2NrH8hSwJT1JBGx1vbfSjF8NA1 pvN7V9S6hZ906x/x/8eWPAXWd5vOcZH/1QLUFJuPHtzu3IBFt4FunAapjdHWnDQpsCQ6 eYMJ3UwmELVDnB1Ly7QvUrv4RObNkn4zTDvPg0U/wxcQ2wtxpqi5TxjNUZQlkb2r0qa2 rzX7e8mmOmhkYaZ238ZepYVkp0OK1MOAPe0PhnXhKpd70bS8p+SLe4zmTKW3MNQ9L0LM DMPg== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=jVdei8kEhQqvWDbojUUbf3BzPXg7IZhv39AxBXjp1jc=; b=M5lkREqeZuIdM9iNah9BQM5lnYhE0t0b0ESWiKV5vv6ncYMqfPXZSlhrpVo22dGF9C 5wIBiEKAiR1lWfmli9e5zcBYryBJhJBQ8iQ7MCT19wl0tKJqD8eIQRPccyH6R0fNM+NI 6H7tM7XYWy+hg2LAoCnkxRaRc0i6+LEAtX/ynfnhXXagitfGIL2NyJOutJ55XF4HeX9F Id9JuSbeJNxmQ5J2TvRmWWmBsEmpKijgYwCbCD6Aj0w7g+jsKUbWnw2/rHMaTIETNN88 TrW+ANTKWE5F45cF4TT+T5Z0p3mdA9KTjCHoCAzhE6btwuyEQcHDw14nS3J/orBk0Ybj nCQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hj6r76XP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si6209238otq.95.2019.12.05.17.54.27; Thu, 05 Dec 2019 17:54:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hj6r76XP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726243AbfLFBxj (ORCPT + 99 others); Thu, 5 Dec 2019 20:53:39 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:29895 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726151AbfLFBxj (ORCPT ); Thu, 5 Dec 2019 20:53:39 -0500 X-UUID: 5b9c07f2810a40b284443361b1ff3e8b-20191206 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=jVdei8kEhQqvWDbojUUbf3BzPXg7IZhv39AxBXjp1jc=; b=hj6r76XP5T6r1vF1KtFy0DIdX6RuxhwBuE3HxTy238PU1oeT6/IW8tzl8CpwVipAFwAfUacQZJPwjV6ulMXfCrXCAuDNTjQjYdGuGjDA3KYuv+JtA2cbsZOTMGfDbqV9tD8CgVnwoLSkB2A0A3wR+Gxak0n2VJdTSlDdgDFK7as=; X-UUID: 5b9c07f2810a40b284443361b1ff3e8b-20191206 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1699528321; Fri, 06 Dec 2019 09:53:33 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 6 Dec 2019 09:53:14 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 6 Dec 2019 09:53:18 +0800 Message-ID: <1575597212.6328.0.camel@mtksdaap41> Subject: Re: [PATCH v4 3/7] drm/mediatek: update cursors by using async atomic update From: CK Hu To: Bibby Hsieh CC: David Airlie , Matthias Brugger , Daniel Vetter , , , Philipp Zabel , YT Shen , Thierry Reding , , , , , Date: Fri, 6 Dec 2019 09:53:32 +0800 In-Reply-To: <20191205092749.4021-4-bibby.hsieh@mediatek.com> References: <20191205092749.4021-1-bibby.hsieh@mediatek.com> <20191205092749.4021-4-bibby.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIEJpYmJ5Og0KDQpPbiBUaHUsIDIwMTktMTItMDUgYXQgMTc6MjcgKzA4MDAsIEJpYmJ5IEhz aWVoIHdyb3RlOg0KPiBTdXBwb3J0I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