From patchwork Wed Oct 3 13:27:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mika Kuoppala X-Patchwork-Id: 1541541 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 55EBBDFF71 for ; Wed, 3 Oct 2012 13:28:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E0D7A08B4 for ; Wed, 3 Oct 2012 06:28:02 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C16A9EEF9 for ; Wed, 3 Oct 2012 06:27:04 -0700 (PDT) Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga101.ch.intel.com with ESMTP; 03 Oct 2012 06:27:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,528,1344236400"; d="scan'208";a="151930796" Received: from rosetta.fi.intel.com (HELO rosetta) ([10.237.72.92]) by AZSMGA002.ch.intel.com with ESMTP; 03 Oct 2012 06:27:03 -0700 Received: by rosetta (Postfix, from userid 1000) id C76336416B0; Wed, 3 Oct 2012 16:27:02 +0300 (EEST) From: mika.kuoppala@intel.com To: intel-gfx@lists.freedesktop.org Date: Wed, 3 Oct 2012 16:27:01 +0300 Message-Id: <1349270822-29740-2-git-send-email-mika.kuoppala@intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1349270822-29740-1-git-send-email-mika.kuoppala@intel.com> References: <1349270822-29740-1-git-send-email-mika.kuoppala@intel.com> Cc: Mika Kuoppala Subject: [Intel-gfx] [PATCH 2/3] drm/i915: print kernel warning if vmi915_gem_fault returns with error 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 From: Mika Kuoppala Be more verbose when vmi915_gem_fault returns with VM_FAULT_SIGBUS Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/i915_gem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 18d9abb..7949e4f 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -1166,6 +1166,7 @@ out: case -ENOMEM: return VM_FAULT_OOM; default: + WARN_ON(ret); return VM_FAULT_SIGBUS; } }