Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3678444ybd; Tue, 25 Jun 2019 06:44:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6TbT6IC9UrTn5Jt5GUNm+5RFKZy4ekZ6KcnuY9M1r2BtFZdznIuxBO2XsbrFduLZwcTHo X-Received: by 2002:a63:3349:: with SMTP id z70mr12957558pgz.355.1561470265432; Tue, 25 Jun 2019 06:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561470265; cv=none; d=google.com; s=arc-20160816; b=hcB8WhJMnkO9EmSlgbl+UV+I2bUeebmyKllyRoL6Y+yDvzzqZBKYdZAMwLh63Z8I/l QhlcjypH3w3Oec1U0AuqBoRRuBhoPF5YLRHryKL7pYoZMFn8AN+zt0IgSilRrnhTCz6c Zar5hTpngu3DtHlHCQF+oZweNnaFy2VTcS6G+Y+FF2QBtJpBQh/zLbTgOjGAorehVnMW Y9YDeTfMUc6fzsZH7J1mFq9k847CxVOI2+2yIbVxYhicONBsVoVRE6ji6R8Q1g4Lz8fR b0HvRIzoyzZfgtEIUi6pWiNPKdubqK81T4Nbvj5LZfUW2CbGjY+PYXXfc/iR6yJ1oIwA waeg== 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=+JvbFbyF4L/9NwHC0w6uI0FM51waoD4lCEqMIFLdpKU=; b=gZWqEoNBwEAGA13moQInGCoODhmkCEww1pnX3G00o5OLssGdBCwcDj18QA5LnMHkmS NByzGF9pzG+kJaKX3hjE/qr4hnuCr3YGmiyTs23MgoI55gSWwEiIrxsmzPm73JkQ8C84 SAemLkCt2w0x4nDEy5aiCOnOLWY/sSJ2rj0oYYJduwue4Rbb0x9QFirpBsYb4T6RIyEo yy+o3ERbvYATRYceizkNOwNZviVq0n5Jrn/scgrXtBnGcMmV3ostpY2YG62DqDMDLPoK ktQe0iBZG12CpIZGD7qW3wsDdSvQaf8oyfSFAMMy1/9ZyBavIungWVsyyle57+a5ygJZ KE8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hiUdQSgP; 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 g190si13556671pgc.131.2019.06.25.06.44.09; Tue, 25 Jun 2019 06:44:25 -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=hiUdQSgP; 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 S1730156AbfFYNjc (ORCPT + 99 others); Tue, 25 Jun 2019 09:39:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:46940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727406AbfFYNjb (ORCPT ); Tue, 25 Jun 2019 09:39:31 -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 B8A042133F; Tue, 25 Jun 2019 13:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561469970; bh=3muJjXWRycZv3Y/JtYQgT9Oc/WMSWIxkkMKqCMNX5RI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hiUdQSgP3fzkh9uQINSrEWWxdCpnUcZOSUINFQIWpnmazGlfb+eIkvMic2wa1obwq MOYLBIk3dgpziyQsVjbfSEPXsH6+/BUjsU3tczSc0CNj21IRV5UqpLgjpqguUV3p1v BvJY98/KPveTSOl42McksrdQHTu0QRNQQWXrFSnU= Date: Tue, 25 Jun 2019 14:39:25 +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: <20190625133924.fqq3y7p3i3fqem5p@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> 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 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. I certainly won't merge the stuff until we have a user. Will [1] https://lkml.kernel.org/r/1543887414-18209-1-git-send-email-vdumpa@nvidia.com