From patchwork Wed Jan 9 04:08:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 1950531 Return-Path: X-Original-To: patchwork-dri-devel@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 7EC5DDF2EB for ; Wed, 9 Jan 2013 04:58:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D0375E6550 for ; Tue, 8 Jan 2013 20:58:49 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by gabe.freedesktop.org (Postfix) with ESMTP id E52A6E5EAE for ; Tue, 8 Jan 2013 20:09:07 -0800 (PST) Received: by mail-pb0-f44.google.com with SMTP id uo1so674760pbc.3 for ; Tue, 08 Jan 2013 20:09:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=zRoG/6cKSWy2tNy7muJHhDE9W9tt6rFu8eaM5U7C1nY=; b=LsdgxIwaVvWhcqQ0Kyp2mYGCGX5AGbrkdb3Ro53ytiaeU/OOHAL+AJV2LNC3IY0QUx 1leWJ/0gwDgHjkZdNiWP2mWxnHgn6nW1Les9jwrC2WBrdv9QikHXo84zosMXuAt5lzks MbJxzqL0SDtF/Ostr0t4LHRfPQ6pDBU3BmW/ULsMrHmqv3zeZu4UehsLInyJ39L1zqi1 ncGEt6AyxGG9aXHdZ105b9mII4qfLnLs/ZfmAlVcTi1gLgQmrUT1c9bGPAuwqMfRgvYV rqZelScDaIMfV11Tqzsdioj6oozYO0Rw29KAwpznFGZbROu2QLJqnHVSMwZmZ8JpcKwa Ujxg== X-Received: by 10.68.243.69 with SMTP id ww5mr205228422pbc.45.1357704547422; Tue, 08 Jan 2013 20:09:07 -0800 (PST) Received: from localhost (pool-74-100-87-234.lsanca.fios.verizon.net. [74.100.87.234]) by mx.google.com with ESMTPS id v2sm41964744paz.36.2013.01.08.20.09.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Jan 2013 20:09:06 -0800 (PST) From: Rob Clark To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/4] drm: small fix in drm_send_vblank_event() Date: Tue, 8 Jan 2013 22:08:43 -0600 Message-Id: <1357704526-3447-2-git-send-email-robdclark@gmail.com> X-Mailer: git-send-email 1.8.0.2 In-Reply-To: <1357704526-3447-1-git-send-email-robdclark@gmail.com> References: <1357704526-3447-1-git-send-email-robdclark@gmail.com> Cc: patches@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org 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 Reviewed-by: Alex Deucher --- 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);