Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3575397imm; Wed, 5 Sep 2018 02:24:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdavosG5UmEjnBaNrvvf8bBZyNFUqpfAHCi5o29aHfiT9JsiBdJ2xccEgSNxu00gGnhZs7xo X-Received: by 2002:a62:6690:: with SMTP id s16-v6mr39437538pfj.152.1536139441012; Wed, 05 Sep 2018 02:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536139440; cv=none; d=google.com; s=arc-20160816; b=RcNwmRHPIU5cwbFfSXZHrMHPiGbQ5pqCfK15S3MR5AzrBbvO8+upXNDKUr9Ax+DHQ0 BtRt09HE9kNHCmfZa+sbriclPy6CpQ2FVXEz8WVExiCMpXElAoeMEOSDEP0esYUbItk8 XFka3Q1dXnGC1DvdQ/Ta2MjgXefukPd+2QDJD2aK+V7Dq73TsTCoI4xwKlO40+DZ95YU ExqHuhXoSDQYECfVc4Qi2OpTrgZsHplzEpx8LJotye48FY5oys+qbp5dzv7pnVRo5Tfp RcwB152yoNaxv2g9Yh78M6ZaUyKKL3ZK7kQFNu6YocAkWCdkNlAoHPTneZjJ0jWaLLrG F5lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dmarc-filter :dkim-signature:dkim-signature; bh=1m/UJ23iDZgibq3YDf5/LBrkx0RtK7gvXukdGrJERrQ=; b=RUyCwek9jnpGV6zJHDYyc4ZZMS9NzTpL/M+l+QENzITIueb0x/F/HsKplo3POmsuW+ PDmKJDm0u8A4i3pjxx5zkGeFyN1Ne0LDi8O2b0PHozvuCdyoyutAkTKvYtY+a+TTnPGF WOUM2i2ZjAkSgDRTQXArG2YX8PTN8A0p/4LMXyzy0UJWU9Bqu4rDij/2TsRoWwaJgzLp p2dnCP1F0HzhL6myfzkJNYIleov3noXNaeYHTEVlLl2sd6cq/j3Frx2Sof5cOcsxkkvH dNzfidL1Fr/uhKkPDOFRdntLqoYmXsixa0etHQk0d7Y9uw4EzZSjhDFhV9H8WCBqHfnp TElQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=mUcePa7B; dkim=pass header.i=@codeaurora.org header.s=default header.b=dEN1wfCj; 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 b1-v6si1374161plc.168.2018.09.05.02.23.45; Wed, 05 Sep 2018 02:24:00 -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=@codeaurora.org header.s=default header.b=mUcePa7B; dkim=pass header.i=@codeaurora.org header.s=default header.b=dEN1wfCj; 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 S1728081AbeIENvt (ORCPT + 99 others); Wed, 5 Sep 2018 09:51:49 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42110 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbeIENvt (ORCPT ); Wed, 5 Sep 2018 09:51:49 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id BEC946081C; Wed, 5 Sep 2018 09:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536139349; bh=mVgfDffMFI//w+16aQS6ri7vpUvqjHyuLU8SH+vs2kU=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=mUcePa7BCQR7XjFmEwlWaion4ZNsFXWQWUz0LMb+DE5IW6hTr0RpApUtF9Phub8sX 6EVruuRYzraV/xM+aQnBQoyyBQ1dBvSl4TIMynEoclv4IKV1NLFSaG1VFUGcNG9Yg/ Yyo6vfj69M11RrSvmcvqHLZmkWrnVu46liEuByb8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.79.41.39] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vivek.gautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 534D56034F; Wed, 5 Sep 2018 09:22:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536139348; bh=mVgfDffMFI//w+16aQS6ri7vpUvqjHyuLU8SH+vs2kU=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=dEN1wfCjhl7eZEuwrNtu8fS0kbhve8dG80Tz7umW1x7b56JwfcTmye9sK30xnQo5S izfeqRYGeu93GM1PmCu8ECRTNvBml0Yz8Ba8+UrCkJkjACz+XLtJP4gqNZXwOZFXpA styIPKGYy3tVMGPtV1s6Wo+HyyVV3tl/JNaYgvz0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 534D56034F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vivek.gautam@codeaurora.org Subject: Re: [PATCH 0/5] Qcom smmu-500 TLB invalidation errata for sdm845 From: Vivek Gautam To: Will Deacon , robdclark@gmail.com Cc: joro@8bytes.org, andy.gross@linaro.org, robin.murphy@arm.com, bjorn.andersson@linaro.org, iommu@lists.linux-foundation.org, mark.rutland@arm.com, david.brown@linaro.org, tfiga@chromium.org, swboyd@chromium.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20180814105528.20592-1-vivek.gautam@codeaurora.org> <20180814114009.GF28664@arm.com> Message-ID: <3f74124c-b09f-a92d-117d-a747d33a4561@codeaurora.org> Date: Wed, 5 Sep 2018 14:52:21 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Will, in case we would want to use arm-smmu driver, what would you suggest for having the firmware hooks? Thanks. Best regards Vivek > >> >> Also -- you didn't CC all the maintainers for the firmware bits, so >> adding >> Andy here for that, and Rob for the previous question. > > I added Andy to the series, would you want me to add Rob H also? > > Best regards > Vivek > >> >> Thanks, >> >> Will >