mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stanimir Varbanov <stanimir.varbanov@linaro.org>
To: Hans Verkuil <hverkuil@xs4all.nl>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Pawel Osciak <pawel@osciak.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH 1/7 v2] media: vb2: add bidirectional flag in vb2_queue
Date: Mon, 21 Aug 2017 14:37:27 +0300	[thread overview]
Message-ID: <7122444e-a3e5-2fde-f608-a6b2f87eac29@linaro.org> (raw)
In-Reply-To: <d68ce072-81ae-bc40-b86c-19f8721505c3@xs4all.nl>

Hi,

On 08/21/2017 01:21 PM, Hans Verkuil wrote:
> On 08/21/2017 11:29 AM, Marek Szyprowski wrote:
>> Hi Stanimir,
>>
>> On 2017-08-21 11:09, Stanimir Varbanov wrote:
>>> This change is intended to give to the v4l2 drivers a choice to
>>> change the default behavior of the v4l2-core DMA mapping direction
>>> from DMA_TO/FROM_DEVICE (depending on the buffer type CAPTURE or
>>> OUTPUT) to DMA_BIDIRECTIONAL during queue_init time.
>>>
>>> Initially the issue with DMA mapping direction has been found in
>>> Venus encoder driver where the hardware (firmware side) adds few
>>> lines padding on bottom of the image buffer, and the consequence
>>> is triggering of IOMMU protection faults.
>>>
>>> This will help supporting venus encoder (and probably other drivers
>>> in the future) which wants to map output type of buffers as
>>> read/write.
>>>
>>> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
>>
>> This has been already discussed about a year ago, but it got lost in
>> meantime, probably due to lack of users. I hope that this time it
>> finally will get into vb2.
>>
>> For the reference, see https://patchwork.kernel.org/patch/9388163/
> 
> Interesting.
> 
> Stanimir, I like your implementation better than the macro in the old
> patch. But as it said there, videobuf2-dma-sg/contig/vmalloc.c have references
> to DMA_FROM_DEVICE that won't work with BIDIRECTIONAL, so those need
> to be adapted as well. I missed that when I reviewed your patch :-(
Thanks for catching this, I didn't thought too much about usrptr. Sent v3.

-- 
regards,
Stan

  reply	other threads:[~2017-08-21 11:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-18 14:15 [PATCH 0/7] Venus updates Stanimir Varbanov
2017-08-18 14:16 ` [PATCH 1/7] media: vb2: add bidirectional flag in vb2_queue Stanimir Varbanov
2017-08-18 14:30   ` Hans Verkuil
2017-08-18 14:42     ` Stanimir Varbanov
2017-08-21  9:09   ` [PATCH 1/7 v2] " Stanimir Varbanov
2017-08-21  9:29     ` Marek Szyprowski
2017-08-21 10:21       ` Hans Verkuil
2017-08-21 11:37         ` Stanimir Varbanov [this message]
2017-08-21 11:34   ` [PATCH 1/7 v3] " Stanimir Varbanov
2017-08-21 12:21     ` Marek Szyprowski
2017-08-21 14:13       ` Stanimir Varbanov
2017-08-18 14:16 ` [PATCH 2/7] media: venus: venc: set correct resolution on compressed stream Stanimir Varbanov
2017-08-18 14:16 ` [PATCH 3/7] media: venus: mark venc and vdec PM functions as __maybe_unused Stanimir Varbanov
2017-08-18 14:16 ` [PATCH 4/7] media: venus: fill missing video_device name Stanimir Varbanov
2017-08-18 14:16 ` [PATCH 5/7] media: venus: add helper to check supported codecs Stanimir Varbanov
2017-08-18 14:16 ` [PATCH 6/7] media: venus: use helper function " Stanimir Varbanov
2017-08-18 14:16 ` [PATCH 7/7] media: venus: venc: drop VP9 codec support Stanimir Varbanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7122444e-a3e5-2fde-f608-a6b2f87eac29@linaro.org \
    --to=stanimir.varbanov@linaro.org \
    --cc=hverkuil@xs4all.nl \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=mchehab@kernel.org \
    --cc=pawel@osciak.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®