Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp774702imm; Thu, 4 Oct 2018 03:10:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV62umTB5Phn4DWkfc5g3jHciwB0OjtD7z43cA9N6auH4/3GqRE3Izbbb9DZm9Xy24McX085n X-Received: by 2002:a17:902:8a90:: with SMTP id p16-v6mr6013103plo.106.1538647825364; Thu, 04 Oct 2018 03:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538647825; cv=none; d=google.com; s=arc-20160816; b=Mhxd0K8Q82vfG8oLRK/q1HEDBsv7CmLUbe9yNrx5fVp6mLbk7/LsRxWHJeVwHQor4c RffXVJH/NXJ+J31m/m/2/uNLsm3RNTECVKLalgzFxnkeGU/dp5IxoCYXHPvMIEBHqrtm WWK06+4AVY7em+rhdu+IT4CRAtF/cGcrXtEQcDyaf42J59qqUrK5B1PWY46bduAh5vgF Hr+qID2nM2L/neUGjvnsqolucTqgOe0SlSIZC871lnIDBRN48pRvtfTAnsOBIfBvhHUJ T8s/Y/cIvbQJ3KlTL5CS5TIvbUIxJzC08/JMaB3WJodiPVhiAYhnx/ni55WMNfeFxV8k 0AYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=qrRfwHd2XEk+J9Pc5pppRSs6dgkBz6W9RXEh1coAO7E=; b=mT+EVu5O2XHWgWyngmO7RNjV2nQW3wUt6hJUgCTOMQoKmxt45JdHiJpnSZhL5O2O6Z Vqz7HurKNUt8+a5LEJOFeyOVlNXBaGAqp3MabScgZZgGJM22ph3zKEZcL3vANkheDr27 ApQoi3Dcmd+6WiSP5VSGp5cA/E3Pq21m7o0smvYa8LApck60leB1Ptm65EncBUE7SpCt evl485AMx5L35E8rCMjTs/UC31aixuPuLvgU3t34xdTSMN9oZeqoXXUCTMoORMY9AAM8 YepvTDA/8EQjVw4l2OpanOY1oqTQE/Pc4MRMjrEzIbo+EoZn8VMP7ebzcZd8PlDJy0yQ R2gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=TYhxUl0+; 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 p21-v6si4487100pgi.199.2018.10.04.03.10.09; Thu, 04 Oct 2018 03:10:25 -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=fail header.i=@ffwll.ch header.s=google header.b=TYhxUl0+; 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 S1727601AbeJDRCh (ORCPT + 99 others); Thu, 4 Oct 2018 13:02:37 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:41978 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727369AbeJDRCh (ORCPT ); Thu, 4 Oct 2018 13:02:37 -0400 Received: by mail-ed1-f65.google.com with SMTP id f38-v6so8012775edd.8 for ; Thu, 04 Oct 2018 03:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=qrRfwHd2XEk+J9Pc5pppRSs6dgkBz6W9RXEh1coAO7E=; b=TYhxUl0+8/8Y3KMEb35yQTaEcL+CZ2VenqL/Ey4XL3vnfAwutp452ffWpoO8b9fZdO sUNARRZlWlpCgTDuMRor565LQZ8Z5u2m7YdI1SRb++6ftzjEMxFbOLWpd/wn9muFA4ky nfiSRn9iZJ418+PCfFI3Jdm9fb7BN5eNPUN/A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=qrRfwHd2XEk+J9Pc5pppRSs6dgkBz6W9RXEh1coAO7E=; b=QMaF6bQ7/UeJqVzYNPjNrNVIdqdqNXgv7eG+mSD2fy4qorbC1Z2D8my82e4GGnLVmN qXveVsxEIWgZfbZBVWprM9jHyiqnNnm+Q8f9n7Wk2qnjuXvN2Qfiog8cPA3EJ1T2KGI8 I5VK4RkxSVcTHXUxlqqvLR2pmtgt+OA9RmUvsED/AaboTIa1Kdzb+TtwQb6QfgFGAwQI KRGEApxkdxR+4jDG3bRYdyBEVl3cNOLU2LrkTvOvfo454t39llyZBSb711/4+3YeJHSV wOc4cmIHqQ0A3fs0UjQd6KuQA5wvnrgjZugD31GDAcRE8ocuLyg56Oqll1o5pqccZMbT FIrQ== X-Gm-Message-State: ABuFfoh6U0oL/BU2ciUyHKyki/2cWeGmrkgrDV9m1EJ6S0WjJ9hmvlHf iGSXrJx9Uy1cEyvTS9+f0lceVQ== X-Received: by 2002:aa7:d352:: with SMTP id m18-v6mr7331958edr.266.1538647802292; Thu, 04 Oct 2018 03:10:02 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id gi7-v6sm779608ejb.55.2018.10.04.03.10.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 03:10:00 -0700 (PDT) Date: Thu, 4 Oct 2018 12:09:58 +0200 From: Daniel Vetter To: Neil Armstrong Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] drm/meson: fix max mode_config height/width Message-ID: <20181004100958.GI31561@phenom.ffwll.local> Mail-Followup-To: Neil Armstrong , dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <1538642563-22465-1-git-send-email-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1538642563-22465-1-git-send-email-narmstrong@baylibre.com> X-Operating-System: Linux phenom 4.14.0-1-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 04, 2018 at 10:42:43AM +0200, Neil Armstrong wrote: > 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 It's both. Grep for all the callers of ->fill_modes and you'll see that this limit is also used to filter max screen sizes. If you want to change this, then I think we need a new mode_config.fb_max_width/height, which if non-zero, would extend the limit for fbs. There's also the problem that if you extend this for fbs, then there's no check anymore in the atomic_commit paths (or legacy modeset), so that needs to be addressed somehow too. Bunch of igt to make sure we're not missing anything would be sweet on top, e.g. e.g. trying to set a mode over the limit and making sure it fails. Cheers, Daniel > --- > 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 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch