Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1270914ybl; Fri, 30 Aug 2019 15:04:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2ZLaMyau4BbYa3gvK5mm/6lkIS4sdTCSGZ1VAFcFCJntmD360Za6szF2BZiho4D7XqT8Y X-Received: by 2002:a17:902:744a:: with SMTP id e10mr11678925plt.239.1567202676092; Fri, 30 Aug 2019 15:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567202676; cv=none; d=google.com; s=arc-20160816; b=z5iaSUYKnmie/ICIq255LD472evHTdiW7NdHCuOliJ4bD9UU0TGmwEyCKhfCaN0hqq 7Krpwe46r2HXs9FOR/0Pic5DJA+uMWbCLxi4nbLTziv4vzqins3nPaCB46SXUJBRQkY2 v+TEtPaa6rlJUz5KiKYETuVyf2aP4gdriQ3IbmiRILOV4k3sWdWMOzdkt0m2iCbM/nDW D4PyXBLD4YZUZGRPEwFRtLWphbWDZqayHsXqnP2GOLZKQW4q3CTN7x2JsqC34n0bm2Dq 6A3ON6MGwpzbmb+RMKrzSe3FEKVQNKUamr6xBlv/sgNXZjWDUPWJYbmRRQbXX8w6lZsh rpKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:from:to:subject:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=EnIXpwAIfyekw22wgx99HmUalWiPh7x+7uNWDpr4m5g=; b=whEdnHiVA8mLqr98pyjLpINeIebD4s1fRNDL22b7k6BrN+EtvATQZg8rpP4OAWfHXT ejt2xndbMoKi2fENEk7Zkph9W84nLjkasFAr00jMDxCmRYRIgoOhkCvxC3O9tnzcH3YK hKP5cRAgnxH5fIHvnNrPwwjQC1ny/lak0oSOwVkK8ZWSpfvEd0mpG059cYfmER2zgqNQ MalV5LDPk2zMQRMdDuthKJc0duo3MXKbQVOpwkCRbrqHmHOIM9hP6nh9eUOJTv38LBGn 5akxEDnKT7G+MFUUmSj3bLNq7BzF2+CsUMLWYl1KOvziId4G1c0oTnU24cLQCkh0lIhI XiPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K2pR4YqO; 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 f3si5618554pld.255.2019.08.30.15.04.20; Fri, 30 Aug 2019 15:04:36 -0700 (PDT) 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=K2pR4YqO; 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 S1728185AbfH3WDZ (ORCPT + 99 others); Fri, 30 Aug 2019 18:03:25 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40216 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728007AbfH3WDZ (ORCPT ); Fri, 30 Aug 2019 18:03:25 -0400 Received: by mail-pl1-f193.google.com with SMTP id h3so3944768pls.7 for ; Fri, 30 Aug 2019 15:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:cc:subject:to:from:user-agent:date; bh=EnIXpwAIfyekw22wgx99HmUalWiPh7x+7uNWDpr4m5g=; b=K2pR4YqO5U71A8d7/ZSJnhEN61Q57gnxY1N86g9ZAJcYOsLAX3zsiWr7dUD7BU7jLf hSRoplf5AtIB3e8uMdK8raUmI9aLI2Y+prfm2ASCh3acb8Hu8m76DWvy4EBKrap9zaae 5E9JnJm/GmuOw+LnUOwd8YEXFVvKTm1p5fdhM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:cc:subject:to:from :user-agent:date; bh=EnIXpwAIfyekw22wgx99HmUalWiPh7x+7uNWDpr4m5g=; b=eWhlBmEYLfhshWYuzvIA+RMBM2+AOnQ5W56uzv/Yoq1VnWj49JALIXmiqnz3RQSnRd vUmzl7xsnxvdieaS4ip5NKGpY+7SNXJPp7TdOFCqfhTvRo8T9R8pLcg5dzsq3abZXk4a kmAyNJKk9e1Z9S1Wc8ufpZbpolMwwDQZw1lhbctf2Q5GMZAN5puJOknCrjM6c8BD6EFE KGD6qejFbYst9VL8V+1g/6QZpZ3Tf/ykkfafaW8kiMk/MA1GONr2i0JlGpqJfvwla1xy ny3lXQinYDlfKjOJJoRg1wygQFL3bUCNqpWutb5IL5Ey3GemfyJpb5/NKEdsX4y+bzAj jGwQ== X-Gm-Message-State: APjAAAUxoXXdCGIsdhVaX95Kv5ey2bP1lmP5k4UgdGKMNf2Bp10POOzK IjklJTLkNz9vvjICi/YXqWFOnv4ZbDyZaw== X-Received: by 2002:a17:902:9a07:: with SMTP id v7mr18280350plp.245.1567202604286; Fri, 30 Aug 2019 15:03:24 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id 138sm8700928pfw.78.2019.08.30.15.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2019 15:03:23 -0700 (PDT) Message-ID: <5d699d2b.1c69fb81.6db46.76a9@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <5d2e61fc.1c69fb81.afb7a.a64a@mx.google.com> References: <20190604222939.195471-1-swboyd@chromium.org> <20190604223700.GE4814@minitux> <5cf6f4bb.1c69fb81.c39da.5496@mx.google.com> <5cf82c6f.1c69fb81.9e342.dbda@mx.google.com> <5cfee60a.1c69fb81.584d9.cf12@mx.google.com> <7299c814-3d9f-c5d1-fe7b-44e05f8b4ec9@codeaurora.org> <5d2e61fc.1c69fb81.afb7a.a64a@mx.google.com> Cc: Bjorn Andersson , Andy Gross , open list , linux-arm-msm , Sibi Sankar Subject: Re: [PATCH] arm64: dts: sdm845: Add iommus property to qup1 To: Vivek Gautam From: Stephen Boyd User-Agent: alot/0.8.1 Date: Fri, 30 Aug 2019 15:03:22 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Stephen Boyd (2019-07-16 16:47:07) > Quoting Vivek Gautam (2019-06-12 02:26:20) > >=20 > >=20 > > On 6/11/2019 4:51 AM, Stephen Boyd wrote: > > > hardware signal like the NS bit and/or the Execution Level. Hopefully > > > it's a config and then our difference from MTP can be minimized. > >=20 > > I don't think SMMU limits any such programming of SIDs. It's a design=20 > > decision > > to program few SIDs in TZ/Hyp and allocate the corresponding context ba= nks > > and create respective mappings. You should be able to see these SMR=20 > > configurations > > before kernel boots up. I use a simple T32 command - > >=20 > > smmu.add "" > > smmu.streammaptable > >=20 > > e.g. for sdm845 apps_smmu > >=20 > > smmu.add "apps" MMU500 a:0x15000000 > > smmu.StreamMapTable apps > >=20 > > This dumps all the information regarding the smmu. >=20 > Preferably I can see this by using devmem instead of jtag and T32. Do > you know the address of the register? Otherwise I'll go dig into the > documentation and try to figure it out. And this won't really help me will it? I thought the stream ID was "fixed" = by hardware, so it seems sort of weird that we're talking about limiting it in TZ/hyp. Here's the S2CR table from Cheza in case that is useful. localhost ~ # mem Welcome to mem interactive mode (featuring python!) Available functions: - r(addr) # Read a single 32-bit word (little endian). - rm(addr, nbytes) # Read memory at the given addr as a string. - w(addr, val) # Write a single 32-bit word (little endian). - wm(addr, val) # Write a string to memory at the given addr. >>> for x in range(64): ... r(0x15000c00 + (x << 2)) ... 0x00000000 0x00000000 0x00000001 0x00000002 0x00000003 0x00000004 0x00000005 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 0x00020000 >=20 > >=20 > > > > > > As far as I can tell, HLOS on SDM845 has always used GPI (yet another > > > DMA engine) to do the DMA transfers. And the GPI is the hardware block > > > that uses the SID of 0x6d6 above, so putting that into iommus for the > > > geniqup doesn't make any sense given that GPI is another node. Can you > > > confirm this is the case? Furthermore, the SID of 0x6c3 sounds untest= ed? > > > Has it ever been generated on SDM845 MTP? > >=20 > > I will get back with this information. > >=20 >=20 > Any update? Any news?