Received: by 10.213.65.68 with SMTP id h4csp471032imn; Tue, 13 Mar 2018 10:04:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELs8cEtYcLcU7lPZg4coMlaDA2E1cEusSybpq8iUWP/Bh9rBS8HZkSTrKUucNHDDhnU4Sijb X-Received: by 10.98.35.195 with SMTP id q64mr1257344pfj.161.1520960693889; Tue, 13 Mar 2018 10:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520960693; cv=none; d=google.com; s=arc-20160816; b=i2XTHA1cA5yUZ0nD++Mor67vbj9eAdBAo20MDhsr5e5yheTDRLXICYSwWZENdBpgpQ BZ8KPaM3RfSv1L7O2q+xjuwn7FolzDJA/4vgZtEiLNb380H0lU60oLh6toODoHZ7+snS DfzGqZaa3qk4z4gxUHXvtrfge2pzAO/HyGnmNLmRjH4/8Jr0ZZaFnoPYWc4HUD/Ufvbz cnGze7Txyo0vu2HamkH9d/0JWFeA4UbTfWF8hiA8vRChamk5FN1tkvWPBM/dAgG+zKB/ 47wiC4hNIdiP9HvlsTsFKGqE+WqDIEnMugjPYemZ1ebvgXear55vJL+DTABkIpvRZlAn omUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vXxYE361ktjdCUpw0VzN/IOBzSXHwvpVBdXlR8fEhJA=; b=pXNAmrImAs8te8Lb/pN4j35P5dWEH7XEt2lgLUIam1bpfRLuVc5qms/y4squ6kpuuZ 40uraD41aGe89sRLzrmUPjGShMab7vX/Lg+Uq6AD4U1Hz2CfMyP0lFy4mDk7RWt9yfgF uAKdCkaJZfGzCw07pehJIjW9xW1JRp4v7sfmk/eIj2NZWk1x1ucUZIMpYEO39c8bQhIM pa2px4O2XwA7Of1ERWlidfe3EYq9Dzc4F30gnxFoix3EfpBEMNdNYl5OErCFc1g2Ius0 CXz8tYAlu/d1gF3GcERadwWF/1pjZBxxYxEDhOI0sEfum2+ivKQEi0g3AX2ZzqtYUSSV 5qdg== ARC-Authentication-Results: i=1; mx.google.com; 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 c193si346192pfc.356.2018.03.13.10.04.39; Tue, 13 Mar 2018 10:04:53 -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; 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 S932824AbeCMP2m (ORCPT + 99 others); Tue, 13 Mar 2018 11:28:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58102 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932793AbeCMP2j (ORCPT ); Tue, 13 Mar 2018 11:28:39 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EE366DFE; Tue, 13 Mar 2018 15:28:38 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alex Deucher Subject: [PATCH 4.15 028/146] Revert "drm/radeon/pm: autoswitch power state when in balanced mode" Date: Tue, 13 Mar 2018 16:23:15 +0100 Message-Id: <20180313152322.681532066@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Deucher commit 53bf277b487eb5ae6695db01bede0fe406792119 upstream. This reverts commit 1c331f75aa6ccbf64ebcc5a019183e617c9d818a. Breaks resume on some systems. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=100759 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/radeon/radeon_pm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c @@ -47,7 +47,6 @@ static bool radeon_pm_in_vbl(struct rade static bool radeon_pm_debug_check_in_vbl(struct radeon_device *rdev, bool finish); static void radeon_pm_update_profile(struct radeon_device *rdev); static void radeon_pm_set_clocks(struct radeon_device *rdev); -static void radeon_pm_compute_clocks_dpm(struct radeon_device *rdev); int radeon_pm_get_type_index(struct radeon_device *rdev, enum radeon_pm_state_type ps_type, @@ -80,8 +79,6 @@ void radeon_pm_acpi_event_handler(struct radeon_dpm_enable_bapm(rdev, rdev->pm.dpm.ac_power); } mutex_unlock(&rdev->pm.mutex); - /* allow new DPM state to be picked */ - radeon_pm_compute_clocks_dpm(rdev); } else if (rdev->pm.pm_method == PM_METHOD_PROFILE) { if (rdev->pm.profile == PM_PROFILE_AUTO) { mutex_lock(&rdev->pm.mutex); @@ -885,8 +882,7 @@ static struct radeon_ps *radeon_dpm_pick dpm_state = POWER_STATE_TYPE_INTERNAL_3DPERF; /* balanced states don't exist at the moment */ if (dpm_state == POWER_STATE_TYPE_BALANCED) - dpm_state = rdev->pm.dpm.ac_power ? - POWER_STATE_TYPE_PERFORMANCE : POWER_STATE_TYPE_BATTERY; + dpm_state = POWER_STATE_TYPE_PERFORMANCE; restart_search: /* Pick the best power state based on current conditions */