From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7300DC636D4 for ; Fri, 17 Feb 2023 10:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:Reply-To:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=60gNCs+LCkkf3gSNDav0oZWDxb/KVKp4zAh4lM2Rr9s=; b=RlUlIeoR/l1M/4qqH4pIAPSbat btptJxuRrEnxvqeBFfdOAMPoO6el+iIdbhkz9jZZQGY0i+k8DzZEV0nYEYJ8Iz//Za6LDjem9+Yxf WZvJ05YIWQFUEFVyJwvcqUL7jb0k8Cm1a4JH3Xv5Uz7LB/uD2FGIHv5yj6PILIy2qpLiTIdnO0hrM x9A/MhjvIdqUPLQJTUoF4vhHqDVIPbkZasvhHQJ62LqJlEfdav9J9DIzpJaKIG7p0WFwm/2JWR1sI qvVnICLhfyEaEhPKYPn6nilfqrjIdAV5VW/jw5+ybSf/3sv9OssqAwOgYGb+DzowEOGdNKYzaYFun Ym7yLFUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSxqp-00DerY-5E; Fri, 17 Feb 2023 10:20:23 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSxqj-00Deo9-BC for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2023 10:20:20 +0000 Received: by mail-wm1-x32a.google.com with SMTP id ja15-20020a05600c556f00b003dc52fed235so477689wmb.1 for ; Fri, 17 Feb 2023 02:20:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=WBDuZ1YsthJFSmgGckbyCZ1GxJY3h4+AR0nDnSv5p9E=; b=WuRKgVx/abcZcK0HucJ8OjzXyIpHTyHaEz58egQAstY1ADJVR1JsTDjiROMTeDn2Uq UFIxDNUqOqEYb/Yh98Skh8i1EqZD8J5voak28hEzBJTErFxFz5IgwFpGgX2F5MQNSjFe FH6yX2PU0TFCrYpUIpN+7qXCdgFPKkYVbeywTF4aZPBS6awLEgJj+eyHNp3kT3oQgWDx e/+OLuHHd/o/NEBP3PkabCf0j0O2twILyrxffS5tRO4ngZqMN24Bm/svmGh5Wt7JBRj2 v0YU+wG5jBK66ZAAGj9BYlTjvdWp5WTmq6SMTfeUTvkr0DYn+iacsV0QtDe6Zj8pkhjP 8hBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WBDuZ1YsthJFSmgGckbyCZ1GxJY3h4+AR0nDnSv5p9E=; b=Jy2BYc6oTuRvnaQUQlwiuUfsykjZj37R6r9uOMliwFpjULKO8cQEiGmC0Q6R07qT5u Tn5chkYUyx95iqdk1S8DmljyB1QuXw+O2OTQUCmD6+7GA+YjneFmRUnT0f2AJ7j6LVef th3UrKaVbRPizLBUYzVkl2QTDoaDzI9wiyMDd+UH8kfiE6MJoO0hqgCE9KdL60E8twg3 W0uQ5x6i4BvwkBJWtfMISXhU1nP0EoCJ+DmznjnPcgQ/hcoB5gD/yF9ZNR6Tsz8jFrg/ pF+TM31aIlOW/IVmfIvaUPnvSAKH0/pyWoeaMM2Gy+7H4s5wWiPY6qJDJnt/VLd3tJnE 60DA== X-Gm-Message-State: AO0yUKV9MXyYolGU9W+O9x/4OceBXki3z8vGr0OnFP97UC94Fx4GCaEI O4zV2YwzP4MIcssjL9nV4J4qTg== X-Google-Smtp-Source: AK7set/NxxmCSIJR7gO1gNoNDErjpfId+Gjra9KrBytdDA56fqSSwlfB1IfuBIhwiAKMe6dJjTWjZA== X-Received: by 2002:a05:600c:4d06:b0:3dc:1ad6:55fd with SMTP id u6-20020a05600c4d0600b003dc1ad655fdmr893227wmp.32.1676629214411; Fri, 17 Feb 2023 02:20:14 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:f65e:92aa:85d5:15c5? ([2a01:e0a:982:cbb0:f65e:92aa:85d5:15c5]) by smtp.gmail.com with ESMTPSA id v5-20020adff685000000b002c559def236sm3028656wrp.57.2023.02.17.02.20.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Feb 2023 02:20:13 -0800 (PST) Message-ID: <86b55b41-3faf-dbb8-a072-9a905d111eaa@linaro.org> Date: Fri, 17 Feb 2023 11:20:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 From: Neil Armstrong Subject: Re: [PATCH v2] drm/meson/meson_venc: Relax the supported mode checks Content-Language: en-US To: Carlo Caione , David Airlie , Daniel Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Da Xue Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230210-relax_dmt_limits-v2-1-318913f08121@baylibre.com> Organization: Linaro Developer Services In-Reply-To: <20230210-relax_dmt_limits-v2-1-318913f08121@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_022017_435063_E20E3F91 X-CRM114-Status: GOOD ( 16.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: neil.armstrong@linaro.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 13/02/2023 10:32, Carlo Caione wrote: > Relax a bit the supported modes list by including also 480x1920 and > 400x1280. This was actually tested on real hardware and it works > correctly. > > Signed-off-by: Carlo Caione > --- > In particular relax the resolution checks to allow more resolutions like > 480x1920 and 400x1280. > --- > Changes in v2: > - Lower the hdisplay limit to support 400x1280 as well. > - Link to v1: https://lore.kernel.org/r/20230210-relax_dmt_limits-v1-0-a1474624d530@baylibre.com > --- > drivers/gpu/drm/meson/meson_venc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/meson/meson_venc.c b/drivers/gpu/drm/meson/meson_venc.c > index 3c55ed003359..fcd532db19c1 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 < 400 || 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; > > --- > base-commit: 38c1e0c65865426676123cc9a127526fa02bcac6 > change-id: 20230210-relax_dmt_limits-355e2a1c7ccf > > Best regards, Reviewed-by: Neil Armstrong _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel