Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4133123ybi; Mon, 29 Jul 2019 19:59:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEUjWKJ388xtvh7MxYDYKh6xGf4BhKZvERL9BcncGvHTQq4b+LYIB43tcTjQBLHN1deqDo X-Received: by 2002:a17:902:e30d:: with SMTP id cg13mr112756716plb.173.1564455594824; Mon, 29 Jul 2019 19:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564455594; cv=none; d=google.com; s=arc-20160816; b=tkuA/GAZE8OXP6ZT8jg7aAJk+Mq/HbdirObZtJE6VnqNDApcBX78QtlbGwvRsPzU43 6zk5a2dELBH/VKdYTh/JHJ4bpxcNZCftJem1NjUW2V8lLg3lT27youvJtI78qMcvy7I7 77/A88+a4AVKJa+7j5lqkBh9DkajDqNshNHKtUVj2jPsCR5oihnoaYpK0iW1i2j8PsXd qEQObRe38ont+JEueYgHEGSj3cT3IWNdYCwvSII7VPz5GgPGpRl326DSuyeFT9DGFWOg LevAI2Z/LQwU54QGWV/y2HekgzO3PmpnwwaBrG5xGbjMpy1SUjAiZ0Rurxm02kVX8HXS kHRQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MDwxBD0Gg2QeU+Rqv2ibGHcC7kNz9B4gURhrN8iVCS0=; b=SguwVDfYOtmzK7wNIfMHLMTuQzKdgPVTuxaix9SvbNtlHCSMxm8Cq9MAU0BhYityFg hsSweEniX8ma1Z+nq7jq09Gqrws2eeIvit/n2FbcmJeM21k4hJXYyALHAZyfw8jkoWPq z7gZbINTPtuFFs6K5lNFBrM/9T3FQgpj8Z7hBN68GrLcGkVIqBUsHVwA34cdak88CKrn 3pyWCo6wFCVxl/HEpkoIm1A6bF/IdRQpzA5UYCnWTXhkndpCkiPb60u36Atnp7cuTvu3 1B1t2kfnwoWDhAjbTn3dxXHQl4fi9S06D+Hji0UYwA24RpJfjqYpF8ytGm3qjMzUsoYY OsWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wKfqgznf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a94si24452435pje.19.2019.07.29.19.59.40; Mon, 29 Jul 2019 19:59:54 -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=@kernel.org header.s=default header.b=wKfqgznf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728882AbfG2UDV (ORCPT + 99 others); Mon, 29 Jul 2019 16:03:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:36990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390301AbfG2TrU (ORCPT ); Mon, 29 Jul 2019 15:47:20 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0076F20C01; Mon, 29 Jul 2019 19:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429639; bh=9B7N36wRk/AXY+rskVB91mp5QSNljimZaU8D+Ad43rI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wKfqgznftPiDesmiLbAsy+dTpN13rs2R903WcVUPZjOZlDE1mmFKs6IxYo6FHNYxk UyoxJ/8vSygwEp7pUDkMSeCLLqw1ZOYAQcAG/NtboQUfzaYcDmZi886hmB02Ft7qg8 FnHyur+AxeN8IKou24gN0HGnxN1+9EbLBSJqoyhk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pavel Machek , Tony Lindgren , Sebastian Reichel , Tomi Valkeinen , Sasha Levin Subject: [PATCH 5.2 048/215] drm/omap: dont check dispc timings for DSI Date: Mon, 29 Jul 2019 21:20:44 +0200 Message-Id: <20190729190748.832081009@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit ad9df7d91b4a6e8f4b20c2bf539ac09b3b2ad6eb ] While most display types only forward their VM to the DISPC, this is not true for DSI. DSI calculates the VM for DISPC based on its own, but it's not identical. Actually the DSI VM is not even a valid DISPC VM making this check fail. Let's restore the old behaviour and avoid checking the DISPC VM for DSI here. Fixes: 7c27fa57ef31 ("drm/omap: Call dispc timings check operation directly") Acked-by: Pavel Machek Tested-by: Tony Lindgren Tested-by: Pavel Machek Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Signed-off-by: Sasha Levin --- drivers/gpu/drm/omapdrm/omap_crtc.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c b/drivers/gpu/drm/omapdrm/omap_crtc.c index 8712af79a49c..4c43dd282acc 100644 --- a/drivers/gpu/drm/omapdrm/omap_crtc.c +++ b/drivers/gpu/drm/omapdrm/omap_crtc.c @@ -384,10 +384,20 @@ static enum drm_mode_status omap_crtc_mode_valid(struct drm_crtc *crtc, int r; drm_display_mode_to_videomode(mode, &vm); - r = priv->dispc_ops->mgr_check_timings(priv->dispc, omap_crtc->channel, - &vm); - if (r) - return r; + + /* + * DSI might not call this, since the supplied mode is not a + * valid DISPC mode. DSI will calculate and configure the + * proper DISPC mode later. + */ + if (omap_crtc->pipe->output->next == NULL || + omap_crtc->pipe->output->next->type != OMAP_DISPLAY_TYPE_DSI) { + r = priv->dispc_ops->mgr_check_timings(priv->dispc, + omap_crtc->channel, + &vm); + if (r) + return r; + } /* Check for bandwidth limit */ if (priv->max_bandwidth) { -- 2.20.1