Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7007816imu; Mon, 21 Jan 2019 21:45:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN560ikByLApJvTZsJmpnMpaotw5zeEgN6DXVBNhN0XwDITZgU0uBE+Zw22E0I3GFTKfw7Yb X-Received: by 2002:a17:902:d911:: with SMTP id c17mr33814045plz.151.1548135950568; Mon, 21 Jan 2019 21:45:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548135950; cv=none; d=google.com; s=arc-20160816; b=ktkyFgovcyqQpvc70CCYKeVIT6ogSp3iRGSDOfzlbOfr686N1jcI0ONRL9OlUkE5vg 3/rxa4L16iaH6y6EM58r+Ae2dbUQbTEcW4b7XoCk6V9lR+yaGKhANapUV4Z8EEAAiWPR aAqltg7mJ5GvSHJNm+7aMFjtW528zOpkuoEp9EWfd0ymjlSWPtl9nPz0yy5nwnkjuiA0 g86rjKz/xggHUGTSUyCfNj1UaChIDGcHcDnsTjb5O+HFCPmlY3ehPyVN/02noZ9pvzAk U0P/mhXPV1fHJrV/SfctDO2h28Nygg3/RvMJ5I+sf49gBxV62xuw+9tAnOJtFi3/7r5I F31Q== 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; bh=WLOGuAR8wQ4BMJfiyoaGbFPKENkA3v1++frj9qTwWDU=; b=Ik/ZGpjCRJ+4J5te6l9NlzzrW4KPIn9QV4oSDDwmhOKPI2PUCRcQ+ETjrs9CPZUvSo 7A6Bw5ejbyG74ha5vNdq1fpnkicYyOXDZIqnr+zVM8/+mgIcj3IPdErs7dnT6Z6R3tHx X6ocyCN+QKKdFMMl1T7QaQIRC15jTyYzGWqdc0HNnxb799boijxwSYBeY4KqvWSWHDM6 FNaJM65LjkUz8gp5YmPWZzC4scEv0xg5rRzS/F4kzVYZF7HT/8nJ0K5sjm14SEbvZ9fW T6KrIP4DtVzmEsbpx2kNByWguMeEDzaMfkEQStblLBb0yCiYbWJn+xF7KZelnZMc2XpY mk2w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u28si15387953pgn.436.2019.01.21.21.45.33; Mon, 21 Jan 2019 21:45:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726963AbfAVFnl (ORCPT + 99 others); Tue, 22 Jan 2019 00:43:41 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:46442 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfAVFnl (ORCPT ); Tue, 22 Jan 2019 00:43:41 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CDD37A78; Mon, 21 Jan 2019 21:43:40 -0800 (PST) Received: from brain-police (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4C31E3F6A8; Mon, 21 Jan 2019 21:43:39 -0800 (PST) Date: Tue, 22 Jan 2019 05:43:28 +0000 From: Will Deacon To: Vivek Gautam Cc: linux-arm-msm , open list , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Robin Murphy , Linux ARM Subject: Re: [PATCH 2/2] iommu/arm-smmu: Add support for non-coherent page table mappings Message-ID: <20190122054326.GA6445@brain-police> References: <20190117092718.1396-1-vivek.gautam@codeaurora.org> <20190117092718.1396-3-vivek.gautam@codeaurora.org> <20190120000117.GH26876@brain-police> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 11:35:30AM +0530, Vivek Gautam wrote: > On Sun, Jan 20, 2019 at 5:31 AM Will Deacon wrote: > > On Thu, Jan 17, 2019 at 02:57:18PM +0530, Vivek Gautam wrote: > > > Adding a device tree option for arm smmu to enable non-cacheable > > > memory for page tables. > > > We already enable a smmu feature for coherent walk based on > > > whether the smmu device is dma-coherent or not. Have an option > > > to enable non-cacheable page table memory to force set it for > > > particular smmu devices. > > > > Hmm, I must be missing something here. What is the difference between this > > new property, and simply omitting dma-coherent on the SMMU? > > So, this is what I understood from the email thread for Last level > cache support - > Robin pointed to the fact that we may need to add support for setting > non-cacheable > mappings in the TCR. > Currently, we don't do that for SMMUs that omit dma-coherent. > We rely on the interconnect to handle the configuration set in TCR, > and let interconnect > ignore the cacheability if it can't support. I think that's a bug. With that fixed, can you get what you want by omitting "dma-coherent"? Will