Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4389011yba; Wed, 17 Apr 2019 10:23:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqynnjU2XzkSxilmM3JiG/bEK9Fd1BOPdcf27i+t6V4mN5cB0DCkE0QDarjOMDMVy+L7hirm X-Received: by 2002:a65:62ce:: with SMTP id m14mr70257024pgv.191.1555521837422; Wed, 17 Apr 2019 10:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555521837; cv=none; d=google.com; s=arc-20160816; b=NSNuH9CkZZWOIaDhd/Xsh4gFC+YHN1pELdRtz2rw84O/nWzTexF+//mJ2pI5JMHkvB CNPKu2yqOZL2NUoE0qp56pu7DVazDeRLKLDkw5E5rbfwIVdHL+YKOLqMgd2gcYNL9lXs iyK5QEP5uyA5dxpckTowEnCWTg5fve9p9JJ7IsIslisemoesIQpkA4Nk0hc4fIsiLnw4 kgT6zk1WoYHcjv/22gUMzVzrb9kSiOiM13cRTL7xIgCkHyfaQ4Kr1NJOK+XnRlNFz55v BAabe27eS4sDBUC9XWc/LWWxYkDBmkRADuzgDbMMDyvVEvF4bfuGsU7RCXMmZKhATGQ9 Ik9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=g/evzVtNK2ERHdaKrWpjG9fVlTvQASBVoG92JpnfPQY=; b=kRWJmNckMEeTlTdBfsQcC2e6bl78NyKg+LQU5mEnEU+GhLu9+P+n0gH6YCoMV21s6N dFgqt9oVxXtbxVGSs7UZRLl65NohAxKfQ98Rv+tu7KIE4utKyQq4uG2Kf1lA9XGjnhul lDKpFbUVeMg9QaQHabC+pePhrQ879gwbi/g1FaytvlK9nnd+GyAvQADW1dwxxjhtXC2k LpFX/5JheSxYmYSVgbhBGovju/fZOYv7Ss1cLJqHL9d7LB8XlXA7ItBKt1aOqSsIiVAj 1swEESx/ImXPUOR+Y/Zki691Vm9nNR1y6s3dGEMjrwmQfapGCMD261rkgq8ACLcmjot6 DFkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si47447142pga.498.2019.04.17.10.23.42; Wed, 17 Apr 2019 10:23:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733062AbfDQRVY (ORCPT + 99 others); Wed, 17 Apr 2019 13:21:24 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:35789 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732746AbfDQRVX (ORCPT ); Wed, 17 Apr 2019 13:21:23 -0400 Received: from collins (196.109.29.93.rev.sfr.net [93.29.109.196]) (Authenticated sender: paul.kocialkowski@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 1D15A20000D; Wed, 17 Apr 2019 17:21:19 +0000 (UTC) Message-ID: <943166ee9799daf50615b1148f3f855aa90e9c84.camel@bootlin.com> Subject: Re: [PATCH v4] media: docs-rst: Document m2m stateless video decoder interface From: Paul Kocialkowski To: Nicolas Dufresne , Alexandre Courbot , Tomasz Figa , Maxime Ripard , Hans Verkuil , Dafna Hirschfeld , Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org Date: Wed, 17 Apr 2019 19:21:19 +0200 In-Reply-To: References: <20190306080019.159676-1-acourbot@chromium.org> <371df0e4ec9e38d83d11171cbd98f19954cbf787.camel@ndufresne.ca> <439b7f57aa3ba2b2ed5b043f961ef87cb83912af.camel@ndufresne.ca> <59e23c5ca5bfbadf9441ea06da2e9b9b5898c6d7.camel@bootlin.com> <0b495143bb260cf9f8927ee541e7f001842ac5c3.camel@ndufresne.ca> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le mercredi 17 avril 2019 à 12:17 -0400, Nicolas Dufresne a écrit : > In general, we say stateless from a HW point of view. It simply means > that the HW (the accelerator) can be multiplexed to process several > independent streams. While with stateful firmware, you generally can't > save the state, and ends up with a specific number of concurrent stream > (scheduling happens in the firmware). There is exception to that of > course, the newest Amlogic/Meson video decoder allow for saving the > decoder state. The registers are undocumented, since they are filled by > the HW parser, but it's separated in a way that we could multiplex. That's a nice summary! I think it constitutes a good definition of what we should call a stateless decoder. Perhaps we could write it down in the spec somewhere? > Of course we do have a state in our drivers. Each time you open an m2m > device, you create an new instance which will keep track of done jobs, > pending jobs, active format, allocated memory, etc. Yes, definitely. Cheers, Paul