Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp12954211ybl; Sun, 29 Dec 2019 01:26:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwBqCQN3t0Q8jcF4yxtAB7m5tApxJGdI+uo+kf4tvoQi+7zi3zup6G8d8xF7yc29qOCUmDN X-Received: by 2002:a9d:3f61:: with SMTP id m88mr50614170otc.56.1577611569342; Sun, 29 Dec 2019 01:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577611569; cv=none; d=google.com; s=arc-20160816; b=AZHdWATw3ovE0OPG1e0wqRd40NzM9VKS2C0mSGSBLAnaA5B5zufWzMJUPcn18+ajcY JQ7dWewzRBzcUOPwicd/HEIL6EF3HR0xT65LRXl5C19Ep2zD9hLiWE209NQT+d6/yyGK CULcBm/NSSQATz8WGF0ks04lNkowlAa7mgoXVhPaLduSOrv6exJssq/HcWP9ybuSf2tG Hx4j3pYCpU802JqIQ6lfkN8CQuWGShY25Nxc8ANPtXqbptNy+VXpFcDnPWlVOR/xYHC9 EzuA+d9xNQb6sncbejU0qKnG1AOi93esxHEPDsjqrkteSQpfm8RHkAlSvef6JaLGQqZF zRCw== 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=bkct7LhpfS/R9/f0TT4KSBR13LuHE6hP6fdHnz6BIwA=; b=cXEPNoPjn7/Ge31Pli9k7YpjSqFKIIz5Ad5x/FYHo0D7MPkJqzg75QnwBL5u1NWDYb K/X6DB/USTQE3jIuC0XURwgBjXjpylpe6vEsZ+Ht3k//8cnOk6qlmSckDGeb8iSAULYT 8/5UYxreKryMtn5zH18Cufl4nUQ/jJl3VKHlIAbsnxaPnMkqQXVv9ZiGZGzTmR0/jlaO 2Xv4aGJzmlWl103m5qGaR15LesXqqAheCOcscg3mjj9fJ3Gu2i0vULjZVsCyI/DXm0Ao SSzt3/CmWuBABxWnBpUHSSqvwTxDwYeB4KMDxtLQizXvZwpvvf+2nyMxhBRzpVydNWu5 jmzQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si21841846otq.21.2019.12.29.01.25.57; Sun, 29 Dec 2019 01:26:09 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726406AbfL2JZQ (ORCPT + 99 others); Sun, 29 Dec 2019 04:25:16 -0500 Received: from mailoutvs37.siol.net ([185.57.226.228]:46932 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726366AbfL2JZP (ORCPT ); Sun, 29 Dec 2019 04:25:15 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 345CD5209D1; Sun, 29 Dec 2019 10:25:13 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta09.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta09.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id xV8-l4oTnBLS; Sun, 29 Dec 2019 10:25:12 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id D585B5209D2; Sun, 29 Dec 2019 10:25:12 +0100 (CET) Received: from jernej-laptop.localnet (89-212-178-211.dynamic.t-2.net [89.212.178.211]) (Authenticated sender: jernej.skrabec@siol.net) by mail.siol.net (Postfix) with ESMTPA id 96D045209D1; Sun, 29 Dec 2019 10:25:12 +0100 (CET) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: mripard@kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, roman.stratiienko@globallogic.com Cc: Roman Stratiienko Subject: Re: [RFC 4/4] drm/sun4i: Update mixer's internal registers after initialization Date: Sun, 29 Dec 2019 10:25:12 +0100 Message-ID: <2960593.5fSG56mABF@jernej-laptop> In-Reply-To: <20191228202818.69908-5-roman.stratiienko@globallogic.com> References: <20191228202818.69908-1-roman.stratiienko@globallogic.com> <20191228202818.69908-5-roman.stratiienko@globallogic.com> 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 sobota, 28. december 2019 ob 21:28:18 CET je roman.stratiienko@globallogic.com napisal(a): > From: Roman Stratiienko > > At system start blink of u-boot ghost framebuffer can be observed. > Fix it. Reviewed-by: Jernej Skrabec Please note that U-Boot to Linux handover may not be without issues. I noticed that in some cases, HDMI EDID readout is broken. I guess already initialized HDMI controller doesn't like to be reinitialized. Or it may have something to do with the fact that U-Boot HDMI driver sets I2C timing and Linux kernel uses default one. Best regards, Jernej > > Signed-off-by: Roman Stratiienko > --- > drivers/gpu/drm/sun4i/sun8i_mixer.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c > b/drivers/gpu/drm/sun4i/sun8i_mixer.c index da84fccf7784..b906b8cc464e > 100644 > --- a/drivers/gpu/drm/sun4i/sun8i_mixer.c > +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c > @@ -588,6 +588,9 @@ static int sun8i_mixer_bind(struct device *dev, struct > device *master, regmap_update_bits(mixer->engine.regs, > SUN8I_MIXER_BLEND_PIPE_CTL(base), SUN8I_MIXER_BLEND_PIPE_CTL_EN_MSK, 0); > > + regmap_write(mixer->engine.regs, SUN8I_MIXER_GLOBAL_DBUFF, > + SUN8I_MIXER_GLOBAL_DBUFF_ENABLE); > + > return 0; > > err_disable_bus_clk: