Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3577785imm; Mon, 6 Aug 2018 07:12:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdVE2Ux4ysxW3RGrTYB51xHGaw3V87WUIeQ/psDEe5ALUVfi1pko2zl9QM+nyr94hCMLDts X-Received: by 2002:a17:902:ba88:: with SMTP id k8-v6mr14131817pls.259.1533564736539; Mon, 06 Aug 2018 07:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533564736; cv=none; d=google.com; s=arc-20160816; b=sVabz/S5OiaoWg2u+u/AR8F4ftTGoUC+3uiZrJYWlER8tNkMjJVSxevXSXw1ao4Hwl xIiiVLnc73kKNdCP31Ax3G0uzeI4dHo/lnQaHaCJHtZxYGSSHJnXlThX2vglGxbRcJVT aeyJRm/6mQEAeDxMaJVe4iwOwuSWQjQr6bG290FSGZJsZVbSr4R5oWMJXlAbsYgBnzj+ wOiOIhBogJfNQtdYlskF8Tsqjk/i84Pb9g2A+FvIFdbgBfji1sKdOy1SNYtvro51ZqVn 6RgzzLpN/7RyAF8mHgywNUeMsHZdf7kMqbjzWU3J/LfhosUyU4aw+H8iYTmobxanXMmV jDVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=oFm3VfvlNpWxpRmwhR2MnOQ1f6VdRj1M60/+1qowZsQ=; b=L8JYT051uF7p8wzKF1ln3ldouH+s7XZudGM76MJtlc7o+WFOhk6YLwwz304g8AGWOe +tKOWrH6wsQRuheQioPX/vwfplUtWyV1r9AuHFzUieQ8FL3pP3rBz6tQ44EDUaszjA2V IGxQ0vQgG0wSxtb7g63O0i5smc8oIM/955DnDEFU5BsjzWjVlstmkba3MO2WgD+2E410 ylXnmgKxnxdQCxJN/VazbflZkPMjJOBYVWa75oiBr/4zx0dEKFAjajeBOaWxiERzuZ90 iMNI+ttMAYYXTqBAtydT7NBrUx0onazw0SK6dG7cUGBWF1UT6vbzz8uWRIcdNrLeNwf6 cBEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nN+OXmzY; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si10340620pla.103.2018.08.06.07.12.01; Mon, 06 Aug 2018 07:12:16 -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; dkim=pass header.i=@chromium.org header.s=google header.b=nN+OXmzY; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730571AbeHFQUO (ORCPT + 99 others); Mon, 6 Aug 2018 12:20:14 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:40273 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727112AbeHFQUO (ORCPT ); Mon, 6 Aug 2018 12:20:14 -0400 Received: by mail-yw1-f66.google.com with SMTP id z143-v6so3632265ywa.7 for ; Mon, 06 Aug 2018 07:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oFm3VfvlNpWxpRmwhR2MnOQ1f6VdRj1M60/+1qowZsQ=; b=nN+OXmzYwOwU2Mxg64SZhGKr5s/sLiw82BcYdgldtrvuyhcam5S5HfF5GKc4RgVOed zCBxcZj2Q58Ao5XAhm5+fXgkglRSGXWrvLY4yceIx68GVOaaMmvldAT16FGE1SL/n/cX lKtfnioHRR97odiBBK+A27lYz4IpOhV/tDumA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oFm3VfvlNpWxpRmwhR2MnOQ1f6VdRj1M60/+1qowZsQ=; b=QpoQCZdsZttNKEJt2F3B1c5Rz2U2qVWjnnsRr8LrDqaAfBV2IYgrq9xS2W6h6o7cL7 VrahfmIo+wWtxNUdKW3KEu50Xz5PbTqlueWo78rHLxe9pgNbh5Arqor9dk1CKE747DVM pAQcLnwc6dek7Ai4MfNbb/YiVSsq8Dopty/FF/b3yJWxIh1XmOHYhtmzd99nffz76FVo YPq8iHl/rN+FY12CNP+l784IoEqNy8mFF/KJkJu6wwrDNL/ya7vu2TrqQOYQcCraYxrp Lk6ZcTESNNNi0eOozRgMhSYz4jUkCNyA7BEoYVdIKWC2oFmQ9fOgvCPtBkL/IG2O0aiA ENiw== X-Gm-Message-State: AOUpUlHNbKsuzcXJXJa4vwRxHiVocfEv40K6/RD7YeIbuyDrvNKfFOSE apaZzV1aqoeYvYOii5yI/8egVVsJXtQ= X-Received: by 2002:a0d:f481:: with SMTP id d123-v6mr7899837ywf.27.1533564655809; Mon, 06 Aug 2018 07:10:55 -0700 (PDT) Received: from mail-yw1-f50.google.com (mail-yw1-f50.google.com. [209.85.161.50]) by smtp.gmail.com with ESMTPSA id 134-v6sm7293476ywq.66.2018.08.06.07.10.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Aug 2018 07:10:54 -0700 (PDT) Received: by mail-yw1-f50.google.com with SMTP id z143-v6so3632210ywa.7 for ; Mon, 06 Aug 2018 07:10:53 -0700 (PDT) X-Received: by 2002:a0d:e7c1:: with SMTP id q184-v6mr7627190ywe.435.1533564653465; Mon, 06 Aug 2018 07:10:53 -0700 (PDT) MIME-Version: 1.0 References: <20180725100256.22833-1-paul.kocialkowski@bootlin.com> <20180725100256.22833-5-paul.kocialkowski@bootlin.com> In-Reply-To: From: Tomasz Figa Date: Mon, 6 Aug 2018 23:10:40 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 4/8] media: platform: Add Cedrus VPU decoder driver To: Paul Kocialkowski , Maxime Ripard , Alexandre Courbot Cc: Hans Verkuil , Linux Media Mailing List , devicetree@vger.kernel.org, Linux Kernel Mailing List , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , devel@driverdev.osuosl.org, Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Chen-Yu Tsai , Greg KH , thomas.petazzoni@bootlin.com, linux-sunxi@googlegroups.com, Hugues FRUCHET , ayaka , Ezequiel Garcia , Philipp Zabel , Laurent Pinchart , Sakari Ailus Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, On Mon, Aug 6, 2018 at 10:50 PM Paul Kocialkowski wrote: > > Hi Hans and thanks for the review! > > On Sat, 2018-08-04 at 14:18 +0200, Hans Verkuil wrote: > > Hi Paul, > > > > See below for my review comments. Mostly small fry, the main issue I found is > > that there is no support for VIDIOC_DECODER_CMD. That's the proper way of > > stopping a decoder. Don't rely on the deprecated allow_zero_bytesused field. > > Mhh, it looks like this was kept around by negligence, but we do expect > that streamoff stops the decoder, not a zero bytesused field. > > Is it still required to implement the V4L2_DEC_CMD_STOP > VIDIOC_DECODER_CMD in that case? I read in the doc that this ioctl > should be optional. If I understand correctly that this decoder is stateless, there should be no need for any special flush sequence, since a 1:1 relation between OUTPUT and CAPTURE buffers is expected, which means that userspace can just stop queuing new OUTPUT buffers and keep dequeuing CAPTURE buffers until it matches all OUTPUT buffers queued before. By the way, I guess we will also need some documentation for the stateless codec interface. Do you or Maxime (who sent the H264 part) have any plans to work on it? We have some internal documents, which should be convertible to rst using pandoc, but we might need some help with updating to latest request API and further editing. Alexandre (moved from Cc to To) is going to be looking into this. Best regards, Tomasz