From patchwork Fri Dec 14 00:02:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 13564 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 21D6B23E2C for ; Fri, 14 Dec 2012 00:02:38 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id DFB6AA18A7F for ; Fri, 14 Dec 2012 00:02:37 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so5023980ieb.11 for ; Thu, 13 Dec 2012 16:02:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :dkim-signature:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=zRoG/6cKSWy2tNy7muJHhDE9W9tt6rFu8eaM5U7C1nY=; b=kf4iE/CuDEjeIx1CMXKZb4XdITBuFPDZnjZ8jSPDbNkoeOkjy0zMGn//vwZCX6rJRi JNyGmaBuLLZiBgg7tECHmp8MY40V6Q4rpxtNCPsfbxZILLdPonk9nmpV7pyOyGhOK1Ct eCCPfFlj3xyGQEZxnwOlFBl7KiqPQr+arztjhCk4zIsj2CO1ieEfa8l5YUtZB1L8kVRq iTqhS5m2/QgnEaMVGKhHyNAitvPbuH2TQdl2s9tzHS2I0TwrGQv54sulun+AWcEiZXv/ b+oDKZJKHeeddPGkHyxK0DrxFAuTqaz3d0pUIrKtYsDm9otNYjuUnTMlwWPlVTRqAGTw ufmg== Received: by 10.42.32.200 with SMTP id f8mr3115769icd.18.1355443357115; Thu, 13 Dec 2012 16:02:37 -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.50.67.148 with SMTP id n20csp42607igt; Thu, 13 Dec 2012 16:02:36 -0800 (PST) Received: by 10.182.38.65 with SMTP id e1mr3158008obk.3.1355443356653; Thu, 13 Dec 2012 16:02:36 -0800 (PST) Received: from mail-oa0-f43.google.com (mail-oa0-f43.google.com [209.85.219.43]) by mx.google.com with ESMTPS id ym2si3236019obb.87.2012.12.13.16.02.36 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 16:02:36 -0800 (PST) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.219.43 as permitted sender) client-ip=209.85.219.43; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.219.43 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass header.i=@gmail.com Received: by mail-oa0-f43.google.com with SMTP id k1so2965450oag.30 for ; Thu, 13 Dec 2012 16:02:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=zRoG/6cKSWy2tNy7muJHhDE9W9tt6rFu8eaM5U7C1nY=; b=tyTLpFN10bvzVKkQJkLtoFpKIq0/geucnf6wnBgR4xbm7tAiRSb+YBl/YRTxupE+4t cUbEHoZ94n+i9FY8PVIqT3MSJDh0O0oWOS0oLzTNDK5TmvRVAwMuA5NfgElKM84+hcWg RKKuggpFUSrJ8hPwRfcb0m3CCyVbTGG1KYl8iJf0cJhpMNd/wSqak+rex/uGf0yHxzbx bsCNmUz/2FrU0ZISCKZfhbPUhpj4Icv0P+RCxR6oiAArjBJ3hMjbaQKPLaX85hrPRDiy yMgicbW+4DGc44GG9hDhYogvfsoLVz1Oe963HZZ4IfTQ4+imzMYJECObffjPDsDEsXKf Ltxw== Received: by 10.182.218.37 with SMTP id pd5mr3175736obc.24.1355443356470; Thu, 13 Dec 2012 16:02:36 -0800 (PST) Received: from localhost (ppp-70-129-139-144.dsl.rcsntx.swbell.net. [70.129.139.144]) by mx.google.com with ESMTPS id q4sm2070468obz.3.2012.12.13.16.02.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 16:02:35 -0800 (PST) From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: patches@linaro.org, Rob Clark Subject: [PATCH] drm: small fix in drm_send_vblank_event() Date: Thu, 13 Dec 2012 18:02:31 -0600 Message-Id: <1355443351-8621-1-git-send-email-robdclark@gmail.com> X-Mailer: git-send-email 1.8.0.2 X-Gm-Message-State: ALoCoQl2gkfi4Tm6EtpmJKT8f+viEFwABySMFpaok0uYPUtcN1fTdkHo4oymzQSItmThE+lNxhrJ Initialize e->pipe.. some drivers set this themselves, others do not. Setting it in drm_send_vblank_event() should help ensure more consistent behavior with the different drivers. Signed-off-by: Rob Clark --- drivers/gpu/drm/drm_irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 19c01ca..9bb83a5 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c @@ -863,6 +863,7 @@ void drm_send_vblank_event(struct drm_device *dev, int crtc, now = get_drm_timestamp(); } + e->pipe = crtc; send_vblank_event(dev, e, seq, &now); } EXPORT_SYMBOL(drm_send_vblank_event);