From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796428314; b=n9arboIadpHAtx9dblXueZiGevV0Mv4JujHq9ISo5le/KnYtf7Kq4wGl9pqF+j9lUsnw Yz23lWkZW4smbNbu90idSoY0GHezf1Wl36r38OwDzFyJamieKgjySq7Y/qoJoHblQ6buA 2Sej0vk9AesAHH0kU764txDIb/nrqgt2AyqwRLLPlV+Bg+FbET9qg2QiifGMVnj1NQ57o VThKylpMAY21wqA1g0sq9Dzd2gvngTWBbkN5onL3ddGQDeDrfFllUS2qtRIwko4X/A6NL XsMZqFZggbT1j6uXKfD61IxjfGK2SOpUjbeqv1R65TEwPNx5kjfU+K1NTJqknV7SkMw== 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=2GNx0qTaRRbDsukkLz0+Zla1414AdIIu06phl4oDT54robiDZzKGxL2OXu9j+F2NOAt1 xufuqZSzH26itAgJdFFs2cjDj725k+5u1WVkNjjmJuNhlc3/3nf/3rvM7Ed/DmKU2IYdi EkJWT+sW5B5U8ZsHHMFoVO2sjnmynHnPvRW06seQRb8c3TlnpvW6ozHp3x0d8hNlOIakB zAaAc+zpRrPOcIXqtIBRy9Crfvyin/3eqXTHNDbyxXu1IWHK5Sa9KRmJEjzr78hN5bfzG nbHX1R/xApSTiIe7RcWSjvyMiJfdvu6d6AaAl8IWppywqtJlzLIw6D5PQeaS628Ylbw== 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.173 Received: from mail-dy1-f173.google.com (mail-dy1-f173.google.com [74.125.82.173]) (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 40ABE606A32D for ; Fri, 4 Dec 2026 23:51:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 40ABE606A32D 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-f173.google.com with SMTP id 5a478bee46e88-386ab9ab619so2450867eec.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=ingRCGMQjiqnYLkUUNtBnejinF6So1WIhVGOsJecRko3AdHU6J5TWr7fQTAFPSpag9 LvwqIwPeNz0bvOB/vhyijCkM0Z+NSkCr3EkWcEfNKyr82jiIONki8+3K+S1O+HdjetMr lWMr2hbclwkVcl7ObCtguZSwklHNQtd7jWAgmNWhdpF78hxRaXBVUDOJnoucLUS8fErz lx6TI649SqpI249sSAIIt3F7nFpoGCfX7+bVdwPj1zv+PZir8ZB3Ucyqql8Jw+Ws5bJo yJfa2qckTfCWCL192pL51p149Hq5hhsXaJtKNn/oNeXDKp0BXTjDyErdjGYLA1Tt73lH IL4g== X-Forwarded-Encrypted: i=1; AL+hErGuJDZ4FQ+smTCMro+FLlCt/LC98wH/RmB+Y8lKPgHE4z/cPg9mihuKV1TfeRlZ2HWbEBBi+xRbbsSl5Q==@vger.kernel.org X-Gm-Message-State: AB4q+uGXoaf75tK1iby+okp5GxUHHFexlJERuekKJxCwqsQbXFfqHrds xJnL48v3BkZL84tR9uMGWK8dcQL4BlCskOKcbDiCNeVhFAztq2b0Qk24 X-Gm-Gg: AZFdTZfuBmOkTSH7BnPGxjXenIlmaES49m8sACWlqxzi4N5pkxBkUelPKZspKUpDak8 IvXR+KbJ9JCzzEOfOpdB7DWUp7+EWxaqQWsHe/nUdvCGzHV6twCSymHtNqnJO9MWKmE2nUQ4o7l jXmLuxQfrUmNr9f9Y3BLBUp+gjZlkZuA/0PXasGDv7X0SMLwPCDwibR9tzIgV6XoJXG8/NlbFMt aaMQ6DqxbuUUn30sZpzvb64Gk/GJVg/9lkD/w60dad0QfNHA5ySrR6Pttcgb43AmWBp5BCYIEjE aLOAvwgYg2/lC4KHvQ5dBJgM8I+J8hvaAIbR6wpExT/I9z3yTOZU7OZzmg7cUXzvLEKfDxeyjb+ GRI5w/7b7agtS4OkZoP+0nQKWycssT2FD+zDLlkxWnav6fAnk1IOVnnF1zO8StuG8ViLV5P4rS4 oj1QIGGo6sR6aAez6ExQ9/gAnHwTJx7GnD5pWCE+G3xZ5Kf5UxVdy+MKf6KdBPOlccq2OHSGruk W1xCcmGF1gfXwr5aCXUmj4tVlS8GV8UfNgxOwtMqq7xS/gBz5Teosa69GCfRvyxTT3PDECClvWA gjRd7rXvaljD/HO3uCEg2fENZ0di/F4eydO6sDHnN/k+Jq0LARdy1tVFSpVyWQCfzuoxHNTeRne fk/HOwgCMhNCAvGXiWlCkC8DH7qY= 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-media@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