Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5283392rwl; Tue, 11 Apr 2023 03:14:52 -0700 (PDT) X-Google-Smtp-Source: AKy350ayskGIfGsaic/qqCVc89Ij6Iqbg/2NVnZNaSmBruNiQwq60Tx/QgpkjHI8HV6itOmq2KOu X-Received: by 2002:a17:906:eb85:b0:94a:658e:1180 with SMTP id mh5-20020a170906eb8500b0094a658e1180mr7658040ejb.26.1681208092191; Tue, 11 Apr 2023 03:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681208092; cv=none; d=google.com; s=arc-20160816; b=AJsatIspgo3uXmWparIx1V9MAYu3LcKNgde2dlnI6rvllXYSYEEIJ2SAKSeHOcra5L 920zfEUqjcpP5bUtZsXi6UH2Cvt4pR3aA3bijWeZ78+q9Kt1i5EnDMHLo5yXIVReqPfM G7ouWOn5579NoTlzTPVN8gS5BoiStHTHcFWm/ai1djkF2ya4oN2ylQws0snTW1M0UdYG ctHEmy49ZJDorVHSBG5Bw/fw2pnBBIiJSOOh+jaTAPpt0bLnovggh2K069vneUDSWHAk 5XmYzj9LIDncdvwhE3P81YhJ7QdqK2zFVb3aEu2Cwm5gafKflvXi26w41fwGY2o7fwDp JunA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dP0c3dLu4Icazbs6E+wjr5dFUcmiddDq2BHhfJ67k38=; b=udZTsBDStzXZy+6haPwEYpXcKdeSZebeaw3WNNmnQ2ZDNFat6/3pfcUQnlZy2AS+39 Fp/43F5x44aaLlAHliDUrNRydr2hnwLJMHwC/cD/Ko0VyxennYPqM7+pYiN3qBunxSue JdtUBTGz96h5e2wiZ5Y+cN+FkPZeUF9+wp+aBHTCUz1jUtwshSpXYNHYGhT7I4WNpTNs JS5/eASCw9EvtqTtlx29Qvt5qFh+sjcZB8M0FWbD+KHnkf4SYgCWJ0/7yvob+rOFhuOC vIBHWvOlDYLTC7Tkfytuv/Kuvp3DhNuRpTAkK3LTqdgQzGjmzV7ERUjKT0OBWxzpdOBg lRkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MQRpBPV4; 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 gb18-20020a170907961200b00948c33042fcsi1100086ejc.998.2023.04.11.03.14.26; Tue, 11 Apr 2023 03:14:52 -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=MQRpBPV4; 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 S229682AbjDKKN2 (ORCPT + 99 others); Tue, 11 Apr 2023 06:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbjDKKNX (ORCPT ); Tue, 11 Apr 2023 06:13:23 -0400 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 EB944100; Tue, 11 Apr 2023 03:13:21 -0700 (PDT) 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 7BCCC66031AD; Tue, 11 Apr 2023 11:13:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681208000; bh=H0bLhwmxJ3hfxq2cNw35YIq7xvlSowfBxBWvLLl7KxY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=MQRpBPV4eSPWPJDxxo4hOC8lJfK7U2Gva6HAK8zfzSIzpyNgsiTuwAxLiNr6ZHrZa tfNlGyd5PbPnKje6sfMwqZd1XQTnjcrgb+1AoK8szw1gpTZkpSTay+iT3dNC05mtpg OdFJuQmxRYK7tBPAWs6hgyBNcsJ4rWruFYSLrxn9/XN2VH0Ttp88LbGht9ts0lAYVa ZMwPwjChFGRc3ABfoqZlzDA89+1LNVQHXEyWcv5QjDoSBXHavL356lBytEVd3jcNxO 8q0VQJLIsYEfFeyjBFMZ0Uyj1KWaC9FZsygkBxsqMAO+E2Ry1ZBGIxRyOr+V3DHtir dtppndF9pmLPQ== Message-ID: <5697b1ba-262d-34d9-b853-a6c959fc29fd@collabora.com> Date: Tue, 11 Apr 2023 12:13:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v7 09/14] iommu/mediatek: Set dma_mask for the master devices 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, jianjiao.zeng@mediatek.com, Yunfei Dong , kyrie wu , chengci.xu@mediatek.com, youlin.pei@mediatek.com, anan.sun@mediatek.com References: <20230411093144.2690-1-yong.wu@mediatek.com> <20230411093144.2690-10-yong.wu@mediatek.com> Content-Language: en-US From: AngeloGioacchino Del Regno In-Reply-To: <20230411093144.2690-10-yong.wu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS 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 Il 11/04/23 11:31, Yong Wu ha scritto: > MediaTek iommu arranges dma ranges for all the masters, this patch is to > help them set dma mask. This is to avoid each master setting their own > mask, but also to avoid a real issue, such as JPEG uses > "mediatek,mtk-jpgenc" for 2701/8183/8186/8188, then JPEG could ignore its > different dma_mask in different SoC to achieve common code. > > Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno