From patchwork Thu Jun 5 00:09:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 4299231 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 0EF3CBEEA7 for ; Thu, 5 Jun 2014 00:11:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 43DA520171 for ; Thu, 5 Jun 2014 00:11:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6CB2120165 for ; Thu, 5 Jun 2014 00:11:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F1A006E888; Wed, 4 Jun 2014 17:11:31 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by gabe.freedesktop.org (Postfix) with ESMTP id C7BEA6E888 for ; Wed, 4 Jun 2014 17:11:30 -0700 (PDT) Received: by mail-pd0-f179.google.com with SMTP id fp1so232542pdb.10 for ; Wed, 04 Jun 2014 17:11:30 -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=UYJy0hDaQ+jSuKvYG/k0tu1K/dxJmT8faIVTEifOIoM=; b=Qgm5feEI4Ugu7K1n2QWsP8I0C04lncWRsrCqpIwXle35UvLfVOEyhFqp/gqldhqNSv +O8mffjCdr/tdMSYKTe5e1cR9a4Gd1FLyv909PCEdC9RxO0Q4563BruuE6oUoqjjkWQO y8xm8gb9pooOPRjXjf3Dht49MoxuNoaYGU0yvTJb4YVzka/noGE5LCQdU4X4jurzCLBs 8dJK5E0KNoBaBUxOKvo+hCL9qhKja3CXKLDfSqUSMc+7SFJby5jrAmF1cpRbn4F5Dclg edgErX2TRkHRUYJ9xmxMSKo/IKw5ufqOlC11/GrNMo8APP25mlosm/x6Xxxt8Dtu4lgu WEOA== X-Received: by 10.68.166.36 with SMTP id zd4mr70005212pbb.54.1401927090508; Wed, 04 Jun 2014 17:11:30 -0700 (PDT) Received: from localhost (jfdmzpr04-ext.jf.intel.com. [134.134.137.73]) by mx.google.com with ESMTPSA id nh8sm15209303pbc.25.2014.06.04.17.11.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jun 2014 17:11:29 -0700 (PDT) From: Rodrigo Vivi To: intel-gfx@lists.freedesktop.org Date: Wed, 4 Jun 2014 17:09:30 -0700 Message-Id: <1401926970-1900-1-git-send-email-rodrigo.vivi@gmail.com> X-Mailer: git-send-email 1.9.3 Subject: [Intel-gfx] [PATCH] drm/i915: BDW: Adding missing cursor offsets. 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.7 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=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 BDW uses IVB cursor offsets. Whithout this patch it is not possible to use multiple outputs with cursor on BDW. The cursor gets completely crazy because update position uses the wrong cursor register for the second pipe. Signed-off-by: Rodrigo Vivi Reviewed-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index f9cd5ff..615b62f 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -315,6 +315,7 @@ static const struct intel_device_info intel_broadwell_m_info = { .has_ddi = 1, .has_fbc = 1, GEN_DEFAULT_PIPEOFFSETS, + IVB_CURSOR_OFFSETS, }; static const struct intel_device_info intel_broadwell_gt3d_info = { @@ -325,6 +326,7 @@ static const struct intel_device_info intel_broadwell_gt3d_info = { .has_ddi = 1, .has_fbc = 1, GEN_DEFAULT_PIPEOFFSETS, + IVB_CURSOR_OFFSETS, }; static const struct intel_device_info intel_broadwell_gt3m_info = {