Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp899575ybd; Wed, 26 Jun 2019 07:50:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHiDfTDG4FgXB2isUrEjKMmWapyHFR0YGditb6toHxHYyvmYxm/04bVLNmGtTqyn5voKYK X-Received: by 2002:a17:90a:a116:: with SMTP id s22mr5158289pjp.47.1561560656015; Wed, 26 Jun 2019 07:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561560656; cv=none; d=google.com; s=arc-20160816; b=hky2+drXTC6/8TDCEQJAEHpdPwc+VN2DvvaM/Yf8HITymjYL/bllHNe3+bv8dLximK SgrItnLWVL0Od+L+bc4cIimD99p1UK2md3gNWLskR6eKuLTcMOqP1+gS86IcDATXHh6k d59fZc6up7jSk65hDAwAAbhnkY7uixRzhVeg0/+jdJm2J6lZoKizv48r8oOOeCFO/3xf YZYkSsakyZmJ5AAexecRi56us1SwrVIomXU2XkADCljYXWJNAcQTUlvkqxkqH+EQ6+km kNXYHAn05Qrry2jcWLDRvIyItMKE3UauRbZHnGFg31VGop3P/dr5UxCw8HHCTK3oY0FK p5wg== 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=pZarn/zCGX03KxnXUWf7RI+kI38s3gMdhXRISHS/z7w=; b=pIxBKbZfzgEG24iDoM2kmIbNk/zrR/GSM2isnw1Mi9vEOX4HeUGbL6eMjz7NgLj3oi /VwLc/wfFt2UUhHK4PLezun+X+IwLP7M+KuukC0GsAEH8xl+Q9vp6Ly80xg6ASJ+yURs Rp5qK6YaFpPz5nkaJRo9+GFCRIE4PW77OR8YVq/fcZxTMSlascPscAZ90g+FCa9otsFu 7u+NZ2fThjuKHmywRcoLav8/wxA86wfKe73m7r4LBE1T3l+CmJLFiKa0k0V8XA9KtHyy lzO4Ttv1tNyvfchdHW7aMM791JpC3INA9Eh1Glfwx243fhQo56W6LRn+55o5VDDq6tn9 acdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FVyyJTKA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k71si2241001pje.29.2019.06.26.07.50.40; Wed, 26 Jun 2019 07:50:56 -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=@kernel.org header.s=default header.b=FVyyJTKA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728270AbfFZOsx (ORCPT + 99 others); Wed, 26 Jun 2019 10:48:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:49792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728520AbfFZOsv (ORCPT ); Wed, 26 Jun 2019 10:48:51 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A227A205C9; Wed, 26 Jun 2019 14:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561560530; bh=Q0fkJnt5Wk/wU807scvnJI4s4UA4UjwWKB0s0wc3Xm0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FVyyJTKAehLp05zG/pwe9Aa0/ZSb6jmhAh7fYWRrQXRe15i7Nde+lWOqOrHb21zCS I5b5iC0ODpC6vtRvyZwwNJHkjG6b2B82I8tgZ7I8FFj5w751IN+kgPwk5zvzxXWuut Ad9RXJbltpQ3GJ3YyUAXj1PB4wW1p/znSA1zDdnw= Date: Wed, 26 Jun 2019 15:48:45 +0100 From: Will Deacon To: Vivek Gautam Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , Will Deacon , open list , Bjorn Andersson , David Brown , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , robh+dt , Andy Gross , Robin Murphy Subject: Re: [PATCH v3 3/4] iommu/arm-smmu: Add support to handle Qcom's wait-for-safe logic Message-ID: <20190626144844.key3n6ueb6skgkp4@willie-the-truck> References: <20190612071554.13573-1-vivek.gautam@codeaurora.org> <20190612071554.13573-4-vivek.gautam@codeaurora.org> <20190614040520.GK22737@tuxbook-pro> <3e1f5e03-6448-8730-056d-fc47bdd71b3f@codeaurora.org> <20190618175218.GH4270@fuggles.cambridge.arm.com> <20190624170348.7dncuc5qezqeyvq2@willie-the-truck> <20190625133924.fqq3y7p3i3fqem5p@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 26, 2019 at 12:03:02PM +0530, Vivek Gautam wrote: > On Tue, Jun 25, 2019 at 7:09 PM Will Deacon wrote: > > > > On Tue, Jun 25, 2019 at 12:34:56PM +0530, Vivek Gautam wrote: > > > On Mon, Jun 24, 2019 at 10:33 PM Will Deacon wrote: > > > > Instead, I think this needs to be part of a separate file that is maintained > > > > by you, which follows on from the work that Krishna is doing for nvidia > > > > built on top of Robin's prototype patches: > > > > > > > > http://linux-arm.org/git?p=linux-rm.git;a=shortlog;h=refs/heads/iommu/smmu-impl > > > > > > Looking at this branch quickly, it seem there can be separate implementation > > > level configuration file that can be added. > > > But will this also handle separate page table ops when required in future. > > > > Nothing's set in stone, but having the implementation-specific code > > constrain the page-table format (especially wrt quirks) sounds reasonable to > > me. I'm currently waiting for Krishna to respin the nvidia changes [1] on > > top of this so that we can see how well the abstractions are holding up. > > Sure. Would you want me to try Robin's branch and take out the qualcomm > related stuff to its own implementation? Or, would you like me to respin this > series so that you can take it in to enable SDM845 boards such as, MTP > and dragonboard to have a sane build - debian, etc. so people benefit > out of it. I can't take this series without Acks on the firmware calling changes, and I plan to send my 5.3 patches to Joerg at the end of the week so they get some time in -next. In which case, I think it may be worth you having a play with the branch above so we can get a better idea of any additional smmu_impl hooks you may need. > Qualcomm stuff is lying in qcom-smmu and arm-smmu and may take some > time to stub out the implementation related details. Not sure I follow you here. Are you talking about qcom_iommu.c? Will