Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3227974imu; Sat, 24 Nov 2018 00:34:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/XJdyKb7zdNc4zS7nq3FosSBKnP/n2E4Nn5FsAIZdFpXC2JjaxhAJ9kIfXih+J89u8UxsJJ X-Received: by 2002:a17:902:7581:: with SMTP id j1mr19267862pll.308.1543048481731; Sat, 24 Nov 2018 00:34:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543048481; cv=none; d=google.com; s=arc-20160816; b=PwaiWyoAwea8ThkxxV7Gp71Q9sjAZ5lv7KvNNn5qKUQNYKg/7w7ZA/wkJIq8NwOGkk cU+YVrv5gh+Y0ApkY0B8t/zk5SJcFKGvX9S3EICQYrIsg8PXlPKKaQ1jU7X2hvsjfACU HJpcfo7mDw28PKay5/G/yt1hV/73cMi7P/jjeKkCQHalfdpDK8uI9p4WbrEDco9yb9pE MxQ0s3Zew1SigoAPfR6mWpBfldVyl2rOyTKveYDVco5BIL0YwS/ylkTX9HobvhFlbcdu zgnsv/nJtJrvxovvPaoaJkJQC9oZ1OkQq/h16By/8OOOW9wYaxDJJ9MEPocwVScf2te1 vi5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject:dkim-signature; bh=OG9Fku2qd1zlm5sMMBVIgCdneVny+aDNTlvtD2rtPMM=; b=jB8Q6HIxJMCqyFrYUM3wCc4gRnBMlIA7HfY2av9c/1qss+rbotzIr6V56joeUba+sX bhEB0ZClsIubGGce8r9SZdhwEFIW2YGR+l9oZcfwlQuaH1MoGxzIJ9u3IaFgWtgkfAKU NxWAhTHk01+rOFDiszqC9+7+hIYNl70B//QQkNqagpKUt/GsP2AZskydLWOAzB+6vpMX n0O32crX/4Er+mrCuqEH0MjHfltKAxRIRh9rXyjeKMqNoDu/hbVcP+YbmIGTJQ7dlQp7 7v6THrZSgN56YPkT/PhZEpou4S7uQYtNL4N4mO7MX+5ohoqwN5+z4XB5GzETEUYSRF/z i/eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dbBLeQ2f; 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 r2si621043pfc.82.2018.11.24.00.34.27; Sat, 24 Nov 2018 00:34:41 -0800 (PST) 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=dbBLeQ2f; 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 S2504484AbeKWX76 (ORCPT + 99 others); Fri, 23 Nov 2018 18:59:58 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55188 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394867AbeKWX75 (ORCPT ); Fri, 23 Nov 2018 18:59:57 -0500 Received: by mail-wm1-f67.google.com with SMTP id r63-v6so11942790wma.4 for ; Fri, 23 Nov 2018 05:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=OG9Fku2qd1zlm5sMMBVIgCdneVny+aDNTlvtD2rtPMM=; b=dbBLeQ2fVkEU9x3z25NbAt1n5UuKyYgFBPZOlj2gBgVneYEeEBt99BgVuAvGSmYYye OUzH4SWJijf+PCtCcubJonKTXeKzJge3/WxgQrs3UjwQQdlztWcai9tBxdj1P5GgSuNg gzdexT2HigrnGgODLAoHbnsvr0UbDIxXdiaTEk4cj836M6MCFhSe4Hx35AfJDqLhXqM0 Kr1j1Z6tB3i+yyPikvtUwq1Ova7WR+SqJrwMAVzx7C4ETpOyUYN86sw3tj7Zrp5HbSLG yGTkkgZ6Q5rvARq6PWTa2YCYlqPvQa7B+jIMTa9kEIbe8Fzrz8SZmBdcnNZknqey+S1F 9nlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=OG9Fku2qd1zlm5sMMBVIgCdneVny+aDNTlvtD2rtPMM=; b=ingvLkyHS5U1DeUIFf5EhcU8xmcMHVXh5FPAKvcKmQ8FayUc9PgRZZpxVdxFXNke5o gzI54I6NAul9zjpcEtNeD2S48NkUJerf0kefh//XESEKyJkQSC557okfJ1T3NAaePbQi BcxKL2pG5265Zm+9QNGgjoi8X4XpA/i2j10gNn/l1laOkhsj+s1UtOc7CvpbWwWHG2oi Mi7exmFESDSDMNSZKcwc9wkl3gLD981Hb5KU9aAC+r8QrHvDgUFDI97qyXOboi702Pga rtFsYaYLEZJUMdnQ5tbr16tlf8p3zL7M05PIoRoXLoCS/RMJ1h9u+iAq2bxkoxauRCk6 WP0A== X-Gm-Message-State: AA+aEWZDMrzmcYjIx2VBOLUTrxGXyKoislNczepKukU43ht806YUHaEb za7vCbrFwQcgpsMjlhIy8xoMDGR9Aqp6PQ== X-Received: by 2002:a1c:4a:: with SMTP id 71-v6mr13643931wma.140.1542978946178; Fri, 23 Nov 2018 05:15:46 -0800 (PST) Received: from [10.1.2.12] (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id v1sm11004430wrw.90.2018.11.23.05.15.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 05:15:45 -0800 (PST) Subject: Re: [PATCH] drm/meson: add support for 1080p25 mode To: Michal Lazo Cc: christianshewitt@gmail.com, airlied@linux.ie, khilman@baylibre.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, carlo@caione.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <1542793169-13008-1-git-send-email-christianshewitt@gmail.com> <2a9d9fa9-c9ba-c624-28da-dd3804faf438@baylibre.com> From: Neil Armstrong Openpgp: preference=signencrypt Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdslbrxi4pk5VKU6ZP9AKsN NtMZntB8WrBTtkAZfZbTF7850uwd3eU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.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, On 23/11/2018 13:57, Michal Lazo wrote: > I would suggest same aproach as for > "meson_hdmi_encp_mode_1080p30" > and "meson_hdmi_encp_mode_1080p60" > > so duplicate "meson_hdmi_encp_mode_1080p50" > with name "meson_hdmi_encp_mode_1080p25" The configs are litterally the same for 1080p25 and 1080p60 unlike 1080p30/1080p60, so I don't see the point about duplicating a same table for the sake of naming. We will the exact same thing to support the 2160p50/2160p60 modes by reusing the same config are 2160p25/2160p50, and I don't see the point of duplication the tables here aswell. Neil > > now the code looks really like common copy paste problem > Michal Lazo > On Wed, Nov 21, 2018 at 10:47 AM Neil Armstrong wrote: >> >> On 21/11/2018 10:39, Christian Hewitt wrote: >>> This essential mode for PAL users is missing, so add it. >>> >>> Signed-off-by: Christian Hewitt >>> --- >>> drivers/gpu/drm/meson/meson_venc.c | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/drivers/gpu/drm/meson/meson_venc.c b/drivers/gpu/drm/meson/meson_venc.c >>> index acbbad3..ab16046 100644 >>> --- a/drivers/gpu/drm/meson/meson_venc.c >>> +++ b/drivers/gpu/drm/meson/meson_venc.c >>> @@ -714,6 +714,7 @@ struct meson_hdmi_venc_vic_mode { >>> { 5, &meson_hdmi_encp_mode_1080i60 }, >>> { 20, &meson_hdmi_encp_mode_1080i50 }, >>> { 32, &meson_hdmi_encp_mode_1080p24 }, >>> + { 33, &meson_hdmi_encp_mode_1080p50 }, >>> { 34, &meson_hdmi_encp_mode_1080p30 }, >>> { 31, &meson_hdmi_encp_mode_1080p50 }, >>> { 16, &meson_hdmi_encp_mode_1080p60 }, >>> >> >> Exact, I forgot this mode... >> >> Thanks for the change ! >> >> Acked-by: Neil Armstrong >> >> I'll add : >> Fixes: 335e3713afb87 ("drm/meson: Add support for HDMI venc modes and settings") >> when applying to drm-misc-fixes. >> >> Neil >> >> _______________________________________________ >> linux-amlogic mailing list >> linux-amlogic@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-amlogic > > >