From patchwork Tue Dec 18 18:31:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 1893421 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 2F639DF2F6 for ; Tue, 18 Dec 2012 18:45:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D6CDFE5F01 for ; Tue, 18 Dec 2012 10:45:30 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from fmsmga102.fm.intel.com (mga10.intel.com [192.55.52.92]) by gabe.freedesktop.org (Postfix) with ESMTP id 19661E63B2 for ; Tue, 18 Dec 2012 10:35:16 -0800 (PST) Received: from mail-pa0-f71.google.com ([209.85.220.71]) by mga11.intel.com with ESMTP/TLS/RC4-SHA; 18 Dec 2012 10:35:15 -0800 Received: by mail-pa0-f71.google.com with SMTP id fb11so1058944pad.2 for ; Tue, 18 Dec 2012 10:35:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=yvF2Df/2hgr66r5XzzGP/98/V6s9Ws0Otgz2GVCJ4H8=; b=jQEOzPNMAPn4fe2L/pUUtYxou/bNJtvyOMhCuGDRlVyusPsJ+wOCOzLgQue4pc+Nos l/WHzDkdOEoRCQ8YDJKPo7eywFqeV8TeHr5dLK330O0pDvZ/5nSSi2zjvt4SfieISNCP KSJ7TaZWEwJQf2Dm9RYNPuYddRjGzeOj6fA1HwqfFqvKA5QzxNHZitqVxdH1H3VTifUF unCvHtdW5zpkhs1T3ciVPn/NKD9oSOotIpjR3SAGd8WJBjXD7A92zfv7Ftci7GAhokMP dj+yt6su51k1CTa+IQW4SYw1f2J76uERFGRwHSgAGnElCbpSJXCbGYVl7tSSoJRNWGT0 7QOA== X-Received: by 10.68.227.97 with SMTP id rz1mr9508818pbc.54.1355855715001; Tue, 18 Dec 2012 10:35:15 -0800 (PST) X-Received: by 10.68.227.97 with SMTP id rz1mr9508800pbc.54.1355855714898; Tue, 18 Dec 2012 10:35:14 -0800 (PST) Received: from norris.jf.intel.com ([192.55.55.41]) by mx.google.com with ESMTPS id ip8sm1552525pbc.36.2012.12.18.10.35.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Dec 2012 10:35:14 -0800 (PST) From: Ben Widawsky To: intel-gfx@lists.freedesktop.org Date: Tue, 18 Dec 2012 10:31:22 -0800 Message-Id: <1355855487-20424-1-git-send-email-ben@bwidawsk.net> X-Mailer: git-send-email 1.8.0.1 X-Gm-Message-State: ALoCoQnV1ROTIRZXQ1pVkQdXIS51+D/9kGXKVWPlwv/wd4KSDY0slLUHJXYZpflFmeiMU+fZTNkHkB5v2bQoyAu9sApE7Utsu5EQS8ZdsOWieH6uHILtlBSXixilqApnOdsxPOKSExktG4GX7uJJCdSB2/dT23oJ+VVkcPAiwWNaxHJewL1+lBU= X-Mailman-Approved-At: Tue, 18 Dec 2012 10:45:20 -0800 Cc: Ben Widawsky Subject: [Intel-gfx] [PATCH 1/6] drm/i915: BUG() if fences are used on unsupported platform 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: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Signed-off-by: Ben Widawsky Reviewed-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_gem.c | 2 +- drivers/gpu/drm/i915/i915_irq.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index e4b233d..bf3b0c7 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -2639,7 +2639,7 @@ static void i915_gem_write_fence(struct drm_device *dev, int reg, case 4: i965_write_fence_reg(dev, reg, obj); break; case 3: i915_write_fence_reg(dev, reg, obj); break; case 2: i830_write_fence_reg(dev, reg, obj); break; - default: break; + default: BUG(); } } diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 914ecf4..4ec8ff2 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -1106,6 +1106,8 @@ static void i915_gem_record_fences(struct drm_device *dev, error->fence[i] = I915_READ(FENCE_REG_830_0 + (i * 4)); break; + default: + BUG(); } }