Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796428314; b=lksC+f7rptGYlSkCYkKFZKZCY8Xe4HXT9VvaKX0DykK3lQn3K4PJCELdA2BW+/sv4fAT 6ZGgLSA4n1px8e/8RS9ehVsgUAIL3X2/T3PuWp5H2ya56MxOcFx1LgtuJwxq51UaYi4zX afFzcsAj/MCIxaNnYOd2F8c1hGVhX4M5oIkZHUQ5KMucdvIMA4IvGvwJH+SzwKByfGUd8 wF/L7eDNbq6To4RXaEMygKes5kC/21J3L8+mVLziAP5FHDRv85R7Xy2pu2F85Sv4/KHBh BkI9y1T5dZgKdb2HwU8C/VLhwLRdSl1ZjiS8Cs8iY53Bbi0sNdBrZ36rru2cs9UOZBA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796428314; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=RxKTrJGX7BGXYgiVatGM2o+/trw90YHjxexIkg0DuoI=; b=mE/qCGfciAqIYrFMlDwCy2hftoT8Aw4UEUiopfvEBOxoBBA9Cz85Lkz76JDFTf6NC22Z 4FlQKQsiUNqMca1Uisce/5JvlbpQq7wAkhLYAbgnJ612cT5TWVEMq8Kx9KfRAUgFkl0qn Js+dgMgCl0CLE2JcTeXDQhG1rPHj2E7gpOggUAvadmeTp4bQXlb+KxOU2wwIuvQi1sBdv aR21r4A99Dp11RikOwx13E+BdbDulLJr72U2CdLf+h9TDP1d5AH08o/EPmfkDzxQO9rVH MtEUB2Cnrg3yD0XayN3KaIlJkVFhZgDe8ySPJUTDXCq8gfwvyJEULbmCSfk81DHWRlw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dT5PqEzm; arc=none smtp.remote-ip=74.125.82.174 Received: from mail-dy1-f174.google.com (mail-dy1-f174.google.com [74.125.82.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3340F606A322 for ; Fri, 4 Dec 2026 23:51:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3340F606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dT5PqEzm Received: by mail-dy1-f174.google.com with SMTP id 5a478bee46e88-386ab9ab619so2450866eec.1 for ; Fri, 04 Dec 2026 15:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796428313; x=1797033113; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=RxKTrJGX7BGXYgiVatGM2o+/trw90YHjxexIkg0DuoI=; b=dT5PqEzmsiQHPOtMrnG/pPoe0T+IFAx9X6D67udQldSUzMkkilYWaus8qLqj0TJn/0 54l8O5oVj/J7h2RXIQ6+gSwpfmlzCBKUPB3a10a6WEOAg3y7MMS+D+gpc/UB8iTUl0Oq IaiPZ4+sYvqlnaDDTHdS5/CF/8WO+dBn0tQnaNqpYe0xpGJ1UxRpF/oZLL9hPJIvGhNZ r50RR9+iVhuMzqZwKWvabZXK/yH+rze38maUg0P+sPBuyFPJUqqHPDIHBDlESlsx3HjP 9Go6C5tTBDHjtKyNiuR8IPakTEPCgP1TWSQZ3xEhhKyrF4Brm42auGse6GoX889IGJCc IwdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796428313; x=1797033113; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RxKTrJGX7BGXYgiVatGM2o+/trw90YHjxexIkg0DuoI=; b=ksoG63xiGiMG+2Ra4Cd3nxVxbyBkb5iZ6o/iHC/rdk48onwNcTjriLBn/U4oKMp5Rt aKHFndh7unSnlo7zw1r3JWULVUtyrgvfmeJDNt9GlDuywRHlmk5sPVmVEQOuKwj1AGVY CyJWfySUfNoF9gs4SGlsrgH9h+ZkAfVzlhMEJPsGeUDg0odtC94n1GZ0ZGFn6awYuHwQ LqXATS/a98FBBfzPCClWSTkbqbcT7ewELzIVJlOVwADCdSh2DPSmtGvpMo2wmVzz0keS h0dpa2iuv88CWRPJ3QrKmKSyGjhWo8v7z2yJUWxm8+nLgrEgLf/D0TpmtIeb+fqDZGQe qzXw== X-Forwarded-Encrypted: i=1; AL+hErEAvL7pBRHv5vx+M1oPMMEsNpRqM22bJOzA5XPRVmtmg4G5jHc1Lk/slYu20unP96AjPZKCEONuA9cqGH5o@vger.kernel.org X-Gm-Message-State: AB4q+uEhO/PiHI765JNJi8YvMwcMorcfzF8b+e55IyXE6BoQV3mAoj6n Gmc7BOv5oR3xXP5j0yPX6UZNYReYKEn4KBGeqxNJVuAi5243P+3Rh3MM X-Gm-Gg: AZFdTZeGJRp/XOSO8RyQQDaQVZGrkclrdtPj6k00TfeTbH15+3AfktfZtHiycWPZ1o9 0vNBSRIrslv2qEK3LY/M1/CqOGWoqamvcsEdIySJj2nK+hyaBlxJzWTjJFN1AIN3fL2sTm0LbQO 4xfU8Y9+cE86CWea7JNRDntuDP2o2mpwqScCpsjWER8LrrBO3CquRE01F9fqJyNx0z8l/rZQIw3 lF44CN5k2dHyipOV5m1NmUgM8ZJ9E8tRjYqE2PKV7odWCSmV2Kh4oHQ9fqvuCQ891QULoB3OaD2 +EJzjn6fiFMSK9V1HfDRX3+CwJc9B1FICzUCAGNfWIjmMiLpcscXAGn1BTesZV0XDrLMGcGHF6n rIl4OtoeVeJekejHXX6EfmLJbhhjFcC1RBXRqK7Di5syzCFxQGv+xpq8t8mCoGgZMdhyHf0Bx07 XnCI/MCuBS7xLJrS57p949zkvKDyJKyzT4Q2v+x7+zTTgd34wPYOT9tLMmL4C34YMWJfzdIeOWz sky+bGhD7xZ2S2dcUL7m4hfEE1F72+W7jl4DDdB/E3qdny+K59jJlxMdjjRBuJ9DMvOSpyRi88A mHBSowCUjuEQMwpO3KDOQGwP+s/VqBy/TqTYWLc9Iuw+0eTx0yyOg33HauGG+guCtP6h4aYAG58 97g1QZ0qQYYPoAy+0xL2xlSBT64k= X-Received: by 2002:a05:693c:65c4:b0:386:c5b8:960b with SMTP id 5a478bee46e88-387520ed568mr3680520eec.17.1796428313292; Fri, 04 Dec 2026 15:51:53 -0800 (PST) Received: from flipper.lan (2403-580b-35b2-8--9d8.ip6.aussiebb.net. [2403:580b:35b2:8::9d8]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-387521bb842sm11499796eec.15.2026.12.04.15.51.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 15:51:52 -0800 (PST) From: Kel Modderman To: Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab Cc: Kel Modderman , Vishnu Reddy , Dmitry Baryshkov , 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 Message-ID: <20261204235141.1264368-1-kelvmod@gmail.com> X-Mailer: git-send-email 2.55.0 X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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