Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp126703imj; Thu, 14 Feb 2019 16:53:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IbrCDcMCMhGa3YqEdIv7t6+qSaMTu7bSCpWDsZoVUVTBnrCgbWXm09FdOjD0W5X4YTu9Fsv X-Received: by 2002:a63:4e1d:: with SMTP id c29mr2760956pgb.433.1550192021536; Thu, 14 Feb 2019 16:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550192021; cv=none; d=google.com; s=arc-20160816; b=SkppdGSFDda2Jit0qkfRJCCbD/zeZWPU6FJb55lwMPFH9ajSi5mZGq8anzhTQKH+pY tVQqreh654cYHR9EU+vkZAP/njPeufSThZRumKJJFjcuYM8WcamM9RsVQBc0tQpKYxRU crOGCNNKtFlvDh9ADxssY7nP51zWgqL7SlLIksX7d7bc4EdNQmnTV4Q5IpUa9jHV8L5E IOzhSDs2hHkNwQpJzyw57OIHtlEuOXgAe39BDRh+VefK/VjMPLYCiIacfOgzVhdd6vK2 XH1QFxxp1hIGj7H0AFLvJZyxMjfwXq86cVXvavn1mvM8xdcM6JwMZplvLBDcl4FZKQyz gJaQ== 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:dkim-signature; bh=AxuHCqH7c+QRUhY3Jid4ATKz6AXdTTJj/yE7k5txmuc=; b=RezT4H0UYgBFvXdHkzLryaB4sKJFGXaEwVvBXAcFMBLV76Mqgg7E/gFNdIIyPGJv0e jbxsReV3mC+Vg6xiwePIAiXqf8VI6UGNiE6Hou6g4ZNF9xm97PXd0z1PtfMf5g0CQCXD 7JmGtNVGWNRIgCQdbq7B5AE1V2iyVevfomAl+HWaV4KnOxQTt921mgvVEqlFT0Xbz8KK FoNpWRDq6K+F5B/SCtl2OTYEUzIaCgHhyb+Qlma7uNBk6qJdTSD/6p1Ildfgn9w12Wxy fcv+dDjTpH5BlZ4XnZ50ei2J1cA0+hLNkqAkzM4WbWoDTT0YLnTpfQsQ3IMyf7dO0YDu ICRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=KvphQnwz; 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 3si2609223plr.336.2019.02.14.16.53.25; Thu, 14 Feb 2019 16:53:41 -0800 (PST) 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; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=KvphQnwz; 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 S2395000AbfBNQTU (ORCPT + 99 others); Thu, 14 Feb 2019 11:19:20 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:34935 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730918AbfBNQTT (ORCPT ); Thu, 14 Feb 2019 11:19:19 -0500 Received: by mail-qk1-f196.google.com with SMTP id w204so3919976qka.2 for ; Thu, 14 Feb 2019 08:19:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=AxuHCqH7c+QRUhY3Jid4ATKz6AXdTTJj/yE7k5txmuc=; b=KvphQnwzQ6hxJrUOiBUpJSyK0dNjgTP5ITt7+sdjFElkm00lYkoWceeuKcdJjTpZZ6 1/96wcrGhRpkfWGESn8CfVoC9ZLMi6L4D5BanePYHCAKl7iMet2Dy9Gnq3aMsA0aM7t8 A6iq54ZISKz/i1xUERGRF3KHOhrNozVkFYIazH5vNRyb93vH6mmddKk/lNX/6ZMZXM9M JKeyuMjUu8JLDUnkvNkFE0IrnTFCaL6gxOc8nG3yyMCXZ8aCfvyih/swfZeSlr05MbDR LbLtv3/+MYHC4Mbhw6g1G//MzEqlEGGHVwXnjl8TgpznUO35E/Zsr5bGij7DqjBRwqYE /Ujw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=AxuHCqH7c+QRUhY3Jid4ATKz6AXdTTJj/yE7k5txmuc=; b=fgK+lEON+gGgEpfU2FLvTtRVVdKD8RM/iYN36C5kx2L6Zszaeo+Ncz4S7VjfjG2C9P XYMiYIsHivVpiMfttgQWDYBMQp0Xxm8B+JUPVleQpy86sphOCGGtm6gfJLLL+HXxJJ8Y muvUFgAuzJd8dZEbGJi6kdMUU4nm1AK8MYOk/nPQEY4WGaqvxbVnUyJ28WdeTzRl5ZLM Z9Scl/73kSCguJkzGW3lb4IOTywd7oKc40HcIpjdchxJuIedLRVQfs1YhWLp2ipSIWWH mOo1fTsmNPY5UcC64awBSYiYTR6wH7bobrLIJo/gdua/8YUi4hdMq/OfLSoCx8mkrkca XXAA== X-Gm-Message-State: AHQUAubdJFbHP81LRADlw9h5uON6cRn+51jAEqFUegh8AaVsjf1du/Ow MskSOYf+8QFNIlFczRkkAzkaug== X-Received: by 2002:a37:8105:: with SMTP id c5mr3465494qkd.116.1550161157696; Thu, 14 Feb 2019 08:19:17 -0800 (PST) Received: from skullcanyon ([192.222.193.21]) by smtp.gmail.com with ESMTPSA id y11sm2520187qky.2.2019.02.14.08.19.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 08:19:16 -0800 (PST) Message-ID: <69347bdc0065b395f44673fea19e2b798c90fbc3.camel@ndufresne.ca> Subject: Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API From: Nicolas Dufresne To: Tomasz Figa , Hans Verkuil Cc: Philipp Zabel , Stanimir Varbanov , Linux Media Mailing List , Mauro Carvalho Chehab , Linux Kernel Mailing List , linux-arm-msm , Vikash Garodia , Alexandre Courbot , Malathi Gottam Date: Thu, 14 Feb 2019 11:19:15 -0500 In-Reply-To: References: <20190117162008.25217-1-stanimir.varbanov@linaro.org> <20190117162008.25217-11-stanimir.varbanov@linaro.org> <28069a44-b188-6b89-2687-542fa762c00e@linaro.org> <57419418d377f32d0e6978f4e4171c0da7357cbb.camel@ndufresne.ca> <1548938556.4585.1.camel@pengutronix.de> <1f8485785a21c0b0e071a3a766ed2cbc727e47f6.camel@ndufresne.ca> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.4 (3.30.4-1.fc29) 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 Le jeudi 14 février 2019 à 11:43 +0900, Tomasz Figa a écrit : > > > > No, I exactly meant the OUTPUT queue. The behavior of s5p-mfc in case > > > > of the format not being detected yet is to waits for any pending > > > > bitstream buffers to be processed by the decoder before returning an > > > > error. > > > > > > > > See https://elixir.bootlin.com/linux/v5.0-rc5/source/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c#L329 > > > > > > It blocks?! That shouldn't happen. Totally against the spec. > > > > > > > Yeah and that's what this patch tries to implement in venus as well > > and is seemingly required for compatibility with gstreamer... > > > > Hans, Nicolas, any thoughts? Thinking about this, if CODA managed to make it work without this, and without the source change event, we should probably study more this code and propose to do this instead of blocking (which is the ugly but easy solution). I'm sure it was a bit of juggle to pass the information correctly from input to output, but that would bring "compatibility" with un-ported userspace. If we had a codec specific framework (making a wish here), we could handle that for the codec, a bit like the code that emulates CROP on top of G/S_SELECTION. Meanwhile, I'm trying to get some time allocated to implement the event in GStreamer, as this would be sufficient argument to say that newly introduce drivers don't need to care, you just need newer userspace. For Venus it's a bit difficult, since they have customers using GStreamer already, and it's quite common to run newer kernel with much older userspace (and expect the userspace to keep working). Nicolas