From patchwork Fri Feb 7 18:09:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 3607121 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 76AB9BF418 for ; Fri, 7 Feb 2014 18:10:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C140420115 for ; Fri, 7 Feb 2014 18:10:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0AF4F20114 for ; Fri, 7 Feb 2014 18:10:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C9978FBC5A; Fri, 7 Feb 2014 10:10:49 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by gabe.freedesktop.org (Postfix) with ESMTP id 93A15FBC5C for ; Fri, 7 Feb 2014 10:10:47 -0800 (PST) Received: by mail-pb0-f46.google.com with SMTP id um1so3553472pbc.19 for ; Fri, 07 Feb 2014 10:10:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=W8PZ8BnzPByVBkCZMCinTZpZJ9mNGMoquhwmbbckPPA=; b=xd4NO4r863pRWPs+rBjhLny2X/zs/x8RvckGeCWMDjLtAPbalKIfrKleHgL9T0IxM5 7Y9GBYT7ktGE16w2oXJepr2mXFxeSEK6c5xtQMLUUA2O+tqAOg8dQeWsJe8D0434ziwg YJMmMR2wij52Ro65RX18PuNOOQQrf9x2FQR6daN9JVxVR9Yi69mKLqTI2ThE/gmrY7X7 gXvlof02W492QXz3Qz5jczGI3GTAbjtjYgdzwGgDEyeYz9wWhrczU/yQbOun0kWXNd/8 dEG/+DZDW3P1z7JCHoTnAV2WRd7+iU9FWcshzKAlJRpYcn7y+96Qtq3BmAAJs9XVzokJ XgrQ== X-Received: by 10.66.159.132 with SMTP id xc4mr9457869pab.27.1391796647518; Fri, 07 Feb 2014 10:10:47 -0800 (PST) Received: from localhost (jfdmzpr04-ext.jf.intel.com. [134.134.137.73]) by mx.google.com with ESMTPSA id sx8sm38917185pab.5.2014.02.07.10.10.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 07 Feb 2014 10:10:46 -0800 (PST) From: Rodrigo Vivi To: intel-gfx@lists.freedesktop.org Date: Fri, 7 Feb 2014 16:09:48 -0200 Message-Id: <1391796588-2015-2-git-send-email-rodrigo.vivi@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1391796588-2015-1-git-send-email-rodrigo.vivi@gmail.com> References: <1391796588-2015-1-git-send-email-rodrigo.vivi@gmail.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 2/2] drm/i915: PSR HSW: update after enabling sprite. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.6 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 On the current structure HSW doesn't support PSR with sprites enabled but sprites can be enabled after PSR was enabled what would cause user to miss screen updates. Cc: Ville Syrjälä Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_sprite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index 336ae6c..3132686 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c @@ -318,6 +318,8 @@ ivb_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, I915_WRITE(SPRSURF(pipe), i915_gem_obj_ggtt_offset(obj) + sprsurf_offset); POSTING_READ(SPRSURF(pipe)); + + intel_edp_psr_update(dev); } static void