Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp879134rwi; Wed, 19 Oct 2022 04:14:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM636fT2iXrKdYhTboU05J1qbwvQF0x6BWr+EqH2WRw79dxKoSOENlDDRgm0AJhQZJeBpX1l X-Received: by 2002:a63:1165:0:b0:44d:e5ba:5603 with SMTP id 37-20020a631165000000b0044de5ba5603mr6742070pgr.68.1666178040660; Wed, 19 Oct 2022 04:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666178040; cv=none; d=google.com; s=arc-20160816; b=RMHE+ttvn1Sr3KWi5NjbpCVQIuBXr9g3qbcR+44JjlT/T3PLah3WW/0wmxVuSYH4Tt XOMxs7TKCMxqrZK1DrlNLpkER/ZLd9TrK2sGLf3br9Koifq28GfCKdfM3jHjt+7sYguR Km+zh8+uGzOFAJCqNgK8L+RPeCyIrdrcCncCQTVpR54UzZTqO8w3ySdqwxfByssSDptQ bvFRA0IXuNu/shY66kT4gyOXLi/PCG6fWXGz1Rkagw2x53BDfyRLKIeJ8YgrS4BH2alN DPH5fKvE7N0lkHTnRjCHa5/RH6/8Rrwf6ZFtNbj4ZNP3c0OPIGebf5dN+GWZRFx53MWD prcg== 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=jlVU4Yh0/C0/FhhTchjiEM6lW+SYJQj915ow86RmzcyzPTDivrkPIxhxmSoHFYPz2c hBqpX6bDqaaFYjTvJZKW4i6nAdvcUozPqywKHvvXla96CbovXpO487078w19x61xwbWc d4UAbOoViJrrLUP6VIwvyN29mM7R93GJgH6bOsGM0Usw/UQvNdh6jqb+QktixXpv4Hm/ 2qa8lYlWjsptNFmdsEaSxtMEa38JXJKgYSgFFbhKJwB9onyIeNJC0jKKv6WxSe8C6S5V 9bWlsb71w3203EKZKmZWgH/JoE4yzVwwupxWfifVB2fSB0P0W7CH4WrJFHzCfSQNJnK2 mLFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j2MBILij; 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 x15-20020a170902ec8f00b00177e335976bsi19927245plg.254.2022.10.19.04.13.47; Wed, 19 Oct 2022 04:14:00 -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=j2MBILij; 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 S234629AbiJSKw7 (ORCPT + 99 others); Wed, 19 Oct 2022 06:52:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234546AbiJSKw2 (ORCPT ); Wed, 19 Oct 2022 06:52:28 -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 0D3A3D01BF; Wed, 19 Oct 2022 03:23:49 -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 BA211B824C9; Wed, 19 Oct 2022 09:11:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20BE6C433D6; Wed, 19 Oct 2022 09:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170693; bh=scH4qEzCtXeEEbH+HVY3DscdNarNOhCopKbgKjvj6Pc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j2MBILijfGM6ubu0ORyAm0A33Ygj/lv1Yn2iWySFmPyuAUG6+XaXFv8OHLVi482hV xdVuwTgtfH5xlNsQxmTs9q1JWkZXnWKI+MGNh1KTFc8cwaZfL8jCGwnoSI1JJMLcph mG9fbSlPRaE7fyxu2EZO0Rq22UAkBgZFI4GRJ9Wk= 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 6.0 744/862] drm/vc4: vec: Fix timings for VEC modes Date: Wed, 19 Oct 2022 10:33:51 +0200 Message-Id: <20221019083322.817861500@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@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.4 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