From patchwork Fri Oct 12 09:46:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 148730 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp521865lji; Fri, 12 Oct 2018 02:47:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ok+s03IA68v8H3+cU/UJMDE2EKCtDO/r6IVLBw7NC8z3MV3rFBf0DeEwzHhaSQJQ7/aRf X-Received: by 2002:a63:65c7:: with SMTP id z190-v6mr4867047pgb.146.1539337626274; Fri, 12 Oct 2018 02:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539337626; cv=none; d=google.com; s=arc-20160816; b=uyLiSYvRs52YeTikQD+uV3Bt3iEnl5EEPAjqnOAPauogZnkJFzxG4W0yJZ0+tkQle5 kgKn8pz4pw9ets2yLDymoXucS65bBJyC+HKr65+5+vFVlyflhGtHBJQ+99esYFSrs946 2tcwb3H8mt4+0yCIOCqYITmEqDwp/KSBntgCzbUxSIpv2j9LN0nL4FIWrmopk+EgKL0L qk1Dx74bOSzkms1Som8TD+6QwURLH6TwO1xBpYrbwaYUexOETpV8O2liMDz5XEf+rsoc O/Viof9XcKUkTpAVyC7QPXTPkKtaiDyIc/nNFRQc8AWu5rzs2JV6Pw+0P2ImDisPfeUX f+Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=fj+7EoEdVPROEqPaaG3k8BtrrHPDYAMQc/zQGLYJ0t8=; b=qMzYBTxwWAIrkW8awKnCvOH5xn0y3zJItBNn4oP7hq1udTxMlRossYK+axJ+ZupSis /1VfFMSh5ekG1WdL1JCmlnsCr/m5BEd13B5P9uST0oKvaze9tTJUgIDebEaVSr5XoFaU 36DrzCVTtXHEXsqdGK8yTIOVwx/xgMsLRSpDqKur24wSlPI1vL0ygs1szhY89O2Fkx3Z +aotvXYy6CuJhh9XAgnWr0SJXizwXQFNjwOqJbxlgOb+xG852kP1O0DXI8gKygByNeXv 2+R6wBPEBCRbN+l+XcSX+hokfHklPuW7/E26IIAUqDvMDOXBeRAJOP40IRQxV+lmWzcs dcmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VXQ6yJRV; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y28-v6si744527pfk.230.2018.10.12.02.47.06; Fri, 12 Oct 2018 02:47:06 -0700 (PDT) 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=@linaro.org header.s=google header.b=VXQ6yJRV; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728386AbeJLRSj (ORCPT + 32 others); Fri, 12 Oct 2018 13:18:39 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:35037 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728153AbeJLRSh (ORCPT ); Fri, 12 Oct 2018 13:18:37 -0400 Received: by mail-wr1-f65.google.com with SMTP id w5-v6so12728539wrt.2 for ; Fri, 12 Oct 2018 02:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=fj+7EoEdVPROEqPaaG3k8BtrrHPDYAMQc/zQGLYJ0t8=; b=VXQ6yJRVEGzFs3tcOo+33WTBXBsxRo5HPSNg32M+O9PIIHQoDxPTe1TxWj63Tz2EEV b4rL19ViM2cjdpzkt6isBzkQfzLmU/0UyXLV5wmYcAYiB7K09O5vtWdTaXn8MJZHFkxL /t3Hn1FOCpidszentyDMZz7Th1UNIoCYRbQjM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fj+7EoEdVPROEqPaaG3k8BtrrHPDYAMQc/zQGLYJ0t8=; b=JL9uRWi0c7N31mLcMFEb1zpjI7H7btOXo3maoCEu4ADCdowQdibfMzZjMYpdunLJDC DnJcuIw1ngkgNTc/9ru72OBfciAW5aafKFv9q5tSPNR/9/dF0hLhic4lfEFnyg6HXFku N3SEXoF4Qa+fdGiWZxzzeWFcopqdfD3TwAiYNsXsnO0WIwGXJLjoEioe22nklo3dQw/h lqpKRLDWmyCxR92MDuwOjB3fAXmFaZWSyBU7Ho8Z0q00l9eo8R+2WybmcSLWd0mYppBB CK20m21pY+5IhH6vui+eUcbQ4s04Emn1GIoZaQGlzmDBiMtY8dFgsjuL6burjIk1xr1s Z68Q== X-Gm-Message-State: ABuFfoiq844QR/7EfHJ0mWYPPYXkvXlPunUpUqZIxkZWo25UasTLxneo Qtg+JJogoinCh2b0KHeep9ZSYQ== X-Received: by 2002:adf:fdc2:: with SMTP id i2-v6mr4984383wrs.276.1539337620952; Fri, 12 Oct 2018 02:47:00 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([2a04:cec0:1087:9ad4:c93a:12ce:b821:38d7]) by smtp.gmail.com with ESMTPSA id s7-v6sm8430203wmd.0.2018.10.12.02.46.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Oct 2018 02:47:00 -0700 (PDT) From: Benjamin Gaignard To: airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] drm/sti: make crct disable atomic Date: Fri, 12 Oct 2018 11:46:38 +0200 Message-Id: <20181012094639.1585-1-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wait until the next vblank to be sure that crtc has been disabled. Signed-off-by: Benjamin Gaignard Reviewed-by: Daniel Vetter --- drivers/gpu/drm/sti/sti_crtc.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.15.0 diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c index 5824e6aca8f4..61c2379fba87 100644 --- a/drivers/gpu/drm/sti/sti_crtc.c +++ b/drivers/gpu/drm/sti/sti_crtc.c @@ -40,6 +40,8 @@ static void sti_crtc_atomic_disable(struct drm_crtc *crtc, DRM_DEBUG_DRIVER("\n"); mixer->status = STI_MIXER_DISABLING; + + drm_crtc_wait_one_vblank(crtc); } static int