Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754479AbbKXQv6 (ORCPT ); Tue, 24 Nov 2015 11:51:58 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36624 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754068AbbKXQv5 (ORCPT ); Tue, 24 Nov 2015 11:51:57 -0500 Subject: Re: [PATCH] staging/android: add TODO to de-stage android sync framework To: Gustavo Padovan , greg@kroah.com References: <1448307713-16766-1-git-send-email-gustavo@padovan.org> Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, daniels@collabora.com, Gustavo Padovan , =?UTF-8?Q?Arve_Hj=c3=b8nnev=c3=a5g?= , Riley Andrews , Daniel Vetter , Rob Clark , John Harrison From: Greg Hackmann Message-ID: <565495AC.9050008@google.com> Date: Tue, 24 Nov 2015 08:51:56 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1448307713-16766-1-git-send-email-gustavo@padovan.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1018 Lines: 23 On 11/23/15 11:41 AM, Gustavo Padovan wrote: > + - remove sw_sync, it is used only for testing/debugging and should not be > +upstreamed. > + - port sw_sync testcases to use debugfs somehow A quick but important nitpick: sw_sync itself is just an in-kernel helper for creating fences, when you don't have something like sync timeline primitives baked into your hardware. CONFIG_SW_SYNC_USER adds the interface for creating and signaling sw_sync objects from userspace. This is the part that's dangerous and only intended for testing, etc. AFAIK CONFIG_SW_SYNC_USER is the only part people have been objecting to. I'm fine with removing it. Removing the kernel-facing side of sw_sync would be a problem for us, since many drivers use it to create their fences. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/