Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751273AbeAPCf6 (ORCPT + 1 other); Mon, 15 Jan 2018 21:35:58 -0500 Received: from mail-io0-f173.google.com ([209.85.223.173]:46557 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751090AbeAPCf4 (ORCPT ); Mon, 15 Jan 2018 21:35:56 -0500 X-Google-Smtp-Source: ACJfBovOn8eGCERh4HM1J0A0F8ktv/fn3QQM8UYpxtG+mms7/UafGcpiuZOIroJpdhwKbmzZ7IFhGg== MIME-Version: 1.0 In-Reply-To: <20180115120111.GA9598@jade> References: <20180110160732.7722-1-gustavo@padovan.org> <20180110160732.7722-2-gustavo@padovan.org> <20180115120111.GA9598@jade> From: Alexandre Courbot Date: Tue, 16 Jan 2018 11:35:33 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 1/6] [media] vb2: add is_unordered callback for drivers To: Gustavo Padovan Cc: Linux Media Mailing List , Hans Verkuil , Mauro Carvalho Chehab , Shuah Khan , Pawel Osciak , Sakari Ailus , Brian Starkey , Thierry Escande , linux-kernel@vger.kernel.org, Gustavo Padovan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 15, 2018 at 9:01 PM, Gustavo Padovan wrote: > 2018-01-15 Alexandre Courbot : > >> On Thu, Jan 11, 2018 at 1:07 AM, Gustavo Padovan wrote: >> > From: Gustavo Padovan >> > >> > Explicit synchronization benefits a lot from ordered queues, they fit >> > better in a pipeline with DRM for example so create a opt-in way for >> > drivers notify videobuf2 that the queue is unordered. >> > >> > Drivers don't need implement it if the queue is ordered. >> >> This is going to make user-space believe that *all* vb2 drivers use >> ordered queues by default, at least until non-ordered drivers catch up >> with this change. Wouldn't it be less dangerous to do the opposite >> (make queues non-ordered by default)? > > The rational behind this decision was because most formats/drivers are > ordered so only a small amount of drivers need to changed. I think this > was proposed by Hans on the Media Summit. As long as all concerned drivers are updated we should be on the safe side. At first I was surprised that we expose the ordering feature in a negative tense, but if the vast majority of devices are ordered this probably makes sense.