Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3611425imm; Wed, 5 Sep 2018 03:06:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYV5enLGI8W0BP2+Feujk4Y4xUtgYyw6679BRhWn25r39OHR6DtUq6t5tbspz+uHTT+TdFM X-Received: by 2002:a63:de4b:: with SMTP id y11-v6mr11671096pgi.435.1536141981621; Wed, 05 Sep 2018 03:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536141981; cv=none; d=google.com; s=arc-20160816; b=VlOwBSNmyzp6WsfrzujjIQs486Zl8uVUTXpYfpR32eBYHHeNBcu/Y4ozLtjIT3m6Z+ TWQZIqK7b9F7blq6/3WxllmVIDcwolTXeLqpyR2ujgAZxwAmITiH1j0VV4x79e+39YZ7 7IJB6sXq7sgGLYQ98p6OLprCSA2qDzlXMb+CMFld1E+Zsk6Hemx7pzD2HIMsD+h6xvHo dt/olYW2L3XpBAxwHOLYztFIO5za0eIGZ1xobrYhC89h7utQPMDCAYoQ0I89qjAcvz8a sNqGHVakYpZ90ljorfvtXPcE5JdDUPxiNarfF/A7oHkbrY6p50UO+bRgXDOe8kmyLYWn Um4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=63ZKR31PoYewKsPI3k7I/J3X5xgypycIBvU0xihko18=; b=ihxumEvjc7tbVUBTDKFahYF8JhgBuAIFTyIJzsUefdOrvtv8xRpCZXmMtqPcOjrnXp yRjx8bo+/iassRNwtSjphfHQUMfRYmBie8N6sQEkWs8WmFrvOU5c0fXJz7Ejb+dKj8ez BEQxNLKZGiSK9qGLPtZiBeGIHFwyXdBMCqXbn3zXN57rhfjiFBYCLKK+JbOoIQaUDF1N OlcNz0V+1sSnJbdLtsAg/8G70DbU9b6yXzq5aMJLCoTCJNONh86ZfAXegVKika1Mh9ye P9H08nofM6BSdZfYJJaBibjNzhinvhryfXGKTtRJhpLoDElex2XqlTzx6m9vHAVq+SQA eE3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AJHjd2PR; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r39-v6si1508524pld.218.2018.09.05.03.06.05; Wed, 05 Sep 2018 03:06:21 -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=@gmail.com header.s=20161025 header.b=AJHjd2PR; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727530AbeIEOe2 (ORCPT + 99 others); Wed, 5 Sep 2018 10:34:28 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:33874 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725891AbeIEOe2 (ORCPT ); Wed, 5 Sep 2018 10:34:28 -0400 Received: by mail-it0-f65.google.com with SMTP id x79-v6so16440683ita.1; Wed, 05 Sep 2018 03:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=63ZKR31PoYewKsPI3k7I/J3X5xgypycIBvU0xihko18=; b=AJHjd2PRluNq5jSIt9RzzyRK8T7fBw6/jxoDm0LMGLhWWgQjMjwQG92KoPebMU3YTe lmRyS14hW1cCIWVLHt3F3qRnZMTWMhG1oSvwtHV3bOXom9zKLfJxkM1pvc0T496aRQx2 +LU/GYbzamz9M2WLmSu5VJk/VAsVbiNdtf1vQNvtxZx7Sj7i5kt6epAfz3o1VKpAH3yM oByTIEYIFqqA9BnE80Yquo4/wpAgK4JlafP1rLQ87IFhqaQ3LJcNRkmJYgVpM0pD8Fax QD+B1FFTWtfnoRaUXPmmswoJAKFlFnBsXHCfEA2FGIt7X1pLXwSJMEMKysJQArflUioK O5sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=63ZKR31PoYewKsPI3k7I/J3X5xgypycIBvU0xihko18=; b=k0IPNHURmA73lHQF3ZbfhH8o3geb3s/cQeHhSW4mtl640/fOV82SxMObkeuybBAk56 joBfAN3kHfhrcg9jQXXv1ytEa6wpqOJcGxGZGxLN26PNVFFL32MD8pMlx/VLbcSTorp7 dbHUVXaSQ4om3j5aVWSKMgBpO/hlZRzVTSsyemI4d/X6O4lHAZe7jkvQ71A3r0XQcObM cj7WQ3veXdNINd2Vpf5E85q2be4+N5SC4I8SfAAMtTfQIGUk22zr23ceWxzNaW2Hu4oJ RK0hunPnt6x72urwBHDe+DSPlNw0XOEDM9O2PKsbmtlV+c+qe0ogaPXp2Goq8rXAAdxy Xkow== X-Gm-Message-State: APzg51A7OCRZqEWHpDOfUua1f5/2QtWfaiYTRyzeOitkCwODknIWQTzx BrhCbI+mSJNJA84dZz0F6ettnGRgpvXyL1G65oY= X-Received: by 2002:a02:b5bd:: with SMTP id m58-v6mr7078692jaj.145.1536141897476; Wed, 05 Sep 2018 03:04:57 -0700 (PDT) MIME-Version: 1.0 References: <20180814105528.20592-1-vivek.gautam@codeaurora.org> <20180814114009.GF28664@arm.com> <3f74124c-b09f-a92d-117d-a747d33a4561@codeaurora.org> In-Reply-To: <3f74124c-b09f-a92d-117d-a747d33a4561@codeaurora.org> From: Rob Clark Date: Wed, 5 Sep 2018 06:04:44 -0400 Message-ID: Subject: Re: [PATCH 0/5] Qcom smmu-500 TLB invalidation errata for sdm845 To: Vivek Gautam Cc: Will Deacon , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Andy Gross , Robin Murphy , Bjorn Andersson , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Mark Rutland , David Brown , Tomasz Figa , Stephen Boyd , Linux Kernel Mailing List , linux-arm-msm , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 5, 2018 at 5:22 AM Vivek Gautam wrote: > > > On 8/14/2018 5:54 PM, Vivek Gautam wrote: > > Hi Will, > > > > > > On 8/14/2018 5:10 PM, Will Deacon wrote: > >> Hi Vivek, > >> > >> On Tue, Aug 14, 2018 at 04:25:23PM +0530, Vivek Gautam wrote: > >>> Qcom's implementation of arm,mmu-500 on sdm845 has a > >>> functional/performance > >>> errata [1] because of which the TCU cache look ups are stalled during > >>> invalidation cycle. This is mitigated by serializing all the > >>> invalidation > >>> requests coming to the smmu. > >> How does this implementation differ from the one supported by > >> qcom_iommu.c? > >> I notice you're adding firmware hooks here, which we avoided by > >> having the > >> extra driver. Please help me understand which devices exist, how they > >> differ, and which drivers are intended to support them! > > > > IIRC, the qcom_iommu driver was intended to support the static context > > bank - SID > > mapping, and is very specific to the smmu-v2 version present on > > msm8916 soc. > > However, this is the qcom's mmu-500 implementation specific errata. > > qcom_iommu > > will not be able to support mmu-500 configurations. > > Rob Clark can add more. > > Let you know what you suggest. > > Rob, can you please comment about how qcom-smmu driver has different > implementation > from arm-smmu driver? sorry, I missed this thread earlier. But yeah, as you mentioned, the purpose for qcom_iommu.c was to deal with the static context/SID mapping. (I guess it is all just software, and we could make qcom_iommu.c support dynamic mapping as well, but I think then it starts to duplicate most of arm_smmu.c, so that doesn't seem like the right direction) BR, -R > Will, in case we would want to use arm-smmu driver, what would you > suggest for > having the firmware hooks? > Thanks. > > Best regards > Vivek