Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2073388ybp; Thu, 10 Oct 2019 01:42:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjfMy+SUw9xAM0ZEGHeqNou3t3NY+AGurD2pVgmM6dVu7QfUZ2bGMmIODeY1xqazW4qfJS X-Received: by 2002:a17:906:6011:: with SMTP id o17mr6785761ejj.172.1570696928587; Thu, 10 Oct 2019 01:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570696928; cv=none; d=google.com; s=arc-20160816; b=uFaaOxO9tZ3nXvW1celIG6UE4r9t2L4CVo0Cx23YbRTCy22T9irOvPCM/UK1uMdFzN /j0/EkrBabVGJwx868RfxuVIck+QGjbQTGJHJ83GXmB03rXRLT7VFa+TypuK+ZiFgKmH VgCijLzy4BTm0+87yBMv0ZD8IQmZf/+hfGlGjzNJwbm8QP2f2UJqpVrpfojLjiN1GH17 Nz6EbPn+0RlNZxFChpwZIwLpZLEn1M8seiL6z85LG9kpDmozWxiXVxfKwGJGWJBrfaF+ J8iCU6aIPqXXvwqS6PrE1op958QXcrWxI3V0gb7wwR+I/nOMpnfjBummlusvsr+L7T6d dgYQ== 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=mw1DXUcrhR+J3B1Ceat8OdCv+/snAPgqWycNXzHll3A=; b=Xw2MQ1qX6sNa517jHZP5xyOZTd6L4Mj9P+y4SnuZ3GPfBb/5AWkxnguW84fqMyISCg YIGmh4uTJBtZSuBriChkuYYIULNYm52qiNCZkAmvnhLQCKInirpRQTWZyCACDdRnvQes VF7738UI2ZDyIs7gdDt+5Xw3R+eAR8sg5A8jB6L8mWMRMRufGVznuSApsefs7QTpFvzn dndM4wgss2e2jIyHTJv/WcohDSBl2Gccn7iKoGotiSsKCSbSzqG5xAEe3TQFQZ8qY4gc 3+V4E4jyyJSp88YNlth66dzC5khKJu3krmQ4lt4w86vwdIhNBpgOKmozq5rHGJNm1hmd jpcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ywK8vEgV; 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 i5si2873872edj.107.2019.10.10.01.41.45; Thu, 10 Oct 2019 01:42:08 -0700 (PDT) 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=ywK8vEgV; 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 S2388145AbfJJIki (ORCPT + 99 others); Thu, 10 Oct 2019 04:40:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:44706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388130AbfJJIkg (ORCPT ); Thu, 10 Oct 2019 04:40:36 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 27CF120B7C; Thu, 10 Oct 2019 08:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570696835; bh=oa2NT2zv5l9tMMIX6F4HpjCTpgWSGAsS/4FodnBtrSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ywK8vEgViQKSaMhBYGKQJ0rVSrsNzFqXsHxG0BOnoMnDpIGZ1eUiWH174W+DswwoL vRDsKYbuUernABN1sJkfdzZXnAuTub4zNfeLnswss9v97rKeovxF1eygAYtPj4+VsQ uZYizPHEACyd9tFxKQRgg887KvR+4rHcP4+tg4WE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kevin Wang , Kenneth Feng , Alex Deucher Subject: [PATCH 5.3 069/148] drm/amd/powerplay: change metrics update period from 1ms to 100ms Date: Thu, 10 Oct 2019 10:35:30 +0200 Message-Id: <20191010083615.605747762@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Kevin Wang commit e0e4a2ce7a059d051c66cd7c94314fef3cd91aea upstream. v2: change period from 10ms to 100ms (typo error) too high frequence to update mertrics table will cause smu firmware error,so change mertrics table update period from 1ms to 100ms (navi10, 12, 14) Signed-off-by: Kevin Wang Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org # 5.3.x Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c +++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c @@ -532,7 +532,7 @@ static int navi10_get_metrics_table(stru struct smu_table_context *smu_table= &smu->smu_table; int ret = 0; - if (!smu_table->metrics_time || time_after(jiffies, smu_table->metrics_time + HZ / 1000)) { + if (!smu_table->metrics_time || time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(100))) { ret = smu_update_table(smu, SMU_TABLE_SMU_METRICS, 0, (void *)smu_table->metrics_table, false); if (ret) {