From: Dikshita Agarwal <quic_dikshita@quicinc.com>
To: Joel Stanley <joel@jms.id.au>, <jgg@nvidia.com>
Cc: "Vikash Garodia" <quic_vgarodia@quicinc.com>,
"Abhinav Kumar" <quic_abhinavk@quicinc.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Hans Verkuil" <hverkuil@xs4all.nl>,
"Sebastian Fricke" <sebastian.fricke@collabora.com>,
"Bryan O'Donoghue" <bryan.odonoghue@linaro.org>,
"Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Nicolas Dufresne" <nicolas@ndufresne.ca>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Jianhua Lu" <lujianhua000@gmail.com>,
"Stefan Schmidt" <stefan.schmidt@linaro.org>,
linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>,
"Vedang Nagar" <quic_vnagar@quicinc.com>
Subject: Re: [PATCH v9 00/28] Qualcomm iris video decoder driver
Date: Wed, 8 Jan 2025 15:24:31 +0530 [thread overview]
Message-ID: <c7c08cd3-2c74-823b-46c3-9689429bb401@quicinc.com> (raw)
In-Reply-To: <CACPK8Xegvq4Frc+Lmzd0CrBVKpmaA+agxKBMPc29Y3LFVRVLqw@mail.gmail.com>
On 1/6/2025 6:16 PM, Joel Stanley wrote:
> On Mon, 6 Jan 2025 at 23:06, Joel Stanley <joel@jms.id.au> wrote:
>> I tested this on an x1e based machine, a Surface Laptop 7. I had some
>> errors with loading the firmware which triggered some warnings when
>> trying to tear down the driver. I've pasted the WARNs at the end of
>> this mail.
>
> It might be new behavior triggered by this series:
>
> https://lore.kernel.org/all/0-v3-b3a5b5937f56+7bb-arm_no_split_jgg@nvidia.com/
>
> Your allocation:
>
> queue_size = ALIGN((sizeof(*q_tbl_hdr) + (IFACEQ_QUEUE_SIZE *
> IFACEQ_NUMQ)), SZ_4K);
> core->iface_q_table_vaddr = dma_alloc_attrs(core->dev, queue_size,
> &core->iface_q_table_daddr,
> GFP_KERNEL,
> DMA_ATTR_WRITE_COMBINE);
>
>
> and the free:
>
> dma_free_attrs(core->dev, sizeof(struct iris_hfi_queue_table_header),
> core->iface_q_table_vaddr, core->iface_q_table_daddr,
> DMA_ATTR_WRITE_COMBINE);
>
> So probably your bug, but hidden until Jason's change caused it to WARN.
>
Thanks for pointing it out, its definitely a bug, will fix it.
Thanks,
Dikshita
>> [ 2.587909] qcom-iris aa00000.video-codec: error -22 initializing
>> firmware qcom/vpu/vpu30_p4.mbn
>> [ 2.588095] qcom-iris aa00000.video-codec: firmware download failed
>> [ 2.588250] ------------[ cut here ]------------
>> [ 2.588251] Unmap of a partial large IOPTE is not allowed
>> [ 2.588256] WARNING: CPU: 4 PID: 659 at
>> drivers/iommu/io-pgtable-arm.c:649 __arm_lpae_unmap+0x3cc/0x468
>> [ 2.588335] CPU: 4 UID: 0 PID: 659 Comm: v4l_id Tainted: G W
>> 6.13.0-rc4-00092-g1bbe1a937cf6 #21
>> [ 2.588338] Tainted: [W]=WARN
>> [ 2.588339] Hardware name: Microsoft Corporation Microsoft Surface
>> Laptop, 7th Edition/Microsoft Surface Laptop, 7th Edition, BIOS
>> 160.2.235 08/05/2024
>> [ 2.588340] pstate: 61400005 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
>> [ 2.588342] pc : __arm_lpae_unmap+0x3cc/0x468
>> [ 2.588344] lr : __arm_lpae_unmap+0x3cc/0x468
>> [ 2.588345] sp : ffff80008259b690
>> [ 2.588346] x29: ffff80008259b690 x28: ffff80008259bc30 x27: ffff80008259b8f8
>> [ 2.588349] x26: ffffb973346978d0 x25: ffff68590225e7f0 x24: ffff80008259b8f8
>> [ 2.588351] x23: 00000000dfc00000 x22: 0000000000001000 x21: ffff68590396ce80
>> [ 2.588354] x20: ffff6859068fa4f8 x19: ffff6859068fa480 x18: fffffffffffef6a8
>> [ 2.588356] x17: ffff685900b8c040 x16: 0000000000000000 x15: ffff80008259b248
>> [ 2.588359] x14: ffffb9733457e768 x13: 6465776f6c6c6120 x12: 746f6e2073692045
>> [ 2.588362] x11: ffffb9733457e768 x10: 000000000000030c x9 : ffffb973345d6768
>> [ 2.588364] x8 : 0000000000017fe8 x7 : 00000000fffff30b x6 : ffffb973345d6768
>> [ 2.588367] x5 : ffff685c75f4b848 x4 : 40000000fffff30b x3 : ffffaee941a6a000
>> [ 2.588369] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff68590bc25640
>> [ 2.588372] Call trace:
>> [ 2.588373] __arm_lpae_unmap+0x3cc/0x468 (P)
>> [ 2.588376] __arm_lpae_unmap+0xf4/0x468
>> [ 2.588379] __arm_lpae_unmap+0xf4/0x468
>> [ 2.588381] arm_lpae_unmap_pages+0x70/0x84
>> [ 2.588383] arm_smmu_unmap_pages+0x48/0x10c
>> [ 2.588385] __iommu_unmap+0xf0/0x1c0
>> [ 2.588387] iommu_unmap_fast+0x10/0x20
>> [ 2.588389] __iommu_dma_unmap+0xb8/0x2c0
>> [ 2.588391] iommu_dma_free+0x2c/0x54
>> [ 2.588392] dma_free_attrs+0x9c/0xc0
>> [ 2.588395] iris_hfi_queues_deinit+0x70/0xa0 [iris]
>> [ 2.588399] iris_core_init+0xd8/0x138 [iris]
>> [ 2.588401] iris_open+0x3c/0x318 [iris]
>> [ 2.588403] v4l2_open+0xa8/0x124 [videodev]
>> [ 2.588406] chrdev_open+0xb0/0x21c
>> [ 2.588409] do_dentry_open+0x138/0x4c4
>> [ 2.588412] vfs_open+0x2c/0xe4
>> [ 2.588413] path_openat+0x6fc/0x10a0
>> [ 2.588415] do_filp_open+0xa8/0x170
>> [ 2.588417] do_sys_openat2+0xc8/0xfc
>> [ 2.588418] __arm64_sys_openat+0x64/0xc0
>> [ 2.588420] invoke_syscall+0x48/0x104
>> [ 2.588423] el0_svc_common.constprop.0+0xc0/0xe0
>> [ 2.588426] do_el0_svc+0x1c/0x28
>> [ 2.588428] el0_svc+0x30/0xcc
>> [ 2.588431] el0t_64_sync_handler+0x10c/0x138
>> [ 2.588433] el0t_64_sync+0x198/0x19c
>> [ 2.588435] ---[ end trace 0000000000000000 ]---
>> [ 2.588438] ------------[ cut here ]------------
>> [ 2.588439] WARNING: CPU: 4 PID: 659 at
>> drivers/iommu/dma-iommu.c:841 __iommu_dma_unmap+0x290/0x2c0
>> [ 2.588497] CPU: 4 UID: 0 PID: 659 Comm: v4l_id Tainted: G W
>> 6.13.0-rc4-00092-g1bbe1a937cf6 #21
>> [ 2.588499] Tainted: [W]=WARN
>> [ 2.588500] Hardware name: Microsoft Corporation Microsoft Surface
>> Laptop, 7th Edition/Microsoft Surface Laptop, 7th Edition, BIOS
>> 160.2.235 08/05/2024
>> [ 2.588501] pstate: 81400005 (Nzcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
>> [ 2.588502] pc : __iommu_dma_unmap+0x290/0x2c0
>> [ 2.588503] lr : __iommu_dma_unmap+0xb8/0x2c0
>> [ 2.588505] sp : ffff80008259b8f0
>> [ 2.588505] x29: ffff80008259b930 x28: ffff80008259bc30 x27: 0000000000020100
>> [ 2.588508] x26: 0000000000020100 x25: ffff68590bf76a08 x24: ffff80008259b910
>> [ 2.588511] x23: ffff80008259b8f8 x22: ffff6859113cd260 x21: ffff68590bf76a00
>> [ 2.588513] x20: 00000000dfc00000 x19: 0000000000001000 x18: fffffffffffef6a8
>> [ 2.588516] x17: ffff685900b8c040 x16: 0000000000000000 x15: ffff80008259b248
>> [ 2.588518] x14: ffffb9733457e768 x13: 6465776f6c6c6120 x12: 746f6e2073692045
>> [ 2.588521] x11: ffffb9733457e768 x10: 000000000000030c x9 : ffffb973345d6768
>> [ 2.588523] x8 : 0000000000017fe8 x7 : 00000000fffff30b x6 : ffffb973345d6768
>> [ 2.588525] x5 : ffff685c75f4b848 x4 : 40000000fffff30b x3 : ffffaee941a6a000
>> [ 2.588528] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
>> [ 2.588530] Call trace:
>> [ 2.588531] __iommu_dma_unmap+0x290/0x2c0 (P)
>> [ 2.588532] iommu_dma_free+0x2c/0x54
>> [ 2.588534] dma_free_attrs+0x9c/0xc0
>> [ 2.588535] iris_hfi_queues_deinit+0x70/0xa0 [iris]
>> [ 2.588537] iris_core_init+0xd8/0x138 [iris]
>> [ 2.588539] iris_open+0x3c/0x318 [iris]
>> [ 2.588541] v4l2_open+0xa8/0x124 [videodev]
>> [ 2.588543] chrdev_open+0xb0/0x21c
>> [ 2.588545] do_dentry_open+0x138/0x4c4
>> [ 2.588547] vfs_open+0x2c/0xe4
>> [ 2.588549] path_openat+0x6fc/0x10a0
>> [ 2.588550] do_filp_open+0xa8/0x170
>> [ 2.588551] do_sys_openat2+0xc8/0xfc
>> [ 2.588553] __arm64_sys_openat+0x64/0xc0
>> [ 2.588555] invoke_syscall+0x48/0x104
>> [ 2.588557] el0_svc_common.constprop.0+0xc0/0xe0
>> [ 2.588560] do_el0_svc+0x1c/0x28
>> [ 2.588562] el0_svc+0x30/0xcc
>> [ 2.588564] el0t_64_sync_handler+0x10c/0x138
>> [ 2.588566] el0t_64_sync+0x198/0x19c
>> [
next prev parent reply other threads:[~2025-01-08 9:55 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 11:51 [PATCH v9 00/28] Qualcomm iris video decoder driver Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 01/28] dt-bindings: media: Add video support for QCOM SM8550 SoC Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 02/28] media: iris: add platform driver for iris video device Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 03/28] media: iris: implement iris v4l2 file ops Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 04/28] media: iris: introduce iris core state management with shared queues Dikshita Agarwal
2025-01-15 12:45 ` Markus Elfring
2024-12-12 11:51 ` [PATCH v9 05/28] media: iris: implement video firmware load/unload Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 06/28] media: iris: implement boot sequence of the firmware Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 07/28] media: iris: introduce host firmware interface with necessary hooks Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 08/28] media: iris: implement power management Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 09/28] media: iris: implement reqbuf ioctl with vb2_queue_setup Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 10/28] media: iris: implement s_fmt, g_fmt and try_fmt ioctls Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 11/28] media: iris: implement g_selection ioctl Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 12/28] media: iris: implement enum_fmt and enum_framesizes ioctls Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 13/28] media: iris: implement subscribe_event and unsubscribe_event ioctls Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 14/28] media: iris: implement iris v4l2_ctrl_ops Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 15/28] media: iris: implement query_cap ioctl Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 16/28] media: iris: implement vb2 streaming ops Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 17/28] media: iris: implement set properties to firmware during streamon Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 18/28] media: iris: subscribe parameters and properties to firmware for hfi_gen2 Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 19/28] media: iris: allocate, initialize and queue internal buffers Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 20/28] media: iris: implement vb2 ops for buf_queue and firmware response Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 21/28] media: iris: add support for dynamic resolution change Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 22/28] media: iris: handle streamoff/on from client in " Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 23/28] media: iris: add support for drain sequence Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 24/28] media: iris: add check whether the video session is supported or not Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 25/28] media: iris: implement power scaling for vpu2 and vpu3 Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 26/28] media: iris: add check to allow sub states transitions Dikshita Agarwal
2024-12-12 11:51 ` [PATCH v9 27/28] media: iris: enable video driver probe of SM8250 SoC Dikshita Agarwal
2024-12-23 10:30 ` Mauro Carvalho Chehab
2024-12-23 10:51 ` Dikshita Agarwal
2025-01-07 13:57 ` Nicolas Dufresne
2025-01-08 7:43 ` Dikshita Agarwal
2025-01-08 7:47 ` Hans Verkuil
2025-01-08 8:51 ` Dikshita Agarwal
2025-01-08 8:55 ` Hans Verkuil
2025-01-08 10:21 ` Dikshita Agarwal
2025-01-08 10:43 ` Hans Verkuil
2025-01-08 11:12 ` Dikshita Agarwal
2025-01-08 14:52 ` Mauro Carvalho Chehab
2025-01-09 8:43 ` Dikshita Agarwal
2025-01-09 9:49 ` Stanimir Varbanov
2025-01-09 10:37 ` Hans Verkuil
2025-01-09 15:11 ` Johan Hovold
2025-01-09 17:48 ` Vikash Garodia
2025-01-10 14:28 ` Johan Hovold
2025-01-10 17:30 ` Dikshita Agarwal
2025-01-10 18:01 ` Dmitry Baryshkov
2025-01-11 10:45 ` Hans Verkuil
2025-01-13 8:51 ` Dmitry Baryshkov
2025-01-15 15:15 ` Bryan O'Donoghue
2025-02-03 8:39 ` Johan Hovold
2025-02-03 15:37 ` Dmitry Baryshkov
2025-02-04 9:52 ` Johan Hovold
2025-02-04 15:35 ` Dmitry Baryshkov
2025-02-04 16:22 ` Johan Hovold
2025-01-10 0:12 ` Dmitry Baryshkov
2025-01-15 22:49 ` Bryan O'Donoghue
2025-01-15 22:51 ` Bryan O'Donoghue
2025-01-16 1:23 ` Dmitry Baryshkov
2024-12-12 11:51 ` [PATCH v9 28/28] media: MAINTAINERS: add Qualcomm iris video accelerator driver Dikshita Agarwal
2024-12-14 11:04 ` [PATCH v9 00/28] Qualcomm iris video decoder driver Krzysztof Kozlowski
2024-12-16 14:48 ` Neil Armstrong
2025-01-06 12:36 ` Joel Stanley
2025-01-06 12:46 ` Joel Stanley
2025-01-08 9:54 ` Dikshita Agarwal [this message]
2025-01-08 9:52 ` Dikshita Agarwal
2025-01-08 11:00 ` Dmitry Baryshkov
2025-01-09 14:58 ` Johan Hovold
2025-01-22 15:34 ` Stefan Schmidt
2025-02-03 8:43 ` Johan Hovold
2025-02-03 9:27 ` Vikash Garodia
2025-01-15 22:57 ` Bryan O'Donoghue
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=c7c08cd3-2c74-823b-46c3-9689429bb401@quicinc.com \
--to=quic_dikshita@quicinc.com \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=hverkuil@xs4all.nl \
--cc=jgg@nvidia.com \
--cc=joel@jms.id.au \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=lujianhua000@gmail.com \
--cc=mchehab@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=nicolas@ndufresne.ca \
--cc=p.zabel@pengutronix.de \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_vgarodia@quicinc.com \
--cc=quic_vnagar@quicinc.com \
--cc=robh@kernel.org \
--cc=sebastian.fricke@collabora.com \
--cc=stefan.schmidt@linaro.org \
--cc=u.kleine-koenig@baylibre.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