Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1943284ybv; Fri, 14 Feb 2020 08:37:39 -0800 (PST) X-Google-Smtp-Source: APXvYqziiKIfWnhgVLd6RqhZZzYMc6/IrRNvYcLPRAj6qxopvi9VXkzXINysPNosWMtuzL5o34Mc X-Received: by 2002:aca:1c01:: with SMTP id c1mr2486900oic.18.1581698259267; Fri, 14 Feb 2020 08:37:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698259; cv=none; d=google.com; s=arc-20160816; b=0DVRfHPh5I82ngRFyK89RdN90PbNszEl59R9SNzetslpJzz9qH+vqNGXvb2VCnAylu Bn3eg8q7iqtnNqMS3U+oTfb0/t56Q+z8CcceEmq75eMAE35qgpbSuR/wJrVU5TvYqq/d NF20j8z44HT66qL+YnoL1cJPuNlOjQPPHo894Xb3sGqgKsFefJnPYkPiECAHoHd/Co0A 0Jijw5HGZJIjnBOhFLgEgK5s/62UvIsgfixoBxFwPRzHjt/YwUIlNGRBdUGOLqnoTLMS HUbrVSfDy27l+MwQPzl9caUI7uA7cuwCtwHWeG54wjOwKV6AxsTGLE9q1NX53WqluBpS u3eg== 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 :dkim-signature; bh=IAohegAiCFj8qcc8jy5zA13IMTlatmTG0R5hCadsj9s=; b=uBv0FbYfycpTy/Y5tIVuzYXpFU5WoeXlzDm3r5rjyuSZAVXa9CMn+mDIKukJmtI88B WdcCsuBoSaeLHpfVwl0KisyeHbXTnX74WEPQ8jRr+QvlMO5W9Z0lgazL5sKXPjLEpdxf K97Cvs0hWjgRilWaPR2hVcALLDqerlCBt0j/r8a/bKCHSGsejx9/F/7BnaVZRE06gUGv FAhWyIU/eMqHKp2CK0jW869IPyla5E8Z0ROYxcyV2FiP3G/Bzko2FGIpT+wPh2wf0hZL pfXIFo5dCebu+0CQ1tV/FbrMZ6rdjl6m0+8OmxqXzRzYThsVv4+NQ5DqXMa9dgrxn7xO kBdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fk2T9VxL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si3093256oto.85.2020.02.14.08.37.26; Fri, 14 Feb 2020 08:37:39 -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; dkim=pass header.i=@kernel.org header.s=default header.b=fk2T9VxL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390419AbgBNQgw (ORCPT + 99 others); Fri, 14 Feb 2020 11:36:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:60692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405809AbgBNQYG (ORCPT ); Fri, 14 Feb 2020 11:24:06 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2BF562477F; Fri, 14 Feb 2020 16:24:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697446; bh=BdlkV4m/ydm7xhD5IRtDvesmAsLhifXiarptBB8b99Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fk2T9VxLMoYU71g9xMGZA2qdh3cU6srIeCWmEgewKW9ZgzSv0pWnz6M1EQQBXlj28 YJAvWlVyEiJuIF1U0R5eu73+Bzsc4F/9PcXExDLMByKilj/Ob4XtGrIhnL33Oxca5M qX3nfQhr+sdGfZVCCrFuu3JB3m5pNV7kvZTwJE/4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Daniel Vetter , Alex Deucher , =?UTF-8?q?Michel=20D=C3=A4nzer?= , Daniel Vetter , Sasha Levin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.9 131/141] radeon: insert 10ms sleep in dce5_crtc_load_lut Date: Fri, 14 Feb 2020 11:21:11 -0500 Message-Id: <20200214162122.19794-131-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Vetter [ Upstream commit ec3d65082d7dabad6fa8f66a8ef166f2d522d6b2 ] Per at least one tester this is enough magic to recover the regression introduced for some people (but not all) in commit b8e2b0199cc377617dc238f5106352c06dcd3fa2 Author: Peter Rosin Date: Tue Jul 4 12:36:57 2017 +0200 drm/fb-helper: factor out pseudo-palette which for radeon had the side-effect of refactoring out a seemingly redudant writing of the color palette. 10ms in a fairly slow modeset path feels like an acceptable form of duct-tape, so maybe worth a shot and see what sticks. Cc: Alex Deucher Cc: Michel Dänzer References: https://bugzilla.kernel.org/show_bug.cgi?id=198123 Signed-off-by: Daniel Vetter Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/radeon/radeon_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 59d62275a659d..c8820cd893d49 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -110,6 +110,8 @@ static void dce5_crtc_load_lut(struct drm_crtc *crtc) DRM_DEBUG_KMS("%d\n", radeon_crtc->crtc_id); + msleep(10); + WREG32(NI_INPUT_CSC_CONTROL + radeon_crtc->crtc_offset, (NI_INPUT_CSC_GRPH_MODE(NI_INPUT_CSC_BYPASS) | NI_INPUT_CSC_OVL_MODE(NI_INPUT_CSC_BYPASS))); -- 2.20.1