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: 10625703 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 54B5D1515 for ; Thu, 4 Oct 2018 08:42:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 447B628C59 for ; Thu, 4 Oct 2018 08:42:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3652128C82; Thu, 4 Oct 2018 08:42:51 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 9E20528C59 for ; Thu, 4 Oct 2018 08:42:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 838F06E583; Thu, 4 Oct 2018 08:42:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 30D7D6E583 for ; Thu, 4 Oct 2018 08:42:48 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id 143-v6so8159466wmf.1 for ; Thu, 04 Oct 2018 01:42:47 -0700 (PDT) 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=liWQsWjEpdud6nBr2Des+NTaI3p9gKL68PkZGSM/SxsU6983oFPYKfbNlx1ZlptlKi yTyqcuWh+Kp+aU31mRbx9UzA202fBuYAIctu/iWlmRGO+G9gUeRzPJcK4DulrJKDB/sJ tF6xdaqr9gfm80bPx+dTYGIMC+3eKFqIxhgHTGM5O/WotnFsikxfLdiM0zWj/g5Jw8XI hokT61Y9ynyudtHzG0YCOknQybbW2lEO4kJ/QymuoDju/QYjUzyPamW5SYY4JnLIltyI EldIK/qHf6WIav3XTl1nvqS44oBRStKKgdM19r1GIr2Y9/foFQyG9xSn95sOmawCA/p5 thIw== X-Gm-Message-State: ABuFfoiyYj6UTkO+PHVt4y/mzD/DIdmWJgG65ueRmGcmRUnpoyvTJfgY 239cq3KzkZeejur0uP4Gr6pfDkhmXho= 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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development 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 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 */