From patchwork Fri Mar 1 00:43:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 15177 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4245423E1A for ; Fri, 1 Mar 2013 00:44:15 +0000 (UTC) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by fiordland.canonical.com (Postfix) with ESMTP id 101C6A1935F for ; Fri, 1 Mar 2013 00:44:14 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id k1so1608777vck.38 for ; Thu, 28 Feb 2013 16:44:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=d4OmqVCF2I+kes+pgU4Bow9H1uJ3RMZv0lWn72Lg2Vo=; b=hylCRqs2yS3TBpOhoEz6NsN37oD2N/RnzVB7c282dGvCphPxODrfhJuI6qriivFfy8 8fG1aZG74sCrMhgUZNyfl8qlJ/CoGdeflQ3g0SDaSH6eB6dRutZVWOAvuWszqi8/azCU xChAD07qMIG2pIC2295RxhPA/8diCrtDfEqlsLuPW5d9/uXzbbX1A2zmT3ahIzXj5W3E PoCiYyYXA04z/nfqo+KFcLSYDKjrBIh8G1sppas9Yx2/MlVNS2OLLi6ln/Bbn37rCHET vv0uz/6g3T73TbJ7ZFleYaV7urNLFHeabxQBwFQoy9qGPyqMz+dWgT1Ma7dnYt7lgZiT RrFA== X-Received: by 10.52.88.237 with SMTP id bj13mr2902497vdb.75.1362098654598; Thu, 28 Feb 2013 16:44:14 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp665veb; Thu, 28 Feb 2013 16:44:14 -0800 (PST) X-Received: by 10.66.216.161 with SMTP id or1mr16029161pac.120.1362098653724; Thu, 28 Feb 2013 16:44:13 -0800 (PST) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by mx.google.com with ESMTPS id k6si4501400pay.51.2013.02.28.16.44.13 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Feb 2013 16:44:13 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.49 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.220.49; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.49 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) smtp.mail=john.stultz@linaro.org Received: by mail-pa0-f49.google.com with SMTP id kp6so1443671pab.22 for ; Thu, 28 Feb 2013 16:44:13 -0800 (PST) X-Received: by 10.66.234.65 with SMTP id uc1mr16081358pac.87.1362098653169; Thu, 28 Feb 2013 16:44:13 -0800 (PST) Received: from localhost.localdomain (c-24-21-54-107.hsd1.or.comcast.net. [24.21.54.107]) by mx.google.com with ESMTPS id dx17sm10914892pac.17.2013.02.28.16.44.11 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Feb 2013 16:44:12 -0800 (PST) From: John Stultz To: lkml Cc: Erik Gilling , Maarten Lankhorst , Daniel Vetter , Rob Clark , Sumit Semwal , Greg KH , dri-devel@lists.freedesktop.org, Android Kernel Team , John Stultz Subject: [PATCH 21/30] staging: sync: Dump sync state on fence errors Date: Thu, 28 Feb 2013 16:43:17 -0800 Message-Id: <1362098606-26469-22-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1362098606-26469-1-git-send-email-john.stultz@linaro.org> References: <1362098606-26469-1-git-send-email-john.stultz@linaro.org> X-Gm-Message-State: ALoCoQk5OovxwBKcIxzbut+NSeBCN2q+yrj7rwuLnAOyisWFOB3TX0j71mOQNGio4XxpvFsh4w3G From: Erik Gilling When we get a bad status, dump sync state Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-devel@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Added commit message] Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 92cdfe8..36ffa20 100644 --- a/drivers/staging/android/sync.c +++ b/drivers/staging/android/sync.c @@ -572,8 +572,11 @@ int sync_fence_wait(struct sync_fence *fence, long timeout) if (err < 0) return err; - if (fence->status < 0) + if (fence->status < 0) { + pr_info("fence error %d on [%p]\n", fence->status, fence); + sync_dump(); return fence->status; + } if (fence->status == 0) { pr_info("fence timeout on [%p] after %dms\n", fence,