Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4399562ooa; Tue, 14 Aug 2018 05:34:22 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyEg+5LMYNiHeaQmyYR7hkHEbgKV3tYNZQ9VJYaGrwVFuVovUfEuqypwUVpiF7JDU/RndNK X-Received: by 2002:a17:902:1665:: with SMTP id g92-v6mr20356503plg.293.1534250062276; Tue, 14 Aug 2018 05:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534250062; cv=none; d=google.com; s=arc-20160816; b=uYg4Av4BgiUQi9ZBzThtYCi435okzyLn4rim5hyvJgT1ZKSRRYUitRSgE3rqvnG9fI UHzUN2M3vJSCXWaNs+AHV9TkL0p3svyKEuQX3Ih9R2cxDXd46JnDXD9xLFeySFq+JfWT wcPsP/kMck/+5o4ShxFupoBqD1pUKNNPDK5Z0aPHTMyQGg08/svbeZx0dQaAIU/G83Vc xM9KFYdDU0Yd8gxm0o68m0hEgHOqT/qnjAMrz+EXo+M7HoAeHRvPjZl3mkXCspJ8MkOY +NDQP9QwPzqq/sfz2Ra8KPXq3oFLdEaBmy6vzeoiGL6Rv+D/aqDbXZzfrEWEOxKNAPUB maUQ== 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:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=dq2LL2BnuLhbTWBO/dzTxiIjZ07gcVonij9+EPDKPz4=; b=mF9lvOqQsnxigzMnF3eDHkmPZa5jGJLVtbiyThPsqTFB+beFkWstvPNfO4JZJYzZwu gnpjcYl5o3DQqofr4USJbOS1eUdX8b4N6/V3pItd/xPf98UzJownC+m8OilKtl9NBdQ/ UrR5LwXRZO7Q7nS2JZa46rFoH6YFveBIs85UbkyqnaZ5EuS0OAhfcMjOfVrnuIEBIzwa d2d8uKHmQTrNgGssKBw0viR18qo+/1McHjpCzrUnXbWjPOcRXcxPrtMEosFpG9pOGey1 l75tMaCApQsxtxPv/DJrjpphqMAp0BBQtLId2k1kGQZHmmcwG8dfsM6Zs2RN8xyxcBNt CdwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=afkptQZW; dkim=pass header.i=@codeaurora.org header.s=default header.b=afkptQZW; 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 200-v6si20693679pgf.378.2018.08.14.05.34.06; Tue, 14 Aug 2018 05:34:22 -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=afkptQZW; dkim=pass header.i=@codeaurora.org header.s=default header.b=afkptQZW; 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 S1732274AbeHNPL4 (ORCPT + 99 others); Tue, 14 Aug 2018 11:11:56 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:57368 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729108AbeHNPLz (ORCPT ); Tue, 14 Aug 2018 11:11:55 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E0F6860D98; Tue, 14 Aug 2018 12:24:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534249498; bh=+Hj724E7ljRFHT53uSntaYQKlAYMv2pEpRc/2dWrVng=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=afkptQZWJ7ysh1Zg8O2ulOKWZy8r7DW6obkk9JmxcIdPsYYFkhJsdISWCa3bEWDlJ CsPvrMVJ4KWdCe0k9iyJiULvWJhG35bWpts++wGXFIr0ZphlGQWTZSKVubndOGudza bZH0E1MJdgENa0DDrSCk+sn4/YU4vnaysvybeSVY= 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.40.124] (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 D407D60D88; Tue, 14 Aug 2018 12:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534249498; bh=+Hj724E7ljRFHT53uSntaYQKlAYMv2pEpRc/2dWrVng=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=afkptQZWJ7ysh1Zg8O2ulOKWZy8r7DW6obkk9JmxcIdPsYYFkhJsdISWCa3bEWDlJ CsPvrMVJ4KWdCe0k9iyJiULvWJhG35bWpts++wGXFIr0ZphlGQWTZSKVubndOGudza bZH0E1MJdgENa0DDrSCk+sn4/YU4vnaysvybeSVY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D407D60D88 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 To: Will Deacon 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, robdclark@gmail.com References: <20180814105528.20592-1-vivek.gautam@codeaurora.org> <20180814114009.GF28664@arm.com> From: Vivek Gautam Message-ID: Date: Tue, 14 Aug 2018 17:54:50 +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: <20180814114009.GF28664@arm.com> 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 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. > > 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