[v5,2/3] media: dt-bindings: media: mediatek: Remove "dma-ranges" property for decoder
Message ID | 20221128143832.25584-3-allen-kh.cheng@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5720248wrr; Mon, 28 Nov 2022 06:45:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5x2ErznmWE/fqpxgryHfCA0bfEmosqxf+DDAFbGN+GTImRgKbXY3eV5sTFqej+Mkb1epgr X-Received: by 2002:a17:902:784c:b0:189:65c5:4507 with SMTP id e12-20020a170902784c00b0018965c54507mr16830898pln.172.1669646756882; Mon, 28 Nov 2022 06:45:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669646756; cv=none; d=google.com; s=arc-20160816; b=LAFtZohedIWdfrvgndYzqjSJyuZ3LDYthKVAYoWzHbXezd3+taeGIBsIkYdODLmoW2 C9bnBHnOSz5J5wTDiTTddoGi2EgggfGyUnFrp2RG7ygQprFls90ZSpux0yHpa64M3tQp iNBGQBqcvmSrUh2MrvZJlk8fiAdEXvUhLZceV4HwuvKjNOmgLQfMC9sltsAjZOKdch82 ITq8tLRCiIYOUbQ+ZLjemWPD+as21BfVlKYGmrUbrSScBNkG/vweB5K8guppIooTUlpt ikhwjNnz0W2avDhFkUJWf1M2GNwNUzzb1GAuaxb4XtE7kwuFlQrcEgSoeZ5K+3//95h+ 6Iug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WP0Ri4l4ARLO/MzGAoD+zVZWP+9658CD4ZHeqjUyq/I=; b=u6g99eNdtlH78DR58/5y4wVX++lmjcOq0kKyjvKtOsdLPYCFLiSCFJDOJaQyzUw6uN 70EO9AhtnUrriEQO1JTAMMJlVMBM/bOAcmZV+u9ifdHlFd3NdL8fusUEWNE5ceElZg+6 DPDQmHiIJN0wXeqPDDiA79z7DJ3zBb8RSgHO6h/zaAZalkpkb60hUd59W+xdIfJX4zMz 6iei0giWO9qVk98e6jIka2vfyff6l/vPCrMvEQlHR1Y9Ed6LcrHVTLqi1cmcYzdwqtHa FNGA7aglq5NfTOmeA/0OO7etAm7hvwyISgyZ+QOOAkVx7wQyWAOJ8q9vK18GEaMP4ZEs 47yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=r5Kp5DgM; 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 g10-20020a63520a000000b004779a46866csi12193624pgb.563.2022.11.28.06.45.43; Mon, 28 Nov 2022 06:45:56 -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=r5Kp5DgM; 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 S232500AbiK1OjQ (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Mon, 28 Nov 2022 09:39:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231354AbiK1Oi4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 28 Nov 2022 09:38:56 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36C871AD9F; Mon, 28 Nov 2022 06:38:46 -0800 (PST) X-UUID: 0af8f956c90344b5ba4c0992cbc6707f-20221128 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=WP0Ri4l4ARLO/MzGAoD+zVZWP+9658CD4ZHeqjUyq/I=; b=r5Kp5DgMSlJ/jBh0K9YWRpPjc8AbDYThI4PUvr1DGhULo0psgw7AeaLIzwKzauRKiFbTT0w5yNV40u1ggmAbMgv+PwgCt8BczCNMWCYPRM01X4cpPAYsBRdlziBSzaew5RPOhBaJqf+rlTVSt5SK3mOvbPiffzaIwp2qbr3A/Qo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:5a5a17d5-6fd6-49bd-a461-5e20fc6c8aad,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.14,REQID:5a5a17d5-6fd6-49bd-a461-5e20fc6c8aad,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:dcaaed0,CLOUDID:75ed851e-5e1d-4ab5-ab8e-3e04efc02b30,B ulkID:221128223842SN7BCE60,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 0af8f956c90344b5ba4c0992cbc6707f-20221128 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from <allen-kh.cheng@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 840995177; Mon, 28 Nov 2022 22:38:40 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Mon, 28 Nov 2022 22:38:38 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 28 Nov 2022 22:38:38 +0800 From: Allen-KH Cheng <allen-kh.cheng@mediatek.com> To: Mauro Carvalho Chehab <mchehab@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, Rob Herring <robh+dt@kernel.org>, "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org> CC: <Project_Global_Chrome_Upstream_Group@mediatek.com>, <linux-media@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-mediatek@lists.infradead.org>, <yunfei.dong@mediatek.com>, "Allen-KH Cheng" <allen-kh.cheng@mediatek.com> Subject: [PATCH v5 2/3] media: dt-bindings: media: mediatek: Remove "dma-ranges" property for decoder Date: Mon, 28 Nov 2022 22:38:31 +0800 Message-ID: <20221128143832.25584-3-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20221128143832.25584-1-allen-kh.cheng@mediatek.com> References: <20221128143832.25584-1-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750751517343091122?= X-GMAIL-MSGID: =?utf-8?q?1750751517343091122?= |
Series |
Add vcodec lat and core nodes for mt8192
|
|
Commit Message
Allen-KH Cheng
Nov. 28, 2022, 2:38 p.m. UTC
Since commit f1ad5338a4d5 ("of: Fix "dma-ranges" handling for bus
controllers") was merge, we don't need a dma-ranges property for IOMMU
in mediatek video codec.
We remove the dma-ranges property and fix the example in
mediatek,vcodec-subdev-decoder.yaml
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
.../bindings/media/mediatek,vcodec-subdev-decoder.yaml | 7 -------
1 file changed, 7 deletions(-)
Comments
Il 28/11/22 15:38, Allen-KH Cheng ha scritto: > Since commit f1ad5338a4d5 ("of: Fix "dma-ranges" handling for bus > controllers") was merge, we don't need a dma-ranges property for IOMMU > in mediatek video codec. > > We remove the dma-ranges property and fix the example in > mediatek,vcodec-subdev-decoder.yaml > > Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
On Mon, 28 Nov 2022 22:38:31 +0800, Allen-KH Cheng wrote: > Since commit f1ad5338a4d5 ("of: Fix "dma-ranges" handling for bus > controllers") was merge, we don't need a dma-ranges property for IOMMU > in mediatek video codec. > > We remove the dma-ranges property and fix the example in > mediatek,vcodec-subdev-decoder.yaml > > Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com> > --- > .../bindings/media/mediatek,vcodec-subdev-decoder.yaml | 7 ------- > 1 file changed, 7 deletions(-) > Acked-by: Rob Herring <robh@kernel.org>
On Mon, Nov 28, 2022 at 10:38:31PM +0800, Allen-KH Cheng wrote: > Since commit f1ad5338a4d5 ("of: Fix "dma-ranges" handling for bus > controllers") was merge, we don't need a dma-ranges property for IOMMU > in mediatek video codec. This description isn't right, as it gives the impression that the mentioned commit removed the need for having a dma-ranges property, but that isn't the case, the property wasn't needed even before that commit. That commit did however expose the fact that having this property didn't make sense in the first place. Here's a suggestion: The decoder nodes already make use of the iommus property to configure the IOMMU for address translations, so also having a dma-ranges property doesn't make 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. Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Thanks, Nícolas
diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml index 695402041e04..7c5b4a91c59b 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: @@ -184,7 +178,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>;