From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C31BC77B7A for ; Tue, 6 Jun 2023 14:00:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237452AbjFFOAO (ORCPT ); Tue, 6 Jun 2023 10:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238221AbjFFOAJ (ORCPT ); Tue, 6 Jun 2023 10:00:09 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67D90196 for ; Tue, 6 Jun 2023 07:00:06 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-30af86a96b4so5018150f8f.3 for ; Tue, 06 Jun 2023 07:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1686060005; x=1688652005; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FwrMrJM0MbRtGcxqqd7/qoRa+Z48fgcXIKuxfVUvplM=; b=Qmkebezhd3bE3EvClEVx5a7mjquFqdwFKJ07a+K/AxFUAUuZLUzo+nJmpQh0A1yT2c Kseq4TT0aRD3LwDElehU16MKuowQDxTagXLfA+S2b9hCQkgoCb+B6EXJJDuZ0N5zENVv aQXBjdLHxHKnWazjp2gv4X85tqhJ8MXmp8xYbReBJ6riWDDaUmpesbk5nH+H+j9BLFr+ QBZZfqfPTE/DJ+03sI6+cvdy0DPOJdkAiRf7xQfCvC0d7D9j5RW6ozVBibrWo1Toonq7 jLK6vvN7LyMlsKZ7ADisxhcWO+C+lAzJonHXyuQXiB9TmJMl36QVEdRf39rfR+RLWvfZ /l2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686060005; x=1688652005; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FwrMrJM0MbRtGcxqqd7/qoRa+Z48fgcXIKuxfVUvplM=; b=Lbj0MOq/Ftu2nZjqWIXOURK/gW8TLiZGZFZCWmVnxMGT6voikrBRKzyOhqlaRoOoE9 jDA04In0n1vxc7/ier64vaZOBHVco26tIBll7ttpSkoB4X7dNj2QH56B1aQJ/wCs2XSv PFOA5loUXKfzd53KnqmaUMd5uarEJm8gEXfEzi+9m9KkLZxVhMW2K5pGUlBD63p/Efwu j892sDg4c3qUSTZ8X4ze5KMKIp05nXPbvBSZYbcwCxlQiuaD6LkYiEL596eFp5zK4rIn oLCENdGtbD0UjWEZDc/SXkDjN9RaViniJ2HleBu5XJbWKmUqrQjD8rAHAjJ/yIW1KIUB IrnA== X-Gm-Message-State: AC+VfDy6A7gI5a/vF+/spWEQhZEI6L6jXAwRpXnF5/L9wJE2QDa6qNb0 tAPxxbxUc9TfvHCjjoBqB5fSwg== X-Google-Smtp-Source: ACHHUZ4ccc0T1eCTcxB1MhwmrQqdwiijiuxyeqJgwleyD1UPH+KZBBX2FUY5GnJZiKflEDdNGeHzAA== X-Received: by 2002:a5d:5102:0:b0:30e:4c8d:c6c with SMTP id s2-20020a5d5102000000b0030e4c8d0c6cmr1743312wrt.55.1686060004870; Tue, 06 Jun 2023 07:00:04 -0700 (PDT) Received: from [192.168.1.172] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.gmail.com with ESMTPSA id y14-20020a5d470e000000b002fed865c55esm12639517wrq.56.2023.06.06.07.00.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 07:00:04 -0700 (PDT) Message-ID: <1dd3ee51-f1e8-2a4e-f0d5-dd61ee5206f2@baylibre.com> Date: Tue, 6 Jun 2023 16:00:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v12 3/7] iommu/mediatek: Adjust mtk_iommu_config flow Content-Language: en-US To: Yong Wu , Joerg Roedel , Will Deacon , Rob Herring , Matthias Brugger Cc: Robin Murphy , Krzysztof Kozlowski , AngeloGioacchino Del Regno , iommu@lists.linux.dev, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mingyuan.ma@mediatek.com, yf.wang@mediatek.com, jianjiao.zeng@mediatek.com, chengci.xu@mediatek.com References: <20230602090227.7264-1-yong.wu@mediatek.com> <20230602090227.7264-4-yong.wu@mediatek.com> From: Alexandre Mergnat In-Reply-To: <20230602090227.7264-4-yong.wu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/06/2023 11:02, Yong Wu wrote: > If there are many ports in a infra master, current flow will update > the INFRA register many times. This patch saves all ports to portid_msk > in the front of mtk_iommu_config(), then update only once for the IOMMU > configure. After this, we could avoid send too many SMC calls to ATF in > MT8188. > > Prepare for MT8188, also reduce the indention without functional change. Reviewed-by: Alexandre Mergnat -- Regards, Alexandre From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A80CBC77B7A for ; Tue, 6 Jun 2023 14:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=muPIkPhO22aaRitSaX5xGrz7ZZ+f9oNPC9ZbC33DYio=; b=KeDKzkTK4tk58y 9D4SaM5+Iem6Dz/ANxYeInn6oFO94ri2ddfhpcmp0jahlUhOeTtGQroHhRnngPV2MwJcqJf38gzdQ UNba9jf1FdBr2H1ML2M1+afm5zg95mpm5z4GxF0rg++Xm9+Kj2wE5ioM/xjKTurkHwr+2d27rt54m EFayevvupBKLYvrT6V3asVrz5aKrnc0A3e53JQ8gXMmrqpbATc6qO6oqaoMecOHrcRW4miQKHM4uO XZm5joxqNlN9vMPYDm4sEPsEO2t3HPyc6uQfLtVy+vQ4QPJd4DJkhg6amA9558mXfiCxGtwp1x9LO QMYTtzWKNNlB1hxqdI4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6XEL-001vye-2w; Tue, 06 Jun 2023 14:00:13 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6XEI-001vvV-0c for linux-arm-kernel@lists.infradead.org; Tue, 06 Jun 2023 14:00:11 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f6ef9a928fso51477065e9.3 for ; Tue, 06 Jun 2023 07:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1686060005; x=1688652005; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FwrMrJM0MbRtGcxqqd7/qoRa+Z48fgcXIKuxfVUvplM=; b=Qmkebezhd3bE3EvClEVx5a7mjquFqdwFKJ07a+K/AxFUAUuZLUzo+nJmpQh0A1yT2c Kseq4TT0aRD3LwDElehU16MKuowQDxTagXLfA+S2b9hCQkgoCb+B6EXJJDuZ0N5zENVv aQXBjdLHxHKnWazjp2gv4X85tqhJ8MXmp8xYbReBJ6riWDDaUmpesbk5nH+H+j9BLFr+ QBZZfqfPTE/DJ+03sI6+cvdy0DPOJdkAiRf7xQfCvC0d7D9j5RW6ozVBibrWo1Toonq7 jLK6vvN7LyMlsKZ7ADisxhcWO+C+lAzJonHXyuQXiB9TmJMl36QVEdRf39rfR+RLWvfZ /l2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686060005; x=1688652005; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FwrMrJM0MbRtGcxqqd7/qoRa+Z48fgcXIKuxfVUvplM=; b=WXJKBLz8i7WUY/VsOL1I6oGb2OTrISVoZU9RHpY/oGUQTIiNGbQtcx3c7HCgy0c28X ZQX0aPkMdKNioWbZHktUgR0AUa9OlnWxmZlVoOM9/2LCu7VifO3D8BT0qp0wcIjUsjT9 J3CSF9vC1d44oWLy+3LuRvUuU0EoYMBte2AeLQhRUBZKKsEoQemrx5KBvsJnHwwMAt2L tYIf8Y2UJL+pjZlDYYm1ldR3Iq5iXGQdcJ5Uf1MV4jjsJ0HFhBO36q7ic8H+SIpT3VnQ F53aFn+7A6NsLcxkPmXVeNGCg4Vw8eS9VBgU2UT+h4awXxjuty3NqxRYtwV8LoxQBRHi WHRg== X-Gm-Message-State: AC+VfDzAB0/RIZAWnJkDTrELaxPqRWSJbCUOqE4uXGkuYPR6x4y+2Ak/ BM2zwegF+Rugfe7UGcO4DD8/WA== X-Google-Smtp-Source: ACHHUZ4ccc0T1eCTcxB1MhwmrQqdwiijiuxyeqJgwleyD1UPH+KZBBX2FUY5GnJZiKflEDdNGeHzAA== X-Received: by 2002:a5d:5102:0:b0:30e:4c8d:c6c with SMTP id s2-20020a5d5102000000b0030e4c8d0c6cmr1743312wrt.55.1686060004870; Tue, 06 Jun 2023 07:00:04 -0700 (PDT) Received: from [192.168.1.172] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.gmail.com with ESMTPSA id y14-20020a5d470e000000b002fed865c55esm12639517wrq.56.2023.06.06.07.00.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 07:00:04 -0700 (PDT) Message-ID: <1dd3ee51-f1e8-2a4e-f0d5-dd61ee5206f2@baylibre.com> Date: Tue, 6 Jun 2023 16:00:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v12 3/7] iommu/mediatek: Adjust mtk_iommu_config flow Content-Language: en-US To: Yong Wu , Joerg Roedel , Will Deacon , Rob Herring , Matthias Brugger Cc: Robin Murphy , Krzysztof Kozlowski , AngeloGioacchino Del Regno , iommu@lists.linux.dev, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mingyuan.ma@mediatek.com, yf.wang@mediatek.com, jianjiao.zeng@mediatek.com, chengci.xu@mediatek.com References: <20230602090227.7264-1-yong.wu@mediatek.com> <20230602090227.7264-4-yong.wu@mediatek.com> From: Alexandre Mergnat In-Reply-To: <20230602090227.7264-4-yong.wu@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230606_070010_230951_38415CD6 X-CRM114-Status: GOOD ( 12.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 02/06/2023 11:02, Yong Wu wrote: > If there are many ports in a infra master, current flow will update > the INFRA register many times. This patch saves all ports to portid_msk > in the front of mtk_iommu_config(), then update only once for the IOMMU > configure. After this, we could avoid send too many SMC calls to ATF in > MT8188. > > Prepare for MT8188, also reduce the indention without functional change. Reviewed-by: Alexandre Mergnat -- Regards, Alexandre _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel