Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5973307ybi; Tue, 4 Jun 2019 16:01:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjuBD8b0UluRMxVg30nvB5VUbGYhBUenknN+hD7aZ/ZLEiBAsI8jpbRUX/HIUQJehJzgZu X-Received: by 2002:a17:90a:9dc5:: with SMTP id x5mr25417609pjv.110.1559689295766; Tue, 04 Jun 2019 16:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559689295; cv=none; d=google.com; s=arc-20160816; b=Kdlwkd5VwtxlpThnLQh9Nuy+5aTY/+0AZeWmjK8m4qJcc8R4I6oVK3rpEUP3SZnigw b47OncnJm3BRWfwnoNTg79WDLZkrjQyQw6rGBx4sDrcnGt6+ds5msukgvwnQb2FOF9BA lYpr/aF28jR3EFMylffdAxEZPShbywAgi79A7xwmdCOypPfCQPRQhZJvtk9CNgOVAF5R zH5yL+zsRmjcNkkIe9yqCZpyefuGWv38WR27+E39wlbchYuWyKg35Z581TcYNcjuG6Qt WSAouyu2areFdq66Y79W/1YREtsWIzLVrQNs0Gcyl6feSffFmAjMXZm4wlnSCV9vv01/ 5ELw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2x/6dym/wJBwbh6+t1lbnKjE5x4RtuWi4gD3SnKAZ30=; b=Ch1XB3zQOLEIExp/ThiaTSlYOyA70jql8n2jhwUhrtfknX4lTV21H4RGD3P/SSFlQa NGoeIiQ+BAsGkLlgTanZJ3o+eYkSbAID6aseauywrPZaQGnwqOR2rrO+qBuSCAmV+kJz wU2XplIHgH5vOdI5edxd5faghbeWzl3SXq2jOlFEwob6gIWwVihrPrJihHrBV98eU6OY x18TZJS9GOQk29G6hpyaxxZEihYF0Ill7purGK6xXowP5GOd+rL5ZLSRKyLzBgti+kB4 q7yclr3A0mppkaE7CkjghfYBSSOCPofY4l91beD2X1YLciq+3hR0mbjsR+edSz3e32Yu FZ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fUIpItUe; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21si23626312pll.85.2019.06.04.16.01.18; Tue, 04 Jun 2019 16:01:35 -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=@linaro.org header.s=google header.b=fUIpItUe; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726572AbfFDW7e (ORCPT + 99 others); Tue, 4 Jun 2019 18:59:34 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44947 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbfFDW7e (ORCPT ); Tue, 4 Jun 2019 18:59:34 -0400 Received: by mail-pg1-f193.google.com with SMTP id n2so11211169pgp.11 for ; Tue, 04 Jun 2019 15:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2x/6dym/wJBwbh6+t1lbnKjE5x4RtuWi4gD3SnKAZ30=; b=fUIpItUeGWs1El53UJTO7arimX5f3Q03oxlhM+LZSQLk4f6jC2FOWuIuPU9n/R57ij 16itbc1GNd5Fwvqse0VWcvJ1zSc/Nyrz3xNBw0omDrhYOE8hZnUWXqiYI9uzvf+DKG1x uD0JAbnEK0mc5kl08VQQlocHVrp0YaLZacv8LOUyfghzIWBa+BdCCQSO7qMV7R8kM2Xk Cv5VhmRdZxiVFaNtoNzVMRKe+zba1WEYtBrG+roxg3ObtJbg6CSaxU65iBmRWUTMW89T OjlxEmpv4swHEg2CjiB6qrzbfHR8luEd63JZjBJiFsNXVy8hYy2RhixCC+ESPcdZShQL KDBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2x/6dym/wJBwbh6+t1lbnKjE5x4RtuWi4gD3SnKAZ30=; b=qRs0iED0psDpuFw/xYdpV3/JxZhK14jA+yWGQnqexn6uf2UvgJNWPsDSVthEzdKhuc l2b1tGP5UesCRzs37lyMNFThzvJ9WpvYOKlzPNryStH4eAiPtwlyDNvNWucxoSZvFnW3 xLLBacypBWQbkCWoyI+skydi5UBnvCLqXjA2kaRaHgWTz9FfcpK00vAZBMesjbqBSMP4 rE81FDTiCg576CmWRbeCNZvTjFMo3TxjCE8jQ0iFiJu++/7Wtylm6o0OErjSVzA7gzxp AZ/Zzi2Pay25HoQbvZvaSD2T+mRXJSGJ/WkGcit9LdGbKz+6AnpvLDa0+YDJgrwdMZll KjEg== X-Gm-Message-State: APjAAAUWDYtumIIXN8ZbOlbnBKcHbsqY1Qa8BtPIigRj95zMfRfqvhKr hDh4gjVtAw+xlM1bBoZScFSDeRUKaV8= X-Received: by 2002:aa7:9256:: with SMTP id 22mr28183848pfp.69.1559689173725; Tue, 04 Jun 2019 15:59:33 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id a21sm9754032pjh.10.2019.06.04.15.59.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jun 2019 15:59:33 -0700 (PDT) Date: Tue, 4 Jun 2019 15:59:31 -0700 From: Bjorn Andersson To: Stephen Boyd , vivek.gautam@codeaurora.org Cc: Andy Gross , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Sibi Sankar Subject: Re: [PATCH] arm64: dts: sdm845: Add iommus property to qup1 Message-ID: <20190604225931.GG4814@minitux> References: <20190604222939.195471-1-swboyd@chromium.org> <20190604223700.GE4814@minitux> <5cf6f4bb.1c69fb81.c39da.5496@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5cf6f4bb.1c69fb81.c39da.5496@mx.google.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 04 Jun 15:46 PDT 2019, Stephen Boyd wrote: > Quoting Bjorn Andersson (2019-06-04 15:37:00) > > On Tue 04 Jun 15:29 PDT 2019, Stephen Boyd wrote: > > > > > 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. > > > > > > > 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. > > > > > arm-smmu 15000000.iommu: Unexpected global fault, this could be serious > > > arm-smmu 15000000.iommu: GFSR 0x00000002, GFSYNR0 0x00000002, GFSYNR1 0x000006c0, GFSYNR2 0x00000000 > > > > > > Add the right SID and mask so this works. > > > > > > Cc: Sibi Sankar > > > Signed-off-by: Stephen Boyd > > > --- > > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > 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 = <2>; > > > #size-cells = <2>; > > > ranges; > > > + iommus = <&apps_smmu 0x6c0 0x3>; > > > > 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. > Both 0x3 and 0x6c3 are documented as the actual HLOS stream id, with mask of 0x0. Looping in Vivek as well. Regards, Bjorn