Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6471731rwb; Mon, 5 Dec 2022 12:53:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf5gMkFQBfRmZrAVcUducqKxy8F7fNdCCj9o6ECa43D6UfkS4jzLjBoh8X5npJiANJhKhghg X-Received: by 2002:a17:906:5612:b0:7bb:8db0:53e7 with SMTP id f18-20020a170906561200b007bb8db053e7mr45020631ejq.471.1670273593462; Mon, 05 Dec 2022 12:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670273593; cv=none; d=google.com; s=arc-20160816; b=i1uDH4rFQ2/6vNGdSPy+GxqP2KbVUdAyJs6LGaegzweqRMx69f2dfXMlmOcQPb3w0+ 8STst89Lrzmb0dGfr27SGUtl4JChU3smmbahoGAZqddjZVVjPscy42b3lJxZmXWBqmGZ W60kSfP5cmucsHxGvEViV8VxiCUxsQ8OVTFOZuIY69dKKvnL4zxm5er6CN11zeqiGuA2 c8zrN4euWGLd1g96B6S+soHYpfP9jJp1QJ9/fhFpWAE/R2jtzCF3/ik61gBylKnOvcNq VO4L/uCdX8ha8nXTypYCIPdCwzpRNxOOmFSa2Y9gAlPxIxudLji6EMb3uPccstLkFofE Dc/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TVK30NbmRI4tkvUrlf2sCSFXlTNJaX3gj/Dwn60kiyY=; b=l22BU8m5OJQimFSRAspKjm/51ZEyyQg35NDSPsTgp9M1x5oUyFWLXAMJfYQoZabfSU wz26SJXYhhRBBiAMAFczKPbKXL5uupnMDLNzudh+hwrA8lTBLXG+udTwmN9FsQZ+k/xO 7Hqh4fjEtNYCZ1blyRFHzN52+3souCoz0taKKPG7DMMEZ091it685a33JzC+xfiD0j2n 0stef0OHfMfugp2EuggyVhwZ4aeRSOqWw70Nkb+KPZfAAqzwkmHiJJvC8rvZUVPJUC5T ulhVIdnzY4bW0ueHY0x940R0b93IfMXsMmkT0TAJ5rd2/khjLyofkZZ3eZRqmJBqxzPZ 9AGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=fh0QsJ4G; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020aa7dccf000000b0046c46bc5c9csi353746edu.327.2022.12.05.12.52.54; Mon, 05 Dec 2022 12:53:13 -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=@collabora.com header.s=mail header.b=fh0QsJ4G; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232754AbiLEUc3 (ORCPT + 80 others); Mon, 5 Dec 2022 15:32:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230092AbiLEUc0 (ORCPT ); Mon, 5 Dec 2022 15:32:26 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDF3D29804; Mon, 5 Dec 2022 12:32:25 -0800 (PST) Received: from notapiano (unknown [IPv6:2804:14c:1a9:3b3c::1000]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 6A77166015B4; Mon, 5 Dec 2022 20:32:19 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1670272343; bh=T4jEOj3MX4O9ybwnACjigBqd5HrWbxgMvQT+OXT7Qxk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fh0QsJ4GR6deGY2L6Vkcewz5FdvFD+iF+Dm4aQ01N4TzbW2YZ2A4+o9YVy+GNToGF ZD6BhwRSV5qSfie3oinKOdFuwrNJjzxQJWsa+yGhLFd+7Xq35kMU8EyUzwbmVfNPVH 7KAvzPEtAqTa6zH5kufv8rY5C8vyptJiIYDGcGVtq+ZeKXLW2eaVl+HSPnSt18v3aU kiOgFe/DhyBaeeO6j3F9dKzqWkcJ+qHc2U0ugmpT5KWiPnWzlg5ROJPK8h4WyhnJ73 4ul80sF820fkOVZOxzL60/wh+a7DbuXMDWHeRE2sZ0JrpANDNSl0jScEEpWPHN731e QrRgtuqd5e9Og== Date: Mon, 5 Dec 2022 17:32:14 -0300 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Allen-KH Cheng Cc: Mauro Carvalho Chehab , Matthias Brugger , Rob Herring , Krzysztof Kozlowski , 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 Subject: Re: [PATCH v5 2/3] media: dt-bindings: media: mediatek: Remove "dma-ranges" property for decoder Message-ID: <20221205203214.megeq5nr7ksvb5vw@notapiano> References: <20221128143832.25584-1-allen-kh.cheng@mediatek.com> <20221128143832.25584-3-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221128143832.25584-3-allen-kh.cheng@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 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 Thanks, N?colas