Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2472636imj; Mon, 18 Feb 2019 06:37:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IYpwAXfrxusxP4OmiTPbbB2wpdmqDfCdVcZcBTEYhrEIKyxdmkiR6PagvZC2G9BeiBrKejA X-Received: by 2002:a17:902:bd43:: with SMTP id b3mr12940803plx.186.1550500645711; Mon, 18 Feb 2019 06:37:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550500645; cv=none; d=google.com; s=arc-20160816; b=R7lFDZpx7pTJ1D5AAFeeCgCOCvycFbyk6s5Q8pecMgfIQSfUmfjoPLUgRLWwCOuVYr p+9Xsr+TzG9kBkSvZzrelun+3cIWS/8ciomBoY9yN1Xq8jaWFRxUVMa+aykddZmVcasW EEAFN8StH5/vF4ZHfbi0zoatjr5Kav0dLp9kRWNXKWo98B9wjvTGi1EZIGWxx08QJVl3 vUePBQvlxvKQyHWR/yLQ5Z7grLw005OziiKzKAeDej3q6mKdLf+O28LIn8xb0JtKQwwo fVUtQQKJq1T7wEm58kq7xzHDpbolztOaYvMOERgWLUvdIwzpximsT0/S5a0xswQlRTog oE3A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uf+GpfXH1tWDCFEe2zAJdMXka/u3cyXLA656e+j7N3Q=; b=lbSj9I7DBkqo0VFx1xBqMqhy1gfSOevOHaRIfoBN+VrBTkfGMwfyrPkB7KPDD1urk2 unXbsZjnH7fV156ee8IfjCtc5c0bDfORSr6k3/CM/hUHHx3WWEBcf52WfU64ziP108Lp IKP1rSgXx8YaTXJ75zqZZRNkWanp8BjNlJtz20kEOCz7qTMAA9Pc6tVU/0pqtidrP0U0 WzdzzK9gtjqItFHI5lFh527PjHCdwNAAzhJDgjteGBvstLR9iwHoA7jRBffw9WL4+ozy mfZPHsvw5uZKRoC+5auQBzIh5DKaS2iBePaaEMglOXjMicVUe6f3de7qvzE6ACwA1Y6H H9uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nRs9uJO3; 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 a4si8438490plm.271.2019.02.18.06.37.09; Mon, 18 Feb 2019 06:37:25 -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=nRs9uJO3; 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 S1733024AbfBRNzq (ORCPT + 99 others); Mon, 18 Feb 2019 08:55:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:35794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387587AbfBRNzm (ORCPT ); Mon, 18 Feb 2019 08:55:42 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 8FE9821900; Mon, 18 Feb 2019 13:55:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498142; bh=zHEuF4UFVMwql6tn85kg5q2dk2edSpZww5rG+X7Duts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nRs9uJO3F1KgVA5gCRHW5qvhhjpg9K2eUpsCbxVrTXHhTMy8ZNMjYRIeUBk0Bw1e9 548pNG1UQBpFvy1tU3oZX739gTsZ3nGO2+rdRqcRIaKK98CGjt0NmBdhOyCDJKJzl0 DSdkv5aofCtetqDBnZsOka+yHUpo9sfWQGUIlyeQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Blume , Takashi Iwai , Martin Peres , Ben Skeggs , Sasha Levin Subject: [PATCH 4.14 37/62] drm/nouveau: Dont disable polling in fallback mode Date: Mon, 18 Feb 2019 14:43:43 +0100 Message-Id: <20190218133509.097587380@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133505.801423074@linuxfoundation.org> References: <20190218133505.801423074@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 118780066e30c34de3d9349710b51780bfa0ba83 ] When a fan is controlled via linear fallback without cstate, we shouldn't stop polling. Otherwise it won't be adjusted again and keeps running at an initial crazy pace. Fixes: 800efb4c2857 ("drm/nouveau/drm/therm/fan: add a fallback if no fan control is specified in the vbios") Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1103356 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107447 Reported-by: Thomas Blume Signed-off-by: Takashi Iwai Reviewed-by: Martin Peres Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c index 952a7cb0a59a..692d4d96766a 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c @@ -131,11 +131,12 @@ nvkm_therm_update(struct nvkm_therm *therm, int mode) duty = nvkm_therm_update_linear(therm); break; case NVBIOS_THERM_FAN_OTHER: - if (therm->cstate) + if (therm->cstate) { duty = therm->cstate; - else + poll = false; + } else { duty = nvkm_therm_update_linear_fallback(therm); - poll = false; + } break; } immd = false; -- 2.19.1