From patchwork Tue Apr 11 09:31:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yong Wu X-Patchwork-Id: 81836 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2442533vqo; Tue, 11 Apr 2023 02:35:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bVvYLkiKN8wUSglceM9By3OMrXgV+elWEAATWqDOkOuKVokA37Wz2kP3A9lavgZ8oS6IOa X-Received: by 2002:a05:6a20:6ca5:b0:dd:df53:434e with SMTP id em37-20020a056a206ca500b000dddf53434emr1669894pzb.51.1681205723089; Tue, 11 Apr 2023 02:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681205723; cv=none; d=google.com; s=arc-20160816; b=O3zdgpGUuFeiq4l68r0iqd6Kemu0MAPDr0SoNGXpzUXXGlsBuujIZtpFgrPLIn1YX0 t4s6UHwYPCNuXpRuOgaML8k/rwVC0+Oc6sfl3wX13yi1zrWdA4yWzG7Xyoc+Qz8dwINp mOQR3+Cj22CpRd/bkHmHbPd3DcqqyHyGWnANCKvdFvWCIX4/VYCTIFUxwnKQERVHC+N1 y8kVfWNjS48+cALjnU26LYfPXmJCklSN24TUvJH4ppddBs7hXSVmwU3CeGDAY1b5M3HW Du1VHBqjfefYgA1HTEVYzzkWZ1KTIcTiJXP64YWcgH6OxLrE7yK3XIeyFBZEUiIUZnqF hFwQ== 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=mT6zoSr+t/iCCp0pVyrrFXyfIgwNSVzrgEpFp7/K0K4=; b=m+MWXYfukl9mI000fAhZJkIhndR+v6tPh0BRhm0QvH4HjLR65WvN5aDU5/iGjc7TYp ZviDGIno/NXBGcCaXVPirQhuj61dZN4+kNh80u/y6UmUhBPR7aRPBlVpR1nPETDh/W7U seEzr7QJr2CNvVPT6nXn/wENuyNPDJ0AboQp1M7Q1HRbYmmVoE4luIzEO2/Ni2yLP9Sv 995r7z6HOGMR2Azw0/qTQTblVzTVGSl6+5Nc3qh1z9xYw0+ss+AT4i+K70v58XnKlbxj Hz5LyoW124rInNHr0+95HnGDKFDcf/5NUPx2eOsG8ZJkMgmG186xbkPHZoqysiPOOaqc YX8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=p1kfKTM9; 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 184-20020a6309c1000000b005141a94819asi13190033pgj.99.2023.04.11.02.35.06; Tue, 11 Apr 2023 02:35:23 -0700 (PDT) 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=p1kfKTM9; 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 S229900AbjDKJcY (ORCPT + 99 others); Tue, 11 Apr 2023 05:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbjDKJcR (ORCPT ); Tue, 11 Apr 2023 05:32:17 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DF3B26AE; Tue, 11 Apr 2023 02:32:14 -0700 (PDT) X-UUID: bacae360d84b11edb6b9f13eb10bd0fe-20230411 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=mT6zoSr+t/iCCp0pVyrrFXyfIgwNSVzrgEpFp7/K0K4=; b=p1kfKTM91wnf6JvxSkAd/lInT36yXrs6JIdnWPHuxiJPTQmmV8vezzOZ+Rjto08t7O2lTETH+evUd8Md7ztXySyB8WtvL4BcyAceoB7mnktZ1f7CAlnUJAWiYkRXwXyqh/a9gQvzc/+JAn/fC38Exg1p5I/bA39rc+trgNa7LJo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.22,REQID:d6fc6903-c02e-4df0-9658-2f54b3e457b1,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:70 X-CID-INFO: VERSION:1.1.22,REQID:d6fc6903-c02e-4df0-9658-2f54b3e457b1,IP:0,URL :0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:70 X-CID-META: VersionHash:120426c,CLOUDID:1e62ae83-cd9c-45f5-8134-710979e3df0e,B ulkID:230411173208T2HU8R5K,BulkQuantity:0,Recheck:0,SF:38|29|28|17|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: bacae360d84b11edb6b9f13eb10bd0fe-20230411 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 998718804; Tue, 11 Apr 2023 17:32:08 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) 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.1118.25; Tue, 11 Apr 2023 17:32:07 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Tue, 11 Apr 2023 17:32:06 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Mauro Carvalho Chehab , Rob Herring CC: Will Deacon , Robin Murphy , Krzysztof Kozlowski , Hans Verkuil , , , , , , , , AngeloGioacchino Del Regno , , , , Yunfei Dong , kyrie wu , , , , Yong Wu , Tiffany Lin , Andrew-CT Chen , Rob Herring , Hans Verkuil Subject: [PATCH v7 01/14] dt-bindings: media: mediatek,vcodec: Remove dma-ranges property Date: Tue, 11 Apr 2023 17:31:31 +0800 Message-ID: <20230411093144.2690-2-yong.wu@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230411093144.2690-1-yong.wu@mediatek.com> References: <20230411093144.2690-1-yong.wu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY autolearn=unavailable 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?1762871971829391594?= X-GMAIL-MSGID: =?utf-8?q?1762871971829391594?= After commit f1ad5338a4d5 ("of: Fix "dma-ranges" handling for bus controllers"), the dma-ranges of the leaf node doesn't work. Remove it for vcodec here. For mediatek,vcodec-decoder.yaml and mediatek,vcodec-encoder.yaml, this property is in the leaf node, it is invalid as the above comment. Currently there is only mt8195 VENC node has this property in upstream. Indeed, VENC is affected, but it is not a fatal issue. Originally it expects its iova range locate at 4GB-8GB. However after that commit, its expectation doesn't come true, it will fall back to 0-4GB iova and also could work well. Cc: Tiffany Lin Cc: Andrew-CT Chen Cc: Yunfei Dong Cc: Mauro Carvalho Chehab Cc: Matthias Brugger Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring Acked-by: Hans Verkuil --- .../devicetree/bindings/media/mediatek,vcodec-decoder.yaml | 5 ----- .../devicetree/bindings/media/mediatek,vcodec-encoder.yaml | 5 ----- 2 files changed, 10 deletions(-) diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-decoder.yaml index aa55ca65d6ed..fad59b486d5d 100644 --- a/Documentation/devicetree/bindings/media/mediatek,vcodec-decoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-decoder.yaml @@ -56,11 +56,6 @@ properties: List of the hardware port in respective IOMMU block for current Socs. Refer to bindings/iommu/mediatek,iommu.yaml. - dma-ranges: - maxItems: 1 - description: | - Describes the physical address space of IOMMU maps to memory. - mediatek,vpu: $ref: /schemas/types.yaml#/definitions/phandle description: diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-encoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-encoder.yaml index 0f2ea8d9a10c..a2051b31fa29 100644 --- a/Documentation/devicetree/bindings/media/mediatek,vcodec-encoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-encoder.yaml @@ -49,11 +49,6 @@ properties: List of the hardware port in respective IOMMU block for current Socs. Refer to bindings/iommu/mediatek,iommu.yaml. - dma-ranges: - maxItems: 1 - description: | - Describes the physical address space of IOMMU maps to memory. - mediatek,vpu: $ref: /schemas/types.yaml#/definitions/phandle description: