Message ID | 20230210-relax_dmt_limits-v1-0-a1474624d530@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp886895wrn; Fri, 10 Feb 2023 03:04:57 -0800 (PST) X-Google-Smtp-Source: AK7set8WwvZLHPF+Da5zlX27VlWTy/0eY+vjVSRju51IEHa0iMa8j4a7e5Uf1B9/biOVMhMPQT3R X-Received: by 2002:a17:906:3ecf:b0:879:9c05:f5e8 with SMTP id d15-20020a1709063ecf00b008799c05f5e8mr14653217ejj.62.1676027097108; Fri, 10 Feb 2023 03:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676027097; cv=none; d=google.com; s=arc-20160816; b=lMSWFI14/ojyqVXJKwSkMDK5LiFpNyhVOFDL6CFVXfWCes1zGt8SW9P9FHC3Hx8QVw qnYXbmHFJ3vVBNTTW46liCKwqJnpRSnldnfSyRJWxweCa4JkayYcLG/qb0XM8WuIIGz6 nFPlzBUQJZ/mX3xSyuSlQ8saILvZtyW+eNwb1/hgawjWgubky2Eqx3U1hSfXghCbK9qc d/kH67E5cuh8sjATS0wdVIjwOVGpXbnH1kS1s4jSxvnFrU6EinytjjZuFju2GKL5EuSc RAblmcxt2hLXsoM2XSBrnt7E3+dTh9qj7sNxlqHw/etaJat+m32qKdLpqJF757+pnqhZ OzUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=KlHNZK7Ipphoh6oQQOjJZTI5Uk+UmtoXmM8QD+p6cpA=; b=mOwgMIhCNaSCgzubVxOObVYJV/TLxSttb1/97awTU2PYnKZHgCZnsJKOLwydjKizeY 5fVcf5eEet2N5bfjTTG6jgjNg+lQozsQqC6bJEIm76lWPo3zmdshPc66g8CbQFXPZlni PHvL/M+1nmhQu5QU5b79Pt0pGiVQpHEynSLgu+ZobC2zru6fUwVlB6ikocVupV8wCNCp tmcfjfGfhPFzx06KEdcmPpW23UO8Ljd4JiRFkVgAmSxD2qwJolysjgB6XAu+eqyZUcJa s0gvAblcUWKLcw0ByJkxVD1ZFGNE5D8MSuZ3G5nmu3chHYQAbIkEToQRWxnDzLutf/1S ZAdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="ZQA3F2f/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fl20-20020a1709072a9400b0089068025c36si4597573ejc.66.2023.02.10.03.04.33; Fri, 10 Feb 2023 03:04:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="ZQA3F2f/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232021AbjBJKzu (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Fri, 10 Feb 2023 05:55:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231381AbjBJKzs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Feb 2023 05:55:48 -0500 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5161B1ABC0 for <linux-kernel@vger.kernel.org>; Fri, 10 Feb 2023 02:55:47 -0800 (PST) Received: by mail-il1-x135.google.com with SMTP id n2so1994741ili.11 for <linux-kernel@vger.kernel.org>; Fri, 10 Feb 2023 02:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=KlHNZK7Ipphoh6oQQOjJZTI5Uk+UmtoXmM8QD+p6cpA=; b=ZQA3F2f/vvilqXVsTDxG6KAd3wzfYF32eO+a/vCK7tgV0s8PJ8Vi1z1v0r9ctIuP7z L1PiH7Yv29tObke/KqdQ8+TfAXqaJjvT6whosDawT8A/6AmLzsMO1nwKBfJg2hFL0CKj QWQwoiVY7ZZF3dT4+/hDdK1gT3BI0H5MSJMs5P/7OtzlnRVPkN7Wx5tSzBma4n1z46OY KQ3EATyxlv+MYcLiM+23y3PIWcNozGb33TZXnNmWcphE33DfeGWQeEjhQ507br76yLib aNKOFgd103r6+UxMv+Ike+q/49xKjiAmZLJm9V9Ka9Q571yvPEoiwaEPLyk7YbNoRn9V QJZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KlHNZK7Ipphoh6oQQOjJZTI5Uk+UmtoXmM8QD+p6cpA=; b=3wFkBfKJQ7pdjeX6KdXfUrOzq/yWBKrQLCtVzTx3auupto4SdhPU1cX9Ok7TeCQ7Bz Or8s0vb9p4N9+aXTVTx27vpbcIwBbIMhZEzkYMpjWzbPcxEb6hy/JGsAAfsNTg42hS7E uMmM18XpvCXDz98H14jHLO/HNraj+PWaAA8nCpzHyH0UXwsCjegUseft14YRNIIcEqdY MfAWeHAuxrtkbpNiv8gHcf+FCt113Ij0TW50zDxMEh/1N8G08wr3CZ7ygZv5exX85jUz dwKWgLN3T9EyEC+a98G/xxFIUMuJW2qC1NgJj1zb/soSYZNLy5eQGLMn7fA2n8kfwMUz o1BA== X-Gm-Message-State: AO0yUKXNf3w0a0dbJ8cyeNWiPwdF/wpiZLjOb+Q8iZBzMkHaio2BM1He 7PegV01/jxEGZ70yTFM1Xio6lw== X-Received: by 2002:a92:8e4f:0:b0:30f:5f1f:8927 with SMTP id k15-20020a928e4f000000b0030f5f1f8927mr11829892ilh.20.1676026546625; Fri, 10 Feb 2023 02:55:46 -0800 (PST) Received: from [127.0.1.1] ([2a0e:41a:894f:0:5982:e253:f3:ec01]) by smtp.gmail.com with ESMTPSA id l8-20020a922908000000b003140001a5e6sm258104ilg.83.2023.02.10.02.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 02:55:46 -0800 (PST) From: Carlo Caione <ccaione@baylibre.com> Date: Fri, 10 Feb 2023 11:55:34 +0100 Subject: [PATCH] drm/meson/meson_venc: Relax the supported mode checks MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230210-relax_dmt_limits-v1-0-a1474624d530@baylibre.com> To: Kevin Hilman <khilman@baylibre.com>, Jerome Brunet <jbrunet@baylibre.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Neil Armstrong <neil.armstrong@linaro.org>, Martin Blumenstingl <martin.blumenstingl@googlemail.com> Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Carlo Caione <ccaione@baylibre.com> X-Mailer: b4 0.10.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757441789879933618?= X-GMAIL-MSGID: =?utf-8?q?1757441789879933618?= |
Series |
drm/meson/meson_venc: Relax the supported mode checks
|
|
Commit Message
Carlo Caione
Feb. 10, 2023, 10:55 a.m. UTC
Relax a bit the supported modes list by including also 480x1920. This
was actually tested on real hardware and it works correctly.
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
---
drm/meson/meson_venc: Add more supported resolutions.
In particular relax the resolution checks to allow more resolutions like
480x1920.
To: Neil Armstrong <neil.armstrong@linaro.org>
To: David Airlie <airlied@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
To: Kevin Hilman <khilman@baylibre.com>
To: Jerome Brunet <jbrunet@baylibre.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-amlogic@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
drivers/gpu/drm/meson/meson_venc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
base-commit: 38c1e0c65865426676123cc9a127526fa02bcac6
change-id: 20230210-relax_dmt_limits-355e2a1c7ccf
Best regards,
Comments
On 13/02/2023 08:09, Da Xue wrote: > - if (mode->hdisplay < 640 || mode->hdisplay > 1920) > + if (mode->hdisplay < 480 || mode->hdisplay > 1920) > return MODE_BAD_HVALUE; > > - if (mode->vdisplay < 480 || mode->vdisplay > 1200) > + if (mode->vdisplay < 480 || mode->vdisplay > 1920) > return MODE_BAD_VVALUE; > > Should these be lowered to 400 instead of 480? If you want to support 400x1280 then we need to tweak mode->hdisplay as well. I'll push a v2.
diff --git a/drivers/gpu/drm/meson/meson_venc.c b/drivers/gpu/drm/meson/meson_venc.c index 3c55ed003359..5b3621589a9f 100644 --- a/drivers/gpu/drm/meson/meson_venc.c +++ b/drivers/gpu/drm/meson/meson_venc.c @@ -866,10 +866,10 @@ meson_venc_hdmi_supported_mode(const struct drm_display_mode *mode) DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_NVSYNC)) return MODE_BAD; - if (mode->hdisplay < 640 || mode->hdisplay > 1920) + if (mode->hdisplay < 480 || mode->hdisplay > 1920) return MODE_BAD_HVALUE; - if (mode->vdisplay < 480 || mode->vdisplay > 1200) + if (mode->vdisplay < 480 || mode->vdisplay > 1920) return MODE_BAD_VVALUE; return MODE_OK;