From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755089AbcGEVGs (ORCPT ); Tue, 5 Jul 2016 17:06:48 -0400 Received: from mail-qk0-f170.google.com ([209.85.220.170]:35609 "EHLO mail-qk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880AbcGEVGr (ORCPT ); Tue, 5 Jul 2016 17:06:47 -0400 Date: Tue, 5 Jul 2016 17:06:44 -0400 From: Tejun Heo To: Michel =?iso-8859-1?Q?D=E4nzer?= Cc: Bhaktipriya Shridhar , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/radeon: Remove deprecated create_singlethread_workqueue Message-ID: <20160705210644.GB25394@htj.duckdns.org> References: <20160702110350.GA3601@Karyakshetra> <20160702134614.GB17431@htj.duckdns.org> <9e69b1fd-eb93-1fee-15af-c905ee3a202f@daenzer.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9e69b1fd-eb93-1fee-15af-c905ee3a202f@daenzer.net> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Mon, Jul 04, 2016 at 12:58:32PM +0900, Michel Dänzer wrote: > On 02.07.2016 22:46, Tejun Heo wrote: > > On Sat, Jul 02, 2016 at 04:33:50PM +0530, Bhaktipriya Shridhar wrote: > >> alloc_workqueue replaces deprecated create_singlethread_workqueue(). > >> > >> A dedicated workqueue has been used since work items need to be flushed > >> as a group rather than individually. There seem to be two work items involved, the flip one and unpin one. Provided that there's no ordering requirement between the two, can't we just flush them individually? > >> Since the flip_queue workqueue is involved in page-flipping and is not > >> being used on a memory reclaim path, WQ_MEM_RECLAIM has not been set. > >> > >> Since there are only a fixed number of work items, explicit concurrency > >> limit is unnecessary here. > > > > What are the involved work items? > > drivers/gpu/drm/radeon/radeon_display.c:radeon_flip_work_func() > > > Is it safe to run them concurrently? > > Concurrently with what exactly? The flip and unpin work items. Thanks. -- tejun