From patchwork Mon Jan 30 03:33:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 50105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1991632wrn; Sun, 29 Jan 2023 19:41:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXsrveXEmNzCovFLeu1/pTSATNb/JRmegHS3EsW+GWzVQHKNcUVUD6LV8u3aoKC+4njUWLnf X-Received: by 2002:a05:6402:360d:b0:46c:2c94:d30b with SMTP id el13-20020a056402360d00b0046c2c94d30bmr57944289edb.33.1675050085146; Sun, 29 Jan 2023 19:41:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675050085; cv=none; d=google.com; s=arc-20160816; b=hFMtTAYYrjrRHnAnQ0K9QeiqRl3FQJQv2rHRvXuz4Fwzx/UImQI97boJEBgvcsEj68 IXhBfOsZpe6VnTb4i0PRUGxb0Y8aYYrIdrLYAgyrvEmTpSWmJqBH7ma8FwGBF+EVfG4y gBC6G2I8auNzYQOMhfMH+2L3/+xJJVzqMDCrX5NixoqpqK6BdQd2D4LRpeqXxe/nG4Jt nzLuhe897ssQxi9jP+HFr5IFToltBx/0gcZman/RyuLgL33i6cesLpLpgCRXlJSEPsmp ypnQywd1BzS0D2vKRNMI0VZwd/ZHg+UeCzubWqeE7cecu7R/Z8u2LOq72t0d65e+5d5K pyGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1G5CgmoJNqi0WF3OrbuFaLqD9wd1bS/NEuB81IeqtVY=; b=QI/9xJ5kpdhY7fNa/6QnczMA/4z556v50mo1HGpkiSZgFAR0j2mPC3pTzjM3ZFmo/d ivtzbjIF/tg34F/htTJav0tFEkHK+PGu93vNiOTZWaMr9UQiC/eEfuJFsI6enqwg8YQq xq6HzMBLCwccplyaj5BEgBSind2b5jaNJ+CovagSlxBT0T/JHPIyf6ZJLLkxVYBI+zCG f0W1lE1s0SkNgiIUsRHp32tw+w83wMgsBiykqkj1+g9vYLA8Vap93dxop2ZZFF3vN6Qh n/sMUGFWsyo+cs+r4aN6qS05NmolR6+kLtWmvIrxXg9So6kAjBT/b9hGFb4uXKNd4nrA Gm5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UEXARQcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020aa7d807000000b0049e62402a6dsi14378528edq.41.2023.01.29.19.41.02; Sun, 29 Jan 2023 19:41:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UEXARQcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235504AbjA3DdX (ORCPT + 99 others); Sun, 29 Jan 2023 22:33:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235398AbjA3DdR (ORCPT ); Sun, 29 Jan 2023 22:33:17 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFBD913DC5; Sun, 29 Jan 2023 19:33:15 -0800 (PST) X-UUID: d1a1ea6ea04e11eda06fc9ecc4dadd91-20230130 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=1G5CgmoJNqi0WF3OrbuFaLqD9wd1bS/NEuB81IeqtVY=; b=UEXARQcXMa9s0mazYRF46jGrYq57E/9RptaPKgZEiCpL47NFlvy9AgnxqgmARmsNPuLX5ooD0diZeqE34Ta9CyXNHb11hCnzK5++fj3r6olh4dY4lbRG1RJ79ZmUfU8q+fAwyZ6RPCVKtZ/KU3cTUruGJw5se0c2ZNyRHeP2CmE=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.18,REQID:efeeb72f-02b2-4112-af63-6cb04060abe2,IP:0,U RL:0,TC:0,Content:-5,EDM:-30,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-35 X-CID-META: VersionHash:3ca2d6b,CLOUDID:f4fe4d8d-8530-4eff-9f77-222cf6e2895b,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:2,IP:nil,UR L:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0 X-CID-BVR: 0 X-UUID: d1a1ea6ea04e11eda06fc9ecc4dadd91-20230130 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 19531071; Mon, 30 Jan 2023 11:33:10 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 30 Jan 2023 11:33:08 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 30 Jan 2023 11:33:08 +0800 From: Allen-KH Cheng To: Mauro Carvalho Chehab , Matthias Brugger , Rob Herring , Krzysztof Kozlowski CC: , , , , , , , Allen-KH Cheng Subject: [PATCH 2/6] media: dt-bindings: media: mediatek: Remove "dma-ranges" property for decoder Date: Mon, 30 Jan 2023 11:33:01 +0800 Message-ID: <20230130033305.31830-3-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230130033305.31830-1-allen-kh.cheng@mediatek.com> References: <20230130033305.31830-1-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756417317989796916?= X-GMAIL-MSGID: =?utf-8?q?1756417317989796916?= Because the decoder nodes already make use of the iommus property to configure the IOMMU for address translations, having a dma-ranges property makes no sense. In fact, after commit f1ad5338a4d5 ("of: Fix "dma-ranges" handling for bus controllers"), having a dma-ranges property causes IOMMU faults. Remove the dma-ranges property and update the example. Signed-off-by: Allen-KH Cheng Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring Reviewed-by: NĂ­colas F. R. A. Prado --- .../bindings/media/mediatek,vcodec-subdev-decoder.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml index 46308cdaacc0..7efc70ae4406 100644 --- a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml @@ -76,11 +76,6 @@ properties: The node of system control processor (SCP), using the remoteproc & rpmsg framework. - dma-ranges: - maxItems: 1 - description: | - Describes the physical address space of IOMMU maps to memory. - "#address-cells": const: 2 @@ -151,7 +146,6 @@ required: - reg - iommus - mediatek,scp - - dma-ranges - ranges if: @@ -185,7 +179,6 @@ examples: compatible = "mediatek,mt8192-vcodec-dec"; mediatek,scp = <&scp>; iommus = <&iommu0 M4U_PORT_L4_VDEC_MC_EXT>; - dma-ranges = <0x1 0x0 0x0 0x40000000 0x0 0xfff00000>; #address-cells = <2>; #size-cells = <2>; ranges = <0 0 0 0x16000000 0 0x40000>;