Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3024987rwb; Mon, 16 Jan 2023 02:42:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXv0qdqGylskkXuHYaLC20FTeMEiRP3uXx7RNJ/xp3sUn927R84kGbyTwZAhcAbgankbCqGN X-Received: by 2002:a17:906:6848:b0:86e:9345:e701 with SMTP id a8-20020a170906684800b0086e9345e701mr6451809ejs.2.1673865738876; Mon, 16 Jan 2023 02:42:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673865738; cv=none; d=google.com; s=arc-20160816; b=lRLHgyxhThv7OZNQLGuirY6tIyIrbjyzeyCSS0arBEuIOG3uGsUBP3f2Fw5MT3wfKF HqOlIE/5KaK1QBxHt83L6gdJr66JLuQsn7U/DN/DA5QmjCe9IQ31lKQjj3EgVPebWWpV xV9oRmEYIGcLIc8UVZTVak7HQ8AiQIKNmnzmLWcbGwdppJ2rxNiCFqf/bSM6GRW/QM/9 MLIejyQ3onEPomNnuDkStcTd3+jhmTo9h+0fX57zQ6uJtPPUgKYUPl8P7OfykXgRRiRU JKK2lMgocmH/IXmBsYngDaENuIt0bFJl+d5lvUwj8LgSwpBilwBrKOEkxUY3nFTxub7g MyvA== 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=D9q9+EB9tFYnjpJaSgG63m4nxkyiIYt0RNii/Zj/ntY=; b=Myvb45A5mJiUivl6cP0RcvLCRuKhMETgBSbOBwKwuy9DVHdAht5l8EhzTAemMFO4vC l41nziFTMC94hbhLn9O9BPwpU9sx5qgM5vtG9J0CTMbmYofTd7GsRc6Y6132O25pWEWu OPcm4uJvkqAbgWsrP8hs1cETX9uSl8xXRMGIE92SVBWU+d4MwMIJPVRPG9lBmXZtaEVP 8C2OTIItxo39ZCYwLAWd6aESnkrG+vDi/zoMEO0jhjP9lC+i3vxY+aumEcZbEJTMLFWA 5CuKLvdoUpCtGNImPhBaI7NFzYpUEVwmck+UXZDrAwsF9jLFrz5JBekBqh+mHfn5FD0Z wvZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=fCApfwp9; 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 j4-20020aa7c0c4000000b0048cb4ab468esi4375049edp.56.2023.01.16.02.42.06; Mon, 16 Jan 2023 02:42:18 -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=fCApfwp9; 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 S229628AbjAPJqZ (ORCPT + 51 others); Mon, 16 Jan 2023 04:46:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjAPJqW (ORCPT ); Mon, 16 Jan 2023 04:46:22 -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 B64DD55AD; Mon, 16 Jan 2023 01:46:21 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id A6E0766029A5; Mon, 16 Jan 2023 09:46:18 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673862380; bh=nYQprZYDKKBXvoouxOYysIQde0DT4K7g+1YTSkKBGiU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=fCApfwp9woRngKm4ZG1JqCe1yX4d8c7xfrO7LrW+GG7lSywzWwWeeIwU3Dum54yfK nUpHOLQzwI4kPzWF5uawdu3O5okGrLLMWS6AZAuIUS7y3MRp7her0w3C/6cW8e7cAf 97Yq+BWJjT4xBp4HVbtgi5O62P0aYr5TpXd0YA+Bz366oVzInpp1V2X+Dm1+aSsIQu eUh3Jv4RfX4pbC8GZwZZCuqnLHeSuFo22t/tvMCwwqrnoABMVR2hZ9VLwwNOqkiWQO zpQnYL3o+9v+DHRHXmmrFVWm94uTnVxRhjS1yL7gjLXoD0jYCT2D1XefE24Ex6XaDm HHjZgdmtzZfhQ== Message-ID: <1a9a09d5-58e2-badc-6d1c-fe2008c305f9@collabora.com> Date: Mon, 16 Jan 2023 10:46:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 07/10] iommu/mediatek: Add a gap for the iova regions Content-Language: en-US To: Yong Wu , Joerg Roedel , Matthias Brugger , Mauro Carvalho Chehab , Rob Herring Cc: Will Deacon , Robin Murphy , Krzysztof Kozlowski , Hans Verkuil , nfraprado@collabora.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, mingyuan.ma@mediatek.com, yf.wang@mediatek.com, libo.kang@mediatek.com, Yunfei Dong , kyrie wu , chengci.xu@mediatek.com, youlin.pei@mediatek.com, anan.sun@mediatek.com References: <20230113060133.9394-1-yong.wu@mediatek.com> <20230113060133.9394-8-yong.wu@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230113060133.9394-8-yong.wu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 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 13/01/23 07:01, Yong Wu ha scritto: > Currenly masters can not indicate its special dma-ranges. Prepare > for vcodec. some vcodec end address is address + size, if our size > is 4G, the end address may be 0x2_0000_0000. and the > register is u32, then it may get zero. thus add a gap(8M) for > all the regions. > > Signed-off-by: Yong Wu I definitely agree on the fact that we do *need* this series... but this particular commit looks like a hack. I'm not convinced: I have a hunch that this one will sooner or later backfire on us and break things again... at the same time, I'm not sure how to do this properly at this point (I didn't do any research, anyway). Ideas? Regards, Angelo