Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4105802imj; Tue, 19 Feb 2019 15:38:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IbqggkBz2LVjS8GUk1RxcFpirqssIaLlY3+iHxw9mDWcUyjMUdrHZ9t4skIEimXF+x2vOqK X-Received: by 2002:a65:6642:: with SMTP id z2mr19656837pgv.196.1550619486157; Tue, 19 Feb 2019 15:38:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550619486; cv=none; d=google.com; s=arc-20160816; b=Q7L63Xft045UktuYVO9UqZ1GlrLBtkW6qFIzNsA+g5RC28V9DnEnZyuYWdsR2urtbS nD9euljszRDN6qrklRrwG3TP88cANDOiSzeFzLG+op058ClRUNFZruK2Neg1qR26VTuM d752mik6DTsqUf658V7V+DCZM16lchGZROHcuiopn0t0+9iUzC1yunbCw/EFJhXCGRrd us4+HnPtllqMvSSOpbyCBmLPvzDqxqownoMBnIULAAlUyu8ZqYtgGogowjRcbEzrPIBt oRwG+UqX1owMeJ/1nAuMVC90Bd7vePSZTS+Au/CE8Qqs1cI65CRKtL1+QqwU5a74iWJC 7aAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AJ7ED9jH39fuBc3f73jvNFeV5iY3KwuUSdsrf8MwwXk=; b=YBgNOSf6hTZdT2DxUHgCfXD658Iq2+l51P/njoMIKbVoztCJhyzF7K4FVlilcVkvUW anhwHeRqc+5neWuiyv41f8HnUcHxoSalwdBmApnRZL+c/SMoARKIMchfwqiWj/Xncjot Q6n4J/6kX5PUPCBzmOR+7YCSg92OeJF1DoePAvVCVGUrB26CofJ1bkUPBsclAOw5zV7y qaFjiE0BMtAo/LTG4KkzjDm3ChCgpHtAuemG0G7axnu6nbxIAyN8AZQ+CDOcED28Tkbl SROqLfDg64fA60wNZ1PmNZzQDKRGrCXau+msB51xguOajnR4OMVG2k4VFmYGn5BsCSBu kmeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VJGEVgQj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si6554221pfm.59.2019.02.19.15.37.49; Tue, 19 Feb 2019 15:38:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VJGEVgQj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729001AbfBSXh2 (ORCPT + 99 others); Tue, 19 Feb 2019 18:37:28 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:34563 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727375AbfBSXh2 (ORCPT ); Tue, 19 Feb 2019 18:37:28 -0500 Received: by mail-lj1-f196.google.com with SMTP id l5so15744455lje.1 for ; Tue, 19 Feb 2019 15:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AJ7ED9jH39fuBc3f73jvNFeV5iY3KwuUSdsrf8MwwXk=; b=VJGEVgQj7V5QTQsVkhPvLHTwnozl56CbHYs2KKTw77qb03WH+izpub1pucQZI/pnMS Ln5Loflermovk58DJCIBryy/cBbXj9q+PHI6cg/ecAqS/DE2ZsaFY1+dYJcxEorcd7Gb aYVDR/p3ypPSxlv+pxCAIdFA9kcT4vxtrvuAY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AJ7ED9jH39fuBc3f73jvNFeV5iY3KwuUSdsrf8MwwXk=; b=h5fxVb859VBexsyHeocFd2XYI7OaIKnQL9wM6u98WkCwT9o1Sia3F87shDkaiiVkSV ZUldwDUGj7LujDty342xKR3aj6oMdy/qvad48eBN1HFNE478ASuNFo8lj84zg0Q/i0+s qsDs7BvRYV4cXZRReyTlz2F/OkOilQS/VBjHt5218iMZScZ89sznU0Jivu981GTYhaFX iwNu+jjhEGY0gppnxTffjIpDRMjo39blF34Zj5qt2X3FpkABqnZJYhF2QZ3FHGiYQXEQ oQgzLg5smFP1DY9IXWD+WQhDMFRr4ozFHMnKqRLCKX6xoLVCrkETJwbE7my5LeTyXaht 6yRw== X-Gm-Message-State: AHQUAua3++Kvy22WnCU8fgsfAe6kV7l5lkDi31SM2sbQLzwZ14SqbQ/e ocv7huhUD4iFxil2Sly7iMZ1M9yPb9g= X-Received: by 2002:a2e:8803:: with SMTP id x3mr18063288ljh.27.1550619445684; Tue, 19 Feb 2019 15:37:25 -0800 (PST) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id a21sm4972272lfk.61.2019.02.19.15.37.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 15:37:25 -0800 (PST) Received: by mail-lj1-f175.google.com with SMTP id l5so15744433lje.1 for ; Tue, 19 Feb 2019 15:37:25 -0800 (PST) X-Received: by 2002:a2e:6a18:: with SMTP id f24mr19630490ljc.97.1550619131688; Tue, 19 Feb 2019 15:32:11 -0800 (PST) MIME-Version: 1.0 References: <1550394300-17420-1-git-send-email-yong.wu@mediatek.com> <1550394300-17420-17-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1550394300-17420-17-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Tue, 19 Feb 2019 15:31:35 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 16/22] memory: mtk-smi: Add bus_sel for mt8183 To: Yong Wu Cc: Joerg Roedel , Matthias Brugger , Robin Murphy , Rob Herring , Tomasz Figa , Will Deacon , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, yingjoe.chen@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat , anan.sun@mediatek.com, Matthias Kaehlcke Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 17, 2019 at 1:09 AM Yong Wu wrote: > > There are 2 mmu cells in a M4U HW. we could adjust some larbs entering > mmu0 or mmu1 to balance the bandwidth via the smi-common register > SMI_BUS_SEL(0x220)(Each larb occupy 2 bits). > > In mt8183, For better performance, we switch larb1/2/5/7 to enter > mmu1 while the others still keep enter mmu0. > > In mt8173 and mt2712, we don't get the performance issue, > Keep its default value(0x0), that means all the larbs enter mmu0. > > Note: smi gen1(mt2701/mt7623) don't have this bus_sel. > > And, the base of smi-common is completely different with smi_ao_base > of gen1, thus I add new variable for that. > > CC: Matthias Brugger > Signed-off-by: Yong Wu Reviewed-by: Evan Green