Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3921583rwi; Sat, 22 Oct 2022 02:15:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qUgDrEH4GeRm3oaxk3GG7lUSLx796kS0w5vn091K+98c+PjvAaOFW07RRbBvVUA6MJRt/ X-Received: by 2002:a63:d1b:0:b0:42b:828b:f14a with SMTP id c27-20020a630d1b000000b0042b828bf14amr20081364pgl.235.1666430107548; Sat, 22 Oct 2022 02:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666430107; cv=none; d=google.com; s=arc-20160816; b=qeInHjZu7C/MuioP6xJg6rpAHPcRf3HNjPB8pMxyG2axx8deKlmfjPEhExl1ZBJDPO 9xWWnIOBGIdoo1q9a1zdfmQFpVwaLVhBjt8qJiTp3QTj+uCb+UY78fMZePU/0BkbNoiJ munmfDNsq1geoUjZFNOdx1s2V2oWxJZDD6CmFR8PtAlAtDL23ndqB8j3xIRXDVXzVHdo uaCB1vw6EMLdmuHK9/wVDcnktcIXYU3ErjXsgh60VwTinUoeIe4j877RI8eaVlMCKL6T SGXtts948hF9eo7bUUaMj6/pqtpHSkd3EtWGhHfJeb8K+E6MLOwaMtmQCap7lZFdS6RR /1yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eK8pLtymwl12CRJdMtE2GMNvtXxO+HwsPAQcgMQaXfY=; b=q4muwoUYsLL1GBM/zzPiMnDX1zuwGCILVOwux/9WvfTQPJCLKImOWqEsPU+AvPi+uw uB4bg53cWQZp+tV0xdU8/f/yhZarzB0eGbkZMqiYC0cORrojbCck2efzPdtjOFL01jXD OIdTgNsWGhSUHt58Yi17UFn3l6otUijBqaMw9lfKB1CFth8+64Q5C+nI3S3JrCumZCGp nktW39XPJATMIcqo5fmt8pGPJHCoMQbI/Hojx1t4MBheQWjikOuXqOpvAoEYlD9Y7tT/ uvQ5nj//D44uCfKA+oK1zGev8YpIVLvTf3UBz2izdQj1hjt8WJMKkbNa+jpBPzHGMjV2 chkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Xh/Gt64j"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a170902d3c600b001783af487d1si25333800plb.533.2022.10.22.02.14.55; Sat, 22 Oct 2022 02:15:07 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b="Xh/Gt64j"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234346AbiJVIhS (ORCPT + 99 others); Sat, 22 Oct 2022 04:37:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233821AbiJVIba (ORCPT ); Sat, 22 Oct 2022 04:31:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E75B42E5E06; Sat, 22 Oct 2022 01:03:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A7BD7B82DF2; Sat, 22 Oct 2022 08:02:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEA06C433C1; Sat, 22 Oct 2022 08:02:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425770; bh=scH4qEzCtXeEEbH+HVY3DscdNarNOhCopKbgKjvj6Pc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xh/Gt64j/V8oeaYN0PHXG5+4dNsNwYrWp9KhMw8kBb0aGk9JxijNG84jW4Iu7H9Ah ptdr+SHBdmp0Qung7t+YkbG9lSSfqfEpnKvma6X1ZsprMWLUD8aqONsZC8uj2Lf7t1 O2QxI+mPYVEEpekEFBp0K69yIAdq/V5ubdeOfdkA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mateusz Kwiatkowski , =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= , Maxime Ripard , Sasha Levin Subject: [PATCH 5.19 610/717] drm/vc4: vec: Fix timings for VEC modes Date: Sat, 22 Oct 2022 09:28:09 +0200 Message-Id: <20221022072525.433202326@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Mateusz Kwiatkowski [ Upstream commit 30d7565be96b3946c18a1ce3fd538f7946839092 ] This commit fixes vertical timings of the VEC (composite output) modes to accurately represent the 525-line ("NTSC") and 625-line ("PAL") ITU-R standards. Previous timings were actually defined as 502 and 601 lines, resulting in non-standard 62.69 Hz and 52 Hz signals being generated, respectively. Signed-off-by: Mateusz Kwiatkowski Acked-by: Noralf Trønnes Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20220728-rpi-analog-tv-properties-v2-28-459522d653a7@cerno.tech Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_vec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index 11fc3d6f66b1..4e2250b8fa23 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c +++ b/drivers/gpu/drm/vc4/vc4_vec.c @@ -256,7 +256,7 @@ static void vc4_vec_ntsc_j_mode_set(struct vc4_vec *vec) static const struct drm_display_mode ntsc_mode = { DRM_MODE("720x480", DRM_MODE_TYPE_DRIVER, 13500, 720, 720 + 14, 720 + 14 + 64, 720 + 14 + 64 + 60, 0, - 480, 480 + 3, 480 + 3 + 3, 480 + 3 + 3 + 16, 0, + 480, 480 + 7, 480 + 7 + 6, 525, 0, DRM_MODE_FLAG_INTERLACE) }; @@ -278,7 +278,7 @@ static void vc4_vec_pal_m_mode_set(struct vc4_vec *vec) static const struct drm_display_mode pal_mode = { DRM_MODE("720x576", DRM_MODE_TYPE_DRIVER, 13500, 720, 720 + 20, 720 + 20 + 64, 720 + 20 + 64 + 60, 0, - 576, 576 + 2, 576 + 2 + 3, 576 + 2 + 3 + 20, 0, + 576, 576 + 4, 576 + 4 + 6, 625, 0, DRM_MODE_FLAG_INTERLACE) }; -- 2.35.1