From patchwork Wed Nov 16 19:31:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 13045677 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65B56C433FE for ; Wed, 16 Nov 2022 19:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mKN8Yt5QzYHX0gXbDLP4e99JnxaL0w/4zYxyWIfS4ac=; b=JfKKtZqopuxEDx QM2ckozDMJ1ZLnT686i90qDrLysOpy4IH4OZueqwN5HgmHlGnZDXshwFW3l02jWkDIul6xZMMiWzV Mt9OiQjF5y+sTsc+ZFOsFZtEKoHLCPNsBZqRNOXK/6HqBjO8jyTt8rCjTbqU4Jmb8o9yjPIH/BOmm KX9e1pWu73V8DAPhwbzjuQPqU1NqpXAwsOhjOz45znScQgkv78sKxQvc+CXSzRl0lz2q/nvItJ57T l4BlX9F9aqy+2995bacNVMiCayQlBcnCBQRHl3xjrayduQ/Vrwnp6eKikqjstHJQJagpbLGCDnezf 1NeYsghYKgQabv7IZaIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovO8Q-007McU-N7; Wed, 16 Nov 2022 19:31:46 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovO8F-007MYG-8D for linux-arm-kernel@lists.infradead.org; Wed, 16 Nov 2022 19:31:36 +0000 Received: by mail-wr1-x435.google.com with SMTP id g12so31388898wrs.10 for ; Wed, 16 Nov 2022 11:31:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Trwv5nmiMu3txEdazub9avWN4gnKwT8sOlk30QnmJwg=; b=TpR01OSJYvsdxK5CvtEpxvA38/rAnBpnwSoKmqIekRAqZwQBoPSV9Xj2Ne3wK/Sdof 4eWzngjNSKuqa81iPoDWL5je0mOPCWG/Rvv/u8jQP+/ajPySKZ+sqlRMO67N8boUB9k4 ZocpAowec4j3kY7AZvLkvV2OAVf022ACl133s5a7KDtK7/C+l8eGMgEZ876c098nNCOL Lo4pNKwoZE8NyCgxjjmXojeBiGsTQEPC3vz4QdBFueYOZdMNv9EnOIxnbW4yalJJEr+u dGn1MNb9q3nBlGxmR75VnEmsEybTFq0fHX+pqkkAnPNfo/vEEg3gT9IQOh1JR6IhhzP8 qBVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Trwv5nmiMu3txEdazub9avWN4gnKwT8sOlk30QnmJwg=; b=DQrLBmVoeTU4btI8NaG5We91/4yrxwSkWgPsdgecsZwlirshwrkxNIJ/IdKLiK5sib zHy03zOO6RevmcII4passIwpb7mK50kF+j2KSkyulzY3E7LeyTSkWtHInwSxtBK5yXbh gg+q/wz5N7O6sE9OWcYKMsUdpEWRB/URVFVmUWgw9HEyLXzcphyc04z4FVGV3qRq7eIh Qk+XfOLk+OqMxCtI+KfOYUQE5MRE9naV8oBViNvu7hTEZP/UcOf5mjBoa3UNVKQLsYa6 Dauzwm6VlhkW6NeuQ7UzQ8kPm8V9PH//vPwaaD84htdJUx/8s6HxB3OZfex+O3oWlb8K nFAQ== X-Gm-Message-State: ANoB5plsF697qDAESpHCYnctAr3GhfBUS4EnuOKDYuAvEr/Lg9+tr+9K CYOG2e9kIlr3uqiLjRdW8AA= X-Google-Smtp-Source: AA0mqf7/xPmVf0Rh22RU3CMEhI/LOjiRILBHHKXXqC9ktwO3Ja61VlrpZ4x4Cinr+HUtE54Y/6SXaQ== X-Received: by 2002:adf:ea4d:0:b0:236:8fa1:47cf with SMTP id j13-20020adfea4d000000b002368fa147cfmr15476153wrn.50.1668627091714; Wed, 16 Nov 2022 11:31:31 -0800 (PST) Received: from kista.localdomain (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id q125-20020a1c4383000000b003c6cd82596esm3044646wma.43.2022.11.16.11.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 11:31:31 -0800 (PST) From: Jernej Skrabec To: mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, wens@csie.org, samuel@sholland.org Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Jernej Skrabec Subject: [PATCH 0/2] arm64: allwinner: h6: Add second IOMMU reference to Cedrus Date: Wed, 16 Nov 2022 20:31:03 +0100 Message-Id: <20221116193105.363297-1-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221116_113135_318716_2891F968 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org It turns out that Cedrus on H6 actually uses two IOMMU channels. Manual mentiones two IOMMU channels, but it doesn't specify which is used when. Page faults were also observed from both. This series updates binding to allow up to two IOMMU channels and fixes H6 DTSI. Please take a look. Best regards, Jernej Jernej Skrabec (2): media: dt-bindings: allwinner: video-engine: Fix number of IOMMU channels arm64: dts: allwinner: h6: Fix Cedrus IOMMU channels .../bindings/media/allwinner,sun4i-a10-video-engine.yaml | 2 +- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- 2.38.1