From patchwork Thu Nov 17 06:07:02 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: 13046197 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 B0A73C433FE for ; Thu, 17 Nov 2022 06:08:15 +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=SpjjL0lio86ge+KJ02MJD0Zl5x/fKern2Vrro+cSmwU=; b=JXzmr/QEVbdyjQ Pn3SvOmLRk5VCGtTdwRbcorJEdV0cR9jXpdCURdkzVAp2Y+68vjxwlH6ChpPaxDKV31Om+9MPTlAC /GWTNgwTrT9RMkrgclPshbqEL2LxO2KpwGwa0apfbYc9hlIK2K8EpHlEq5hE/e66qD5lfGSma7M2y f76DB5PMgDZTR+mq0VNGybSjpuWqeF3UeItAFgKdyvxz6nG0LmOn+eCs/rDbw7mmvXTlRB2gGG0hH hldUbDsvn8Ye/i7g9Cr4q66fvbmNs6SfVmrKiatJW7jIJOkYiaYBSTJUFon7Wzx4WLsy17LOt7PJM Jgdhx/ga3FnqwdONQhWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovY3U-00Agrz-OM; Thu, 17 Nov 2022 06:07:20 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovY3R-00Agmv-Nm for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2022 06:07:18 +0000 Received: by mail-wr1-x42c.google.com with SMTP id j15so1398567wrq.3 for ; Wed, 16 Nov 2022 22:07:11 -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=UiXSAQsSjwWqOGc9spTfADfVAnOu8H9dxOp6ONZY5HI=; b=BqXgBQ7H19xsIldwSJ3XEtEaIyFB1pdOaoIIBGAvsLqPWuYbRoHDUN2CEBw0y3fxO3 uwXsNGip+B4h9O1rmk+YMJmusJHfaeq7vO88bENdgIc6d4g/Q5ERZP8h+CMGECBu+X6k DHr3Vgr6V2tKU6lJj4Je8jANmXUTuaIp0l0++ThbeldD1m97ufIyMdpurrQHTy95XFcz dONdw2asOsd8CV8KJJwzAEFz5StzdHnVE0EM+gDQ28o/PqGKMes0ezBU3AmSxPHq4QcM SR1e7NutED2dxq9rz3GeAL70s9b4ihla6W7mGew7S/MZI2pr/0jy20LEPAyRCBdyzW3z xR9A== 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=UiXSAQsSjwWqOGc9spTfADfVAnOu8H9dxOp6ONZY5HI=; b=TdJHSXNbt6pFzvT7cdKFrodqU7X1lpUHPyMW5ploW938H20YsVTdMDY+cc6urtdas+ LP9sQocpdRU5aqx9/sbUcJuPOWgMAsm7aGfQvhnjAmBYazazZI/pUj1vskkD9iBhiNI1 1lJfs2sYOynPv0EKWzeIBbPhBRNEmU0WfK3faOzGpUli2sAf88M6Tb4JuyeHGQh8KNmu gu6JtQ757TVbez4s1WXn2Y3UC9SH7voOCE9v0XBipsvVfBFIsEvBRYmwbu0L49PJsJRP Q6XypibEGVoet9p+CahYyBGiUBHfleTrU3rNNj23dCm6XiIRMC2uJeMAlAtK3R8iIKg1 Bexg== X-Gm-Message-State: ANoB5pkZLtFRpQgSXz7N2WuqliTF6bfmwrFx6RHgbc7X1GXpcs+EB71c uqfqZWKaloC2DfbrqOPLr1I= X-Google-Smtp-Source: AA0mqf5SwUTUY/lj91u2/nwQu6g7fE2GFbJh2pd3jLHyIsRrmrwZ+DiGtLaGJyqtt7bLuhpDmkLHAg== X-Received: by 2002:a5d:6b8d:0:b0:236:4c14:4e4c with SMTP id n13-20020a5d6b8d000000b002364c144e4cmr431753wrx.634.1668665229774; Wed, 16 Nov 2022 22:07:09 -0800 (PST) Received: from kista.localdomain (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id r11-20020a5d694b000000b0023691d62cffsm16542568wrw.70.2022.11.16.22.07.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 22:07:09 -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 v2 0/2] arm64: allwinner: h6: Add second IOMMU reference to Cedrus Date: Thu, 17 Nov 2022 07:07:02 +0100 Message-Id: <20221117060704.367945-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_220717_782651_16AD5AED X-CRM114-Status: GOOD ( 10.66 ) 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 Changes from v1: - add minItems to binding - add reviewed-by to DT patch 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 | 3 ++- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) --- 2.38.1