From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752737AbaGLOGP (ORCPT ); Sat, 12 Jul 2014 10:06:15 -0400 Received: from top.free-electrons.com ([176.31.233.9]:40176 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751285AbaGLOGM (ORCPT ); Sat, 12 Jul 2014 10:06:12 -0400 From: Boris BREZILLON To: Rob Clark Cc: David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Boris BREZILLON Subject: [PATCH v3 0/2] drm: rework flip-work framework Date: Sat, 12 Jul 2014 16:06:06 +0200 Message-Id: <1405173968-23869-1-git-send-email-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 1.8.3.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This patch series reworks the flip-work framework to make it safe when calling drm_flip_work_queue from atomic contexts. The 2nd patch of this series is optional, as it only reworks drm_flip_work_init prototype to remove unneeded size argument and return code (this function cannot fail anymore). Best Regards, Boris Changes since v2: - add missing spin_lock_init - fix flip utils description Changes since v1: - add gfp flags argument to drm_flip_work_allocate_task function - make drm_flip_work_queue safe when called from atomic context Boris BREZILLON (2): drm: rework flip-work helpers to avoid calling func when the FIFO is full drm: flip-work: change drm_flip_work_init prototype drivers/gpu/drm/drm_flip_work.c | 105 ++++++++++++++++++++++--------- drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c | 19 ++---- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 16 +---- drivers/gpu/drm/omapdrm/omap_plane.c | 14 +---- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 6 +- include/drm/drm_flip_work.h | 33 +++++++--- 6 files changed, 108 insertions(+), 85 deletions(-) -- 1.8.3.2