From: Kel Modderman <kelvmod@gmail.com>
To: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Bryan O'Donoghue <bod@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Kel Modderman <kelvmod@gmail.com>,
Vishnu Reddy <busanna.reddy@oss.qualcomm.com>,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] media: qcom: Don't fail probe when the IOVA range is already reserved
Date: Sat, 5 Dec 2026 09:51:37 +1000 [thread overview]
Message-ID: <20261204235141.1264368-1-kelvmod@gmail.com> (raw)
Since v7.3.4 Iris doesn't probe on the Radxa Dragon Q6A (QCS6490):
qcom-iris aa00000.video-codec: probe with driver qcom-iris failed with error -12
The board's firmware device tree already reserves IOVA 0 to 0x25800000
for the video codec, with a reserved-memory node that has only
"iommu-addresses". dma-iommu keeps that range out of the allocator, so
the reservation added by "media: iris: Fix iova allocation from
restrict region" can't get it and the probe fails. Venus got the same
reservation in that series, so it gets the same change.
I tested the Iris patch on the Dragon Q6A, on v7.3.5 stable with the
patch built as a module: Iris probes again, H.264, HEVC and VP9 decode
with ffmpeg and in Kodi, and there are no SMMU faults. The venus patch
is compile-tested only.
Both patches, their changelogs and the debugging behind them come from
Claude Code (Claude Opus 5.5). I asked it to look into the probe
failure, test a fix on the board and draft the patches. It found the
stable backport and the device tree node from the probe error and the
IOMMU group's reserved regions. I reviewed both patches and ran the
tests above.
Kel Modderman (2):
media: iris: Skip the IOVA reservation when the range is already
reserved
media: venus: Skip the IOVA reservation when the range is already
reserved
drivers/media/platform/qcom/iris/iris_probe.c | 26 +++++++++++++++++++
drivers/media/platform/qcom/venus/core.c | 26 +++++++++++++++++++
2 files changed, 52 insertions(+)
base-commit: fd568e1139cc43b39fad1108463d1f7681d82ce2
--
2.55.0
next reply other threads:[~2026-12-04 23:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 23:51 Kel Modderman [this message]
2026-12-04 23:51 ` [PATCH 1/2] media: iris: Skip the IOVA reservation when the range is already reserved Kel Modderman
2026-12-05 0:10 ` Bryan O'Donoghue
2026-12-05 0:49 ` Kel Modderman
2026-12-04 23:51 ` [PATCH 2/2] media: venus: " Kel Modderman
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=20261204235141.1264368-1-kelvmod@gmail.com \
--to=kelvmod@gmail.com \
--cc=abhinav.kumar@linux.dev \
--cc=bod@kernel.org \
--cc=busanna.reddy@oss.qualcomm.com \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=vikash.garodia@oss.qualcomm.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