Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5408970rwd; Mon, 5 Jun 2023 03:16:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oY0qx4opBlH2gW5Zq7OwBKpsw25f5I6X97nuHXOOV/jf9uOET+TrnyzGvVxIL83u+5Epe X-Received: by 2002:a92:d34a:0:b0:33b:4c71:a245 with SMTP id a10-20020a92d34a000000b0033b4c71a245mr22357628ilh.8.1685960201766; Mon, 05 Jun 2023 03:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685960201; cv=none; d=google.com; s=arc-20160816; b=mrFv+gXA6RqR/1wzt2fs6DkVDlsUEGcho695po1tSw8GB+VezaLGeYHbaeoSifxGH3 5AHMbyk4OVRTQA8Z+YRBER7tpFJJVl9y9Z03a61WO76fGU5fXke24JMdgg/WDtnimYau jpl8svMt9hwR/WRnY7qIuFIIwhqmcPGP9iTfzjItDQV0gMZ56+8l1Qc64V8GbrdsQIrA 6BIrDOkSJ6u+Z/2ZCXpwYZUihjx++yHa17PP0zH/CsqmiymKcwMeCw3Dea0Mt01vOYDv HGybreUGygp+BIyK0qBR5d3qiFXJu3sHEsBdNy5shzfwPaiuThrqw+ip8wMbQaDIlfRu +oVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uL24kGW25O0CYTvB13Fb5OAjwxCCLewfKZFu6e4+4PM=; b=dFcx6M6qBG+AzKSzh8GEpOx/x2ZendDg43cDXb/V2vsFa+PQFwxF5Ml/p80su4S7OP qeEd4bIcvc92wB4t0c8J/DLBsOC8kwTbmSNTSMfuG3OOhsByhRAqX8rK3tXF/P/CYIfY 06I8HofQQ8v0XbOPAY31YmDERkuUu8gPV/SGGQW1XhjYRm0AMtTFqwiwvMOKBR8DZnsl KfDsDFuDF13XkUhbZcejZyWiHG/1XWoEOCwvUiJIJ/RPae3ArBZEmGcImPZBAg5ME8Q+ Zrqkp1Y8YLGMB0twDUYsg4RsdYIWVLz4nImwLOf6rXYZUgrvlkH2NAVxKg4Bqv5iRr5S aiIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KDUnQXgk; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t184-20020a6381c1000000b0053090c5d094si5249538pgd.648.2023.06.05.03.16.23; Mon, 05 Jun 2023 03:16:41 -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=@collabora.com header.s=mail header.b=KDUnQXgk; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbjFEJpQ (ORCPT + 99 others); Mon, 5 Jun 2023 05:45:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbjFEJpP (ORCPT ); Mon, 5 Jun 2023 05:45:15 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4DA8BD; Mon, 5 Jun 2023 02:45:14 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab] (unknown [IPv6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7B436660037C; Mon, 5 Jun 2023 10:45:12 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685958313; bh=mEfqt1dlBpfVkkk0bVWukCJts1hAaNVDDjN5Ccn0QLg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=KDUnQXgkC9ssK+JFoXAIULspaWCPeNInczzPilPctimIMqTZMBvIug63Uy3+ip4CI kCslNHgJuqVI8H5CAzB5DmFp8yvwGZZEt37PO8qA1rIjKEz9cijA6nxaTBEXwS5S4B NovRUyiHzBBM2n7xDQdP3SlfWWhLXYwmCGA6qYSNIUT7u9JRFh5eftB+KQ5FabO1uA wRvs1PJECv+/bXWWJR08AhfL7sP0ZAwwIiQEuuFBdcThi77aIN3evYZm+uVv3T/TRv +Ip7IJjbaIBQCqq3sMQmCK6xrLwc7Q45QE4HV3I/vmzJlWWA6lUZHOXvGmHcJbmzBH /N8f0NQlpIj3g== Message-ID: <511269ce-2493-1d21-d8fe-a9d78828e018@collabora.com> Date: Mon, 5 Jun 2023 11:45:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] arm64: dts: mediatek: mt8192: Add missing dma-ranges to soc node Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Matthias Brugger Cc: kernel@collabora.com, Yong Wu , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20230601203221.3675915-1-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230601203221.3675915-1-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Il 01/06/23 22:32, Nícolas F. R. A. Prado ha scritto: > In the series "Adjust the dma-ranges for MTK IOMMU", the mtk-iommu > driver was adapted to separate the iova range based on the larb used, > and a dma-ranges property was added to the soc node in the devicetree of > the affected SoCs allowing the whole 16GB iova range to be used. Except > that for mt8192, there was no patch adding dma-ranges. > > Add the missing dma-ranges property to the soc node like was done for > mt8195 and mt8186. This fixes the usage of the vcodec, which would > otherwise trigger iommu faults. > > Signed-off-by: Nícolas F. R. A. Prado > > --- > Matthias, > > this is a very simple but important fix for the vcodec functionality. > Since the vcodec node for mt8192 was just merged, can we please get this > in in this merge window as well? +1 Reviewed-by: AngeloGioacchino Del Regno > > Thanks, > Nícolas > > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > index 7ff183c35494..a3612de8e9d1 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > @@ -401,6 +401,7 @@ soc { > #address-cells = <2>; > #size-cells = <2>; > compatible = "simple-bus"; > + dma-ranges = <0x0 0x0 0x0 0x0 0x4 0x0>; > ranges; > > gic: interrupt-controller@c000000 {