Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp822294pxb; Tue, 3 Nov 2020 13:32:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYJKFFWOhbUn1OxLJ8LZzCdosZ/ohz8GfsptoQoIxGQA1af+JdlG+KM17aGDUUUNDgKj8N X-Received: by 2002:a50:9e86:: with SMTP id a6mr9793579edf.238.1604439120940; Tue, 03 Nov 2020 13:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604439120; cv=none; d=google.com; s=arc-20160816; b=ZkZCH77QVCNqqEZi1gcAgurxjWX+nRGR2j5ud8TqOJaP+BruzIyKFKmjkJGHjwcvkJ MGlCtAwE+2bgIdd2RS44Zte41d97tqAXebFV+lXkw653ssnFtNOR9z2w6UVZevFktLcH hhbkWpNdd5kqMD+iURLPL5OPqxmrYbwWLhGqWpzjuMCq0I6beVjp5Z3CcQO2EDRpPYuu wiLDh7ul2JaRr4zBJ3o2v9lcH16RFnFYMXetbl8Hx7DFIIMt5X12HAXM1yGm8kqrJP1u ePJhLh/9xrdUoVakhQ/omDQ4nx4AU9CMHUNJCiJNFpGVef/5UaBZHY1IPrr3d414hCKJ xhag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OGXbcHVWA07fyfQfU8HEazcGDWKCc69l3VZpD4AfK9g=; b=cZZy5DZJ3Kn11Z7s7utuCCy2ckMJN7CFqx40uwC6Rsrz8BxgitIE1+alS5WBFfqFqr /KpfpfGdyQaMcHTiPXSAjLAbuVk9/zGb2r5TIqVv+Mp3l/J/DcKKW45cunVerLm3j4I6 Jyo0x+2qYEzsb39V/Ji/oQEufvh/KjoID4i9G8Pm+n5VlHRbJECO1H7aNhFRyYyakO2G z8SbkIaM0C67R6Ik2eZqLxppBHp29raI5Crbr2AEVw92/VlJfJq3Qfm/zNMLY7cROmk6 iHNLM0jZiOtgFu4J6BSdPETHbOB92ksO32FHej1gjsOMocmqMDXehokDDmi4q8kOpnLA f3Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BoRqwJQr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si7249005edq.105.2020.11.03.13.31.38; Tue, 03 Nov 2020 13:32:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BoRqwJQr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387426AbgKCVBJ (ORCPT + 99 others); Tue, 3 Nov 2020 16:01:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:37396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387414AbgKCVBG (ORCPT ); Tue, 3 Nov 2020 16:01:06 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5ACE21534; Tue, 3 Nov 2020 21:01:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437266; bh=lJeRMCkIRcz3i9nwWd+8+1OYpqXt56mFFfYdAEIWhBc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BoRqwJQrNqZ7jgntNi8IJF1WcozbfE0rcUi+AVZLkPPBlgeSuPTpi1TNP/vsBsmGJ hHsCxzWRpClRRYoqqaz5x3ZNGYsgTkucKOhg8o7GTyW9zjQ9gJ3ncs/IL7cgi/SWqF 5f2aMTjqxPSYZwIPmLavhFQUrvBI4VUZea2Au1Lc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Evan Quan , Alex Deucher Subject: [PATCH 5.4 199/214] drm/amd/pm: increase mclk switch threshold to 200 us Date: Tue, 3 Nov 2020 21:37:27 +0100 Message-Id: <20201103203309.294852299@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Evan Quan commit 83da6eea3af669ee0b1f1bc05ffd6150af984994 upstream. To avoid underflow seen on Polaris10 with some 3440x1440 144Hz displays. As the threshold of 190 us cuts too close to minVBlankTime of 192 us. Signed-off-by: Evan Quan Acked-by: Alex Deucher Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c @@ -2864,7 +2864,7 @@ static int smu7_vblank_too_short(struct if (hwmgr->is_kicker) switch_limit_us = data->is_memory_gddr5 ? 450 : 150; else - switch_limit_us = data->is_memory_gddr5 ? 190 : 150; + switch_limit_us = data->is_memory_gddr5 ? 200 : 150; break; case CHIP_VEGAM: switch_limit_us = 30;