Received: by 10.223.185.116 with SMTP id b49csp696103wrg; Wed, 21 Feb 2018 05:33:30 -0800 (PST) X-Google-Smtp-Source: AH8x227n/NdCTk8qvzW3+c62jdcLQzsNxONVo49bkoviwOYzk9dVdCftnY+pEnpQ6KY8tTCTL+iz X-Received: by 2002:a17:902:6b81:: with SMTP id p1-v6mr3103517plk.79.1519220010725; Wed, 21 Feb 2018 05:33:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519220010; cv=none; d=google.com; s=arc-20160816; b=nHdwmHYQZKB/BWrdQBtjPO3ui/ddjLI/cZFbvgErZVQC+yuJtIJqRWCYMmw1Nbr3IQ eU6PDRGReIZj6LzUEsUb4zaP9sIq9t3+E7t2m+CpdgWzFRyqzDeZGzI6zwXpxm6+fy0u WvhM6V0gkxBhx3SmQRxPC8s368rZrTnp5E6etnoaDV9Sbl0hwVcXr8o9pvQfUuYkwuoS knxtvnvYs+qUx2MYc+UtzX6Z2wY7NvBedwnHEJF5y3MhaY3nK7KpfNlLj/rpzGF/3CS3 x7xYU78qpzndGNnYDPFHRnh952EpKHihf6DHQfVN65WMH8JZYl4nMIubIe+DORZ56d4g llcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=jGdBkl9nvwYxJNtw1LpBOgcyYKw/wdQ/4sWgJes14Kg=; b=iJZNcOC0k/KiJX9zbARwQ0iahDP7jL8ZdUbNMzLosAgcT2Lq+gq7O0YnPz2Ns0NF/v xhDdocmLxTrdqoIol+7waGcqEnYDaLM+go9SaBp7/02rlQlL0WrZWeNGW7XHgZfiLcTK TTFzYgsN4qizKih5tcmagYcBV7Sy/XNTuZo4xMgU+oeUuP7NlGd2/diTLG7nK+fYdBCF O6JjrL9JWQ2geqLBuT+gkPAFBMyZlDGxbV0fh4oYCQnlWZcT0vrPkM5Xstf42JyG17Fm hhrofmHXIOX+UL8f0CC1r7P7emp1Eyfzcz4ERrf7XlPX48VVkZT0Eje/SRNGEoDf44Zy scoQ== 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 q12si1502276pgc.644.2018.02.21.05.33.16; Wed, 21 Feb 2018 05:33:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936244AbeBUNKk (ORCPT + 99 others); Wed, 21 Feb 2018 08:10:40 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43850 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933491AbeBUNKh (ORCPT ); Wed, 21 Feb 2018 08:10:37 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 023541218; Wed, 21 Feb 2018 13:10:08 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Rosin , Daniel Vetter , Bill Fraser , Daniel Vetter , Dave Airlie Subject: [PATCH 4.15 093/163] drm/ast: Load lut in crtc_commit Date: Wed, 21 Feb 2018 13:48:42 +0100 Message-Id: <20180221124535.470997389@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Daniel Vetter commit 24b8ef699e8221d2b7f813adaab13eec053e1507 upstream. In the past the ast driver relied upon the fbdev emulation helpers to call ->load_lut at boot-up. But since commit b8e2b0199cc377617dc238f5106352c06dcd3fa2 Author: Peter Rosin Date: Tue Jul 4 12:36:57 2017 +0200 drm/fb-helper: factor out pseudo-palette that's cleaned up and drivers are expected to boot into a consistent lut state. This patch fixes that. Fixes: b8e2b0199cc3 ("drm/fb-helper: factor out pseudo-palette") Cc: Peter Rosin Cc: Daniel Vetter Cc: # v4.14+ Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=198123 Cc: Bill Fraser Reported-and-Tested-by: Bill Fraser Signed-off-by: Daniel Vetter Signed-off-by: Dave Airlie Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/ast/ast_mode.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -644,6 +644,7 @@ static void ast_crtc_commit(struct drm_c { struct ast_private *ast = crtc->dev->dev_private; ast_set_index_reg_mask(ast, AST_IO_SEQ_PORT, 0x1, 0xdf, 0); + ast_crtc_load_lut(crtc); }