From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B905C433B4 for ; Thu, 29 Apr 2021 12:43:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA949613FF for ; Thu, 29 Apr 2021 12:43:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234147AbhD2Mo3 (ORCPT ); Thu, 29 Apr 2021 08:44:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233731AbhD2Mo3 (ORCPT ); Thu, 29 Apr 2021 08:44:29 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D259CC06138B; Thu, 29 Apr 2021 05:43:42 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id n138so104745025lfa.3; Thu, 29 Apr 2021 05:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PVk9gFFvxbCFJvq/YZ1h5eGtLwfb3YoRJmsi5P9iLGQ=; b=V30khvUcy3G7kkRwcPcty+E0gg+up+FNSU+ErmcG5jIB+OgEjb0Xg9xSRVbJOsTfaH roMqHqnATraO5DGjYsiUiuScVtAxsEaHPLkNH+Y5vqzFD1GZqPWF+PH6u0TnXAGuIJzT 608dkIX/0f6dE0jUjTTBonZS2ZVnRuOH0r8Ua+41fW0jmlo1H9zg8VnrjMHwjSlCEe2X tYitcBqCEdNuy9KPrBjDBeQ8mNk6lNsIXC697ntk/4UgikkNMHij9hXZvWT6zgjDsKr4 SINUR9ntBh5EKeSy/yuIP29l7OMmAeXkBcGoHyUjU2h1ewNXNMwfkaY7Nn5lP65cfv94 MteQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PVk9gFFvxbCFJvq/YZ1h5eGtLwfb3YoRJmsi5P9iLGQ=; b=dYdMI1cObYPQGbjrpLpg9R0SriHX/C2Yct78LnYDUiyoMr+zPMHQxKvT2okBCoxQgS Q06FjDj+PK3vJ90NcbDyjWIq3cH49l5fuHenLjZjL0jhmKZjy08n0eNoRJmp99+VrHPo Li+DX8d5PFSM4UhWAbeO6JWbNiWudk+/VwNTrRccS1vRD1mlBXu9f32005iYWTR6Y5FR nvW05alS6nLxV9tEUbDMmRsRn1HeI4AjVtx5QhfAYOQE8wqE/sZbi1pzhkg7XUB7aKnf bXlt/3E8oXQxylkueFgHpp+UatPS4GvIHnSuJT490a6SxNHr+8RLcL7a+P47MuIGYVbO HsDQ== X-Gm-Message-State: AOAM533ZcnxevzpcmfVZkGZnUL3f/xoVrV6oF6NzYp1OUevfHLiX3Txz p7CT+ITfmaExm/5PyVzZYx3K31/nDzo= X-Google-Smtp-Source: ABdhPJzTUmASQ+X8zCC4YvyqwA/DDAdCGKp2SuYQuR5grWh5yLV0nDvs/9BMEEM1CAb0LKenZPmotQ== X-Received: by 2002:a05:6512:108c:: with SMTP id j12mr12271573lfg.403.1619700221262; Thu, 29 Apr 2021 05:43:41 -0700 (PDT) Received: from [192.168.2.145] (109-252-193-102.dynamic.spd-mgts.ru. [109.252.193.102]) by smtp.googlemail.com with ESMTPSA id a26sm517283ljk.55.2021.04.29.05.43.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Apr 2021 05:43:40 -0700 (PDT) Subject: Re: [PATCH v2 0/5] iommu: Support identity mappings of reserved-memory regions To: Krishna Reddy , Thierry Reding , Joerg Roedel , Rob Herring Cc: Will Deacon , Robin Murphy , Nicolin Chen , "devicetree@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-tegra@vger.kernel.org" References: <20210423163234.3651547-1-thierry.reding@gmail.com> <869ec3a2-26df-2ce8-bd21-b681d6ef3985@gmail.com> From: Dmitry Osipenko Message-ID: Date: Thu, 29 Apr 2021 15:43:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org 29.04.2021 08:51, Krishna Reddy пишет: > Hi Dmitry, > >> Thank you for the answer. Could you please give more information about: >> 1) Are you on software or hardware team, or both? > > I am in the software team and has contributed to initial Tegra SMMU driver in the downstream along with earlier team member Hiroshi Doyu. > >> 2) Is SMMU a third party IP or developed in-house? > > Tegra SMMU is developed in-house. > >> 3) Do you have a direct access to HDL sources? Are you 100% sure that >> hardware does what you say? > > It was discussed with Hardware team before and again today as well. > Enabling ASID for display engine while it continues to access the buffer memory is a safe operation. > As per HW team, The only side-effect that can happen is additional latency to transaction as SMMU caches get warmed up. > >> 4) What happens when CPU writes to ASID register? Does SMMU state machine >> latch ASID status (making it visible) only at a single "safe" point? > > MC makes a decision on routing transaction through either SMMU page tables or bypassing based on the ASID register value. It > checks the ASID register only once per transaction in the pipeline. Thank you very much for the clarification. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7301C433B4 for ; Thu, 29 Apr 2021 12:43:47 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3802161400 for ; Thu, 29 Apr 2021 12:43:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3802161400 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id D46EA84610; Thu, 29 Apr 2021 12:43:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p9A-2VOdEsxx; Thu, 29 Apr 2021 12:43:46 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTP id AF43F8460C; Thu, 29 Apr 2021 12:43:45 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8AD4CC000D; Thu, 29 Apr 2021 12:43:45 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 44ECDC0001 for ; Thu, 29 Apr 2021 12:43:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1FCC0607A2 for ; Thu, 29 Apr 2021 12:43:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oOIRJ-rWfAzp for ; Thu, 29 Apr 2021 12:43:43 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by smtp3.osuosl.org (Postfix) with ESMTPS id 48C4560713 for ; Thu, 29 Apr 2021 12:43:43 +0000 (UTC) Received: by mail-lf1-x12c.google.com with SMTP id j4so65146735lfp.0 for ; Thu, 29 Apr 2021 05:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PVk9gFFvxbCFJvq/YZ1h5eGtLwfb3YoRJmsi5P9iLGQ=; b=V30khvUcy3G7kkRwcPcty+E0gg+up+FNSU+ErmcG5jIB+OgEjb0Xg9xSRVbJOsTfaH roMqHqnATraO5DGjYsiUiuScVtAxsEaHPLkNH+Y5vqzFD1GZqPWF+PH6u0TnXAGuIJzT 608dkIX/0f6dE0jUjTTBonZS2ZVnRuOH0r8Ua+41fW0jmlo1H9zg8VnrjMHwjSlCEe2X tYitcBqCEdNuy9KPrBjDBeQ8mNk6lNsIXC697ntk/4UgikkNMHij9hXZvWT6zgjDsKr4 SINUR9ntBh5EKeSy/yuIP29l7OMmAeXkBcGoHyUjU2h1ewNXNMwfkaY7Nn5lP65cfv94 MteQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PVk9gFFvxbCFJvq/YZ1h5eGtLwfb3YoRJmsi5P9iLGQ=; b=p4rRQekD1u9jIRFmg8iCfCrS+xebsnJIQCA5rDc80HVMKPCDHBuNhC3H8rnHpYG375 Z/ZmBWVn8B/9Js9hnTBZB4L+N5eqd4PHivzDDl0XZxBTcONekfo9130znV7BOXOnIGqo grzaIZs5Sonub1PNtqf7ZdS/gtvyRxNuq+Efjufc9IU/R5bXf5VX/txh/Pwt7FYIzJNq EKV/jv/c0GkaWmhqAb+TrCYMV5HgX48BGvKaiVwCXG0wd83EBVtXzjBsPFUoC4nhMsck voVYI+XorQwpX7sWl+PXxAgOXxb3LeQ97aFmzBWIhVZHZmGqHqwFYnNpL7RRySDSyBEs U3LA== X-Gm-Message-State: AOAM5305o5tgp1YDwwRe58wlU571IAHBWNndSvIdcqOaf5GsLpSCAQZX gYnGKIZaQjMUcmhQ1dLbfPE= X-Google-Smtp-Source: ABdhPJzTUmASQ+X8zCC4YvyqwA/DDAdCGKp2SuYQuR5grWh5yLV0nDvs/9BMEEM1CAb0LKenZPmotQ== X-Received: by 2002:a05:6512:108c:: with SMTP id j12mr12271573lfg.403.1619700221262; Thu, 29 Apr 2021 05:43:41 -0700 (PDT) Received: from [192.168.2.145] (109-252-193-102.dynamic.spd-mgts.ru. [109.252.193.102]) by smtp.googlemail.com with ESMTPSA id a26sm517283ljk.55.2021.04.29.05.43.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Apr 2021 05:43:40 -0700 (PDT) Subject: Re: [PATCH v2 0/5] iommu: Support identity mappings of reserved-memory regions To: Krishna Reddy , Thierry Reding , Joerg Roedel , Rob Herring References: <20210423163234.3651547-1-thierry.reding@gmail.com> <869ec3a2-26df-2ce8-bd21-b681d6ef3985@gmail.com> From: Dmitry Osipenko Message-ID: Date: Thu, 29 Apr 2021 15:43:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Cc: "devicetree@vger.kernel.org" , Will Deacon , "iommu@lists.linux-foundation.org" , Nicolin Chen , "linux-tegra@vger.kernel.org" , Robin Murphy X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" MjkuMDQuMjAyMSAwODo1MSwgS3Jpc2huYSBSZWRkeSDQv9C40YjQtdGCOgo+IEhpIERtaXRyeSwK PiAKPj4gVGhhbmsgeW91IGZvciB0aGUgYW5zd2VyLiBDb3VsZCB5b3UgcGxlYXNlIGdpdmUgbW9y ZSBpbmZvcm1hdGlvbiBhYm91dDoKPj4gMSkgQXJlIHlvdSBvbiBzb2Z0d2FyZSBvciBoYXJkd2Fy ZSB0ZWFtLCBvciBib3RoPwo+IAo+IEkgYW0gaW4gdGhlIHNvZnR3YXJlIHRlYW0gYW5kIGhhcyBj b250cmlidXRlZCB0byBpbml0aWFsIFRlZ3JhIFNNTVUgZHJpdmVyIGluIHRoZSBkb3duc3RyZWFt IGFsb25nIHdpdGggZWFybGllciB0ZWFtIG1l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