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: 9439855 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B3110606DB for ; Mon, 21 Nov 2016 17:16:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6E5D287F1 for ; Mon, 21 Nov 2016 17:16:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB57D28B20; Mon, 21 Nov 2016 17:16:47 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 3EE64287F1 for ; Mon, 21 Nov 2016 17:16:47 +0000 (UTC) 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" X-Virus-Scanned: ClamAV using ClamSMTP 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;