From patchwork Thu Apr 2 18:18:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Barnes X-Patchwork-Id: 6150891 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C81DD9F350 for ; Thu, 2 Apr 2015 18:19:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ECC242039D for ; Thu, 2 Apr 2015 18:19:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C3F1E2038A for ; Thu, 2 Apr 2015 18:19:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 336E86EB04; Thu, 2 Apr 2015 11:19:02 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from gproxy6-pub.mail.unifiedlayer.com (gproxy6-pub.mail.unifiedlayer.com [67.222.39.168]) by gabe.freedesktop.org (Postfix) with SMTP id A87576EB04 for ; Thu, 2 Apr 2015 11:19:01 -0700 (PDT) Received: (qmail 16026 invoked by uid 0); 2 Apr 2015 18:19:00 -0000 Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy6.mail.unifiedlayer.com with SMTP; 2 Apr 2015 18:19:00 -0000 Received: from box514.bluehost.com ([74.220.219.114]) by CMOut01 with id B6Ju1q00g2UhLwi016JxP1; Thu, 02 Apr 2015 12:18:58 -0600 X-Authority-Analysis: v=2.1 cv=PqsAMW83 c=1 sm=1 tr=0 a=9W6Fsu4pMcyimqnCr1W0/w==:117 a=9W6Fsu4pMcyimqnCr1W0/w==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=TBVoxVdAAAAA:8 a=GhZ5P8ky69gA:10 a=noBwr2J6l1kA:10 a=e9J7MTPGsLIA:10 a=e5mUnYsNAAAA:8 a=-_ac2fXDnwhoRZsJGkcA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuousgeek.org; s=default; h=Message-Id:Date:Subject:To:From; bh=EzdxqNKRS2EYii5DdWJX1H0qwvfOAMTLEQRPDegetCo=; b=TW7zqm6AP/4VDScjtUT2HRF1hWHQ0YxVAityDNIwzWK+iIAL4zkqQxl+VnbW/EP6VYVeQIlUQ2RxRj5SiKTTzY3xWKIZ789UfSjj1yDIUq0dtm1GXVMaUkxsnOwPcsqG; Received: from [67.161.37.189] (port=34780 helo=localhost.localdomain) by box514.bluehost.com with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.82) (envelope-from ) id 1Ydjhg-0002zG-Ax for intel-gfx@lists.freedesktop.org; Thu, 02 Apr 2015 12:18:56 -0600 From: Jesse Barnes To: intel-gfx@lists.freedesktop.org Date: Thu, 2 Apr 2015 11:18:49 -0700 Message-Id: <1427998729-30794-1-git-send-email-jbarnes@virtuousgeek.org> X-Mailer: git-send-email 1.9.1 X-Identified-User: {10642:box514.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 67.161.37.189 authed with jbarnes@virtuousgeek.org} Subject: [Intel-gfx] [PATCH] drm/i915: list self-refresh as enabled on newer platforms X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I guess this is a lie for 8xx, but newer stuff takes care of this for us. References: https://bugs.freedesktop.org/show_bug.cgi?id=89792 Signed-off-by: Jesse Barnes Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com) --- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 91c945b..a8f42a7 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -1686,6 +1686,8 @@ static int i915_sr_status(struct seq_file *m, void *unused) sr_enabled = I915_READ(INSTPM) & INSTPM_SELF_EN; else if (IS_PINEVIEW(dev)) sr_enabled = I915_READ(DSPFW3) & PINEVIEW_SELF_REFRESH_EN; + else + sr_enabled = true; /* other platforms don't need enabling */ intel_runtime_pm_put(dev_priv);