Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp94514imm; Tue, 9 Oct 2018 14:26:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV63gEZk+yg0qFju4Zq3oSgy0pimZmz52/5WyK1MO9WH2lau0wWYnhU5ZvVYrOiFfktbj0xAn X-Received: by 2002:a62:2542:: with SMTP id l63-v6mr26027406pfl.64.1539120412079; Tue, 09 Oct 2018 14:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539120412; cv=none; d=google.com; s=arc-20160816; b=G03q6T79YFx4awUZ9UApOiBKJNlx7oi1Ffk5KJ1cPsWksrH01YNSVJ2e64YAB/7qEE lUPLVhL6Lt7G+jsF4I+TKTAEH0/3W1Kzf77kKH/282OX355EqBEVlgo1EspKv3jpe8AW QrzlyFbWvcsgrJox58aofov5EYAJWoC+wtAz8OlEC9db9xtr79QYjJbEvW23tHHmT64x i1iAitQqIC6kZne8l7LKn3MvCDRY39gHQwuri4PO2PdpCDatk3iibl08Gn/pNvFoByC9 ahQEGEYPMDZTGHQ9pVo1GBcoo59of9gPnvSVXoSLhPEoCB53S0uqB5lW9nVZcrC73Yjg isew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=51XTrruwT6Zk4jQmCrFDDypXOWKMNqzH2FZ+M5ceMCs=; b=DUwX1ICtsF2YeF1khdEc4FYGlUuPEaQ/4N0To6NY989q4WlgMdInGGmLBpBHc7SZQc C3N22C2KRyD7uQlzMwicjS6J/Tu0dEQjdbbDT6FG/Yh7zPm63UDs9vaVxAEGl7P+ZtHh O4tqa5wX2lup6mFZzhO/V0r7lQ+c6si/zTkbYQdiXpi/G5vfHJxyPsAAC6psPnHC/GV5 x3OqYjWY+Luq5FiClYSOxGHD7zuuQNo082kdpMlEfwuOmAQlE1IvEnqliNwLIvunzzFJ /d+kuKHwdHyillIz62bpjj5PkDv9wKG3fjpwQGzE4Ebue6sHJp8OtadioAbOjSrDkVEs bksA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=SkXQ2Lfv; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11-v6si23126941plc.224.2018.10.09.14.26.36; Tue, 09 Oct 2018 14:26:52 -0700 (PDT) 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=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=SkXQ2Lfv; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbeJJEmr (ORCPT + 99 others); Wed, 10 Oct 2018 00:42:47 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:37896 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeJJEmq (ORCPT ); Wed, 10 Oct 2018 00:42:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=51XTrruwT6Zk4jQmCrFDDypXOWKMNqzH2FZ+M5ceMCs=; b=SkXQ2LfveGeaL7fhRg9p6SvAf iy2y5LgSW1zgkhgYBvczJ94GsFilrvqyDhJJmxDFixDjfNlhFlRvm/ybEOJDumfvkj3LpALjbljh/ aS/7TXkFptgW0q1bZJEafITIqX005BN9ra8AX5SUrnA+jFtprQ1AII4CByuUwfmCdM1Xc=; Received: from n2100.armlinux.org.uk ([fd8f:7570:feb6:1:214:fdff:fe10:4f86]:60057) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1g9zTj-00036f-89; Tue, 09 Oct 2018 22:23:43 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1g9zTg-0001ow-0u; Tue, 09 Oct 2018 22:23:40 +0100 Date: Tue, 9 Oct 2018 22:23:37 +0100 From: Russell King - ARM Linux To: Ilia Mirkin Cc: Laurent Pinchart , devicetree , jernej.skrabec@siol.net, Andrzej Hajda , maxime.ripard@bootlin.com, David Airlie , linux-sunxi@googlegroups.com, Archit Taneja , dri-devel , LKML , sboyd@kernel.org, Chen-Yu Tsai , Rob Herring , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 15/29] drm/bridge/synopsys: dw-hdmi: Enable workaround for v2.12a Message-ID: <20181009212337.GL30658@n2100.armlinux.org.uk> References: <20181007093905.11253-1-jernej.skrabec@siol.net> <20181007093905.11253-16-jernej.skrabec@siol.net> <3616158.EzHeIcd69b@avalon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 09, 2018 at 01:56:04PM -0400, Ilia Mirkin wrote: > On Tue, Oct 9, 2018 at 1:40 PM Laurent Pinchart > wrote: > > commit 9c305eb442f3b371fc722ade827bbf673514123e > > Author: Neil Armstrong > > Date: Fri Feb 23 12:44:37 2018 +0100 > > > > drm: bridge: dw-hdmi: Fix overflow workaround for Amlogic Meson GX SoCs > > > > I haven't paid too much attention to the patch back then, and have now double- > > checked the HDMI output on R-Car Gen3. Enabling the workaround doesn't cause > > any regression, and reverting the commit doesn't cause any issue either. I > > thus wonder whether we shouldn't enable the workaround with count = 1 in the > > default case instead of adding new IP core versions to the list. It would be > > nice if someone from Synopsys could comment on this. > > I hope this comment isn't *incredibly* off-topic, but we encountered a > similar issue with NVIDIA (and I believe AMD) hardware a while back, > related to HDMI. This was due to infoframes not being sent, but > (perhaps) HDMI Audio being enabled. You're probably right about the infoframes. The errata documentation for this workaround on iMX6 states: Each time one writes to some FC registers, and depending on the clock relation of sfr clk and tmds clk, some of these train of pulses (when these registers are configured in sequence), may not be caught by the arithmetic unit while it is busy processing/updating the first ones, so, it gets wrong video timing values, although the registers FC_* hold correct values. Even a soft reset will not make the arithmetic unit update correctly. Video will still pass correctly to the HDMI, but packets would not because the frame composer is holding internally incorrect video timing and this will quickly build up and overflow the packet FIFOs. So, the workaround is about kicking the frame composer so that the packets (iow, non-video data) are passed through correctly. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up