Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5035817pxb; Mon, 15 Feb 2021 07:55:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaWf+3UBcIN7bdKfMtgJ20zTmvtPn+Llf0a6vdIwgI/WVlWF92IzlvVH/zKkdjFPA7Xc3r X-Received: by 2002:a17:906:1719:: with SMTP id c25mr16720888eje.251.1613404536302; Mon, 15 Feb 2021 07:55:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613404536; cv=none; d=google.com; s=arc-20160816; b=sGakq6Tn4QQvGcZQXoU+PVsBnqD9AhIGTDbabqUyIhNzOdqzsKSj4VOLoQ0x0Tnj9/ 8LAesjGnTKxvSmU+gdciXrvG854eWzoTKnpUM5B6QyiFXRnpRGgsei5kL5sUTcl7k9cg 4wctHk0Qt7khYQgs9mNuZIesYZdAB5zxFlv4aPH6jHFXFztsjQwO/vpGQMOeYzhIvQhs NvlYMtCyw3q793MZSV+mVUx0EHki/PMYwlBcJstC0kJYN436qoAcKDUlDNevpArKEPTd 8h/B7bkqwcsGyAkPMdx5y6tILXE8+NB3DsnII1o5imwGyRbcQL7o+auQUOnjedYeP11l M4Ig== 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=3Rh2WX6GPeguv4ROAbRvpz2iLxwINgFLnGus9H0o+tQ=; b=Js9X3BFM2VQWg7DecZQzHNmlOomUcjWHdlAFDoXFhkf7lykewTwlzKVSaXwxpKfTw/ x2czj5/3PfiFsyQvs3KLTjPsdHFb/3YZFthpjNJea2FaIAH2vsOm1qsuQ90WdIRnhIJf Z6Aj1tmc2Hshus4QqbmHCg/SYbCc5ZTYmrTS/+t7fHhuP6h+3T1N2QclA8derZ03UnR8 6YgqRdBByN4V6KLLRUIvimfbwW2DKvkkc98IoMo4ge73UdaXKApriMWl3nz+LrhlIIpS lBTTYGqx94axbAsS2KHcPv5vm3bY4Ox8SzCBiA++C2t7vaZ886pGnA5Z91cU7wvG2u4R izaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="2onTUX/k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si12740062ejr.376.2021.02.15.07.55.12; Mon, 15 Feb 2021 07:55:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="2onTUX/k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232284AbhBOPxF (ORCPT + 99 others); Mon, 15 Feb 2021 10:53:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:45562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231241AbhBOPbs (ORCPT ); Mon, 15 Feb 2021 10:31:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 155DD64E9F; Mon, 15 Feb 2021 15:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613402985; bh=Pn7l9gZA9hmYzvfX6CYAYGZj5Z4+nt3VK3k1AXB4JAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2onTUX/kOslOKGNWm5Veudfy5OQ8d3ts8p8BKVGuhGfcHZt6YTJ+X0+2dUHsMbYjG v4lqWBwjRtBSKPWic8WnRW2KQwHo9QZFgZly4bQOBEaQxJHvmaPWKXqoNJcTn934Ws Keea0PZQAElqG2QqmPo+ezds9D8KRj6ZpiruElbc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , Andre Heider , Jernej Skrabec , Maxime Ripard , Sasha Levin Subject: [PATCH 5.4 43/60] drm/sun4i: dw-hdmi: Fix max. frequency for H6 Date: Mon, 15 Feb 2021 16:27:31 +0100 Message-Id: <20210215152716.748705458@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210215152715.401453874@linuxfoundation.org> References: <20210215152715.401453874@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jernej Skrabec [ Upstream commit 1926a0508d8947cf081280d85ff035300dc71da7 ] It turns out that reasoning for lowering max. supported frequency is wrong. Scrambling works just fine. Several now fixed bugs prevented proper functioning, even with rates lower than 340 MHz. Issues were just more pronounced with higher frequencies. Fix that by allowing max. supported frequency in HW and fix the comment. Fixes: cd9063757a22 ("drm/sun4i: DW HDMI: Lower max. supported rate for H6") Reviewed-by: Chen-Yu Tsai Tested-by: Andre Heider Signed-off-by: Jernej Skrabec Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20210209175900.7092-6-jernej.skrabec@siol.net Signed-off-by: Sasha Levin --- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c index 12fe241956213..8f721be26477b 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c @@ -49,11 +49,9 @@ sun8i_dw_hdmi_mode_valid_h6(struct drm_connector *connector, { /* * Controller support maximum of 594 MHz, which correlates to - * 4K@60Hz 4:4:4 or RGB. However, for frequencies greater than - * 340 MHz scrambling has to be enabled. Because scrambling is - * not yet implemented, just limit to 340 MHz for now. + * 4K@60Hz 4:4:4 or RGB. */ - if (mode->clock > 340000) + if (mode->clock > 594000) return MODE_CLOCK_HIGH; return MODE_OK; -- 2.27.0