Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp786424imd; Thu, 1 Nov 2018 05:41:58 -0700 (PDT) X-Google-Smtp-Source: AJdET5fZp3rLVzGzhSbffhGJhWzsu7E6wiXzGUkwPhXn1NnUg31aYjMBOZSsXtIkNqi9pH6UKMak X-Received: by 2002:a17:902:7d98:: with SMTP id a24-v6mr7509507plm.271.1541076118020; Thu, 01 Nov 2018 05:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541076117; cv=none; d=google.com; s=arc-20160816; b=qBlD9UDr0qnXubAcDJ4Lw5K3wyvxfvMZW8EYl8oGBokx7WwM95v+uDQTGB8Rnup0Kn HytR2BoS0qaPF5ZVJcDw+nwWtP2CoKnt+1hyfT6xK8Hu6TbrF1Y/+1DOOIVOG0Y6HcIg NfvhwtMTQAsfvOUuBvLYA9HKZuOHTtXcxBgbUvSQF8YQceEE60LaJ54ZFWvzTmp7D4bT nsFGzYUEfVStvtkFxtxdU+hPIY033RTGLcyfrwN/gYL204W3BfWc+tPJ+B+UNkmdYh46 vFeGcTBjPb0uiICedwCoOaRjXaUM12jSEuo7ATvnWSlMUlkoQA5G2ahgQQRT0oe1p+yQ bjPw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Q5lswyodOMjqPgoCH0kHtwsx/mpC876GHRYElJ66Q78=; b=ohWUwrVzs6xDOsGduos/riQZe1xBnw7SZ1Y3VMmGsqWphHkiBTbvDeVbFMRzM3oGHc CyFlJfR2GCQCY1w7/rNMK62kuepzwBcTNBgNGCBusZAU6A+QWMCzgogTKln/iUouWl4p AKsTmnxuO57s0UOhsLyl5udZctlaKDEv60vg+qqeTjlCOlodywLx2Nk/vjhAwQaChNlu +ZMa7cvFIqJTbg1FX9//ILMZ8z4qfgnZavKmJRs37pdTlJOyHSW2IMMYOtkGcv/SNJVW Jj+tiNoDmUA4w1oU0psa1z+8Ul6OqDzuqV4ckr/SrRh9dgleuejEsYmN4duZy8mm3qBB LJAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HYaHWFbn; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l186si17352624pge.205.2018.11.01.05.41.39; Thu, 01 Nov 2018 05:41: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; dkim=pass header.i=@linaro.org header.s=google header.b=HYaHWFbn; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728563AbeKAVk4 (ORCPT + 99 others); Thu, 1 Nov 2018 17:40:56 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:35506 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728514AbeKAVkz (ORCPT ); Thu, 1 Nov 2018 17:40:55 -0400 Received: by mail-wr1-f65.google.com with SMTP id z16-v6so2038809wrv.2 for ; Thu, 01 Nov 2018 05:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Q5lswyodOMjqPgoCH0kHtwsx/mpC876GHRYElJ66Q78=; b=HYaHWFbn+fStUCHTYUt0OOnrY3rLQo9dao4QXxtRxO4QnWnSsp2V52ywqiy61luXKp PcjWB1E/pyvxcezZSf06T3Hpm+t/lfE+LP1xPOFrNhCRDNv5TlM+wzjfNEYnBGgLs2FA IT/iA7HzPmEge0s00eEXc2xRXvWsMEcbygkvo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Q5lswyodOMjqPgoCH0kHtwsx/mpC876GHRYElJ66Q78=; b=GeYpW+2EMv5XynSl5AO6J4e1sLDKAYnP32SuNxH8NoGPV/BlsVv9oK5YEk/2D8Zu/h fr7TCXsLJmYlmRNB6ajixKFYT5xkN3rXqQikO4tft8LewIcnAiXksKugv5H5AGtL32Hm mU6hMxRFXnmSx+ZPYBg9Y7rEdgAYNrBZEuP9IUCoh/NEi137i2mtD3scA8ke867HcMdJ aNwLYR9NHq8zQDZbG8a/qPDplbZRx+uzaztlQLtNXHHmrToMRplNojujCmL2cI2sYSZm ZCFNmo4fvTQL89lgo5zHK4srtSVbkWdRlTv5YfGnU5EAa0buOKdqGEbbpuLJNHa7moI0 /tgw== X-Gm-Message-State: AGRZ1gJA1HW6380mC2rDgjFWFDXZvj94SQRSUGYQeZoG9U9c5d39cI8W vaxScBhDKcjyUg2Xy1dgKPobmg== X-Received: by 2002:adf:83a4:: with SMTP id 33-v6mr6288585wre.13.1541075886665; Thu, 01 Nov 2018 05:38:06 -0700 (PDT) Received: from [192.168.27.209] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id m2-v6sm25059617wrj.80.2018.11.01.05.38.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Nov 2018 05:38:05 -0700 (PDT) Subject: Re: [PATCH] media: venus: add support for USERPTR to queue To: Malathi Gottam , stanimir.varbanov@linaro.org, hverkuil@xs4all.nl, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, acourbot@chromium.org, vgarodia@codeaurora.org References: <1539071557-1500-1-git-send-email-mgottam@codeaurora.org> From: Stanimir Varbanov Message-ID: Date: Thu, 1 Nov 2018 14:38:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1539071557-1500-1-git-send-email-mgottam@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Malathi, Thanks for the patch! On 10/9/18 10:52 AM, Malathi Gottam wrote: > Add USERPTR to queue access methods by adding this > support to io_modes on both the planes. > > Signed-off-by: Malathi Gottam > --- > drivers/media/platform/qcom/venus/venc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c > index 754c19a..b86994c 100644 > --- a/drivers/media/platform/qcom/venus/venc.c > +++ b/drivers/media/platform/qcom/venus/venc.c > @@ -1096,7 +1096,7 @@ static int m2m_queue_init(void *priv, struct vb2_queue *src_vq, > int ret; > > src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; > - src_vq->io_modes = VB2_MMAP | VB2_DMABUF; > + src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; > src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; > src_vq->ops = &venc_vb2_ops; > src_vq->mem_ops = &vb2_dma_sg_memops; > @@ -1112,7 +1112,7 @@ static int m2m_queue_init(void *priv, struct vb2_queue *src_vq, > return ret; > > dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; > - dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; > + dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; > dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; > dst_vq->ops = &venc_vb2_ops; > dst_vq->mem_ops = &vb2_dma_sg_memops; > Acked-by: Stanimir Varbanov -- regards, Stan