From patchwork Wed Jan 10 12:15:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10154993 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 81918602D8 for ; Wed, 10 Jan 2018 12:15:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6656326CFF for ; Wed, 10 Jan 2018 12:15:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 577F926E56; Wed, 10 Jan 2018 12:15:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CE30F26CFF for ; Wed, 10 Jan 2018 12:15:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7CCD26E25D; Wed, 10 Jan 2018 12:15:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id CB47E6E25D for ; Wed, 10 Jan 2018 12:15:28 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id f140so26601944wmd.2 for ; Wed, 10 Jan 2018 04:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=JG4soSsjZArEiUoWiEkDH8KZFG63SatkT+PP4sDZ7g4=; b=Ct8LfMi1OFOtDARwoFBjyQVfd4IRwgJV9VyeOL7OrmBsS8oh8WwA+IwUVAppXLn0T/ JafOawAd5w7mkGOuMmQr6RJHONwqLDa5btGgoExlC/8r4jOMcCKWLDEPH2iJu5CiH4sy wv2ikVodr3uGviQr6ICw5xitUu6+ldcTUb9uw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=JG4soSsjZArEiUoWiEkDH8KZFG63SatkT+PP4sDZ7g4=; b=AII41tLPtWdbbbdIBu4cPD/e2OsT5HUdmjN54AmxaMFq/YJtsPDF0f/qGkRDhfc3zR 3mtOuf6qle6JusSi8Wjs+VULszhKKadyTyAuIaWCY6/pG3Bmm8vDm22H43cd0dttJfMk US5kWmFsSYU+wXc9v6JbyoBX3JqY+xEvgaEg2o3LACtQA3ZFHcQnmweba6/N8a4XrRDL pJW/wfSaBWc9KedzxKHtjwAQMRVSwIBDuIqFl4slAn2CVLm53D6625A8kO6DQd4JpKEh E7MFzFTkvrW7LQSOGGNWr4VImFmVx3+k4MDVllKLXLj8PdJDyt4GFs2B3KpSA5mIVwyi +NXA== X-Gm-Message-State: AKGB3mJ72zH3Xgirzs4eb7cp+g9M3fi2pXL2ajtZFHHxb6hKad1cabVv hF2Mb47BAW69JVG+aSiqa2Bhnk2+ X-Google-Smtp-Source: ACJfBotHwG47pdgk6ObBcWh4XP21jUnkhG1+eV0HLp9sG1/Ld/m2eIA6iRVSlzrPEj7SiIqF0SGwDg== X-Received: by 10.80.195.17 with SMTP id a17mr25893433edb.178.1515586527271; Wed, 10 Jan 2018 04:15:27 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:56e6:0:e4bc:76a0:8042:669e]) by smtp.gmail.com with ESMTPSA id q10sm9370506edc.32.2018.01.10.04.15.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Jan 2018 04:15:24 -0800 (PST) Date: Wed, 10 Jan 2018 13:15:22 +0100 From: Daniel Vetter To: Deposite Pirate Subject: Re: [Bug 198123] Console is the wrong color at boot with radeon 6670 Message-ID: <20180110121522.GL13066@phenom.ffwll.local> References: <2ad7d588-8ef8-ad79-df38-afae1f77a378@daenzer.net> <1d91c584-1167-5061-83a8-d6d1687cebb5@axentia.se> <41580505-1a0d-8d9c-8545-bde63baa4b4f@daenzer.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 4.14.0-1-amd64 User-Agent: Mutt/1.9.1 (2017-09-22) Cc: Michel =?iso-8859-1?Q?D=E4nzer?= , Peter Rosin , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP On Sun, Jan 07, 2018 at 07:14:41PM +0000, Deposite Pirate wrote: > December 22, 2017 4:35 PM, "Michel Dänzer" wrote: > > > "Deposite Pirate", do the attached (only compile tested) patches work? > > Hi, > > Sorry for the delay. I was not at home for a while. So, I've compiled and booted a kernel with both > of these patches and > the issue is still present. Below a revised version of Michel's first patch. This one should work I hope. -Daniel diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index d22f4b6a8828..dc0abdf8be00 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -213,9 +213,6 @@ void radeon_crtc_load_lut(struct drm_crtc *crtc) struct drm_device *dev = crtc->dev; struct radeon_device *rdev = dev->dev_private; - if (!crtc->enabled) - return; - if (ASIC_IS_DCE5(rdev)) dce5_crtc_load_lut(crtc); else if (ASIC_IS_DCE4(rdev)) @@ -702,6 +699,8 @@ static void radeon_crtc_init(struct drm_device *dev, int index) radeon_atombios_init_crtc(dev, radeon_crtc); else radeon_legacy_init_crtc(dev, radeon_crtc); + + radeon_crtc_load_lut(&radeon_crtc->base); } static const char *encoder_names[38] = {