Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5964611ybi; Tue, 4 Jun 2019 15:48:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqz739WQYMLfUZZ7F6UhfZmbx+KmSCgbPAzRZ9PPEQN6ItBAuaEyQaktSR6YLIUQqpn7md9H X-Received: by 2002:a17:90a:8586:: with SMTP id m6mr39972834pjn.129.1559688503801; Tue, 04 Jun 2019 15:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559688503; cv=none; d=google.com; s=arc-20160816; b=sYWCJx3dcaKv+RsmUjuvhGtQOlu+5FJGelCWI0aJmFUEgou7v2vwzt23ewoRyk7fER xiy3R3b7fwcDpLPs+uHnAEDHlZTa3qRy06vKKNSPpcr81Ru077h27+qyAvEJjgK2Kq2r HMeJhsT6r6UWHXKUtZbSP3bLSgpgCIstWCwmhzBcw+hnxGBXj0bJ7/em5teimWmN0AJ2 drZLuWLfN4OnWoFf6O3q0BqNLHdidnfYrIntCPkrTkb6qUHK5SFPvyB/LhopzgccvAli or5ZBVQbozn/bs8IsL6yBCaQVVrp6X4uv7N8dDvStuDyK2DQRUKZ4Qo3o1Zt6biG5BWC HmYg== 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:subject:from:to:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=HNg3o5ROoQgdK02OHVbYwiGmswQ8hOagouJccOyABeY=; b=HINboiLb05RxBkC4pKkDFrZgIcvPzDNgPyqlU0chGf6PXK5y34KUaITwiUYTh4X0wE 5C7LUqTPXcE9TmsPs0PcJmghfDDxgfdiCL0IOEVyFYuLg3PPpAt4bcY/y031U2So6PTH jnOFGyynJ21UyR6m3AXVyoRotsfWIpmiJTDs+SdF9gv/Ib3uqrxv2h6UVREgl3nlYMjS KCJp3KiYMldQEPvDM5Iu8XMv7o3jeKd9G+TbCjcdIXa7RiVA78EFOpJRK0X8cOJLpJZ3 66FRNralq56i/KiZx/ZSZWFdvoUMWfB2yGE0dtPokd1eFbyYOjD7I3qD2kiqUB6BpIZt M/nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RVju6t1X; 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 x1si6615501pfa.253.2019.06.04.15.48.07; Tue, 04 Jun 2019 15:48:23 -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=RVju6t1X; 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 S1726530AbfFDWqU (ORCPT + 99 others); Tue, 4 Jun 2019 18:46:20 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45735 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbfFDWqU (ORCPT ); Tue, 4 Jun 2019 18:46:20 -0400 Received: by mail-pg1-f193.google.com with SMTP id w34so11179881pga.12 for ; Tue, 04 Jun 2019 15:46:20 -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:to:from:subject:user-agent:date; bh=HNg3o5ROoQgdK02OHVbYwiGmswQ8hOagouJccOyABeY=; b=RVju6t1XxNLJeFjIty1eoJNU/et5ydRuqjOyhqSO1apGiKCqkLfbvynpDoG5bZ5ocO qmvyNle6roWhBqyoulbFbm0eNYK3W/yDvCz8ugCflj6z+rn4FBP2YPeAIxWdzX76JJL9 F+69GbFPeAgK16++cUuTM3loOcCKSsRvZcXYs= 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:to:from:subject :user-agent:date; bh=HNg3o5ROoQgdK02OHVbYwiGmswQ8hOagouJccOyABeY=; b=aHyAuxRfdXzUKpVVau9+jQvNBCQyjLsbRRcRfam7r6F2Q879WCMr3AfNwYhFRk7ncG z8PQZQOKCZdLGBQp5V3qDKQyvxydbHV+G3/KJsYT2UxuOlLQhtbU7ypCTve3xTOJInnA z48CiZxAB3oL6ti9iKLSmsk1cvf/fWf/w+ncViPpun7HXDjSzCOVIllNGvu8UTUYBBP3 BWhNVYaGTIslC4Kqag3kCK89DEAZEAtHngJMcAKZ6t11kxTHX8PBlBggH5hw08PDYdPq c0UkCDB5INZy+6pW7IvzP8LbVkS4bQarsApN5UBO/usgPFDqLNBv9vo5bwlYnmY/Y6QJ 6lBg== X-Gm-Message-State: APjAAAXzwG/qTLXr5ZS4raDlLUhPzSLFDWgCzr3fov2ys071+sjdldos bJmTrlifB6j6qPQwnTTA3PNX2w== X-Received: by 2002:a17:90a:2641:: with SMTP id l59mr14684653pje.55.1559688379642; Tue, 04 Jun 2019 15:46:19 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id u1sm18316341pfh.85.2019.06.04.15.46.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jun 2019 15:46:19 -0700 (PDT) Message-ID: <5cf6f4bb.1c69fb81.c39da.5496@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190604223700.GE4814@minitux> References: <20190604222939.195471-1-swboyd@chromium.org> <20190604223700.GE4814@minitux> Cc: Andy Gross , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Sibi Sankar To: Bjorn Andersson From: Stephen Boyd Subject: Re: [PATCH] arm64: dts: sdm845: Add iommus property to qup1 User-Agent: alot/0.8.1 Date: Tue, 04 Jun 2019 15:46:18 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bjorn Andersson (2019-06-04 15:37:00) > On Tue 04 Jun 15:29 PDT 2019, Stephen Boyd wrote: >=20 > > The SMMU that sits in front of the QUP needs to be programmed properly > > so that the i2c geni driver can allocate DMA descriptors. Failure to do > > this leads to faults when using devices such as an i2c touchscreen where > > the transaction is larger than 32 bytes and we use a DMA buffer. > >=20 >=20 > I'm pretty sure I've run into this problem, but before we marked the > smmu bypass_disable and as such didn't get the fault, thanks. >=20 > > arm-smmu 15000000.iommu: Unexpected global fault, this could be serious > > arm-smmu 15000000.iommu: GFSR 0x00000002, GFSYNR0 0x00000002, = GFSYNR1 0x000006c0, GFSYNR2 0x00000000 > >=20 > > Add the right SID and mask so this works. > >=20 > > Cc: Sibi Sankar > > Signed-off-by: Stephen Boyd > > --- > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts= /qcom/sdm845.dtsi > > index fcb93300ca62..2e57e861e17c 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > @@ -900,6 +900,7 @@ > > #address-cells =3D <2>; > > #size-cells =3D <2>; > > ranges; > > + iommus =3D <&apps_smmu 0x6c0 0x3>; >=20 > According to the docs this stream belongs to TZ, the HLOS stream should > be 0x6c3. Aye, I saw this line in the downstream kernel but it doesn't work for me. If I specify <&apps_smmu 0x6c3 0x0> it still blows up. I wonder if my firmware perhaps is missing some initialization here to make the QUP operate in HLOS mode? Otherwise, I thought that the 0x3 at the end was the mask and so it should be split off to the second cell in the DT specifier but that seemed a little weird.