From patchwork Thu Oct 4 08:42:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10625707 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 8B9891515 for ; Thu, 4 Oct 2018 08:43:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D25C2873E for ; Thu, 4 Oct 2018 08:43:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 713FE287AA; Thu, 4 Oct 2018 08:43:18 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F33062874E for ; Thu, 4 Oct 2018 08:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=BTXjo9paa5LqirfJiK/DzsbS9gNoqaIHa9YLlpwv2tQ=; b=ulY PMOpMqdlNnQauXUfvYRWjJlESi3rqKSk6B3IBcrgRsRUxMCDul+0Na7uAIZEyUPTbwNTnCRyNAvfF 26NZvhSs28rLw4+JbyJMHyega1BwY8wKvMEX7u8OVW0LaMM0FvxtPt2OCPxXKyMer/KUjHiLurywm qKjqI9nP+Tc1abqm+BX90VejeFDVC1T1TFb3r3iOlKZTRs2aGCgbfKHTSDYJyoEVYOKA7baSGe4jw AtkaN4ckeJgDEmqWU4uhc9eBrASMScbKY02bssxL6QhQtcmARyC7aZpINoMI8qtFSbKSG1QGcwmn8 W4Ud0yTGXKixkUBL8KM6ARNRpaXVXOQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7zDt-0007b1-3G; Thu, 04 Oct 2018 08:43:05 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7zDm-0007ZX-Jt for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2018 08:43:00 +0000 Received: by mail-wm1-x343.google.com with SMTP id 143-v6so8159460wmf.1 for ; Thu, 04 Oct 2018 01:42:47 -0700 (PDT) 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; bh=idaWRkEFhu8FCWVI7562+doAd1DdMTI5+qXSW+PyLF4=; b=dGewkU0gGsOoqX+gJ9cYZgWcA88Nn9U/rwBdKcWT8hxaaWRRm22g/6eBmASCHClev5 Q9fh3JpCkeF9t25FyK5pmIbqAaBSbIcz/3kwIqON3l3Px3WoRtYhGjgvh5VJOMz6WL65 grg4xvI817rHlEhgacI5hDGnQ3AU73EWVEIISZKNMILVDPCYZelc7xCBssVwMMxi+u9L tXTM5LoDSO0o6B1hEZGYR0edMDPb+LuxVDE0gDzDZOAQ+qZXwvNUjna7iFRbz+4EwB7/ gKjRX+zvfSLfE732ujxE7hEPX9H2AY9So6yRT2h5KkE7tOFkWwVOKxC0cqp5cHOYxZxJ KSOg== 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=idaWRkEFhu8FCWVI7562+doAd1DdMTI5+qXSW+PyLF4=; b=q0lYHcO4OwFeH55c+yE4ZoCf699SUYdzxyhee0Rzk8+ATIz8eH99Tz67WjOac2uRhz hxIkfDGd4HSUUqZB5y0EedIoKw1ys1Wqx7mZ7diVoYeEX+x0ZncTsID3Huf30+Fj7EP9 GUgYq0OR93UKNUycY7BpjyhxZ+zYlHS0G9/5z2npPkfhHdijWYKdJ7annA/nEmW6uudz DBnmRoHuQkZ2yqgImRcfB/W+H0B35oRTlFL+VNui/GkPmf4lPV2qt348fj4/aojZk42d KttbU93eF5gfaFVZ20LS5z/ZEAXXHNEbDXQLMTY1tStFHRd9G2HnXXjFvPQfsiy1KCnI Fz9Q== X-Gm-Message-State: ABuFfoj93MlyqsQNJg6L8HXl0GdJ8DwCtf53z+ldrpFIZmopiJpuoazW FeOK0QTivPwwgwlJaOWSHOm4qQ== X-Google-Smtp-Source: ACcGV607+x2/S/c5fmT3kBi9u+bLaDa+2CJ6YNVz7fLtyBfIZJN2yFpqcYLfEw3FaJ/CnOQU1BFqww== X-Received: by 2002:a1c:88c6:: with SMTP id k189-v6mr3836477wmd.32.1538642566235; Thu, 04 Oct 2018 01:42:46 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e34:eeb6:4690:3412:2a4:3cc3:ee11]) by smtp.gmail.com with ESMTPSA id p11-v6sm3852690wrd.74.2018.10.04.01.42.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Oct 2018 01:42:45 -0700 (PDT) From: Neil Armstrong To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/meson: fix max mode_config height/width Date: Thu, 4 Oct 2018 10:42:43 +0200 Message-Id: <1538642563-22465-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_014258_709839_8BD62A1C X-CRM114-Status: GOOD ( 13.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The mode_config max_width/max_height determines the maximum framebuffer size the pixel reader can handle. But the values were set thinking they were determining the maximum screen dimensions. This patch changes the values to the maximum height/width the CANVAS block can handle rounded to some coherent values. Fixes: a41e82e6c457 ("drm/meson: Add support for components") Signed-off-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c index d344312..2e29968 100644 --- a/drivers/gpu/drm/meson/meson_drv.c +++ b/drivers/gpu/drm/meson/meson_drv.c @@ -243,8 +243,8 @@ static int meson_drv_bind_master(struct device *dev, bool has_components) goto free_drm; drm_mode_config_init(drm); - drm->mode_config.max_width = 3840; - drm->mode_config.max_height = 2160; + drm->mode_config.max_width = 16384; + drm->mode_config.max_height = 8192; drm->mode_config.funcs = &meson_mode_config_funcs; /* Hardware Initialization */