Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8259427imu; Thu, 15 Nov 2018 08:52:02 -0800 (PST) X-Google-Smtp-Source: AJdET5ccsS5lkeFbmV/G/GdC+pGdVJAALtYmbRaMBvakHFCnoeGLlMTP8A2jfAqgeAmiSVc9fynw X-Received: by 2002:a63:6c4a:: with SMTP id h71-v6mr6497516pgc.326.1542300722556; Thu, 15 Nov 2018 08:52:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542300722; cv=none; d=google.com; s=arc-20160816; b=BfMFclHVBGr1nGnzIN9L5dsdCZcux4dQNJ9wqd/jaMFRjUnypfkoFolGM1fQhTDwkI bEFZ587OfVESo+GCMvDwHYidq2C1pRNRjqaBh4NesDaCH+etekRZRxmI8pbXVCNO7S6S oj+PTy9JvGtlHRQbG5Ppu9Y3doY0xtk8aBT2QxRCv+l8izQ5GLGEWW28j/9DrkJ6WpP9 hz6nGzTvx4j48wROb7W437ugvUVVDbQ755v48ggZ2a+1SeGXMUi+J6NO7W86cfJPm5fX AhNgkItJXWZK2ywDRlEQqM/eDar/tAov4oXii2EeOpTzdzPtZKffba2ST793LqKbZpcQ P4hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=Njrrwv7gYgnhlN1RZoEAZpK1DIdPZHu2/5Vc+mBvzqE=; b=JZbUt6jhTvSRodA4Te9HvaTlcqBB8tYggpQvkgbt3/msLdBp/j6IpZvjTNTHmi/wdO uZ5Lrkx9CeeB4N10Jvj8b9I6VAklHqZnR/f+M5+raDgDUmN2H7GzV8GxJws0gcuQ6apw bFr38jw3zPjUUdcskqPBv9qaoxReClfRuWpsoxQb2kQqE6jmZIw+OVIMRdoP89Z9ZflT n1KDKxhuW7lLz0M62MEER2xc6IiBKGeOzoI6jcHGGW+3MXnzZjfNSKP9s2xW0GREjWMR wbrbuk7050rl6DK475lMPCKXJZZhHlKYaUwWHC8G6RTSHMH7Db2y/H7Lx9uAwc2pWRyv t05Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=lPxX3qiO; 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 u1-v6si28522670plb.313.2018.11.15.08.51.46; Thu, 15 Nov 2018 08:52:02 -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=lPxX3qiO; 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 S2388687AbeKPC7p (ORCPT + 99 others); Thu, 15 Nov 2018 21:59:45 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:41183 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387839AbeKPC7p (ORCPT ); Thu, 15 Nov 2018 21:59:45 -0500 Received: by mail-qk1-f195.google.com with SMTP id 189so32812238qkj.8 for ; Thu, 15 Nov 2018 08:51:10 -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; bh=Njrrwv7gYgnhlN1RZoEAZpK1DIdPZHu2/5Vc+mBvzqE=; b=lPxX3qiOduI1d4mOBssy5bUHuuRDtx70Q0j+UvO1RTKtuwBZUEGNob3L6IlvyJqUHR XXDqbFWeFVZEwwT+42mKGrnlfa1yd1AQ95H8ohMvJa0H+B1l/dQbK99kU76PQyfj1etS PN2ZoW8lSsr8EWUX5z86AveEwCOlaWBBg9C8jOC8suOFNH6w62NK1yLUHd0neOSXAVvO NZbg+JmqT3yKXRmsJT0NVbzrNwIRSUSkhYXNW1JU4Kp+jr9jdj2oHO62fwYtn+qVruWS PnnWdp91W+Mive0dQR12O11BQuF7jKRaWpXIOVD3ChJJITPNX0MDcr8AEKU+SpKqpVu5 Og+g== 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; bh=Njrrwv7gYgnhlN1RZoEAZpK1DIdPZHu2/5Vc+mBvzqE=; b=Ipvm5EHm7tcBTbC4F11H0yYhoPb5ZRSz64ly/K/2aqP9ytMKyoA155RcmLcbhE1Gw5 ny21825vM+u/Ehj2xvCEmH8h1Qv9EFeJjQJihWSEVviJx6VT9irla3Ezj1dmbdm6YAUN ZnOI+AZOcencaIFRTazlTMWbkcorwOirrpEDqE75aI3Y+I2jCb5SurtFQKox34PV9brV vDonkK9FiBINL1lMDCdFtgNHAofyN3+UwPWZQwzSeyfnKJljXV2GdMhtZ5DpMZjCCMo0 yK2EoOZbPy+Ej9tkiq16iU2kuTVr0n/8I76xDFHqMNTWsz98+srKmG++Pc1W/Pf2vJSS Cvxw== X-Gm-Message-State: AGRZ1gJYB8HInFKFrua1KTiDQvw/h5MAVZh/5ihVyeHwokhXQIgKP+uD 8AFok55osKd94BRmNoVOFkzO4g== X-Received: by 2002:a37:3753:: with SMTP id e80mr6473720qka.207.1542300669969; Thu, 15 Nov 2018 08:51:09 -0800 (PST) Received: from tpx230-nicolas (modemcable154.55-37-24.static.videotron.ca. [24.37.55.154]) by smtp.gmail.com with ESMTPSA id g5sm4342220qkd.55.2018.11.15.08.51.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Nov 2018 08:51:09 -0800 (PST) Message-ID: Subject: Re: [PATCH] media: venus: fix reported size of 0-length buffers From: Nicolas Dufresne To: Alexandre Courbot Cc: Stanimir Varbanov , Mauro Carvalho Chehab , Linux Media Mailing List , linux-arm-msm@vger.kernel.org, LKML Date: Thu, 15 Nov 2018 11:51:08 -0500 In-Reply-To: <463ac42b795933a54daa8d2bbba3ff1ac2b733db.camel@ndufresne.ca> References: <20181113093048.236201-1-acourbot@chromium.org> <463ac42b795933a54daa8d2bbba3ff1ac2b733db.camel@ndufresne.ca> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-zHZ7Ei4DWZbZ/lADHTh8" User-Agent: Evolution 3.30.2 (3.30.2-2.fc29) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-zHZ7Ei4DWZbZ/lADHTh8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le jeudi 15 novembre 2018 =C3=A0 11:49 -0500, Nicolas Dufresne a =C3=A9crit= : > Sending buffers with payload size to 0 just for the sake of setting the > V4L2_BUF_FLAG_LAST was considered a waste. Specially that after that, > every polls should return EPIPE. So in the end, we decided the it > should just unblock the userspace and return EPIPE. errata, DQBUF returns EPIPE, not sure why I keep saying poll. sorry for that, Nicolas --=-zHZ7Ei4DWZbZ/lADHTh8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSScpfJiL+hb5vvd45xUwItrAaoHAUCW+2j/AAKCRBxUwItrAao HEN5AKDdT0awi1JnbZR4oAi4PaDyutHeegCfXblCg4heJ0HpNxGyNq+4pP2Tewk= =0c25 -----END PGP SIGNATURE----- --=-zHZ7Ei4DWZbZ/lADHTh8--