From patchwork Fri Feb 10 10:55:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 55388 Return-Path: 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 + 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 ); 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 ; Fri, 10 Feb 2023 02:55:47 -0800 (PST) Received: by mail-il1-x135.google.com with SMTP id n2so1994741ili.11 for ; 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 Date: Fri, 10 Feb 2023 11:55:34 +0100 Subject: [PATCH] drm/meson/meson_venc: Relax the supported mode checks MIME-Version: 1.0 Message-Id: <20230210-relax_dmt_limits-v1-0-a1474624d530@baylibre.com> To: Kevin Hilman , Jerome Brunet , David Airlie , Daniel Vetter , Neil Armstrong , Martin Blumenstingl Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Carlo Caione 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: 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?= 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 --- drm/meson/meson_venc: Add more supported resolutions. In particular relax the resolution checks to allow more resolutions like 480x1920. To: Neil Armstrong To: David Airlie To: Daniel Vetter To: Kevin Hilman To: Jerome Brunet To: Martin Blumenstingl 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, 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;