From patchwork Mon Feb 18 11:57:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 2157331 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 13162DF25A for ; Mon, 18 Feb 2013 11:58:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DFE4AE5FBC for ; Mon, 18 Feb 2013 03:58:02 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 746EDE5FBC for ; Mon, 18 Feb 2013 03:57:54 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 18 Feb 2013 03:57:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,687,1355126400"; d="scan'208";a="288580782" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.168]) by fmsmga001.fm.intel.com with SMTP; 18 Feb 2013 03:57:52 -0800 Received: by stinkbox (sSMTP sendmail emulation); Mon, 18 Feb 2013 13:57:51 +0200 From: ville.syrjala@linux.intel.com To: intel-gfx@lists.freedesktop.org Date: Mon, 18 Feb 2013 13:57:51 +0200 Message-Id: <1361188671-11639-1-git-send-email-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915: Eliminate race from gen2/3 page flip interrupt handling 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: , 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: Ville Syrjälä If the interrupt handler were to process a previous vblank interrupt and the following flip pending interrupt at the same time, the page flip would be complete too soon. To eliminate this race check the live pending flip status from the ISR register before finishing the page flip. Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson