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: 10638227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5895714E2 for ; Fri, 12 Oct 2018 09:47:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46A532BCB5 for ; Fri, 12 Oct 2018 09:47:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A6AB2BCBB; Fri, 12 Oct 2018 09:47:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E41242BCB5 for ; Fri, 12 Oct 2018 09:47:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 19C6089341; Fri, 12 Oct 2018 09:47:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 83B4289341 for ; Fri, 12 Oct 2018 09:47:02 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id e4-v6so12737745wrs.0 for ; Fri, 12 Oct 2018 02:47:02 -0700 (PDT) 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=BxSCl6TXHJA3pp65Lic+xca8E6YmwHgOteJ0OdcnIyXD8Pk2/nMRzeUJimfxxWz5AN EgqfxE0NuErWvK8mp+JVjlSiC5RQCQ5O96jqGWbetX4fgAqxR9NBMzNIKgvzkLyyZI/U ZP9g50kS7dX/n2oNufWqKN10aBIaCcVSD6ehbKByAVLbSIjTZWRgh8r4GidNRmXIfBHc eXOZ0vUwTeAlu9AHtBRVayc7p/DfkRFEBJbQSsv+iAKja2zumK73ZGFkZCV4Y0h5knI6 69qhgiEh1/yIH7+g9d57Vr69WORJP9LZB1ZB+G3ImGyEKsQro+Ar89hFmH/jHYp1x3tW CpNA== X-Gm-Message-State: ABuFfojPQfcLzZmzuCFWQYQovvSkxpPuUZ6tgSO4+LSFc3ViTbWwXmBs o3+PQutSDHpp3dowYyyE/S0WLZ6gsI4= X-Google-Smtp-Source: ACcGV62J2KgqQiCLwTdRmTlkgPbMKTrMQn6JdL634pBuJ6y5WUS8vWlHhexZZ0a8q6HoURKS5UATUQ== 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 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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