Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2371748imu; Wed, 21 Nov 2018 10:33:12 -0800 (PST) X-Google-Smtp-Source: AJdET5e5hfp33HB9bC/D/dB5sI0xfrCeTJZWBUrOeaKRPq+1Zf3SNTG6odnnUpREWRjAQM6qUquk X-Received: by 2002:a62:2545:: with SMTP id l66-v6mr8007323pfl.207.1542825192659; Wed, 21 Nov 2018 10:33:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542825192; cv=none; d=google.com; s=arc-20160816; b=PThkzohSPwxFR3NAJwM/iVGEcgSaV5LOc/zlfcN2z8l0KQods4/siCQHSjD7bdeUqH GZSZHMXrkKBa7X6JawhNyOkx7U2FirsP4tGjDIurvmXJTT9AUqH8XX9jdfRgs0w0AjZ+ A4n8KfdGbdhaUSbZq1L5z2/Ky4BvauJ37VsaR1Hqqz+fL2wCY0XevbLGyiksRNKwcgFx Iqwj/T7uVaplM0lCoYIRa3blfITPcMQ0sm9+qKGFyo2QiHYLvfRQNpxZ2ASn1KQsEa/N mJ6TW9u41Z7GvbgwiI2J8L1CmY4GP3daIWGRqFHQ2AqF3duJptp/gMZtgphhfvMguw12 Culw== 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:message-id:date:subject:cc:to:from; bh=TjV9j/yYOl/j0RDuQGxUI88RGVeZxyAyaZhJjk3sMrw=; b=kiuWQbqbQeuOX+e+guOx4z7k9fPsht9fcMV/6nCWPzzp4ELx1rT5FrvYN1xeps3o43 7NqIxTXRo2ao87OTWtuHdZOsbmosuw3DlfezNF2JaMpIJxnUJywxTIXidt1csUOt3kpb 2gPkU2Xke9xffLAbM7W+jU8W0c3qqdUqZOd7RZKY0F128N1uoh4fwtfzb9JI9KiouraK A8Ao192fk7KnCx4BrYPrwm11BOgnKKj43hqbxK70lMHzCERkMOHHiikKMboLUI+0FzZ2 dPSZU5fC3lFLScbsfRi1Mf8fNzEKLqz/FPFo4OY9kLjXAsVlRXXYRYXfeT0gjlXQRpKv UzwQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3-v6si48951056pld.232.2018.11.21.10.32.56; Wed, 21 Nov 2018 10:33:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731769AbeKVCoe (ORCPT + 99 others); Wed, 21 Nov 2018 21:44:34 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:49196 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731421AbeKVCod (ORCPT ); Wed, 21 Nov 2018 21:44:33 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 8AD0727E758 From: Sebastian Reichel To: Sebastian Reichel , Tomi Valkeinen , Tony Lindgren , Pavel Machek , Laurent Pinchart Cc: "H. Nikolaus Schaller" , dri-devel@lists.freedesktop.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Sebastian Reichel Subject: [PATCHv5 3/6] drm/omap: don't check dispc timings for DSI Date: Wed, 21 Nov 2018 17:09:13 +0100 Message-Id: <20181121160916.22017-4-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121160916.22017-1-sebastian.reichel@collabora.com> References: <20181121160916.22017-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/gpu/drm/omapdrm/omap_connector.c | 8 +++++--- drivers/gpu/drm/omapdrm/omap_encoder.c | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_connector.c b/drivers/gpu/drm/omapdrm/omap_connector.c index b81302c4bf9e..5c776d6211e1 100644 --- a/drivers/gpu/drm/omapdrm/omap_connector.c +++ b/drivers/gpu/drm/omapdrm/omap_connector.c @@ -280,9 +280,11 @@ static int omap_connector_mode_valid(struct drm_connector *connector, drm_display_mode_to_videomode(mode, &vm); mode->vrefresh = drm_mode_vrefresh(mode); - r = priv->dispc_ops->mgr_check_timings(priv->dispc, channel, &vm); - if (r) - goto done; + if (omap_connector->display->type != OMAP_DISPLAY_TYPE_DSI) { + r = priv->dispc_ops->mgr_check_timings(priv->dispc, channel, &vm); + if (r) + goto done; + } for (dssdev = omap_connector->output; dssdev; dssdev = dssdev->next) { if (!dssdev->ops->check_timings) diff --git a/drivers/gpu/drm/omapdrm/omap_encoder.c b/drivers/gpu/drm/omapdrm/omap_encoder.c index 452e625f6ce3..32bbe3a80e7d 100644 --- a/drivers/gpu/drm/omapdrm/omap_encoder.c +++ b/drivers/gpu/drm/omapdrm/omap_encoder.c @@ -170,9 +170,11 @@ static int omap_encoder_atomic_check(struct drm_encoder *encoder, drm_display_mode_to_videomode(&crtc_state->mode, &vm); - ret = priv->dispc_ops->mgr_check_timings(priv->dispc, channel, &vm); - if (ret) - goto done; + if (omap_encoder->display->type != OMAP_DISPLAY_TYPE_DSI) { + ret = priv->dispc_ops->mgr_check_timings(priv->dispc, channel, &vm); + if (ret) + goto done; + } for (dssdev = omap_encoder->output; dssdev; dssdev = dssdev->next) { if (!dssdev->ops->check_timings) -- 2.19.1