Received: by 10.213.65.68 with SMTP id h4csp425638imn; Tue, 13 Mar 2018 08:40:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELsL8qa0HWM9jzm0XFKna6UYhgweKH3uzkuR3RtLK9/dW75vUnsT/pmQ+pCMrKvO9lKBwVdR X-Received: by 2002:a17:902:9:: with SMTP id 9-v6mr1023401pla.42.1520955636409; Tue, 13 Mar 2018 08:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520955636; cv=none; d=google.com; s=arc-20160816; b=YrcF2eBl+kQNM/kqVGIqlC3UVFiiU1jpCw7Q8Eky5z3hxR2VwpMXL6yjkcwmAy55tH PARZflZThWng87mclHb7gL64rKppK6utcpes6zApOMzV37N+v8bMuBWNzhWsV7DvGb8w pBVxxoIe9WCBOeG8nAswAx2MzmI+3SIAJvcqe0SOTOMGD4wdpU7HKLcnCT6ZkemdS+ts MPOn/+al6/lvfrAXzDz+ZUhORQuSiOARewA3tOciKKzQHmGmZxngUO2Vtn+qKy2Q0rni i0eh5Kd5aZpD6LhQAUsty8EXunBa0Y/DxbFiusUKHMij32sjuevCg4wsa1krQ4Y5cM65 C7vg== 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=LF/l4PAhO7HXPh1nKfVH1GH7kN7fH6aTzi1Ka/ut85I=; b=hIARuLzHzQZ9WtNglO7q7EgEGUeDah9P+doMCtaotmkRh7GScUuXKromR30RGJ7XY3 vwBij5tsOp9P14FeBc/74zxBWVFok8u5PP0CU/T1Maz28n+GyQbuTzNCJMichaYW/eFI ibIl66uABVVEVJwWmiETMnKnHZ1QvR/1kd/pRNwUCcKC/RXoHlEJFYo8Sl01bEq9lF+X i2Q2mKsy8Aaq5eIUWVWIokm81R24lVE4zJMVJIgjnw/HIJWTWEDiOaZjEcCOIVAK4f9K 4jmaMWmv4ZoodHe/F0TJ2v0jJWbOvLKKR0qjOmE3l6IL7wZU2jxhmaA9FfiyPp2E0pQ3 Gu6g== 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 t18si309729pfg.246.2018.03.13.08.40.22; Tue, 13 Mar 2018 08:40:36 -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 S934571AbeCMPia (ORCPT + 99 others); Tue, 13 Mar 2018 11:38:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34872 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933485AbeCMPi1 (ORCPT ); Tue, 13 Mar 2018 11:38:27 -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 3FE1AE06; Tue, 13 Mar 2018 15:38:26 +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.14 069/140] Revert "drm/radeon/pm: autoswitch power state when in balanced mode" Date: Tue, 13 Mar 2018 16:24:32 +0100 Message-Id: <20180313152502.848984957@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-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 */