From patchwork Fri Aug 8 20:45:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 4698211 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3A426C033A for ; Fri, 8 Aug 2014 20:45:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7B05E20108 for ; Fri, 8 Aug 2014 20:45:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BB8AE200D5 for ; Fri, 8 Aug 2014 20:45:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D72B46E2BC; Fri, 8 Aug 2014 13:45:45 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-yh0-f52.google.com (mail-yh0-f52.google.com [209.85.213.52]) by gabe.freedesktop.org (Postfix) with ESMTP id A2AC16E2BC for ; Fri, 8 Aug 2014 13:45:44 -0700 (PDT) Received: by mail-yh0-f52.google.com with SMTP id t59so4503838yho.39 for ; Fri, 08 Aug 2014 13:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=I0BKb21o728wXwmVvk0Dp3XxkAv5nsXXmb7IeNfuEFA=; b=yvCLGN/TH8tjk+KGTpbamOUj8MC7lVqDi+O46Uc0sj6go4IgCTMzkCe3NbLwCpN8lU 4WiLgTy6/2CZpuU5/APnWsRMg8W8sJaCYnU6JuUCg6NU6hb0u0QyU5r+ZJC3Ed1sxnv7 z1DJ4RnZv2QXDTXRf0n+cXjW4qslOwfglyShlAnbXaAjy9dJZRp8Svjxqw9C5hkmJtH2 aJ0vU09vU3IXsAOGw4UP4M3Nw246WhcYGmLlE6WoTOYwLAamUak72ezrknY5fUBFQVTp FCvuGZlX4OFKN3cnd5Y8njuZmLnOfBK5tuMHtc8gmgcwx4zOqgsX/cKZEXVK4hC8rSrn zTCQ== X-Received: by 10.236.151.35 with SMTP id a23mr18637473yhk.110.1407530744076; Fri, 08 Aug 2014 13:45:44 -0700 (PDT) Received: from localhost.localdomain ([177.156.105.36]) by mx.google.com with ESMTPSA id 45sm7669451yhj.32.2014.08.08.13.45.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Aug 2014 13:45:43 -0700 (PDT) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Fri, 8 Aug 2014 17:45:32 -0300 Message-Id: <1407530732-1651-1-git-send-email-przanoni@gmail.com> X-Mailer: git-send-email 2.0.1 Cc: Paulo Zanoni , rodrigo.vivi@intel.com Subject: [Intel-gfx] [PATCH] drm/i915: fix i915_interrupt_info on BDW X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Paulo Zanoni Currently, if the machine is runtime suspended an you read the file, you will get an "Unclaimed register" error message. Testcase: igt/pm_rpm/debugfs-read Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_debugfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 0748960..c3bf3d5 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -703,6 +703,12 @@ static int i915_interrupt_info(struct seq_file *m, void *data) } for_each_pipe(pipe) { + if (!intel_display_power_enabled(dev_priv, + POWER_DOMAIN_PIPE(pipe))) { + seq_printf(m, "Pipe %c power disabled\n", + pipe_name(pipe)); + continue; + } seq_printf(m, "Pipe %c IMR:\t%08x\n", pipe_name(pipe), I915_READ(GEN8_DE_PIPE_IMR(pipe)));