From patchwork Mon Nov 21 17:16:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 83277 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1654308qge; Mon, 21 Nov 2016 09:16:48 -0800 (PST) X-Received: by 10.99.237.17 with SMTP id d17mr34304520pgi.48.1479748608224; Mon, 21 Nov 2016 09:16:48 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id u74si23583245pgc.310.2016.11.21.09.16.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Nov 2016 09:16:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E77456E557; Mon, 21 Nov 2016 17:16:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) by gabe.freedesktop.org (Postfix) with ESMTPS id 968996E552 for ; Mon, 21 Nov 2016 17:16:36 +0000 (UTC) Received: by mail-wm0-x231.google.com with SMTP id a197so159152228wmd.0 for ; Mon, 21 Nov 2016 09:16:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BAjS8amTJemH4muRUa4UFh6r7Nqdx7hpxyrQ7j8pE2k=; b=T8XrKSR5dHo9dcBPJxNsWp6YaY/V0AmTs0HK1PY4InXDpxRH/GfqKNAOBFH+46Xm62 M204udLW7zGT7TpIjaq7ydJHDmFkjFRnHYW0Rk7gFzPAofnGF2WASCiL/UY2yAOS6Qa4 cR+HMOGa1/2WTecN+uA73ZnU6DzmGpvSwVb9AGRXar0ln5WvggRL7o4vqBvvE/WoRw+O F2ymhV3G44lXmpOdOpMT6+HThcMcRI7WOuaWG76lsoJYERbs718XDybyCGVaKHESJXse ol23QKNCB/QFq0qTlVc/3VRpZEWqo6KriDTnkbkCLG8pk1bgOsL7aq30N0RFYq5Dgugx h2hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BAjS8amTJemH4muRUa4UFh6r7Nqdx7hpxyrQ7j8pE2k=; b=RqJu5PQg5vz5A3s1I+U2ZJQ4Jfp7BfD17yJ3Rjsg0+z6ppXK6qCPShqvDsCMGJaiIf U8SiJeF2U17ZIeU8jwi81wwRQXinCD6IVfz4IGjVPmfL/Rb0KaSe0Zi8B0qbbUB/7Ioy avd660G9dWvRKO97xr7bBwVijIxm7nW2rPc184kDF4P5G7YljpDBS9zoWI6brT/lkgt4 R2jCgPdxAF55ffdI9H4HBL1Fq1WHp4bq8sqE3VqfvGzKpT9cRtefN4K/sw1Vi6TiwUEs uIrgt0Cwu2o0GolbHT7WGbLBPYZeKpbDx8g5BF9x6/Q7xdTD70grQMACL7Y9+zsrrBHj +W1g== X-Gm-Message-State: AKaTC03bckT0NukDb/zVPeSYD1dCWatyKqGsCzCzsr7ieDQARWgKJPmHDhsvFeuTtDwIsuqK X-Received: by 10.28.19.67 with SMTP id 64mr15119177wmt.111.1479748595167; Mon, 21 Nov 2016 09:16:35 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id ct7sm7839599wjc.2.2016.11.21.09.16.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 09:16:34 -0800 (PST) From: Bartosz Golaszewski To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori Subject: [PATCH] drm: tilcdc: reduce max_width for revision 1 Date: Mon, 21 Nov 2016 18:16:30 +0100 Message-Id: <1479748590-3962-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1479748590-3962-1-git-send-email-bgolaszewski@baylibre.com> References: <1479748590-3962-1-git-send-email-bgolaszewski@baylibre.com> Cc: Peter Ujfalusi , Bartosz Golaszewski , LKML , linux-drm , arm-soc X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" It has been determined that the highest resolution supported correctly by LCDC rev1 is 800x600. Reduce the max_width value for rev1 to 800 in crtc_max_width(). Signed-off-by: Bartosz Golaszewski --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index dfe3dd0..9081de5 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c @@ -683,7 +683,7 @@ int tilcdc_crtc_max_width(struct drm_crtc *crtc) int max_width = 0; if (priv->rev == 1) - max_width = 1024; + max_width = 800; else if (priv->rev == 2) max_width = 2048;