Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4205509imm; Mon, 15 Oct 2018 10:44:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV62cc0SF2yR+fCezqwtbT0PypcZ20Glw93gi/aUaVpi0QaC39WppHxgjq41ZRIAttRk6+ECJ X-Received: by 2002:a63:c5a:: with SMTP id 26-v6mr16916633pgm.372.1539625491555; Mon, 15 Oct 2018 10:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539625491; cv=none; d=google.com; s=arc-20160816; b=y/sKB5BaFdZdT/eeAGo9AJjtoeIQJiJJwZ5YNXYf81FxrQ7z3ewMeoQ5N+LYDBhhrn XAtctYIIBdgob1CmomqB/fLhz++oZLEvIOfstnVl8WzE99G6ZrQar3jOuP+mJMBaLOl8 RIR9Ri0yLLZE4TvT+l7yK8oaKT5SwHFUSnRl2kpHLSLrkmoNsxd7hl7U+M9HlrJoS7Cj f9vgAcxPZuqkx+DNhXT7tHXggPrnyTbcUXzIoD5wlKMN4q6IyLp5IDqLZD8r6jaIIwEh 8vQNReFb2XgCzXs+mOYkKCNeG3El6xznZ6mx6nblsuAEY2PK9wc5xX27TvzWNHyBmajj JV4g== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iyEJMvRvYi4hA3O8BUxyuoL+Vf2MmaAGD/8Ui1nvm5Q=; b=Xh6MjWAVZLYRlJpqKA1abeske7V2egHg9dc1+N3DiMgyeIwvhi8YspZXFpoxZcDWa6 EACveWE/foaJ61Jsg1xF3g3ndv8Tz4vM6NmkefaVrc777bLN8W/ERwSV0w0L/AG02UaT i/2TSLE6hMHRpWzIfcsWt2rKZ9WCd6PcyAt+wMdffhin5E92Agme46d+YWAO0J6tuYF2 GfLghfMX4TJ9dC/FOSVrCdMKB8ya7krudjJbRJ2FNWh7gqkoAD6bBu5Q3vqYatADrMiB TLzQS2HTf4TR9zjC+NU1Q/qHv+neMqV1IX7tRqNgDUjyiKz5aRp2UuvAfD9MKcYyn8I+ UXBQ== ARC-Authentication-Results: i=1; mx.google.com; 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 3-v6si1249161plo.75.2018.10.15.10.44.36; Mon, 15 Oct 2018 10:44:51 -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; 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 S1726923AbeJPBaH (ORCPT + 99 others); Mon, 15 Oct 2018 21:30:07 -0400 Received: from mailoutvs30.siol.net ([185.57.226.221]:49883 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726639AbeJPBaH (ORCPT ); Mon, 15 Oct 2018 21:30:07 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTP id 6AEB7521577; Mon, 15 Oct 2018 19:43:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta12.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id H68FphBlTTer; Mon, 15 Oct 2018 19:43:51 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTPS id 048355208C1; Mon, 15 Oct 2018 19:43:51 +0200 (CEST) Received: from jernej-laptop.localnet (cpe1-8-82.cable.triera.net [213.161.8.82]) (Authenticated sender: 031275009) by mail.siol.net (Zimbra) with ESMTPA id B6B72521577; Mon, 15 Oct 2018 19:43:44 +0200 (CEST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: linux-sunxi@googlegroups.com, laurent.pinchart@ideasonboard.com Cc: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org, sboyd@kernel.org, airlied@linux.ie, architt@codeaurora.org, a.hajda@samsung.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [linux-sunxi] Re: [PATCH v2 15/29] drm/bridge/synopsys: dw-hdmi: Enable workaround for v2.12a Date: Mon, 15 Oct 2018 19:43:44 +0200 Message-ID: <1599508.L0GctDr0rS@jernej-laptop> In-Reply-To: <3616158.EzHeIcd69b@avalon> References: <20181007093905.11253-1-jernej.skrabec@siol.net> <20181007093905.11253-16-jernej.skrabec@siol.net> <3616158.EzHeIcd69b@avalon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Dne torek, 09. oktober 2018 ob 19:40:44 CEST je Laurent Pinchart napisal(a): > Hi Jernej, > > Thank you for the patch. > > On Sunday, 7 October 2018 12:38:51 EEST Jernej Skrabec wrote: > > It turns out that even new DW HDMI controllers exhibits same magenta > > line issues as older versions. > > > > Enable workaround for v2.12a. > > This doesn't affect the platforms I maintain, so I can't really test this, > but I'm wondering whether there could be other platforms using a v2.12a DW > HDMI that wouldn't need the workaround. > > My platforms use a previous version, namely v2.01a. The workaround for that > version has been enabled by > > 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 was thinking about that too, or even having parameter in dw_hdmi_plat_data which would tell how many times to repeat workaround procedure for a specific platform. But this might be an overkill. Best regards, Jernej > > > Reviewed-by: Chen-Yu Tsai > > Signed-off-by: Jernej Skrabec > > --- > > > > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > > b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index > > 5971976284bf..df1c7a2d6961 100644 > > --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > > +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > > @@ -1664,6 +1664,7 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi > > > > *hdmi) case 0x131a: > > case 0x132a: > > > > case 0x201a: > > + case 0x212a: > > count = 1; > > break; > > > > default: