From patchwork Fri Jan 9 03:59:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 5596741 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B6992C058E for ; Fri, 9 Jan 2015 03:59:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 08A6D2053A for ; Fri, 9 Jan 2015 03:59:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2587D204EB for ; Fri, 9 Jan 2015 03:59:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 767E76E822; Thu, 8 Jan 2015 19:59:19 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id BC9E86E81C for ; Thu, 8 Jan 2015 19:59:17 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 08 Jan 2015 19:59:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,727,1413270000"; d="scan'208";a="659102286" Received: from hasawyer-mobl.amr.corp.intel.com (HELO ironside.intel.com) ([10.252.133.54]) by fmsmga002.fm.intel.com with ESMTP; 08 Jan 2015 19:59:17 -0800 From: Ben Widawsky To: Intel GFX Date: Thu, 8 Jan 2015 19:59:13 -0800 Message-Id: <1420775953-1100-4-git-send-email-benjamin.widawsky@intel.com> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1420775953-1100-1-git-send-email-benjamin.widawsky@intel.com> References: <1420775953-1100-1-git-send-email-benjamin.widawsky@intel.com> Cc: Ben Widawsky , Ben Widawsky Subject: [Intel-gfx] [PATCH 4/4] drm/i915: Add a fallback for unimplemented gen9 w/a 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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 We know certain future platforms need things. Don't let them go unnoticed as they did for SKL by adding an error message and falling back to the possibly more conservative SKL values. Signed-off-by: Ben Widawsky Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com) --- drivers/gpu/drm/i915/intel_ringbuffer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index e14748d..557204b 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c @@ -873,6 +873,10 @@ int init_workarounds_ring(struct intel_engine_cs *ring) if (IS_SKYLAKE(dev)) return skl_init_workarounds(ring); + else if (INTEL_INFO(dev)->gen == 9) { + DRM_ERROR("Possibly missing workarounds\n"); + return skl_init_workarounds(ring); + } return 0; }