Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp700246imm; Thu, 4 Oct 2018 01:43:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV60UhnFEkH5is7AkQqbICLVWLRXN05wi+/JuNKZMILen4sOa+mzRjUNKikjcTT88g7FxjuGB X-Received: by 2002:a17:902:509:: with SMTP id 9-v6mr5585830plf.155.1538642599288; Thu, 04 Oct 2018 01:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538642599; cv=none; d=google.com; s=arc-20160816; b=eiVjFql3v4bFvcwai39m5izdOAgH9y80uiU1lPmSOEX5aHLiEIXR6qrZkVHAYxqcMr NRGwnoQa6gll5ubKQ3Iw9M/c04xt20ZgquIg2LVHQbav1i/Lt1oGDFLeYxMqCCiabMV7 O3BA9eoPHV8skZwMiou5ase7U1FVLvvUNkds3K92KDNbJiICbsFA4zolPgHFNsAJmr52 iYBUHqafy8p9G73fH5hLvSMH9sVZ4ZHikvw9+sX2qocdx8T2xMWNH/+h60KNsouR/JLo wJ8Yu+PX0WU10PZuVwUA31BBEbEPO5UyeiQTAUNCr6yS2q6PPRMxKiwkhvpagpIbzxqf 9u8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=idaWRkEFhu8FCWVI7562+doAd1DdMTI5+qXSW+PyLF4=; b=uzYnEO563nWRfxKwmEqw/aAevTe83Gpxe8FMH2b35qxpxlvSlyGhPiEaEMAj+kd3dF zB/ZacYMy8zRtzc5ZLNiX2YzZWdXvBZrBcb4SNr5qtjluGRXP6TZb6Gn8U6eR/sIX8eo z4Q//TktyUItIcrWgZMqgQSoAl3YqmihwI5jCj05TMaMmw9PFw3Sh3aJKx7U13oidcYF /H5MCH66dCAXxLVWzJc/sykMtcK1d+KpvSAuhPVKxqAKd/rtxLaA2jx+FstQk0K9jp8V DKhGG/jO8xxycKI0jFVNJtqVKT+1GGAzbf4u7iAdm00TO+GvJOepETGtEyA3xpqvboJv 2XjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dGewkU0g; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n18-v6si4693572pfb.88.2018.10.04.01.43.03; Thu, 04 Oct 2018 01:43:19 -0700 (PDT) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dGewkU0g; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727450AbeJDPe7 (ORCPT + 99 others); Thu, 4 Oct 2018 11:34:59 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54500 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726857AbeJDPe6 (ORCPT ); Thu, 4 Oct 2018 11:34:58 -0400 Received: by mail-wm1-f65.google.com with SMTP id r63-v6so8203358wma.4 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=s0jZnQ/4CbM7eBK5PJ/nU3xx5bSb5N0p2Jfz8fLmv1+S+JiHBl8xFZeMXYmypDo3oi Rkjd9zVgdUZBm9f9l4/ONBY/C3Pa4tiOYwjQKB6dWgdwqddi9StN7peGz2mfTVBOgc8z kL+0CBVeLMahn2XH6L7Qy8u/cMvIoOcDlWsjlW2OZ0o+tvsyrDTziwNu7nrsuF67lkCF Q5qcSYf3TRE1Pp7tLfRLLAmFOc4yJc/MW8q5UM6IcSbtfTJme7MmUJvAL7Shhamq+rMW 3a6XN3XCMSujkNF8UNjqG9I8WhLp07x16P79lYd4m5pTVLUNKh1yCqCQnY161kvcpq2M Zlqg== X-Gm-Message-State: ABuFfoivUBaQCw2BMnz36Sa+Yomp+zpDx23NkkcyObsEpU0ghUEEkP7t qUMZQoWuNbGhSWmfkDsqIR7CMQ== 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 Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */ -- 2.7.4