From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796428314; b=HW3oMXpwqZV7MVDGUzclSjFCuA5r4X8gceuw8VbPVFWoFHuQ9HqZSOG2A76A+ZwQal9D ddI6k0dpZ1dhFrrOBYp+ROPYwmT76nnkzbum7LWWFdq0cHBv9+dJXAEfj7bcLimbrMrqK SDjAMDk57XQ7x4FQxV2CMmra+kc1b+sYjoQBOQcnF9PLl9yCDMuK1EqaK787wK5CiPqRj WohSZbjxjrsTsu05MhJb3CehfPSfassTwNOMiLFJVzEz7o8Cuq6vkqurZKeyo/7s4W5WE NGjyPDvc2IKnIMYc3FG9k3PJjJdXbxcy2+n9VzOmjs2qpizvBQA1kcJNZ/uKfokPX4g== 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=Qcj07Ip16t1NIkNq7fVRw6VRrVJbBUMooAJiqr8N926PpBaSrIwf1kjB0iKXc0sEVXHb OZQ+ZdXmKq4chetj9pLlxUf8vF5hgjhMUvytZ20Rm3ccaJPpHg4fldWgpPrQoKFwCrlvK 2R7g3hEasM8hS+pQ8eQAcyb4X1mpGGc9pueDItg2OtRYFGGXMYfyW7UGO7Ssp/RpMKMgM 6dpf12SepoIcuRI4Jpe4VjhI4Uu0gcXG8XwSBzUgKhAVu3GCYdngDj4GLypm/ypVslfU3 mesierz3Avs1HUQSxTN3jmgGbbiqXraDDuOqOS+x5ocAHamQm3d41MqokygZ1SHCmdg== 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.182 Received: from mail-dy1-f182.google.com (mail-dy1-f182.google.com [74.125.82.182]) (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 3B153606A32C for ; Fri, 4 Dec 2026 23:51:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3B153606A32C 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-f182.google.com with SMTP id 5a478bee46e88-3866a784546so2099316eec.0 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=a6MX1hTPNyMe3o09WN8Untxr8rLW1TNP4g+BDqfFrWVxrH/h6BkRGOpC6HegepP791 2oGLtLsRdCgaU+WK/6h8zvuud7UakpD9ZkGjo0KzF6n5suHRcoIQ3auvBfxgiMLMYBHY np903jP+VpT/PyEQNupxp1KEr6ksK5WgIKPCI4BEnCGLsRjfjwh/1KqC3B4OAUIy6d+P JiY/uztIYOEllzBcqa3+u8mBupK0l+yBWHX2wvFwLLnWTMUfzxzeNZvz8DTaRjMWYg3z G32Kc/u3+OvnjZeODaZ+eo2Wl11CFklJcoORanEQdiMUSbNkP4VvAZryziHfxYTbl8gf Hkkg== X-Forwarded-Encrypted: i=1; AL+hErFI3A3HU/BpF2LRsORcsaV3qlDgy46vebCt4D0qesPMSDmQeQG7/MKrUCWXbaj9e8vKUt/OQtm6QWFjhY4=@vger.kernel.org X-Gm-Message-State: AB4q+uGfAmOlkKChqmar4Is4MlRx4e1HBqQuoBhPNNhFXB19mNydFh8l 0Jpr5I/ZRstKOxClf2uTXo3MWH6NZKmG7Wyz+LnydLSX8HfK7OlSC3Y9 X-Gm-Gg: AZFdTZc795sXwaDn1HQK36KuPm5352EP6SE9LvM81yB/ct8p48p5opjxifUwzTszdtt Y8iFt+fSclEc1vZ9IZMDAAA0yviN0tVuCXb1gjnZF62onoxSAdegcDoNm6uJ1BNycJYdguO9imW YTA+XZfIwDtNpgwbd3ZFQwTZQf/Ov9ek+KCCbPnw/xse9DtK4Iz5KfJ6j/zMufhUzRownLmql/d qkP99sH/b2/X2OTMx+Eegq6b4+A40P8PqfEIIj7u3I11Bj2cmWLvp9mWTRGKQBjVQrqp6wyHHJ0 sPoXpW2b7m3TJG4jt8qMnYa9Xio4K8TsNw5rYFx07K7jFffs535X7KluHVWrltNB11IK4CBQv2j 9FS/vVXFjyif8a7Edt68STgS3wnRlg3LMvvOFOEL+z4rAa4YhDWj/DBqc4tJx3lrvobFsfzRTlk GQjyjEKzv9pQwSV3se2TCqPtVYFsZq1dNk9yOJhDK4GlQRsKQNSomRYmVQ4dVWoRIGnHGOucRM4 x9wuDP7RHAOHvZGI7KFPG+HaHiCe5tHRXRtkh5mLILOUGOIuc4uLcw+9pKPlPJ24psUeE0iKcbW z7zW40tocAnolYo6MaEoFT+j/YeoGK0bBzBT+dEwM7kI5MWNNxxVkZDLeBHrrh6rBA6hLcPJwGU NOCKAkc8/KvpzYs0v2//5ngrDcyM= 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-kernel@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