Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Bryan O'Donoghue <bod@kernel.org>,
	Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
	iommu@lists.linux.dev, linux-media@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, kvm@vger.kernel.org,
	linux-kernel@vger.kernel.org, Robin Murphy <robin.murphy@arm.com>,
	Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>,
	Leon Romanovsky <leon@kernel.org>,
	Sibi Sankar <sibi.sankar@oss.qualcomm.com>,
	Honglei Huang <honghuan@amd.com>,
	prakash.gupta@oss.qualcomm.com,
	Alex Williamson <alex@shazbot.org>,
	Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
	Abhinav Kumar <abhinav.kumar@linux.dev>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Hans Verkuil <hverkuil+cisco@kernel.org>,
	stable@vger.kernel.org
Subject: Re: [PATCH 1/4] media: venus: use dma_iova_size() to check the reserved IOVA size
Date: Wed, 2 Dec 2026 12:59:26 -0400	[thread overview]
Message-ID: <20261202165926.GG868208@nvidia.com> (raw)
In-Reply-To: <26a76b1a-18df-4321-9b51-f09db3bd5624@samsung.com>

On Wed, Dec 02, 2026 at 05:47:25PM +0100, Marek Szyprowski wrote:
> > And what is the special meaning anyhow?
> Commit 953439251b59 ("media: venus: Fix iova allocation from restrict region")
> gives very cryptic explanation:
> 
>  +-----------------------------------------------------------+
>  | non-pixel stream addressable range (600 MB - 3.5 GB)      |
>  | 0x25800000 - 0xe0000000                                   |
>  +-----------------------------------------------------------+
>  | pixel stream addressable range (0 - 3.5 GB)               |
>  | 0x00000000 - 0xe0000000                                   |
>  +-----------------------------------------------------------+
> 
> Whatever the 'non-pixel stream' means. BTW, this also shows that the upper 0.5GB
> of IOVA space is also not supported by this device. What if the buffer lands
> there?
> 
> IMHO allowing the drivers to mark some IOVA space as reserved (for whatever reasons)
> would let us cleanly support such weird cases (it would also cover my case of legacy
> Exynos drivers, which have very limited IOVA address space; it must not start
> at 0, so it was not possible to limit it via dma_mask).

Well, is it "reserved"

Or

I need IOVA from this range because I need it to have the special
meaning which matches the DMA the driver is setting up?

I gather this driver is willing to throw away its low 600 MB, but does
it ever want to setup "pixel stream addressible" DMA someday?

More information would help design something appropraite here, I
think.

Jason

  reply	other threads:[~2026-12-02 16:59 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20261127115858eucas1p1ac63e4ce0f221453e8666ab9723a2ae0@eucas1p1.samsung.com>
2026-11-27 11:58 ` [PATCH 0/4] iommu/dma: restore flush queue use in dma_iova_destroy() Marek Szyprowski
2026-11-27 11:58   ` [PATCH 1/4] media: venus: use dma_iova_size() to check the reserved IOVA size Marek Szyprowski
2026-11-27 12:41     ` Vikash Garodia
2026-11-27 14:29     ` Jason Gunthorpe
2026-11-27 15:24       ` Leon Romanovsky
2026-11-27 17:21       ` Bryan O'Donoghue
2026-11-27 17:26         ` Jason Gunthorpe
2026-11-28  8:55           ` Bryan O'Donoghue
2026-11-30 19:52             ` Jason Gunthorpe
2026-11-29 14:19           ` Vikash Garodia
2026-11-30  1:10             ` Bryan O'Donoghue
2026-11-30  6:15               ` Vikash Garodia
2026-11-30  9:09               ` Marek Szyprowski
2026-11-30 19:54               ` Jason Gunthorpe
2026-12-02 15:16                 ` Marek Szyprowski
2026-12-02 15:38                   ` Jason Gunthorpe
2026-12-02 16:47                     ` Marek Szyprowski
2026-12-02 16:59                       ` Jason Gunthorpe [this message]
2026-11-29 13:41         ` Bryan O'Donoghue
2026-11-27 11:58   ` [PATCH 2/4] media: iris: " Marek Szyprowski
2026-11-27 12:41     ` Vikash Garodia
2026-11-27 11:58   ` [PATCH 3/4] dma-mapping: add DMA_IOVA_FLAGS mask for the dma_iova_state size flags Marek Szyprowski
2026-11-27 14:37     ` Jason Gunthorpe
2026-11-27 11:58   ` [PATCH 4/4] iommu/dma: restore flush queue use in dma_iova_destroy() Marek Szyprowski
2026-11-27 14:37     ` Jason Gunthorpe
2026-11-27 14:45       ` Marek Szyprowski
2026-11-27 15:17         ` Jason Gunthorpe
2026-11-27 16:29           ` Marek Szyprowski
2026-11-27 17:18             ` Marek Szyprowski
2026-11-27 15:31     ` Leon Romanovsky

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=20261202165926.GG868208@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=abhinav.kumar@linux.dev \
    --cc=alex@shazbot.org \
    --cc=bod@kernel.org \
    --cc=dikshita.agarwal@oss.qualcomm.com \
    --cc=honghuan@amd.com \
    --cc=hverkuil+cisco@kernel.org \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=kvm@vger.kernel.org \
    --cc=leon@kernel.org \
    --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=prakash.gupta@oss.qualcomm.com \
    --cc=robin.murphy@arm.com \
    --cc=sibi.sankar@oss.qualcomm.com \
    --cc=stable@vger.kernel.org \
    --cc=vikash.garodia@oss.qualcomm.com \
    --cc=will@kernel.org \
    /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